/* ==========================================================================
   Qiwang Energy — Export Site Stylesheet
   Design language: clean, spacious, industrial B2B. Light-dominant with
   deep-ink feature bands. One accent (brand green) + one signal (red).
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Ink scale */
  --ink-950: #06121D;
  --ink-900: #0A1A28;
  --ink-800: #0F2436;
  --ink-700: #16344A;
  --ink-600: #1F4761;
  --ink-500: #2E5B77;

  /* Brand green (matched to Qiwang mark) */
  --brand-700: #00754A;
  --brand-600: #00915A;
  --brand-500: #00A868;
  --brand-400: #1FBF83;
  --brand-200: #9BDEC2;
  --brand-050: #E9F8F1;

  /* Signal red (sparingly: alerts, required marks) */
  --signal-600: #C9342A;
  --signal-500: #E23E2B;

  /* Neutrals */
  --paper: #FFFFFF;
  --paper-2: #F7F9FB;
  --paper-3: #EEF2F6;
  --line: #E3E9EF;
  --line-strong: #CFD9E3;

  /* Text */
  --text: #0E1F2D;
  --text-2: #4B5E70;
  --text-3: #7C8C9B;
  --text-inv: #FFFFFF;
  --text-inv-2: #A9BECC;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono",
    Menlo, monospace;

  --fs-hero: clamp(2.35rem, 1.35rem + 3.4vw, 4.15rem);
  --fs-h1: clamp(1.95rem, 1.4rem + 2.1vw, 3.05rem);
  --fs-h2: clamp(1.6rem, 1.28rem + 1.35vw, 2.3rem);
  --fs-h3: clamp(1.15rem, 1.04rem + 0.45vw, 1.42rem);
  --fs-lead: clamp(1.03rem, 0.97rem + 0.3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.795rem;

  /* Space */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 40px;  --s-8: 56px;
  --s-9: 72px;  --s-10: 96px; --s-11: 120px;

  --section-y: clamp(64px, 7.5vw, 118px);
  --container: 1240px;
  --container-narrow: 880px;

  --r-xs: 3px;
  --r-sm: 5px;
  --r: 8px;
  --r-lg: 14px;

  --shadow-xs: 0 1px 2px rgba(10, 26, 40, 0.05);
  --shadow-sm: 0 2px 8px rgba(10, 26, 40, 0.06);
  --shadow: 0 10px 30px rgba(10, 26, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 26, 40, 0.14);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* <picture> is the wrapper _tools/responsive_pass.py puts around every large
   photo so a browser can choose WebP or JPEG.  `display: contents` removes its
   box from the layout, which keeps the <img> inside sizing against exactly the
   containing block it had before the wrapper existed.

   Without this line the percentage heights on `.hero__bg img`,
   `.page-hero__bg img` and `.photo-band__bg img` resolve against the inline
   <picture> box instead of the surrounding div, and every full-bleed
   background photo collapses to its intrinsic height. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 2px; }

/* --- 3. Layout primitives ------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--soft { background: var(--paper-2); }
.section--ink { background: var(--ink-900); color: var(--text-inv); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--text-inv); }
.section--ink .lead, .section--ink p { color: var(--text-inv-2); }
.section--ink .eyebrow { color: var(--brand-400); }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--gap-sm { gap: var(--s-4); }
.grid--gap-lg { gap: var(--s-8); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split--wide-right { grid-template-columns: 0.85fr 1.15fr; }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- 4. Typography ------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; flex: none; }
.eyebrow--plain::before { display: none; }

h1, .h1 { font-size: var(--fs-h1); line-height: 1.14; letter-spacing: -0.022em; font-weight: 700; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.019em; font-weight: 700; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.35; letter-spacing: -0.012em; font-weight: 650; }
h4, .h4 { font-size: 1.02rem; line-height: 1.45; font-weight: 650; letter-spacing: -0.005em; }
.hero-title { font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -0.032em; font-weight: 700; }
.lead { font-size: var(--fs-lead); line-height: 1.68; color: var(--text-2); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.mono { font-family: var(--font-mono); font-size: 0.86em; letter-spacing: -0.01em; }
.section-head { max-width: 720px; margin-bottom: var(--s-8); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.text-balance { text-wrap: balance; }
.measure { max-width: 68ch; }

/* --- 5. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-sm);
  font-size: 0.94rem; font-weight: 650; letter-spacing: 0.005em;
  border: 1px solid transparent; transition: all 0.22s var(--ease);
  white-space: nowrap; line-height: 1.2;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 2px 10px rgba(0, 145, 90, 0.24); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 145, 90, 0.3); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-700); transform: translateY(-1px); }
.btn--outline { border-color: var(--line-strong); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: var(--ink-700); background: var(--paper-2); }
.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { background: var(--paper-3); transform: translateY(-1px); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.32); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; font-size: 0.92rem; color: var(--brand-600);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- 6. Header ----------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.header--over { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.header--over .nav__link, .header--over .brand__name { color: #fff; }
.header--over .brand__sub { color: rgba(255, 255, 255, 0.62); }
.header--over .nav__link:hover { color: #fff; }
.header--over .nav__link::after { background: var(--brand-400); }
.header--over .header__toggle span { background: #fff; }
.header--over .btn--outline { border-color: rgba(255, 255, 255, 0.4); color: #fff; background: transparent; }
.header--over .btn--outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.header.is-solid { background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }
.header.is-solid .nav__link, .header.is-solid .brand__name { color: var(--text); }
.header.is-solid .brand__sub { color: var(--text-3); }
.header.is-solid .header__toggle span { background: var(--ink-900); }
.header.is-solid .btn--outline { border-color: var(--line-strong); color: var(--text); background: #fff; }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.01rem; font-weight: 750; letter-spacing: 0.055em; color: var(--text); transition: color 0.25s var(--ease); }
.brand__sub { font-size: 0.605rem; letter-spacing: 0.075em; text-transform: uppercase; color: var(--text-3); font-weight: 600; transition: color 0.25s var(--ease); }

.nav { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 18px); }
.nav__link {
  position: relative; padding: 8px 10px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-2); transition: color 0.2s var(--ease); white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
  background: var(--brand-600); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); }
/* the active link must stay legible over a dark hero — these two rules come
   after the generic .is-active rule so they win at equal-plus specificity */
.header--over .nav__link.is-active { color: #fff; }
.header.is-solid .nav__link.is-active { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.lang { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.06em; color: var(--text-3); }
.lang a { transition: color 0.2s var(--ease); }
.lang a:hover, .lang a.is-on { color: var(--brand-600); }
.lang span { opacity: 0.4; }

.header__toggle { display: none; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.header__toggle span { display: block; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: all 0.25s var(--ease); }
.header__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 110;
  background: #fff; padding: var(--s-6) 24px var(--s-8);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: all 0.28s var(--ease); overflow-y: auto;
}
.drawer.is-open { transform: none; opacity: 1; visibility: visible; }
.drawer__link { display: block; padding: 15px 0; font-size: 1.06rem; font-weight: 650; border-bottom: 1px solid var(--line); }
.drawer__link.is-active { color: var(--brand-600); }
.drawer__foot { margin-top: var(--s-6); display: grid; gap: var(--s-3); }

/* --- 7. Hero ------------------------------------------------------------- */
.hero { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 18, 29, 0.95) 0%, rgba(6, 18, 29, 0.86) 42%, rgba(6, 18, 29, 0.55) 78%, rgba(6, 18, 29, 0.42) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(120px, 15vw, 190px) 0 clamp(64px, 8vw, 104px); }
.hero__content { max-width: 760px; }
.hero-title { color: #fff; margin-bottom: var(--s-5); }
.hero-title em { font-style: normal; color: var(--brand-400); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.65; color: rgba(255, 255, 255, 0.78); max-width: 620px; margin-bottom: var(--s-7); }
.hero .btn-row { margin-bottom: var(--s-8); }

.hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: var(--s-6); }
.hero__fact b { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: #fff; }
.hero__fact b em { font-style: normal; font-size: 0.62em; font-weight: 650; color: var(--brand-400); margin-left: 2px; }
.hero__fact span { display: block; margin-top: 6px; font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.58); font-weight: 600; }

.hero--compact .hero__inner { padding: clamp(104px, 12vw, 150px) 0 clamp(52px, 6vw, 80px); }

/* --- 8. Page hero (inner pages) ------------------------------------------ */
.page-hero { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,18,29,0.86) 0%, rgba(6,18,29,0.94) 100%); }
.page-hero__inner { position: relative; z-index: 2; padding: clamp(96px, 11vw, 140px) 0 clamp(48px, 5.5vw, 72px); }
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.76); max-width: 700px; margin-top: var(--s-5); }
.page-hero .eyebrow { color: var(--brand-400); }
.page-hero--plain { background: linear-gradient(160deg, var(--ink-900) 0%, var(--ink-800) 60%, var(--ink-700) 100%); }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.5); margin-bottom: var(--s-4); letter-spacing: 0.03em; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-style: normal; opacity: 0.5; }

/* --- 9. Cards ------------------------------------------------------------ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s-6); transition: all 0.28s var(--ease); height: 100%;
  display: flex; flex-direction: column;
}
.card--hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.card--flush { padding: 0; overflow: hidden; }
.card--ink { background: var(--ink-900); border-color: var(--ink-700); color: #fff; }
.card--ink h3, .card--ink h4 { color: #fff; }
.card--ink p { color: var(--text-inv-2); }
.card--soft { background: var(--paper-2); border-color: transparent; }
.card__num {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700;
  color: var(--brand-600); letter-spacing: 0.08em; margin-bottom: var(--s-3);
}
.card__icon {
  width: 44px; height: 44px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; background: var(--brand-050); color: var(--brand-600);
  margin-bottom: var(--s-4);
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--ink { background: rgba(255, 255, 255, 0.09); color: var(--brand-400); }
.card h3, .card h4 { margin-bottom: var(--s-2); }
.card p { font-size: 0.93rem; line-height: 1.65; color: var(--text-2); }
.card__foot { margin-top: auto; padding-top: var(--s-5); }

/* Product card */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: all 0.28s var(--ease); }
.pcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(10, 26, 40, 0.86); color: #fff; backdrop-filter: blur(6px);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-xs);
}
.pcard__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.pcard__model { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--brand-600); letter-spacing: 0.03em; margin-bottom: 6px; }
.pcard__title { font-size: 1.04rem; font-weight: 650; line-height: 1.4; letter-spacing: -0.008em; }
.pcard__specs { margin-top: var(--s-4); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xs); overflow: hidden; }
.pcard__specs div { background: #fff; padding: 9px 8px; text-align: center; }
.pcard__specs b { display: block; font-size: 0.88rem; font-weight: 700; letter-spacing: -0.01em; }
.pcard__specs span { display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); font-weight: 600; margin-top: 2px; }
.pcard__foot { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }

/* --- 10. Stats ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: #fff; padding: var(--s-6) var(--s-5); }
.stat b { display: block; font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink-900); }
.stat b em { font-style: normal; font-size: 0.56em; font-weight: 650; color: var(--brand-600); margin-left: 3px; }
.stat span { display: block; margin-top: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.045em; text-transform: uppercase; color: var(--text-3); }
.section--ink .stats { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.14); }
.section--ink .stat { background: var(--ink-900); }
.section--ink .stat b { color: #fff; }
.section--ink .stat span { color: var(--text-inv-2); }

/* --- 11. Tables ---------------------------------------------------------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: #fff; -webkit-overflow-scrolling: touch; }
table.spec { min-width: 620px; font-size: 0.9rem; }
table.spec caption { text-align: left; padding: var(--s-4) var(--s-5); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); background: var(--paper-2); }
table.spec th, table.spec td { padding: 13px var(--s-5); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { background: var(--paper-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; border-bottom: 1px solid var(--line-strong); }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover td { background: var(--paper-2); }
table.spec td:first-child, table.spec th:first-child { font-weight: 650; color: var(--ink-900); }
table.spec .num { font-family: var(--font-mono); font-size: 0.88em; }
table.spec .hl { color: var(--brand-600); font-weight: 700; }
.section--ink .table-wrap { border-color: var(--ink-700); background: var(--ink-800); }
.section--ink table.spec th, .section--ink table.spec td { border-color: var(--ink-700); color: var(--text-inv-2); }
.section--ink table.spec thead th { background: var(--ink-700); color: #fff; }
.section--ink table.spec td:first-child, .section--ink table.spec th:first-child { color: #fff; }
.section--ink table.spec caption { background: var(--ink-700); color: var(--text-inv-2); border-color: var(--ink-700); }
.section--ink table.spec tbody tr:hover td { background: var(--ink-700); }

/* --- 12. Lists ----------------------------------------------------------- */
.check-list { display: grid; gap: var(--s-3); }
.check-list li { position: relative; padding-left: 28px; font-size: 0.94rem; line-height: 1.62; color: var(--text-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px;
  background: var(--brand-050); border-radius: 50%;
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: calc(0.42em + 5px); width: 5px; height: 8px;
  border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: rotate(40deg);
}
.check-list li b { color: var(--ink-900); font-weight: 650; }
.section--ink .check-list li { color: var(--text-inv-2); }
.section--ink .check-list li b { color: #fff; }
.section--ink .check-list li::before { background: rgba(31, 191, 131, 0.16); }

/* --- 13. Tabs ------------------------------------------------------------ */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: var(--s-6); }
.tab {
  padding: 12px 20px; font-size: 0.9rem; font-weight: 650; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--brand-600); border-bottom-color: var(--brand-600); }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fade-up 0.35s var(--ease) both; }

/* --- 14. Accordion / FAQ ------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5);
  padding: 22px 0; text-align: left; font-size: 1.01rem; font-weight: 650; line-height: 1.5;
  letter-spacing: -0.008em; color: var(--ink-900); transition: color 0.2s var(--ease);
}
.faq__q:hover { color: var(--brand-600); }
.faq__q i { flex: none; width: 20px; height: 20px; position: relative; margin-top: 3px; }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; transition: transform 0.28s var(--ease); }
.faq__q i::before { left: 0; top: 9px; width: 20px; height: 2px; }
.faq__q i::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq__item.is-open .faq__q { color: var(--brand-600); }
.faq__item.is-open .faq__q i::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.36s var(--ease); }
.faq__a-inner { padding: 0 0 24px; font-size: 0.94rem; line-height: 1.72; color: var(--text-2); max-width: 78ch; }
.faq__a-inner p + p { margin-top: 12px; }
.section--ink .faq, .section--ink .faq__item { border-color: var(--ink-700); }
.section--ink .faq__q { color: #fff; }
.section--ink .faq__a-inner { color: var(--text-inv-2); }

/* --- 15. Forms ----------------------------------------------------------- */
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.field > label .req { color: var(--signal-500); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 0.94rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #A9B6C2; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(0, 168, 104, 0.14); }
.textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%234B5E70' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 11px; padding-right: 40px; }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--signal-500); }
.field__err { font-size: var(--fs-xs); color: var(--signal-600); display: none; }
.field.is-error .field__err { display: block; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand-600); flex: none; }
.form__note { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.6; }
.form__status { padding: 13px 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); display: none; }
.form__status.is-on { display: block; }
.form__status--ok { background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-200); }
.form__status--err { background: #FDF0EF; color: var(--signal-600); border: 1px solid #F5CFCB; }
.form__status--wait { background: var(--paper-2); color: var(--text-2); border: 1px solid var(--line); }
.form__status:empty { display: none; }

/* The honeypot.  Moved off-screen rather than hidden with display:none: a bot
   that skips fields it cannot render would skip this one too, and then it is
   not a gate at all.  Nothing here is reachable by tab or by a screen reader,
   so a person cannot fill it by accident. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field__hint { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.55; }

/* The file control keeps the .input box so it sits in the same rhythm as every
   other field; only the inner button needs taming. */
.input--file { padding: 9px 12px; font-size: var(--fs-sm); cursor: pointer; }
.input--file::file-selector-button,
.input--file::-webkit-file-upload-button {
  margin-right: 12px; padding: 6px 12px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  background: var(--paper-2); color: var(--text-2);
  font: inherit; font-size: var(--fs-sm); font-weight: 600;
}
.input--file:hover::file-selector-button { border-color: var(--brand-400); color: var(--brand-700); }

.form__privacy { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.form__privacy > summary {
  cursor: pointer; font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-2); list-style-position: inside;
}
.form__privacy > summary:hover { color: var(--brand-600); }
.form__privacy > p { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-3); line-height: 1.65; }
.form__privacy[open] > summary { color: var(--brand-700); }

/* --- 16. Selector tool --------------------------------------------------- */
.selector { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.selector__head { padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line); background: var(--paper-2); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.selector__head h3 { margin: 0; }
.selector__body { display: grid; grid-template-columns: 1fr 1fr; }
.selector__inputs { padding: var(--s-6); border-right: 1px solid var(--line); display: grid; gap: var(--s-5); align-content: start; }
.selector__out { padding: var(--s-6); background: var(--ink-900); color: #fff; }
.selector__out h4 { color: #fff; margin-bottom: var(--s-4); }
.opt-group { display: grid; gap: 9px; }
.opt-group > span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; color: var(--text-2); background: #fff;
  transition: all 0.2s var(--ease);
}
.opt:hover { border-color: var(--ink-700); color: var(--text); }
.opt.is-on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.result-model { font-family: var(--font-mono); font-size: 1.28rem; font-weight: 700; color: var(--brand-400); letter-spacing: -0.01em; }
.result-desc { font-size: 0.9rem; color: var(--text-inv-2); margin-top: 8px; line-height: 1.6; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-sm); overflow: hidden; margin: var(--s-5) 0; }
.result-grid div { background: var(--ink-900); padding: 12px 14px; }
.result-grid b { display: block; font-size: 0.96rem; font-weight: 700; color: #fff; font-family: var(--font-mono); }
.result-grid span { display: block; font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-inv-2); font-weight: 600; margin-top: 3px; }
.result-list { display: grid; gap: 0; margin-top: var(--s-4); }
.result-list div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.845rem; }
.result-list div:last-child { border-bottom: 0; }
.result-list span:first-child { color: var(--text-inv-2); font-weight: 600; flex: none; }
.result-list span:last-child { color: #fff; font-weight: 650; text-align: right; }

/* --- 16c. Fitment finder ------------------------------------------------- */
.fitment { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: var(--s-6); box-shadow: var(--shadow-sm); }
.fitment__bar { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-6); align-items: end; margin-bottom: var(--s-6); }
.fitment .opts { max-height: 112px; overflow-y: auto; padding-right: 2px; }
.fitment .opt { padding: 7px 13px; font-size: 0.82rem; }
.fitment .table-wrap { max-height: 620px; overflow-y: auto; }
.fitment table.spec thead th { position: sticky; top: 0; z-index: 2; }
.fitment__foot { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-5); }
@media (max-width: 860px) {
  .fitment { padding: var(--s-5); }
  .fitment__bar { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* --- 16b. Callout -------------------------------------------------------- */
.note {
  border-left: 3px solid var(--brand-500); background: var(--brand-050);
  padding: var(--s-4) var(--s-5); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.9rem; line-height: 1.65; color: var(--text-2);
}
.note b { color: var(--ink-900); }
.section--ink .note { background: rgba(31, 191, 131, 0.1); border-left-color: var(--brand-400); color: var(--text-inv-2); }
.section--ink .note b { color: #fff; }

.spec-list { display: grid; gap: 0; }
.spec-list div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list span:first-child { color: var(--text-2); }
.spec-list span:last-child { font-weight: 650; color: var(--ink-900); text-align: right; }

/* --- 17. CTA band -------------------------------------------------------- */
.cta-band { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(0, 168, 104, 0.24) 0%, transparent 68%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 2; padding: var(--section-y) 0; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--s-8); align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-inv-2); margin-top: var(--s-4); font-size: var(--fs-lead); }
.cta-band__actions { display: grid; gap: var(--s-3); justify-items: stretch; }

/* --- 18. Footer ---------------------------------------------------------- */
.footer { background: var(--ink-950); color: var(--text-inv-2); padding: var(--s-9) 0 var(--s-5); font-size: 0.9rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: rgba(255, 255, 255, 0.42); }
.footer__about { margin-top: var(--s-4); font-size: 0.875rem; line-height: 1.7; color: rgba(255, 255, 255, 0.55); max-width: 42ch; }
.footer h5 { color: #fff; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer__links { display: grid; gap: 11px; }
.footer__links a { color: rgba(255, 255, 255, 0.6); transition: color 0.2s var(--ease); font-size: 0.88rem; }
.footer__links a:hover { color: var(--brand-400); }
.footer__contact { display: grid; gap: 14px; }
.footer__contact div { display: flex; gap: 10px; font-size: 0.875rem; line-height: 1.55; }
.footer__contact svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--brand-400); }
.footer__contact a { color: rgba(255, 255, 255, 0.72); }
.footer__contact a:hover { color: var(--brand-400); }
.footer__bottom { padding-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.4); }
.footer__certs { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__certs span { padding: 4px 9px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--r-xs); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.55); }

/* --- 19. Floating inquiry rail ------------------------------------------- */
.rail {
  position: fixed; right: 22px; bottom: 24px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.rail__btn {
  display: flex; align-items: center; gap: 9px; padding: 12px 17px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); font-size: 0.86rem; font-weight: 650; color: var(--text);
  transition: all 0.22s var(--ease);
}
.rail__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rail__btn svg { width: 17px; height: 17px; color: var(--brand-600); }
.rail__btn--primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 6px 22px rgba(0, 145, 90, 0.34); }
.rail__btn--primary svg { color: #fff; }
.rail__btn--primary:hover { background: var(--brand-700); }
.rail__btn--wa svg { color: #25D366; }
.rail__btn--wx svg { color: #07C160; }

/* WeChat entry.  Only the zh/ tree renders it -- see _tools/zh_polish.py.
   There is no web link that opens a WeChat conversation (weixin:// is not
   reachable from a page), so the QR code is the only usable affordance, and it
   is what Chinese visitors expect to see behind a 微信 button.  The panel is
   anchored to the *left* of the rail because the rail is pinned to the right
   edge of the viewport. */
.rail__wx { position: relative; display: flex; }
.rail__wx-pop {
  position: absolute; right: calc(100% + 12px); bottom: 0;
  width: 226px; padding: 13px 13px 11px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); text-align: center;
}
.rail__wx-pop[hidden] { display: none; }
/* The QR fills the panel's inner width, which is what sets the module size and
   therefore how far away the code still scans.  Measured, not estimated: the
   asset is a 420 px canvas holding a 334 px symbol, so at the 200 px inner width
   the symbol renders ~159 px across a 33-module code -- about 4.8 px per module.
   That scans comfortably from a normal viewing distance.  Do not shrink this
   without re-checking scannability. */
.rail__wx-pop img { display: block; width: 100%; height: auto; border-radius: var(--r-xs); }
.rail__wx-pop b { display: block; margin-top: 9px; font-size: 0.82rem; font-weight: 650; }
.rail__wx-pop span { display: block; margin-top: 3px; font-size: 0.74rem; color: var(--text-3); }
/* Narrow phones.  The panel is anchored to the left of the rail, so what matters
   is that its left edge stays on screen: at <=860px the rail is icon-only (43px
   wide, right: 14px), which leaves 360 - 14 - 43 - 12 - 210 = 81px of slack at a
   360px viewport.  There is room for 210px here, so take it -- the QR is the only
   WeChat affordance there is, and 210px keeps the symbol at ~4.6px per module
   rather than the ~4.0px that 186px would give. */
@media (max-width: 520px) {
  .rail__wx-pop { width: 210px; padding: 11px 11px 10px; }
  .rail__wx-pop b { margin-top: 8px; font-size: 0.79rem; }
}

/* --- 20. Utilities / motion ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(0, 168, 104, 0.4); } 70% { box-shadow: 0 0 0 14px rgba(0, 168, 104, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 168, 104, 0); } }
.pulse { animation: pulse-ring 2.6s infinite; }

/* spacing utilities */
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); } .mb-7 { margin-bottom: var(--s-7); }
.mb-8 { margin-bottom: var(--s-8); }
.pt-0 { padding-top: 0; } .pb-0 { padding-bottom: 0; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  background: var(--brand-050); color: var(--brand-700); border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.02em;
}
.badge--ink { background: rgba(255, 255, 255, 0.1); color: var(--brand-400); }
.badge--outline { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); }
.badge svg { width: 13px; height: 13px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cert { background: #fff; padding: var(--s-5); text-align: center; transition: background 0.22s var(--ease); }
.cert:hover { background: var(--paper-2); }
.cert b { display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em; color: var(--ink-900); }
.cert span { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 84px 1fr; gap: var(--s-5); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-item b { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 700; color: var(--brand-600); letter-spacing: 0.02em; }
.tl-item h4 { margin-bottom: 5px; }
.tl-item p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

.media-frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--paper-3); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame--ratio { aspect-ratio: 4 / 3; }
.media-frame--wide { aspect-ratio: 16 / 10; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.gallery__item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: var(--paper-3); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(6, 18, 29, 0.82));
  color: #fff; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em;
}

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6, 18, 29, 0.94); display: none; align-items: center; justify-content: center; padding: 5vw; }
.lightbox.is-open { display: flex; animation: fade-up 0.25s var(--ease) both; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: var(--r); }
.lightbox__close { position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.72); font-size: var(--fs-sm); }

/* --- 20b. Photography ---------------------------------------------------- */
/* The inner-page hero used to drop its photo to 34% opacity under a
   near-opaque gradient, which read as a flat dark panel. Full opacity plus a
   directional scrim keeps the headline legible and lets the plant show. */
.page-hero__bg img { opacity: 1; object-position: center 58%; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 16, 26, 0.94) 0%, rgba(5, 16, 26, 0.87) 28%, rgba(5, 16, 26, 0.54) 58%, rgba(5, 16, 26, 0.16) 100%),
    linear-gradient(180deg, rgba(5, 16, 26, 0.30) 0%, rgba(5, 16, 26, 0) 40%, rgba(5, 16, 26, 0.56) 100%);
}
.page-hero { min-height: clamp(400px, 44vw, 560px); }
.page-hero__inner { padding: clamp(122px, 13vw, 170px) 0 clamp(56px, 6.5vw, 88px); }

.hero__bg::after {
  background: linear-gradient(100deg, rgba(6, 18, 29, 0.94) 0%, rgba(6, 18, 29, 0.85) 40%, rgba(6, 18, 29, 0.46) 76%, rgba(6, 18, 29, 0.28) 100%);
}

/* Full-bleed photo band ---------------------------------------------------- */
.photo-band { position: relative; overflow: hidden; background: var(--ink-900); color: #fff; }
.photo-band__bg { position: absolute; inset: 0; }
.photo-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.photo-band__bg::after { content: ""; position: absolute; inset: 0; }
.photo-band--left .photo-band__bg::after {
  background: linear-gradient(100deg, rgba(5, 16, 26, 0.95) 0%, rgba(5, 16, 26, 0.87) 36%, rgba(5, 16, 26, 0.52) 70%, rgba(5, 16, 26, 0.28) 100%);
}
.photo-band--bottom .photo-band__bg::after {
  background: linear-gradient(180deg, rgba(5, 16, 26, 0.16) 0%, rgba(5, 16, 26, 0.44) 44%, rgba(5, 16, 26, 0.93) 100%);
}
.photo-band--full .photo-band__bg::after {
  background: linear-gradient(180deg, rgba(5, 16, 26, 0.74) 0%, rgba(5, 16, 26, 0.36) 40%, rgba(5, 16, 26, 0.88) 100%);
}
.photo-band__inner { position: relative; z-index: 2; padding: clamp(76px, 9vw, 132px) 0; }
.photo-band--tall .photo-band__inner { padding: clamp(118px, 15vw, 214px) 0; }
.photo-band__card { max-width: 640px; }
.photo-band--right .photo-band__card { margin-left: auto; }
.photo-band h2, .photo-band h3, .photo-band h4 { color: #fff; }
.photo-band .lead { color: rgba(255, 255, 255, 0.8); margin-top: var(--s-4); }
.photo-band p { color: rgba(255, 255, 255, 0.78); }
.photo-band .eyebrow { color: var(--brand-400); }
.photo-band .btn-row { margin-top: var(--s-7); }

/* Numbers sitting on the photograph --------------------------------------- */
.stat-overlay {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: var(--s-8); border-radius: var(--r); overflow: hidden;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.18);
}
.stat-overlay > div {
  background: rgba(6, 18, 29, 0.44); padding: var(--s-5);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.stat-overlay b { display: block; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: #fff; }
.stat-overlay b em { font-style: normal; font-size: 0.62em; font-weight: 650; color: var(--brand-400); margin-left: 2px; }
.stat-overlay span { display: block; margin-top: 6px; font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); font-weight: 600; }

/* Image beside copy -------------------------------------------------------- */
.media-split { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(30px, 4.5vw, 72px); align-items: center; }
.media-split--flip > :first-child { order: 2; }
.media-split__media { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--paper-3); cursor: zoom-in; margin: 0; }
.media-split__media img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.media-split__media:hover img { transform: scale(1.035); }
.media-split--wide .media-split__media img { aspect-ratio: 3 / 2; }
.media-split__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 13px;
  background: linear-gradient(transparent, rgba(6, 18, 29, 0.84));
  color: #fff; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em;
}

/* Scrollable thumbnail strip ---------------------------------------------- */
.photo-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 1fr);
  gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-4);
}
.photo-strip::-webkit-scrollbar { height: 6px; }
.photo-strip::-webkit-scrollbar-track { background: var(--paper-3); border-radius: 3px; }
.photo-strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.photo-strip figure { margin: 0; scroll-snap-align: start; cursor: zoom-in; }
.photo-strip img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: var(--r-sm); border: 1px solid var(--line); transition: transform 0.45s var(--ease);
}
.photo-strip figure:hover img { transform: translateY(-3px); }

/* Gallery variants --------------------------------------------------------- */
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery--mixed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery--mixed .gallery__item--wide { grid-column: span 2; }
.gallery--mixed .gallery__item--tall { grid-row: span 2; aspect-ratio: 3 / 4; }
/* Storage gallery ---------------------------------------------------------
   Wall-mounted and floor-standing modules are portrait hardware.  Under the
   4:3 default every standing unit lost its top and bottom to object-fit, so
   this variant gives the cells the shape of the product.  Sources are cut to
   3:4 in _tools/prep_ess.py -- the two must stay in step. */
.gallery--modules { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery--modules .gallery__item { aspect-ratio: 3 / 4; }
.gallery__item--contain img { object-fit: contain; background: #fff; padding: 7%; }

.figure-cap { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--text-3); line-height: 1.6; }

/* --- 21. Responsive ------------------------------------------------------ */
/* Eight nav items: tighten the bar in stages before the drawer takes over
   at 1180px, otherwise the quote button is pushed off the right edge. */
@media (max-width: 1440px) {
  .nav { gap: 2px; }
  .nav__link { padding: 8px 7px; font-size: 0.85rem; }
  .nav__link::after { left: 7px; right: 7px; }
  .header__inner { gap: var(--s-4); }
}
@media (max-width: 1280px) {
  .nav__link { padding: 8px 5px; font-size: 0.815rem; }
  .nav__link::after { left: 5px; right: 5px; }
  .brand__sub { font-size: 0.55rem; letter-spacing: 0.05em; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .header__toggle { display: flex; }
  .header__actions .btn { display: none; }
  .lang { display: none; }
  .drawer .lang { display: flex; margin-top: var(--s-5); font-size: 0.86rem; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
  .selector__body { grid-template-columns: 1fr; }
  .selector__inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { grid-auto-flow: column; grid-auto-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; gap: var(--s-6); }
  .grid--3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .hero__inner { padding-top: 104px; }
  .rail__btn span { display: none; }
  .rail__btn { padding: 13px; border-radius: 50%; }
  .rail { right: 14px; bottom: 16px; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .cta-band__actions { grid-auto-flow: row; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .pcard__specs { grid-template-columns: repeat(3, 1fr); }
  table.spec th, table.spec td { padding: 11px 14px; }
  .selector__inputs, .selector__out, .card { padding: var(--s-5); }
}

/* --- 22. Responsive, photography ----------------------------------------- */
@media (max-width: 1180px) {
  .gallery--4, .gallery--mixed, .gallery--modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-overlay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .media-split, .media-split--flip { grid-template-columns: 1fr; }
  .media-split--flip > :first-child { order: 0; }
  .gallery--4, .gallery--mixed, .gallery--modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--mixed .gallery__item--tall { grid-row: span 1; aspect-ratio: 4 / 3; }
  .page-hero { min-height: 0; }
  .photo-band--tall .photo-band__inner { padding: clamp(76px, 9vw, 132px) 0; }
}
@media (max-width: 620px) {
  .gallery--4, .gallery--mixed, .gallery--modules { grid-template-columns: 1fr; }
  .gallery--mixed .gallery__item--wide { grid-column: span 1; }
  .stat-overlay { grid-template-columns: 1fr 1fr; }
  .photo-strip { grid-auto-columns: minmax(190px, 1fr); }
}

/* --- 22b. Chinese edition (zh/) ------------------------------------------ */
/*
   The zh/ tree reuses this sheet unchanged.  Two adjustments are needed, and
   both are scoped to html[lang^="zh"] so the English pages are untouched.

   1. Type size.  --fs-hero is tuned for Latin, where a line holds roughly half
      as many words as the same line holds syllables in Han characters.  At the
      Latin size the 20-character Chinese headline breaks every 10 characters
      and lands on a bad one; the smaller face fits 12, so the line ends on the
      comma -- which is where a Chinese headline wants to break.

   2. Line breaking.  A browser may break between any two Han characters.  That
      is right in running prose and wrong inside a compound term, where it can
      orphan the head noun ("...储能电池 / 包").  The zh/ build wraps such terms,
      and the emphasis inside a heading, in .nb.
*/
html[lang^="zh"] {
  --fs-hero: clamp(2.05rem, 1.25rem + 2.8vw, 3.55rem);
  /* Same reasoning one size down, for the inner-page heroes.  Chinese carries
     roughly a syllable per character, so at the Latin size a page-hero headline
     overruns into a third line whose last line is a two-character stub. */
  --fs-h1: clamp(1.85rem, 1.3rem + 1.9vw, 2.85rem);
}
/* A long Chinese hero can end with two characters on the last line ("...标准 /
   品。").  text-wrap:pretty exists to avoid exactly that, and is ignored where
   it is unsupported.  Scoped to h1: the h2s carry .text-balance, which is the
   better look at that size and which pretty would override. */
html[lang^="zh"] h1 { text-wrap: pretty; }
.nb { white-space: nowrap; }

/* --- 23. Print ----------------------------------------------------------- */
@media print {
  .header, .rail, .drawer, .cta-band, .footer__bottom { display: none; }
  body { color: #000; }
  .section { padding: 24px 0; }
}
