/* ==========================================================================
   OptiScaler 汉化版 · 全站样式   v2「布局系统」
   深色科技风 / 响应式 / 无外部依赖

   结构总览：
     1  设计令牌        2  基础重置        3  页面背景
     4  容器与节奏      5  页头导航        6  按钮
     7  Hero            8  标题区三版式    9  卡片与网格
     10 表格            11 提示块          12 步骤与流程
     13 代码块          14 手风琴          15 时间线
     16 下载组件        17 文件清单        18 数据条
     19 CTA             20 长文排版        21 面包屑与页头
     22 文档双栏与目录  23 相关阅读        24 平铺问答
     25 页脚            26 进度条与回顶    27 响应式
     28 打印            29 动效偏好
   ========================================================================== */

/* ==========================================================================
   1. 设计令牌
   ========================================================================== */
:root {
  /* 底色层 */
  --bg: #070a12;
  --bg-soft: #0a1020;
  --panel: #0d1424;
  --panel-2: #121b30;
  --band: rgba(148, 163, 184, .035);

  /* 描边 */
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .28);

  /* 文本 */
  --txt: #e8edf7;
  --txt-dim: #a3b3ca;
  --txt-mute: #6b7c96;

  /* 品牌色 */
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(139, 92, 246, .16));

  /* 形状 */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px -22px rgba(0, 0, 0, .85);
  --shadow-soft: 0 14px 34px -24px rgba(0, 0, 0, .9);

  /* 尺寸与节奏 —— 改这里就能整站调疏密 */
  --max: 1240px;
  --gutter: 24px;
  --header-h: 68px;
  --side: 252px;          /* 文档页侧栏宽度 */
  --gap-doc: 46px;        /* 侧栏与正文间距 */
  --sp-section: 88px;     /* 标准分区上下留白 */
  --sp-section-sm: 56px;  /* 紧凑分区 */
  --sp-head: 44px;        /* 标题区到内容 */

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

/* ==========================================================================
   2. 基础重置
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .18s; }
a:hover { color: #7dd3fc; }

h1, h2, h3, h4 { line-height: 1.28; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.05rem); }
h2 { font-size: clamp(1.45rem, 2.9vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.32rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(34, 211, 238, .10);
  border: 1px solid rgba(34, 211, 238, .22);
  color: #a5f3fc;
  padding: .14em .45em;
  border-radius: 6px;
  word-break: break-word;
}

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

::selection { background: rgba(34, 211, 238, .28); color: #fff; }

/* ==========================================================================
   3. 页面背景（光晕 + 网格）
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(59, 130, 246, .20), transparent 62%),
    radial-gradient(760px 520px at 8% 4%, rgba(34, 211, 238, .13), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(139, 92, 246, .16), transparent 62%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

/* ==========================================================================
   4. 容器与节奏
   ========================================================================== */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--sp-section) 0; }
.section-sm { padding: var(--sp-section-sm) 0; }
.section-lg { padding: 104px 0; }

/* 首屏之后第一个分区不必再顶一层大留白 */
.section.tight-top, .section-sm.tight-top { padding-top: 30px; }

.center { text-align: center; }
.muted { color: var(--txt-dim); }
.mono { font-family: var(--mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 背景节奏带：用来打断「一马平川」的长页面 */
.band {
  position: relative;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(34, 211, 238, .055), transparent 70%),
    linear-gradient(180deg, var(--band), rgba(148, 163, 184, .012));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band::before,
.band::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .35), transparent);
  opacity: .5;
}
.band::before { top: -1px; }
.band::after { bottom: -1px; }

/* ==========================================================================
   5. 页头导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 10, 18, .82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 1.06rem; color: var(--txt); letter-spacing: -.02em; }
.brand-text em {
  font-style: normal; font-size: .7rem; letter-spacing: .18em;
  color: var(--cyan); text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nav a {
  color: var(--txt-dim);
  font-size: .93rem;
  padding: 8px 13px;
  border-radius: 9px;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav a:hover { color: var(--txt); background: rgba(148, 163, 184, .10); }
.nav a.active { color: #fff; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); }

.header-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  background: rgba(148, 163, 184, .08); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; padding: 0; color: var(--txt);
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: .2s; }

/* ==========================================================================
   6. 按钮
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; font-size: .95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--grad); color: #04121b; box-shadow: 0 10px 26px -10px rgba(34, 211, 238, .7); }
.btn-primary:hover { color: #04121b; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(34, 211, 238, .85); }
.btn-ghost { background: rgba(148, 163, 184, .08); color: var(--txt); border-color: var(--line-strong); }
.btn-ghost:hover { color: #fff; background: rgba(148, 163, 184, .16); transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* 文字型「继续」链接，末尾箭头会位移 */
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .92rem; font-weight: 600;
}
.link-more::after { content: "→"; transition: transform .2s; }
.link-more:hover::after { transform: translateX(4px); }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero { position: relative; padding: 72px 0 60px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(34, 211, 238, .09); border: 1px solid rgba(34, 211, 238, .3);
  font-size: .82rem; color: #a5f3fc; font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 { margin-bottom: .5em; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { font-size: 1.08rem; color: var(--txt-dim); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .86rem; color: var(--txt-mute); }
.hero-meta b { color: var(--txt-dim); font-weight: 600; }

.hero-visual { position: relative; }.hero-visual::before {
  content: ""; position: absolute; inset: -18px -10px; z-index: -1;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .18), transparent 72%);
  filter: blur(6px);
}
.hero-card {
  background: linear-gradient(180deg, rgba(18, 27, 48, .9), rgba(10, 16, 32, .92));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.hero-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.tl-dot.y { background: #febc2e; }
.tl-dot.g { background: #28c840; }
.hero-card-head span { margin-left: auto; font-size: .76rem; color: var(--txt-mute); font-family: var(--mono); }

.flow { display: grid; gap: 12px; }
.flow-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(148, 163, 184, .05); border: 1px solid var(--line); }
.flow-row .k { font-size: .76rem; color: var(--txt-mute); width: 62px; flex: none; text-transform: uppercase; letter-spacing: .06em; }
.flow-row .v { font-family: var(--mono); font-size: .86rem; color: var(--txt); }
.flow-arrow { text-align: center; color: var(--cyan); font-size: .9rem; }
.tags-mini { display: flex; flex-wrap: wrap; gap: 7px; }
.tags-mini i {
  font-style: normal; font-size: .74rem; padding: 3px 9px; border-radius: 6px;
  background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .32); color: #c4b5fd;
}

/* 首屏内的数据条：与 Hero 同属一个视觉单元 */
.hero-stats { margin-top: 56px; }

/* ==========================================================================
   8. 标题区三版式
   ========================================================================== */

/* 8.1 居中版（默认，用于叙述性分区） */
.section-head { max-width: 760px; margin: 0 auto var(--sp-head); text-align: center; }
.section-head p { color: var(--txt-dim); font-size: 1.02rem; margin: 0; }

.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700; margin-bottom: 12px;
}

/* 8.2 分栏版（左标题 + 右说明，用于参考类分区，打破居中疲劳） */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: var(--sp-head);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sec-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 92px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.sec-head .eyebrow { display: block; margin-bottom: 10px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--txt-dim); font-size: 1rem; }
.sec-head--plain { border-bottom: 0; padding-bottom: 0; }
.sec-head--plain::after { display: none; }

/* 8.3 左竖线版（用于步骤/清单类，短促有力） */
.rail-head { margin-bottom: 26px; padding-left: 20px; position: relative; }
.rail-head::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px;
  background: var(--grad); border-radius: 3px;
}
.rail-head h2 { margin: 0 0 .35em; }
.rail-head p { margin: 0; color: var(--txt-dim); font-size: .97rem; }

/* ==========================================================================
   9. 卡片与网格
   ========================================================================== */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
/* 非对称网格：主卡占大头 */
.g-asym { grid-template-columns: 1.35fr 1fr; }
.g-asym-3 { grid-template-columns: 1.25fr 1fr 1fr; }
/* 左说明 + 右内容：用于「教程步骤」这类左窄右宽的分区 */
.g-side { grid-template-columns: .78fr 1.22fr; gap: 46px; align-items: start; }
.g-side .steps { gap: 14px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .4); box-shadow: 0 22px 40px -26px rgba(34, 211, 238, .55); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--txt-dim); font-size: .94rem; margin-bottom: 0; }
.card-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, .28);
  margin-bottom: 16px; font-size: 1.3rem;
}

/* 卡片变体：顶部渐变发丝线，用于强调 */
.card--accent::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad);
  opacity: .85;
}
/* 卡片变体：图标左置横排，信息密度更高，用于条目型内容
   用网格排布，图标跨两行，标题与正文各占一行，窄屏也不会被挤成竖排 */
.card--row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 16px;
  align-items: start;
  padding: 24px;
}
.card--row .card-ico {
  grid-column: 1; grid-row: 1 / span 2;
  margin-bottom: 0; width: 42px; height: 42px; font-size: 1.15rem; border-radius: 12px;
}
.card--row h3 { grid-column: 2; grid-row: 1; font-size: 1.04rem; margin: 0 0 .3em; }
.card--row p { grid-column: 2; grid-row: 2; font-size: .91rem; }
/* 卡片变体：紧凑无衬底，用于网格内的小条目 */
.card--plain { background: rgba(148, 163, 184, .04); padding: 20px; }
.card--plain h3 { font-size: 1rem; }
.card--plain p { font-size: .9rem; }

/* ==========================================================================
   10. 表格
   ========================================================================== */
.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
thead th {
  background: rgba(148, 163, 184, .07); text-align: left; padding: 14px 18px;
  font-size: .84rem; letter-spacing: .04em; color: var(--txt-dim); font-weight: 600;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 13px 18px; border-bottom: 1px solid rgba(148, 163, 184, .08); color: var(--txt-dim); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(148, 163, 184, .04); }
tbody td strong { color: var(--txt); font-weight: 600; }

/* 窄屏：可横滑的表格右缘加渐隐，暗示还有内容 */
.table-hint { display: none; }

.tag { display: inline-block; font-size: .74rem; padding: 2px 9px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.tag-ok { background: rgba(74, 222, 128, .14); color: #86efac; border: 1px solid rgba(74, 222, 128, .3); }
.tag-warn { background: rgba(251, 191, 36, .14); color: #fcd34d; border: 1px solid rgba(251, 191, 36, .3); }
.tag-no { background: rgba(248, 113, 113, .14); color: #fca5a5; border: 1px solid rgba(248, 113, 113, .3); }
.tag-info { background: rgba(34, 211, 238, .14); color: #67e8f9; border: 1px solid rgba(34, 211, 238, .3); }

/* ==========================================================================
   11. 提示块
   ========================================================================== */
.note {
  border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, .07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 20px 0; font-size: .93rem; color: var(--txt-dim);
}
.note.warn { border-color: var(--amber); background: rgba(251, 191, 36, .07); }
.note.danger { border-color: var(--red); background: rgba(248, 113, 113, .07); }
.note b { color: var(--txt); }
.note > :last-child { margin-bottom: 0; }

/* ==========================================================================
   12. 步骤与流程
   ========================================================================== */

/* 12.1 纵向步骤（编号光晕式） */
.steps { counter-reset: s; display: grid; gap: 16px; }
.step {
  position: relative; padding: 22px 24px 22px 74px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
.step:hover { border-color: rgba(34, 211, 238, .32); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 22px; top: 20px;
  font-family: var(--mono); font-size: 1.15rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.06rem; margin-bottom: .35em; }
.step p { color: var(--txt-dim); font-size: .93rem; margin: 0; }

/* 12.2 横向泳道（首页「输入→输出」，与卡片网格形成对比） */
.lane { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: ln; }
.lane-item {
  position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; counter-increment: ln;
}
.lane-item::before {
  content: counter(ln, decimal-leading-zero);
  position: absolute; top: -13px; left: 22px;
  font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 11px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid rgba(34, 211, 238, .38); color: #a5f3fc;
}
.lane-item h3 { font-size: 1.05rem; margin: 8px 0 .4em; }
.lane-item p { color: var(--txt-dim); font-size: .92rem; margin: 0; }
/* 泳道连接线（仅桌面端） */
.lane-item:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: -16px; width: 16px; height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, .5), rgba(139, 92, 246, .5));
}

/* ==========================================================================
   13. 代码块
   ========================================================================== */
.code {
  position: relative; background: #06090f; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); margin: 16px 0; overflow: hidden;
}
.code-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  background: rgba(148, 163, 184, .06); border-bottom: 1px solid var(--line);
  font-size: .78rem; color: var(--txt-mute); font-family: var(--mono);
}
.code-head .copy {
  margin-left: auto; background: rgba(148, 163, 184, .1); border: 1px solid var(--line);
  color: var(--txt-dim); font-size: .74rem; padding: 3px 10px; border-radius: 6px;
  cursor: pointer; font-family: var(--font); transition: .18s;
}
.code-head .copy:hover { background: rgba(34, 211, 238, .18); color: #a5f3fc; border-color: rgba(34, 211, 238, .4); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; }
.code pre code {
  background: none; border: 0; padding: 0; color: #cbd5e1;
  font-size: .85rem; line-height: 1.72; white-space: pre;
}
.code pre code .c { color: #64748b; }

/* ==========================================================================
   14. 手风琴 FAQ
   ========================================================================== */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 19px 52px 19px 22px; color: var(--txt); font-size: 1rem; font-weight: 600;
  font-family: inherit; position: relative; transition: background .18s;
}
.acc-q:hover { background: rgba(148, 163, 184, .05); }
.acc-q::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--cyan); font-size: 1.35rem; font-weight: 400; transition: transform .25s;
}
.acc-item.open .acc-q::after { transform: translateY(-50%) rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a-inner { padding: 0 22px 22px; color: var(--txt-dim); font-size: .94rem; }
.acc-a-inner p:last-child, .acc-a-inner ul:last-child { margin-bottom: 0; }
.acc-item.open .acc-a { max-height: 900px; }

/* ==========================================================================
   15. 时间线（更新日志）
   ========================================================================== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 60%, transparent);
  opacity: .45;
}
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -31px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .13);
}
.tl-item.stable::before { border-color: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .13); }
.tl-item.special::before { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .16); }
.tl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.tl-head h3 { margin: 0; font-size: 1.08rem; }
.tl-date { font-size: .82rem; color: var(--txt-mute); font-family: var(--mono); }
.tl-body { color: var(--txt-dim); font-size: .93rem; }
.tl-body ul { margin: .4em 0 0; }
.tl-body li { margin-bottom: .3em; }

/* ==========================================================================
   16. 下载组件
   ========================================================================== */
.dl-card {
  background: linear-gradient(180deg, rgba(18, 27, 48, .92), rgba(10, 16, 32, .95));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.dl-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad);
}
.dl-card.featured { border-color: rgba(34, 211, 238, .45); }
.dl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.dl-ver { font-family: var(--mono); font-size: 1.5rem; color: #fff; font-weight: 700; }
.dl-links { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
.dl-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: rgba(148, 163, 184, .05); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: .18s;
}
.dl-row:hover { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .35); }
.dl-row .n { font-size: .9rem; color: var(--txt); font-weight: 600; }
.dl-row .s { margin-left: auto; font-size: .8rem; color: var(--txt-mute); }
.dl-row code { font-size: .78rem; }

/* 下载主入口 */
.dl-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.24fr .76fr; gap: 34px; align-items: center;
  padding: 38px; border-radius: var(--radius-lg);
  background:
    radial-gradient(760px 380px at 6% -12%, rgba(34, 211, 238, .22), transparent 64%),
    radial-gradient(620px 340px at 98% 112%, rgba(139, 92, 246, .20), transparent 66%),
    var(--panel);
  border: 1px solid rgba(34, 211, 238, .38);
  box-shadow: var(--shadow);
}
.dl-hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.dl-hero h2 { margin: .15em 0 .4em; }
.dl-hero-lead { color: var(--txt-dim); margin: 0; max-width: 56ch; }
.dl-hero-act { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.dl-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dl-hero-meta i {
  font-style: normal; font-size: .78rem; padding: 4px 11px; border-radius: 999px;
  background: rgba(148, 163, 184, .08); border: 1px solid var(--line-strong); color: var(--txt-dim);
}
.dl-hero-side { border-left: 1px solid var(--line); padding-left: 30px; }
.dl-hero-side h3 { font-size: .96rem; display: flex; align-items: center; gap: 9px; }
.dl-hero-side h3 i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .16); flex: 0 0 auto;
}

/* ==========================================================================
   17. 文件清单
   ========================================================================== */
.files { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.files-row { display: grid; grid-template-columns: 258px 1fr; gap: 18px; background: var(--panel); padding: 15px 20px; }
.files-row b { font-family: var(--mono); font-size: .85rem; color: #cbd5e1; font-weight: 600; word-break: break-all; }
.files-row span { font-size: .9rem; color: var(--txt-dim); }

/* ==========================================================================
   18. 数据条
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--panel); padding: 26px 20px; text-align: center; }
.stat b { display: block; font-size: 1.85rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }
.stat span { font-size: .85rem; color: var(--txt-mute); }

/* ==========================================================================
   19. CTA
   ========================================================================== */
.cta {
  border-radius: var(--radius-lg); padding: 56px 40px; text-align: center;
  background: radial-gradient(700px 340px at 50% 0%, rgba(34, 211, 238, .18), transparent 68%), var(--panel);
  border: 1px solid var(--line-strong);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); opacity: .8;
}
.cta h2 { margin-bottom: .35em; }
.cta p { color: var(--txt-dim); max-width: 60ch; margin: 0 auto 26px; }

/* ==========================================================================
   20. 长文排版
   ========================================================================== */
.prose { max-width: 880px; }
.prose > h2 {
  margin-top: 2.1em; padding-top: 1.1em; position: relative;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose > h2::before {
  content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 2px;
  background: var(--grad); border-radius: 2px; opacity: .8;
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; }
.prose > h2:first-child::before { display: none; }
.prose h3 { margin-top: 1.6em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose table { font-size: .9rem; }
.prose > :last-child { margin-bottom: 0; }

/* ==========================================================================
   21. 面包屑与页头
   ========================================================================== */
/* 注意：.crumbs 同时带 .wrap，这里只加上边距，避免覆盖 wrap 的左右内边距 */
.crumbs { font-size: .84rem; color: var(--txt-mute); padding-top: 20px; }
.crumbs a { color: var(--txt-mute); }
.crumbs a:hover { color: var(--cyan); }
.crumbs span { margin: 0 7px; opacity: .55; }

.page-head { padding: 22px 0 10px; }
.page-head h1 { margin-bottom: .32em; }
.page-head p { color: var(--txt-dim); max-width: 74ch; font-size: 1.03rem; }
.page-head > .wrap > :last-child { margin-bottom: 0; }

/* ==========================================================================
   22. 文档双栏与目录
   ========================================================================== */
.doc {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  gap: var(--gap-doc);
  align-items: start;
  margin-top: 30px;
}

/* 侧栏目录 */
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .3) transparent;
}
.doc-toc::-webkit-scrollbar { width: 6px; }
.doc-toc::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .28); border-radius: 3px; }
.doc-toc::-webkit-scrollbar-track { background: transparent; }
.toc {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  position: relative;
}
.toc::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  opacity: .55; border-radius: 0 2px 2px 0;
}
.toc > h2 {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt-mute); margin: 0 0 14px; font-weight: 700;
}
.toc ol {
  counter-reset: t; list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2px;
}
.toc li { margin: 0; }
.toc a {
  display: flex; gap: 9px; align-items: baseline;
  padding: 7px 10px 7px 8px; border-radius: 8px;
  font-size: .88rem; line-height: 1.45; color: var(--txt-dim);
  border-left: 2px solid transparent; transition: background .18s, color .18s, border-color .18s;
}
.toc a::before {
  counter-increment: t; content: counter(t, decimal-leading-zero);
  font-family: var(--mono); font-size: .72rem; color: var(--txt-mute); flex: 0 0 auto;
}
.toc a:hover { color: var(--txt); background: rgba(148, 163, 184, .08); }
.toc a.active {
  color: #fff; background: var(--grad-soft);
  border-left-color: var(--cyan);
}
.toc a.active::before { color: var(--cyan); }

/* 目录折叠按钮：桌面隐藏 */
.toc-toggle { display: none; }

/* 双栏里的内容区块：不再自带左右内边距与最大宽度 */
.doc-main { min-width: 0; }
.doc-main > .wrap,
.doc-main > .section > .wrap,
.doc-main > .section-sm > .wrap { padding-left: 0; padding-right: 0; max-width: none; }
.doc-main > .section, .doc-main > .section-sm { padding-top: 0; }
.doc-main > .section + .section, .doc-main > .section-sm + .section-sm { padding-top: var(--sp-section-sm); }
.doc-main .prose { max-width: none; }
/* 侧栏跳转落点留出吸顶高度 */
.doc-main h2, .doc-main h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
/* 文档页里的区块标题：统一带一道短渐变标尺，和侧栏呼应
   注意排除 .prose（长文排版自带另一套标题样式） */
.doc-main > .section > .wrap:not(.prose) > h2,
.doc-main > .section-sm > .wrap:not(.prose) > h2 {
  position: relative;
  padding-bottom: .5em;
  margin-bottom: 1em;
  border-bottom: 1px solid var(--line);
}
.doc-main > .section > .wrap:not(.prose) > h2::after,
.doc-main > .section-sm > .wrap:not(.prose) > h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 68px; height: 2px;
  background: var(--grad); border-radius: 2px;
}

/* 顶部横排目录（不采用侧栏的页面使用） */
.toc-wrap { margin-top: 26px; }
.toc-wrap .toc ol { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 22px; }
.toc-wrap .toc > h2 { font-size: .82rem; letter-spacing: .06em; text-transform: none; color: var(--txt-dim); }

/* ==========================================================================
   23. 相关阅读
   ========================================================================== */
.related { margin-top: 34px; }
.related > h2 { font-size: 1.02rem; margin-bottom: .7em; }
.related ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px;
}
.related li { margin: 0; }
.related a {
  display: block; padding: 12px 16px; height: 100%;
  background: rgba(148, 163, 184, .05); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: .91rem; color: var(--txt-dim); transition: .18s;
}
.related a:hover { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .35); color: var(--txt); }

/* ==========================================================================
   24. 平铺问答（内容默认可见，便于收录）
   ========================================================================== */
.faq-flat { display: grid; gap: 14px; }
.faq-flat-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
}
.faq-flat-item h3 { font-size: 1.02rem; margin-bottom: .4em; }
.faq-flat-item p { color: var(--txt-dim); font-size: .93rem; margin: 0; }

/* ==========================================================================
   25. 页脚
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: rgba(6, 9, 15, .72); margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding: 52px 0 34px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 11px; }
.footer-brand b { font-size: 1.08rem; color: var(--txt); }
.footer-about { color: var(--txt-mute); font-size: .89rem; max-width: 40ch; }
.footer-col h4 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--txt); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--txt-mute); font-size: .9rem; padding: 5px 0; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0 34px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--txt-mute);
}
.footer-updated { color: var(--txt-mute); }

/* ==========================================================================
   26. 进度条与回顶
   ========================================================================== */
.progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, .6);
  transition: width .1s linear;
  pointer-events: none;
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; z-index: 90;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(13, 20, 36, .92); color: var(--cyan); cursor: pointer;
  display: grid; place-items: center; font-size: 1.15rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s, background .2s;
  backdrop-filter: blur(8px);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(34, 211, 238, .16); }

/* ==========================================================================
   27. 响应式
   ========================================================================== */
@media (max-width: 1120px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .g-asym-3 { grid-template-columns: repeat(2, 1fr); }
}

/* 侧栏收折：文档页转为单栏 */
@media (max-width: 1020px) {
  :root { --sp-section: 72px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .doc-toc { position: static; }
  .toc-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px 18px;
    color: var(--txt); font-size: .95rem; font-weight: 600; font-family: inherit;
    cursor: pointer; text-align: left;
  }
  .toc-toggle .ico {
    margin-left: auto; color: var(--cyan); font-size: 1.1rem;
    transition: transform .25s;
  }
  .doc-toc.open .toc-toggle .ico { transform: rotate(45deg); }
  .doc-toc .toc { display: none; margin-top: 10px; }
  .doc-toc.open .toc { display: block; }
  .doc-main > .section, .doc-main > .section-sm { padding-top: 0; }
}

@media (max-width: 900px) {
  /* 移动端导航 */
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch;
    background: rgba(9, 13, 23, .98); border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; gap: 2px; margin: 0;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 46px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-lead { font-size: 1.02rem; }

  .sec-head { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .sec-head p { font-size: .96rem; }

  .g3, .g2, .g-asym, .g-side { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .lane { grid-template-columns: 1fr; }
  .lane-item { padding-top: 24px; }
  .lane-item:not(:last-child)::after {
    top: auto; bottom: -16px; left: 32px; right: auto;
    width: 1px; height: 16px;
    background: linear-gradient(180deg, rgba(34, 211, 238, .5), rgba(139, 92, 246, .5));
  }

  .dl-hero { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .dl-hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .files-row { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 720px) {
  /* 表格转卡片式堆叠：右侧提示可横滑 */
  .table-hint {
    display: block; font-size: .78rem; color: var(--txt-mute);
    text-align: right; margin: 0 0 8px;
  }
  table.stack { min-width: 0; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody { display: block; }
  table.stack tbody tr {
    display: block; padding: 8px 16px 12px;
    border-bottom: 1px solid var(--line);
  }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack tbody td {
    display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px;
    padding: 8px 0; border: 0; align-items: baseline;
  }
  table.stack tbody td::before {
    content: attr(data-label);
    font-size: .78rem; font-weight: 600; color: var(--txt-mute);
  }
  table.stack tbody td[data-label=""]::before,
  table.stack tbody td:not([data-label])::before { display: none; }
  table.stack tbody td:not([data-label]) { grid-template-columns: 1fr; }
  table.stack tbody tr:hover { background: transparent; }
}

@media (max-width: 560px) {
  :root {
    --sp-section: 58px;
    --sp-section-sm: 42px;
    --sp-head: 30px;
    --gutter: 16px;
  }
  .card { padding: 20px; }
  .card--row { padding: 18px; gap: 13px; }
  .step { padding: 20px 18px 20px 60px; }
  .step::before { left: 18px; font-size: 1.05rem; }
  .g4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 14px; }
  .stat b { font-size: 1.5rem; }
  .cta { padding: 38px 22px; }
  .dl-card { padding: 22px; }
  .dl-hero { padding: 22px; }
  .dl-hero-act .btn { width: 100%; }
  .files-row { padding: 13px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 26px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .toc a { font-size: .86rem; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  /* 窄屏下代码块改为软换行，避免长路径被截断且看不出可横滑 */
  .code pre { padding: 14px; }
  .code pre code { white-space: pre-wrap; word-break: break-word; }
}

/* ==========================================================================
   28. 打印
   ========================================================================== */
@media print {
  .site-header, .to-top, .cta, .site-footer, .progress, .doc-toc { display: none; }
  .doc { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .card, .panel, .note, .table-wrap { border-color: #ccc; background: #fff; }
}

/* ==========================================================================
   29. 动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card:hover, .btn:hover { transform: none; }
}
