/* ===== fonts.css ===== */
/* 本地字体：由 .workbuddy/tools/fetch_fonts.py 生成，勿手改 */
/* 仅 latin / latin-ext 子集；中文由 tokens.css 的系统字体栈兜底 */
/* 可变字体按 md5 去重：一族一子集只存一份文件，用 font-weight 区间覆盖多档字重 */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2?v=938c6e80') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2?v=6d36d5bd') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/roboto-mono-latin.woff2?v=877722de') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/roboto-mono-latin-ext.woff2?v=88102464') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== tokens.css ===== */
/* ============================================================
   tokens.css — 设计令牌，全站唯一来源
   只在这里定义颜色 / 字号 / 间距 / 圆角 / 投影 / 宽度
   ============================================================ */
:root {
  /* —— 品牌 —— */
  --brand: #0a5c8c;          /* 只做填充：按钮底、选中片底（白字压得住） */
  --brand-ink: #0a5c8c;      /* 只做文字：浅底链接与强调（7.2:1） */
  --brand-mark: #2b6470;     /* 只做图形：图标描边 */
  --brand-surface: #e5f0f2;  /* 浅色图标底 */
  --tint: #f3f6f7;           /* 胶囊 / 小标签底 */
  --tint-soft: #f8fafb;

  /* —— 文字 · 浅底三级（全部 ≥ 4.5:1）—— */
  --ink: #07202c;
  --text: #12303c;
  --text-lead: #2c4a56;
  --text-body: #3f5e6b;
  --text-muted: #4c6672;

  /* —— 文字 · 深底三级 —— */
  --on-dark: #ffffff;
  --on-dark-body: #c3d0e2;
  --on-dark-mute: #b3c2d8;
  --foot-body: #b6c6d2;
  --foot-mute: #a4b7c4;

  /* —— 语义色：只标数据，不做装饰 —— */
  --good: #45a96b;
  --fair: #e8c547;
  --moderate: #ee8f3c;
  --poor: #e0574a;
  --very: #9c6bc9;
  --extreme: #8a5a3b;
  --good-ink: #2a7a48;       /* 浅底上的“好”字 */
  --fair-ink: #8a6a16;       /* 浅底上的“中”字 */

  /* —— 强调色 —— */
  --accent-ink: #2c5464;     /* 浅底小标签 */
  --mint: #8fd8c4;           /* 深底上的标签与描边图标 */
  --danger-ink: #a65a4e;     /* 白底上可用的“禁忌/错误”文字 */

  /* —— 线 —— */
  --line: rgba(7, 32, 44, 0.07);
  --line-2: rgba(7, 32, 44, 0.1);
  --line-dark: rgba(255, 255, 255, 0.1);

  /* —— 字体 —— */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", var(--font-sans);
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* —— 字号 —— */
  --fs-display: 64px;
  --fs-h1: 56px;
  --fs-h2: 42px;
  --fs-h3: 32px;
  --fs-h4: 26px;
  --fs-t: 23px;
  --fs-lead: 17px;
  --fs-body: 15px;
  --fs-sm: 14px;
  --fs-xs: 13px;
  --fs-2xs: 12px;
  --fs-3xs: 11px;
  --fs-mono: 10px;

  /* —— 间距：8 的倍数 —— */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 120px;

  /* —— 圆角 —— */
  --r-sm: 8px;
  --r-md: 16px;
  --r-chip: 20px;
  --r-card: 24px;
  --r-lg: 28px;
  --r-panel: 36px;
  --r-band: 44px;
  --r-pill: 999px;

  /* —— 投影：不用 1px 硬边框 —— */
  --elev-1: 0 10px 24px -8px rgba(7, 32, 44, 0.1);
  --elev-2: 0 18px 44px -14px rgba(7, 32, 44, 0.1);
  --elev-3: 0 34px 60px -16px rgba(7, 32, 44, 0.14);

  /* —— 宽度：只两档 —— */
  --w-container: 1200px;
  --w-prose: 680px;
  --gutter: 24px;
}

/* 令牌降档：改这一处，全站字号跟着走 */
@media (min-width: 900px) {
  :root {
    --gutter: 32px;
  }
}

@media (max-width: 1080px) {
  :root {
    --fs-display: 48px;
    --fs-h1: 42px;
    --fs-h2: 34px;
    --fs-h3: 28px;
    --fs-h4: 23px;
    --fs-t: 21px;
  }
}

@media (max-width: 640px) {
  :root {
    --fs-display: 36px;
    --fs-h1: 34px;
    --fs-h2: 27px;
    --fs-h3: 24px;
    --fs-h4: 21px;
    --fs-t: 20px;
    --fs-lead: 16px;
  }
}

/* ===== base.css ===== */
/* ============================================================
   base.css — reset + 排版基线 + 焦点可见
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* figure 不在 UA reset 里，默认 margin: 1em 40px 会顶破窄屏 */
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

/* 避免中文段落最后一行只剩一两个字 */
p,
li,
dd {
  text-wrap: pretty;
}

/* 标题多行时均分，不留短尾巴 */
h1,
h2,
h3 {
  text-wrap: balance;
}

/* 卡片内的短段落也均分，末行不会只剩两三个字 */
.card p,
.check-item p,
.story__cols p,
.night__shot p,
.notice p,
.spec__sample {
  text-wrap: balance;
}

ul,
ol {
  list-style: none;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* 筛选/折叠靠 el.hidden，必须压过组件的 display */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-xs);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 10px;
}

/* 等宽数字：表格、哈希、版本号 */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* 锚点跳转不要被 sticky 导航盖住 */
[id] {
  scroll-margin-block-start: 96px;
}

@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 — 容器 / 区块节奏 / 栅格
   只放这里自己定义的东西，组件级断点写回组件所在文件
   ============================================================ */
.container {
  width: 100%;
  max-width: calc(var(--w-container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 区块纵向节奏：组件自己决定用哪一档 */
.section {
  padding-block: var(--sp-6);
}

.section--lg {
  padding-block: var(--sp-7);
}

.section--sm {
  padding-block: var(--sp-5);
}

/* 页面收尾：最后一个 section 到页脚留足呼吸，不再靠各页单独调 */
main > section:last-child {
  padding-bottom: 96px;
}

.grid {
  display: grid;
  gap: var(--sp-3);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 12 栏：Bento 用 */
.grid--12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* 区块头与内容之间的固定节奏 */
.section__body {
  margin-top: var(--sp-4);
}

.pt-0 {
  padding-top: 0;
}

/* 唯一的长文宽度档：一个元素只挂一个宽度类 */
.prose {
  max-width: var(--w-prose);
}

/* 左标签 + 右内容（设计系统页） */
.split {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: start;
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid--12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== components.css ===== */
/* ============================================================
   components.css — 可复用组件
   按钮 / 胶囊 / 徽标 / 卡片 / 图标块 / 手机壳 / 统计
   ============================================================ */

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  /* 描边用 inset 投影，不用 border（1px 实边框会撑高 2px，和实心按钮对不齐） */
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--elev-1);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

.btn--primary:hover {
  box-shadow: 0 12px 26px -10px rgba(10, 92, 140, 0.55);
}

.btn--sm {
  padding: 11px 20px;
  font-size: var(--fs-xs);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* —— 胶囊标签 —— */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--text);
  font-size: var(--fs-sm);
  box-shadow: inset 0 0 0 1px rgba(7, 32, 44, 0.08);
}

.pill--brand {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

.pill--sm {
  padding: 6px 14px;
  font-size: var(--fs-2xs);
}

a.pill {
  transition: background 0.16s ease;
}

a.pill:hover {
  background: #e9eff1;
}

/* —— 徽标 —— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 14px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: #12414d;
  font-size: var(--fs-xs);
  box-shadow: inset 0 0 0 1px rgba(7, 32, 44, 0.06);
}

.badge svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* —— 卡片 —— */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line), var(--elev-2);
}

.card--flat {
  box-shadow: inset 0 0 0 1px var(--line);
}

.card--pad {
  padding: 26px;
}

.card--center {
  align-items: center;
  text-align: center;
}

.card--center .feature-card__head {
  justify-content: center;
}

/* —— 图标块 —— */
.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-surface);
  color: var(--brand-mark);
}

.icon-tile svg {
  width: 20px;
  height: 20px;
}

.icon-tile--sm {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.icon-tile--sm svg {
  width: 18px;
  height: 18px;
}

.icon-tile--good {
  background: #edf5f0;
  color: var(--good-ink);
}

.icon-tile--fair {
  background: #faf5e5;
  color: var(--fair-ink);
}

.icon-tile--violet {
  background: #ededf7;
  color: #4b50a0;
}

/* —— 小标题 —— */
.eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
}

.eyebrow--dark {
  color: var(--mint);
}

/* —— 区块头 —— */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
}

.section-head__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head__note {
  max-width: 28em;
  font-size: var(--fs-body);
  color: var(--text-body);
}

/* —— 手机壳 —— */
.phone {
  position: relative;
  padding: 8px;
  border-radius: 40px;
  background: #05080d;
  box-shadow: var(--elev-3);
}

.phone img {
  width: 100%;
  border-radius: 32px;
}

/* —— 统计组 —— */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat + .stat {
  padding-left: 22px;
  border-left: 1px solid rgba(10, 28, 36, 0.14);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

.stat__label {
  font-size: var(--fs-2xs);
  color: var(--text-body);
}

/* —— 键值对 —— */
.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.kv dd {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink);
}

/* —— 分隔线 —— */
.hairline {
  height: 1px;
  background: var(--line-2);
}

/* —— 整卡可点 —— */
/* 卡片本身当链接用（首页的指南入口）。悬浮只抬一档投影，
   和 .btn 的 translateY(-1px) 同一手法，不做放大或描边变色。 */
a.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line), var(--elev-3);
}

@media (max-width: 900px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
}

@media (max-width: 520px) {
  .stat-row {
    gap: 16px;
  }
  .stat + .stat {
    padding-left: 16px;
  }
  .stat__value {
    font-size: 22px;
  }
}

/* ============================================================
   内容型通用组件
   —— 为什么放在共享层而不是某个分片里：
   下面这些组件被 pages / detail / home 三种分片同时使用
   （spec 用于 features+sources+install+about，compare 用于
   sources+install+geometric，check-item 用于 index+privacy）。
   放进任一分片，另外两种分片的页面就拿不到样式，会退化成
   无列宽的流式排版——一个字都不报错，但版面是垮的。
   分片只该装「页面专属」的区块，跨页复用的必须放这里。
   ============================================================ */

/* ———————————————————— 勾选列表 ———————————————————— */
.check-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.check-item + .check-item {
  margin-top: 22px;
}

.check-item svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--good-ink);
}

.check-item h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
}

.check-item p {
  margin-top: 3px;
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text-body);
}

/* 反向项：与 .check-item 同构，只换颜色与图形语义，不新造列表样式 */
.check-item--no svg {
  color: var(--danger-ink);
}

/* ———————————————————— 左右分栏的步骤区 ———————————————————— */
.how-to {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.how-to__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.how-to__note {
  margin-top: 12px;
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text-body);
}

.step {
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

.step + .step {
  margin-top: 18px;
}

.step__no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand-ink);
}

.step p {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
}

/* ———————————————————— 条状 CTA ———————————————————— */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.cta-strip p {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

/* ———————————————————— 术语解释列表 ———————————————————— */
.spec {
  display: grid;
  padding: 10px 44px 26px;
  border-radius: var(--r-panel);
}

.spec__item {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 32px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.spec__item:first-child {
  border-top: 0;
}

.spec__term {
  display: grid;
  gap: 3px;
  align-content: start;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
}

/* 术语下面挂一行等宽小字：英文名或量纲，给「这是专业指标」一个视觉锚点 */
.spec__term span {
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.spec__desc {
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--text-body);
}

.spec__desc b {
  font-weight: 700;
  color: var(--ink);
}

/* ———————————————————— 排错卡 ———————————————————— */
.trouble {
  display: grid;
  gap: 14px;
}

.trouble__item {
  display: grid;
  gap: 16px;
  padding: 24px 28px;
  border-radius: var(--r-card);
}

.trouble__sym {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.trouble__sym h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.trouble__rows {
  display: grid;
  gap: 9px;
  padding-left: 47px;
}

.trouble__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  font-size: var(--fs-xs);
  line-height: 1.85;
  color: var(--text-body);
}

.trouble__key {
  padding-top: 1px;
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* 「怎么办」这一行的标签用品牌色：扫读时能直接跳过诊断看解法 */
.trouble__row--fix .trouble__key {
  color: var(--brand-ink);
}

/* ———————————————————— 对比表 ———————————————————— */
/* 不用 <table>：表格在中文密排里行高会被拉得很松，且窄屏必然横向溢出 */
.compare {
  display: grid;
  padding: 10px 44px 26px;
  border-radius: var(--r-panel);
}

.compare__row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
  gap: 28px;
  padding-block: 17px;
  border-top: 1px solid var(--line);
}

.compare__row:first-child {
  border-top: 0;
}

.compare__head {
  padding-block: 16px 14px;
}

.compare__head .compare__dim,
.compare__head .compare__cell {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* 表头右侧一列是高亮方（通常是本应用），用品牌色区分 */
.compare__head .compare__cell--accent {
  color: var(--brand-ink);
}

.compare__dim {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
}

.compare__cell {
  font-size: var(--fs-xs);
  line-height: 1.85;
  color: var(--text-body);
}

/* ———————————————————— 问答 ———————————————————— */
.faq {
  display: grid;
  gap: 14px;
}

.faq__item {
  display: grid;
  gap: 10px;
  padding: 24px 28px;
  border-radius: var(--r-card);
}

.faq__q {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

/* Q / A 用等宽字母做标记，比加序号更轻，也不会和 .step 的 01 混淆 */
.faq__q::before {
  content: "Q";
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-ink);
}

.faq__a {
  padding-left: 36px;
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--text-body);
}

.faq__a p + p {
  margin-top: 9px;
}

.faq__a a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ———————————————————— 时间线 ———————————————————— */
.timeline {
  display: grid;
  /* 时间线直接落在白底上（没有卡片边界兜住），满宽会显得右倾且单行过长，
     收窄到接近 --w-prose 的阅读宽度 */
  max-width: 800px;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0 18px 26px;
}

/* 竖线用伪元素画：末项只画到圆点位置，不会拖出一截空线 */
.timeline__item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}

.timeline__item:first-child::before {
  top: 26px;
}

.timeline__item:last-child::before {
  bottom: auto;
  height: 26px;
}

.timeline__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline__year {
  padding-top: 1px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand-ink);
}

.timeline__body h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

.timeline__body p {
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text-body);
}

/* ———————————————————— 内容型组件的断点 ———————————————————— */
@media (max-width: 900px) {
  .how-to {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
  }
  .how-to__title {
    font-size: 24px;
  }
  .spec {
    padding: 6px 24px 18px;
  }
  .spec__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 18px;
  }
}

@media (max-width: 720px) {
  .compare {
    padding: 6px 22px 14px;
  }
  /* 表头在窄屏没有意义：每格自带 data-label 标出它属于哪一列 */
  .compare__head {
    display: none;
  }
  .compare__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    padding-block: 20px;
  }
  .compare__dim {
    font-size: var(--fs-body);
  }
  .compare__cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: var(--fs-3xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
  }
}

@media (max-width: 640px) {
  .trouble__item {
    padding: 20px 18px;
  }
  .trouble__rows {
    padding-left: 0;
  }
  .trouble__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .faq__item {
    padding: 20px 18px;
  }
  .faq__a {
    padding-left: 0;
  }
  .timeline__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding-left: 22px;
  }
}

/* ===== blocks.css ===== */
/* ============================================================
   blocks.css — 全站骨架与首页区块
   站头导航 / 页脚 / Hero / 天气源带 / Bento / 昼夜带 / 隐私 / 开源 / 下载 CTA
   ============================================================ */

/* ———————————————————— 站头 ———————————————————— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  height: 88px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.nav__brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav__brand span {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0b1b24;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  padding-block: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #22404c;
  transition: color 0.16s ease;
}

.nav__link:hover {
  color: var(--brand-ink);
}

.nav__link[aria-current="page"] {
  font-weight: 700;
  color: var(--brand-ink);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__gh {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #22404c;
}

.nav__gh:hover {
  color: var(--brand-ink);
}

.nav__cta {
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

.nav__panel {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding: 8px var(--gutter) 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--elev-2);
}

.nav__panel a {
  display: block;
  padding: 13px 2px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.nav__panel a:last-child {
  border-bottom: 0;
}

@media (max-width: 960px) {
  .nav {
    height: 68px;
  }
  .nav__links,
  .nav__gh {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__panel:not([hidden]) {
    display: block;
  }
}

@media (max-width: 560px) {
  .nav__cta {
    display: none;
  }
  .nav__brand span {
    font-size: 15px;
  }
}

/* ———————————————————— 通用页头 ———————————————————— */
.page-head {
  padding-block: 64px 64px;
}

.page-head__inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.page-head__body {
  flex: 1;
  display: grid;
  gap: 18px;
  justify-items: start;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 14em;
}

.page-head__lead {
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.85;
  color: var(--text-lead);
}

.page-head__phone {
  flex: none;
  width: 300px;
}

/* 居中变体（隐私页） */
.page-head--center {
  padding-block: 76px 56px;
}

.page-head--center .page-head__body {
  justify-items: center;
  text-align: center;
}

.page-head--center h1 {
  max-width: 12em;
}

@media (max-width: 900px) {
  .page-head {
    padding-block: 40px 40px;
  }
  .page-head__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }
  .page-head--center .page-head__inner {
    align-items: center;
  }
  .page-head__phone {
    width: min(260px, 68vw);
    align-self: center;
  }
}

/* 首页与内页共用的区块样式在 home.css，页脚见下方 */

/* ———————————————————— 页脚 ———————————————————— */
.site-footer {
  padding-block: 88px 44px;
  background: #08121a;
  color: var(--foot-body);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer__brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer__brand span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #f2f8fa;
}

.footer__tag {
  margin-top: 18px;
  max-width: 26em;
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--foot-body);
}

.footer__meta {
  margin-top: 10px;
  font-size: var(--fs-2xs);
  color: var(--foot-mute);
}

.footer__col h2 {
  margin-bottom: 14px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mint);
}

.footer__col ul {
  display: grid;
  gap: 14px;
}

.footer__col a {
  font-size: var(--fs-sm);
  color: var(--foot-body);
  transition: color 0.16s ease;
}

.footer__col a:hover {
  color: #fff;
}

.footer__rule {
  height: 1px;
  margin-block: 56px 24px;
  background: var(--line-dark);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-2xs);
  color: var(--foot-mute);
}

@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
  }
  .footer__brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-block: 56px 32px;
  }
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
  }
}

/* ===== pages.css ===== */
/* ============================================================
   pages.css — 功能页 / 天气源页
   ============================================================ */

/* ———————————————————— 功能页 · 14 类矩阵 ———————————————————— */
.matrix {
  display: grid;
  gap: 26px;
  padding: 40px 44px;
  border-radius: var(--r-panel);
}

.matrix__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.matrix__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.matrix__title h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.matrix__tag {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(10, 92, 140, 0.1);
  font-size: var(--fs-3xs);
  font-weight: 500;
  color: var(--brand-ink);
}

.matrix__note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.matrix__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
}

.data-row {
  display: grid;
  grid-template-columns: 3.2ch minmax(0, 1fr);
  gap: 8px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
}

.data-row__no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.9;
}

@media (max-width: 900px) {
  .matrix {
    padding: 28px 24px;
  }
  .matrix__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }
}

@media (max-width: 560px) {
  .matrix__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ———————————————————— 功能页 · 可视化深色区 ———————————————————— */
.viz {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: var(--r-band);
  background: linear-gradient(135deg, #2b3678 0%, #171a3d 100%);
}

.viz__phones {
  display: flex;
  gap: 20px;
}

.viz__phones .phone {
  width: 258px;
  border-radius: 36px;
}

.viz__phones .phone img {
  border-radius: 30px;
}

.viz__body {
  display: grid;
  gap: 26px;
}

.viz__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
}

.viz__list {
  display: grid;
  gap: 20px;
}

.viz__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.viz__item svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--mint);
}

.viz__item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.viz__item p {
  margin-top: 5px;
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--on-dark-mute);
}

@media (max-width: 1080px) {
  .viz {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
    padding: 40px;
  }
  .viz__phones {
    justify-content: center;
  }
  .viz__title {
    font-size: 30px;
  }
}

@media (max-width: 720px) {
  .viz {
    padding: 28px 22px;
    border-radius: var(--r-card);
  }
  .viz__phones .phone {
    width: min(220px, 42vw);
  }
  .viz__title {
    font-size: 24px;
  }
}

/* ———————————————————— 功能页 · 三张能力卡 ———————————————————— */
.cap-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px 26px;
  border-radius: var(--r-lg);
}

.cap-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.cap-card p {
  font-size: var(--fs-xs);
  line-height: 1.85;
  color: var(--text-body);
}

.cap-card__list {
  display: grid;
  gap: 4px;
  font-size: var(--fs-xs);
  line-height: 1.85;
  color: var(--text-muted);
}

/* ———————————————————— 天气源页 ———————————————————— */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 34px;
  padding-block: 8px 44px;
}

.stats-bar__item {
  display: grid;
  gap: 2px;
}

.stats-bar__value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stats-bar__label {
  font-size: var(--fs-xs);
  color: var(--text-body);
}

.stats-bar__sep {
  width: 1px;
  height: 44px;
  background: rgba(10, 28, 36, 0.12);
}

.directory {
  display: grid;
  gap: 28px;
  padding: 40px 44px;
  border-radius: var(--r-panel);
}

.directory__group {
  display: grid;
  gap: 8px;
}

.directory__group h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.directory__group p {
  font-size: var(--fs-sm);
  line-height: 1.9;
  color: var(--text-body);
}

.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  border-radius: 22px;
  background: #0f1a26;
}

.notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--mint);
}

.notice p {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: #d6e2ec;
}

@media (max-width: 900px) {
  .directory {
    padding: 28px 24px;
  }
  .stats-bar {
    gap: 20px;
    padding-block: 8px 32px;
  }
  .stats-bar__sep {
    display: none;
  }
  .stats-bar__value {
    font-size: 30px;
  }
}
