:root {
  color-scheme: light;
  --ink: #161821;
  --muted: #505766;
  --blue: #224be3;
  --line: #e7eaf0;
  --soft: #f5f6f9;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
p, h1, h2, figure, dl, dd { margin: 0; }
.frame { width: min(100% - 96px, 1280px); margin-inline: auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / .88);
  backdrop-filter: blur(12px);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 1.3rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.04em;
}

.brand-suffix { color: var(--blue); margin-inline-start: .14em; }
.brand-symbol {
  width: 23px;
  height: 23px;
  flex: none;
  background: var(--blue);
  clip-path: polygon(0 0, 37% 0, 53% 31%, 74% 0, 100% 0, 68% 48%, 100% 100%, 63% 100%, 47% 69%, 26% 100%, 0 100%, 32% 52%);
}

.nav { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 46px); font-size: .875rem; color: var(--muted); }
.nav a { display: flex; align-items: center; min-height: 44px; }
.nav a:hover { color: var(--blue); }

.hero { padding-block: 24px 0; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgb(231 234 240 / .85);
  border-radius: 24px;
  background:
    radial-gradient(60% 80% at 15% 20%, rgb(34 75 227 / .08), transparent 65%),
    radial-gradient(50% 70% at 85% 80%, rgb(99 132 255 / .10), transparent 65%),
    #f3f5fa;
  box-shadow: 0 20px 50px rgb(22 24 33 / .05);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 56px 12px 56px clamp(42px, 6vw, 96px);
}

h1 {
  font-size: clamp(2.75rem, 5.2vw, 5.25rem);
  letter-spacing: -.065em;
  line-height: 1.1;
  font-weight: 850;
}

.intro { max-width: 22em; margin-top: 20px; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--muted); }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b59ff, #1a3ec7);
  color: white;
  padding-inline: 24px;
  font-size: .9375rem;
  font-weight: 650;
  box-shadow: 0 8px 20px rgb(34 75 227 / .25);
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 220ms ease, filter 220ms ease;
}
.button:hover {
  background: linear-gradient(135deg, #224be3, #1533a8);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgb(34 75 227 / .34);
}

.hero-figure {
  position: relative;
  min-width: 0;
  min-height: clamp(360px, 38vw, 480px);
  align-self: stretch;
}
.hero-figure img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14%;
  pointer-events: none;
  background: linear-gradient(90deg, #eff0f2, transparent);
}
.hero-figure figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 17px 15px auto;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgb(255 255 255 / .9);
  color: var(--muted);
  font-size: .8125rem;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.details > div {
  padding: clamp(20px, 3vw, 35px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  line-height: 1.75;
}
.details dt { font-size: 1.2rem; font-weight: 750; }
.details dd { margin-top: 8px; color: var(--muted); }

.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 82px; }

@media (max-width: 950px) {
  .frame { width: calc(100% - 56px); }
  .hero-copy { padding-left: clamp(26px, 5vw, 48px); }
}

@media (max-width: 720px) {
  .frame { width: calc(100% - 40px); }
  .hero { padding-top: 16px; }
  .hero-layout { grid-template-columns: 1fr; border-radius: 18px; }
  .hero-copy { padding: 42px 20px 28px; text-align: center; }
  h1 { font-size: clamp(2.4rem, 8.4vw, 3.8rem); }
  .intro { margin: 14px auto 0; }
  .button { margin-top: 23px; }
  .hero-figure { min-height: 0; }
  .hero-figure img { position: static; height: auto; }
  .hero-figure::after { inset: 0 0 auto; width: auto; height: 14%; background: linear-gradient(#eff0f2, transparent); }
  .details { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 390px) {
  .frame { width: calc(100% - 28px); }
  .header-inner { gap: 10px; }
  .nav { gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.language {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 42px;
  padding-inline: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 650;
}

.language:hover { border-color: var(--blue); color: var(--blue); }
.header .nav { margin-inline-start: auto; }
.section { padding-block-start: clamp(36px, 4.5vw, 60px); scroll-margin-top: 24px; }
.section-title { max-width: 42rem; }
.section-title h2 {
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  letter-spacing: -.05em;
  line-height: 1.12;
}
.section-title p { margin-top: 15px; color: var(--muted); line-height: 1.75; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.gallery figure, .rate-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--soft);
}
.gallery figcaption { padding: 16px 20px; font-weight: 650; }

.rate-table { margin-top: 26px; }
.rate-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: start;
}
.rate-table th, .rate-table td { padding: 16px clamp(10px, 2vw, 26px); text-align: start; }
.rate-table th { background: var(--soft); font-size: .9375rem; }
.rate-table td { border-top: 1px solid var(--line); }
.rate-table .awaiting-rates { color: var(--muted); padding-block: 25px; }

.contact-section { padding-block-end: clamp(36px, 4.5vw, 60px); }
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 64px);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(65% 90% at 90% 15%, rgb(79 124 255 / .38), transparent 60%),
    linear-gradient(135deg, #111c42 0%, #1a2e70 58%, #2042b8 100%);
  box-shadow: 0 24px 48px rgb(24 41 95 / .22);
}
.contact-panel .section-title p { color: #e0e6fb; }
.contact-status {
  flex: none;
  padding: 10px 15px;
  border: 1px solid #9cafd9;
  border-radius: 8px;
  font-size: .875rem;
}

@media (max-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    padding-top: 8px;
  }
  .header .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-area: 2 / 1 / 3 / 3;
    gap: 4px;
    margin-inline-start: 0;
  }
  .nav a { justify-content: center; padding: 4px 2px; text-align: center; line-height: 1.25; }
  .language { grid-area: 1 / 2 / 2 / 3; }
  .gallery { gap: 10px; }
  .gallery figcaption { padding: 13px 10px; font-size: .875rem; }
  .contact-panel { flex-direction: column; align-items: flex-start; }
}


.nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.home-page { padding-block-end: clamp(28px, 5vw, 64px); }
.detail-page { min-height: calc(100svh - 151px); }
.detail-page .section { padding-block-end: clamp(52px, 6.5vw, 94px); }
.detail-page .section-title h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  letter-spacing: -.05em;
  line-height: 1.12;
}

.home-page h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
html[lang="en"] .home-page h1 { font-size: clamp(2.4rem, 4.3vw, 4rem); }
.manufacturer { margin-bottom: 15px; color: var(--blue); font-size: .875rem; font-weight: 750; letter-spacing: .09em; }
.home-page .intro { font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .button { margin-top: 0; border: 1px solid transparent; }
.hero-actions .button-secondary {
  border-color: #b7c0d3;
  background: transparent;
  color: #17254f;
}
.hero-actions .button-secondary:hover { border-color: var(--blue); color: var(--blue); }

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(26px, 6vw, 90px);
  padding-block: clamp(32px, 4vw, 56px);
}
.production-photo {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--soft);
}
.production-photo img { display: block; width: 100%; height: auto; }
.production-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgb(255 255 255 / .94);
  color: var(--muted);
  font-size: .8125rem;
}

.home-resources { padding-top: clamp(22px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.resource-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.resource-links a {
  display: block;
  height: 100%;
  padding: clamp(16px, 2.7vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.resource-links a:hover { border-color: var(--blue); }
.resource-links h3 { margin: 0; color: var(--blue); font-size: 1.15rem; }
.resource-links p { margin-top: 7px; color: var(--muted); line-height: 1.6; }

@media (max-width: 720px) {
  .hero-actions { justify-content: center; }
  .home-about, .resource-links { grid-template-columns: 1fr; }
  .home-about .section-title { grid-row: 1; }
}

/* UI polish & richer content components */
.resource-links a,
.details > div,
.gallery figure {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.resource-links a:hover,
.details > div:hover,
.gallery figure:hover {
  transform: translateY(-2px);
  border-color: #c8d1e3;
  box-shadow: 0 10px 24px rgb(22 24 33 / .06);
}
.gallery img { transition: transform 320ms ease; }
.gallery figure:hover img { transform: scale(1.03); }

.rate-table tbody tr { transition: background 150ms ease; }
.rate-table tbody tr:hover { background: var(--soft); }

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.metric-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.metric-value {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue);
}
.metric-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: .875rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .875rem;
  font-weight: 550;
}
.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / .12);
  flex: none;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.faq-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.faq-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.faq-item p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
  font-size: .9375rem;
}

/* Big-tech glassmorphism & motion */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.detail-page .section-title { animation: fadeUp 620ms cubic-bezier(.22, 1, .36, 1) both; }
.hero-figure,
.rate-table { animation: fadeUp 720ms cubic-bezier(.22, 1, .36, 1) 80ms both; }
.metric-card,
.gallery figure,
.details > div { animation: fadeUp 620ms cubic-bezier(.22, 1, .36, 1) 140ms both; }

.hero-figure figcaption,
.production-photo figcaption {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgb(255 255 255 / .72);
  border: 1px solid rgb(255 255 255 / .8);
  box-shadow: 0 4px 14px rgb(22 24 33 / .08);
}

.metric-card,
.faq-item,
.swatch {
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1), box-shadow 240ms ease, border-color 240ms ease;
}
.metric-card:hover,
.faq-item:hover,
.swatch:hover {
  transform: translateY(-3px);
  border-color: #c2cce0;
  box-shadow: 0 14px 30px rgb(22 24 33 / .07);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .detail-page .section-title,
  .hero-figure,
  .rate-table,
  .metric-card,
  .gallery figure,
  .details > div { animation: none; }
}

/* Keep sections readable before or without scripting. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible { animation: fadeUp 520ms cubic-bezier(.22, 1, .36, 1); }
}

/* Scenarios grid */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.scenario-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1), box-shadow 240ms ease, border-color 240ms ease;
}
.scenario-card:hover {
  transform: translateY(-3px);
  border-color: #c2cce0;
  box-shadow: 0 14px 30px rgb(22 24 33 / .07);
}
.scenario-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 750;
}
.scenario-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-accordion {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.faq-accordion details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.faq-accordion details[open] {
  background: #fff;
  border-color: #c2cce0;
  box-shadow: 0 10px 24px rgb(22 24 33 / .05);
}
.faq-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--blue);
  transition: transform 200ms ease;
}
.faq-accordion details[open] summary::after {
  transform: rotate(45deg);
}
.faq-accordion details p {
  padding: 0 22px 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: .9375rem;
}

@media (max-width: 950px) {
  .scenarios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .scenarios-grid { grid-template-columns: 1fr; }
}

.stock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 60px);
  border-radius: 18px;
  background: #eff3ff;
}
.stock-panel .button { flex: none; margin-top: 0; }
.home-resources { margin-top: clamp(32px, 6vw, 74px); }

.gallery-actions, .model-search-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.gallery-actions { margin-top: 24px; }
.gallery-actions .button, .model-search .button { margin-top: 0; }
.button:is(button) {
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
}
.gallery-actions .button-secondary {
  border: 1px solid #b7c0d3;
  background: #fff;
  color: #17254f;
}
.gallery-actions .button-secondary:hover { border-color: var(--blue); color: var(--blue); }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-model-link { display: block; margin-top: 5px; color: var(--blue); font-size: .875rem; }

.model-search { margin-top: 24px; }
.model-search label { display: block; margin-bottom: 7px; font-size: .875rem; font-weight: 700; }
.model-search input {
  width: min(100%, 20rem);
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #aab3c5;
  border-radius: 8px;
  font: inherit;
}
.model-search a { color: var(--blue); font-size: .875rem; text-decoration: underline; }
.gallery-actions [hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

@media (max-width: 600px) {
  .stock-panel { align-items: flex-start; flex-direction: column; }
  .gallery { grid-template-columns: 1fr; }
  .rate-table :is(th, td) { overflow-wrap: anywhere; }
}
