/* ==========================================================================
   8090hk 站点样式
   配色与版式对齐 meteor.demo.cxory.com 的视觉语言：
     · 主按钮  #5340ff（hover #4a39e7）
     · 强调色  #fe4f70（链接 hover、模块标题首二字、进度条）
     · 正文    #203656  次要文字 #8f9bad
     · 页面底  #ffffff  模块底 #f5f6f9  分隔线 #ffffff  边框 #ebebeb
     · 圆角    模块 10px / 缩略图 8px / 控件 6px
     · 模块   扁平无边框、无阴影；分类标签用十色渐变胶囊
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 分类渐变板（对应主题的 --bt-c1…c12） */
  --bt-c1: linear-gradient(-120deg, #005bea 0%, #00c6fb 100%);
  --bt-c2: linear-gradient(-120deg, #ffa387 0%, #fe4f70 100%);
  --bt-c3: linear-gradient(-120deg, #2af598 0%, #009efd 100%);
  --bt-c4: linear-gradient(-120deg, #243949 0%, #517fa4 100%);
  --bt-c5: linear-gradient(-120deg, #6772ff 0%, #00f9e5 100%);
  --bt-c6: linear-gradient(-120deg, #1c5aff 0%, #e48bfa 100%);
  --bt-c7: linear-gradient(-120deg, #d71881 0%, #409bcd 100%);
  --bt-c8: linear-gradient(-120deg, #fa23ae 0%, #dfb800 100%);
  --bt-c9: linear-gradient(-120deg, #50cc7f 0%, #f5d100 100%);
  --bt-c10: linear-gradient(-120deg, #5340ff 0%, #7264f8 100%);
  --bt-c11: linear-gradient(-120deg, #fe4f70 0%, #ffa387 100%);
  --bt-c12: linear-gradient(-120deg, #00cc99 0%, #2af598 100%);

  /* 强调渐变（对应 --cx-gradient-rad），用于进度条 */
  --grad-rad: linear-gradient(to right, #fe4f70 0%, #ffa387 51%, #fe4f70 100%);

  /* 面 */
  --page-bg: #ffffff;
  --module-bg: #f5f6f9;
  --module-white: #ffffff;
  --navsub-bg: #ffffff;
  --tint: #f1f8ff;
  --line: #ebebeb;
  --line-2: #dfe3ea;
  --form-bg: #ffffff;

  /* 字 */
  --ink: #203656;
  --ink-article: #4e607a;
  --ink-2: #8f9bad;
  --ink-3: #79889e;
  --light: #f8f9fa;
  --black: #18181b;

  /* 品牌 */
  --brand: #5340ff;
  --brand-hover: #4a39e7;
  --brand-light: #7264f8;
  --brand-fade: rgba(83, 64, 255, .1);
  --accent: #fe4f70;
  --accent-hover: #ed3e5e;
  --accent-fade: rgba(254, 79, 112, .1);

  /* 语义 */
  --good: #00cc99;
  --good-ink: #02a97f;
  --good-soft: #eafaf5;
  --bad: #fe4f70;
  --bad-ink: #ed3e5e;
  --bad-soft: #fff0f3;
  --warn: #f9a223;
  --warn-ink: #a9701a;
  --warn-soft: #fff8ec;

  /* 圆角与尺寸 */
  --radius: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --maxw: 1240px;
  --gap: 24px;

  --sh-1: 0 1px 2px rgba(32, 54, 86, .04);
  --sh-2: 0 4px 16px rgba(32, 54, 86, .07);
  --sh-3: 0 8px 25px rgba(32, 54, 86, .1);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* 跟随系统深色 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg: #142030;
    --module-bg: #202b3b;
    --module-white: #202b3b;
    --navsub-bg: #2b384a;
    --tint: #202b3b;
    --line: #2b384a;
    --line-2: #35435a;
    --form-bg: #2b384a;

    --ink: #adb5bd;
    --ink-article: #adb5bd;
    --ink-2: #8f9bad;
    --ink-3: #79889e;
    --black: #607d8b;

    --brand-fade: rgba(114, 100, 248, .18);
    --accent-fade: rgba(254, 79, 112, .18);

    --good-soft: #12291f;
    --bad-soft: #2d1a1f;
    --warn-soft: #2a2115;

    --sh-1: 0 1px 2px rgba(0, 0, 0, .3);
    --sh-2: 0 4px 16px rgba(0, 0, 0, .38);
    --sh-3: 0 10px 30px rgba(0, 0, 0, .45);
  }
}

/* 手动深色 */
:root[data-theme="dark"] {
  --page-bg: #142030;
  --module-bg: #202b3b;
  --module-white: #202b3b;
  --navsub-bg: #2b384a;
  --tint: #202b3b;
  --line: #2b384a;
  --line-2: #35435a;
  --form-bg: #2b384a;

  --ink: #adb5bd;
  --ink-article: #adb5bd;
  --ink-2: #8f9bad;
  --ink-3: #79889e;
  --black: #607d8b;

  --brand-fade: rgba(114, 100, 248, .18);
  --accent-fade: rgba(254, 79, 112, .18);

  --good-soft: #12291f;
  --bad-soft: #2d1a1f;
  --warn-soft: #2a2115;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .3);
  --sh-2: 0 4px 16px rgba(0, 0, 0, .38);
  --sh-3: 0 10px 30px rgba(0, 0, 0, .45);
}

:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .15s var(--ease);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 { line-height: 1.4; margin: 0 0 .5em; }

/* 模块标题：前两字上强调色（Meteor .module-tit h3 span） */
.panel-head h2 span,
.section-title span { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

::selection { background: var(--accent-fade); }

img { max-width: 100%; }

/* 阴影占位动画（对应主题 .atb:before） */
.atb { position: relative; }

/* ---------- 3. 页头 ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--page-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

/* 站点 logo（注意：不要用 .brand——那是分类标签胶囊的修饰类） */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.site-logo::before {
  content: "8";
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bt-c10);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.site-logo:hover { color: var(--ink); }

.site-nav { display: flex; margin: 0 4px; flex-wrap: wrap; }
.site-nav a {
  padding: 0 1rem;
  line-height: 32px;
  font-size: .9rem;
  color: var(--ink);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent); }

/* 主题切换 */
.theme-toggle {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--module-bg);
  flex: 0 0 auto;
}
.theme-toggle button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s var(--ease);
  white-space: nowrap;
}
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button[aria-pressed="true"] {
  background: var(--navsub-bg);
  color: var(--accent);
  font-weight: 600;
  box-shadow: var(--sh-1);
}
@media (max-width: 860px) {
  .theme-toggle button:not([aria-pressed="true"]) { display: none; }
}

/* ---------- 4. 主区域 ---------- */
main { padding: 24px 0 48px; }

.crumbs {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs > span:last-child { color: var(--ink); }

h1 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
h2 { font-size: 20px; font-weight: 600; margin: 32px 0 14px; }
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 10px; }

.lead { color: var(--ink-article); margin: 0 0 24px; font-size: 15.5px; }

/* 内容页区块标题：双色字 + 短强调线 */
.section-title {
  display: flex;
  align-items: center;
  font-size: calc(1.1rem + .2vw);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- 5. 首页 hero ---------- */
.hero {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: var(--radius);
  background:
    radial-gradient(900px 340px at 10% -30%, var(--accent-fade), transparent 70%),
    var(--module-bg);
  margin-bottom: 24px;
  overflow: hidden;
}
.hero h1 { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 10px; }
.hero .lead { font-size: 16px; margin-bottom: 20px; max-width: 46em; }

.hero-search { display: flex; gap: 10px; max-width: 560px; margin-bottom: 16px; }
.hero-search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 11px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--page-bg);
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.hero-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-fade);
}
.hero-search button {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 22px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.hero-search button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero-stats div { font-size: 13.5px; color: var(--ink-2); }
.hero-stats b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 6. 卡片与网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

.card {
  display: block;
  background: var(--module-bg);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); color: inherit; }
.card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.card .meta {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card p { margin: 10px 0 0; font-size: 14px; color: var(--ink-article); line-height: 1.7; }

.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media .thumb { border-radius: 0; aspect-ratio: 16 / 9; }
.card-body { padding: 16px 20px 18px; display: flex; flex-direction: column; }
.card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.card-media h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.card-media p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 缩略图 */
.thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--line);
  flex: 0 0 auto;
}
.thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .3s var(--ease);
}
.card:hover .thumb > img,
a:hover > .thumb > img { transform: scale(1.07); }

/* 渐变封面（无实拍图时的兜底，色板同分类标签） */
.thumb-css {
  display: grid;
  place-items: center;
  background: var(--bt-c1);
}
.thumb-css[data-tone="phone"] { background: var(--bt-c1); }
.thumb-css[data-tone="gpu"] { background: var(--bt-c3); }
.thumb-css[data-tone="cpu"] { background: var(--bt-c5); }
.thumb-css[data-tone="laptop"] { background: var(--bt-c2); }
.thumb-css[data-tone="tablet"] { background: var(--bt-c6); }
.thumb-css[data-tone="news"] { background: var(--bt-c4); }
.thumb-css[data-tone="default"] { background: var(--bt-c4); }
.thumb-css span {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 0 16px;
  line-height: 1.35;
}
.thumb-css small {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- 7. 标签胶囊（Meteor .sort） ---------- */
.chip {
  display: inline-block;
  font-size: 12px;
  line-height: 1.8;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--navsub-bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
  vertical-align: middle;
}
/* 分类标签：左平右圆、白字渐变（对应 .sort + --b-color） */
.chip.brand {
  border: 0;
  line-height: 24px;
  padding: 0 15px 0 10px;
  border-radius: 0 20px 20px 0;
  background: var(--bt-c1);
  color: #fff;
  font-weight: 400;
}
.chip.brand[data-cat="phone"] { background: var(--bt-c1); }
.chip.brand[data-cat="gpu"] { background: var(--bt-c3); }
.chip.brand[data-cat="cpu"] { background: var(--bt-c5); }
.chip.brand[data-cat="laptop"] { background: var(--bt-c2); }
.chip.brand[data-cat="tablet"] { background: var(--bt-c6); }
.chip.brand[data-cat="news"] { background: var(--bt-c4); }
.chip.brand[data-cat="default"] { background: var(--bt-c4); }
.chip.draft {
  background: var(--warn-soft);
  color: var(--warn-ink);
  border-color: transparent;
  font-weight: 600;
}

/* ---------- 8. 表格 ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 16px 0;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-2);
}
tbody tr:nth-child(even) { background: var(--module-bg); }
tbody tr { transition: background .12s var(--ease); }
tbody tr:hover { background: var(--brand-fade); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink-article); width: 1%; }
.spec-table td:first-child { min-width: 92px; white-space: nowrap; }

tr.diff td {
  background: var(--warn-soft);
  box-shadow: inset 3px 0 0 var(--warn);
}
td small { color: var(--ink-2); font-size: 12px; }

/* 同价位速览：机型列宽一点，别被 td:first-child 的 width:1% 挤成一条 */
table.peers td:first-child {
  width: auto;
  min-width: 190px;
  white-space: nowrap;
}
table.peers td { font-size: 13.5px; }
table.peers .chip { margin-left: 6px; }

/* 对比页的参数表：用固定列宽，让多张上下堆叠的表格列线严格对齐——
   之前每张表各自算列宽，「机型 A / 机型 B」两列的宽度张张不同，竖线错位很难看。 */
table.cmp-spec {
  table-layout: fixed;
}
table.cmp-spec td:first-child,
table.cmp-spec th:first-child {
  width: 130px;
  white-space: nowrap;
}

/* 自由对比选择器 */
.compare-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}
.compare-picker select {
  min-width: 200px;
  max-width: 320px;
  flex: 1 1 200px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--module-bg);
  color: var(--ink);
  font-size: 14px;
}
.compare-picker .cmp-vs { color: var(--ink-2); font-weight: 600; }
#cmp-result { margin-top: 8px; }

/* 全部对比组合：紧凑多列文本列表，保证每个静态对比页都有入口 */
.compare-all {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 3;
  column-gap: 28px;
  font-size: 13px;
}
.compare-all li { padding: 4px 0; break-inside: avoid; }
.compare-all a { color: var(--ink-2); text-decoration: none; }
.compare-all a:hover { color: var(--accent); }
@media (max-width: 760px) { .compare-all { column-count: 2; } }
@media (max-width: 520px) { .compare-all { column-count: 1; } }

/* ---------- 9. 判断模块 ---------- */
.verdict {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
}
@media (max-width: 820px) { .verdict { grid-template-columns: 1fr; } }

.verdict .box {
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14.5px;
  background: var(--module-bg);
  position: relative;
}
.verdict .box b {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
}
.verdict .box ul { margin: 0; padding-left: 18px; }
.verdict .box li { margin-bottom: 4px; }

.verdict .good { background: var(--good-soft); box-shadow: inset 3px 0 0 var(--good); }
.verdict .good b { color: var(--good-ink); }
.verdict .bad { background: var(--bad-soft); box-shadow: inset 3px 0 0 var(--bad); }
.verdict .bad b { color: var(--bad-ink); }
.verdict .alt b { color: var(--ink-2); }
.verdict .alt a { color: var(--accent); }
.verdict .alt a:hover { color: var(--accent-hover); }

.comment {
  background: var(--module-bg);
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--ink-article);
  margin: 18px 0;
}

/* ---------- 10. 按钮 ---------- */
.buybar { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  transition: background .15s var(--ease), border-color .15s var(--ease),
              color .15s var(--ease);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn.jd::before { content: "🛒"; font-size: 15px; }
/* 复制京口令按钮：桌面端隐藏，移动端显示（PC 用链接直接跳） */
.btn.copy-cmd { display: none; cursor: pointer; }

/* ghost 必须在 tmall 之前，否则 .btn.ghost.tmall 会被透明底覆盖 */
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: #fff; }

.btn.tmall { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.tmall:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.tmall::before { content: "🔗"; font-size: 14px; }

/* ---------- 11. 提示 ---------- */
.notice {
  font-size: 13px;
  color: var(--ink-2);
  background: var(--module-bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 14px 0;
  line-height: 1.7;
}

/* ---------- 12. 筛选栏 ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0 14px;
  padding: 14px 16px;
  background: var(--module-bg);
  border-radius: var(--radius);
}
.filters select, .filters input {
  font: inherit;
  font-size: 14px;
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--form-bg);
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.filters select:focus, .filters input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-fade);
}
.filters input { flex: 1; min-width: 180px; }

/* ---------- 13. 机型列表 ---------- */
.dev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--module-bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.dev-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 16px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--navsub-bg);
  transition: background .12s var(--ease);
}
.dev-item:last-child { border-bottom: 0; }
.dev-item:hover { background: var(--brand-fade); }
.dev-item.hidden { display: none; }
.dev-item a { flex: 0 0 auto; min-width: 200px; font-weight: 600; color: var(--ink); }
.dev-item:hover a { color: var(--accent); }
.dev-item .price { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dev-item .sub { color: var(--ink-2); font-size: 13px; }
@media (max-width: 640px) {
  .dev-item { flex-wrap: wrap; gap: 3px 12px; }
  .dev-item a { min-width: 0; }
}

/* ---------- 14. 文章正文 ---------- */
.article {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-article);
  max-width: 46em;
}
.article h2 { margin-top: 36px; font-size: 21px; color: var(--ink); }
.article h3 { font-size: 17.5px; color: var(--ink); }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 6px; }
.article p { margin: 16px 0; }
/* 正文内链接给强调色和下划线，保证可识别 */
.article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.article a:hover { color: var(--accent-hover); }
.article blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: var(--module-bg);
  border-left: 5px solid var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article pre {
  background: var(--module-bg);
  padding: 16px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13.5px;
}
.article code {
  background: var(--module-bg);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-size: .9em;
}
.article pre code { background: none; padding: 0; }

/* ---------- 16. 发布日历 ---------- */
.calendar { list-style: none; margin: 0; padding: 0; }
.cal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--navsub-bg);
  transition: background .12s var(--ease);
}
.cal-item:last-child { border-bottom: 0; }
.cal-item.past { opacity: .42; }
.cal-date {
  flex: 0 0 auto;
  width: 56px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--bt-c11);
  color: #fff;
  padding: 7px 0;
  line-height: 1.15;
}
.cal-date b { display: block; font-size: 19px; font-weight: 700; }
.cal-date span { font-size: 11.5px; font-weight: 500; opacity: .9; }
.cal-main { flex: 1; min-width: 0; }
.cal-main h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; }
.cal-main .meta { font-size: 12.5px; color: var(--ink-2); }
.cal-when {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.cal-when.soon { color: var(--accent); }
.cal-when.done { color: var(--ink-3); font-weight: 400; }
@media (max-width: 560px) {
  .cal-item { gap: 12px; }
  .cal-date { width: 50px; }
  .cal-when { font-size: 12px; }
}

/* 独立日历页：条目块化 */
main > .calendar {
  background: var(--module-bg);
  border-radius: var(--radius);
  padding: 6px 20px;
}
main > .calendar .cal-item { padding: 16px 0; }

/* ---------- 17. 机型参数可视化封面 ---------- */
.device-hero {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--module-bg);
  max-width: 640px;
}
.device-hero img { width: 100%; height: auto; display: block; }
@media (max-width: 700px) { .device-hero { max-width: 100%; } }

/* ---------- 18. 参数位置（同类百分位） ---------- */
.metric-list { list-style: none; margin: 0 0 8px; padding: 0; }
.metric-row {
  display: grid;
  grid-template-columns: 92px 118px minmax(80px, 1fr) 54px auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.metric-row:last-child { border-bottom: 0; }
.metric-label { color: var(--ink-article); }
.metric-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.metric-value em {
  font-style: normal;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-left: 3px;
}
.metric-bar {
  height: 9px;
  border-radius: 5px;
  background: var(--navsub-bg);
  overflow: hidden;
}
.metric-bar > span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--grad-rad);
  background-size: 200% auto;
  transition: width .3s var(--ease);
}
.metric-pct {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.metric-text { font-size: 13px; color: var(--ink-2); }

@media (max-width: 760px) {
  .metric-row {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding: 12px 0;
  }
  .metric-label { grid-column: 1; }
  .metric-value { grid-column: 2; text-align: right; }
  .metric-bar { grid-column: 1 / -1; }
  .metric-pct { display: none; }
  .metric-text { grid-column: 1 / -1; }
}

/* ---------- 19. 页脚 ---------- */
.site-footer {
  background: var(--module-bg);
  padding: 30px 0;
  font-size: .85em;
  color: var(--ink-2);
  text-align: center;
}
.site-footer .wrap { display: grid; gap: 8px; justify-items: center; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; opacity: .85; }

/* ==========================================================================
   首页版式（栏目结构对应 Meteor：轮播 + 发布日历 / 快捷入口 / 热点推荐 + 最新文章 / 侧栏）
   ========================================================================== */

.home-col-8 { grid-column: span 8; }
.home-col-4 { grid-column: span 4; }
.home-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: 30px;
}
@media (max-width: 900px) {
  .home-col-8, .home-col-4 { grid-column: span 12; }
}

/* ---------- 轮播（对应 .apl-slide，移动端与 PC 同一 16:9 比例） ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--module-bg);
  aspect-ratio: 16 / 9;
  height: auto;
}

.car-track { position: absolute; inset: 0; }
.car-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
  display: block;
}
.car-slide.active { opacity: 1; pointer-events: auto; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 遮罩用正文深蓝 #203656，与主题 .shade 一致 */
.car-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(32, 54, 86, .92) 0%,
    rgba(32, 54, 86, .5) 42%,
    rgba(32, 54, 86, 0) 74%);
}
.car-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  z-index: 2;
  color: var(--light);
}
.car-info .chip {
  background: rgba(255, 255, 255, .22);
  border-color: transparent;
  color: #fff;
  backdrop-filter: blur(4px);
}
.car-info h2 {
  margin: 10px 0 6px;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.car-info .meta { font-size: .82rem; color: rgba(248, 249, 250, .75); }

/* 左右箭头：悬停才出现（默认 #343a43 圆钮） */
.car-nav {
  position: absolute;
  top: 50%;
  margin-top: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #343a43;
  color: #fff;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  display: grid;
  place-items: center;
}
.carousel:hover .car-nav { visibility: visible; opacity: .75; }
.car-nav:hover { opacity: 1; transform: scale(1.2); }
.car-nav.prev { left: 15px; }
.car-nav.next { right: 15px; }
@media (hover: none) {
  .car-nav { visibility: visible; opacity: .8; }
}

/* 圆点：右上角（对应主题分页条位置） */
.car-dots {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}
.car-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.car-dots button.active { background: #fff; width: 20px; border-radius: 5px; }

/* ---------- 模块外壳（对应 .mso + .bordered） ---------- */
.panel {
  background: var(--module-bg);
  border-radius: var(--radius);
  padding: 20px 0;
  overflow: hidden;
}
.panel + .panel { margin-top: 24px; }

/* 模块标题：左侧 20px 内缩 + 底部细线（颜色为主题的分隔线色） */
.panel-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-bottom: 10px;
  margin: 0 20px;
  position: relative;
}
.panel-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--navsub-bg);
}
.panel-head h2 {
  margin: 0 15px 0 0;
  font-size: calc(1.1rem + .2vw);
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  color: var(--ink);
  white-space: nowrap;
}
.panel-head .sub {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: .85em;
  font-weight: 300;
  flex-grow: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-head .spacer { margin-left: auto; }
.panel-body { padding: 0 10px; margin-top: 12px; }

.link-btn {
  margin-left: auto;
  border: 0;
  background: var(--navsub-bg);
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s var(--ease);
  white-space: nowrap;
  flex: 0 0 auto;
}
.link-btn:hover { color: #fff; background: var(--brand); }

/* 首页右上：发布日历紧贴轮播高度 */
.cal-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 0;
}
.cal-panel .panel-head { margin: 0 20px; }
.cal-panel .panel-body { margin-top: 6px; overflow: hidden; }
.cal-panel .cal-item { padding: 10px 0; gap: 12px; }
.cal-panel .cal-date { width: 50px; padding: 5px 0; }
.cal-panel .cal-date b { font-size: 17px; }
/* 紧凑模式：标题与说明各占一行，超出省略，保证模块高度稳定 */
.cal-panel .cal-main h3 {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-panel .cal-main .meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-panel .calendar { padding: 0 20px; background: none; border-radius: 0; }
@media (max-width: 900px) {
  .cal-panel { height: auto; }
  .cal-panel .panel-body { overflow: visible; }
}

/* ---------- 榜单小列表（.tab-bar 也用于「最新文章」的分类 tab） ---------- */
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 10px 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-bar button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s var(--ease);
}
.tab-bar button:hover { color: var(--accent); }
.tab-bar button[aria-selected="true"] {
  background: var(--navsub-bg);
  color: var(--accent);
  font-weight: 600;
}

/* ---------- 快捷入口（对应 .item-eg） ---------- */
.entry-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--module-bg);
  color: inherit;
  height: 100%;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.entry-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); color: inherit; }
.entry-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 26px;
  flex: 0 0 auto;
  background: var(--bt-c12);
}
/* 每个入口一个色相。注意 nth-child 要挂在栅格列上——
   .entry-card 是 .home-col-4 的唯一子元素，挂在自己身上永远是 1。 */
.entry-grid > div:nth-child(1) .entry-icon { background: var(--bt-c12); }
.entry-grid > div:nth-child(2) .entry-icon { background: var(--bt-c1); }
.entry-grid > div:nth-child(3) .entry-icon { background: var(--bt-c5); }
.entry-grid > div:nth-child(4) .entry-icon { background: var(--bt-c2); }
.entry-main { padding-left: 20px; min-width: 0; }
.entry-card h3 { margin: 0 0 5px; font-size: 1.1em; font-weight: 600; }
.entry-card p { margin: 0; font-size: .8em; color: var(--ink-2); line-height: 1.65; }

/* ---------- 最近发布专题：品牌 tab + 每个品牌机型参数表 ---------- */
.topic-tabs { flex-wrap: wrap; }
.topic-pane { margin-top: 4px; }
.topic-pane .peers td:first-child { white-space: nowrap; }
@media (max-width: 640px) {
  .topic-pane .peers { font-size: 12px; }
  .topic-pane .peers th:nth-child(4),
  .topic-pane .peers td:nth-child(4) { display: none; }
}

/* ---------- 最新文章：通栏行（对应 .item-blog） ---------- */
.post-list { display: block; }
.post-row {
  display: flex;
  flex-direction: row;
  position: relative;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  color: inherit;
  transition: background .15s var(--ease);
}
.post-row:hover { background: var(--navsub-bg); color: inherit; }
.post-row .thumb { width: 31%; aspect-ratio: 3 / 2; height: auto; }
.post-row .body {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}
.post-row h3 {
  margin: 0 0 .8em;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-row p {
  margin: 0;
  font-size: .87em;
  color: var(--ink-2);
  line-height: 1.7;
  letter-spacing: .5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-row .card-tags { margin-bottom: 6px; }
@media (max-width: 620px) {
  .post-row { flex-direction: column; padding: 14px 12px; }
  .post-row .thumb { width: 100%; aspect-ratio: 16 / 9; }
  .post-row .body { padding-left: 0; margin-top: 14px; }
  .post-row h3 { font-size: 1.05rem; }
  .post-row p { display: none; }
}

/* ---------- 侧栏 ---------- */
.side-sticky { position: sticky; top: 88px; }
.side-list { list-style: none; margin: 6px 0 0; padding: 0 10px; }
.side-list li { border-radius: var(--radius-md); transition: background .15s var(--ease); }
.side-list li:hover { background: var(--navsub-bg); }
.side-list a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 14px;
}
.side-list a:hover { color: var(--accent); }
.side-rank {
  flex: 0 0 auto;
  width: 20px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.side-list li:nth-child(-n+3) .side-rank { color: var(--accent); }
.side-list .t { flex: 1; min-width: 0; }
.side-list .v { color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.side-list .v:not(:empty) { color: var(--accent); font-weight: 600; }

/* 榜单口径说明：小字，说明这个排名是怎么算出来的 */
.side-note {
  margin: 8px 0 0;
  padding: 0 20px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 20px 6px; }
.tagcloud a {
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--navsub-bg);
  color: var(--ink-2);
  transition: all .15s var(--ease);
}
.tagcloud a:hover { background: var(--brand); color: #fff; }

.side-about { padding: 14px 20px 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }.side-about .name {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .side-sticky { position: static; }
}

/* ---------- 空状态 ---------- */
.empty { color: var(--ink-2); font-size: 14.5px; padding: 28px 0; text-align: center; }

/* ---------- 无障碍 ---------- */
.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;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }

/* ---------- 移动端优化 ---------- */
@media (max-width: 640px) {
  main { padding: 16px 0 36px; }
  .wrap { padding: 0 14px; }

  /* 导航：隐藏 logo 文字和主题切换，给菜单让位（横向滚动兜底） */
  .site-header .wrap { height: 56px; gap: 6px; }
  .site-logo { font-size: 0; }
  .site-logo::before { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
  .theme-toggle { display: none; }
  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0;
    flex: 1;
    min-width: 0;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 0 12px; line-height: 40px; flex: 0 0 auto; }

  /* 标题与区块间距收紧 */
  h1 { font-size: 24px; }
  h2 { font-size: 18px; margin: 26px 0 12px; }
  .section-title { margin: 26px 0 14px; }
  .lead { font-size: 15px; }

  /* 首页 hero 收紧 */
  .hero { padding: 22px 18px 20px; }
  .hero .lead { font-size: 15px; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 20px; }

  /* 同价位速览：隐藏次要列（电池/影像），缩字号，避免横向滚动 */
  table.peers { font-size: 12px; }
  table.peers th, table.peers td { padding: 8px; }
  table.peers th:nth-child(5), table.peers td:nth-child(5),
  table.peers th:nth-child(6), table.peers td:nth-child(6) { display: none; }

  /* 买点按钮：全宽、加高，方便拇指点按；移动端显示「复制口令」、隐藏链接按钮 */
  .buybar .btn { width: 100%; justify-content: center; padding: 12px 16px; }
  .buybar .btn.pc { display: none; }
  .buybar .btn.copy-cmd { display: inline-flex; }

  /* 移动端隐藏：顶部 4 个快捷入口大方框 + 最近发布专题（保留发布日历） */
  .entry-grid, .topic-panel { display: none; }

  /* 首页区块间距收紧 */
  .home-grid { margin-bottom: 18px; gap: 16px; }

  /* 卡片内边距收紧 */
  .card { padding: 15px 16px; }
}

@media (max-width: 480px) {
  /* 自由对比选择器：竖排堆叠 */
  .compare-picker select { min-width: 100%; flex: 1 1 100%; }
  .compare-picker .cmp-vs { width: 100%; text-align: center; }
  .compare-picker button { width: 100%; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .site-footer, .buybar, .filters, .skip, .car-nav, .car-dots { display: none; }
  body { background: #fff; color: #000; }
  .card, .panel, table { box-shadow: none; }
  .car-slide { position: relative; opacity: 1; }
  .car-track { position: static; }
  .carousel { height: auto; }
}
