/* =========================================================
   Hyper ROM · SSR 站点样式
   与 GitHub Pulse 深色体系一致：单主色、卡片化、等宽数字
   ========================================================= */

:root {
  --bg: #080c0a;
  --bg-soft: #0a100d;
  --panel: #0e1512;
  --panel-2: #121a16;
  --line: rgba(233, 240, 235, .09);
  --line-strong: rgba(233, 240, 235, .18);
  --text: #e9efe9;
  --muted: #8b968f;
  --muted-2: #7d8a82;
  --accent: #25855e;
  --accent-bright: #2fa06f;
  --accent-soft: rgba(37, 133, 94, .13);
  --positive: #3fbd85;
  --negative: #d9776a;
  --radius: 20px;
  --radius-sm: 12px;
  --mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 78% -10%, rgba(37, 133, 94, .10), transparent 62%),
    radial-gradient(700px 420px at 4% 8%, rgba(37, 133, 94, .05), transparent 60%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-bright); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(47, 160, 111, .32); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #24322b transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #24322b; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e4239; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -.01em; line-height: 1.3; }
h1 { font-size: clamp(26px, 4.4vw, 40px); margin: 0 0 12px; font-weight: 800; }
h2 { font-size: clamp(19px, 2.6vw, 24px); margin: 0 0 12px; font-weight: 700; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.break { word-break: break-all; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 10, .84);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo-mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--accent-soft); color: var(--accent-bright);
  border: 1px solid rgba(37, 133, 94, .28);
}
.logo-text { font-size: 16px; }
.logo-text b { font-weight: 800; }
.logo-sub {
  font-size: 11px; color: var(--muted); padding-left: 8px; margin-left: 2px;
  border-left: 1px solid var(--line-strong);
}
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 7px 11px; border-radius: 9px; color: var(--muted); font-size: 13px;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--panel-2); color: var(--text); }
.repo-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px;
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); white-space: nowrap;
}
.repo-link:hover { border-color: rgba(37, 133, 94, .5); color: var(--text); }
.repo-link .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 8px rgba(63, 189, 133, .8); }

/* ---------- 首屏 ---------- */
.hero {
  display: grid; grid-template-columns: 1.5fr .9fr; gap: 36px;
  align-items: center; padding: 56px 0 40px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--positive);
  box-shadow: 0 0 0 4px rgba(63, 189, 133, .14); animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63, 189, 133, .05); } }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.12; }
.hero h1 span { color: var(--accent-bright); }
.hero-lead { color: var(--muted); font-size: 15px; max-width: 560px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-bright); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(37, 133, 94, .55); color: var(--accent-bright); }
.btn-primary:active, .btn-ghost:active { transform: translateY(1px); }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 0;
}
.hero-stats > div { background: var(--panel); padding: 20px 18px; }
.hero-stats dt { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.hero-stats dd { margin: 0; font-size: 26px; font-weight: 800; font-family: var(--mono); letter-spacing: -.02em; }
.hero-stats dd.small { font-size: 15px; }

/* ---------- 快速答案 ---------- */
.answer-box {
  border: 1px solid rgba(37, 133, 94, .3);
  background: linear-gradient(180deg, rgba(37, 133, 94, .10), rgba(37, 133, 94, .03));
  border-radius: var(--radius); padding: 20px 22px; margin: 8px 0 30px;
}
.answer-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-bright); margin-bottom: 8px;
}
.answer-text { margin: 0; font-size: 15px; color: #dbe6de; }
.answer-facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(37, 133, 94, .2);
}
.answer-facts > div { display: flex; flex-direction: column; gap: 1px; }
.answer-facts dt { font-size: 11px; color: var(--muted); }
.answer-facts dd { margin: 0; font-size: 13px; font-family: var(--mono); }

/* ---------- 区块 ---------- */
.section { margin: 40px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-more { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.section-more:hover { color: var(--accent-bright); }

.page-head { padding: 32px 0 8px; }
.page-head .lead { color: var(--muted); max-width: 760px; font-size: 14.5px; }
.page-head.has-thumb { display: flex; gap: 18px; align-items: flex-start; }
.page-head.has-thumb .ph-body { min-width: 0; flex: 1; }
.ph-thumb {
  flex: none; width: 72px; height: 72px; margin-top: 4px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); padding: 6px;
}
.result-meta { color: var(--muted); font-size: 12.5px; margin: 22px 0 8px; }
.result-meta strong { color: var(--text); font-family: var(--mono); }

.h1-sub { display: block; font-size: 15px; font-weight: 500; color: var(--muted); margin-top: 10px; }

/* ---------- 面包屑 ---------- */
.crumbs { padding-top: 22px; font-size: 12px; color: var(--muted-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-bright); }
.crumbs span[aria-current] { color: var(--text); }

/* ---------- 卡片网格 ---------- */
.dev-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.dev-card {
  display: flex; gap: 13px; align-items: flex-start; min-width: 0;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); transition: border-color .15s, background .15s, transform .12s;
}
.dev-card:hover {
  border-color: rgba(37, 133, 94, .45); background: var(--panel-2);
  transform: translateY(-1px); color: var(--text);
}
.dev-thumb {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line);
  overflow: hidden;
}
.dev-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.dev-thumb-ph { font-size: 20px; font-weight: 800; color: var(--muted-2); }
.dev-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dev-name { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.dev-meta { font-size: 11.5px; color: var(--muted); }
.dev-latest { font-family: var(--mono); font-size: 11.5px; color: var(--accent-bright); overflow-wrap: anywhere; }
.dev-body .dl-count { font-size: 10.5px; }
.dev-en { font-size: 11px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-new {
  flex: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 5px; background: var(--accent-soft);
  color: var(--accent-bright); border: 1px solid rgba(37, 133, 94, .3);
}

.dev-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }

/* ---------- 新鲜度标记 ---------- */
.badge {
  display: inline-block; font-size: 10.5px; line-height: 1.5; font-weight: 600;
  padding: 1px 6px; border-radius: 5px; white-space: nowrap; vertical-align: 2px;
  border: 1px solid transparent;
}
.badge-fresh {
  color: #7ee2b0; background: rgba(37, 133, 94, .18); border-color: rgba(37, 133, 94, .42);
}
/* 表格行内：等宽小字、透明底、细描边 */
.badge-fresh--row {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .02em;
  color: #8fd9b4; background: transparent; border-color: rgba(37, 133, 94, .5);
  padding: 0 4px; border-radius: 4px; vertical-align: 1px;
}
/* 机型卡片：等宽实底、深色字 */
.badge-fresh--card {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .03em;
  color: #06231a; background: #46cc93; border-color: #46cc93;
  border-radius: 4px; padding: 0 5px;
}
/* 页面主标题：无衬线加粗、亮绿渐变实底 + 光晕 */
.badge-fresh--h1 {
  font-family: inherit; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: #04170f; background: linear-gradient(180deg, #6ef2b6, #2fbc84);
  border-color: #2fbc84; border-radius: 6px; padding: 1px 8px;
  box-shadow: 0 0 0 3px rgba(47, 188, 132, .14); vertical-align: 3px;
}
/* 区域卡片：无底、无边框、圆点前缀 */
.badge-fresh--region {
  font-family: inherit; font-size: 10.5px; font-weight: 600;
  color: #a8e6c6; background: none; border-color: transparent;
  padding: 0; border-radius: 0; line-height: 1.4;
}
.bf-dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: #4fd39a; margin-right: 4px; vertical-align: 1px;
  box-shadow: 0 0 0 2px rgba(79, 211, 154, .22);
}
.badge-new {
  color: #ffd479; background: rgba(190, 140, 30, .16); border-color: rgba(190, 140, 30, .38);
}
.h1-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: 4px; }
td .badge { margin-left: 6px; }
.dl-count { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.dl-count-head { display: inline-block; margin: 0 0 0 10px; font-size: 11.5px; vertical-align: 3px; }
.rt-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
/* ---------- 区域 ---------- */
.region-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.region-grid.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.region-tile {
  display: flex; flex-direction: column; gap: 3px;
  padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); transition: border-color .15s, background .15s;
}
.region-tile:hover { border-color: rgba(37, 133, 94, .45); background: var(--panel-2); color: var(--text); }
.rt-name { font-weight: 700; font-size: 14px; }
.rt-tag { font-size: 11px; color: var(--accent-bright); }
.rt-meta { font-size: 11.5px; color: var(--muted); }
.rt-desc { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; margin-top: 4px; }
.rt-latest { font-size: 11px; color: var(--text); margin-top: 4px; word-break: break-all; }
.rt-date { font-size: 10.5px; color: var(--muted-2); }

.region-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.chip {
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line); color: var(--muted); background: var(--panel);
}
.chip:hover { border-color: rgba(37, 133, 94, .45); color: var(--text); }
.chip.is-current { border-color: rgba(37, 133, 94, .6); color: var(--accent-bright); background: var(--accent-soft); }

/* ---------- 系统 / 品牌 / 指南 ---------- */
.chip-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.chip-card {
  display: flex; flex-direction: column; gap: 3px; padding: 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel);
}
.chip-card:hover { border-color: rgba(37, 133, 94, .45); background: var(--panel-2); color: var(--text); }
.cc-name { font-weight: 700; }
.cc-meta { font-size: 11.5px; color: var(--muted); }

.brand-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.brand-tile {
  display: flex; flex-direction: column; gap: 5px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel);
}
.brand-tile:hover { border-color: rgba(37, 133, 94, .45); background: var(--panel-2); color: var(--text); }
.bt-name { font-size: 17px; font-weight: 800; }
.bt-desc { font-size: 12px; color: var(--muted); }
.bt-meta { font-family: var(--mono); font-size: 11px; color: var(--accent-bright); margin-top: 4px; }

.guide-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.guide-card {
  display: flex; flex-direction: column; gap: 6px; padding: 17px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel);
}
.guide-card:hover { border-color: rgba(37, 133, 94, .45); background: var(--panel-2); color: var(--text); }
.gc-title { font-weight: 700; font-size: 14px; line-height: 1.45; }
.gc-desc { font-size: 12px; color: var(--muted); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
caption { text-align: left; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; white-space: nowrap; background: var(--bg-soft);
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(37, 133, 94, .05); }
tbody tr.is-current { background: var(--accent-soft); }
.rom-table td a.mono { color: #cfe9da; }
.rom-table td a.mono:hover { color: var(--accent-bright); }
.data-table td, .data-table th { font-size: 13px; }
.kv-table th { width: 140px; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.tag {
  display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.row-dl { font-size: 12px; color: var(--accent-bright); white-space: nowrap; }

/* ---------- 机型详情 ---------- */
.dev-hero { display: flex; gap: 20px; align-items: center; padding: 30px 0 10px; }
.dev-avatar {
  width: 88px; height: 88px; flex: none; display: grid; place-items: center;
  border-radius: 20px; background: var(--panel); border: 1px solid var(--line);
  overflow: hidden;
}
.dev-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.dev-avatar-ph { font-size: 32px; font-weight: 800; color: var(--muted-2); }
.dev-head h1 { margin-bottom: 6px; }
.dev-alt { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 固件下载 ---------- */
.download-panel {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--panel); padding: 6px 20px 4px; margin: 8px 0 26px;
}
.download-panel > h2 { margin: 16px 0 4px; font-size: 17px; }
.dl-row {
  display: flex; gap: 18px; align-items: center; justify-content: space-between;
  padding: 16px 0; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.dl-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 340px; }
.dl-type { font-weight: 700; font-size: 13.5px; }
.dl-file { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.dl-hint { font-size: 12px; color: var(--muted-2); }
.dl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-note { font-size: 11.5px; color: var(--muted-2); border-top: 1px solid var(--line); padding: 12px 0 14px; margin: 0; }

.two-col { display: grid; grid-template-columns: 1.55fr .9fr; gap: 22px; align-items: start; }
.side-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); padding: 18px;
}
.side-card h2 { font-size: 17px; }
.side-card p, .side-card li { font-size: 12.5px; color: var(--muted); }
.side-card ul { padding-left: 18px; }
.side-link { display: inline-block; font-size: 12.5px; color: var(--accent-bright); margin-top: 6px; }

.version-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0; }
.vn-item {
  display: flex; flex-direction: column; gap: 2px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel);
}
.vn-item:hover { border-color: rgba(37, 133, 94, .45); background: var(--panel-2); color: var(--text); }
.vn-dir { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.vn-date { font-size: 11px; color: var(--muted-2); }
.vn-next { text-align: right; align-items: flex-end; }

.link-list { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.link-list a {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 12.5px; color: var(--muted); background: var(--panel);
}
.link-list a:hover { border-color: rgba(37, 133, 94, .45); color: var(--text); }

.prose { max-width: 820px; min-width: 0; }
.prose h2 { margin-top: 6px; }
.prose p, .prose li { color: #c3cec7; font-size: 14px; overflow-wrap: anywhere; }
.prose .table-wrap { margin: 14px 0 18px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px 22px; margin: 40px 0; }
.faq h2 { font-size: 19px; margin-bottom: 10px; }
.faq-item { border-top: 1px solid var(--line); padding: 11px 0; }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 13.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- 搜索 ---------- */
.search-bar {
  display: flex; gap: 8px; margin: 26px 0 0; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel);
  flex-wrap: wrap;
}
.search-bar input {
  flex: 1 1 220px; min-width: 0; border: 0; background: transparent; padding: 8px 10px; outline: none;
}
.search-bar button {
  padding: 8px 18px; border-radius: 9px; background: var(--accent); color: #fff;
  border: 1px solid var(--accent); cursor: pointer;
}
.search-bar button:hover { background: var(--accent-bright); }
.search-bar .clear { padding: 8px 10px; font-size: 12px; color: var(--muted); align-self: center; }

/* ---------- 分页 ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0; }
.pager a, .pager span {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border-radius: 9px; font-size: 12.5px; border: 1px solid var(--line); background: var(--panel);
}
.pager a:hover { border-color: rgba(37, 133, 94, .5); color: var(--text); }
.pager .is-current { background: var(--accent-soft); border-color: rgba(37, 133, 94, .5); color: var(--accent-bright); }
.pager .pager-gap { border: 0; background: transparent; color: var(--muted); }
.pager .pager-btn { padding: 0 14px; }
.pager .pager-range {
  min-width: 0; height: auto; border: 0; background: transparent; padding: 0 6px;
  font-size: 12px; color: var(--muted); line-height: 34px;
}

/* ---------- 日期网格 ---------- */
.date-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.date-tile {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.date-tile:hover { border-color: rgba(37, 133, 94, .45); color: var(--text); }
.dt-date { font-family: var(--mono); font-size: 12.5px; }
.dt-count { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; background: var(--bg-soft); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px;
  padding: 44px 0 30px;
}
.footer-brand p { font-size: 12px; color: var(--muted); max-width: 300px; }
.footer-meta { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-top: 12px; }
.footer-col h2 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 6px; }
.footer-col a { font-size: 12px; color: var(--muted); }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 16px 0 26px; font-size: 11.5px; color: var(--muted-2);
}
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.error-head h1 { font-size: clamp(30px, 6vw, 54px); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 38px; gap: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px 14px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 2px; padding-bottom: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
  .site-nav a { padding: 8px 9px; min-height: 36px; display: inline-flex; align-items: center; font-size: 12px; white-space: nowrap; }
  .site-nav::-webkit-scrollbar { display: none; }
  .answer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .repo-link { margin-left: auto; }
  .logo-sub { display: none; }
  .hero-stats > div { padding: 16px; }
  .dev-grid, .region-grid, .chip-grid, .brand-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .version-nav { grid-template-columns: 1fr; }
  .vn-next { text-align: left; align-items: flex-start; }
  .dev-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dev-avatar { width: 72px; height: 72px; }
  .kv-table th { width: 110px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-top: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .faq { padding: 16px; }
  .answer-box { padding: 16px; }

  /* 表格转卡片 */
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .table-wrap table { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tbody, .table-wrap tr { display: block; }
  .table-wrap tr {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--panel); margin-bottom: 8px; padding: 6px 12px;
  }
  .table-wrap td, .table-wrap th {
    display: flex; justify-content: space-between; gap: 16px;
    border-bottom: 0; padding: 5px 0; font-size: 12.5px;
  }
  .table-wrap td::before, .table-wrap tbody th::before {
    content: attr(data-label);
    color: var(--muted-2); font-size: 11px; flex: none;
    padding-top: 2px;
  }
  .table-wrap td:not([data-label])::before { content: ""; }
  .kv-table, .kv-table tbody, .kv-table tr { display: block; }
  .kv-table th[scope="row"] { width: auto; border-bottom: 0; }
  .kv-table td { border-bottom: 1px solid var(--line); }
  .kv-table td:last-child { border-bottom: 0; }
}

/* ---------- 全局侧边栏：热门下载榜 ---------- */
.hot-rail {
  max-width: 1100px;
  margin: 26px auto 30px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.hot-rail h2 { margin: 0 0 10px; font-size: 14px; letter-spacing: .02em; }
.hot-block + .hot-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.hot-rail h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.hot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.hot-item {
  display: flex; align-items: baseline; gap: 8px;
  padding: 4px 7px; border-radius: 7px; border-left: 2px solid transparent;
  font-size: 12.5px; line-height: 1.5;
}
.hot-item:hover { background: rgba(255, 255, 255, .035); }
.hr-rank { flex: none; width: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.hr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.hr-name:hover { color: var(--accent-bright); }
.hr-num { flex: none; font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.hot-item.rank-1 {
  border-left-color: #ffc65c;
  background: linear-gradient(90deg, rgba(255, 198, 92, .17), rgba(255, 198, 92, .02));
}
.hot-item.rank-1 .hr-rank { color: #ffc65c; font-weight: 700; }
.hot-item.rank-1 .hr-name { color: #ffe1a8; font-weight: 700; }
.hot-item.rank-2 {
  border-left-color: #cdd7e3;
  background: linear-gradient(90deg, rgba(205, 215, 227, .15), rgba(205, 215, 227, .02));
}
.hot-item.rank-2 .hr-rank { color: #cdd7e3; font-weight: 700; }
.hot-item.rank-2 .hr-name { color: #e6edf5; font-weight: 600; }
.hot-item.rank-3 {
  border-left-color: #e08b50;
  background: linear-gradient(90deg, rgba(224, 139, 80, .16), rgba(224, 139, 80, .02));
}
.hot-item.rank-3 .hr-rank { color: #e08b50; font-weight: 700; }
.hot-item.rank-3 .hr-name { color: #f3c9ab; font-weight: 600; }
.hot-note { margin: 12px 0 0; font-size: 11px; color: var(--muted-2); }

@media (min-width: 1440px) {
  body { padding-right: 284px; }
  /* 侧栏左边缘跟随正文右边缘（正文居中，max-width 1160）：无论屏幕多宽，缝隙恒为约 34px */
  .hot-rail {
    position: fixed; left: calc(50% + 448px); right: auto; top: 92px; width: 248px;
    max-height: calc(100vh - 120px); overflow-y: auto;
    margin: 0; padding: 14px 12px 12px; z-index: 30;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
  .hot-rail h2 { font-size: 13px; }
  .hr-name { font-size: 11.5px; }
  .hot-item { padding: 3px 5px; }
  .hr-num { font-size: 10px; }
}

/* ---------- 每日更新提示条 ---------- */
.update-strip {
  background: rgba(37, 133, 94, .09);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted);
}
.update-strip-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding-top: 6px; padding-bottom: 6px; }
.us-live {
  flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright); box-shadow: 0 0 0 3px rgba(37, 133, 94, .2);
}
.us-text { color: #cbd8d0; }
.us-text time { font-family: var(--mono); color: var(--accent-bright); }
.us-sync { color: var(--muted-2); }
.us-more { margin-left: auto; color: var(--accent-bright); }
@media (max-width: 760px) {
  .us-sync { display: none; }
  .us-more { margin-left: auto; font-size: 11px; }
}

/* ---------- 统计页 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel);
}
.kpi-n { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--accent-bright); line-height: 1.2; }
.kpi-l { font-size: 11.5px; color: var(--muted); }
.rank-mini {
  display: inline-block; min-width: 16px; margin-right: 6px; text-align: center;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted-2);
}
.rank-mini-1 { color: #ffc65c; font-weight: 700; }
.rank-mini-2 { color: #cdd7e3; font-weight: 700; }
.rank-mini-3 { color: #e08b50; font-weight: 700; }
.plats { display: flex; flex-wrap: wrap; gap: 4px; }
.plat-chip {
  font-family: var(--mono); font-size: 10.5px; color: #9fd8bd;
  background: rgba(37, 133, 94, .14); border: 1px solid rgba(37, 133, 94, .32);
  border-radius: 4px; padding: 1px 5px; white-space: nowrap;
}
.bar-list { display: flex; flex-direction: column; gap: 5px; }
.bar-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 62px; align-items: center; gap: 8px; }
.bar-label { font-size: 11.5px; color: var(--muted); }
.bar-track { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #25855e, #4fd39a); }
.bar-num { font-size: 10.5px; color: var(--muted); text-align: right; }
.note { margin: 10px 0 0; font-size: 11px; color: var(--muted-2); line-height: 1.6; }

/* 空状态提示 */
.empty-note { margin-top: 16px; border-color: rgba(37, 133, 94, .3); }

@media (max-width: 620px) {
  .page-head.has-thumb { gap: 12px; }
  .ph-thumb { width: 54px; height: 54px; border-radius: 11px; padding: 4px; margin-top: 2px; }
  .page-head.has-thumb .ph-body h1 { overflow-wrap: anywhere; }
}

/* 锚点跳转时避开吸顶导航 */
:target, [id] { scroll-margin-top: 96px; }
