/* ===== 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;
  }
}

/* ===== 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);
  }
}

/* ===== home.css ===== */
/* ============================================================
   home.css — Hero / 天气源带 / Bento / 昼夜带 / 隐私 / 开源 / CTA
   ============================================================ */

/* ———————————————————— Hero ———————————————————— */
.hero {
  padding-block: var(--sp-6) var(--sp-7);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 524px;
  gap: var(--sp-5);
  align-items: center;
}

.hero__body {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 12em;
}

.hero__lead {
  max-width: 32em;
  font-size: var(--fs-lead);
  line-height: 1.85;
  color: var(--text-lead);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 756px;
}

.hero__phone {
  width: 336px;
  padding: 10px;
  border-radius: 46px;
}

.hero__phone img {
  border-radius: 38px;
}

.hero__chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chip {
  position: absolute;
  display: grid;
  gap: 3px;
  padding: 13px 18px 13px 16px;
  border-radius: var(--r-chip);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--elev-2);
}

.chip__label {
  font-size: var(--fs-3xs);
  color: var(--text-muted);
}

.chip__value {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.chip__row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.chip__unit {
  font-size: var(--fs-2xs);
  color: var(--good-ink);
}

.chip--rain {
  top: 34px;
  right: -6px;
}

.chip--aqi {
  top: 46%;
  left: -10px;
}

.chip--pollen {
  right: -16px;
  bottom: 24%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip--pollen .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fair);
  flex: none;
}

.chip--pollen .chip__label {
  display: block;
  color: #0e2a36;
  font-size: var(--fs-2xs);
}

.chip__sub {
  display: block;
  margin-top: 1px;
  font-size: var(--fs-3xs);
  color: var(--text-muted);
}

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
  .hero__visual {
    min-height: 660px;
  }
  .hero__phone {
    width: 300px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-block: var(--sp-4) var(--sp-6);
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
  }
  .hero__visual {
    min-height: 0;
    gap: var(--sp-2);
  }
  .hero__phone {
    width: min(300px, 76vw);
  }
  .hero__chips {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    pointer-events: auto;
  }
  .chip {
    position: static;
    padding: 9px 14px;
  }
  .chip__value {
    font-size: 18px;
  }
}

/* ———————————————————— 天气源带 ———————————————————— */
.sources-band {
  padding-block: 44px 52px;
}

.sources-band__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
}

.sources-band__label {
  flex: none;
  display: grid;
  gap: 8px;
  max-width: 16em;
}

.sources-band__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #0a2430;
}

.sources-band__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .sources-band__inner {
    flex-direction: column;
    gap: var(--sp-3);
  }
}

/* ———————————————————— 能力 Bento ———————————————————— */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-3);
}

.bento__cell {
  grid-column: span 4;
}

.bento__cell--wide {
  grid-column: span 8;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 28px 28px 24px;
}

.feature-card--tight {
  gap: 14px;
  padding: 26px;
}

.feature-card__title {
  font-size: var(--fs-t);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.feature-card__note {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-body);
}

.feature-card__foot {
  margin-top: auto;
}

.feature-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card__head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

/* 趋势图 */
.chart {
  width: 100%;
  height: auto;
  margin-top: 4px;
}

.chart__axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  color: var(--text-muted);
}

/* 分钟级降水柱 */
.rain-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
  margin-top: 4px;
}

.rain-bars span {
  flex: 1;
  max-width: 12px;
  border-radius: 6px;
  background: #8cc4de;
}

.rain-bars span:nth-child(1) { height: 15%; }
.rain-bars span:nth-child(2) { height: 23%; }
.rain-bars span:nth-child(3) { height: 34%; }
.rain-bars span:nth-child(4) { height: 56%; }
.rain-bars span:nth-child(5) { height: 72%; background: var(--brand); }
.rain-bars span:nth-child(6) { height: 62%; }
.rain-bars span:nth-child(7) { height: 42%; }
.rain-bars span:nth-child(8) { height: 31%; }
.rain-bars span:nth-child(9) { height: 48%; }
.rain-bars span:nth-child(10) { height: 64%; }
.rain-bars span:nth-child(11) { height: 39%; }
.rain-bars span:nth-child(12) { height: 20%; }

.big-number {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.big-number b {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-ink);
}

.big-number span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* AQI 环 */
.gauge-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 4px auto 2px;
}

.gauge {
  width: 118px;
  height: 118px;
}

.aqi-value {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.aqi-value b {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.aqi-value span {
  font-size: var(--fs-2xs);
  color: var(--good-ink);
}

/* 花粉行 */
.pollen {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.pollen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-inline: 12px;
  font-size: var(--fs-sm);
  color: #0e2a36;
}

.pollen-row + .pollen-row {
  margin-top: 0;
}

.pollen-row__name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pollen-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.pollen-row__level {
  font-size: var(--fs-xs);
}

.pollen-row--fair .dot { background: var(--fair); }
.pollen-row--fair .pollen-row__level { color: var(--fair-ink); }
.pollen-row--good .dot { background: var(--good); }
.pollen-row--good .pollen-row__level { color: var(--good-ink); }

/* 16 天柱 */
.days-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 56px;
}

.days-bars span {
  width: 14px;
  border-radius: 7px;
  background: #5b5fa8;
}

.days-bars span:nth-child(even) {
  background: #9295cd;
}

.days-bars span:nth-child(1) { height: 30px; }
.days-bars span:nth-child(2) { height: 24px; }
.days-bars span:nth-child(3) { height: 38px; }
.days-bars span:nth-child(4) { height: 20px; }
.days-bars span:nth-child(5) { height: 42px; }
.days-bars span:nth-child(6) { height: 26px; }
.days-bars span:nth-child(7) { height: 34px; }
.days-bars span:nth-child(8) { height: 18px; }
.days-bars span:nth-child(9) { height: 46px; }
.days-bars span:nth-child(10) { height: 28px; }
.days-bars span:nth-child(11) { height: 36px; }
.days-bars span:nth-child(12) { height: 22px; }
.days-bars span:nth-child(13) { height: 40px; }
.days-bars span:nth-child(14) { height: 24px; }

@media (max-width: 1080px) {
  .bento__cell,
  .bento__cell--wide {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .bento__cell,
  .bento__cell--wide {
    grid-column: span 12;
  }
}

/* ———————————————————— 昼夜对比带 ———————————————————— */
.night {
  padding-block: 12px;
}

.night__panel {
  display: grid;
  gap: 44px;
  padding: 64px;
  border-radius: var(--r-band);
  background: linear-gradient(135deg, #333d87 0%, #1c1f47 100%);
}

.night__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.night__head h2 {
  margin-top: 12px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.night__note {
  max-width: 30em;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: #b9c6dc;
}

.night__shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.night__shot {
  display: grid;
  gap: 16px;
}

.night__shot .phone {
  border-radius: 42px;
}

.night__shot .phone img {
  border-radius: 34px;
}

.night__shot h3 {
  font-size: var(--fs-body);
  font-weight: 500;
  color: #fff;
}

.night__shot p {
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--on-dark-mute);
}

@media (max-width: 1024px) {
  .night__panel {
    padding: 48px 40px;
  }
  .night__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
  .night__head h2 {
    font-size: 32px;
  }
  .night__shots {
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .night__panel {
    padding: 36px 24px;
    gap: var(--sp-4);
    border-radius: var(--r-card);
  }
  .night__head h2 {
    font-size: 26px;
  }
  .night__shots {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .night__shot {
    justify-items: center;
    text-align: center;
  }
  .night__shot .phone {
    width: min(280px, 74vw);
  }
}

/* ———————————————————— 隐私三条 ———————————————————— */
.principle {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px;
  border-radius: var(--r-lg);
}

.principle__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--brand-surface);
  color: var(--brand-mark);
}

.principle__icon svg {
  width: 20px;
  height: 20px;
}

.principle h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.principle p {
  font-size: var(--fs-xs);
  line-height: 1.85;
  color: var(--text-body);
}

/* ———————————————————— 开源 ———————————————————— */
.oss__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding: 44px 48px;
  border-radius: var(--r-panel);
}

.oss__body {
  display: grid;
  gap: 12px;
  align-content: start;
}

.oss__title {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.oss__note {
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text-body);
}

.oss__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.oss__tile {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--r-chip);
  background: var(--tint);
}

.oss__tile b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.oss__tile span {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .oss__card {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
    padding: 32px 24px;
  }
  .oss__title {
    font-size: 24px;
  }
}

/* ———————————————————— 下载 CTA ———————————————————— */
.cta {
  padding-block: 8px 24px;
}

.cta__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-5);
  padding: 52px 48px;
  border-radius: var(--r-band);
  background: linear-gradient(120deg, #fce8c7 0%, #f7d4a6 100%);
}

.cta__body {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.cta .eyebrow {
  color: #75501a;
}

.cta__title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #3d2408;
}

.cta__note {
  font-size: var(--fs-body);
  color: #6b4a22;
}

.cta__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cta__chip {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  font-size: var(--fs-2xs);
  color: #5a3a12;
  box-shadow: inset 0 0 0 1px rgba(90, 58, 18, 0.14);
}

.cta__end {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.cta__fine {
  font-size: var(--fs-2xs);
  color: #7a5628;
}

@media (max-width: 900px) {
  .cta__panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 28px;
    gap: var(--sp-3);
    border-radius: var(--r-panel);
  }
  .cta__title {
    font-size: 27px;
  }
  .cta__end {
    justify-items: start;
  }
}
