/* ============================================================================
 * site-v2.css —— 译匣子官网 v2（自包含设计层，不依赖 Bootstrap）
 *
 * 纪律
 *   1. 浅色纸底 + 品牌深蓝 #1B3A6B 作正文与标题，金色 #F5C24B 只做点缀
 *      （分隔线、编号底纹、强调标记）。金色从不承载正文：白底上的金对比度
 *      只有 1.6 左右，放正文就是看不清。
 *   2. 字体只用系统栈，不引外部字体；图形只用 CSS 与内联 SVG，不引图片/CDN。
 *   3. 正文 16px、行高 1.7；辅助文字 13px 起 且用 --muted（纸底 6.57:1）。
 *      每个前景色都在下面标了实测对比度（python 计算，见交付报告）。
 *   4. 断点只有三档：980（两栏收成一栏）、860（导航折叠）、720（卡片堆叠）。
 *      390px 宽下不应产生页面级横向滚动；长 SHA / 代码只在自身容器内滚动。
 *
 * 对比度（WCAG AA）
 *   --ink      #12233D on #FAF8F3 → 14.84:1
 *   --muted    #4A5A75 on #FAF8F3 → 6.57:1（白底 6.98，浅蓝底 6.25）
 *   --brand    #1B3A6B on #FAF8F3 → 10.61:1（白底 11.27）
 *   #FFFFFF    on --brand         → 11.27:1
 *   --gold-ink #5C450E on --gold  → 5.49:1
 *   #C9D4E6    on --brand-deep    → 9.57:1
 * ========================================================================= */

:root {
  /* 品牌 */
  --brand: #1B3A6B;
  --brand-deep: #122A4E;
  --brand-soft: #EEF3F9;
  --brand-line: #C8D6E8;
  --gold: #F5C24B;
  --gold-soft: #FBF0CF;
  --gold-line: #E7C767;
  --gold-ink: #5C450E;

  /* 文字 */
  --ink: #12233D;
  --muted: #4A5A75;
  --muted-strong: #3B4A63;

  /* 面与线 */
  --paper: #FAF8F3;
  --surface: #FFFFFF;
  --surface-soft: #F4F1E9;
  --line: #E4DFD3;
  --line-strong: #CFC7B6;

  /* 语义 */
  --danger: #B42318;
  --danger-soft: #FEF3F2;
  --danger-line: #F3B7B2;
  --warn: #B54708;
  --warn-soft: #FFF6E5;
  --warn-line: #F2D49B;
  --ok: #067647;
  --ok-soft: #ECFDF3;
  --ok-line: #A9E5C3;

  /* 排版 / 布局 */
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
          "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", "Liberation Mono",
          "Courier New", monospace;
  --container: 1120px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 35, 61, .05), 0 18px 40px -28px rgba(18, 35, 61, .35);
  --header-h: 68px;
}

/* ---------------------------------------------------------------- 基础 */

*,
*::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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }

svg { max-width: 100%; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.15rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 3.1vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.0625rem; font-weight: 700; }
h4 { font-size: .9375rem; font-weight: 700; }
p { line-height: 1.75; }
strong { font-weight: 700; }

code, kbd, pre, .mono { font-family: var(--mono); }

kbd {
  display: inline-block;
  padding: .08em .38em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.5;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}
.cta :focus-visible,
.subtitle-demo :focus-visible { outline-color: var(--gold); }

::selection { background: var(--gold-soft); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.75;
}

/* ---------------------------------------------------------------- 导航 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(250, 248, 243, .92);
    backdrop-filter: blur(10px);
  }
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brand); }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__link:hover { background: var(--brand-soft); color: var(--brand); }
.site-nav__link[aria-current="page"] {
  background: var(--gold-soft);
  color: var(--brand);
  font-weight: 700;
}
.site-nav__back {
  display: inline-block;
  margin-left: 8px;
  padding: 8px 2px 8px 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: .875rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__back:hover { color: var(--brand); }

/* ---------------------------------------------------------------- 页脚 */

.site-footer {
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .875rem;
}
.site-footer__inner { padding-block: clamp(32px, 5vw, 56px) 24px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}
.site-footer__brand svg { width: 28px; height: 28px; }
.site-footer__title {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.site-footer__list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__list a { color: var(--muted); text-decoration: none; }
.site-footer__list a:hover { color: var(--brand); text-decoration: underline; }
.site-footer__note { margin-top: 8px; line-height: 1.65; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
}
.site-footer__bottom a { color: var(--muted); }

/* ---------------------------------------------------------------- 区块 */

.section { padding-block: clamp(52px, 7.5vw, 96px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--soft { background: var(--surface-soft); border-block: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44ch);
  align-items: end;
  gap: 16px 48px;
  margin-bottom: clamp(26px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.section-head__note { color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.section-num {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
}
.section-num::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--gold);
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- 按钮 */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.button--primary { background: var(--brand); color: #fff; }
.button--primary:hover { background: var(--brand-deep); color: #fff; }
.button--gold { background: var(--gold); color: var(--gold-ink); }
.button--gold:hover { background: #f0b93a; color: var(--gold-ink); }
.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.button--ghost:hover { border-color: var(--brand); color: var(--brand); }
.button--small { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.button[aria-disabled="true"] {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
}
.text-link:hover { border-bottom-color: var(--brand); }
.text-link svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- 首屏 */

.hero { padding-block: clamp(40px, 6vw, 84px) clamp(28px, 4vw, 48px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
}
.hero__copy { min-width: 0; }
.hero__brand { width: 52px; height: 52px; margin-bottom: 18px; }
.hero__brand svg { display: block; width: 52px; height: 52px; }
.hero__title { margin-top: 16px; color: var(--ink); }
.hero__title em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(transparent 64%, var(--gold-soft) 64%);
}
.hero__lead { margin-top: 20px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 22px;
  color: var(--muted);
  font-size: .8125rem;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold);
}

/* 首屏右：字幕示意（HTML + CSS，无图片） */
.subtitle-demo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--brand-deep);
  color: #fff;
  box-shadow: var(--shadow);
}
.subtitle-demo::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 194, 75, .28), rgba(245, 194, 75, 0) 68%);
}
.demo__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: #C9D4E6;
  font-size: .75rem;
}
.demo__title { font-weight: 600; letter-spacing: .04em; }
.demo__live { display: inline-flex; align-items: center; gap: 6px; }
.demo__live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.demo__line { padding-top: 16px; }
.demo__line + .demo__line { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.demo__ru {
  color: #C9D4E6;
  font-size: .8125rem;
  line-height: 1.55;
}
.demo__zh {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(1.0625rem, 1.7vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}
.demo__line--draft .demo__zh { opacity: .62; }
.demo__line--draft .demo__ru { opacity: .8; }
.demo__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 3px;
  color: #C9D4E6;
  font-size: .6875rem;
  font-weight: 500;
  vertical-align: 2px;
}
.demo__mark {
  border-radius: 4px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  padding: 0 3px;
}
.demo__foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #C9D4E6;
  font-size: .6875rem;
  line-height: 1.6;
}

/* 首屏下：三个带口径的数字 */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line-strong);
}
.fact { padding: 20px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact__value {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.fact__label { margin-top: 2px; color: var(--ink); font-size: .9375rem; font-weight: 600; }
.fact__note { margin-top: 4px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }

/* ---------------------------------------------------------------- 卡片 */

.card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; }
.card--soft { background: var(--surface-soft); box-shadow: none; }
.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card__num {
  color: var(--gold-ink);
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.card__icon {
  width: 42px; height: 42px;
  padding: 9px;
  border-radius: 11px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  flex: 0 0 auto;
}
.card__title { margin-bottom: 8px; }
.card__text { color: var(--muted); font-size: .9375rem; }
.card__text + .card__text { margin-top: 10px; }
.card__foot { margin-top: 18px; }

/* 四步 */
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.step:nth-child(-n+2) { border-top: 0; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 700;
}
.step__title { margin-bottom: 4px; }
.step__text { color: var(--muted); font-size: .9375rem; }

/* 平台 */
.platform { height: 100%; }
.platform__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.platform__icon {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: 0 0 auto;
}
.platform__title { font-size: 1.25rem; }
.platform__meta { color: var(--muted); font-size: .8125rem; }
.platform__text { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.platform__foot { margin-top: 20px; }

.checklist {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .9375rem;
}
.checklist li {
  position: relative;
  padding-left: 26px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 15px; height: 8px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* 三条界面规则 */
.rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.rule:first-child { border-top: 0; padding-top: 0; }
.rule__num {
  color: var(--gold-ink);
  font-family: var(--mono);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.rule__body { min-width: 0; }
.rule__title { margin-bottom: 6px; }
.rule__text { color: var(--muted); font-size: .9375rem; }
.rule__why {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
  color: var(--muted-strong);
  font-size: .875rem;
}

/* 提示块 */
.callout {
  padding: 16px 18px;
  border: 1px solid var(--brand-line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-soft);
  color: var(--muted-strong);
  font-size: .9375rem;
  line-height: 1.7;
}
.callout--gold { border-color: var(--gold-line); border-left-color: var(--gold); background: var(--gold-soft); }
.callout--warn { border-color: var(--warn-line); border-left-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.callout--danger { border-color: var(--danger-line); border-left-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.callout__title { display: block; margin-bottom: 3px; font-weight: 700; }
.callout a { color: inherit; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq__q { margin-bottom: 6px; font-size: 1rem; }
.faq__a { color: var(--muted); font-size: .9375rem; }
.faq__a + .faq__a { margin-top: 8px; }

/* ---------------------------------------------------------------- CTA */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius);
  background: var(--brand-deep);
  color: #fff;
}
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -60px; bottom: -90px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 194, 75, .22), rgba(245, 194, 75, 0) 70%);
}
.cta__title { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta__text { max-width: 56ch; margin-top: 10px; color: #C9D4E6; font-size: .9375rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta .button--ghost { border-color: rgba(255, 255, 255, .38); color: #fff; }
.cta .button--ghost:hover { border-color: var(--gold); color: var(--gold); }
.cta__note { margin-top: 16px; color: #C9D4E6; font-size: .75rem; }

/* ---------------------------------------------------------------- 页面头 */

.page-head { padding-block: clamp(36px, 5vw, 60px) clamp(24px, 3vw, 36px); }
.page-head__title { margin-top: 12px; }
.page-head__lead { margin-top: 14px; }
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .8125rem;
}

/* ---------------------------------------------------------------- 下载 */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.dl-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dl-card__title { font-size: 1.35rem; }
.dl-card__sub { margin-top: 2px; color: var(--muted); font-size: .8125rem; }
.dl-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-card__actions .button { flex: 1 1 auto; }

.dl-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 16px;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.dl-meta dt { color: var(--muted); font-size: .8125rem; }
.dl-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: .875rem;
}
.dl-meta dd code {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .75rem;
  word-break: break-all;
}

.status { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.status--error {
  padding: 10px 12px;
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
}
.status--ok { color: var(--ok); }

/* speedtest.js 仍沿用旧类名，这里给一个 v2 外观，避免它悬空 */
.ds-dl-meta { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
#speedtest { margin-top: 10px; }
.ds-error {
  padding: 10px 12px;
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: .875rem;
}

.noscript-note {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: .875rem;
}

.code-block {
  margin: 8px 0 0;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.6;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
.code-block code { font-size: inherit; }

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.install {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.install h3 { margin-bottom: 10px; }
.install ol {
  margin: 0;
  padding-left: 1.25em;
  color: var(--muted);
  font-size: .9375rem;
}
.install li + li { margin-top: 8px; }
.install li strong { color: var(--ink); }

/* ---------------------------------------------------------------- 时间线 */

.timeline { min-width: 0; }
.timeline__list {
  position: relative;
  margin: 0;
  padding: 4px 0 0 24px;
  list-style: none;
}
.timeline__list::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}
.timeline__item { position: relative; padding-bottom: 24px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -24px; top: 6px;
  width: 13px; height: 13px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--surface);
}
.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  color: var(--muted);
  font-size: .8125rem;
}
.timeline__version { color: var(--ink); font-size: 1.0625rem; font-weight: 700; }
.timeline__text { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.timeline__sha {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .75rem;
  word-break: break-all;
}
.timeline__empty { color: var(--muted); font-size: .9375rem; }

.channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.channel-head h2 { font-size: 1.25rem; }
.channel-head span { color: var(--muted); font-size: .8125rem; }

/* ---------------------------------------------------------------- 帮助目录 */

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
  padding-right: 8px;
}
.toc__title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.toc__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc__list a {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .875rem;
  text-decoration: none;
}
.toc__list a:hover { background: var(--brand-soft); color: var(--brand); }
.toc__list a[aria-current="true"] { background: var(--gold-soft); color: var(--brand); font-weight: 600; }

.doc-body { min-width: 0; }
.doc-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-section h2 { margin-bottom: 12px; font-size: 1.35rem; }
.doc-section h3 { margin: 22px 0 6px; }
.doc-section p { color: var(--muted-strong); font-size: .9375rem; }
.doc-section p + p { margin-top: 8px; }
.doc-section ul, .doc-section ol { margin: 8px 0 0; padding-left: 1.3em; color: var(--muted-strong); font-size: .9375rem; }
.doc-section li + li { margin-top: 6px; }
.doc-section .callout { margin-top: 16px; }

/* 字幕状态示例 */
.state-list { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.state-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 12px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}
.state-row__sample { min-width: 0; }
.state-row__desc { color: var(--muted-strong); }
.state-row__desc strong { color: var(--ink); }

.dim-1 { opacity: .78; }
.dim-2 { opacity: .66; }
.gold-mark {
  border-radius: 4px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  padding: 0 3px;
}

/* ---------------------------------------------------------------- 法务页 */

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow: auto;
  padding: 4px 8px 4px 0;
}
.legal-toc__title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.legal-toc ol {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.legal-toc a {
  display: block;
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--muted);
  font-size: .8125rem;
  text-decoration: none;
}
.legal-toc a:hover { background: var(--brand-soft); color: var(--brand); }
.legal-toc a:focus-visible { outline-offset: 1px; }

.legal { min-width: 0; max-width: 76ch; }
.legal__meta {
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: .8125rem;
}
.legal section { padding-top: 28px; }
.legal h2 {
  margin-bottom: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal h3 { margin: 18px 0 6px; font-size: 1rem; }
.legal p {
  margin-top: 8px;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.85;
}
.legal strong { font-weight: 700; }
.legal a { text-decoration-thickness: 1px; }
.print-hint {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .75rem;
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 620px; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .doc-layout,
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc,
  .legal-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .toc { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .toc__list { display: flex; flex-wrap: wrap; gap: 4px; }
  .toc__list a { border: 1px solid var(--line); background: var(--surface); }
  .legal-toc { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
  .legal-toc a { padding: 4px 6px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav {
    display: none;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% - 4px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__link { display: block; padding: 11px 12px; border-radius: 7px; }
  .site-nav__back {
    margin: 6px 0 0;
    padding: 11px 12px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .grid--2,
  .grid--3,
  .dl-grid,
  .install-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(2) { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 16px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .state-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .site-footer__bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(1.95rem, 8.4vw, 2.5rem); }
  .hero__actions .button { flex: 1 1 100%; }
  .dl-card__actions .button { flex: 1 1 100%; }
  .dl-meta { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dl-meta dd { margin-bottom: 6px; }
  .legal-toc ol { grid-template-columns: minmax(0, 1fr); }
  .cta__actions .button { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- 动效偏好 */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------- 打印 */

@media print {
  @page { margin: 18mm 16mm; }

  :root {
    --paper: #FFFFFF;
    --surface: #FFFFFF;
    --ink: #111111;
    --muted: #333333;
    --muted-strong: #222222;
    --line: #BBBBBB;
    --line-strong: #999999;
    --brand: #000000;
  }

  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.65; }
  .site-header,
  .site-footer,
  .skip-link,
  .toc,
  .legal-toc,
  .print-hint,
  .hero__actions,
  .page-head__actions { display: none !important; }

  .container { max-width: none; padding: 0; }
  .section { padding: 0; }
  .page-head { padding: 0 0 12pt; }
  .page-head__title { margin: 0; font-size: 22pt; }
  .page-head__lead { margin-top: 6pt; color: #333; }
  .page-meta { color: #333; }
  .legal-layout { display: block; padding: 0; }
  .legal { max-width: none; }
  .legal__meta { color: #333; }
  .legal section { padding-top: 14pt; }
  .legal h2 {
    margin: 16pt 0 6pt;
    padding-top: 8pt;
    border-top: 1px solid #999;
    font-size: 14pt;
    break-after: avoid;
  }
  .legal p { margin-top: 5pt; color: #000; font-size: 11pt; line-height: 1.6; orphans: 3; widows: 3; }
  .legal a { color: #000; text-decoration: none; }
  .card, .dl-card, .install, .cta { box-shadow: none; }
}
