@charset "UTF-8";
/* ==========================================================================
   九九六信息技术 · 官网样式
   实现依据：design/01-visual-direction.md（视觉）+ design/02-ux-spec.md（体验）
   约束：零外部请求。无 @import、无 CDN、无外链字体、无外链图片。
   --------------------------------------------------------------------------
   字体说明（对应 01 §3.1 的字体意图）：
   本文件不下载任何字体文件，用系统栈近似设计意图（避免首屏阻塞与体积膨胀）。
   --font-display 用 "Space Grotesk" 系统已装时直接命中，未装时降级到
   Segoe UI / Helvetica Neue，靠 font-variant-numeric: tabular-nums 与
   letter-spacing 补足几何感与等宽数字。
   生产环境建议：自托管 Space Grotesk（可变字体单文件）+ HarmonyOS Sans SC
   （子集化 woff2 + unicode-range 切片，中文常用 3500 字 + 标点，preload 首屏
   切片，font-display: swap），以完全还原设计稿的中文字形与英文字面宽度。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计 Token（01 §2.1 色彩 / §3 字体 / §4.2 间距 / §4.3 圆角 / §4.4 发光）
   -------------------------------------------------------------------------- */
:root {
  /* ── 深色底层级：三个层级，制造纵深 ── */
  --bg-base: #06080F;
  --bg-surface: #0B101B;
  --bg-elevated: #121A2A;

  /* ── 文字 ── */
  --text-primary: #F2F5FA;
  --text-secondary: #A9B4C8;
  --text-muted: #7C87A0; /* 对比度 4.83:1 于 --bg-elevated，仅用于 ≥14px，禁止再用 opacity 弱化 */

  /* ── 品牌强调色（仅这两个） ── */
  --accent-primary: #33E0FF;
  --accent-primary-hover: #6FE9FF;
  --accent-on: #051018;
  --accent-secondary: #8F7BFF;

  /* ── 语义色（仅表单/状态） ── */
  --success: #34D399;
  --warning: #FBBF24;
  --error: #F87171;

  /* ── 描边 ── */
  --border-subtle: rgba(169, 180, 200, 0.14);
  --border-strong: rgba(169, 180, 200, 0.28);
  --border-accent: rgba(51, 224, 255, 0.45);

  /* ── 特殊 ── */
  --qr-plate: #FFFFFF;
  --scrim: rgba(6, 8, 15, 0.72);
  --header-scrolled: rgba(6, 8, 15, 0.72);
  --header-scrolled-fallback: rgba(6, 8, 15, 0.92);
  --nav-hover-fill: rgba(169, 180, 200, 0.06);
  --focus-ring-soft: rgba(51, 224, 255, 0.15);
  --accent-tint: rgba(51, 224, 255, 0.08);
  --error-tint: rgba(248, 113, 113, 0.08);
  --grad-brand: linear-gradient(135deg, #33E0FF 0%, #8F7BFF 100%);
  --grad-card-border: linear-gradient(135deg, rgba(51, 224, 255, 0.5), rgba(143, 123, 255, 0.5));

  /* ── 暗底不用投影，用描边 + 发光 ── */
  --glow-hover: 0 0 0 1px rgba(51, 224, 255, 0.45), 0 8px 40px rgba(51, 224, 255, 0.10);
  --glow-btn: 0 0 24px rgba(51, 224, 255, 0.35);
  --orb-cyan: rgba(51, 224, 255, 0.16);
  --orb-violet: rgba(143, 123, 255, 0.14);

  /* ── 字体 ── */
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, "Courier New", monospace;

  /* ── 间距标尺（8pt 基，4px 半档）01 §4.2 ── */
  --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;
  --sp-10: 128px;

  /* ── 圆角 01 §4.3 ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-btn: 10px; /* 全站按钮统一 10px，不用全圆角 */

  /* ── 布局 01 §4.1 / 02 §6.1 ── */
  --container: 1200px;
  --gutter: 20px;
  --section-y: var(--sp-8);
  --nav-h: 72px;

  /* ── 字号阶梯 01 §3.2（移动端为基准，逐档放大） ── */
  --fs-display: 40px;
  --lh-display: 1.2;
  --fs-h2: 26px;
  --lh-h2: 1.35;
  --fs-h3: 20px;
  --fs-lead: 17px;
  --fs-body: 16px;
  --fs-caption: 14px;
  --fs-eyebrow: 12px;
  --fs-stat: 36px;

  /* ── 组件级字号（不属于内容阶梯：仅限控件与导航 chrome）── */
  --fs-ui: 15px; /* 控件密排档：桌面导航 / 小号按钮 / 页脚导航（内容文字一律用上面的阶梯档） */

  /* ── 动效 01 §6 ── */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;
  --dur-slow: 600ms;

  --z-header: 100;
  --z-scrim: 110;
  --z-drawer: 120;
  --z-toast: 130;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --fs-display: 48px;
    --fs-h2: 32px;
    --fs-lead: 18px;
    --fs-eyebrow: 13px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-y: var(--sp-9);
    --fs-display: 64px;
    --lh-display: 1.12;
    --fs-h2: 36px;
    --lh-h2: 1.28;
    --fs-h3: 24px;
    --fs-stat: 44px;
  }
}

/* 高对比度偏好：只加强描边与弱文字（不新增颜色） */
@media (prefers-contrast: more) {
  :root {
    --border-subtle: rgba(169, 180, 200, 0.34);
    --border-strong: rgba(169, 180, 200, 0.5);
    --text-muted: #98A3B8;
  }
}

/* --------------------------------------------------------------------------
   2. Reset / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg-base);
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-underline-offset: 6px;
}

/* 所有文本容器防长串溢出（02 §8.1 H6） */
p, li, h1, h2, h3, dd, dt, span, a, button, label { overflow-wrap: anywhere; }

svg { display: block; }

img { max-width: 100%; height: auto; }

a { color: var(--accent-primary); }

::selection { background: rgba(51, 224, 255, 0.28); color: var(--text-primary); }

/* 锚点避开固定导航（02 §4.3） */
section[id],
[id="top"],
#main { scroll-margin-top: 96px; }

/* 焦点：深色底专用 02 §7.2 */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.card :focus-visible,
.card-grad :focus-visible,
.scard :focus-visible { outline-offset: 3px; }

/* 卡内元素聚焦时整卡给出可见描边；焦点样式永不放进 hover 媒体查询（§7.2.1） */
.card:focus-within,
.card-grad:focus-within,
.scard:focus-within,
.term:focus-within { border-color: var(--border-accent); }

/* --------------------------------------------------------------------------
   3. 工具类
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: var(--z-toast);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-5);
  border-radius: var(--radius-btn);
  background: var(--accent-primary);
  color: var(--accent-on);
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: var(--sp-4);
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 排印层级 01 §3.2 */
.eyebrow {
  display: block;
  margin: 0 0 var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.sec-title {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-primary);
}

.lead {
  max-width: 640px;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--text-secondary);
}

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   4. 按钮 01 §5.1
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--accent-on);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: var(--glow-btn);
}

.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  background: rgba(51, 224, 255, 0.25);
  color: rgba(5, 16, 24, 0.5);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--accent-primary);
}

.btn-ghost:disabled {
  border-color: var(--border-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-sm {
  min-height: 40px;
  padding: 10px 20px;
  font-size: var(--fs-ui);
}

.btn-block { width: 100%; }

/* 幽灵/文字链，尾部箭头图标 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.link-arrow .ico { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }

.link-arrow:hover { text-decoration: underline; text-underline-offset: 6px; }

/* --------------------------------------------------------------------------
   5. 站点导航 01 §5.5 / 02 §4
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--z-header);
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  background: var(--header-scrolled);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: var(--header-scrolled-fallback); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  color: var(--text-muted); /* 非信息性品牌副标，12px 英文等宽，合规 */
}

.nav-desk {
  display: none;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
}

.nav-desk a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--fs-ui);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-desk a:hover {
  color: var(--text-primary);
  background: var(--nav-hover-fill);
}

.nav-desk a[aria-current="location"] { color: var(--accent-primary); }

.nav-desk a[aria-current="location"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent-primary);
  transform: translateX(-50%);
}

.nav-cta {
  display: none;
  margin-left: var(--sp-6);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--border-accent); color: var(--accent-primary); }

@media (min-width: 1024px) {
  .nav-desk { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* 移动抽屉 02 §4.2 */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding-bottom: env(safe-area-inset-bottom);
}

.drawer[hidden] { display: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--nav-h);
  padding-inline: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  flex: 0 0 auto;
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.drawer-close:hover { border-color: var(--border-accent); color: var(--accent-primary); }

.drawer-nav { display: flex; flex-direction: column; }

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-inline: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 18px;
  text-decoration: none;
}

.drawer-nav a:hover { color: var(--accent-primary); }

.drawer-foot {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: auto;
  padding: var(--sp-5) var(--sp-4) var(--sp-5);
}

.drawer-mail {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-mail:hover { color: var(--accent-primary); }

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-scrim);
  border: 0;
  padding: 0;
  background: var(--scrim);
}

.drawer-scrim[hidden] { display: none; }

@keyframes drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.js .drawer:not([hidden]) { animation: drawer-in 320ms var(--ease) both; }

/* --------------------------------------------------------------------------
   6. Hero 01 §7 / 02 §2.2
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;   /* 旧浏览器兜底 */
  min-height: 100svh;  /* 避免移动端地址栏收缩导致跳动 */
  padding-top: calc(var(--nav-h) + var(--sp-8));
  padding-bottom: var(--sp-8);
  overflow: hidden;
  background: var(--bg-base);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 第 2 层：透视网格地面 */
.hero-grid {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: 0;
  height: 40%;
  background-image:
    linear-gradient(rgba(169, 180, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 180, 200, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(600px) rotateX(60deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}

/* 第 3 层：双光斑 */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.orb-cyan {
  top: -120px;
  left: -160px;
  width: 320px;
  height: 320px;
  background: var(--orb-cyan);
  animation: orb-drift-a 60s ease-in-out infinite;
}

.orb-violet {
  right: -140px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  background: var(--orb-violet);
  animation: orb-drift-b 60s ease-in-out infinite;
}

@keyframes orb-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(48px, 32px, 0); }
}

@keyframes orb-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-40px, -28px, 0); }
}

/* 第 4 层：噪点/抖动纹理。
   实现说明：01 §7.2 建议用内联 SVG feTurbulence → data URI。这里改为
   双层 radial-gradient 的 CSS 抖动（dither），视觉目标一致（抑制深色大面
   积渐变的 banding），但避免了 (a) 全屏 feTurbulence 滤镜的重绘开销、
   (b) data URI 里的 xmlns 字符串。属于有意的性能取舍。 */
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    radial-gradient(rgba(242, 245, 250, 0.55) 0.5px, transparent 0.5px),
    radial-gradient(rgba(242, 245, 250, 0.35) 0.5px, transparent 0.5px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 2px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-7);
  width: 100%;
}

.hero-copy { min-width: 0; }

.hero-title {
  margin: 0 0 var(--sp-5);
  font-family: var(--font-sans);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero-title .line-in { display: block; }

/* 品牌渐变文字（forced-colors 见文末兜底） */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  max-width: 640px;
  margin: 0 0 var(--sp-6);
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-trust li + li::before {
  content: "·";
  margin-right: var(--sp-2);
  color: var(--border-strong);
}

/* 终端卡片 01 §7.1 */
.term {
  position: relative;
  min-width: 0;
  padding: var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    var(--grad-card-border) border-box;
}

/* 仅当终端卡横向真的可滚动时才出现右缘渐隐（由 JS 加 .is-scrollable）：
   不溢出就完全没有渐隐 —— 不要让"永远存在的渐隐"暗示一个不存在的溢出 */
.term.is-scrollable::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 28px;
  pointer-events: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: linear-gradient(to left, var(--bg-elevated), transparent);
}

.term-bar {
  display: flex;
  gap: 6px;
  margin-bottom: var(--sp-4);
}

.term-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.term-body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px; /* 全断点统一 12px（01 §3.3 中文下限）；终端为等宽内容，不随 eyebrow 断点浮动 */
  line-height: 1.9;
  color: var(--text-secondary);
  white-space: pre;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  text-shadow: none;
}

.term-line { display: block; }

.term-line.is-prompt { color: var(--text-primary); }

.term-line.is-ok { color: var(--accent-primary); }

/* Hero 入场编排 01 §6.3（1.2s 内完成） */
@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-slide {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.js .hero-eyebrow,
.js .hero-lead,
.js .hero-actions,
.js .hero-trust,
.js .hero-term { opacity: 0; }

.js .hero-title .line-in { transform: translateY(100%); opacity: 0; }

.js .hero[data-ready="1"] .hero-eyebrow { animation: hero-fade 600ms var(--ease) 0ms both; }
.js .hero[data-ready="1"] .hero-title .line:nth-child(1) .line-in { animation: hero-rise 700ms var(--ease) 150ms both; }
.js .hero[data-ready="1"] .hero-title .line:nth-child(2) .line-in { animation: hero-rise 700ms var(--ease) 260ms both; }
.js .hero[data-ready="1"] .hero-lead { animation: hero-in 600ms var(--ease) 450ms both; }
.js .hero[data-ready="1"] .hero-actions { animation: hero-in 600ms var(--ease) 600ms both; }
.js .hero[data-ready="1"] .hero-trust { animation: hero-fade 600ms var(--ease) 700ms both; }
.js .hero[data-ready="1"] .hero-term { animation: hero-slide 700ms var(--ease) 750ms both; }

/* --------------------------------------------------------------------------
   7. 区块骨架
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-surface { background: var(--bg-surface); }

.section-divided { border-top: 1px solid var(--border-subtle); }

.sec-head { margin-bottom: var(--sp-7); }

.sec-end { margin: var(--sp-7) 0 0; }

/* 滚动显现 01 §6.1 / 02 §8 #4 */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-slow) var(--ease) var(--d, 0ms),
    transform var(--dur-slow) var(--ease) var(--d, 0ms);
}

/* --------------------------------------------------------------------------
   8. 能力概览数据条 02 §2.3
   -------------------------------------------------------------------------- */
/* 视觉上是数据条，语义标题用 sr-only 的 h2，仅显示 eyebrow + 4 项数据（02 §2.3） */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  min-width: 0;
  margin: 0;
}

.stat:nth-child(-n + 2) {
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-value {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  color: var(--text-primary);
  /* 数值与单位不得拆行：防止文案变长（如 30 分钟）时在窄屏静默断行。
     nowrap 只作用于本元素（数字+间隔+单位），不波及下方 .stat-desc */
  white-space: nowrap;
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stat-unit {
  font-family: var(--font-sans);
  /* 跟随 h3 档（02 §2.3 v1.8 定稿）：桌面 24 / 移动 20，跨断点比例 1.83 / 1.80 一致 */
  font-size: var(--fs-h3);
  line-height: 1.4;
  color: var(--text-secondary);
}

.stat-desc {
  display: block;
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .stats { gap: var(--sp-6); }

  /* 2×2：右列加竖分隔线 */
  .stat:nth-child(even) {
    padding-left: var(--sp-6);
    border-left: 1px solid var(--border-subtle);
  }
}

@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .stat:nth-child(-n + 2) {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .stat:not(:first-child) {
    padding-left: var(--sp-6);
    border-left: 1px solid var(--border-subtle);
  }
}

/* --------------------------------------------------------------------------
   9. 卡片（能力卡 / 场景卡）
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: var(--sp-5);
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--sp-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

/* 渐变描边卡 01 §5.2 */
.card-grad {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    var(--grad-card-border) border-box;
}

.card-icon {
  width: 24px;
  height: 24px;
  margin-bottom: var(--sp-2);
  color: var(--accent-primary);
}

.card-num {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.card-title {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-h3);
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-primary);
}

.card-desc {
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ul 置底，保证三卡子项顶部对齐 */
.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.card-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--sp-2);
  align-items: start;
}

.card-list .ico {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent-primary);
}

.item-title {
  display: block;
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
}

.item-desc {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-caption);
  line-height: 1.6;
  /* v1.3：12 处子项说明是信息性文字 → --text-secondary（8.0:1） */
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card-wide { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-3 .card-wide { grid-column: auto; }
  .card { padding: var(--sp-6); }
}

/* --------------------------------------------------------------------------
   10. 服务流程 02 §2.5
   -------------------------------------------------------------------------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: var(--sp-6);
}

/* 移动：纵向时间线 */
.step::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: calc(var(--sp-6) * -1);
  left: 4px;
  width: 1px;
  background: var(--border-subtle);
}

.step:last-child::before { display: none; }

.step-dot {
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(51, 224, 255, 0.12);
}

.step-num {
  margin: 0 0 var(--sp-1);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.step-title {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-h3);
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-primary);
}

.step-time {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.step-desc {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-secondary);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  line-height: 1.4;
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(169, 180, 200, 0.06);
  /* 交付物标签承载信息（用户要看懂能拿到什么）→ secondary */
  color: var(--text-secondary);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-7) var(--sp-6);
  }

  .step { padding-left: 0; }

  .step::before,
  .step-dot { display: none; }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-5);
  }

  .step {
    padding-top: var(--sp-6);
    padding-left: 0;
  }

  .step::before {
    display: block;
    top: 4px;
    bottom: auto;
    left: 14px;
    right: calc(var(--sp-5) * -1);
    width: auto;
    height: 1px;
    background: var(--border-subtle);
  }

  .step:last-child::before { display: none; }

  .step-dot {
    display: block;
    top: 0;
    left: 0;
  }
}

/* --------------------------------------------------------------------------
   11. 典型场景 02 §2.6
   -------------------------------------------------------------------------- */
.scard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--sp-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.scard-num {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.scard-title {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-h3);
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-primary);
}

.scard-label {
  display: block;
  margin: 0 0 var(--sp-1);
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.scard-now {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-caption);
  line-height: 1.7;
  color: var(--text-secondary);
}

.scard-how {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
  counter-reset: how;
}

.scard-how li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--fs-caption);
  line-height: 1.7;
  color: var(--text-secondary);
}

.scard-how li::before {
  counter-increment: how;
  content: counter(how) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.scard .tags { margin-top: auto; }

.scenarios-grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .scenarios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
  }
}

@media (min-width: 1024px) {
  .scard {
    padding: var(--sp-6);
    min-height: 320px;
  }
}

/* --------------------------------------------------------------------------
   12. 工程方法与技术栈 02 §2.7
   -------------------------------------------------------------------------- */
.eng {
  display: grid;
  gap: var(--sp-7);
}

.eng-col { min-width: 0; }

.eng .lead { margin-bottom: var(--sp-7); }

.principles {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-4);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: var(--text-muted); /* 编号类统一 muted（与 card-num/step-num/scard-num 一致），紫罗兰只留给渐变与图表 */
}

.principle-title {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-h3);
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-primary);
}

.principle-body {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-secondary);
}

.stack-title {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-secondary);
}

.stack-group + .stack-group { margin-top: var(--sp-5); }

.stack-group-name {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* chip 不可点击：无 cursor:pointer、无 tabindex、无 focus 环 */
.chip {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  line-height: 1.4;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-muted); /* 非信息性标签，5.1:1 */
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

@media (min-width: 1024px) {
  .eng {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-8);
  }

}

/* --------------------------------------------------------------------------
   13. FAQ 02 §2.8 / §8 #9
   -------------------------------------------------------------------------- */
.faq {
  max-width: 880px;
  margin-inline: auto;
  border-top: 1px solid var(--border-subtle);
}

.faq-item { border-bottom: 1px solid var(--border-subtle); }

/* h3 只承担标题层级，视觉交给内部 button */
.faq-item h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  min-height: 56px;
  padding: var(--sp-5) 0;
  border: 0;
  background: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.faq-btn .ico {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.faq-btn:hover { color: var(--accent-primary); }

.faq-item.is-open .faq-btn .ico {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

/* 用 grid-template-rows 0fr → 1fr 过渡，不猜高度。
   折叠态用 visibility: hidden 从无障碍树移除（替代 hidden 属性，
   否则无法过渡），内容本身无焦点元素。 */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows var(--dur) var(--ease),
    visibility 0s linear var(--dur);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows var(--dur) var(--ease),
    visibility 0s linear 0s;
}

.faq-panel > div { overflow: hidden; }

.faq-answer {
  margin: 0;
  padding-bottom: var(--sp-5);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-secondary);
}



/* --------------------------------------------------------------------------
   14. 联系与表单 02 §2.9 / §5
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  gap: var(--sp-7);
}

.form-col { min-width: 0; }

.contact-lead { margin-bottom: var(--sp-6); }

.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  max-width: 520px;
}

.form[data-locked="1"] .field,
.form[data-locked="1"] .dir-chips,
.form[data-locked="1"] textarea,
.form[data-locked="1"] input { pointer-events: none; }

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}

.label {
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
}

.label .req {
  color: var(--accent-primary);
  margin-left: 2px;
}

.label .hint {
  margin-left: var(--sp-1);
  font-size: var(--fs-caption);
  font-weight: 400;
  color: var(--text-secondary); /* 用户不读「选填」会误以为必填 → 信息性 */
}

.input,
.textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body); /* ≥16px，防 iOS 聚焦缩放 */
  line-height: 1.5;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.input { height: 48px; }

.textarea {
  min-height: 128px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder { color: var(--text-muted); }

.input:focus,
.textarea:focus,
.input:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

.field.has-error .label { color: var(--error); }

.field.has-error .input,
.field.has-error .textarea { border-color: var(--error); }

.field-error {
  margin-top: calc(var(--sp-1) * -1);
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--error);
}

.field-error[hidden] { display: none; }

.field-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.counter {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.counter.is-warn { color: var(--warning); }
.counter.is-max { color: var(--error); }

.dir-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.dir-chips legend {
  padding: 0;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--text-secondary);
}

.dir-chip {
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.dir-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }

.dir-chip[aria-pressed="true"] {
  border-color: var(--border-accent);
  background: var(--accent-tint);
  color: var(--accent-primary);
}

.btn-loader { display: none; }
.btn-dots { display: none; align-items: center; }

.is-submitting .btn-loader {
  display: inline-flex;
  animation: spin 1s linear infinite;
}

.is-submitting .btn-loader .ico { width: 16px; height: 16px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* 失败 alert 02 §5.4 ③ */
.form-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--error);
  border-radius: var(--radius-sm);
  background: var(--error-tint);
  color: var(--text-primary);
  font-size: var(--fs-caption);
  line-height: 1.6;
}

.form-alert[hidden] { display: none; }

.form-alert p {
  margin: 0;
  flex: 1 1 220px;
  min-width: 0;
}

/* 成功面板 02 §5.4 ② */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  max-width: 520px;
  padding: var(--sp-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.form-success[hidden] { display: none; }

.form-success .ico {
  width: 40px;
  height: 40px;
  color: var(--accent-primary);
}

.form-success h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
}

.form-success p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-secondary);
}

.form-success .qr-wrap { margin: var(--sp-1) 0; }

/* 成功态内嵌二维码 112×112（02 §3.4） */
.qr-wrap .qr-plate img {
  width: 112px;
  height: 112px;
}

/* 联系方式 */
.contact-info { min-width: 0; }

.info-title {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-secondary);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin: 0 0 var(--sp-7);
  padding: 0;
  list-style: none;
}

.info-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}

.info-row .ico {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--text-secondary);
}

.info-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-primary);
  text-decoration: none;
}

.info-row a:hover { text-decoration: underline; }

.qr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
}

.qr-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.qr-plate {
  display: block;
  padding: var(--sp-2);
  border-radius: var(--radius-md);
  background: var(--qr-plate);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.qr-plate img {
  display: block;
  width: 144px;
  height: 144px;
  border-radius: 4px;
  object-fit: contain;
  background: var(--qr-plate);
}

.qr-figure figcaption {
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--text-secondary);
}

.qr-note {
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--text-secondary);
}

.qr-mobile-hint {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .qr-grid { gap: var(--sp-5); }
  .qr-plate img { width: 152px; height: 152px; }
  .qr-mobile-hint { display: none; }
  .faq-answer { font-size: var(--fs-body); }
}

@media (min-width: 1024px) {
  .contact {
    grid-template-columns: 48fr 52fr;
    gap: var(--sp-8);
  }

  .qr-plate img { width: 144px; height: 144px; }
}

/* --------------------------------------------------------------------------
   15. 页脚 02 §2.10
   -------------------------------------------------------------------------- */
.footer {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.footer-grid {
  display: grid;
  gap: var(--sp-7);
}

.footer-brand .brand { margin-bottom: var(--sp-4); }

.footer-tagline {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-note {
  margin: 0;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-title {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-ui);
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--accent-primary); }

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-info .ico {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--text-muted);
}

.footer-info li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: var(--sp-2);
  align-items: start;
}

.footer-info a { color: var(--text-secondary); text-decoration: none; }
.footer-info a:hover { color: var(--accent-primary); text-decoration: underline; }

.footer-qr {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-qr .qr-plate { padding: 6px; }

.footer-qr .qr-plate img {
  width: 96px;
  height: 96px;
}

.footer-qr figcaption {
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--text-secondary);
}

.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-caption);
  color: var(--text-secondary);
}

.footer-bottom p { margin: 0; }

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--text-secondary); text-decoration: underline; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: var(--sp-7); }
}

/* --------------------------------------------------------------------------
   16. 浮动控件：返回顶部 + 移动端 sticky CTA（02 §6.3 / §8 #19 #20）
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    bottom var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; }

.to-top .ico { width: 20px; height: 20px; }

.to-top:hover { border-color: var(--border-accent); color: var(--accent-primary); }

body.has-sticky-cta .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }

body.has-sticky-cta .footer { padding-bottom: calc(var(--sp-8) + 64px); }

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 95;
  display: none;
  align-items: center;
  gap: var(--sp-3);
  min-height: 64px;
  padding: var(--sp-2) var(--sp-3);
  padding-bottom: calc(var(--sp-2) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  visibility: hidden;
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.sticky-cta.is-visible {
  visibility: visible;
  transform: translateY(0);
}

.sticky-cta .ico { width: 18px; height: 18px; }

.sticky-cta p {
  margin: 0;
  flex: 1 1 auto;
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--text-secondary);
}

.sticky-cta .btn { flex: 0 0 auto; }

.sticky-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.sticky-close:hover { color: var(--text-primary); }

@media (max-width: 1023px) {
  .sticky-cta { display: flex; }
}

/* --------------------------------------------------------------------------
   17. 404 页（02 §8 #23）
   -------------------------------------------------------------------------- */
.nf-main {
  display: flex;
  align-items: center;
  min-height: 100vh;   /* 旧浏览器兜底 */
  min-height: 100svh;  /* 避免移动端地址栏收缩导致跳动 */
  padding-top: calc(var(--nav-h) + var(--sp-8));
  padding-bottom: var(--sp-8);
}

.nf-inner { max-width: 640px; }

.nf-code {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-primary);
}

.nf-title {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 600;
  color: var(--text-primary);
}

.nf-lead {
  margin: 0 0 var(--sp-6);
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--text-secondary);
}

.nf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: 0 0 var(--sp-7);
  padding: 0;
  list-style: none;
}

.nf-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  text-decoration: none;
}

.nf-nav a:hover { color: var(--accent-primary); }

/* --------------------------------------------------------------------------
   18. hover 位移（只在精确指针设备生效）01 §6.2
   -------------------------------------------------------------------------- */
@media (hover: hover) {
  .card:hover,
  .scard:hover {
    border-color: var(--border-accent);
    box-shadow: var(--glow-hover);
    transform: translateY(-4px);
  }

  .card-grad:hover {
    box-shadow: var(--glow-hover);
    transform: translateY(-4px);
  }

  .chip:hover { border-color: var(--border-accent); }

  .btn:hover { transform: translateY(-1px); }

  .btn:disabled:hover { transform: none; }

  .link-arrow:hover .ico { transform: translateX(4px); }

  .qr-figure:hover .qr-plate {
    transform: translateY(-2px);
    box-shadow: var(--glow-hover);
  }

  .btn-primary:hover { box-shadow: var(--glow-btn); }
}

/* --------------------------------------------------------------------------
   19. prefers-reduced-motion 全量降级（02 §7.6）
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }

  .js .hero-eyebrow,
  .js .hero-lead,
  .js .hero-actions,
  .js .hero-trust,
  .js .hero-term,
  .js .hero-title .line-in {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .orb { animation: none !important; }

  .hero-canvas { display: none; }

  /* 抽屉改为无位移淡入/直接呈现 */
  .js .drawer:not([hidden]) { animation: none !important; }

  /* hover 只保留颜色/描边反馈，去掉位移与发光（01 §6.2） */
  .card:hover,
  .scard:hover,
  .card-grad:hover,
  .qr-figure:hover .qr-plate {
    transform: none;
    box-shadow: none;
  }

  .btn:hover { transform: none; box-shadow: none; }

  .link-arrow:hover .ico { transform: none; }

  /* 加载图标改为静态三点 */
  .is-submitting .btn-loader { display: none; }
  .is-submitting .btn-dots { display: inline-flex; }
}

.btn-dots i {
  width: 3px;
  height: 3px;
  margin-inline: 1.5px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   20. forced-colors / 高对比模式兜底（02 §7.7 / §8.1 H2）
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .grad-text {
    background: none;
    -webkit-text-fill-color: CanvasText;
    color: CanvasText;
  }

  .card,
  .card-grad,
  .scard,
  .term,
  .form-success {
    border: 1px solid CanvasText;
    background: Canvas;
  }

  /* 高对比模式下渐隐遮罩既无意义也会糊住文字；可聚焦已由 tabindex 承担 */
  .term.is-scrollable::after {
    display: none;
  }

  .orb,
  .hero-grid,
  .hero-noise,
  .hero-canvas { display: none; }

  .btn,
  .input,
  .textarea,
  .dir-chip { border: 1px solid ButtonText; }

  .qr-plate { background: Canvas; }
}

/* --------------------------------------------------------------------------
   21. 移动端细节修正
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Hero 终端卡内边距收到 --sp-4（原 --sp-5），把宽度让给 12px 等宽内容：
     375 下曾因 process 四行各自超出 6px 而把行尾 "ok" 切成 "o"（team-lead 定稿，见 02 §2.2 v1.11） */
  .term { padding: var(--sp-4) var(--sp-4) var(--sp-3); }

  /* 只保留前 8 行内容 + 底部渐隐，避免过长 */
  .term-body {
    font-size: 12px; /* 下限 12px（01 §3.3：中文字号下限），11px 违反红线 */
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }

  .term-line:nth-child(n + 9) { display: none; }

  .hero-actions .btn { width: 100%; }

}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .hero-actions .btn { flex: 1 1 0; }
}

@media (min-width: 1024px) {
  .faq-btn { padding: var(--sp-5) 0; }

  .hero-inner {
    grid-template-columns: 55fr 45fr;
    gap: var(--sp-8);
    align-items: center;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-4);
  }

  .hero-actions .btn { flex: 0 0 auto; }

  .term { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
}

/* 200% 缩放 / 窄视口：404 数字不撑破视口
   （终端卡内边距已在 ≤767 档统一为 --sp-4，此处不再覆写，避免两处取值打架） */
@media (max-width: 400px) {
  .nf-code { font-size: 56px; }
}

/* 打印：隐藏装饰与浮动控件 */
@media print {
  .site-header,
  .drawer,
  .drawer-scrim,
  .to-top,
  .sticky-cta,
  .hero-bg { display: none !important; }

  body { background: #fff; color: #000; }
}
