/* ═══════════════════════════════════════════════════════════════════
   百目 JArgus 官网样式 · 深蓝代码检查器风
   ─────────────────────────────────────────────────────────────────
   设计不变量（与 synctool-web 家族约定一致，视觉刻意区分）：
   1. 深色模式只覆盖 :root 变量，组件不写第二套规则；
      例外只有三处「本来就是深色」的组件：.hero / .cta / .code / .term
      （它们在浅色模式下也是深石板色，和代码块同理）。
   2. 平面 + 1px 细边框 + 小圆角（8~12px），不用玻璃拟态和大阴影。
   3. mono 等宽字体做点缀：眉标 / 版本号 / 表头 / 徽章 / 代码。
   4. 品牌色 = 深蓝 #1d4ed8 + 青 #0891b2/#22d3ee + 琥珀 #f59e0b，
      严重度色对齐产品内五级：阻断/严重/主要/次要/提示。
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* 品牌与强调 */
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --brand-light: #3b82f6;
  --cyan: #0891b2;
  --cyan-bright: #22d3ee;
  --amber: #f59e0b;
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;

  /* 按钮实心底色（保证白色文字对比度，明暗两套） */
  --btn-bg: #1d4ed8;
  --btn-bg-hover: #1e40af;
  --btn-ink: #ffffff;

  /* 五级严重度（与产品内配色一致） */
  --lv-blocker: #b91c1c;
  --lv-critical: #ef4444;
  --lv-major: #d97706;
  --lv-minor: #0284c7;
  --lv-info: #64748b;

  /* 文字与背景 */
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #8494a8;
  --bg: #f6f8fb;
  --bg-soft: #ffffff;
  --bg-tint: #eef2f7;
  --line: #dce3ec;

  /* 恒定深色的组件（hero / cta / 终端 / 代码块）自有配色 */
  --slate: #0b1220;
  --slate-soft: #111a2c;
  --slate-line: #1e293b;
  --term-bg: #0d1117;
  --term-head: #161b22;
  --term-line: #21262d;
  --term-ink: #e6edf3;
  --term-dim: #8b949e;

  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);

  --max-w: 1180px;
  --nav-h: 64px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* 深色模式：只覆盖变量，组件无需第二套规则 */
[data-theme="dark"] {
  --brand: #60a5fa;
  --brand-dark: #3b82f6;
  --brand-light: #93c5fd;
  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --amber: #fbbf24;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  --btn-bg: #2563eb;
  --btn-bg-hover: #1d4ed8;
  --btn-ink: #ffffff;

  --lv-blocker: #f87171;
  --lv-critical: #fb7185;
  --lv-major: #fbbf24;
  --lv-minor: #38bdf8;
  --lv-info: #94a3b8;

  --ink: #e2e8f0;
  --ink-soft: #9fb0c3;
  --ink-mute: #64748b;
  --bg: #0b1220;
  --bg-soft: #111a2c;
  --bg-tint: #0e1626;
  --line: #1e293b;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ─── 基础 ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.tinted { background: var(--bg-tint); }

.mono { font-family: var(--mono); }
.hl { color: var(--cyan); }
[data-theme="light"] .hl { color: var(--brand); }
.hide-sm { display: initial; }

h1, h2, h3 { line-height: 1.3; font-weight: 700; }

/* ─── 区块头（左对齐，区别于居中玻璃风） ───────────────── */
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head h1, .sec-head h2 { font-size: 34px; letter-spacing: -0.01em; }
.sec-head h1 { font-size: 38px; }
.sec-head p { margin-top: 12px; color: var(--ink-soft); font-size: 16.5px; }
.more-link {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brand);
  border-bottom: 1px dashed currentColor;
}

/* ─── 导航 ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--slate);
  border: 1px solid var(--slate-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo-txt small {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 8px 13px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-tint); }
/* 当前页：青色下划线条（不是胶囊底色） */
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  background: var(--cyan-bright);
  border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 16px;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* ─── 面包屑 ───────────────────────────────────────────── */
.crumb-bar {
  padding: calc(var(--nav-h) + 18px) 0 0;
  background: var(--bg);
}
.crumb {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mute);
}
.crumb a { color: var(--ink-mute); }
.crumb a:hover { color: var(--cyan); }
.crumb span { margin: 0 8px; color: var(--cyan); }
.crumb b { color: var(--ink-soft); font-weight: 500; }
.crumb-bar + section { padding-top: 34px; }

/* ─── 按钮 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg-soft); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
/* 按钮内品牌图标：gitee.ico 含 16–64 五档，浏览器按屏幕密度自取 */
.btn-ico { width: 16px; height: 16px; flex: none; }
/* 深色带（.cta）上的两种按钮 */
.btn-white { background: #f8fafc; color: #0b1220; }
.btn-white:hover { background: #dbe6f5; color: #0b1220; }
.btn-line { background: transparent; border-color: #334155; color: #e2e8f0; }
.btn-line:hover { border-color: var(--cyan-bright); color: var(--cyan-bright); }

/* ─── Hero（恒定深石板 + 网格线背景，明暗主题同色） ───── */
.hero {
  padding: calc(var(--nav-h) + 72px) 0 84px;
  background:
    radial-gradient(900px 480px at 78% 12%, rgba(29, 78, 216, 0.30), transparent 65%),
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    var(--slate);
  background-size: auto, 36px 36px, 36px 36px, auto;
  background-repeat: no-repeat, repeat, repeat, repeat;
  color: #e2e8f0;
  border-bottom: 1px solid var(--slate-line);
}
/* ─── 星空（hero / cta 两条深色带共用） ────────────────────
   六种星点（含青 / 灰蓝）按不同密度平铺，各层以不同速度斜向漂移出视差，
   叠整层呼吸式闪烁；纯 CSS 零资源。reduced-motion 被全局规则定格为静态星空。
   （.cta 定义在后，伪元素规则与顺序无关。） */
.hero, .cta { position: relative; }
.hero::before, .cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 25px 35px, rgba(248, 250, 252, 0.95) 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, rgba(248, 250, 252, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 150px, rgba(248, 250, 252, 0.65) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 200px 140px, rgba(34, 211, 238, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 40px, rgba(248, 250, 252, 0.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 260px 90px, rgba(248, 250, 252, 0.35) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 150px 210px, rgba(148, 163, 184, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 40px 110px, rgba(34, 211, 238, 0.55) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 180px 60px, rgba(248, 250, 252, 0.75) 50%, transparent 51%),
    radial-gradient(2.2px 2.2px at 300px 220px, rgba(248, 250, 252, 0.28) 50%, transparent 51%);
  background-size:
    190px 170px, 230px 210px, 170px 230px, 320px 280px, 210px 190px,
    380px 340px, 260px 240px, 290px 260px, 240px 300px, 460px 400px;
  background-repeat: repeat;
  animation: star-drift 140s linear infinite, star-twinkle 5.5s ease-in-out infinite alternate;
}
.hero > .wrap, .cta > .wrap { position: relative; z-index: 1; }
/* 每层位移恰为自身一个瓦片，循环无缝；距离不同即视差 */
@keyframes star-drift {
  to {
    background-position:
      -190px 170px, -230px 210px, -170px 230px, -320px 280px, -210px 190px,
      -380px 340px, -260px 240px, -290px 260px, -240px 300px, -460px 400px;
  }
}
@keyframes star-twinkle { from { opacity: 0.55; } to { opacity: 1; } }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: #94a3b8;
  border: 1px solid var(--slate-line);
  background: rgba(17, 26, 44, 0.7);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
.hero-badge b {
  font-size: 10.5px;
  color: var(--slate);
  background: var(--cyan-bright);
  border-radius: 4px;
  padding: 1px 7px;
  letter-spacing: 0.1em;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.22;
  color: #f8fafc;
  letter-spacing: -0.015em;
}
/* hero 是恒定深色区，强调色不随浅色主题切换 */
.hero h1 .hl { color: var(--cyan-bright); }
.hero-sub {
  margin-top: 20px;
  font-size: 16.5px;
  color: #9fb0c3;
  max-width: 560px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.hero .btn-ghost {
  background: transparent;
  border-color: #334155;
  color: #e2e8f0;
}
.hero .btn-ghost:hover { border-color: var(--cyan-bright); color: var(--cyan-bright); }
.hero-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: #7ee787;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  font-size: 13.5px;
  color: #7d8ea3;
}
.hero-meta li { display: flex; align-items: center; gap: 6px; }
.hero-meta svg {
  width: 14px; height: 14px;
  flex: none;
  stroke: var(--cyan-bright);
}

/* 下载徽章：青描边深色胶囊（受后台「版本管理」控制，默认 hidden） */
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--cyan-bright);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.dl-badge:hover { background: rgba(34, 211, 238, 0.18); color: #f8fafc; }
.dl-badge svg { width: 16px; height: 16px; fill: var(--cyan-bright); flex: none; }
.dl-label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; }
.dl-ver {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate);
  background: var(--cyan-bright);
  border-radius: 999px;
  padding: 1px 9px;
  font-weight: 700;
}

/* ─── Hero 右侧：终端窗 mock ───────────────────────────── */
.term {
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
  font-family: var(--mono);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--term-head);
  border-bottom: 1px solid var(--term-line);
  padding: 10px 14px;
}
.tdot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.tdot.r { background: #ff5f56; } .tdot.y { background: #ffbd2e; } .tdot.g { background: #27c93f; }
.term-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--term-dim);
  letter-spacing: 0.04em;
}
/* 进度条：默认满条 + 100%（无 JS 的静态终态）；JS 播放时 .js-term 归零，随日志爬升 */
.term-prog { display: flex; align-items: center; gap: 10px; padding: 10px 14px 0; }
.term-prog-track { flex: 1; height: 4px; border-radius: 2px; background: var(--term-line); overflow: hidden; }
.term-prog i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22d3ee, #1d4ed8);
  transition: width 0.35s ease;
}
.term-prog b {
  font-size: 11px;
  font-weight: 600;
  color: var(--term-dim);
  min-width: 4ch;
  text-align: right;
}
.term.js-term .term-prog i { width: 0; }
/* 日志逐行流式：opacity 隐藏（保留行高不抖动），逐行点亮；结果区等扫完再出 */
.term.js-term .term-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.term.js-term .term-line.on { opacity: 1; transform: none; }
.term.js-term .term-result {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.term.term-done .term-result { opacity: 1; transform: none; }
.term-body { padding: 18px 20px 20px; font-size: 13px; line-height: 1.9; color: var(--term-ink); }
.term-line { white-space: pre-wrap; word-break: break-all; }
.term-line .c { color: #7ee787; }
.term-line .ok { color: #4ade80; }
.term-line .warn { color: #fbbf24; }
.term-line .dim { color: var(--term-dim); }
.term-line.dim { color: var(--term-dim); }
.term-result {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--term-line);
}
.ring-wrap { position: relative; width: 96px; height: 96px; flex: none; }
.ring-wrap svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--term-line); stroke-width: 8; }
.ring-fg { fill: none; stroke: url(#ringGrad); stroke-width: 8; stroke-linecap: round; }
.ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
}
.ring-num small { font-size: 10px; font-weight: 400; color: var(--term-dim); margin-top: 4px; letter-spacing: 0.08em; }
.term-sum { flex: 1; min-width: 0; }
.term-sum p { font-size: 12.5px; color: var(--term-dim); }
.gate-pass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
  border-radius: 999px;
  padding: 3px 12px;
}

/* 五级严重度小胶囊（hero / 表格 / 门禁页共用） */
.lv {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  vertical-align: middle;
}
.lv-blocker  { background: var(--lv-blocker); }
.lv-critical { background: var(--lv-critical); }
.lv-major    { background: var(--lv-major); }
.lv-minor    { background: var(--lv-minor); }
.lv-info     { background: var(--lv-info); }
[data-theme="dark"] .lv { color: #0b1220; }

/* ─── 数字带 ───────────────────────────────────────────── */
.stats-sec { padding: 48px 0 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}
.stat {
  padding: 26px 18px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-n {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
}
.stat-t {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

/* ─── 卡片与网格 ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.card-ico {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: var(--bg-tint);
}
.ci-blue  { color: var(--brand); border-color: rgba(29, 78, 216, 0.35); background: rgba(29, 78, 216, 0.07); }
.ci-cyan  { color: var(--cyan); border-color: rgba(8, 145, 178, 0.35); background: rgba(8, 145, 178, 0.07); }
.ci-amber { color: var(--amber); border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08); }
.ci-red   { color: var(--bad); border-color: rgba(220, 38, 38, 0.35); background: rgba(220, 38, 38, 0.06); }
.ci-green { color: var(--ok); border-color: rgba(5, 150, 105, 0.35); background: rgba(5, 150, 105, 0.07); }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }
.card .dom-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 10px;
}
.card ul.tick { margin-top: 10px; }
.card ul.tick li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 3px 0 3px 20px;
  position: relative;
}
.card ul.tick li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--cyan);
  font-size: 12px;
}

/* chips（AI 模板 / 标签墙） */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 5px 14px;
}
.chip.hot { border-color: rgba(8, 145, 178, 0.5); color: var(--cyan); }

/* 数据库徽章墙 */
.db-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.db-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}
.db-chip .mono { font-size: 11px; color: var(--ink-mute); font-weight: 400; }
.db-chip.cn { border-color: rgba(245, 158, 11, 0.55); }
.db-chip.cn::after {
  content: "信创";
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 4px;
  padding: 0 5px;
}

/* ─── 闭环流程条 ───────────────────────────────────────── */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
/* 横排总宽约 1075px，.wrap 可用 1112px —— 刚好一行放下；再宽就会折出孤箭头 */
.flow-step {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  min-width: 168px;
  text-align: center;
  /* 入场等 .flow.in，延迟按 nth-child 逐个错开（见下） */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flow-step b { color: var(--cyan); font-weight: 700; margin-right: 8px; }
.flow-step small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-top: 5px;
}
/* 流式箭头：虚线轨道恒定向右滚动 + 实心箭头，像扫描结果在流向下一步 */
.flow-arrow {
  position: relative;
  width: 38px;
  height: 2px;
  flex: none;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 5px, transparent 5px 10px);
  animation: flow-dash 0.7s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.flow-arrow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 7px solid var(--cyan);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
@keyframes flow-dash { to { background-position: 10px 0; } }  /* 位移恰为一个虚线周期，循环无缝 */
.flow.in > * { opacity: 1; transform: none; }
/* 按次序错峰入场，整条约 1s 落完 */
.flow.in > *:nth-child(1) { transition-delay: 0s; }
.flow.in > *:nth-child(2) { transition-delay: 0.1s; }
.flow.in > *:nth-child(3) { transition-delay: 0.2s; }
.flow.in > *:nth-child(4) { transition-delay: 0.3s; }
.flow.in > *:nth-child(5) { transition-delay: 0.4s; }
.flow.in > *:nth-child(6) { transition-delay: 0.5s; }
.flow.in > *:nth-child(7) { transition-delay: 0.6s; }
.flow.in > *:nth-child(8) { transition-delay: 0.7s; }
.flow.in > *:nth-child(9) { transition-delay: 0.8s; }

/* ─── 步骤 ─────────────────────────────────────────────── */
.steps { display: grid; gap: 16px; }
/* 单列堆叠：序号已写进各步标题（「1. 启动」），不再另放数字块占地方 */
.step {
  display: grid;
  gap: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
/* 行间距统一交给 .step 的 gap（18px），这里不再叠 margin，避免疏密不一 */
.step h3 { font-size: 16.5px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ─── 代码块（终端风，恒定深色） ───────────────────────── */
.code {
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--term-head);
  border-bottom: 1px solid var(--term-line);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--term-dim);
}
.code-head .fname { margin-right: auto; letter-spacing: 0.04em; }
.code pre {
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--term-ink);
}
.code .c { color: #8b949e; }   /* 注释 */
.code .k { color: #79c0ff; }   /* 关键字/参数 */
.code .s { color: #a5d6ff; }   /* 字符串 */
.code .n { color: #7ee787; }   /* 命令/成功输出 */
.copy {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--term-dim);
  background: transparent;
  border: 1px solid var(--term-line);
  border-radius: 6px;
  padding: 2px 10px;
}
.copy:hover { color: var(--cyan-bright); border-color: var(--cyan-bright); }
.copy.done { color: #4ade80; border-color: rgba(74, 222, 128, 0.5); }

/* 行内代码 */
:not(pre) > code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--cyan);
}
[data-theme="light"] :not(pre) > code { color: #0e7490; }

/* ─── 提示条 ───────────────────────────────────────────── */
.tip {
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-left: 4px solid var(--amber);
  background: rgba(245, 158, 11, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 18px 0;
}
.tip strong { color: var(--ink); }
.tip.danger {
  border-color: rgba(220, 38, 38, 0.4);
  border-left-color: var(--bad);
  background: rgba(220, 38, 38, 0.05);
}

/* ─── 表格 ─────────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
/* 列少内容短的小表（门禁扣分表）不需要 640px 滚动门槛：中宽屏下自然换行，
   不然 .table-scroll 会冒出一条并没有内容可滚的横条 */
table.fit { min-width: 0; }
th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-soft);
  background: var(--bg-tint);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
td:first-child, th:first-child { color: var(--ink); font-weight: 600; }
td .mono, td.mono { font-size: 12.5px; }
/* 本产品列高亮 */
th.me, td.me {
  background: rgba(8, 145, 178, 0.06);
  color: var(--ink);
  border-left: 1px solid rgba(8, 145, 178, 0.35);
  border-right: 1px solid rgba(8, 145, 178, 0.35);
}
td.yes { color: var(--ok); font-weight: 600; }
td.no  { color: var(--ink-mute); }
td.mid { color: var(--warn); }

/* ─── 截图画廊 Tab ─────────────────────────────────────── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}
.tab {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 15px;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--cyan); border-color: var(--cyan); }
.tab.active {
  color: var(--btn-ink);
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  font-weight: 600;
}
.panel { display: none; }
.panel.active { display: block; }
.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}
.shot img { width: 100%; height: auto; }
.shot-cap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.shot-cap b { color: var(--ink); }
.shot-cap .no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

/* 面板内的说明文字（截图画廊） */
.panel h3 { font-size: 18px; margin-bottom: 6px; }
.panel > p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; max-width: 880px; }

/* 小节标题（页内分节） */
.sub-h {
  font-size: 20px;
  margin: 44px 0 20px;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
}

/* 对比表图例 */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-mute);
}

/* 赞助表格单元格 */
td.sp-name { color: var(--ink); font-weight: 600; }
td.sp-amt { font-family: var(--mono); color: var(--cyan); white-space: nowrap; }

/* ─── 诚实定位块 ───────────────────────────────────────── */
.honest {
  border: 1px dashed var(--line);
  border-left: 4px solid var(--cyan);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-top: 34px;
}
.honest p { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; }
.honest strong { color: var(--ink); }

/* ─── FAQ ──────────────────────────────────────────────── */
.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 6px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--cyan);
  width: 26px;
  flex: none;
  text-align: center;
}
.qa[open] summary::before { content: "−"; }
.qa summary:hover { color: var(--cyan); }
.qa-body { padding: 0 6px 20px 40px; font-size: 14.5px; color: var(--ink-soft); }
.qa-body p + p { margin-top: 10px; }
.qa-body code { white-space: nowrap; }

/* ─── 更新日志（GitHub Releases 风，方卡 + mono） ──────── */
.rel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 26px 28px;
  margin-bottom: 22px;
}
.rel.latest { border-color: rgba(8, 145, 178, 0.55); box-shadow: 0 0 0 1px rgba(8, 145, 178, 0.2); }
.rel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rel-head h2 { font-family: var(--mono); font-size: 24px; letter-spacing: -0.01em; }
.rel-latest {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--btn-ink);
  background: var(--cyan);
  border-radius: 999px;
  padding: 3px 12px;
}
[data-theme="dark"] .rel-latest { color: #0b1220; background: var(--cyan-bright); }
.rel-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
}
.rel-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: 8px;
}
.rel-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
}
.rel-assets .assets-t {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  width: 100%;
}
.rel-asset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}
.rel-asset:hover { border-color: var(--cyan); color: var(--cyan); }
.rel-body { margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); }
.rel-body h3 {
  font-size: 15.5px;
  color: var(--ink);
  margin: 20px 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
}
.rel-body ul { margin: 6px 0 6px 4px; }
.rel-body li { padding: 3px 0 3px 20px; position: relative; }
.rel-body li::before { content: "▸"; position: absolute; left: 4px; color: var(--cyan); font-size: 12px; }
.rel-body strong { color: var(--ink); }
.rel-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* ─── 赞助页 ───────────────────────────────────────────── */
.qr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.qr-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 22px;
  text-align: center;
}
.qr-img {
  /* 二维码必须白底，深色模式也保持白底才扫得出来 */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: inline-block;
}
.qr-img img { width: 200px; height: 200px; }
.qr-name { margin-top: 14px; font-weight: 600; font-size: 15px; }
.qr-name .mono { display: block; font-size: 11.5px; color: var(--ink-mute); font-weight: 400; margin-top: 3px; letter-spacing: 0.06em; }
.sponsor-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.sponsor-stats b { color: var(--cyan); font-size: 17px; }
#spMoreWrap { text-align: center; margin-top: 18px; }
#spMore {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  background: transparent;
  border: 1px dashed var(--cyan);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
}
.empty-state {
  text-align: center;
  color: var(--ink-mute);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 20px;
  font-size: 14.5px;
}
.copy-inline {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 8px;
  margin-left: 6px;
}
.copy-inline:hover { color: var(--cyan); border-color: var(--cyan); }
.copy-inline.done { color: var(--ok); border-color: var(--ok); }
/* 与上方二维码同一 footprint：三列卡片一行排开 */
.contact-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 26px auto 0; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
}
.contact-line .k { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); width: 52px; flex: none; }
.contact-line .copy-inline { margin-left: auto; }
/* 网格里的说明文字横跨整行，别掉进第二行第一列 */
.contact-lines > p { grid-column: 1 / -1; text-align: center; }

/* ─── 友情链接 ─────────────────────────────────────────── */
.friend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.friend {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.friend:hover { border-color: var(--cyan); color: var(--ink); }
.friend-ico {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: none;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.friend-ico img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.friend-letter {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--cyan);
}
.friend-ico:not(.noimg) .friend-letter { visibility: hidden; }
.friend-txt { min-width: 0; display: flex; flex-direction: column; }
.friend-txt b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-desc {
  font-size: 12px;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── CTA（恒定深色带） ────────────────────────────────── */
.cta {
  padding: 76px 0;
  background:
    radial-gradient(720px 320px at 50% 0%, rgba(29, 78, 216, 0.26), transparent 70%),
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    var(--slate);
  background-size: auto, 36px 36px, 36px 36px, auto;
  background-repeat: no-repeat, repeat, repeat, repeat;
  border-top: 1px solid var(--slate-line);
  text-align: center;
  color: #e2e8f0;
}
.cta h2 { font-size: 32px; color: #f8fafc; }
.cta p { margin: 14px auto 0; max-width: 620px; color: #9fb0c3; font-size: 15.5px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.cta .term-cmd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13.5px;
  color: #7ee787;
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  margin-top: 26px;
}

/* ─── 页脚 ─────────────────────────────────────────────── */
footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}
.foot-brand .logo { margin-bottom: 14px; }
.foot-brand p { color: var(--ink-soft); font-size: 13.5px; max-width: 320px; }
.foot-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 5px;
  padding: 3px 9px;
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.foot-col li { margin-bottom: 9px; }
.foot-col a, .linkish {
  color: var(--ink-soft);
  font-size: 13.5px;
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
}
.foot-col a:hover, .linkish:hover { color: var(--cyan); }
.foot-btm {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.foot-btm a { color: var(--ink-soft); }
.foot-btm a:hover { color: var(--cyan); }

/* ─── 联系弹窗（放在 footer 内，7 页同哈希） ──────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.6);
  /* 用 visibility/opacity 过渡：display 没法过渡，hidden 属性又会被 flex 顶掉。
     visibility 必须 0s 翻转、不能参与 0.2s 过渡——否则打开的一瞬间计算值仍是
     hidden，openContact() 里的 contactClose.focus() 会静默失败，键盘焦点进不了
     弹窗（Tab 圈定也随之失效）。关闭时给 visibility 加 0.2s 延迟再翻回 hidden，
     淡出动画才能播完整。 */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0s linear 0.2s;
  padding: 20px;
}
.modal.open { visibility: visible; opacity: 1; transition: opacity 0.2s, visibility 0s; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-md);
}
.modal-card h3 { font-size: 18px; margin-bottom: 12px; }
.modal-card > p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.modal-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-mute);
  font-size: 14px;
}
.modal-x:hover { color: var(--bad); border-color: var(--bad); }
.modal-x svg { width: 14px; height: 14px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .k { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); width: 64px; flex: none; }
.contact-list .copy-inline { margin-left: auto; }

/* ─── 滚动进入动画 / 回顶 ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

.top-btn {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 90;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 17px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, color 0.15s, border-color 0.15s;
  box-shadow: var(--shadow);
}
.top-btn.show { opacity: 1; pointer-events: auto; }
.top-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.top-btn svg { width: 18px; height: 18px; }

/* ─── 响应式 ───────────────────────────────────────────── */
/* 流程条横排要 ~1075px，更窄就改竖排 —— 半路折行会出现行尾孤箭头 */
@media (max-width: 1199px) {
  .flow { flex-direction: column; align-items: center; gap: 10px; }
  .flow-step { min-width: 0; width: 100%; max-width: 420px; }
  /* rotate 独立于 transform，入场动画不会抹掉朝向；虚线流向随之向下 */
  .flow-arrow { rotate: 90deg; margin: 4px 0; }
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active::after { left: 10px; right: auto; width: 26px; bottom: 8px; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero h1 { font-size: 38px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+3) { border-top: none; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .friend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: calc(var(--nav-h) + 44px) 0 56px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .sec-head h1 { font-size: 27px; }
  .sec-head h2 { font-size: 25px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .qr-grid { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
  .contact-lines { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .friend-grid { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .term-body { font-size: 12px; padding: 14px; }
  .term-result { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rel { padding: 20px 18px; }
  .rel-head h2 { font-size: 20px; }
  .step { gap: 12px; padding: 18px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .hero-cta .dl-badge { width: 100%; justify-content: center; }
  .cta h2 { font-size: 25px; }
}

/* 降低动态效果偏好：关动画、直接显示内容 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .flow > * { opacity: 1; transform: none; }
}
