/* ==========================================================================
   VeriRandom 产品站样式
   - 单文件设计系统：变量 → 基础 → 布局 → 组件 → 页面片段 → 响应式
   - 无构建、无外部依赖，直接双击 index.html 即可预览
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #060b13;
  --bg-soft: #080f19;
  --panel: #0d1624;
  --panel-2: #111c2e;
  --line: rgba(148, 178, 214, 0.14);
  --line-strong: rgba(148, 178, 214, 0.26);

  --text: #e9f0fa;
  --muted: #9aabc2;
  --dim: #6f819a;

  --accent: #00c2b8;
  --accent-soft: rgba(0, 194, 184, 0.12);
  --accent-2: #3d8bff;
  --ok: #2fd08a;
  --warn: #f5a524;
  --danger: #ff7a70;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);

  --font-sans: "MiSans", "Segoe UI Variable Text", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas,
    "Liberation Mono", monospace;

  --header-h: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: rgba(0, 194, 184, 0.3); }

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

.wrap {
  width: min(1140px, 100% - 44px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(6, 11, 19, 0);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.topbar.is-stuck {
  background: rgba(6, 11, 19, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 17px;
  flex: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.brand small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 194, 184, 0.3);
}

.topbar-cta { display: flex; align-items: center; gap: 8px; flex: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #03171a;
  background: linear-gradient(130deg, #00e0d2, #14b8c4 55%, #4f9dff);
  box-shadow: 0 12px 30px -14px rgba(0, 194, 184, 0.9);
}
.btn-primary:hover { box-shadow: 0 16px 36px -14px rgba(0, 194, 184, 1); }

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }

.ico { width: 18px; height: 18px; flex: none; }

/* ---------- 通用文本 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(0, 194, 184, 0.28);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7ff0e8;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hl {
  background: linear-gradient(100deg, #00d9cd 10%, #6ee7ff 48%, #8fb8ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { color: var(--muted); font-size: clamp(16px, 1.35vw, 18px); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.nowrap { white-space: nowrap; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  padding: 72px 0 40px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -220px 0 auto 0;
  height: 640px;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 22% 30%, rgba(0, 194, 184, 0.18), transparent 70%),
    radial-gradient(50% 55% at 78% 18%, rgba(61, 139, 255, 0.16), transparent 72%);
  filter: blur(10px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(148, 178, 214, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 178, 214, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 78%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.hero .lead { max-width: 54ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ico { width: 15px; height: 15px; color: var(--dim); }

.fork-notice {
  margin-top: 26px;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(0, 194, 184, 0.06);
  color: var(--muted);
  font-size: 13.5px;
}

/* 首屏视觉 */

.hero-visual { position: relative; }
.hero-visual .glow {
  position: absolute;
  inset: 8% 0 -10% 0;
  border-radius: 40%;
  background: radial-gradient(closest-side, rgba(0, 194, 184, 0.22), transparent 78%);
  filter: blur(30px);
  z-index: -1;
}

.window {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}
.window-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3c4a5e;
}
.window-bar .dot:nth-child(1) { background: #ff6b5e; }
.window-bar .dot:nth-child(2) { background: #f5c451; }
.window-bar .dot:nth-child(3) { background: #4ed28b; }
.window-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window img { width: 100%; height: auto; }
.window-caption {
  padding: 9px 14px 11px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--dim);
  font-size: 11.5px;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 16, 26, 0.86);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  box-shadow: 0 12px 28px -18px #000;
}
.chip b { color: var(--text); font-weight: 600; }
.chip .ok { color: var(--ok); }
.chip-chain { left: -18px; bottom: 42px; }
.chip-tsa { right: -10px; top: 54px; }
.chip-beacon { right: 12px; bottom: -14px; }

@media (prefers-reduced-motion: no-preference) {
  .chip-tsa { animation: float 7s ease-in-out infinite; }
  .chip-beacon { animation: float 9s ease-in-out infinite reverse; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

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

.brand-strip {
  margin-top: 46px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.brand-strip div { text-align: center; }
.brand-strip b {
  display: block;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-strip span { font-size: 12.5px; color: var(--dim); }

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

.section { padding: 82px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  margin: 16px 0 14px;
  font-size: clamp(25px, 2.9vw, 36px);
  letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); font-size: 16.5px; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .link-row { margin-top: 16px; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin-bottom: 16px;
  color: #7ff0e8;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 194, 184, 0.24);
}
.card-icon .ico { width: 20px; height: 20px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #7ff0e8;
}
.card-link .ico { width: 15px; height: 15px; transition: transform 0.2s ease; }
.card-link:hover .ico { transform: translateX(3px); }

.card-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  opacity: 0.7;
}

/* ---------- 截图切换 ---------- */

.shots { margin-top: 8px; }
.shot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.shot-tabs button {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.18s ease;
}
.shot-tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.shot-tabs button[aria-selected="true"] {
  color: #04171a;
  background: linear-gradient(130deg, #00e0d2, #4f9dff);
  border-color: transparent;
  font-weight: 650;
}
.shot-panel[hidden] { display: none; }
.shot-panel figcaption {
  margin-top: 10px;
  color: var(--dim);
  font-size: 12.5px;
}
.shot-note {
  margin-top: 12px;
  text-align: right;
  color: var(--dim);
  font-size: 11px;
  opacity: 0.7;
}

/* ---------- 流程步骤 ---------- */

.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #7ff0e8;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 194, 184, 0.22);
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step .tags { margin-top: 10px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.tag.ok { color: #8ff0c2; border-color: rgba(47, 208, 138, 0.28); background: rgba(47, 208, 138, 0.08); }
.tag.warn { color: #ffd08a; border-color: rgba(245, 165, 36, 0.28); background: rgba(245, 165, 36, 0.08); }
.tag.no { color: #ffb0aa; border-color: rgba(255, 122, 112, 0.28); background: rgba(255, 122, 112, 0.08); }

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

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.02);
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
thead th {
  text-align: left;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
td strong, th strong { color: var(--text); font-weight: 600; }
td .mono { color: var(--text); }

.mark-ok { color: var(--ok); }
.mark-no { color: var(--danger); }
.mark-warn { color: var(--warn); }

/* ---------- 提示块 ---------- */

.note {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 165, 36, 0.24);
  border-radius: 12px;
  background: rgba(245, 165, 36, 0.06);
  font-size: 14px;
  color: #e7d7bd;
}
.note .ico { color: var(--warn); margin-top: 3px; }
.note.info {
  border-color: rgba(61, 139, 255, 0.26);
  background: rgba(61, 139, 255, 0.07);
  color: #cfe0ff;
}
.note.info .ico { color: var(--accent-2); }
.note.danger {
  border-color: rgba(255, 122, 112, 0.26);
  background: rgba(255, 122, 112, 0.07);
  color: #ffd6d2;
}
.note.danger .ico { color: var(--danger); }

/* ---------- 代码块 ---------- */

.code-block {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #04090f;
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
}
.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #c8d8ee;
}
.code-block code { font-family: inherit; }
.copy-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); }
.copy-btn.done { color: var(--ok); border-color: rgba(47, 208, 138, 0.35); }

.k { color: #ff9ecd; }
.s { color: #9be8a8; }
.c { color: #5f7288; }
.f { color: #8fc9ff; }

/* ---------- 分栏内容 ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.split.align-start { align-items: start; }

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.check-list { display: grid; gap: 12px; }
.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.check-list .ico { color: var(--ok); margin-top: 3px; width: 17px; height: 17px; }
.check-list.bad .ico { color: var(--danger); }
.check-list strong { color: var(--text); font-weight: 600; }

/* ---------- 页内目录 ---------- */

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 2px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.toc b {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.toc a {
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--muted);
}
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.doc-body > section + section { margin-top: 56px; }
.doc-body h2 {
  font-size: 25px;
  margin-bottom: 14px;
  padding-top: 4px;
}
.doc-body h3 { font-size: 17px; margin: 26px 0 8px; }
.doc-body p { color: var(--muted); }
.doc-body p + p { margin-top: 12px; }
.doc-body ul.dot { margin-top: 12px; display: grid; gap: 8px; }
.doc-body ul.dot li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.doc-body ul.dot li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------- 子页头部 ---------- */

.page-hero {
  position: relative;
  padding: 62px 0 46px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -160px 0 auto 0;
  height: 420px;
  z-index: -1;
  background: radial-gradient(50% 60% at 30% 40%, rgba(0, 194, 184, 0.14), transparent 72%);
}
.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(29px, 3.6vw, 44px);
  letter-spacing: -0.02em;
}
.page-hero .lead { max-width: 62ch; }
.page-hero .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--dim);
  font-family: var(--font-mono);
}
.page-hero .crumbs a:hover { color: var(--text); }

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

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--dim);
  font-size: 18px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; }

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

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border: 1px solid rgba(0, 194, 184, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(0, 194, 184, 0.16), transparent 60%),
    radial-gradient(70% 120% at 90% 100%, rgba(61, 139, 255, 0.18), transparent 62%),
    var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 2.4vw, 30px); }
.cta-band p { color: var(--muted); margin-top: 8px; max-width: 54ch; }
.cta-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }

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

.footer {
  margin-top: 84px;
  padding: 56px 0 34px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--dim);
  font-size: 13px;
  max-width: 34ch;
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.footer ul { display: grid; gap: 9px; }
.footer ul a { font-size: 13.5px; color: var(--muted); }
.footer ul a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--dim);
}
.footer-bottom .fork {
  color: var(--muted);
}

/* ---------- 数据流图（纯 CSS） ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: flow;
  margin-top: 8px;
}
.flow-node {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}
.flow-node::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: 14px;
}
.flow-node:last-child::after { content: ""; }
.flow-node b { display: block; font-size: 14px; margin-bottom: 5px; }
.flow-node span { font-size: 12.5px; color: var(--dim); }
.flow-node.hl-node {
  border-color: rgba(0, 194, 184, 0.3);
  background: var(--accent-soft);
}

/* ---------- 目录树 ---------- */

.tree {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
  overflow-x: auto;
}
.tree .dir { color: #8fc9ff; }
.tree .cm { color: #5f7288; }

/* ---------- 统计/徽标 ---------- */

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--muted);
}
.pill .ico { width: 14px; height: 14px; }

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - 220px);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
}
.notfound .code {
  font-family: var(--font-mono);
  font-size: 74px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
}

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

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: 2; max-width: 720px; }
  .hero { padding-top: 52px; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc-body { min-width: 0; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc b { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-node::after { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .topbar-cta .btn { display: none; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 22px 18px;
    background: rgba(6, 11, 19, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 15px; }
  .topbar-inner { position: relative; }
  .nav-toggle { margin-left: auto; }

  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 62px 0; }
  .cta-band { padding: 32px; }
}

@media (max-width: 640px) {
  .wrap { width: min(1140px, 100% - 32px); }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .chip-chain, .chip-beacon { display: none; }
  .chip-tsa { right: 6px; top: 44px; font-size: 10.5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .cta-band { padding: 26px; border-radius: 18px; }
  .doc-body h2 { font-size: 22px; }
  .page-hero { padding: 44px 0 34px; }
  .brand-strip { padding: 16px; gap: 14px; }
  .brand-strip b { font-size: 16px; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .step::before { width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .topbar, .footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; color: #111; }
}
