/* ===== tokens.css ===== */
/* ============================================================
   tokens.css —— 设计令牌，全站唯一来源
   改颜色 / 字号 / 间距 / 宽度，只改这里
   ------------------------------------------------------------
   颜色按「用途」拆，不按色值拆：
     --brand      只做填充（按钮底、选中片底、徽标底）
     --brand-ink  只做文字（白底/浅底上的链接与强调）
   两者对比度要求不同，混用必然有一头不达标。
   ============================================================ */

:root {
  /* ---- 品牌色 ---- */
  --brand: #1578CB;          /* 填充：白字压得住（4.58:1，小字也达标） */
  --brand-ink: #1A74C4;      /* 文字：白底 4.84:1，纸底 4.55:1 */
  --brand-deep: #0F5FA8;     /* 文字：压在浅蓝底上 */
  --brand-surface: #EAF3FB;
  --brand-hover: #1268B0;

  /* ---- 浅底文字三级 ---- */
  --text: #16181D;           /* 标题 */
  --text-body: #3D4249;      /* 正文 10.1:1 */
  --text-muted: #646C78;     /* 辅助 5.3:1（白）/ 5.0:1（纸） */

  /* ---- 深底文字 ---- */
  --text-invert: #FFFFFF;
  --text-invert-soft: #A8B0BC;
  --text-invert-label: #7D8590;
  --text-invert-link: #D6DBE2;

  /* ---- 面与线 ---- */
  --surface: #FFFFFF;
  --paper: #F6F8FB;
  --line: #E6E9EE;
  --line-soft: #EEF1F5;
  --ink: #16181D;
  --ink-soft: #1E222A;
  --line-dark: #30363D;
  --line-dark-soft: #262A31;

  /* ---- 宽度：只有两档 ---- */
  --w-container: 1440px;     /* 含左右留白 → 内容 1160 */
  --w-prose: 640px;          /* 长文阅读宽度 */
  --gutter: 140px;

  /* ---- 间距 ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 60px;
  --sp-11: 72px;
  --sp-12: 96px;

  /* ---- 圆角 ---- */
  --r-xs: 5px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-pill: 99px;

  /* ---- 字号：语义化，移动端整体降档 ---- */
  --fs-display: 62px;  --lh-display: 76px;
  --fs-title: 44px;    --lh-title: 58px;
  --fs-h2-lg: 40px;    --lh-h2-lg: 54px;
  --fs-h2: 34px;       --lh-h2: 46px;
  --fs-h3: 28px;       --lh-h3: 40px;
  --fs-lead: 16px;     --lh-lead: 29px;
  --fs-body: 14.5px;   --lh-body: 27px;
  --fs-sm: 13px;       --lh-sm: 21px;
  --fs-xs: 12px;       --lh-xs: 19px;

  /* ---- 字体：系统字体栈，零网络请求 ---- */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  /* ---- 阴影 ---- */
  --shadow-card: 0 12px 32px -12px rgba(15, 25, 30, 0.05);
  --shadow-float: 0 14px 34px -10px rgba(22, 24, 29, 0.18),
    0 2px 6px rgba(22, 24, 29, 0.06);
}

/* 笔记本档：收窄留白，内容宽度不变 */
@media (max-width: 1280px) {
  :root {
    --gutter: 64px;
  }
}

/* 平板档 */
@media (max-width: 900px) {
  :root {
    --gutter: 40px;
    --fs-display: 46px;  --lh-display: 58px;
    --fs-title: 36px;    --lh-title: 48px;
    --fs-h2-lg: 32px;    --lh-h2-lg: 44px;
    --fs-h2: 28px;       --lh-h2: 38px;
    --fs-h3: 24px;       --lh-h3: 34px;
  }
}

/* 手机档 */
@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --fs-display: 38px;  --lh-display: 48px;
    --fs-title: 30px;    --lh-title: 40px;
    --fs-h2-lg: 27px;    --lh-h2-lg: 37px;
    --fs-h2: 24px;       --lh-h2: 33px;
    --fs-h3: 21px;       --lh-h3: 30px;
    --fs-lead: 15px;     --lh-lead: 27px;
    --fs-body: 14px;     --lh-body: 25px;
    --sp-12: 56px;
    --sp-11: 44px;
    --sp-10: 36px;
  }
}

/* ===== base.css ===== */
/* ============================================================
   base.css —— reset + 排版基线 + 无障碍
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

/* UA 会给 figure 左右各 40px，通栏图位必溢出的元凶 */
figure {
  margin: 0;
}

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

body {
  background: var(--surface);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

a {
  color: var(--brand-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

strong {
  color: var(--text);
  font-weight: 600;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

/* 组件的 display 会盖掉 UA 的 [hidden]，筛选靠它 */
[hidden] {
  display: none !important;
}

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

/* 屏幕阅读器专用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--sp-4);
}

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

/* ===== layout.css ===== */
/* ============================================================
   layout.css —— 容器 / 区块节奏 / 栅格
   只放这一层自己定义的东西（.wrap .section .grid .split）
   组件级断点写回定义它的文件，否则会被后加载的样式盖掉
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 长文 / 说明段落宽度档 */
.measure {
  max-width: var(--w-prose);
}

/* 区块：首页节奏 96，内页 76 */
.section {
  padding-block: var(--sp-12);
}

.section--tight {
  padding-block: 76px;
}

.section--paper {
  background: var(--paper);
}

.section--ink {
  background: var(--ink);
  color: var(--text-invert-soft);
}

.section--ink h2,
.section--ink h3 {
  color: var(--text-invert);
}

/* 竖向节奏工具 */
.stack {
  display: flex;
  flex-direction: column;
}

/* 区块内部的纵向节奏（设计稿：首页 60 / 内页 38） */
.flow-lg {
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
}

.flow-md {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.flow-sm {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}

/* 栅格 */
.grid {
  display: grid;
  gap: var(--sp-4);
}

.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 文案 + 侧栏的两栏结构（左文右卡 / 左卡右文都由 order 控制） */
.split {
  display: flex;
  align-items: center;
  gap: var(--sp-11);
}

.split__copy {
  flex: 1 1 420px;
  min-width: 0;
}

.split__aside {
  flex: 0 0 auto;
}

@media (max-width: 860px) {
  .g3,
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-7);
  }

  .split__aside {
    flex: 1 1 auto;
  }
}

@media (max-width: 600px) {
  .g2,
  .g3,
  .g4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== components.css ===== */
/* ============================================================
   components.css —— 跨页复用的组件
   每个组件的 @media 覆盖紧跟在该组件定义之后（同文件）
   ============================================================ */

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 13px 24px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-hover);
}

/* 描边用 inset shadow，不用 border：border 会把按钮撑高 2px，
   同一行的实心按钮立刻对不齐 */
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--ghost:hover {
  background: #fafbfc;
  box-shadow: inset 0 0 0 1px #cbd3dd;
}

.btn--sm {
  min-height: 38px;
  padding: 9px 18px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn--lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 15px;
  border-radius: var(--r-md);
}

.btn--block {
  width: 100%;
}

/* 按钮组 */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 600px) {
  /* 手机上两个按钮各占一行，宽度统一，避免参差不齐 */
  .btn-row {
    width: 100%;
  }

  .btn-row .btn {
    flex: 1 1 100%;
  }
}

/* ---------------- 角标 / 标签 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--brand-surface);
  box-shadow: inset 0 0 0 1px #d2e3f4;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-deep);
  line-height: 1.4;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  background: #f1f4f8;
  font-size: 10.5px;
  font-weight: 600;
  color: #5a6472;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--brand {
  background: var(--brand-surface);
  color: var(--brand-deep);
}

/* 圆角胶囊清单（能力清单） */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.4;
}

/* ---------------- 区块标题 ---------------- */
.kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-ink);
}

/* 竖向堆叠式区块头（居中或左对齐由 .section-head--center 决定） */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.section-head__title {
  font-size: var(--fs-h2-lg);
  line-height: var(--lh-h2-lg);
  color: var(--text);
}

.section-head__desc {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text-body);
  max-width: var(--w-prose);
}

/* 横向对照式区块头：左标题、右说明，两端对齐 */
.section-head--split {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-10);
}

.section-head--split .section-head__left {
  flex: 0 1 540px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.section-head--split .section-head__desc {
  flex: 0 0 460px;
  font-size: 14.5px;
  line-height: 26px;
}

@media (max-width: 860px) {
  .section-head--split {
    flex-direction: column;
    gap: var(--sp-4);
  }

  /* 列向之后 flex-basis 变成了「高度」——540px 会在标题和说明之间挖出大空洞 */
  .section-head--split .section-head__left,
  .section-head--split .section-head__desc {
    flex: 0 0 auto;
  }
}

/* ---------------- 卡片 ---------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 24px;
}

.card--paper {
  background: var(--paper);
  box-shadow: none;
}

.card--ink {
  background: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}

.card__title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
}

.card__desc {
  font-size: 12.5px;
  line-height: var(--lh-sm);
  color: var(--text-muted);
}

.card__link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-ink);
}

/* 阅读卡的顶部小色条 */
.card__accent {
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------------- 勾选清单 ---------------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.6 6.2 4.9 8.5 9.4 3.9' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 9px 9px no-repeat;
}

/* 不包含项 / 代价项：灰圈减号 */
.check-list--muted li {
  color: var(--text-muted);
  font-size: 13px;
}

.check-list--muted li::before {
  background: #e4e9f0
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='%23646C78' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 8px 8px no-repeat;
}

/* ---------------- 表格 ---------------- */
.tbl-wrap {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 8px 28px 16px;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tbl th {
  padding: 14px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.tbl td {
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 22px;
  color: var(--text-body);
  vertical-align: top;
}

.tbl .is-strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.tbl .is-right {
  text-align: right;
}

.tbl .is-brand {
  color: var(--brand-ink);
  font-weight: 600;
}

.tbl caption {
  text-align: left;
  padding: 12px 0 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-muted);
}

.tbl-note {
  padding: 4px 28px 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .tbl-wrap {
    padding: 4px 20px 16px;
  }

  .tbl colgroup,
  .tbl thead {
    display: none;
  }

  .tbl,
  .tbl tbody,
  .tbl tr,
  .tbl td {
    display: block;
    width: auto;
  }

  .tbl tr {
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
  }

  .tbl tr:first-child {
    border-top: 0;
  }

  .tbl td {
    border: 0;
    padding: 2px 0;
  }

  .tbl td[data-label]::before {
    content: attr(data-label) "：";
    color: var(--text-muted);
  }

  /* 动作列不需要「下载：下载」这种重复前缀 */
  .tbl td.is-action::before {
    content: none;
  }

  .tbl .is-right {
    text-align: left;
  }

  .tbl-note {
    padding-inline: 20px;
  }
}

/* ---------------- 键值规格行 ---------------- */
.spec {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.spec__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
}

.spec__label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.spec__value {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* ---------------- 搜索框 ---------------- */
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding-inline: 18px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px #dce1e8;
}

.field:focus-within {
  box-shadow: inset 0 0 0 2px var(--brand-ink);
}

.field svg {
  flex: 0 0 auto;
  color: var(--text-muted);
}

.field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:focus {
  outline: none;
}

/* ---------------- 筛选片 ---------------- */
.filter {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px #dce1e8;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.4;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.filter:hover {
  background: var(--paper);
}

.filter[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- 问答手风琴 ---------------- */
.qa-list {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.qa {
  border-top: 1px solid var(--line-soft);
}

.qa:first-child {
  border-top: 0;
}

.qa > summary {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
}

.qa > summary::-webkit-details-marker {
  display: none;
}

.qa > summary:hover {
  background: #fbfcfd;
}

.qa__q {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
}

.qa__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.7px;
  border-radius: 1px;
  background: var(--text-muted);
  transform: translate(-50%, -50%);
}

.qa__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.18s ease;
}

.qa[open] .qa__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.qa[open] > summary {
  padding-bottom: 10px;
}

.qa__a {
  padding: 0 26px 22px;
  font-size: 13.5px;
  line-height: 25px;
  color: var(--text-body);
}

@media (max-width: 600px) {
  .qa > summary {
    padding: 18px 20px;
    gap: var(--sp-4);
  }

  .qa[open] > summary {
    padding-bottom: 8px;
  }

  .qa__a {
    padding: 0 20px 18px;
  }

  .qa__q {
    font-size: 14.5px;
  }
}

/* ---------------- 代码块 ---------------- */
.code {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.95;
  overflow-x: auto;
}

.code span {
  display: block;
  white-space: pre;
}

.code .c-comment {
  color: var(--text-invert-label);
  font-size: 11.5px;
}

.code .c-cmd {
  color: #e6e9ee;
}

.code .c-out {
  color: #7dd3a0;
}

/* ===== blocks.css ===== */
/* ============================================================
   blocks.css —— 全站重复的块：站头 / 页脚 / Hero / 内页页头 / CTA 条
   ============================================================ */

/* ---------------- 站头 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-7);
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9.5px;
  background: var(--brand);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  padding-bottom: 1px;
}

.brand__word {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  color: var(--brand-ink);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.7px;
  margin: 4px auto;
  border-radius: 1px;
  background: var(--text);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  /* 没有 JS 时导航保持展开（静态、可换行），不做成死入口 */
  html.js .site-header__right {
    display: none;
  }

  html.js .site-header__right[data-open="true"] {
    display: flex;
    position: absolute;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-4);
    padding: 8px var(--gutter) 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(22, 24, 29, 0.35);
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 13px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-header__right .btn {
    width: 100%;
    margin-top: var(--sp-2);
  }
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-invert-soft);
  padding-block: 72px 34px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.site-footer__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-8);
}

.footer-brand {
  flex: 0 1 360px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer-brand .brand__word {
  font-size: 18px;
  color: var(--text-invert);
}

.footer-brand .brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8.5px;
  font-size: 17px;
}

.footer-tagline {
  font-size: 13.5px;
  line-height: 24px;
  color: var(--text-invert-soft);
}

.footer-license {
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-invert-soft);
}

.footer-links {
  display: flex;
  gap: 76px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-invert-label);
}

.footer-col a,
.footer-col span {
  font-size: 13px;
  color: var(--text-invert-link);
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-mark {
  position: absolute;
  left: 640px;
  top: 0;
  font-size: 100px;
  line-height: 140px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
}

.site-footer__divider {
  height: 1px;
  background: var(--line-dark-soft);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: 12px;
  color: var(--text-invert-label);
}

@media (max-width: 1100px) {
  .footer-mark {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-footer {
    padding-block: 56px 30px;
    gap: var(--sp-8);
  }

  .site-footer__top {
    flex-direction: column;
    gap: var(--sp-8);
  }

  .footer-brand {
    flex: 1 1 auto;
  }

  .footer-links {
    gap: var(--sp-8);
    flex-wrap: wrap;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
}

/* ---------------- 首页 Hero ---------------- */
.hero {
  background: var(--paper);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-9);
  padding-block: 88px 96px;
}

.hero__copy {
  flex: 0 0 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: 17px;
  line-height: 31px;
  color: var(--text-body);
}

.hero__trust {
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 1240px) {
  .hero__copy {
    flex: 1 1 auto;
  }
}

@media (max-width: 1080px) {
  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-8);
    padding-block: 56px 64px;
  }

  .hero__visual {
    transform: none;
  }
}

@media (max-width: 600px) {
  .hero__inner {
    padding-block: 40px 48px;
  }

  .hero__lead {
    font-size: 15px;
    line-height: 27px;
  }
}

/* ---------------- 内页页头 ---------------- */
.page-hero {
  padding-block: 64px 60px;
}

.page-hero__inner {
  display: flex;
  align-items: center;
  gap: 84px;
}

.page-hero__copy {
  flex: 0 1 616px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.page-hero__title {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: -0.02em;
}

.page-hero__lead {
  font-size: 16px;
  line-height: 29px;
  color: var(--text-body);
}

.page-hero__meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 1080px) {
  .page-hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-8);
  }

  .page-hero__copy {
    flex: 1 1 auto;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding-block: 40px 36px;
  }
}

/* ---------------- CTA 条 ---------------- */
.cta {
  background: var(--brand-surface);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  padding-block: 52px;
}

.cta__copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cta__title {
  font-size: 26px;
  line-height: 38px;
  color: var(--text);
}

.cta__sub {
  font-size: 14px;
  color: var(--text-body);
}

@media (max-width: 860px) {
  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-5);
    padding-block: 40px;
  }
}

/* ===== pages.css ===== */
/* ============================================================
   pages.css —— 页面专属结构：手机视觉 / 设置面板 / 版本卡 /
   编辑器 / 常见问题 / 关于页
   ============================================================ */

/* ================= 首页 Hero 视觉 ================= */
.hero__visual {
  position: relative;
  flex: 0 0 552px;
  height: 700px;
}

.phone {
  position: absolute;
  left: 126px;
  top: 18px;
  width: 300px;
  height: 620px;
  padding: 8px;
  border-radius: 42px;
  background: #14171c;
  box-shadow: 0 34px 60px -26px rgba(20, 23, 28, 0.4),
    0 2px 6px rgba(20, 23, 28, 0.14);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 34px;
  background: var(--surface);
  overflow: hidden;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding-inline: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.phone__tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 44px;
  padding-inline: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.phone__tab--active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.phone__tab--active i {
  display: block;
  width: 16px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand);
}

.phone__feed {
  flex: 1 1 auto;
  padding: 6px 16px 0;
  overflow: hidden;
}

.feed-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-block: 11px;
  border-top: 1px solid #eff2f6;
}

.feed-item:first-child {
  border-top: 0;
}

.feed-item__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: var(--text);
}

.feed-item__excerpt {
  font-size: 11.5px;
  line-height: 18px;
  color: var(--text-muted);
}

.feed-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.feed-item__avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cfdae6;
}

.feed-item__author {
  font-weight: 500;
  color: var(--text-body);
}

/* 被压灰的广告条目（纯装饰，外层 aria-hidden） */
.feed-item--blocked .feed-item__title {
  color: #b9c0ca;
}

.feed-item--blocked .feed-item__excerpt,
.feed-item--blocked .feed-item__meta {
  color: #c3c9d2;
}

.blocked-tag {
  align-self: flex-start;
  padding: 3px 7px;
  border-radius: 4px;
  background: #eff2f6;
  font-size: 9.5px;
  font-weight: 600;
  color: #8a929e;
}

.phone__tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 52px;
  border-top: 1px solid #eff2f6;
  color: var(--text-muted);
}

.phone__tabbar .is-active {
  color: var(--brand);
}

/* 浮动标注 */
.chip-blocked {
  position: absolute;
  left: 434px;
  top: 236px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.chip-blocked i {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand);
}

.ticket {
  position: absolute;
  /* 设计稿给的是 left:70（压住机身左边 31px），那样会切掉第 4 条标题的首字，
     这里收到机身外侧、留 8px 间距，与右侧「已屏蔽 3 条」对称 */
  left: 31px;
  top: 512px;
  display: flex;
  flex-direction: column;
  padding: 11px 16px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.ticket b {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--brand-ink);
}

.ticket span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 1080px) {
  .hero__visual {
    flex: 1 1 auto;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
  }

  .phone {
    position: static;
  }

  .chip-blocked,
  .ticket {
    position: static;
  }
}

/* ================= 图文块（核心功能 A / B） ================= */
.feature {
  display: flex;
  align-items: center;
  gap: var(--sp-11);
}

.feature--reverse {
  flex-direction: row-reverse;
}

/* 文案短、面板长的区块用顶部对齐（设计稿：创作与互动） */
.feature--top {
  align-items: flex-start;
}

.feature__copy {
  flex: 0 0 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--text);
}

.feature__text {
  font-size: 15px;
  line-height: 27px;
  color: var(--text-body);
}

.feature__panel {
  flex: 1 1 628px;
  min-width: 0;
}

@media (max-width: 980px) {
  .feature,
  .feature--reverse {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-6);
  }

  .feature__copy {
    flex: 1 1 auto;
  }
}

/* ================= 设置面板（首页两块演示） ================= */
.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: var(--r-2xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}

.panel--rules {
  gap: 0;
  padding-bottom: 22px;
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}

.panel__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.panel__meta {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.panel__meta--brand {
  color: var(--brand-ink);
}

.panel__note {
  font-size: 11.5px;
  line-height: 19px;
  color: var(--text-muted);
}

/* 分段控件 */
.segmented {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 11px;
  background: #f2f5f7;
}

.segmented span {
  flex: 1 1 0;
  padding: 8px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.segmented .is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.09);
}

.panel__rule {
  height: 1px;
  background: var(--line-soft);
}

/* 滑块行 */
.slider {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.slider__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}

.slider__label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-body);
}

.slider__value {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.slider__track {
  height: 6px;
  border-radius: 3px;
  background: #e8edf2;
  overflow: hidden;
}

.slider__fill {
  height: 6px;
  border-radius: 3px;
  background: var(--brand);
  width: var(--v);
}

/* 屏蔽规则行 */
.rule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 14px;
}

.rule-row + .rule-row {
  border-top: 1px solid var(--line-soft);
}

.rule-row__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}

.rule-row__text--mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.rule-row__status {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ================= 版本卡 ================= */
.version-cards {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.version {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border-radius: var(--r-2xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.version--lite {
  flex: 1 1 600px;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.version--full {
  flex: 0 1 536px;
}

.version__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.version__note {
  font-size: 11.5px;
  color: var(--text-muted);
}

.version__name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}

.version__name {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}

.version__size {
  font-size: 26px;
  font-weight: 600;
  color: var(--brand-ink);
}

.version__size--small {
  font-size: 15px;
  color: #5a6472;
}

.version__desc {
  font-size: 13px;
  line-height: 22px;
  color: var(--text-muted);
}

.version__rule {
  height: 1px;
  background: var(--line-soft);
}

.version__spacer {
  flex: 1 1 auto;
  min-height: 8px;
}

@media (max-width: 900px) {
  .version-cards {
    flex-direction: column;
  }

  .version--lite,
  .version--full {
    flex: 1 1 auto;
  }

  .version {
    padding: 24px;
  }

  .version__name {
    font-size: 26px;
  }

  .version__size {
    font-size: 22px;
  }
}

/* 体积对比条（首页版本区） */
.bar-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.bar-row__label {
  flex: 0 0 130px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-body);
}

.bar-row__track {
  flex: 1 1 auto;
  min-width: 0;
  height: 10px;
  border-radius: 5px;
  background: #e3e8f0;
  overflow: hidden;
}

.bar-row__track i {
  display: block;
  height: 10px;
  border-radius: 5px;
  width: var(--v);
  background: #c2cbd6;
}

.bar-row__value {
  flex: 0 0 80px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.bar-row--lite .bar-row__label {
  font-weight: 600;
  color: var(--text);
}

.bar-row--lite .bar-row__track i {
  background: var(--brand);
}

.bar-row--lite .bar-row__value {
  color: var(--brand-ink);
}

@media (max-width: 600px) {
  .bar-row__label {
    flex: 0 0 88px;
    font-size: 11.5px;
  }

  .bar-row__value {
    flex: 0 0 62px;
    font-size: 11.5px;
  }
}

/* ================= 平台行（首页） ================= */
.platform-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.platform {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  transition: box-shadow 0.15s ease;
}

.platform:hover {
  text-decoration: none;
  box-shadow: inset 0 0 0 1px #cbd3dd;
}

.platform svg {
  flex: 0 0 auto;
  color: var(--text);
}

.platform__name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.platform__detail {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.row-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 760px) {
  .platform-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ================= 功能页：索引卡 ================= */
.index-card {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--r-2xl);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px #e5e8ed;
}

.index-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}

.index-card__title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.index-card__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.index-card__col {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 13.5px;
  color: var(--text-body);
}

.index-card__col b {
  display: inline-block;
  width: 26px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1080px) {
  .index-card {
    flex: 1 1 auto;
  }
}

/* ================= 功能页：推荐方案卡 ================= */
.mode {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.mode--active {
  box-shadow: inset 0 0 0 1px var(--brand);
}

/* 列向 flex 里 inline-flex 的标签会被拉满整行，必须显式收回到内容宽度 */
.mode .tag {
  align-self: flex-start;
}

.mode svg {
  color: var(--text);
}

.mode__name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
}

.mode__desc {
  font-size: 12.5px;
  line-height: 21px;
  color: var(--text-muted);
  /* 四列并排时靠它把标签压到同一高度；单列后见下方断点 */
  min-height: 42px;
}

@media (max-width: 600px) {
  /* 单列时描述一行就够，两行高的占位会挖出一截空洞 */
  .mode__desc {
    min-height: 0;
  }
}

/* ================= 功能页：阅读卡 ================= */
.read-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--paper);
}

/* ================= 功能页：编辑器面板 ================= */
.editor {
  flex: 1 1 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.editor__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.editor__state {
  font-size: 11.5px;
  color: var(--text-muted);
}

.editor__publish {
  padding: 7px 15px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.editor__tabs {
  display: flex;
  gap: 22px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.editor__tab--active {
  font-weight: 600;
  color: var(--text);
}

.editor__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.editor__doc-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 23px;
  color: var(--text);
}

.editor__p {
  font-size: 12.5px;
  line-height: 22px;
  color: var(--text-body);
}

.editor__p--muted {
  color: var(--text-muted);
}

.editor__image {
  display: grid;
  place-items: center;
  height: 62px;
  border-radius: 8px;
  background: #f1f4f8;
  font-size: 11px;
  color: var(--text-muted);
}

.editor__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--text-muted);
}

.editor__tools {
  display: flex;
  gap: 16px;
}

/* ================= 下载页：快速选版卡 ================= */
.pick {
  flex: 0 0 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 26px;
  border-radius: var(--r-2xl);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pick__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}

.pick__title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.pick__meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.pick__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pick__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pick__row-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.pick__row-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.pick__rule {
  height: 1px;
  background: var(--line);
}

.pick__note {
  font-size: 11.5px;
  line-height: 19px;
  color: var(--text-muted);
}

@media (max-width: 1080px) {
  .pick {
    flex: 1 1 auto;
  }
}

/* ================= 下载页：安装步骤 ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.step__num {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-ink);
}

.step__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.step__desc {
  font-size: 12.5px;
  line-height: 21px;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================= 下载页：校验 ================= */
.verify {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-11);
}

.verify__copy {
  flex: 0 0 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.verify__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--text);
}

.verify .code {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 900px) {
  .verify {
    flex-direction: column;
    gap: var(--sp-6);
  }

  .verify__copy {
    flex: 1 1 auto;
  }
}

/* 表内次要说明 */
.tbl-sub {
  font-size: 11.5px;
  line-height: 18px;
  color: var(--text-muted);
}

/* ================= 下载页：版本日志（GitTool 自动同步） ================= *//*   数据来自 tasks.db 的 Release 监控，SSR 渲染 + 前端运行时热更新，
  所以这里的结构在 assets/js/site.js 里有一份镜像，改字段要两边一起改。 */
/* 从「看版本日志 →」跳进来时别被 76px 的吸顶头部压住标题 */
#changelog {
  scroll-margin-top: 92px;
}

.relog {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.relog__item {
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line);
}

.relog__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.relog__ver {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.relog__date {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.relog__dl {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--surface);
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.relog__dl:hover {
  color: var(--brand-deep);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.relog__dl:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.relog__summary {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 23px;
  color: var(--text-body);
}

.relog__points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.relog__points li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 21px;
  color: var(--text-muted);
}

.relog__points li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C3CEDC;
}

.relog__note {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--brand-surface);
  font-size: 12.5px;
  line-height: 20px;
  color: var(--brand-deep);
}

.relog__stamp {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .relog__item {
    padding: 22px 0 20px;
  }

  .relog__ver {
    font-size: 17px;
  }

  .relog__date {
    order: 3;
    margin-left: 0;
    flex: 1 0 100%;
  }

  .relog__dl {
    margin-left: auto;
  }
}

/* ================= 常见问题页 ================= */
.faq-hero {
  padding-block: 62px 26px;
  text-align: center;
}

.faq-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.faq-hero__lead {
  font-size: 15.5px;
  line-height: 28px;
  color: var(--text-body);
  max-width: var(--w-prose);
}

.faq-hero .field {
  width: 560px;
  max-width: 100%;
}

.faq-filters {
  padding-bottom: 30px;
}

.faq-body {
  padding-block: 40px 84px;
  border-top: 1px solid var(--line-soft);
}

.faq {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.toc {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toc__title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.toc__item {
  padding: 0;
  text-align: left;
  font-size: 13px;
  color: #5a6472;
  transition: color 0.15s ease;
}

.toc__item:hover {
  color: var(--text);
}

.toc__item[aria-pressed="true"] {
  color: var(--brand-ink);
  font-weight: 600;
}

.toc__note {
  font-size: 11.5px;
  color: var(--text-muted);
}

.faq__list {
  flex: 1 1 auto;
  min-width: 0;
}

.faq-empty {
  padding: 32px 26px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.faq-cta {
  background: var(--paper);
  padding-block: 56px 62px;
}

.faq-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}

.faq-cta__title {
  font-size: 22px;
  line-height: 1.45;
}

.faq-cta__sub {
  font-size: 13.5px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .toc {
    display: none;
  }

  .faq-hero {
    padding-block: 44px 22px;
  }

  .faq-hero__lead {
    font-size: 14.5px;
    line-height: 26px;
  }

  .faq-body {
    padding-block: 28px 56px;
  }
}

/* ================= 关于页 ================= */
/* 深色区块里的标题层级要整体反色 */
.section--ink .kicker {
  color: var(--text-invert-label);
}

.section--ink .section-head__title {
  color: var(--text-invert);
}

.section--ink .section-head__desc {
  color: var(--text-invert-soft);
}

.overview {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 24px 26px;
  border-radius: var(--r-2xl);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

@media (max-width: 1080px) {
  .overview {
    flex: 1 1 auto;
  }
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--r-xl);
  background: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}

.principle__mark {
  font-size: 40px;
  line-height: 30px;
  font-weight: 700;
  color: var(--brand);
}

.principle__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-invert);
}

.principle__text {
  font-size: 13.5px;
  line-height: 24px;
  color: var(--text-invert-soft);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.stack-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.stack-item__rule {
  height: 2px;
  background: var(--text);
}

.stack-item--accent .stack-item__rule {
  background: var(--brand);
}

.stack-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.stack-item__desc {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-muted);
}

.license-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.license-bar__left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
}

.license-bar__tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.license-bar__text {
  font-size: 12.5px;
  color: var(--text-muted);
}

.license-bar__link {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-ink);
}

@media (max-width: 860px) {
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }
}

/* 内页页头：间距按设计稿逐页对齐（下载 72 / 关于 80） */
.page-hero--download .page-hero__inner {
  gap: 72px;
}

.page-hero--download .page-hero__copy {
  flex: 0 1 620px;
}

.page-hero--about .page-hero__inner {
  gap: 80px;
}

.page-hero--about .page-hero__copy {
  flex: 0 1 640px;
}

.page-hero--about .page-hero__title {
  font-size: 42px;
  line-height: 58px;
}

.page-hero__title span {
  display: block;
}

@media (max-width: 1080px) {
  .page-hero--about .page-hero__title {
    font-size: 34px;
    line-height: 46px;
  }
}

@media (max-width: 600px) {
  .page-hero--about .page-hero__title {
    font-size: 27px;
    line-height: 38px;
  }
}
