/* ==========================================
   Hongcheng — Design System
   静态站样式表 · 零框架零外部依赖
   ----------------------------------------------------------
   图标说明：全部用 CSS mask + 内联 SVG data URI 实现，
   零额外请求、不阻塞渲染、可继承 currentColor。
   需要新图标时在 --icon-* 变量里加一条即可。
   ========================================== */

:root {
  /* ---------- 色板：品牌 ---------- */
  --ink: #12171a;
  --ink-2: #43505a;
  --ink-3: #77858e;

  /* 主色：深青蓝。用于页头深色区、主按钮、强调文字 */
  --primary: #0d3a47;
  --primary-light: #175061;
  --primary-dark: #082a34;
  --primary-tint: #eaf1f3;

  /* 强调色：琥珀橙。与主色构成互补，用于 CTA 与高亮点 */
  --accent: #c2620a;
  --accent-light: #e07d1a;
  --accent-tint: #fdf3e6;

  /* ---------- 色板：中性 ---------- */
  --line: #e4e8ea;
  --line-2: #ccd4d8;
  --bg: #f6f8f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f2f5f6;

  /* ---------- 色板：语义状态 ---------- */
  --ok-bg: #eaf3de;      --ok-fg: #38690f;      --ok-line: #94c04f;
  --warn-bg: #fdf3e3;    --warn-fg: #8a5109;    --warn-line: #d89320;
  --alert-bg: #fceceb;   --alert-fg: #a32d2d;   --alert-line: #e05554;
  --info-bg: #e7f1fb;    --info-fg: #175c9c;    --info-line: #4a90cf;

  /* ---------- 字体 ---------- */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 字号阶梯。移动端由 clamp 自动收敛，无需断点覆盖 */
  --fs-xs: 0.75rem;     /* 图注、标签 */
  --fs-sm: 0.875rem;    /* 辅助信息 */
  --fs-base: 1rem;
  --fs-md: 1.0625rem;   /* 正文 */
  --fs-lg: 1.1875rem;   /* lead、摘要 */
  --fs-xl: clamp(1.25rem, 2.2vw, 1.5rem);   /* h4 */
  --fs-2xl: clamp(1.5rem, 3.2vw, 1.875rem); /* h3 */
  --fs-3xl: clamp(1.75rem, 4.4vw, 2.5rem);  /* h2 */
  --fs-4xl: clamp(2.125rem, 5.4vw, 3.25rem); /* h1 */

  /* 行高 */
  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-body: 1.7;

  /* 字间距 */
  --ls-tight: -0.02em;
  --ls-normal: -0.01em;
  --ls-wide: 0.02em;

  /* ---------- 间距 ---------- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;

  /* ---------- 圆角 ---------- */
  --r-xs: 3px;
  --r-sm: 5px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 999px;

  /* ---------- 阴影 ---------- */
  --sh-xs: 0 1px 2px rgba(18, 23, 26, 0.04);
  --sh-sm: 0 1px 3px rgba(18, 23, 26, 0.07), 0 1px 2px rgba(18, 23, 26, 0.04);
  --sh-md: 0 4px 12px rgba(18, 23, 26, 0.08), 0 1px 3px rgba(18, 23, 26, 0.04);
  --sh-lg: 0 12px 28px rgba(18, 23, 26, 0.12), 0 2px 6px rgba(18, 23, 26, 0.05);
  --sh-focus: 0 0 0 3px rgba(13, 58, 71, 0.18);

  /* ---------- 布局 ---------- */
  --max: 1140px;
  --max-narrow: 780px;
  --read: 68ch;          /* 正文最佳行长 */

  /* ---------- 图标（内联 SVG，零请求） ---------- */
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E");
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 8h10M9 4.5L12.5 8 9 11.5'/%3E%3C/svg%3E");
  --icon-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' d='M11.5 2.5H5.5a1.5 1.5 0 00-1.5 1.5v12a1.5 1.5 0 001.5 1.5h9a1.5 1.5 0 001.5-1.5V7z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' d='M11.5 2.5V7H16'/%3E%3C/svg%3E");
  --icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' d='M10 2l6.5 2.5v5c0 4-2.7 7.2-6.5 8.5-3.8-1.3-6.5-4.5-6.5-8.5v-5z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M7.5 10l1.8 1.8L13 8'/%3E%3C/svg%3E");
  --icon-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' d='M10 2.5l7.5 3.75v7.5L10 17.5 2.5 13.75v-7.5z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' d='M2.5 6.25L10 10l7.5-3.75M10 10v7.5'/%3E%3C/svg%3E");
  --icon-video: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='1.5' y='4' width='17' height='12' rx='1.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath fill='%23000' d='M8 7.5l5 2.5-5 2.5z'/%3E%3C/svg%3E");
  --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath fill='%23000' d='M7.2 6.9h1.6v4.2H7.2zM8 4.1a.95.95 0 110 1.9.95.95 0 010-1.9z'/%3E%3C/svg%3E");
  --icon-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' d='M8 1.8l6.4 11.4H1.6z'/%3E%3Cpath fill='%23000' d='M7.2 6.2h1.6v3.4H7.2zM8 11.1a.95.95 0 110 1.9.95.95 0 010-1.9z'/%3E%3C/svg%3E");
  --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath fill='%23000' d='M7.2 3.9h1.6v5.3H7.2zM8 11a.95.95 0 110 1.9.95.95 0 010-1.9z'/%3E%3C/svg%3E");
  --icon-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M5 8.3l2.1 2.1L11 6.4'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;   /* 锚点跳转避开吸顶页头 */
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4 {
  line-height: var(--lh-tight);
  font-weight: 650;
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  text-wrap: balance;          /* 标题折行更均衡 */
}
h1 { font-size: var(--fs-4xl); margin-bottom: var(--sp-4); font-weight: 700; letter-spacing: var(--ls-tight); }
h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
h4 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }

p {
  margin-bottom: var(--sp-4);
  color: var(--ink-2);
  max-width: var(--read);      /* 全站统一控制行长 */
  text-wrap: pretty;           /* 避免末行孤字 */
}
p:last-child { margin-bottom: 0; }

/* 长表格与短标签不受行长限制 */
table p, .measure p, p.wide { max-width: none; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.14s ease;
}
a:hover { color: var(--accent); }

/* 正文内链接加下划线，长文阅读更清晰 */
.article-body p a:not(.card-link),
.wrap-narrow > p a:not(.card-link) {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.article-body p a:not(.card-link):hover,
.wrap-narrow > p a:not(.card-link):hover {
  text-decoration-color: var(--accent);
}

strong { color: var(--ink); font-weight: 650; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  color: var(--ink);
  word-break: break-word;
}

.lead { font-size: var(--fs-lg); line-height: 1.62; color: var(--ink); max-width: 62ch; }
.measure { max-width: var(--read); }
.muted { color: var(--ink-3); font-size: var(--fs-sm); }

/* 数字统一等宽，表格与指标块不错位 */
.num, .val, .metric .val, td.num, th.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- 布局 ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--sp-5); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--sp-5); }

section { padding: var(--sp-8) 0; }
section.tight { padding: var(--sp-6) 0; }
section.alt { background: var(--surface); }

/* 深色区：加一层极淡的对角纹理，避免大面积纯色显得平 */
section.dark {
  background:
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: #e4edef;
  position: relative;
}
section.dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 7px);
  pointer-events: none;
}
section.dark > * { position: relative; z-index: 1; }
section.dark h2, section.dark h3, section.dark h4, section.dark strong { color: #fff; }
section.dark p { color: #b3c4ca; }
section.dark a { color: #d9e6ea; }
section.dark a:hover { color: #fff; }

.grid { display: grid; gap: var(--sp-4); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- 品类主题 ----------
   做法：每页在 <body> 上加 data-cat="xxx"，只覆盖三个变量（主色/强调色/浅底）。
   页面其余部分沿用全局主题，因此不会失控。
   取色原则：同色系不同明度，保证 6 个品类能并列而不刺眼；
   强调色只在极小面积出现（eyebrow 短线、链接 hover、对勾）。
   ------------------------------------------------------------------ */

/* TPU — 柔性、耐黄变：暖琥珀 */
body[data-cat="tpu"] {
  --primary-dark: #5e320a;
  --primary: #8a4a12;
  --primary-light: #a85c1c;
  --primary-tint: #fbf0e3;
  --accent: #b8570d;
}
/* PC — 硬质、通透：冷钢蓝 */
body[data-cat="pc"] {
  --primary-dark: #143240;
  --primary: #1f4a63;
  --primary-light: #2a6180;
  --primary-tint: #e9f1f6;
  --accent: #0f6d94;
}
/* 皮革 — 质感、暖褐 */
body[data-cat="leather"] {
  --primary-dark: #3d2c1a;
  --primary: #5c4327;
  --primary-light: #75563a;
  --primary-tint: #f6f0e7;
  --accent: #96652b;
}
/* 磁吸 — 精密、磁感：靛紫 */
body[data-cat="magnetic"] {
  --primary-dark: #2b2750;
  --primary: #3f3a6e;
  --primary-light: #524d85;
  --primary-tint: #eeedf7;
  --accent: #5b4fb0;
}
/* 支架 — 结构、机械：石墨灰 */
body[data-cat="stand"] {
  --primary-dark: #202830;
  --primary: #2f3941;
  --primary-light: #414d57;
  --primary-tint: #edf0f2;
  --accent: #4a6b7c;
}
/* 散热 — 热管理：深赤（唯一用暖红的品类，与其他页明确区分） */
body[data-cat="cooling"] {
  --primary-dark: #481e15;
  --primary: #6b2d20;
  --primary-light: #87392a;
  --primary-tint: #f9ece9;
  --accent: #b8452c;
}
/* 配件 — 综合品类：中性橄榄 */
body[data-cat="accessories"] {
  --primary-dark: #2f3628;
  --primary: #46503a;
  --primary-light: #5a654a;
  --primary-tint: #f0f2ec;
  --accent: #6d7a4e;
}

/* 品类页 hero 的光晕跟随品类主色。
   color-mix 在 Safari <16.2 不支持，会让整条 background 失效，
   所以先用固定色打底，再用 color-mix 覆盖。 */
body[data-cat] .hero::after {
  background: radial-gradient(circle,
    rgba(13, 58, 71, 0.045) 0%, transparent 68%);
}
@supports (background: color-mix(in srgb, red 5%, transparent)) {
  body[data-cat] .hero::after {
    background: radial-gradient(circle,
      color-mix(in srgb, var(--primary) 7%, transparent) 0%, transparent 68%);
  }
}

/* 顶部色条跟随品类主色，但右端仍留一点品牌橙作为统一锚点 */
body[data-cat] .topbar {
  background: linear-gradient(90deg,
    var(--primary) 0%, var(--primary-light) 62%, var(--accent) 100%);
}

/* 品类页的深色区用该品类主色做基底，与页面其余部分保持同源。
   --primary-dark 在品类主题下被重新定义，因此这段会自动跟随。 */
body[data-cat] section.dark,
body[data-cat] footer.site {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 78%, #000) 0%,
      var(--primary) 58%,
      var(--primary-light) 100%);
}
@supports not (background: color-mix(in srgb, red 5%, transparent)) {
  body[data-cat] section.dark,
  body[data-cat] footer.site {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  }
}

/* 品类互链：底部"Also see"改为带色点的横向列表。
   色点用每个品类自己的主色，扫一眼就知道目标页是什么色调。 */
.cross-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.cross-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.cross-item:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
}
.cross-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 每个互链项按目标品类着色 */
.cross-item[href="/tpu-cases"] .cross-dot { background: #a85c1c; }
.cross-item[href="/pc-cases"] .cross-dot { background: #2a6180; }
.cross-item[href="/leather-cases"] .cross-dot { background: #75563a; }
.cross-item[href="/magnetic-cases"] .cross-dot { background: #524d85; }
.cross-item[href="/stand-cases"] .cross-dot { background: #55636e; }
.cross-item[href="/heat-dissipation-cases"] .cross-dot { background: #b8452c; }
.cross-item[href="/accessories"] .cross-dot { background: #6d7a4e; }

/* ---------- 品类徽标：显示在 eyebrow 位置，替代原来无意义的 "Category" ---------- */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.cat-badge::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* 首页品类卡片：顶部色条 + 首字母徽标，
   让"点击前"就能预知"点击后"的页面色调。 */
.cat-card {
  position: relative;
  padding-top: calc(var(--sp-5) + 6px);
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.85;
  transition: opacity 0.16s ease;
}
.cat-card:hover::before { opacity: 1; }

.cat-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.16s ease, color 0.16s ease;
}
.cat-card:hover .cat-card-ico { background: var(--primary); color: #fff; }
.cat-card h3 { font-size: 1.06rem; }

/* 同品类内链时的颜色已由变量自动跟随，无需额外处理 */

/* ---------- 页面顶部细条：给页面一个统一的品牌锚点 ---------- */
.topbar {
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 38%, var(--accent) 100%);
}

/* ---------- 产品图网格 ---------- */
.prod-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.prod-grid figure { margin: 0; }
.prod-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.prod-grid figure:hover img { border-color: var(--line-2); transform: translateY(-2px); }
.prod-grid figcaption {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prod-note {
  font-size: 0.825rem;
  color: var(--ink-3);
  margin-top: var(--sp-3);
  max-width: none;
}

/* ---------- 页头 ---------- */
header.site {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 66px;
}
.brand {
  font-weight: 650;
  font-size: 1.075rem;
  color: var(--ink);
  letter-spacing: var(--ls-normal);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* 兜底：即使 flex gap 失效，也要保证标记与文字之间有可见间距，
   否则会读成 "HHongcheng"。同时兼容邮件客户端等不支持 flex 的环境。 */
.brand .mark { margin-right: 2px; }
.brand .mark + * { margin-left: 2px; }
@supports not (gap: 10px) {
  .brand .mark { margin-right: 10px; }
}
.brand .mark {
  width: 29px;
  height: 29px;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
.brand:hover { color: var(--primary); }

.nav-links { display: flex; gap: var(--sp-5); align-items: center; }
.nav-links a {
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--primary); }

.nav-cta { display: flex; gap: var(--sp-2); align-items: center; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 7px 11px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1;
  transition: background 0.14s, border-color 0.14s;
}
.menu-toggle:hover { background: var(--surface-2); border-color: var(--line-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 0.945rem;
  font-weight: 550;
  line-height: 1.35;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s,
              box-shadow 0.15s, transform 0.12s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(194, 98, 10, 0.24);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 3px 10px rgba(194, 98, 10, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--line-2);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tint);
}

.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--surface-3); }

.btn-sm { padding: 8px 14px; font-size: var(--fs-sm); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* 按钮内箭头：hover 时前移 */
.btn .btn-arrow {
  width: 15px; height: 15px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.16s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-xs);
}
.card-hover {
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.card-hover:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.card-hover:focus-visible { outline: none; box-shadow: var(--sh-focus), var(--sh-md); }
.card h3 { color: var(--ink); }
.card p { font-size: 0.945rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 550;
  margin-top: var(--sp-3);
  color: var(--primary);
}
.card-link::after {
  content: "";
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.16s ease;
}
a.card:hover .card-link::after { transform: translateX(3px); }

/* ---------- 指标块 ---------- */
.metrics {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--sh-xs);
  position: relative;
  overflow: hidden;
}
/* 顶部一道细色条，给数字一点视觉重量 */
.metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}
.metric .val {
  font-size: clamp(1.6rem, 2.6vw, 1.9rem);
  font-weight: 680;
  line-height: 1.12;
  color: var(--primary);
  letter-spacing: var(--ls-tight);
}
.metric .lbl { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 3px; font-weight: 500; }
.metric .note { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 5px; line-height: 1.45; }

section.dark .metric {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.13);
  box-shadow: none;
}
section.dark .metric::before { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%); }
section.dark .metric .val { color: #fff; }
section.dark .metric .lbl { color: #c4d4da; }
section.dark .metric .note { color: #92a8b0; }

/* ---------- 提示框 ---------- */
.note-box {
  border-left: 3px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 0 var(--r) var(--r) 0;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
}
.note-box .nt {
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 0.945rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 提示框标题前的图标 */
.note-box .nt::before {
  content: "";
  width: 15px; height: 15px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.9;
}
.note-box.ok    { border-color: var(--ok-line);    background: var(--ok-bg); }
.note-box.ok .nt { color: var(--ok-fg); }
.note-box.ok .nt::before { -webkit-mask: var(--icon-ok) center / contain no-repeat; mask: var(--icon-ok) center / contain no-repeat; }

.note-box.warn    { border-color: var(--warn-line);    background: var(--warn-bg); }
.note-box.warn .nt { color: var(--warn-fg); }
.note-box.warn .nt::before { -webkit-mask: var(--icon-warn) center / contain no-repeat; mask: var(--icon-warn) center / contain no-repeat; }

.note-box.alert    { border-color: var(--alert-line);    background: var(--alert-bg); }
.note-box.alert .nt { color: var(--alert-fg); }
.note-box.alert .nt::before { -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat; }

.note-box.info    { border-color: var(--info-line);    background: var(--info-bg); }
.note-box.info .nt { color: var(--info-fg); }
.note-box.info .nt::before { -webkit-mask: var(--icon-info) center / contain no-repeat; mask: var(--icon-info) center / contain no-repeat; }

.note-box p { font-size: 0.92rem; margin-bottom: 0; max-width: none; }
.note-box ol, .note-box ul { margin: 0.5rem 0 0; padding-left: 1.25rem; color: var(--ink-2); font-size: 0.92rem; }
.note-box li { margin-bottom: 5px; }
.note-box code { background: rgba(255,255,255,0.6); }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  margin: var(--sp-5) 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
th {
  text-align: left;
  padding: 13px 16px;
  background: var(--surface-3);
  font-weight: 650;
  font-size: 0.815rem;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--surface-3);
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.62;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: var(--surface-2); }
td:first-child { color: var(--ink); font-weight: 550; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 高亮行：用于"部分通过"这类需要特别注意的内容 */
tr.row-mark > td { background: var(--warn-bg); }
tr.row-mark:hover > td { background: #fbedd8; }
tr.row-mark > td:first-child { color: var(--warn-fg); font-weight: 650; }

/* ---------- 列表 ---------- */
ul.prose, ol.prose {
  margin: 0 0 var(--sp-4) 1.4em;
  color: var(--ink-2);
  max-width: var(--read);
}
ul.prose li, ol.prose li { margin-bottom: var(--sp-2); }

/* 勾选列表：对勾图形比圆点更有"已完成"的语义 */
ul.check { list-style: none; margin: 0 0 var(--sp-4); max-width: var(--read); }
ul.check li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 11px;
  color: var(--ink-2);
  font-size: 0.945rem;
  line-height: 1.62;
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}
ul.check li > ul.check { margin-top: 8px; margin-bottom: 0; }
ul.check li ul.check li { font-size: 0.915rem; color: var(--ink-3); }
ul.check li ul.check li::before {
  background: var(--ink-3);
  width: 14px; height: 14px;
  top: 4px;
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--sp-8) 0 var(--sp-7);
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* 右上角极淡的装饰：给大面积留白一点结构 */
.hero::after {
  content: "";
  position: absolute;
  top: -80px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,58,71,0.045) 0%, transparent 68%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero .eyebrow {
  font-size: 0.775rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero .eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hero h1 { max-width: 22ch; }
.hero .sub {
  font-size: 1.085rem;
  line-height: 1.62;
  max-width: 62ch;
  margin-bottom: var(--sp-5);
  color: var(--ink-2);
}
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- 面包屑 ---------- */
.crumbs {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  padding: var(--sp-4) 0 0;
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-list { margin-bottom: var(--sp-5); max-width: var(--read); }
.faq-item { border-bottom: 1px solid var(--line); padding: var(--sp-5) 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q {
  font-weight: 650;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  font-size: 1.045rem;
  line-height: 1.45;
  letter-spacing: var(--ls-normal);
}
.faq-a { color: var(--ink-2); font-size: 0.965rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul.check li { font-size: 0.93rem; }

/* ---------- 页尾 CTA 区块 ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  background:
    linear-gradient(135deg, var(--primary-tint) 0%, var(--surface-2) 62%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-7);
}
.cta-band h3 { margin-bottom: 6px; font-size: 1.135rem; }
.cta-band p { margin: 0; color: var(--ink-2); font-size: 0.945rem; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

@media (max-width: 720px) {
  .cta-band {
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-5);
    text-align: left;
  }
  .cta-actions .btn { width: 100%; }
}

/* ---------- 博客 ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.article-body > *:first-of-type { margin-top: 0; }
.article-lede {
  font-size: 1.115rem;
  line-height: 1.62;
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-6);
  max-width: 62ch;
}

/* 目录 */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r) var(--r) 0;
  padding: var(--sp-5);
  margin: var(--sp-6) 0;
  box-shadow: var(--sh-xs);
}
.toc h4 {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 11px;
  font-weight: 650;
}
.toc ol { margin: 0; padding-left: 1.15rem; counter-reset: toc; }
.toc li { margin-bottom: 7px; font-size: 0.915rem; color: var(--ink-2); }
.toc li:last-child { margin-bottom: 0; }
.toc li::marker { color: var(--ink-3); font-size: 0.85em; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--accent); }

/* 博客卡片 */
.blog-index {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}
.blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-card h3 { font-size: 1.045rem; line-height: 1.42; margin-bottom: 6px; }
.blog-card p { font-size: 0.9rem; color: var(--ink-2); flex: 1; }
.blog-card .tag {
  display: inline-block;
  font-size: 0.705rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 9px;
  border-radius: var(--r-xs);
  margin-bottom: 11px;
  width: fit-content;
  font-weight: 650;
}

/* ---------- 表单 ---------- */
.form-group { margin-bottom: var(--sp-5); }
.form-group label {
  display: block;
  font-size: 0.895rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
  letter-spacing: 0.005em;
}
.form-group .hint { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 5px; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="number"], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--sh-focus);
}
textarea { resize: vertical; min-height: 112px; }

/* 原生下拉箭头在部分浏览器上不可控，改用自定义箭头 */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2377858e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 4.75L6 7.75l3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 34px;
  cursor: pointer;
}

.file-drop {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.file-drop:hover { border-color: var(--accent); background: var(--accent-tint); }
.file-drop:focus-visible { outline: none; border-color: var(--primary); box-shadow: var(--sh-focus); }
.file-drop.has-file { border-color: var(--ok-line); border-style: solid; background: var(--ok-bg); }
.file-name { font-size: var(--fs-sm); color: var(--ok-fg); word-break: break-all; font-weight: 550; }
.form-status:empty { display: none; }

/* ---------- 页脚 ---------- */
footer.site {
  background: var(--primary-dark);
  color: #a8bcc3;
  padding: var(--sp-8) 0 var(--sp-5);
  font-size: 0.895rem;
}
footer.site h4 {
  color: #fff;
  font-size: 0.79rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  font-weight: 650;
}
footer.site a { color: #a8bcc3; }
footer.site a:hover { color: #fff; }
footer.site .brand { color: #fff; }
footer.site .brand:hover { color: #fff; }
footer.site .brand .mark { background: rgba(255,255,255,0.1); }

.foot-cols {
  display: grid;
  gap: var(--sp-6) var(--sp-5);
  grid-template-columns: 1.6fr repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: var(--sp-6);
}
.foot-cols ul { list-style: none; }
.foot-cols li { margin-bottom: 8px; }
.foot-note {
  color: #8ba3ac;
  margin-top: var(--sp-3);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 42ch;
}
.foot-cols a { display: block; margin-bottom: 8px; width: fit-content; }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 0.815rem;
  color: #7b939b;
}

/* ---------- WhatsApp 悬浮 ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  background: #25d366;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.34), 0 1px 4px rgba(0,0,0,0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-float:hover {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 7px 22px rgba(37, 211, 102, 0.44), 0 2px 6px rgba(0,0,0,0.16);
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- 博客列表（备用样式） ---------- */
.post-meta { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--sp-5); }
.post-list { list-style: none; }
.post-list li { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.post-list li:last-child { border-bottom: none; }
.post-list .pt { font-weight: 650; color: var(--ink); font-size: 1.045rem; }
.post-list .pd { font-size: 0.9rem; color: var(--ink-2); margin-top: 4px; }

/* ---------- 工具类 ---------- */
.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.flex { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 11px 18px;
  border-radius: 0 0 var(--r) 0;
  font-weight: 550;
}
.skip-link:focus { left: 0; }

/* ---------- 全局焦点样式 ---------- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-xs); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2) var(--sp-5) var(--sp-4);
    box-shadow: var(--sh-md);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--surface-3);
    font-size: 0.96rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: block; }
  .nav { position: relative; }
  .nav-cta .btn-secondary { display: none; }
  .foot-cols { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  section { padding: var(--sp-6) 0; }
  .wrap, .wrap-narrow { padding: 0 var(--sp-4); }
  .hero { padding: var(--sp-6) 0 var(--sp-5); }
  .hero::after { display: none; }
  .wa-float { width: 46px; height: 46px; right: 14px; bottom: 14px; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--sp-2); }
  .card { padding: var(--sp-4); }
  .metric { padding: var(--sp-4); }
  .article-lede { font-size: 1.05rem; padding-left: var(--sp-3); }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 打印 ---------- */
@media print {
  header.site, .wa-float, .nav-cta, .topbar { display: none; }
  body { background: #fff; font-size: 11pt; }
  section { padding: 1.5rem 0; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .table-wrap { border: 1px solid #ccc; }
}
