/* ============================================================
   设计变量 —— 对齐 biliterminal.cn 官网
   官方色板：B站粉 #fb7299 / 深粉 #e4668a / B站蓝 #23ade5
   默认深色（.dark），可切换浅色；中性色沿用 zinc 阶梯
   ============================================================ */
:root {
  --primary: #fb7299;
  --primary-dark: #e4668a;
  --secondary: #23ade5;

  /* 浅色为基准 */
  --background: 244 244 245;
  --surface: 255 255 255;
  --surface-light: 228 228 231;
  --border: 228 228 231;
  --text: 24 24 27;
  --text-muted: 113 113 122;
  --text-faint: 161 161 170;
  --shadow: 0 1px 2px rgba(24,24,27,.05), 0 10px 30px -14px rgba(24,24,27,.14);
  --phone-frame: #d4d4d8;
  --radius: 18px;
  --max: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}
.dark {
  --background: 18 18 18;
  --surface: 24 24 27;
  --surface-light: 39 39 42;
  --border: 39 39 42;
  --text: 228 228 231;
  --text-muted: 161 161 170;
  --text-faint: 113 113 122;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px -16px rgba(0,0,0,.7);
  --phone-frame: #3f3f46;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: rgb(var(--background));
  color: rgb(var(--text));
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

img { max-width: 100%; display: block; border: 0; }
a { color: var(--primary); text-decoration: none; transition: opacity .2s var(--ease); }
a:hover { opacity: .78; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--background) / .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav.scrolled { border-bottom-color: rgb(var(--border)); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: rgb(var(--text)); letter-spacing: .2px; }
.brand:hover { opacity: 1; }
/* 品牌标记复刻应用图标：B站粉底 + 电视/终端轮廓 */
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px -6px rgba(251,114,153,.75);
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 14px; color: rgb(var(--text-muted)); padding: 8px 13px; border-radius: 9px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { background: rgb(var(--surface-light)); color: rgb(var(--text)); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
/* 明暗切换按钮 —— 与官网一致的「主题切换」心智 */
.theme-btn {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center;
  background: rgb(var(--surface)); color: rgb(var(--text-muted));
  border: 1px solid rgb(var(--border));
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .ico-moon { display: none; }
.dark .theme-btn .ico-sun { display: none; }
.dark .theme-btn .ico-moon { display: block; }
.nav-cta {
  font-size: 14px; font-weight: 700; color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(251,114,153,.8);
  white-space: nowrap;
}
.nav-cta:hover { opacity: .92 !important; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  padding: 78px 0 88px;
}
/* 背景光晕：B站粉 + B站蓝，呼应官网双主色 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(880px 420px at 84% -10%, rgba(251,114,153,.20), transparent 64%),
    radial-gradient(680px 400px at 2% 106%, rgba(35,173,229,.14), transparent 62%);
}
.dark .hero::before {
  background:
    radial-gradient(880px 420px at 84% -10%, rgba(251,114,153,.16), transparent 64%),
    radial-gradient(680px 400px at 2% 106%, rgba(35,173,229,.12), transparent 62%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: rgba(251,114,153,.10); border: 1px solid rgba(251,114,153,.30);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(251,114,153,.20); }

h1.title { font-size: clamp(34px, 5vw, 56px); line-height: 1.16; margin: 0 0 18px; font-weight: 900; letter-spacing: -.02em; }
h1.title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(15px, 1.5vw, 17px); color: rgb(var(--text-muted)); margin: 0 0 30px; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn svg { flex: 0 0 auto; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 28px -12px rgba(251,114,153,.9);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(251,114,153,.95); opacity: 1; }
.btn-ghost { color: rgb(var(--text)); background: rgb(var(--surface)); border-color: rgb(var(--border)); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); opacity: 1; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: 12.5px; font-weight: 600; color: rgb(var(--text-muted));
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border));
  padding: 5px 12px; border-radius: 8px;
}

/* Hero 表盘（复刻官网的圆角大方图风格，此处为方形手表屏） */
.hero-art { display: flex; justify-content: center; align-items: center; gap: 18px; }
.phone {
  width: 208px; flex: 0 0 auto; border-radius: 30px; overflow: hidden;
  border: 6px solid var(--phone-frame); background: var(--phone-frame);
  box-shadow: var(--shadow);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.phone.tilt-a { transform: rotate(-4deg) translateY(14px); }
.phone.tilt-b { transform: rotate(4deg) translateY(-10px); z-index: 2; }

/* ============ 通用区块 ============ */
section { padding: 80px 0; }
.section-soft { background: rgb(var(--surface)); border-top: 1px solid rgb(var(--border)); border-bottom: 1px solid rgb(var(--border)); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-tag {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
h2.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; margin: 0 0 14px; letter-spacing: -.015em; }
.section-desc { color: rgb(var(--text-muted)); font-size: 16px; margin: 0; }

/* ============ 核心功能（图文交错） ============ */
.feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; align-items: center; margin-bottom: 84px; }
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-media { order: 1; }

.feature-media { display: flex; justify-content: center; }
.feature-media .frame {
  width: 258px; border-radius: 28px; overflow: hidden;
  border: 6px solid var(--phone-frame); background: var(--phone-frame);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease);
}
.feature-media .frame:hover { transform: translateY(-6px) scale(1.015); }
.feature-media .frame img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

.feature-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  color: var(--primary); background: rgba(251,114,153,.10);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
h3.feature-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; margin: 0 0 12px; letter-spacing: -.01em; }
.feature-text p { color: rgb(var(--text-muted)); margin: 0 0 18px; font-size: 15.5px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 26px; font-size: 15px; color: rgb(var(--text-muted)); }
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 3px rgba(251,114,153,.16);
}
.feature-list li strong { color: rgb(var(--text)); font-weight: 700; }

/* ============ 官方宣传图 ============ */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.promo-card {
  margin: 0; border-radius: 16px; overflow: hidden;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border));
  box-shadow: var(--shadow);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.promo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251,114,153,.45);
  box-shadow: 0 22px 48px -20px rgba(251,114,153,.42);
}
.promo-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.promo-note { margin: 24px 0 0; text-align: center; font-size: 13px; color: rgb(var(--text-faint)); }

@media (max-width: 760px) {
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .promo-note { margin-top: 18px; font-size: 12.5px; }
}

/* ============ 技术特点 ============ */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tech-card {
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.tech-card:hover { transform: translateY(-4px); border-color: rgba(251,114,153,.45); box-shadow: 0 18px 44px -18px rgba(251,114,153,.34); }
.tech-ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(251,114,153,.16), rgba(230,102,138,.10));
  color: var(--primary); margin-bottom: 16px;
}
.tech-ico svg { width: 22px; height: 22px; }
.tech-card h4 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.tech-card p { margin: 0; font-size: 14.5px; color: rgb(var(--text-muted)); }
.tech-card code, .way code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
  background: rgb(var(--surface-light)); border: 1px solid rgb(var(--border));
  border-radius: 6px; padding: 1px 6px; color: var(--primary);
}

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 46px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); }
.stat b {
  display: block; font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 13.5px; color: rgb(var(--text-faint)); font-weight: 500; }

/* ============ 下载区 ============ */
.download-card {
  display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 44px; align-items: center;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border));
  border-radius: 24px; padding: 44px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.download-card::before {
  content: ""; position: absolute; inset: -140px -140px auto auto; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(251,114,153,.16), transparent 68%);
  pointer-events: none;
}
.download-card > * { position: relative; z-index: 1; }

/* 版本徽标行 —— 对齐官网「最新版」提示 */
.ver-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ver-pill {
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .04em;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 4px 11px; border-radius: 999px;
}
.ver-num { font-size: 13.5px; font-weight: 700; color: rgb(var(--text-muted)); font-family: ui-monospace, Menlo, Consolas, monospace; }
.ver-date { font-size: 12.5px; color: rgb(var(--text-faint)); }
.ver-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin: 0 0 12px; letter-spacing: -.02em; }
.ver-desc { color: rgb(var(--text-muted)); font-size: 15.5px; margin: 0 0 24px; }

.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.dl-actions .btn { padding: 12px 24px; }
.btn-soft {
  color: rgb(var(--text)); background: rgb(var(--surface-light));
  border-color: rgb(var(--border));
}
.btn-soft:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); opacity: 1; }

.arch-note { font-size: 13px; color: rgb(var(--text-faint)); line-height: 1.75; }
.arch-note b { color: rgb(var(--text-muted)); }
.arch-note code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
  background: rgb(var(--surface-light)); border: 1px solid rgb(var(--border)); border-radius: 5px; padding: 1px 5px;
}

/* ---------- 下载源切换 ---------- */
.channel-box {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0 0 18px; padding: 10px 14px;
  background: rgb(var(--surface-light)); border: 1px solid rgb(var(--border));
  border-radius: 10px; font-size: 13px;
}
.channel-label { color: rgb(var(--text-faint)); flex: none; }
.channel-switch { display: inline-flex; border: 1px solid rgb(var(--border)); border-radius: 8px; overflow: hidden; flex: none; }
.channel-switch button {
  font: inherit; font-size: 12.5px; line-height: 1; cursor: pointer;
  padding: 8px 13px; border: 0; background: transparent; color: rgb(var(--text-muted));
  transition: background .18s ease, color .18s ease;
}
.channel-switch button + button { border-left: 1px solid rgb(var(--border)); }
.channel-switch button:hover { background: rgb(var(--surface)); color: rgb(var(--text)); }
.channel-switch button.active { background: var(--primary); color: #fff; font-weight: 600; }
.channel-note { color: rgb(var(--text-faint)); line-height: 1.5; }

@media (max-width: 560px) {
  .channel-box { gap: 8px; padding: 10px 12px; }
  .channel-note { flex-basis: 100%; font-size: 12px; }
}

/* ---------- 安装包清单 ---------- */
.dl-list {
  margin-top: 26px; background: rgb(var(--surface)); border: 1px solid rgb(var(--border));
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.dl-list-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.dl-list-head h4 { margin: 0; font-size: 16px; font-weight: 800; }
.dl-list-head p { margin: 0; font-size: 13px; color: rgb(var(--text-faint)); }
/* 数据来源标记：静态快照 / 已同步 */
.sync-tag {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: rgb(var(--text-faint)); background: rgb(var(--surface-light));
  border: 1px solid rgb(var(--border));
}
.dl-list[data-state="live"] .sync-tag { color: #fff; background: var(--secondary); border-color: var(--secondary); }
.dl-list[data-state="error"] .sync-tag { color: var(--primary); border-color: rgba(251,114,153,.5); background: rgba(251,114,153,.10); }

/* ---------- 设备识别结果框 ---------- */
.dev-box {
  background: linear-gradient(135deg, rgba(35,173,229,.10), rgba(251,114,153,.08));
  border: 1px solid rgba(35,173,229,.30);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 18px;
}
.dev-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.dev-ico { width: 16px; height: 16px; color: var(--secondary); flex: 0 0 auto; }
.dev-title { font-size: 13px; font-weight: 800; color: rgb(var(--text)); }
.dev-arch {
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--secondary), #1a8fbf);
  padding: 2px 10px; border-radius: 999px;
}
.dev-arch:empty { display: none; }
.dev-text { margin: 0; font-size: 13.5px; color: rgb(var(--text-muted)); line-height: 1.7; }
/* 加载中：文字用脉冲提示，避免看起来像卡住 */
.dev-box[data-state="loading"] .dev-text { opacity: .7; }

/* 清单里被推荐的安装包行 */
.dl-row.recommended {
  background: rgba(35,173,229,.10);
  box-shadow: inset 3px 0 0 var(--secondary);
}
.dl-row.recommended .dl-name { font-weight: 700; }
.dl-row.recommended .dl-size::after {
  content: "推荐"; display: inline-block; margin-left: 8px;
  font-size: 10.5px; font-weight: 800; color: #fff;
  background: var(--secondary); border-radius: 4px; padding: 1px 5px;
  vertical-align: middle;
}
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: var(--primary); text-decoration: underline; font-weight: 600;
}
.link-btn:hover { opacity: .78; }

.dl-table { display: grid; gap: 2px; }
.dl-row {
  display: grid; grid-template-columns: minmax(0,2.1fr) .8fr .7fr minmax(0,1.5fr);
  gap: 12px; align-items: center;
  padding: 11px 14px; border-radius: 10px;
  color: rgb(var(--text)); font-size: 14px;
  transition: background .18s var(--ease);
}
a.dl-row:hover { background: rgba(251,114,153,.08); opacity: 1; }
.dl-row-head {
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: rgb(var(--text-faint)); padding-bottom: 8px; border-bottom: 1px solid rgb(var(--border)); border-radius: 0;
}
.dl-name { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.dl-variant {
  font-size: 12px; font-weight: 700; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 3px 0; border-radius: 6px;
}
.dl-variant.coexist { background: linear-gradient(135deg, var(--secondary), #1a8fbf); }
.dl-size { color: rgb(var(--text-muted)); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.dl-md5 {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  color: rgb(var(--text-faint)); word-break: break-all;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.dl-list.show-md5 .dl-md5 { opacity: 1; }
.dl-foot { margin: 16px 0 0; font-size: 12.5px; color: rgb(var(--text-faint)); line-height: 1.75; }
.dl-foot code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  background: rgb(var(--surface-light)); border: 1px solid rgb(var(--border)); border-radius: 5px; padding: 1px 5px;
}

/* ---------- 更新日志 ---------- */
.changelog {
  margin-top: 22px; background: rgb(var(--surface)); border: 1px solid rgb(var(--border));
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.changelog h4 { margin: 0 0 16px; font-size: 16px; font-weight: 800; }
.changelog ol { margin: 0; padding-left: 22px; display: grid; gap: 9px; }
.changelog li { font-size: 14.5px; color: rgb(var(--text-muted)); line-height: 1.65; }
.changelog li strong { color: rgb(var(--text)); }
.changelog-note { margin: 18px 0 0; font-size: 12.5px; color: rgb(var(--text-faint)); line-height: 1.7; }

/* 官网风格：官方站点引流卡片 */
.official-card {
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(150deg, rgba(251,114,153,.12), rgba(35,173,229,.10));
  border: 1px solid rgba(251,114,153,.28);
  border-radius: 18px; padding: 26px;
}
.official-card h4 { margin: 0; font-size: 16px; font-weight: 800; }
.official-card p { margin: 0; font-size: 13.5px; color: rgb(var(--text-muted)); line-height: 1.7; }
.official-card .host {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  color: var(--primary); font-weight: 700; word-break: break-all;
}
.official-card .host svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* 安装四步 */
.way-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 34px; }
.way { background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.way .num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: rgba(251,114,153,.12); color: var(--primary); font-weight: 900; font-size: 14px; margin-bottom: 12px;
}
.way h4 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.way p { margin: 0; font-size: 14.5px; color: rgb(var(--text-muted)); }

/* ============ 页脚 ============ */
footer { background: rgb(var(--surface)); border-top: 1px solid rgb(var(--border)); padding: 60px 0 34px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgb(var(--border)); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { font-weight: 800; font-size: 16px; color: rgb(var(--text)); }
.footer-desc { color: rgb(var(--text-muted)); font-size: 13.5px; line-height: 1.75; margin: 0; max-width: 34em; }
.footer-col h5 { font-size: 14px; font-weight: 700; margin: 0 0 16px; color: rgb(var(--text)); letter-spacing: .02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: rgb(var(--text-muted)); font-size: 13.5px; }
.footer-col a:hover { color: var(--primary); opacity: 1; }
.footer-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; color: rgb(var(--text-faint)); font-size: 13px; }
.footer-bottom .disclaimer { max-width: 62em; line-height: 1.7; }

/* ============ 入场动画 ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: -1; }
  .phone { width: 166px; }
  .feature { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .feature.reverse .feature-text, .feature.reverse .feature-media { order: 0; }
  .feature-media .frame { width: 218px; }
  .download-card { grid-template-columns: 1fr; gap: 30px; padding: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section { padding: 62px 0; }
  .hero { padding: 54px 0 66px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero-art { gap: 12px; }
  .phone { width: 130px; border-width: 4px; border-radius: 22px; }
  .download-card { padding: 26px; border-radius: 20px; }
  .dl-list, .changelog { padding: 20px; }
  /* 窄屏把清单折成两行：文件名 + 版本/大小，MD5 独立一行 */
  .dl-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; }
  .dl-row-head { display: none; }
  .dl-name { grid-column: 1 / -1; }
  .dl-variant { width: 62px; }
  .dl-size { text-align: right; }
  .dl-md5 { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 52px 0; }
}
@media (max-width: 420px) {
  .phone { width: 114px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .dl-actions .btn { flex: 1 1 100%; justify-content: center; }
}


/* ============================================================
   子页面（功能说明 / 常见问题 / 更新日志）
   ============================================================ */
.page-head { padding: 54px 0 38px; border-bottom: 1px solid rgb(var(--border)); }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(29px, 4.1vw, 44px); font-weight: 900; margin: 0 0 16px; letter-spacing: -.02em; }
.page-head p { color: rgb(var(--text-muted)); font-size: 16.5px; max-width: 46em; margin: 0; }
.breadcrumb { font-size: 13.5px; color: rgb(var(--text-faint)); margin-bottom: 18px; }
.breadcrumb a { color: rgb(var(--text-muted)); }
.breadcrumb a:hover { color: var(--primary); }

/* 功能分组 */
.feat-group { margin-bottom: 54px; }
.feat-group:last-child { margin-bottom: 0; }
.feat-group > h2 {
  font-size: clamp(20px, 2.5vw, 25px); font-weight: 900; margin: 0 0 10px;
  display: flex; align-items: center; gap: 12px;
}
.feat-group > h2 .num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 14px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.feat-group > p.gdesc { color: rgb(var(--text-faint)); font-size: 14.5px; margin: 0 0 22px; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.feat-list li { background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 14px; padding: 17px 19px; }
.feat-list li b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 7px; }
.feat-list li span { font-size: 14px; color: rgb(var(--text-muted)); line-height: 1.68; }
.feat-list code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: rgb(var(--surface-light)); border: 1px solid rgb(var(--border)); border-radius: 5px; padding: 1px 5px; color: var(--primary); }

/* 常见问题 */
.faq-item { background: rgb(var(--surface)); border: 1px solid rgb(var(--border)); border-radius: 14px; padding: 22px 24px; margin-bottom: 13px; }
.faq-item h3 { font-size: 16.5px; font-weight: 800; margin: 0 0 11px; padding-left: 30px; position: relative; }
.faq-item h3::before {
  content: "Q"; position: absolute; left: 0; top: -1px;
  width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.faq-item p { margin: 0 0 10px; font-size: 15px; color: rgb(var(--text-muted)); line-height: 1.78; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item ul { margin: 0 0 10px; padding-left: 22px; }
.faq-item li { font-size: 15px; color: rgb(var(--text-muted)); line-height: 1.78; margin-bottom: 5px; }
.faq-item code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: rgb(var(--surface-light)); border: 1px solid rgb(var(--border)); border-radius: 5px; padding: 1px 6px; color: var(--primary); }
.faq-item strong { color: rgb(var(--text)); font-weight: 700; }

/* 更新日志 */
.cl-entry { border-left: 2px solid rgb(var(--border)); padding: 0 0 34px 26px; position: relative; margin-left: 7px; }
.cl-entry:last-child { padding-bottom: 0; border-left-color: transparent; }
.cl-entry::before {
  content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgb(var(--background));
}
.cl-entry h3 { font-size: 19px; font-weight: 900; margin: 0 0 5px; }
.cl-entry .date { font-size: 13px; color: rgb(var(--text-faint)); margin: 0 0 15px; }
.cl-entry ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cl-entry li { position: relative; padding-left: 20px; font-size: 14.5px; color: rgb(var(--text-muted)); line-height: 1.72; }
.cl-entry li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--text-faint)); }

/* 子页面底部 CTA */
.page-cta { text-align: center; padding: 54px 0 8px; }
.page-cta h2 { font-size: clamp(21px, 2.9vw, 29px); font-weight: 900; margin: 0 0 12px; }
.page-cta p { color: rgb(var(--text-muted)); margin: 0 0 24px; }
.page-cta .btn { padding: 12px 26px; }

@media (max-width: 760px) {
  .page-head { padding: 38px 0 28px; }
  .faq-item { padding: 18px 18px; }
  .cl-entry { padding-left: 20px; }
}
