/* aibox 宣传站样式。风格沿用“隐域设计规范”：直角、1px 细线、等宽标签、单一强调色。
   颜色只在 :root 里定义，深色/浅色跟随系统。 */

:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --bg2: #eeece6;
  --bg3: #e4e1d8;
  --line: #d3cfc4;
  --tx: #16150f;
  --tx2: #45423b;
  --mut: #66625a;
  --acc: #2a55d0;
  --on-acc: #fff;
  --on-warn: #fff;
  --warn: #8f5300;
  --bad: #b0352a;
  --hdr-bg: rgba(246, 245, 241, .9);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --shell: 1240px;
  --header: 64px;
  --gutter: 16px;
  --sec-pad: clamp(72px, 9vw, 120px);
  --hover: 200ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0a09;
    --bg2: #0f0f0d;
    --bg3: #16160f;
    --line: #2a2925;
    --tx: #ece9e1;
    --tx2: #aaa69c;
    --mut: #8a867d;
    --acc: #7b9dff;
    --on-acc: #101727;
    --on-warn: #201600;
    --warn: #e5a84b;
    --bad: #e8776b;
    --hdr-bg: rgba(10, 10, 9, .88);
  }
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
code, kbd, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
::selection { background: var(--acc); color: var(--bg); }
.a { color: var(--acc); }
.d { color: var(--mut); }
.w { color: var(--tx); }
.wr { color: var(--warn); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--tx); color: var(--bg); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- 顶栏 ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 300ms, border-color 300ms;
}
.hdr.solid {
  background: var(--hdr-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.hdr .bar { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; text-decoration: none; font-size: 16px; }
.logo i { width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; display: inline-block; }
.logo i::after { content: ""; position: absolute; inset: 3px; background: var(--acc); }
.links { display: flex; gap: 24px; font-size: 14px; }
.links a { text-decoration: none; color: var(--tx2); transition: color var(--hover); }
.links a:hover { color: var(--tx); }
.hdr-r { display: flex; align-items: center; gap: 10px; }
.hdr-cta, .lang { font-size: 13px; text-decoration: none; border: 1px solid var(--line); padding: 7px 12px; transition: border-color var(--hover); white-space: nowrap; }
.lang { font-family: var(--font-mono); color: var(--tx2); }
.hdr-cta:hover, .lang:hover { border-color: var(--tx); color: var(--tx); }
@media (max-width: 980px) { .links { display: none; } }

/* ---------- 版块骨架 ---------- */
.sec { border-top: 1px solid var(--line); padding: var(--sec-pad) 0; }
.sec.alt { background: var(--bg2); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: var(--mut);
  margin: 0; display: flex; align-items: center; gap: 10px; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--acc); flex: none; }
.h2 {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.16; letter-spacing: -.01em;
  margin: 18px 0 0; text-wrap: balance;
}
.lede { color: var(--tx2); font-size: 16px; line-height: 1.85; max-width: 38em; margin: 22px 0 0; }
.sec-body { margin-top: clamp(40px, 5vw, 64px); }
.lede code, .ticks code, .feats code, .faq code, .note code, .steps code, .cmp code {
  font-size: .88em; color: var(--tx); background: var(--bg3); padding: 1px 6px; overflow-wrap: anywhere;
}

/* ---------- 按钮 ---------- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-size: 15px; text-decoration: none; padding: 13px 22px; border: 1px solid var(--tx);
  background: transparent; display: inline-block; cursor: pointer; line-height: 1.2;
  transition: background var(--hover), color var(--hover), border-color var(--hover);
}
.btn.p { background: var(--tx); color: var(--bg); font-weight: 700; }
.btn.p:hover { background: transparent; color: var(--tx); }
.btn.g { border-color: var(--mut); }
.btn.g:hover { border-color: var(--tx); }
.mini {
  font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line); background: transparent;
  padding: 6px 11px; cursor: pointer; color: var(--tx2); transition: border-color var(--hover), color var(--hover);
}
.mini:hover { border-color: var(--tx); color: var(--tx); }

/* ---------- 首屏 ---------- */
.hero { padding: calc(var(--header) + clamp(40px, 6vw, 88px)) 0 clamp(48px, 6vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(26px, 2.85vw, 44px); line-height: 1.25; letter-spacing: -.02em;
  margin: 18px 0 0;
  word-break: keep-all;
}
.hero .sub { color: var(--tx2); font-size: 16px; line-height: 1.8; max-width: 32em; margin: 22px 0 30px; }
.hero .sub b { color: var(--tx); font-weight: 500; }
.hero-meta { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 12px; color: var(--mut); }
.hero-meta li::before { content: "● "; color: var(--acc); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero h1 { font-size: clamp(28px, 4.5vw, 40px); }
}

/* 终端窗口 */
.term { border: 1px solid var(--line); background: var(--bg); min-width: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.sec.alt .term { background: var(--bg); }
.term-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--mut);
}
.term-bar .dots { display: inline-flex; gap: 6px; margin-right: 10px; vertical-align: -1px; }
.term-bar .dots i { width: 9px; height: 9px; border: 1px solid var(--mut); display: inline-block; border-radius: 50%; }
.term-bar .tag { color: var(--tx2); }
.term pre {
  margin: 0; padding: 16px 18px 18px; font-size: 12px; line-height: 1.7; color: var(--tx2);
  overflow-x: auto; white-space: pre; tab-size: 4; font-variant-numeric: tabular-nums;
}
.hero .term pre { min-height: 15.5em; }
.term .ps { color: var(--acc); user-select: none; }
.term .cm { color: var(--tx); }
.term .ok { color: var(--acc); }
.term .er { color: var(--bad); }
.term .hd { color: var(--tx); font-weight: 500; }
.term .caret { display: inline-block; width: .6em; height: 1.1em; background: var(--tx); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-foot { border-top: 1px solid var(--line); padding: 10px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--mut); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- 功能网格 ---------- */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.feats article { border-top: 1px solid var(--line); padding-top: 22px; min-width: 0; }
.feats .q { font-family: var(--font-mono); font-size: 12px; color: var(--mut); letter-spacing: .08em; margin: 0 0 14px; }
.feats .worry { color: var(--tx2); font-size: 14px; line-height: 1.75; margin: 0 0 18px; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 4px; }
.feats .worry::before { content: "[?]"; font-family: var(--font-mono); font-size: 12px; color: var(--warn); padding-top: 2px; }
.feats h3 { font-size: 19px; margin: 0 0 10px; font-weight: 700; line-height: 1.5; }
.feats p { color: var(--tx2); font-size: 15px; line-height: 1.8; margin: 0; }
@media (max-width: 1000px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feats { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ---------- 架构图 ---------- */
.diagram { border: 1px solid var(--line); background: var(--bg); }
.diagram-scroll { overflow-x: auto; padding: 20px; }
.diagram svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font-mono); }
.diagram figcaption { border-top: 1px solid var(--line); padding: 12px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--mut); }
.diagram .hint { display: none; }
@media (max-width: 800px) { .diagram .hint { display: inline; } }
svg .box { fill: none; stroke: var(--line); stroke-width: 1; }
svg .box-s { fill: var(--bg2); stroke: var(--mut); stroke-width: 1; }
svg .box-a { fill: var(--bg2); stroke: var(--acc); stroke-width: 1; }
svg .box-w { fill: none; stroke: var(--warn); stroke-width: 1; stroke-dasharray: 4 3; }
svg .t { fill: var(--tx2); font-size: 13px; }
svg .t-h { fill: var(--tx); font-size: 14px; font-weight: 500; }
svg .t-m { fill: var(--mut); font-size: 11.5px; letter-spacing: .08em; }
svg .t-a { fill: var(--acc); font-size: 13px; }
svg .t-w { fill: var(--warn); font-size: 12.5px; }
svg .ln-a { stroke: var(--acc); stroke-width: 1.5; fill: none; }
svg .ln-w { stroke: var(--warn); stroke-width: 1.25; fill: none; stroke-dasharray: 5 4; }
svg .ln-m { stroke: var(--mut); stroke-width: 1; fill: none; }
svg .ar-a { fill: var(--acc); }
svg .ar-m { fill: var(--mut); }
svg .x { stroke: var(--warn); stroke-width: 2; }

.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .two, .two.even { grid-template-columns: minmax(0, 1fr); } }
.below { margin-top: 48px; }

/* ---------- 列表 ---------- */
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 15px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.75; color: var(--tx2); }
.ticks li::before { content: "[+]"; font-family: var(--font-mono); font-size: 12px; color: var(--acc); padding-top: 3px; }
.ticks li.no::before { content: "[x]"; color: var(--warn); }
.ticks li.dash::before { content: "[-]"; color: var(--mut); }
.ticks b { color: var(--tx); font-weight: 500; }
.ticks.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 0; }
.ticks.cols li:nth-child(-n+2) { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .ticks.cols { grid-template-columns: minmax(0, 1fr); } .ticks.cols li:nth-child(2) { border-top: 0; } }

.note { font-size: 14px; color: var(--tx2); line-height: 1.8; margin: 20px 0 0; }
.note .lbl { font-family: var(--font-mono); font-size: 12px; color: var(--mut); letter-spacing: .1em; margin-right: 8px; }

/* ---------- 代码块 ---------- */
.code { border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--mut); }
.code pre { margin: 0; padding: 16px 18px; font-size: 13px; line-height: 1.8; color: var(--tx); overflow-x: auto; white-space: pre; }
.code .c { color: var(--mut); }
.code .s { color: var(--tx2); }
.copy[data-done] { color: var(--acc); border-color: var(--acc); }

/* 单行命令：命令在左，复制按钮在右 */
.cli { display: flex; align-items: stretch; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.cli pre { flex: 1; min-width: 0; margin: 0; padding: 11px 14px; font-size: 13px; line-height: 1.7; color: var(--tx); overflow-x: auto; white-space: pre; }
.cli pre::before { content: "$ "; color: var(--acc); user-select: none; }
.cli .copy { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--tx2); font-family: var(--font-mono); font-size: 12px; padding: 0 14px; cursor: pointer; white-space: nowrap; transition: background var(--hover), color var(--hover); }
.cli .copy:hover { background: var(--bg3); color: var(--tx); }

/* ---------- 对比表 ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--bg); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; line-height: 1.7; }
.cmp caption { text-align: left; padding: 12px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--mut); border-bottom: 1px solid var(--line); }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: var(--mut); }
.cmp tbody th { font-weight: 500; color: var(--tx); width: 18%; white-space: nowrap; }
.cmp td { color: var(--tx2); width: 41%; }
.cmp td.us { color: var(--tx); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }

/* ---------- 步骤 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; counter-reset: st; }
.steps > li > div, .os-row > * { min-width: 0; }
.steps > li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 12px; }
.steps .n { font-family: var(--font-mono); font-size: 12px; color: var(--acc); padding-top: 4px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.steps p { margin: 0 0 14px; color: var(--tx2); font-size: 15px; line-height: 1.8; }
.os { display: grid; gap: 10px; }
.os-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; align-items: start; }
.os-row > span { font-family: var(--font-mono); font-size: 12px; color: var(--mut); padding-top: 12px; }

/* ---------- 体检 ---------- */
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.7; color: var(--tx2); }
.checks li > span { font-family: var(--font-mono); font-size: 12px; color: var(--tx); padding-top: 2px; }
.checks li.full > span::after { content: " --full"; color: var(--acc); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; font-size: 17px; font-weight: 500; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "[+]"; font-family: var(--font-mono); font-size: 13px; color: var(--mut); padding-top: 3px; }
.faq details[open] summary::after { content: "[-]"; color: var(--acc); }
.faq .ans { padding: 0 0 24px; color: var(--tx2); font-size: 15px; line-height: 1.85; }
.faq .ans p { margin: 0 0 12px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); padding: 56px 0 40px; font-size: 14px; color: var(--tx2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot h2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; font-weight: 400; color: var(--mut); margin: 0 0 14px; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--tx2); transition: color var(--hover); }
.foot a:hover { color: var(--tx); text-decoration: underline; }
.foot .legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.8; color: var(--mut); }
.foot .legal p { margin: 0 0 6px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- 动效开关 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.checks.cmds li { grid-template-columns: 9.5em minmax(0, 1fr); }
.checks.cmds code { font-size: 12.5px; color: var(--tx); }

/* 窄屏：对比表每行竖排，终端面板自动换行 */
@media (max-width: 640px) {
  table.cmp { min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0 10px; }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp th, .cmp td { display: block; width: auto; border: 0; padding: 8px 16px; white-space: normal; }
  .cmp td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--mut); }
  .term pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
html[lang="en"] .hero h1 { font-size: clamp(32px, 3.4vw, 50px); }

/* ---------- 终端录制回放（init/） ---------- */
.cast-page { border-top: 0; padding-top: calc(var(--header) + clamp(40px, 6vw, 72px)); }
.cast-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 28px 0 0; font-family: var(--font-mono); font-size: 12px; }
.cast-meta div { min-width: 0; }
.cast-meta dt { color: var(--mut); letter-spacing: .08em; }
.cast-meta dd { margin: 2px 0 0; color: var(--tx); }
.cast { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin-top: 40px; align-items: start; }
@media (max-width: 1100px) { .cast { grid-template-columns: minmax(0, 1fr); } }
.cast-term { margin: 0; }
.cast-view { height: min(660px, 72vh); overflow: auto; padding: 16px 18px; background: var(--bg); overscroll-behavior: contain; }
.cast-view:focus-visible { outline: 1px solid var(--acc); outline-offset: -1px; }
.cast-screen { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--tx2); white-space: pre; width: max-content; min-width: 100%; font-variant-numeric: tabular-nums; }
.cast-screen .ln { min-height: 1.6em; }
.cast-screen .cur { background: var(--tx); color: var(--bg); }
.cast.playing .cast-screen .cur { animation: blink 1s steps(1) infinite; }
.cast-nojs { margin: 0; color: var(--mut); font-family: var(--font-mono); font-size: 12.5px; }
.cast-ctl { justify-content: flex-start; flex-wrap: nowrap; }
.cast-ctl .mini { flex: none; min-width: 4.2em; }
.cast-bar { flex: 1 1 auto; min-width: 60px; height: 18px; position: relative; cursor: pointer; }
.cast-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: var(--line); }
.cast-bar i { position: absolute; left: 0; top: 7px; height: 3px; background: var(--acc); width: 0; }
.cast-bar:focus-visible { outline: 1px solid var(--acc); outline-offset: 2px; }
.cast-time { flex: none; white-space: nowrap; }
@media (max-width: 560px) { .cast-ctl { flex-wrap: wrap; } .cast-bar { flex-basis: 100%; order: 3; } }
.cast-side h2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; font-weight: 400; color: var(--mut); margin: 0 0 12px; text-transform: uppercase; }
.cast-side h2 + * { margin-bottom: 36px; }
.cast-chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cast-chapters li { border-bottom: 1px solid var(--line); }
.cast-chapters button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 3.6em minmax(0, 1fr); width: 100%; padding: 10px 0; cursor: pointer; font-size: 14px; color: var(--tx2); transition: color var(--hover); }
.cast-chapters button span { font-family: var(--font-mono); font-size: 12px; color: var(--mut); padding-top: 2px; }
.cast-chapters button:hover { color: var(--tx); }
.cast-chapters button:focus-visible { outline: 1px solid var(--acc); outline-offset: 2px; }
.cast-side .ticks li { font-size: 14px; }
.cast-back { margin: 0; }

/* ANSI 颜色：映射到站点色板，深浅两种主题都可读 */
.a-f0, .a-f8 { color: var(--mut); }
.a-f1, .a-f9 { color: var(--bad); }
.a-f2, .a-f10 { color: var(--acc); }
.a-f3, .a-f11 { color: var(--warn); }
.a-f4, .a-f12, .a-f6, .a-f14 { color: var(--acc); }
.a-f5, .a-f13 { color: var(--tx2); }
.a-f7, .a-f15 { color: var(--tx); }
.a-g0, .a-g8 { background: var(--bg3); }
.a-g1, .a-g9 { background: var(--bad); color: var(--bg); }
.a-g2, .a-g10, .a-g4, .a-g12, .a-g6, .a-g14 { background: var(--acc); color: var(--bg); }
.a-g3, .a-g11 { background: var(--warn); color: var(--bg); }
.a-g5, .a-g13, .a-g7, .a-g15 { background: var(--bg3); }
.a-b { font-weight: 700; color: var(--tx); }
.a-b.a-f1, .a-b.a-f9 { color: var(--bad); }
.a-b.a-f2, .a-b.a-f10, .a-b.a-f4, .a-b.a-f6 { color: var(--acc); }
.a-b.a-f3, .a-b.a-f11 { color: var(--warn); }
.a-d { color: var(--mut); }
.a-i { font-style: italic; }
.a-u { text-decoration: underline; }

/* 首页“上手”里指向录制页的链接 */
.rec-link { display: inline-flex; gap: 10px; align-items: baseline; margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--acc); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--hover); }
.rec-link:hover { border-bottom-color: var(--acc); }
.sub-h { font-size: 17px; font-weight: 700; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.sub-h + .note { margin-top: 10px; }
.term .pa { color: var(--warn); user-select: none; }

/* ---------- 导航高亮与补充 ---------- */
.links a.active { color: var(--tx); font-weight: 700; border-bottom: 2px solid var(--acc); padding-bottom: 2px; }

/* ---------- 商业双线套餐与服务卡片 ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
}

.price-card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color var(--hover), transform var(--hover);
}
.price-card:hover {
  border-color: var(--acc);
}
.price-card.featured {
  border-color: var(--acc);
  box-shadow: 0 0 0 1px var(--acc);
  background: var(--bg2);
}
.card-badge {
  position: absolute;
  top: -10px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--acc);
  color: var(--on-acc);
  padding: 2px 8px;
  letter-spacing: .06em;
  font-weight: 600;
  text-transform: uppercase;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mut);
  letter-spacing: .1em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.card-name {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--tx);
}
.price-box {
  margin: 12px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--tx);
  letter-spacing: -.02em;
}
.price-unit {
  font-size: 13px;
  color: var(--mut);
}
.price-orig {
  font-size: 12px;
  color: var(--mut);
  text-decoration: line-through;
  margin-left: 4px;
}
.card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--tx2);
  margin: 0 0 18px;
  min-height: 44px;
}
.card-items {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.card-items li {
  font-size: 13px;
  color: var(--tx2);
  line-height: 1.6;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.card-items li::before {
  content: "✔";
  color: var(--acc);
  font-size: 11px;
  flex: none;
}
.card-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--tx);
  color: var(--tx);
  background: transparent;
  transition: all var(--hover);
  cursor: pointer;
}
.card-btn:hover {
  background: var(--tx);
  color: var(--bg);
}
.card-btn.primary {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--on-acc);
}
.card-btn.primary:hover {
  opacity: .9;
  background: var(--acc);
  color: var(--on-acc);
}

/* ---------- 上下合并卡片（额外增值服务） ---------- */
.merged-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.merged-half {
  padding: 4px 0;
}
.merged-half.half-top {
  margin-bottom: 8px;
}
.merged-divider {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 12px 0 14px;
  position: relative;
}
.merged-divider::after {
  content: "＋ 增值保障搭配";
  white-space: nowrap;
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mut);
}
.half-badge-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.half-badge-title h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--tx);
}
.half-badge-title span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acc);
  background: var(--bg3);
  padding: 2px 6px;
}
.half-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 6px;
}
.half-price-row .num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--tx);
}
.half-price-row .unit {
  font-size: 12px;
  color: var(--mut);
}
.half-desc {
  font-size: 12.5px;
  color: var(--tx2);
  line-height: 1.5;
  margin: 0;
}

/* ---------- 组合省钱横幅 ---------- */
.bundle-banner {
  margin-top: 32px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bundle-text {
  font-size: 14px;
  color: var(--tx2);
}
.bundle-text strong {
  color: var(--tx);
}
.bundle-tag {
  background: var(--warn);
  color: var(--on-warn);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  margin-right: 6px;
}

/* ---------- 技术架构亮点列表 ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 980px) {
  .tech-grid { grid-template-columns: minmax(0, 1fr); }
}
.tech-card {
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--bg);
}
.tech-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--tx);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tech-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--tx2);
  margin: 0;
}

/* ---------- 指纹与环境科普卡片 ---------- */
.fp-box {
  margin-top: 36px;
  padding: 22px 26px;
  border-left: 3px solid var(--acc);
  background: var(--bg3);
}
.fp-box h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--tx);
}
.fp-box p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--tx2);
  margin: 0 0 10px;
}
.fp-box p:last-child {
  margin: 0;
}

/* 窄屏保留目录入口；原生 details 在无 JS 时也能使用。 */
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; min-height: 44px; display: flex; align-items: center; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; margin-left: 8px; }
.mobile-menu[open] summary::after { content: "−"; }
.mobile-menu nav { position: absolute; top: var(--header); left: 16px; right: 16px; max-height: calc(100dvh - var(--header) - 20px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 12px 32px #0002; }
.mobile-menu nav a { display: block; padding: 12px 14px; text-decoration: none; }
.mobile-menu nav a:hover { background: var(--bg3); }
.hdr:has(.mobile-menu[open]) { background: var(--bg); }
.hdr-cta, .lang, .mini { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.price-box, .half-price-row, .half-badge-title { flex-wrap: wrap; gap: 6px 10px; }
.half-badge-title span { white-space: nowrap; }
.card-items li, .half-desc { font-size: 14px; line-height: 1.75; }
.card-desc { font-size: 14px; line-height: 1.75; }
.price-card, .merged-card { min-width: 0; }
.pricing-status { border-left: 3px solid var(--acc); padding: 12px 16px; background: var(--bg2); max-width: 65em; }
.card-btn[aria-disabled="true"] { border-color: var(--line); color: var(--tx2); background: var(--bg3); cursor: default; }
.cast-bar { min-height: 44px; }
.cast-bar::before { top: 21px; }
.cast-bar i { top: 20px; }
@media (max-width: 980px) {
  .mobile-menu { display: block; }
  .hdr .bar { gap: 12px; }
  .hdr-r { gap: 8px; }
  .hdr-r .hdr-cta { display: none; }
}
@media (max-width: 640px) {
  .hero h1 { word-break: normal; text-wrap: balance; }
  .hero .sub { margin-bottom: 24px; }
  .hero .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .btn { text-align: center; padding: 14px 10px; font-size: 14px; }
  .price-card, .merged-card { padding: 22px; }
  .half-badge-title h3 { font-size: 17px; }
  .bundle-banner { padding: 20px; }
  .cast-meta dd { overflow-wrap: anywhere; }
  .cast-time { white-space: normal; }
}

.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.card-service-notice { font-size: 12px; line-height: 1.75; color: var(--mut); margin: 16px 0; overflow-wrap: anywhere; }
.card-btn[aria-disabled="true"] { opacity: .6; cursor: default; pointer-events: none; }
@media(max-width: 1000px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } }
@media(max-width: 640px) { .pricing-addons { grid-template-columns: minmax(0, 1fr); } }

/* Optional subscriptions stay secondary to the three aibox plans. */
.addons-section { margin: 32px 0 20px; }
.addons-title { color: var(--mut); font-size: 13px; font-weight: 500; margin: 0 0 12px; }
.addon-card { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); background: var(--bg); }
.addon-card .card-name { font-size: 16px; margin: 0 0 8px; }
.addon-card .card-desc { font-size: 13px; min-height: 0; margin: 0 0 12px; }
.addon-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.addon-card .price-box { margin: 0; gap: 6px; }
.addon-card .price-num { font-size: 23px; }
.addon-card .price-unit { font-size: 12px; }
.addon-card .card-btn { width: auto; min-height: 44px; padding: 8px 16px; font-size: 13px; }
.addon-details { margin-top: 8px; }
.addon-details summary { cursor: pointer; color: var(--mut); font-size: 12px; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.addon-details summary::before { content: "+"; font-size: 16px; }
.addon-details[open] summary::before { content: "−"; }
.addon-details summary::-webkit-details-marker { display: none; }
.addon-details .card-items { margin: 8px 0; padding-top: 12px; }
.addon-details .card-items:empty { display: none; }
.addon-details .card-service-notice { margin: 8px 0 0; }
