/* ==========================================================================
   Treasun — Lithium battery & energy storage design system
   重构日期：2026-10-20
   风格：石墨深底 + 电青/能源绿点缀 + 技术排版（IBM Plex Sans / Mono）
   ========================================================================== */

:root {
  /* 深底层级 */
  --ink-900: #06090d;
  --ink-850: #080d13;
  --ink-800: #0b1118;
  --ink-700: #101a24;
  --ink-600: #16222e;
  --ink-500: #1d2c3a;

  /* 浅底层级 */
  --paper: #ffffff;
  --paper-2: #f5f7fa;
  --paper-3: #eaeef3;

  /* 文字 */
  --text: #0d1620;
  --text-2: #445464;
  --text-3: #6d7f90;
  --on-dark: #eef3f8;
  --on-dark-2: #a9b8c7;
  --on-dark-3: #74879a;

  /* 强调 */
  --teal: #00d6a0;
  --teal-600: #00b187;
  --teal-050: #e6fbf4;
  --blue: #2f6bff;
  --amber: #f5a524;
  --amber-050: #fff5e4;
  --danger: #d64545;

  /* 线 */
  --line: #e2e8ef;
  --line-2: #cfd8e2;
  --line-dark: rgba(255, 255, 255, .10);
  --line-dark-2: rgba(255, 255, 255, .18);

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(13, 22, 32, .06), 0 4px 14px rgba(13, 22, 32, .05);
  --shadow-2: 0 8px 30px rgba(13, 22, 32, .10);
  --shadow-dark: 0 20px 60px rgba(0, 0, 0, .45);

  --container: 1240px;
  --header-h: 72px;

  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 920px; }

.hp {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: #04140e; padding: 10px 16px; z-index: 200;
}
.hp:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------------- 排版工具 ---------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 14px;
  font-weight: 500;
}
.eyebrow--light { color: var(--teal); }

.h-display {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 20px;
}
.h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 650; letter-spacing: -.015em; }
.h3 { font-size: 20px; font-weight: 600; }
.h4 { font-size: 16px; font-weight: 600; }

.lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); line-height: 1.6; }
.lede--light { color: var(--on-dark-2); }

.mono { font-family: var(--mono); }
.text-mute { color: var(--text-3); }
.small { font-size: 14px; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: #04140e; }
.btn--primary:hover { background: #00efb4; }
.btn--dark { background: var(--ink-800); color: #fff; }
.btn--dark:hover { background: var(--ink-700); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); background: var(--paper-2); }
.btn--ghost-light { background: transparent; color: #fff; border-color: var(--line-dark-2); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------------- 头部 ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 13, 19, .92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__bar {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__logo { height: 34px; width: auto; filter: brightness(0) invert(1); }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand__text { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: #fff; }

.main-nav { flex: 1 1 auto; }
.main-nav > ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 10px 14px;
  font-size: 15px; font-weight: 500; color: var(--on-dark-2);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.main-nav > ul > li > a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.main-nav .is-current > a { color: #fff; }

.mega {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 640px;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-dark);
  padding: 18px;
  display: none;
  z-index: 60;
}

/* 悬停桥接（关键修复）
   .mega 顶边在触发器下方 8px 处（top: calc(100% + 8px)），且面板宽 640px 远宽于
   触发器本身（约 140px）。鼠标从触发器移向面板时，会先经过这段既不属于 li 也不属于
   面板的空白 —— :hover 立刻失效，面板在鼠标到达前就消失。
   这个透明伪元素向上探出 9px、宽度自动等于面板宽度，把整条死区补成命中区：
   命中伪元素即命中 .mega，而 .mega 是 li 的后代，所以 li:hover 不断开。
   高度取 9px（间隙 8px + 1px 余量）以避免亚像素缝隙；只向上探，不遮挡面板内容。 */
.mega::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -9px;
  height: 9px;
}

/* 悬停、键盘聚焦、或 JS 悬停意图判定为打开时都展开。
   .is-open 由 site.js 维护：鼠标离开后延迟 180ms 才移除，用来兜住斜穿相邻菜单项的
   移动路径；键盘用户靠 :focus-within 也能展开。 */
.has-sub:hover .mega,
.has-sub:focus-within .mega,
.has-sub.is-open .mega { display: block; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 18px; }
.mega__head {
  display: block; font-weight: 600; color: #fff; font-size: 14px;
  padding: 8px 10px; border-radius: 5px;
}
.mega__head:hover { background: rgba(255, 255, 255, .07); }
.mega__list { list-style: none; margin: 2px 0 8px; padding: 0 0 0 10px; }
.mega__list a { display: block; padding: 5px 10px; font-size: 13.5px; color: var(--on-dark-3); border-radius: 5px; }
.mega__list a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.mega__all {
  display: block; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px; font-weight: 600; color: var(--teal);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.lang-switch { position: relative; }
.lang-switch__btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--line-dark-2);
  color: var(--on-dark); border-radius: 6px;
  padding: 7px 11px; font-size: 12.5px; font-weight: 600;
  font-family: var(--mono); letter-spacing: .06em; cursor: pointer;
}
.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--ink-800); border: 1px solid var(--line-dark);
  border-radius: 8px; box-shadow: var(--shadow-dark);
  min-width: 132px; padding: 6px; display: none; z-index: 60;
}
.lang-switch__menu.is-open { display: block; }
.lang-switch__menu a {
  display: block; padding: 8px 12px; font-size: 14px;
  color: var(--on-dark-2); border-radius: 5px;
}
.lang-switch__menu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.lang-switch__menu a.is-current { color: var(--teal); font-weight: 600; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line-dark-2);
  border-radius: 6px; width: 42px; height: 38px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--on-dark);
  overflow: hidden;
  min-height: 640px;
  display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 9, 13, .97) 0%, rgba(6, 9, 13, .86) 38%, rgba(6, 9, 13, .42) 70%, rgba(6, 9, 13, .60) 100%),
    radial-gradient(900px 500px at 78% 30%, rgba(0, 214, 160, .16), transparent 70%);
}
.hero__grid-wrap { position: relative; z-index: 2; width: 100%; padding: 96px 0 72px; }
.hero__inner { max-width: 780px; }
.hero .h-display { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 44px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius); overflow: hidden;
}
.hero__stat { background: rgba(11, 17, 24, .72); padding: 18px 20px; }
.hero__stat .v {
  display: block; font-family: var(--mono); font-size: 24px; font-weight: 600;
  color: var(--teal); letter-spacing: -.02em;
}
.hero__stat .k { display: block; font-size: 12.5px; color: var(--on-dark-3); margin-top: 4px; }

/* 通用带图页头 */
.pagehead {
  position: relative; background: var(--ink-900); color: var(--on-dark);
  padding: 84px 0 68px; overflow: hidden;
}
.pagehead__bg { position: absolute; inset: 0; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.pagehead__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 9, 13, .95) 0%, rgba(6, 9, 13, .70) 60%, rgba(6, 9, 13, .55) 100%);
}
.pagehead__inner { position: relative; z-index: 2; max-width: 780px; }
.pagehead .h1 { color: #fff; }
.pagehead p { color: var(--on-dark-2); font-size: 17px; margin-bottom: 0; }
/* 分类 hub 的副标题：多条 intro 段落在 pagehead 里要重新拉开间距 */
.pagehead__lead { color: var(--on-dark) !important; font-size: 18px !important; font-weight: 500; margin-bottom: 14px !important; }
.pagehead__inner p + p { margin-top: 12px; }

/* ---------------- 区块 ---------------- */

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--wash { background: var(--paper-2); }
.section--dark { background: var(--ink-850); color: var(--on-dark); }
.section--dark .h2, .section--dark .h3 { color: #fff; }
.section--dark p { color: var(--on-dark-2); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 17px; margin: 0; }
.section-head--left { margin-left: 0; text-align: left; }
.section--dark .section-head p { color: var(--on-dark-2); }

/* ---------------- 卡片 ---------------- */

.grid { display: grid; gap: 24px; }
.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)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; margin-bottom: 0; }
.card__num {
  font-family: var(--mono); font-size: 12px; color: var(--teal-600);
  letter-spacing: .1em; display: block; margin-bottom: 12px;
}

.card--dark {
  background: var(--ink-700); border-color: var(--line-dark); color: var(--on-dark);
}
.card--dark:hover { border-color: var(--line-dark-2); box-shadow: none; background: var(--ink-600); }
.card--dark p { color: var(--on-dark-2); }

/* 产品线磁贴 */
.tile {
  display: block; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 26px;
  transition: box-shadow .18s, border-color .18s;
}
.tile:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.tile__code {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--text-3); text-transform: uppercase;
}
.tile h3 { margin: 8px 0 8px; font-size: 19px; }
.tile p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.tile__arrow { margin-top: 16px; color: var(--teal-600); font-weight: 600; font-size: 14px; }

/* ---------------- 筛选条 ---------------- */

.filters {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end;
  padding: 20px 24px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px;
}
.filter { display: flex; flex-direction: column; gap: 6px; }
.filter__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
}
.filter__pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
}
a.chip:hover { border-color: var(--text-3); color: var(--text); }
a.chip:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; }
.chip.is-active { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.chip.is-active:hover { background: var(--ink-700); border-color: var(--ink-700); color: #fff; }

/* 计数：按「另一维度已生效」的结果算，点击前就知道会拿到几行 */
.chip__n {
  font-family: var(--mono); font-size: 11px; line-height: 1;
  padding: 2px 5px; border-radius: 100px;
  background: var(--paper-3); color: var(--text-3);
}
.chip.is-active .chip__n { background: rgba(255, 255, 255, .18); color: #fff; }
/* 该选项与另一维度的当前取值相交为空 —— 渲染成不可点，避免点出空结果页 */
.chip.is-disabled {
  opacity: .45; cursor: not-allowed;
  border-style: dashed; background: transparent;
}
.chip--reset { border-color: var(--line-2); color: var(--danger); font-size: 12.5px; }
.chip--reset:hover { border-color: var(--danger); color: var(--danger); }

/* ---------------- 规格表 ---------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 880px; }
.spec-table thead th {
  background: var(--ink-800); color: var(--on-dark);
  text-align: left; padding: 13px 16px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.spec-table tbody td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.spec-table tbody tr:hover { background: var(--paper-2); }
.spec-table .col-num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.spec-table a.cell-link { font-weight: 600; }
.spec-table a.cell-link:hover { color: var(--teal-600); }

.model-cell { font-family: var(--mono); font-size: 13.5px; font-weight: 500; }
.brand-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 4px; background: var(--paper-3); color: var(--text-2);
  white-space: nowrap;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 100px; white-space: nowrap;
}
.badge--verified { background: var(--teal-050); color: #00775c; }
.badge--pending { background: var(--amber-050); color: #8a5a00; }

/* 可点击徽标：目录页 Source 列直接打开原厂 PDF，pending 进型号页申请资料 */
.badge--link { cursor: pointer; text-decoration: none; transition: background .15s ease, box-shadow .15s ease; }
.badge--link svg { width: 11px; height: 11px; flex: 0 0 auto; opacity: .75; }
.badge--link:hover { text-decoration: underline; text-underline-offset: 2px; }
.badge--verified.badge--link:hover { background: #c9f2e6; box-shadow: 0 0 0 1px rgba(0, 177, 135, .25); }
.badge--pending.badge--link:hover { background: #fbe8c4; box-shadow: 0 0 0 1px rgba(138, 90, 0, .18); }
.badge--link:hover svg { opacity: 1; }
.badge--link:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; }

/* ---------------- 产品详情 ---------------- */

.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.pd-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.pd-panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 20px; background: var(--paper);
}
.pd-panel h3 { font-size: 15px; margin-bottom: 14px; }
.pd-panel--dark { background: var(--ink-800); border-color: var(--line-dark); color: var(--on-dark); }
.pd-panel--dark h3 { color: #fff; }
.pd-panel--dark p { color: var(--on-dark-2); font-size: 14px; }

.kv__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv__row:first-child { border-top: 0; }
.kv__k { color: var(--text-3); }
.kv__v { font-weight: 600; font-family: var(--mono); font-size: 13.5px; text-align: right; }

.pd-hero {
  background: var(--ink-900); color: var(--on-dark); padding: 52px 0 44px;
  position: relative; overflow: hidden;
}
.pd-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 82% 40%, rgba(0, 214, 160, .13), transparent 70%);
}
.pd-hero__inner { position: relative; z-index: 2; }
.pd-hero .h1 { color: #fff; margin-bottom: 12px; }
.pd-hero .pd-sub { color: var(--on-dark-2); font-size: 17px; max-width: 780px; }

.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pd-chip {
  font-family: var(--mono); font-size: 12.5px;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-dark);
  color: var(--on-dark);
}

.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { border-top: 1px solid var(--line); }
.doc-list li:first-child { border-top: 0; }
.doc-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  font-size: 14.5px; font-weight: 500;
}
.doc-list a:hover { color: var(--teal-600); }
.doc-list .ext {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  background: var(--paper-3); color: var(--text-3); padding: 2px 7px; border-radius: 4px;
}

.prose { font-size: 16.5px; }
.prose h2 { margin-top: 1.6em; font-size: 26px; }
.prose h3 { margin-top: 1.4em; font-size: 19px; }
/* 段落间距：.prose 里连续多个 <p> 此前完全无间距，四段读起来像一整块
   （2026-10-20 在 /guides 的「How these guides are written」实测）。 */
.prose p { margin: 0 0 14px; }
.prose ul { color: var(--text-2); }
.prose li { margin-bottom: 6px; }
/* 整卡片是链接时（/guides、/brands、/compliance 的卡片列表），
   让 CTA 贴底、副标题各卡对齐，否则卡片高度随文字长短参差。 */
a.card { display: flex; flex-direction: column; }
a.card .app-card__link { margin-top: auto; padding-top: 14px; }
.cell-source {
  font-size: 13.5px; color: var(--text-3); border-left: 2px solid var(--line-2);
  padding-left: 14px; margin-top: 26px;
}

/* ---------------- 品牌 ---------------- */

.brand-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.brand-strip__item { background: var(--ink-800); padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.brand-strip__item:hover { background: var(--ink-600); }
.brand-strip__name { font-size: 17px; font-weight: 600; color: #fff; }
.brand-strip__meta { font-size: 13px; color: var(--on-dark-3); }
.brand-strip__count { font-family: var(--mono); font-size: 22px; color: var(--teal); margin-top: 6px; }

/* ---------------- 应用 ---------------- */

.app-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
}
.app-card__media { height: 180px; background: var(--ink-700); position: relative; }
.app-card__media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.app-card__body h3 { margin-bottom: 8px; }
.app-card__body p { color: var(--text-2); font-size: 15px; }
.app-card__specs { list-style: none; margin: 0 0 16px; padding: 0; }
.app-card__specs li { font-size: 13.5px; color: var(--text-3); padding: 5px 0; border-top: 1px dashed var(--line); }
.app-card__specs li:first-child { border-top: 0; }
.app-card__link { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--teal-600); }

/* ---------------- 步骤 ---------------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -12px; left: 0;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--teal-600); background: var(--paper); padding-right: 10px;
}
.section--dark .step::before { background: var(--ink-850); }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--text-2); margin: 0; }
.section--dark .step p { color: var(--on-dark-2); }

/* ---------------- CTA ---------------- */

.cta-band {
  background: linear-gradient(120deg, var(--ink-800) 0%, var(--ink-600) 55%, #0e2b2a 100%);
  color: var(--on-dark); padding: 64px 0; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 50%, rgba(0, 214, 160, .18), transparent 70%);
}
.cta-band__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: var(--on-dark-2); margin: 0; font-size: 16px; }

/* ---------------- FAQ ---------------- */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 40px 20px 0; font-size: 17px; font-weight: 600; color: var(--text);
  position: relative; font-family: inherit;
}
.faq-item__q::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--text-3);
}
.faq-item.is-open .faq-item__q::after { content: "\2013"; }
.faq-item__a { display: none; padding: 0 60px 22px 0; color: var(--text-2); font-size: 15.5px; }
.faq-item.is-open .faq-item__a { display: block; }

/* ---------------- 页脚 ---------------- */

.site-footer { background: var(--ink-900); color: var(--on-dark); padding: 64px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 44px; }
.site-footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; font-size: 14.5px; }
.site-footer li a { color: var(--on-dark-2); }
.site-footer li a:hover { color: #fff; }
.site-footer__about { color: var(--on-dark-3); font-size: 14.5px; margin-top: 16px; max-width: 340px; }
.site-footer .addr { color: var(--on-dark-3); }
.site-footer__legal {
  border-top: 1px solid var(--line-dark); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--on-dark-3);
}

/* 右下角悬浮 WhatsApp 按钮。
   用 WhatsApp 品牌绿（#25D366）而非站点电青：这是一个指向第三方 App 的动作，
   颜色本身就是可识别性 —— 用户看到绿气泡才知道点下去会跳转 WhatsApp，
   而不是站内表单。白字是 WhatsApp 官方配色下的标准对比组合。 */
.float-cta { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.float-cta--wa a {
  display: flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; font-weight: 600; font-size: 14px;
  padding: 11px 18px 11px 15px; border-radius: 100px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .38), var(--shadow-2);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.float-cta--wa a:hover { background: #1ebe5b; transform: translateY(-1px); }
.float-cta--wa a:active { transform: translateY(0); }
.float-cta--wa svg { flex: none; }
@media (max-width: 640px) {
  /* 小屏边距收窄：桌面端 20px 在手机上离屏幕边缘偏远，且容易压住内容 */
  .float-cta { right: 14px; bottom: 14px; }
}

/* 空分类（无已发布型号）的正文块：大字号导语 + 后续卡片 */
.note-block { max-width: 900px; }
.note-block__lede { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- 面包屑 ---------------- */

.crumbs { font-size: 13.5px; color: var(--text-3); margin-bottom: 20px; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 7px; opacity: .5; }
.pd-hero .crumbs, .pd-hero .crumbs a { color: var(--on-dark-3); }
.pd-hero .crumbs a:hover { color: #fff; }

/* ---------------- 表单 ---------------- */

.form-msg {
  display: none;
  border-radius: 6px; padding: 12px 16px; margin-bottom: 20px;
  font-size: 14.5px; font-weight: 500; border: 1px solid transparent;
}
.form-msg.is-ok { display: block; background: var(--teal-050); border-color: #b7ecd9; color: #00775c; }
.form-msg.is-err { display: block; background: #fdeeee; border-color: #f3c6c6; color: #a12b2b; }

/* 无 JS 提交后回跳的一次性提示：与 .form-msg 同色系，但独立于表单（JS 找不到它） */
.contact-notice {
  border-radius: 6px; padding: 13px 16px; margin-bottom: 22px;
  font-size: 14.5px; font-weight: 500; border: 1px solid transparent;
}
.contact-notice.is-ok  { background: var(--teal-050); border-color: #b7ecd9; color: #00775c; }
.contact-notice.is-err { background: #fdeeee; border-color: #f3c6c6; color: #a12b2b; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label {
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--text-2);
}
.field .req { color: var(--danger); font-weight: 600; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit; font-size: 15px; color: var(--text);
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d7f90' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(0, 214, 160, .16);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa9b7; }

.field-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text-2); line-height: 1.55;
  margin-bottom: 22px;
}
.field-consent input { margin: 3px 0 0; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--teal-600); }
.field-consent a { color: var(--teal-600); text-decoration: underline; }

.form-note { font-size: 13px; color: var(--text-3); margin: 14px 0 0; }

/* ---------------- 联系页 ---------------- */

.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 368px;
  gap: 48px; align-items: start;
}
.contact-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-1);
}

.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: var(--paper);
}
.panel h3 { font-size: 15px; margin-bottom: 4px; }
.panel--dark { background: var(--ink-800); border-color: var(--line-dark); color: var(--on-dark); }
.panel--dark h3 { color: #fff; }
.panel--dark p { color: var(--on-dark-2); font-size: 14px; }

.line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.line:first-child { border-top: 0; }
.line .k { color: var(--text-3); flex: 0 0 auto; }
.line .v { font-weight: 600; text-align: right; word-break: break-word; }
.line .v a:hover { color: var(--teal-600); }
.panel--dark .line { border-top-color: var(--line-dark); }
.panel--dark .line .k { color: var(--on-dark-3); }
.panel--dark .line .v { color: #fff; }
.panel--dark .line .v a:hover { color: var(--teal); }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative; padding: 7px 0 7px 26px; font-size: 14px; color: var(--text-2);
  border-top: 1px solid var(--line);
}
.check-list li:first-child { border-top: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--teal);
}
.panel--dark .check-list li { border-top-color: var(--line-dark); color: var(--on-dark-2); }

/* ---------------- FAQ（details 变体） ---------------- */

.faq-list { border-top: 1px solid var(--line); }
.faq-item > summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0;
  font-size: 17px; font-weight: 600; color: var(--text);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--text-3);
}
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item .a {
  padding: 0 60px 22px 0; color: var(--text-2); font-size: 15.5px; line-height: 1.65;
}
.faq-item .mark { display: none; }
.section--dark .faq-list { border-top-color: var(--line-dark); }
.section--dark .faq-item > summary { color: #fff; }

/* ---------------- 文章 / 新闻 ---------------- */

.breadcrumbs {
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  padding: 14px 0; font-size: 13.5px; color: var(--text-3);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .55; }
.breadcrumbs a { color: var(--text-3); }
.breadcrumbs a:hover { color: var(--text); }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card {
  display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); overflow: hidden;
  transition: box-shadow .18s, border-color .18s;
}
.news-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.news-card__media {
  /* 封面统一 1200×628（1.91:1）。早先固定 176px 高会把卡片压成 2.16:1，
     object-fit:cover 再上下裁掉一截，封面左下角的栏目标签正好被切掉。 */
  width: 100%; aspect-ratio: 1200 / 628; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__date {
  font-family: var(--mono); font-size: 12.5px; color: var(--text-3);
  padding: 18px 22px 0; letter-spacing: .02em;
}
.news-card h3 { padding: 0 22px; margin: 8px 0 18px; font-size: 18px; line-height: 1.35; }
.news-card h3 a:hover { color: var(--teal-600); }
.news-card .chip { margin: 0 22px 18px; }

.article-body { max-width: 780px; margin: 0 auto; }
.article-body img { border-radius: var(--radius); margin: 0 0 24px; }
.article-body h2 { margin-top: 1.8em; font-size: 26px; }
.article-body h3 { margin-top: 1.5em; font-size: 19px; }
.article-body p, .article-body li { color: var(--text-2); }
.article-body li { margin-bottom: 6px; }
/* 文章正文里的规格表：GEO 要求表格可被整段摘录，因此必须是真 <table> */
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14.5px; }
.article-body th, .article-body td {
  border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top;
}
.article-body thead th { background: var(--paper-2); font-weight: 600; color: var(--text); }
.article-body tbody td { color: var(--text-2); }
.article-body table code, .article-body p code {
  font-family: var(--mono); font-size: .92em;
  background: var(--paper-2); padding: 1px 5px; border-radius: 4px;
}

.cat-related ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.cat-related li a {
  display: block; padding: 13px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 15px; font-weight: 500; background: var(--paper);
}
.cat-related li a:hover { border-color: var(--teal-600); color: var(--teal-600); }

.chip--cyan { background: var(--teal-050); border-color: #a9e8d3; color: #00775c; }

.cta-banner {
  background: linear-gradient(120deg, var(--ink-800) 0%, var(--ink-600) 55%, #0e2b2a 100%);
  color: var(--on-dark); padding: 64px 0; position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 50%, rgba(0, 214, 160, .18), transparent 70%);
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: var(--on-dark-2); font-size: 16px; margin-bottom: 24px; }

/* ---------------- 空状态 ---------------- */

.empty {
  text-align: center; padding: 56px 24px; border: 1px dashed var(--line-2);
  border-radius: var(--radius); color: var(--text-3); background: var(--paper-2);
}
.empty .t { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
  .pd-layout { grid-template-columns: minmax(0, 1fr); }
  .pd-aside { position: static; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-aside { position: static; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header__bar { height: 64px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 60px 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero__grid-wrap { padding: 64px 0 48px; }
  .pagehead { padding: 56px 0 44px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .filters { padding: 16px; gap: 14px; }
  .h-display { font-size: 32px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 24px 20px; }
  .line { flex-direction: column; gap: 2px; }
  .line .v { text-align: left; }
  .faq-item > summary { padding-right: 38px; font-size: 16px; }
  .faq-item .a { padding-right: 0; }
}

@media (max-width: 900px) {
  .site-header.is-open .main-nav {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--ink-800); border-bottom: 1px solid var(--line-dark);
    padding: 12px 24px 24px;
  }
  .site-header.is-open .main-nav > ul { flex-direction: column; gap: 0; }
  .site-header.is-open .main-nav > ul > li > a { padding: 12px 0; font-size: 16px; }
  .site-header.is-open .mega { position: static; min-width: 0; box-shadow: none; display: block; border: 0; padding: 0 0 8px; background: none; }
  /* 移动端面板是常驻展开的静态流，不需要桥接；留着反而会向上探出遮住上一项 */
  .site-header.is-open .mega::before { display: none; }
  .site-header.is-open .mega__grid { grid-template-columns: 1fr; }
}

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