:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b7280;
  --color-border: #e8e8e8;
  --color-accent: #e8781a;
  --color-accent-soft: #fff7ed;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1180px;
  --section-y: clamp(4rem, 10vw, 7rem);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover { color: var(--color-accent); }

.container {
  width: min(var(--max-width), calc(100% - 3rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 2rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  white-space: nowrap;
}

.logo span {
  color: var(--color-text);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-text);
}

.main-nav .has-sub { position: relative; }

.main-nav .sub-nav {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.main-nav .has-sub:hover .sub-nav {
  opacity: 1;
  visibility: visible;
}

.main-nav .sub-nav a {
  display: block;
  padding: 0.45rem 1.25rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1816;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform-origin: right center;
  opacity: 1;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(250, 250, 250, 0.97) 0%, rgba(250, 250, 250, 0.82) 38%, rgba(250, 250, 250, 0.25) 58%, rgba(26, 24, 22, 0.15) 100%),
    radial-gradient(ellipse 55% 70% at 78% 42%, rgba(232, 120, 26, 0.22) 0%, transparent 68%);
}

.hero-overlay-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(232, 120, 26, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 120, 26, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(105deg, transparent 30%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.85) 100%);
  animation: heroGridDrift 40s linear infinite;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: heroGlowPulse 8s ease-in-out infinite;
}

.hero-glow--1 {
  width: 320px;
  height: 320px;
  top: 10%;
  right: 12%;
  background: rgba(232, 120, 26, 0.35);
}

.hero-glow--2 {
  width: 240px;
  height: 240px;
  bottom: 15%;
  right: 28%;
  background: rgba(255, 180, 80, 0.2);
  animation-delay: -4s;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--section-y) 0;
  max-width: 560px;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-eyebrow { animation-delay: 0.15s; }
.hero h1 { animation-delay: 0.3s; }
.hero-desc { animation-delay: 0.45s; }
.hero-actions { animation-delay: 0.6s; }

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.35;
  margin: 0 0 1.5rem;
  letter-spacing: 0.04em;
}

.hero-desc {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-tag {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-tag:nth-child(1) { animation-delay: 0.75s; }
.hero-tag:nth-child(2) { animation-delay: 0.85s; }
.hero-tag:nth-child(3) { animation-delay: 0.95s; }
.hero-tag:nth-child(4) { animation-delay: 1.05s; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  opacity: 0;
  animation: heroFadeUp 1s ease 1.2s forwards, heroScrollBounce 2.5s ease-in-out 2s infinite;
}

.hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

@keyframes heroKenBurns {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

@keyframes heroGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-overlay-grid,
  .hero-glow,
  .hero-content > *,
  .hero-tag,
  .hero-scroll-hint {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .hero-scroll-hint { display: none; }
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  transition: 0.25s;
}

.btn:hover {
  background: var(--color-text);
  color: #fff;
}

.btn-accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Sections */
.section {
  padding: var(--section-y) 0;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.center { text-align: center; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.06em;
}

.section-header p {
  color: var(--color-muted);
  margin: 1rem auto 0;
  max-width: 520px;
}

/* Cards grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f3f3f3;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-img img { transform: scale(1.03); }

.card-body {
  padding: 1.75rem 1.5rem 2rem;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.card-body p {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

.card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* Product card */
.product-card .card-img { aspect-ratio: 1/1; background: #fff; }
.product-card .card-img img { object-fit: contain; padding: 1.5rem; }

/* Dept list on home */
.dept-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.dept-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.dept-item:nth-child(even) { direction: rtl; }
.dept-item:nth-child(even) > * { direction: ltr; }

.dept-item h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: 0.08em;
}

.dept-item p {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0;
}

.dept-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #eee;
}

.dept-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Page layout */
.page-hero {
  padding: calc(var(--section-y) * 0.85) 0 calc(var(--section-y) * 0.5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-accent); }

.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  padding: var(--section-y) 0;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}

.sidebar-title {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.sidebar nav a {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--color-text);
}

.content-body {
  max-width: 720px;
}

.content-body h2,
.content-body h3 {
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 2.5rem 0 1rem;
}

.content-body h2:first-child { margin-top: 0; }

.content-body p,
.content-body li {
  color: #444;
  font-size: 0.98rem;
}

.content-body ul {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.content-body ul li { margin-bottom: 0.5rem; }

.content-figure {
  margin: 3rem 0;
}

.content-figure img {
  width: 100%;
  border-radius: 2px;
}

.content-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
}

.page-hero-desc {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--color-muted);
  font-size: 1rem;
}

/* Contact */
.contact-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.contact-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--color-accent);
}

.contact-panel h2 {
  margin: 0 0 1.75rem;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.contact-info {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  column-gap: 1.25rem;
  margin: 0;
  flex: 1;
}

.contact-info dt,
.contact-info dd {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info dt:first-child,
.contact-info dd:nth-child(2) {
  border-top: 1px solid var(--color-border);
}

.contact-info dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.7;
}

.contact-info dd {
  font-size: 0.98rem;
  color: var(--color-text);
  line-height: 1.7;
  word-break: break-word;
}

.contact-info dd a {
  color: var(--color-text);
}

.contact-info dd a:hover {
  color: var(--color-accent);
}

.contact-info .contact-sep {
  margin: 0 0.45rem;
  color: var(--color-muted);
}

.contact-info .contact-mails {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.inquiry-form {
  position: relative;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.inquiry-form.contact-panel {
  max-width: none;
  gap: 1.15rem;
}

.inquiry-form--compact {
  margin-inline: auto;
}

.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.inquiry-form input,
.inquiry-form textarea {
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.85rem 1rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.2s;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--color-accent);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 120px;
}

.inquiry-form.contact-panel textarea {
  min-height: 160px;
  flex: 1;
}

.inquiry-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.inquiry-form .btn {
  align-self: flex-start;
  cursor: pointer;
  background: transparent;
}

.inquiry-form .btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
}

.form-status.is-ok { color: #2f7d4a; }
.form-status.is-err { color: #b42318; }

.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-captcha {
  max-width: 16rem;
}

.form-captcha .captcha-q {
  display: inline-block;
  margin: 0.15rem 0 0.35rem;
  color: var(--color-text);
  letter-spacing: 0.08em;
}

.js-desk-open {
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}

@media (max-width: 640px) {
  .inquiry-form .form-row { grid-template-columns: 1fr; }
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-gallery {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 2rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery img {
  max-height: 100%;
  object-fit: contain;
}

.product-info h1 {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  letter-spacing: 0.04em;
}

.product-specs {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

/* Org chart */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.org-box {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.org-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.org-box.primary {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 3rem 0 2rem;
  margin-top: var(--section-y);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand .logo { margin-bottom: 0.75rem; }

.footer-brand p {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
}

.footer-tech-link {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-tech-link:hover {
  color: var(--color-accent);
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.bg-white { background: var(--color-surface); }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .contact-grid, .product-detail, .page-layout { grid-template-columns: 1fr; }
  .dept-item, .dept-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  .contact-info { grid-template-columns: 1fr; }
  .contact-info dt {
    padding-bottom: 0.2rem;
    border-bottom: none;
  }
  .contact-info dd { padding-top: 0.2rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav .sub-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
  }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 0.75rem; }
}
