/* ============================================================
   Evolution X warsaw — "FASTBOOT TERMINAL" 工程终端美学
   AOSP 绿 · 深黑终端底 · 等宽字 · 方角组件 · 独立于其他项目
   仿真终端窗口在浅色模式下仍保持深色（工具窗恒定深色）
   ============================================================ */

:root {
  /* 仿真终端窗口：两主题下恒定深色 */
  --term-bg: #050907;
  --term-bar: #0d1411;
  --term-line: rgba(160, 255, 200, 0.10);
  --term-green: #3ddc84;
  --term-green-dim: #2a9d5e;
  --term-text: #b8d4c4;
  --term-muted: #5f7a6c;
  --term-cursor: #3ddc84;
  --term-ok: #3ddc84;
  --term-amber: #ffb454;
  --term-red: #ff6b6b;
  --term-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);

  color-scheme: dark;

  /* —— 深色终端主题（默认） —— */
  --bg: #070a09;
  --bg-alt: #0a0e0c;
  --card: #0d1310;
  --card-2: #0a100d;
  --line: rgba(170, 230, 195, 0.10);
  --line-strong: rgba(170, 230, 195, 0.20);

  --text: #e7f5ec;
  --body: #a6bcae;
  --dim: #7d9187;
  --mute: #5c6f64;

  --accent: #3ddc84;
  --accent-ink: #06281a;
  --accent-soft: rgba(61, 220, 132, 0.10);
  --accent-line: rgba(61, 220, 132, 0.34);

  --amber: #ffb454;
  --amber-soft: rgba(255, 180, 84, 0.09);
  --amber-line: rgba(255, 180, 84, 0.32);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.08);
  --red-line: rgba(255, 107, 107, 0.34);

  --grid: rgba(160, 255, 200, 0.045);
  --glow: rgba(61, 220, 132, 0.16);
  --glow-strong: rgba(61, 220, 132, 0.28);
  --scan: rgba(160, 255, 200, 0.025);

  --selection: rgba(61, 220, 132, 0.26);
  --btn-ghost-bg: rgba(160, 255, 200, 0.04);
  --table-hover: rgba(61, 220, 132, 0.06);
  --code-inline-bg: rgba(61, 220, 132, 0.13);
  --shadow-card: 0 10px 30px -16px rgba(0, 0, 0, 0.7);
  --shadow-btn: 0 8px 24px -8px rgba(61, 220, 132, 0.35);
  --backtop-bg: rgba(10, 16, 13, 0.9);

  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1160px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas,
    "Courier New", monospace;
}

/* —— 浅色：冷纸工程图模式（仿真终端仍深色） —— */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #e8eee9;
  --bg-alt: #dee7e0;
  --card: #f6faf7;
  --card-2: #ecf3ee;
  --line: rgba(12, 56, 36, 0.12);
  --line-strong: rgba(12, 56, 36, 0.22);

  --text: #0a1f15;
  --body: #32483d;
  --dim: #566b5e;
  --mute: #7e9085;

  --accent: #0a9254;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 146, 84, 0.09);
  --accent-line: rgba(10, 146, 84, 0.32);

  --amber: #b26a00;
  --amber-soft: rgba(178, 106, 0, 0.08);
  --amber-line: rgba(178, 106, 0, 0.28);
  --red: #d83a3a;
  --red-soft: rgba(216, 58, 58, 0.07);
  --red-line: rgba(216, 58, 58, 0.30);

  --grid: rgba(12, 56, 36, 0.055);
  --glow: rgba(10, 146, 84, 0.12);
  --glow-strong: rgba(10, 146, 84, 0.20);
  --scan: rgba(12, 56, 36, 0.025);

  --selection: rgba(10, 146, 84, 0.20);
  --btn-ghost-bg: rgba(12, 56, 36, 0.04);
  --table-hover: rgba(10, 146, 84, 0.06);
  --code-inline-bg: rgba(10, 146, 84, 0.12);
  --shadow-card: 0 10px 30px -18px rgba(12, 40, 26, 0.25);
  --shadow-btn: 0 8px 24px -10px rgba(10, 146, 84, 0.4);
  --backtop-bg: rgba(246, 250, 247, 0.92);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; background: var(--bg); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 15.5px;
}
::selection { background: var(--selection); color: var(--text); }
.mono { font-family: var(--mono); }

html { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
html::-webkit-scrollbar { width: 9px; height: 9px; }
html::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 0; }
html::-webkit-scrollbar-track { background: transparent; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ============ 滚动进度条 ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent);
  z-index: 1000;
  box-shadow: 0 0 12px var(--accent);
}

/* ============ 导航 ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; line-height: 0; }
.brand-mark svg { width: 30px; height: 30px; display: block; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: .2px; color: var(--text); }
.brand-sub {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  color: var(--accent); border: 1px solid var(--accent-line);
  background: var(--accent-soft); padding: 2px 8px; border-radius: 4px;
}

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .18s; padding: 4px 0; position: relative;
}
.nv-key { font-family: var(--mono); font-size: 11px; color: var(--mute); margin-right: 2px; }
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover .nv-key, .nav-links a.active .nv-key { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 6px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn-ghost-bg); border: 1px solid var(--line-strong);
  color: var(--dim); cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 82% -10%, var(--glow) 0%, transparent 66%),
    radial-gradient(560px 380px at 8% 4%, var(--glow) 0%, transparent 62%),
    var(--bg);
}
/* 网格 + 扫描线 */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 25%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, var(--scan) 0 1px, transparent 1px 4px);
  opacity: .5;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero-copy { min-width: 0; }

/* 设备状态行 */
.statusline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 22px; }
.sl-item {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--dim); letter-spacing: .3px;
}
.sl-item .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 7px; vertical-align: 1px;
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-title {
  font-size: clamp(40px, 5.4vw, 64px); font-weight: 800;
  line-height: 1.06; letter-spacing: -1.5px; color: var(--text); margin-bottom: 20px;
}
.title-mono {
  display: inline-block; margin-top: 6px;
  font-family: var(--mono); font-size: clamp(17px, 2vw, 23px); font-weight: 700;
  letter-spacing: .5px; color: var(--accent);
}
.hero-sub { font-size: clamp(15px, 1.3vw, 17px); color: var(--dim); max-width: 560px; margin-bottom: 20px; }
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  padding: 4px 11px; border-radius: 4px;
  color: var(--dim); border: 1px solid var(--line-strong); background: var(--btn-ghost-bg);
}
.tag-amber { color: var(--amber); border-color: var(--amber-line); background: var(--amber-soft); }

.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-size: 14.5px; font-weight: 700;
  text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  border: 1px solid transparent; font-family: var(--font); cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px var(--accent); filter: brightness(1.06); }
.btn-ghost { background: var(--btn-ghost-bg); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-bracket { font-family: var(--mono); opacity: .55; font-weight: 400; }
.dl-arrow { font-family: var(--mono); }
.btn-block { width: 100%; justify-content: center; margin-top: auto; }

/* NOTE 提示条（终端 message 风） */
.term-note {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 580px; padding: 12px 15px;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
}
.tn-label {
  flex-shrink: 0; font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft);
  padding: 2px 8px; border-radius: 4px; margin-top: 2px;
}
.term-note p { font-size: 13.3px; color: var(--dim); line-height: 1.7; }
.term-note strong { color: var(--text); }

/* ============ 仿真终端窗口 ============ */
.terminal {
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: 10px;
  box-shadow: var(--term-shadow);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: var(--term-bar);
  border-bottom: 1px solid var(--term-line);
}
.tb-dot { width: 11px; height: 11px; border-radius: 50%; }
.tb-red { background: #ff5f57; }
.tb-amber { background: #febc2e; }
.tb-green { background: #28c840; }
.tb-title {
  margin-left: 9px; font-family: var(--mono); font-size: 11.5px;
  color: var(--term-muted); letter-spacing: .3px;
}
.term-body {
  position: relative;
  padding: 18px 18px;
  font-family: var(--mono); font-size: 13px; line-height: 1.85;
  color: var(--term-text);
  min-height: 100%;
}

/* hero 终端打字机 */
.term-hero .term-body { min-height: 300px; padding: 20px 22px; font-size: 12.8px; }
.t-line { white-space: pre-wrap; word-break: break-word; }
.t-prompt { color: var(--term-green); font-weight: 700; }
.t-ok { color: var(--term-ok); font-weight: 600; }
.t-muted { color: var(--term-muted); }
.t-amber { color: var(--term-amber); }
.t-caret {
  display: inline-block; width: 8px; height: 15px; margin-left: 2px;
  background: var(--term-cursor); vertical-align: -2px;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* ============ 统计面板 ============ */
.stats-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 58px; }
.stat {
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius-sm); padding: 20px 18px;
  transition: border-color .22s, transform .22s, box-shadow .22s;
  position: relative;
}
.stat::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.stat:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.stat:hover::before { transform: scaleX(1); }
.stat-k { font-family: var(--mono); font-size: 11px; color: var(--mute); margin-bottom: 8px; }
.stat-v {
  font-family: var(--mono); font-size: clamp(26px, 2.8vw, 36px); font-weight: 800;
  color: var(--accent); line-height: 1.1; letter-spacing: -.5px;
}
.stat-v .unit { font-size: .5em; margin-left: 3px; color: var(--dim); }
.stat-d { font-size: 12.3px; color: var(--mute); margin-top: 6px; }

/* ============ 通用章节 ============ */
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 44px; }
.sec-index {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: 2px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 5px 14px; border-radius: 4px; margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(26px, 3.1vw, 36px); font-weight: 800; letter-spacing: -.5px;
  color: var(--text); margin-bottom: 10px;
}
.section-head p { color: var(--dim); font-size: 15.5px; max-width: 640px; margin: 0 auto; }

code {
  font-family: var(--mono); font-size: .86em; font-weight: 500;
  background: var(--code-inline-bg); color: var(--accent);
  padding: 2px 7px; border-radius: 4px;
  word-break: break-word;
}

/* ============ WARNING 终端条 ============ */
.term-warn {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--red-soft); border: 1px solid var(--red-line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 28px;
}
.tw-label {
  flex-shrink: 0; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: var(--red); border: 1px solid var(--red-line);
  padding: 3px 9px; border-radius: 4px; margin-top: 2px;
  background: rgba(255, 107, 107, 0.06);
}
.term-warn strong { color: var(--red); font-size: 14.8px; }
.term-warn p { margin-top: 4px; font-size: 14.2px; color: var(--body); }
.term-warn p strong { color: var(--text); font-size: inherit; }

/* ============ 下载卡 ============ */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0 0 26px;
  overflow: hidden; transition: border-color .22s, transform .22s, box-shadow .22s;
}
.dl-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.dl-primary { border-color: var(--accent-line); }
.dl-primary:hover { border-color: var(--accent); box-shadow: 0 18px 44px -20px var(--glow-strong); }
.dl-path {
  font-family: var(--mono); font-size: 11.8px; color: var(--mute);
  background: var(--card-2); border-bottom: 1px solid var(--line);
  padding: 10px 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  direction: rtl; text-align: left;
}
.dl-path > * { direction: ltr; unicode-bidi: bidi-override; }
.dl-prompt { color: var(--accent); font-weight: 700; margin-right: 8px; }
.dl-fname { color: var(--dim); }
.dl-primary .dl-fname { color: var(--accent); }
.dl-type {
  align-self: flex-start; margin: 22px 24px 0;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 4px 10px; border-radius: 4px;
}
.dl-card h3 { font-size: 21px; color: var(--text); margin: 13px 24px 8px; }
.dl-card p { font-size: 14px; color: var(--dim); margin: 0 24px 17px; }
.dl-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 24px 24px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  padding: 4px 11px; border-radius: 4px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.dl-card .btn { margin-left: 24px; margin-right: 24px; width: calc(100% - 48px); }

.mono-note {
  margin-top: 22px; text-align: center;
  font-family: var(--mono); font-size: 12.3px; color: var(--mute); line-height: 1.8;
}
.mono-note code { font-size: 1.05em; }
.mn-sym {
  display: inline-block; width: 17px; height: 17px; line-height: 16px;
  border: 1px solid var(--accent-line); color: var(--accent);
  border-radius: 50%; font-size: 10.5px; font-weight: 700; margin-right: 4px;
}

/* ============ 哈希折叠表 ============ */
.hash-panel {
  margin-top: 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.hash-panel[open] { border-color: var(--accent-line); }
.hash-panel summary {
  cursor: pointer; padding: 16px 20px; list-style: none;
  font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--text);
  position: relative;
}
.hash-panel summary::-webkit-details-marker { display: none; }
.sum-mark { color: var(--accent); margin-right: 9px; font-weight: 700; }
.hash-panel[open] .sum-mark { }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: thin; }

.data-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; }
.data-table thead { background: var(--card-2); }
.data-table th {
  padding: 12px 18px; text-align: left; font-family: var(--mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.data-table td { padding: 10px 18px; border-top: 1px solid var(--line); color: var(--body); vertical-align: top; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--table-hover); }
.t-mono { font-family: var(--mono); font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.data-table td code { font-size: 12px; }

/* ============ 校验面板 + 代码终端窗 ============ */
.check-panel {
  margin-top: 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
}
.cp-head {
  font-family: var(--mono); font-size: 14.5px; font-weight: 700; color: var(--text);
  margin-bottom: 10px;
}
.cp-prompt { color: var(--accent); margin-right: 7px; }
.check-panel p { font-size: 14px; color: var(--dim); }
.check-panel p + p { margin-top: 12px; }

.term-code { margin: 14px 0 16px; }
.term-code .term-body { padding: 0; }
.term-code pre { padding: 16px 18px; overflow-x: auto; scrollbar-width: thin; }
.term-code pre::-webkit-scrollbar { height: 7px; }
.term-code pre code {
  display: block; font-family: var(--mono); font-size: 12.8px; line-height: 1.85;
  color: var(--term-text); background: none; padding: 0;
  white-space: pre; font-weight: 400;
}
.copy-btn {
  position: absolute; top: 8px; right: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .8px;
  color: var(--term-muted); background: var(--term-bar);
  border: 1px solid var(--term-line); border-radius: 5px;
  padding: 5px 11px; cursor: pointer;
  opacity: 0; transition: opacity .18s, color .18s, border-color .18s;
}
.term-code .term-body:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--term-green); border-color: var(--term-green-dim); }
.copy-btn.is-done { color: var(--term-ok); border-color: var(--term-green-dim); opacity: 1; }

/* ============ 步骤：方块行号 + 虚线连接 ============ */
.steps { max-width: 880px; margin: 0 auto; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 19px; top: 34px; bottom: 34px;
  width: 0; border-left: 2px dashed var(--line-strong);
}
.step { display: flex; gap: 22px; padding: 14px 0; position: relative; }
.step-no {
  flex-shrink: 0; width: 40px; height: 40px; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14.5px; font-weight: 800;
  color: var(--accent-ink); background: var(--accent);
  border-radius: 6px; z-index: 1;
  box-shadow: 0 4px 14px -4px var(--accent);
}
.step-body { min-width: 0; flex: 1; }
.step-body h3 { font-size: 17px; color: var(--text); margin-bottom: 7px; }
.step-body p { font-size: 14.4px; color: var(--dim); margin-bottom: 9px; }
.step-body p:last-child { margin-bottom: 0; }
.step-body a { color: var(--accent); text-decoration: none; font-weight: 600; border-bottom: 1px dashed var(--accent-line); }
.step-body a:hover { opacity: .8; }
.step-body .terminal { max-width: 100%; }

/* ============ FAQ ============ */
.faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 20px; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary {
  cursor: pointer; padding: 16px 32px 16px 0; list-style: none;
  font-size: 15px; font-weight: 600; color: var(--text); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { font-size: 14px; color: var(--dim); padding: 0 0 17px; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 36px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-id { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); font-weight: 600; }
.brand-mark-sm { width: 22px; height: 22px; }
.brand-mark-sm svg { width: 22px; height: 22px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13.3px; color: var(--dim); text-decoration: none;
  border-bottom: 1px dashed transparent; transition: color .18s, border-color .18s;
}
.footer-links a:hover { color: var(--accent); border-bottom-color: var(--accent-line); }
.footer-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--mute);
}
.footer-meta i { font-style: normal; opacity: .5; }

/* ============ 回到顶部 ============ */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 44px; height: 44px;
  border-radius: 7px; border: 1px solid var(--accent-line);
  background: var(--backtop-bg); color: var(--accent);
  font-family: var(--mono); font-size: 17px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s, transform .22s, background .18s, color .18s;
  z-index: 800; backdrop-filter: blur(8px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: var(--accent-ink); }

/* ============ 下载确认弹窗 ============ */
.dl-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
}
.dl-modal.open { opacity: 1; visibility: visible; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(2, 6, 4, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal-box {
  position: relative; z-index: 1;
  width: min(520px, 100%);
  background: var(--card); border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--accent-soft);
  padding: 26px 26px 22px;
  transform: translateY(18px) scale(0.97);
  transition: transform .24s cubic-bezier(.16, 1, .3, 1);
}
.dl-modal.open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 5px;
  background: var(--btn-ghost-bg); border: 1px solid var(--line);
  color: var(--dim); font-size: 18px; line-height: 1; cursor: pointer;
  font-family: var(--mono);
  transition: color .16s, border-color .16s;
}
.modal-close:hover { color: var(--red); border-color: var(--red-line); }
.modal-head { margin-bottom: 16px; padding-right: 34px; }
.modal-label {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  color: var(--accent);
}
.modal-head h3 { font-size: 20px; color: var(--text); margin-top: 5px; }

.modal-file {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card-2); padding: 15px 16px; margin-bottom: 18px;
}
.mf-kind { font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .5px; }
.mf-name {
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  color: var(--text); word-break: break-all; margin: 7px 0 4px;
}
.mf-size { font-size: 11.5px; color: var(--mute); }
.mf-note { font-size: 13px; color: var(--dim); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* —— 滑动确认条 —— */
.confirm-slider {
  position: relative; height: 52px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--card-2);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.cs-fill {
  position: absolute; top: 0; left: 0; bottom: 0; width: 0;
  background: var(--accent-soft);
  border-right: none;
  transition: width .2s ease;
}
.confirm-slider.is-dragging .cs-fill { transition: none; }
.cs-hint, .cs-done {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 600; letter-spacing: .3px;
  pointer-events: none;
  transition: opacity .2s;
}
.cs-hint { color: var(--dim); }
.cs-done { color: var(--accent); opacity: 0; font-family: var(--mono); font-size: 13px; }
.confirm-slider.is-done .cs-hint { opacity: 0; }
.confirm-slider.is-done .cs-done { opacity: 1; }
.confirm-slider.is-done .cs-fill { background: var(--accent); opacity: .18; }
.cs-knob {
  position: absolute; top: 0; left: 0;
  width: 52px; height: 50px; margin: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 7px; cursor: grab;
  box-shadow: 0 4px 14px -4px var(--accent);
  transition: transform .2s ease, box-shadow .15s;
  z-index: 2;
}
.cs-knob svg { width: 21px; height: 21px; }
.cs-knob:active { cursor: grabbing; }
.confirm-slider.is-dragging .cs-knob { transition: none; }
.confirm-slider.is-done .cs-knob { cursor: default; box-shadow: none; }
.cs-knob, .cs-fill { will-change: transform, width; }

.modal-fallback {
  display: block; margin-top: 14px; text-align: center;
  font-size: 12px; color: var(--mute); text-decoration: none;
  transition: color .16s;
}
.modal-fallback:hover { color: var(--accent); }

/* body 锁定滚动 */
body.modal-lock { overflow: hidden; }

/* ============ 主题切换瞬态过渡 ============ */
html.theme-anim, html.theme-anim * {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease !important;
}

/* ============ 滚动显现 ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .dl-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed; top: 62px; right: 0; width: min(290px, 82vw); height: calc(100vh - 62px);
    background: var(--bg); flex-direction: column; align-items: flex-start;
    padding: 28px 26px; gap: 18px;
    transform: translateX(100%); transition: transform .26s ease;
    border-left: 1px solid var(--line);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .hero { padding: 108px 0 56px; }
  .brand-sub { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px 14px; }
  .term-hero .term-body { min-height: 260px; font-size: 11.8px; padding: 16px 16px; }
  .steps::before { left: 15px; }
  .step { gap: 15px; }
  .step-no { width: 32px; height: 32px; font-size: 12.5px; border-radius: 5px; }
  .term-warn { flex-direction: column; gap: 8px; padding: 16px 18px; }
  .check-panel { padding: 20px 18px; }
  .copy-btn { opacity: 1; }
  .back-to-top { bottom: 18px; right: 18px; width: 40px; height: 40px; }
  .dl-modal { padding: 14px; }
  .modal-box { padding: 22px 20px 20px; }
}
