/* 变体 E · 首页布局「存档点」：浅灰�?LCD �?+ 淡像素网�?+ 青色边框 + 奶油黄标�?
   融合 A 的经典青绿与 D 的圆润阶梯角像素图标。默认浅色，另有深色�?*/
/* 颜色变量�?css/palettes-e.css�? 套配�?× 日间 / 夜间，由 tools/palettes-e.py 生成�?*/
:root { --px: 4px; --orb: polygon(33.333% 0.000%, 66.667% 0.000%, 66.667% 8.333%, 83.333% 8.333%, 83.333% 16.667%, 91.667% 16.667%, 91.667% 33.333%, 100.000% 33.333%, 100.000% 66.667%, 91.667% 66.667%, 91.667% 83.333%, 83.333% 83.333%, 83.333% 91.667%, 66.667% 91.667%, 66.667% 100.000%, 33.333% 100.000%, 33.333% 91.667%, 16.667% 91.667%, 16.667% 83.333%, 8.333% 83.333%, 8.333% 66.667%, 0.000% 66.667%, 0.000% 33.333%, 8.333% 33.333%, 8.333% 16.667%, 16.667% 16.667%, 16.667% 8.333%, 33.333% 8.333%); }

/* ---------- 屏幕外壳 ---------- */
body { background: var(--bezel); padding: 12px; }
.screen {
  /* 2026-11-12（P1-5）：外壳上限 1980 → 1560。
     2K / 4K 屏上内容不再被拉成一条细长走廊，左右仍留机壳边框感。 */
  max-width: 1560px; margin: 4px auto; min-height: calc(100vh - 32px);
  display: grid; grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 8px 8px,
    var(--bg);
  box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line),
    inset 4px 4px 0 0 var(--lo);
}
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--panel); }
.skip-link:focus { top: 16px; }
.main:focus { outline: none; }

/* ---------- 圆润像素图标 ---------- */
.pxi-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pxi { width: 24px; height: 24px; flex: none; shape-rendering: crispEdges; display: inline-block; vertical-align: middle; color: var(--icon-main); }
.pi-o { fill: currentColor; } .pi-hi { fill: var(--icon-hi); } .pi-ink { fill: var(--icon-ink); }
.px-orb { position: relative; width: 48px; height: 48px; display: inline-grid; place-items: center; clip-path: var(--orb); background: var(--line); flex: none; }
.px-orb::before { content: ""; position: absolute; inset: 4px; clip-path: var(--orb); background: var(--orb-c, var(--c-teal)); }
.px-orb .pxi { position: relative; }
.px-orb--sm { width: 36px; height: 36px; }
.px-orb--sm::before { inset: 3px; }
.px-orb--xs { width: 22px; height: 22px; }
.px-orb--xs::before { inset: 2px; }
.px-orb--xs .pxi { width: 13px; height: 13px; }
.cat-card__orb { width: 32px; height: 32px; flex: 0 0 auto; }
.cat-card__orb::before { inset: 4px; }
.cat-card__orb .pxi { width: 18px; height: 18px; }
.orb--teal { --orb-base: var(--c-teal); } .orb--yellow { --orb-base: var(--c-yellow); } .orb--mint { --orb-base: var(--c-mint); }
.orb--sky { --orb-base: var(--c-sky); } .orb--coral { --orb-base: var(--c-coral); } .orb--grape { --orb-base: var(--c-grape); }
/* 图标底色统一�?--orb-base 取；站点卡再�?tone-* 往下混，所以两者的 --orb-c 必须同源 */
.px-orb, .qlink__ico, .site-card__ico { --orb-c: var(--orb-base, var(--c-teal)); }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--bar);
  box-shadow: 0 4px 0 0 var(--line), 0 8px 0 0 var(--lo);
  margin-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand__logo { height: 44px; width: auto; display: block; flex: none; }
.brand__text { font-family: var(--font-ui); font-size: 36px; line-height: 1; -webkit-font-smoothing: none;
  color: var(--fg); text-shadow: 3px 3px 0 var(--c-teal); white-space: nowrap; }
/* 页签不自己横向滚动：溢出时整组换到下一行（.topbar 本身 flex-wrap）�?
   原来这里写了 overflow-x:auto，结果页签在窄一点的窗口下永远差十几像素�?
   标题栏下方会挂一条可拖动的滚动条�?
   2026-11-03�?.10 �?6 条）：页签改成和分类名一样长（「折扣史低」而不是「折扣」）�?
   12 个页签一行放不下了，所以允许组内换行——宁可多占一行，也不让整页横向溢出�?
   1000 以下另有一套横滑规则（见下面的 @media），那里保持一行�?*/
/* 2026-11-12（顶栏方案 B「导航带」）：整组页签下压一条 3px 连续底线，
   把「五个散落的词」变成「一条导航」。选中项的实心底 + 4px 外描边正好压在
   这条线上，看起来像导航带上凸起的那一颗。
   字号 24→22、横向 padding 收到 13、组内 gap 4→2：像素字自带字面留白，
   原来五颗在中段拉开到 60px 以上，光加线条也连不起来。 */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; row-gap: 2px; }
.tab {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--font-ui); font-size: 22px; line-height: 1; -webkit-font-smoothing: none;
  color: var(--fg); background: transparent; padding: 8px 13px 9px; white-space: nowrap;
}
.tab:hover { background: var(--inset); }
/* 分隔竖线：把 11 个站点类目和后面的「文章」切开 */
.tabs__sep { width: 3px; height: 18px; background: var(--line); align-self: center; margin: 0 4px; flex: none; }
/* 文章专区：站内阅读区，不是第 12 个站点类目，所以给实心�?+ 强调色，和类目页签分开 */
/* 2026-11-09 方案 A：文章页签不再常驻黄底，只有 [aria-current] 时才高亮，
   避免一排里出现多个实心底、看不出「我在哪」。 */
.tab--blog:hover { background: var(--c-mint); }
/* 2026-11-03：分类页也要能看出「你在哪一页」—�?aria-current 沿用同一套实心底�?*/
.tab[aria-pressed="true"], .tab[aria-current] {
  background: var(--accent); color: var(--accent-fg);
  box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line), inset 4px 4px 0 0 var(--accent-hi);
}
.topbar__tagline { margin-left: auto; font-family: var(--font-ui); font-size: 24px; line-height: 1; color: var(--accent-text); white-space: nowrap; -webkit-font-smoothing: none; }

/* ---------- 布局 ---------- */
/* 2026-11-12（P1-5）：首页与分类页统一 1300 内容框，换页不再跳宽、也不换列数。
   原来首页贴着外壳（1400 满宽，主栏 1016 / 3 列），分类页 1180 居中 / 4 列，
   一次点击宽度差 220px、列数还从 3 变 4，眼睛要重新校准一遍。 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 20px; align-items: start; max-width: 1300px; margin: 0 auto; }

/* ---------- 首页滚动公告（全站公告横幅） ---------- */
.announce-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  margin-bottom: 4px;
  padding: 7px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  color: var(--fg);
}
.announce-bar__tag {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: inset 2px 2px 0 var(--accent-hi), inset -2px -2px 0 var(--accent-lo);
  -webkit-font-smoothing: none;
}
.announce-bar__viewport { flex: 1 1 auto; overflow: hidden; }
.announce-bar__track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: announce-scroll 32s linear infinite;
}
.announce-bar:hover .announce-bar__track { animation-play-state: paused; }
.announce-bar__item {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  padding: 0 4px;
  color: var(--fg);
}
.announce-bar__sep { display: inline-block; width: 6px; height: 6px; margin: 0 14px; background: var(--muted); transform: rotate(45deg); flex: 0 0 auto; }
@keyframes announce-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* 关动画（系统减弱动效 / 站长在设置里关了动画）：横幅不滚，停在开头，文字照样看得到 */
html[data-motion="off"] .announce-bar__track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .announce-bar__track { animation: none; }
}
@media (max-width: 640px) {
  .announce-bar { padding: 6px 10px; gap: 8px; }
  .announce-bar__tag { font-size: 12px; padding: 3px 6px; }
  .announce-bar__item { font-size: 13px; }
  .announce-bar__sep { margin: 0 10px; }
}

/* 首页第一屏：一句话定位 + 搜索 + 推荐位
   之前这里只有一行小字，访客看不出主打什么（v1.3 第六节）。
   标题 28px（2026-11-05 从 36px 收下来，比 logo 字小一档），手机 24px。*/
.home-hero {
  margin: 0 0 16px; padding: 20px; display: grid; gap: 14px;
  background: var(--card);
}
.home-hero__title {
  font-family: var(--font-ui); font-size: 28px; line-height: 1.3; margin: 0;
  -webkit-font-smoothing: none; color: var(--fg);
}
.home-hero__sub { font-size: 14px; line-height: 1.6; color: var(--muted); margin: -4px 0 0; }
/* 「本周新�?N 个站」：一行小字，不抢标题；数字用强调色，点进去是站点导航 */
.home-hero__new { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.home-hero__new b { font-family: var(--font-body); font-size: 14px; color: var(--accent); }
.home-hero__new a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.home-hero__new a:hover { color: var(--accent); }
.home-hero .searchbar { margin-bottom: 0; }

/* 四条路线按钮：桌面一�?4 个，手机 2×2，每�?�?4px �?*/
.hero__paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.start-route {
  display: grid; gap: 4px; align-content: center;
  padding: 10px 12px; min-height: 52px; text-decoration: none;
  background: var(--card); color: var(--fg);
}
.start-route__title {
  font-family: var(--font-body); font-size: 12px; line-height: 1.3;
 
}
.start-route__desc { font-size: 11px; line-height: 1.3; color: var(--muted); }
.start-route--accent { background: var(--accent); color: var(--accent-fg); }
.start-route--accent .start-route__desc { color: var(--accent-fg); opacity: .8; }

/* 按机种找怎么玩：桌面 8 格一排，手机横向滑动 */
.hero__consoles { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hero__consoles-label { flex: 0 0 auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.console-tile {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px;
  padding: 5px 7px; text-decoration: none; background: var(--card); color: var(--fg);
}
.console-tile__name {
  font-family: var(--font-body); font-size: 12px; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 置顶位：就在机种格那一带。站长在后台勾了「置顶」的站点排在这里�?
   网址用的是站内收录的网址；推广标由站长另一个勾选决定，加了才显示「推广」两个字�?
   没勾任何站点时这一整块不占位（HTML 里就是空的）�?*/
.hero__pins { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.hero__pins:empty { display: none; }
.hero__pins-label { flex: 0 0 auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pin-tile {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  padding: 5px 9px; text-decoration: none; background: var(--card); color: var(--fg);
}
.pin-tile__name {
  font-family: var(--font-body); font-size: 12px; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pin-tile__promo {
  font-size: 10px; line-height: 1; padding: 2px 4px;
  background: var(--accent); color: var(--accent-fg); flex: 0 0 auto;
}

/* 最近访问：只在有记录时出现，没有记录时 hidden 不占�?*/
.recent {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 8px 10px; background: var(--card);
}
/* 2026-11-03：这一条是工具条，不是章节。原来套 24px 黄底大标，比里面的内容还抢眼�?
   现在降成 12px 灰色小标，整条高度从 70 收到 48，不再跟首屏抢注意力�?
   （换�?.label-tab 类名：那是章节标题的规格，别借。） */
.recent__label {
  margin: 0; flex: 0 0 auto;
  font-family: var(--font-body); font-size: 12px; line-height: 1;
  color: var(--muted); letter-spacing: .08em; white-space: nowrap;
}
.recent__row { flex: 1 1 200px; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.recent__row::-webkit-scrollbar { display: none; }
.recent__item {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px 3px 3px; text-decoration: none; color: var(--fg); background: var(--inset);
  font-size: 12px; line-height: 1.2; white-space: nowrap;
}
.recent__ico {
  width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--font-pixel); font-size: 12px; line-height: 1;
}
.recent__clear { flex: 0 0 auto; min-height: 32px; padding: 4px 10px; font-size: 12px; background: var(--card); }
/* 上面�?display:flex 会盖�?hidden 属性的 UA 样式，这里补回来 */
.recent[hidden] { display: none; }

/* 搜索 */
.searchbar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.searchbar .px-input-wrap { flex: 1; }
.searchbar__count { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* 分类卡：12 个类目一视同仁，每张卡都是「图�?+ 类目名」一�?+ 四格重点网站�?
   2026-11-03 再收一次：原来图标居中压在标题上方、四�?chip 又大又艳�?2 张卡
   铺满整屏，下面的站点导航一眼看不到（首�?1481px）。改成横向头�?+ 小四格，
   卡高 182 �?116，整块从 604 收到 392；同时标题左对齐、chip 收小�?
   视觉重量也跟着降下来，不再像一墙按钮�?*/
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat-card {
  background: var(--card); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.cat-card:focus-within::after { opacity: 1; }
.cat-card__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cat-card__title { font-size: 18px; line-height: 1.2; margin: 0; min-width: 0; }
.cat-card__title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 2026-11-03：卡头右侧的规模数字�?2 个站）�? 张卡比原来宽一倍，
   标题只占左边一小段，右边空着像没写完；这个数字既是信息也是右端的压舱物�?*/
.cat-card__count { margin-left: auto; flex: 0 0 auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.cat-card .chips { margin-top: 0; gap: 6px; }
/* 2026-11-03�? 列之后每格有 190px 宽，11px 居中字看着像浮在空盒子里�?
   字抬�?12px、左对齐、色点在左、英标靠右——每�?chip 读起来是一行「站点」�?*/
.cat-card .chip {
  font-size: 12px; min-height: 28px; padding: 0 8px; margin: 0;
  justify-content: flex-start; text-align: left; gap: 6px;
  background: var(--panel);
}
.cat-card .chip__txt { flex: 1 1 auto; }
.cat-card .chip__mark { margin-left: auto; }
/* 2026-11-03：排头格只留一�?6px 色点，整排读起来发白、认不出站点�?
   �?chip 底上一层同一个色�?14% 淡染（色还是站点自己的，但不成块），
   点仍在，边界靠原有的 2px 外阴影�?*/
.cat-card .chip.tone-0 { background: color-mix(in srgb, var(--tone-c) 14%, var(--panel)); }
.cat-card .chip.tone-1 { background: color-mix(in srgb, var(--tone-c) 14%, var(--panel)); }
.cat-card .chip.tone-2 { background: color-mix(in srgb, var(--tone-c) 14%, var(--panel)); }
.cat-card .chip.tone-3 { background: color-mix(in srgb, var(--tone-c) 14%, var(--panel)); }
.cat-card .chip.tone-4 { background: color-mix(in srgb, var(--tone-c) 14%, var(--panel)); }
.cat-card .chip.tone-5 { background: color-mix(in srgb, var(--tone-c) 18%, var(--panel)); }
/* 2026-11-03：暗色下 14% 的彩底压在深面板上会变成一层发灰的浑色�?
   既不像「有颜色」也不像「没颜色」。暗色单独压�?9%（tone-5 12%），
   让底色退回背景，只留 6px 色点和描边来认站点�?*/
[data-theme="dark"] .cat-card .chip.tone-0,
[data-theme="dark"] .cat-card .chip.tone-1,
[data-theme="dark"] .cat-card .chip.tone-2,
[data-theme="dark"] .cat-card .chip.tone-3,
[data-theme="dark"] .cat-card .chip.tone-4 { background: color-mix(in srgb, var(--tone-c) 9%, var(--panel)); }
[data-theme="dark"] .cat-card .chip.tone-5 { background: color-mix(in srgb, var(--tone-c) 12%, var(--panel)); }
/* 2026-11-03�?.16）：排头 48 个格子不再整块上色，改成「浅�?+ 描边 + 6px 色块」�?
   色块跟站点图标的颜色一致（tone-c），扫一眼能对上，也不会把整张卡染成彩纸屑�?*/
.cat-card .chip:hover { background: var(--inset); text-decoration: none; }
.cat-card .chip__mark { box-shadow: none; opacity: .7; font-size: 10px; padding: 0 0 0 1px; }
.chip__dot { width: 6px; height: 6px; flex: 0 0 auto; background: var(--tone-c, var(--line)); }
.chip__dot.tone-5 { box-shadow: inset 0 0 0 1px var(--line); }
.cat-card.is-hit { background: var(--hit-card);
  box-shadow:
    0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line),
    inset 4px 4px 0 0 var(--hi), inset -4px -4px 0 0 var(--lo),
    0 0 0 8px var(--hit-ring), 0 0 0 12px var(--line); }
.cat-card[hidden] { display: none; }

/* 「更多分类」折叠块�?2026-11-03�?.15）去掉了�?2 张卡全部平铺�?
   顶栏页签就是�?12 个类目，页面上一眼能看到全部类目，不会再和导航对不上�?*/

/* ---------- 新手�?/start/ ---------- */
.start-routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.start-routes .start-route { min-height: 64px; padding: 12px 14px; }
.start-block { margin: 0 0 18px; }
.console-list { display: grid; gap: 14px; margin-top: 14px; }
.console-block { background: var(--inset); padding: 12px 14px; }
.console-block__head {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-family: var(--font-ui); font-size: 24px; line-height: 1.2; -webkit-font-smoothing: none;
}
.console-block__head .ui { font-size: 12px; color: var(--muted); }
.console-block__intro { margin: 0 0 10px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.console-block__links { display: flex; flex-wrap: wrap; gap: 8px; }
.console-block__links .mini-tile { padding: 6px 10px; }
.console-block__links .ui { color: var(--muted); }
.step-list { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 14px; line-height: 1.75; }
.start-foot { margin-top: 18px; }

/* 类目卡里的重点网站九宫格�?×2）。chip 高度�?32 收到 28�?
   四行 chip 只占 62px，是卡内最该瘦的一块�?*/
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; margin-top: auto; }
.chip {
  font-family: var(--font-body); font-size: 12px; line-height: 1;
  color: var(--chip-fg); text-decoration: none; text-align: center;
  padding: 6px 2px; min-height: 26px; display: flex; align-items: center; justify-content: center; gap: 4px;
  margin: 2px; min-width: 0; white-space: nowrap; overflow: hidden;
  /* 2026-11-03�?.16 C3）：中性底色兜底。引用得到站点的 chip 会换成那个站的图标色
     （见下面�?.chip[class*="tone-"]），引用不到的（直链）就用这个�?*/
  background: var(--chip-teal);
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line), inset 2px 2px 0 0 rgba(255,255,255,.45);
}
/* 四格里的「英」角标：说明点进去是英文站，占位尽量小，名字放不下时先缩名字 */
.chip__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chip__mark {
  flex: 0 0 auto; font-size: 11px; line-height: 1; padding: 2px;
  box-shadow: inset 0 0 0 1px currentColor; opacity: .72;
}
/* 推广角的「推广」两字：站长自己收钱推广的位，链接带 nofollow�?
   写「推广」不写「广告」——这是给人看的说明，不是免责话术�?*/
.chip__promo {
  flex: 0 0 auto; font-size: 11px; line-height: 1; padding: 2px;
  background: var(--b-promo); color: var(--b-promo-fg);
}
.chip--promo { box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line), inset 2px 2px 0 0 rgba(255,255,255,.45); }
.chip--teal { background: var(--chip-teal); } .chip--yellow { background: var(--chip-yellow); }
/* 2026-11-03�?.16 C3）：类目卡里的四�?chip 不再整块换色——站点色下沉�?
   .chip__dot 那个 6px 方块（见上面�?.cat-card .chip 一段）�?
   原来的整�?tone 底色会把 12 张卡铺成一墙彩色纸屑�?*/
.chip:hover { text-decoration: underline; text-underline-offset: 3px; }
.chip:active { transform: translate(2px, 2px); }
.subs { display: flex; gap: 8px; width: 100%; justify-content: center; flex-wrap: wrap; margin-top: auto; }
.sub { flex: 1 1 0; justify-content: center; min-width: 0; padding: 10px 6px; white-space: nowrap; }

/* 标签页签（奶油黄�?*/
.label-tab {
  display: inline-block; margin: 0 0 16px; padding: 6px 12px;
  /* 2026-11-03�?.16 C1）：原来 36px，比分组标题�?group-head 24px）还大，
     层级是塌�?—�?「站点导航」「本类全部站点」这种区块标题不该压过组里的分组标题�?
     收到 24px 和分组标题齐平。手机端本来就是 24（下面媒体查询里那条），现在两边一致�?*/
  font-size: 24px; line-height: 1.2;
  background: var(--label); color: var(--label-fg);
  box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line);
  margin-left: 4px;
}
.main > .label-tab { margin-top: 36px; }

/* 站点导航那一行的头：左边区块标题，右边�? 个分�?· 162 个站」�?
   规模数字原来挂在首屏置顶行右端，站长要求上移到这一行�?*/
.site-list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 4px 16px; flex-wrap: wrap; margin-top: 20px;
  border-bottom: 1px solid var(--divider); padding-bottom: 8px;
}
/* 2026-11-09 19:47：原来这里是 24px 像素黄框标签（连同间距占约 93px），
   跟下面「单机游戏 共 64 个」重复了一次层级。现在压成 12px 小字 + 右侧统计同一行；
   黄框留给真正要强调的区块。 */
.site-list-head__title {
  margin: 0; font-size: 13px; line-height: 1.4; letter-spacing: .1em;
  color: var(--fg); font-weight: 500;
}
.site-list-head__meta {
  margin: 0; font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}

/* 更多入口 */
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mini-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--fg); text-decoration: none; background: var(--card); }
.mini-tile .ui { font-size: 12px; }
.mini-tile:active, .tool-card:active, .quick:active { transform: translate(4px, 4px); }

/* 侧栏 */
.side { display: grid; gap: 24px; }
.side-block { padding: 16px; background: var(--panel); }
.tool-card { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 16px; background: var(--card); color: var(--fg); text-decoration: none; }
.tool-card:last-child { margin-bottom: 4px; }
/* 工具页 grid 内末卡不享受 4px 特例，统一 16px：同行卡片等高，键盘测试不再突出 */
.tool-grid .tool-card:last-child { margin-bottom: 16px; }
.tool-card__body { display: flex; flex-direction: column; min-width: 0; }
.tool-card__title { font-family: var(--font-ui); font-size: 24px; line-height: 1.25; -webkit-font-smoothing: none; }
.tool-card__desc { font-size: 14px; line-height: 1.7; color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; color: var(--fg); text-decoration: none; text-align: center; }
.quick .ui { font-size: 12px; line-height: 1.3; }
.quick:hover .ui { text-decoration: underline; text-underline-offset: 3px; }

/* 底部状态栏 */
.statusbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--bar);
  box-shadow: 0 -4px 0 0 var(--line), 0 -8px 0 0 var(--lo);
  margin-top: 12px;
}
.seg {
  font-family: var(--font-ui); font-size: 24px; line-height: 1; -webkit-font-smoothing: none;
  padding: 8px 14px; color: var(--fg); background: var(--inset); border: 0;
  box-shadow: inset 4px 4px 0 0 var(--lo), inset -4px -4px 0 0 var(--hi);
}
.seg--on { background: var(--accent); color: var(--accent-fg); box-shadow: inset 4px 4px 0 0 var(--accent-lo), inset -4px -4px 0 0 var(--accent-hi); }
.seg--btn { font-size: 12px; padding: 12px 12px; cursor: pointer; }
.seg--btn:active { transform: translate(2px, 2px); }
.seg--btn[disabled] { cursor: not-allowed; color: var(--muted); }
.statusbar__note { margin-left: auto; font-family: var(--font-body); font-size: 12px; color: var(--fg); }
.statusbar__note a { color: var(--link); }

/* ---------- 响应�?---------- */
/* 页签整行摆放的临界点�?2 个页签约 816px，加上新 logo�?08�? 品牌�?+ 右侧搜索 220�?
   一行要�?1400px。窗口比这窄就别硬挤——整组换到第二行（品牌和搜索留第一行）�?
   比挤成「品�?页签 / 搜索单独一行」好看�?*/
@media (max-width: 1460px) {
  .tabs { order: 3; width: 100%; }
}
/* 1300 以下主栏被侧栏挤窄，8 个机种格排不下，flex 会把「SFC」「PSP」截成「S…」，
   这时允许换行，格子保持最小宽度（手机端另有横滑规则） */
@media (max-width: 1300px) and (min-width: 641px) {
  /* 藏掉左侧「按机种找怎么玩」的说明文字（容器本身有 aria-label），把宽度让�?8 个格子，
     这样 1200 上下仍然是一排；实在放不下才换行 */
  .hero__consoles-label { display: none; }
  .hero__consoles { flex-wrap: wrap; row-gap: 6px; }
  .console-tile { flex: 0 0 auto; min-width: 72px; }
}
@media (max-width: 1240px) {
  .topbar__tagline { display: none; }
  .cat-grid { gap: 16px; }
}
/* 1200 以下�?2 列：这一段侧栏还在，3 列时 chip 只剩 80 多像素，
   「RetroArch」「Anbernic」会被截成省略号�?
   �?026-11-03：类目从 12 缩到 6，桌�?3 列正好两行；2 列时排三行也齐。） */
@media (max-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  /* grid 子项默认 min-width:auto，tabs 横滑内容会把它顶宽、连带整页横向溢出，这里放开 */
  .main { min-width: 0; }
  .tabs { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding: 6px 4px 8px; scrollbar-width: thin; }
  .layout { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr 1fr; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { padding: 6px; }
  .screen { min-height: calc(100vh - 12px); }
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand__logo { height: 32px; }
  .brand__text { font-size: 24px; text-shadow: 2px 2px 0 var(--c-teal); }
  .tab { font-size: 12px; padding: 10px 10px; }
  .layout { padding: 16px 12px; gap: 20px; }
  .home-hero { margin-bottom: 12px; padding: 12px; gap: 8px; }
  .home-hero__title { font-size: 24px; line-height: 1.35; }
  .home-hero__sub { font-size: 13px; }
  /* 四条路线 2×2�? 个机种横向滑一排，右侧留出半截提示还能�?*/
  .hero__paths { grid-template-columns: 1fr 1fr; gap: 6px; }
  .start-route { min-height: 48px; padding: 8px 10px; }
  .hero__consoles { overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; }
  .hero__consoles::-webkit-scrollbar { display: none; }
  .console-tile { flex: 0 0 auto; }
  /* 置顶位同样横滑一排，别把首屏撑成两屏 */
  .hero__pins { overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; flex-wrap: nowrap; }
  .hero__pins::-webkit-scrollbar { display: none; }
  .hero__pins-label { display: none; }
  .pin-tile { flex: 0 0 auto; }
  /* 手机上置顶行是横滑的，链接会被挤到看不见的位置；总数在下面站点导航那行有�?*/
  .start-routes { grid-template-columns: 1fr 1fr; gap: 8px; }
  .console-block { padding: 10px; }
  .console-block__head { font-size: 12px; }
  /* 2026-11-03：类目从 12 缩到 6，手�?3 列只剩两行，chip 不用再往死里压�?
     �?3 列时 chip 只有 90 多像素宽，「RetroArch」会被截成「R…」，
     所以手机上每个卡只露前两个 chip（最常用的两个），单列铺满卡宽，
     并且不显示「英」小标——那个标在站点列表里已经有了�?
     两行�?�?300px，比原来 12 �?900px 短得多�?*/
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-card { padding: 6px 7px; gap: 5px; }
  .cat-card__head { gap: 6px; }
  /* 手机上卡头只�?90px 宽，再放�?2 个站」标题就被挤成一字一行了�?*/
  .cat-card__count { display: none; }
  .cat-card__title { font-size: 12px; line-height: 1.25; }
  /* 6 个类目里「折扣与云游戏」是 6 个字�? 列时放不下一行，允许折两行�?*/
  .cat-card__title a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .chips { gap: 3px; grid-template-columns: 1fr; }
  .cat-card .chip:nth-child(n+3) { display: none; }
  .cat-card .chip__mark { display: none; }
  /* 手机上每卡只�?2 �?chip，格子变宽了，就把高度还给手指：
     24px 的条�?390 宽上点错邻居的概率很高，30px 是「不挤又能点中」的折中�?*/
  .cat-card .chip { min-height: 30px; font-size: 11px; padding: 2px 4px; }
  /* 分类卡标题原来只有文字那 15px 能点，指头一偏就落到空白处；撑到整行宽高 */
  .cat-card__title { flex: 1 1 auto; min-width: 0; }
  .cat-card__title a { display: block; width: 100%; padding: 4px 0; }
  .cat-card__orb { width: 22px; height: 22px; } .cat-card__orb::before { inset: 3px; } .cat-card__orb .pxi { width: 13px; height: 13px; }
  .sub { flex-basis: 100%; }
  .side { grid-template-columns: 1fr; }
  .mini-grid { gap: 16px; }
  .seg { font-size: 12px; padding: 8px 10px; }
  .statusbar__note { margin-left: 0; width: 100%; }
  .searchbar { flex-wrap: wrap; gap: 8px; }
  .searchbar .px-input-wrap { flex-basis: 100%; }
}

/* 防止长内容撑破网格（移动端页签横向滚动） */
.screen { grid-template-columns: minmax(0, 1fr); }
.tabs { min-width: 0; max-width: 100%; }
.topbar { gap: 16px; }
.tab { padding: 8px 6px 9px; }
@media (max-width: 640px) { .tab { padding: 10px 8px; } }

/* 2026-11-03�?.16）：12 个类目页签在 1600 以下一行放不下，原�?flex 换行会排�?
   11 + 2（第二行只剩「云游戏 + 文章」），看着像没排完�?
   这一段改�?6 列定宽栅格，12 个类目正�?6 + 6 两行，行�?4px�?
   「文章」在这个宽度里收进右上角那个入口（页签行末尾那个黄块在窄屏会�?
   第二行撑成一条黄带，重复且抢眼）�?600 以上仍是一�?+ 黄块�?*/
@media (min-width: 1001px) and (max-width: 1599px) {
  /* 2026-11-12（方案 B）：列数跟着页签数走，不再写死 6 列。
     现在实际只有 5 个类目页签（「文章」在这一区间隐藏），写死 6 列会让
     导航带的底线右端多出一格没字的空白。grid-auto-flow:column 让 N 颗均分整行，
     以后加类目也不用再回来改这个数。gap 跟着基础规则收到 2px，底线才连得上。 */
  .tabs { order: 3; width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
  .tabs > * { min-width: 0; }
  .tabs__sep { display: none; }
  .tab { padding: 8px 4px 9px; display: flex; align-items: center; justify-content: center; text-align: center; }
  .tab.tab--blog { display: none; }
}

/* 配色预览切换器（状态栏�?*/
.switcher { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.switcher__label { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.seg--btn[aria-pressed="true"], .seg--btn[aria-selected="true"], .seg--btn.is-on { background: var(--accent); color: var(--accent-fg); box-shadow: inset 4px 4px 0 0 var(--accent-lo), inset -4px -4px 0 0 var(--accent-hi); }
.pal-dot { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; box-shadow: 0 0 0 2px var(--line); }
.pal-dot--teal { background: #3ed6b5; } .pal-dot--indigo { background: #a596ff; } .pal-dot--candy { background: #ff5d8f; } .pal-dot--mustard { background: #f0bd1f; }

/* ========== 快捷入口（首页自用高频网站） ========== */
/* 2026-11-07 追加：标题在图外，框里只放链接（跟 deal-sec 那些区块同一套结构） */
.quickbar { margin: 24px 4px 26px; }
.quickbar__title { margin: 0 0 10px 2px; }
.quickbar__hint { font-size: 11px; color: var(--muted); margin-left: 8px; font-weight: normal; letter-spacing: 0; }
.quickbar__list { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
/* 站外快捷入口：轻的一档。无框、灰字、带 ↗——和上面有框的类目卡明确分开�?
   因为点它是要离开本站，属于附带工具，不该和类目抢视觉�?*/
.qlink {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 4px; text-decoration: none; color: var(--muted);
  transition: background .12s steps(2);
}
.qlink:hover, .qlink:focus-visible { background: var(--card); color: var(--fg); }
.qlink__ico {
  width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--orb-c, var(--accent)); color: #10141c;
  font-family: var(--font-pixel); font-size: 11px; line-height: 1;
}
.qlink__name { font-family: var(--font-body); font-size: 12px; line-height: 1; white-space: nowrap; }
/* 外链箭头：和类目卡的「站内」形成对照，点了是离开本站 */
.qlink__out { font-size: 11px; line-height: 1; color: var(--muted); margin-left: -2px; }
@media (max-width: 640px) {
  .quickbar { margin: 2px 4px 22px; }
  .quickbar__list { padding: 12px; gap: 6px; }
  .qlink { padding: 5px 9px 5px 5px; gap: 6px; }
  .qlink__ico { width: 20px; height: 20px; font-size: 12px; }
}

/* ========== 站点列表（紧凑站点卡，按分类分组�?========== */
.site-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 20px 4px; }
.site-legend__note { font-size: 14px; color: var(--muted); }
.site-list { display: grid; gap: 28px; }
/* 一级分组标题（分类页的「复古专区导航」「折扣史低导航」）�?
   2026-11-03（v1.3）：36px �?24px。原�?brand / hero / group-head 全是 36px�?
   三个层级读起来一样大，页面像一整块没有主次。降�?24 后与 hero �?36 拉开�?
   层级顺序变成 36（首页主张）> 24（分组）> 16（子分组），不用�?hero 抬到 48�?
   首屏也不会再增高�?*/
.group-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 24px; line-height: 1.25; margin: 0 0 14px; padding: 0 170px 10px 0;
  background: repeating-linear-gradient(90deg, var(--divider) 0 4px, transparent 4px 8px) left bottom / 100% 4px no-repeat;
}
.group-head__count { font-size: 16px; color: var(--muted); }
.group-head__more { margin-left: auto; font-size: 12px; color: var(--link); }
/* 二级标题：类目内的子分组（装机用：装机资�?/ 系统驱动），占满网格一整行�?
   2026-11-03：原来是黄底像素框，跟上面那排筛�?chip 长得一模一样，
   读的人分不清「哪个能点」。改成左�?4px 色条 + 虚线底，是标题不是按钮，
   黄底只留给区块标题和筛选里的当前项�?*/
.sub-head {
  grid-column: 1 / -1; justify-self: stretch;
  display: flex; align-items: baseline; gap: 8px;
  margin: 20px 0 4px; padding: 0 0 6px 10px;
  font-size: 16px; line-height: 1.3;
  color: var(--fg);
  border-left: 4px solid var(--accent);
  border-bottom: 2px dotted var(--divider);
}
.sub-head:first-child { margin-top: 0; }
.sub-head__count { font-size: 12px; color: var(--muted); }
.sub-head__note { font-size: 12px; color: var(--muted); margin-left: 4px; }
/* 2026-11-05（MUSE 执行文件 3.5）：二级标题上的延伸页链接 */
.sub-head__link { margin: 0 10px 0 auto; font-size: 12px; color: var(--muted); text-decoration: none; }
.sub-head__link:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
/* 2026-11-05：只有链接、没有站点卡的分组（掌机复古的「社区」）。
   这些站在别的分组或别的类目里已经出现过，这里只放入口，不重复计数。 */
.sub-links {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 8px;
}
.sub-link {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-body); font-size: 12px;
  background: var(--panel);
}
.sub-link__cat { font-size: 11px; color: var(--muted); }
.site-grid {
  display: grid;
  /* 按最小卡宽自适应列数：写�?4 列时首页主栏只有 239px/列，名字区只�?118px�?
     会截断近一半�?026-11-03 站名字号�?24 收到 18、描述限定一行，300 可以降到 264�?
     名字�?�?90px，最长站名放得下，同一屏能多排一列。容器窄就自动少一列�?*/
  /* 2026-11-12：最小值 264 定的是「最窄能到多窄」，列宽由 1fr 均分。
     2200 以上主栏 1556 时只排得下 5 列，单列被撑到 302px（1920 是 266px）。
     想让更宽的单卡回落到 264 一档，就得把最小值降到 248 让它排 6 列（单卡 245），
     两个数只能二选一：5 列大卡 / 6 列小卡。注意别改成 minmax(264px, 288px)——
     auto-fill 会按上限算列数，1920 会从 5 列掉回 4 列。 */
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 12px;
}
/* 站点卡：2026-11-03 整体收一档（参照常见导航站的条目密度）；
   2026-11-05 再收一档：36 → 30 图标、卡高 72 → 60，一屏能多放两行。
   再往下压会挤掉描述的第二行，就停在这里。 */
.site-card {
  align-content: center;
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto;
  /* 2026-11-03：卡收窄后（270px）徽标占 69px，站名只�?127px�?
     「Retro Game Corps」需�?147px 被截成「Retro Game …」�?
     改成站名横跨�?2�? 列独占首行，徽标下沉到描述行右侧�?
     站名拿到整行宽度（≈200px），全部 169 个站名都能单行显示�?*/
  grid-template-areas: "ico name name" "ico desc badge";
  column-gap: 8px; row-gap: 2px; align-items: center;
  position: relative;
  /* 2026-11-12：原来只有 min-height:60px —— 描述一行的卡就是 60，两行的是 75，
     同一组里量出来 60/75 两种高度，行与行对不齐（实测 grid#0 两种都有）。
     统一到 78px，一行两行都撑满同一高度，卡片才真正一样大。 */
  min-height: 78px; padding: 8px; margin: 2px;
  background: var(--card); color: var(--fg); text-decoration: none;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line),
    inset 2px 2px 0 0 var(--hi), inset -2px -2px 0 0 var(--lo);
}
/* 2026-11-03�?.16 C2）：站点卡悬停给一点反�?—�?只换底色�?
   不加位移、不加阴影放大、不�?scale�?
   四角框（.sel）是选中态，悬停不重复它�?
   --hit-card 是调色板里预留的「注意这张卡」底色，明暗两套下都比卡片底色更醒目�?*/
.site-card:hover, .site-card:focus-visible { background: var(--hit-card); }

/* 四角框原来向�?12px，正好压到隔壁卡的边线上，像没对齐的碎片�?
   站点卡自己已经有 2px 边，角标贴着自己的边画，读起来才是「框住这一张」�?*/
.site-card.sel::after { inset: 0; }
.site-card:active { transform: translate(2px, 2px); }
.site-card__ico {
  grid-area: ico; position: relative; width: 30px; height: 30px; display: grid; place-items: center;
  clip-path: var(--orb-sh, var(--orb)); background: var(--line);
  font-family: var(--font-ui); font-size: 12px; line-height: 1; color: var(--icon-ink); -webkit-font-smoothing: none;
}
.site-card__ico::before {
  content: ""; position: absolute; inset: var(--orb-inset, 2px);
  clip-path: var(--orb-sh, var(--orb)); background: var(--orb-c, var(--c-teal));
}
.site-card__ico b { position: relative; font-weight: normal; }

/* ---------- 站点图标差异化：6 种形�?× 6 档色�?----------
   原来同类目下几十个站共用同一个圆�?+ 同一个色，扫一遍列表分不清谁是谁�?
   形状和色调由 tools/build.js 按站�?id 稳定哈希分配（sh-0~5 / tone-*），
   这里只负责长什么样。形状都�?clip-path 多边形画，边缘仍是硬像素�?*/
.sh-1 { --orb-sh: polygon(0 0, 100% 0, 100% 100%, 0 100%); }                                   /* 直角�?*/
.sh-2 { --orb-sh: polygon(12.5% 0, 87.5% 0, 87.5% 12.5%, 100% 12.5%, 100% 87.5%, 87.5% 87.5%,
        87.5% 100%, 12.5% 100%, 12.5% 87.5%, 0 87.5%, 0 12.5%, 12.5% 12.5%); }                  /* 小圆角方 */
.sh-3 { --orb-sh: polygon(0 0, 87.5% 0, 100% 12.5%, 100% 100%, 12.5% 100%, 0 87.5%); }          /* 对角切角 */
.sh-4 { --orb-sh: polygon(37.5% 0, 62.5% 0, 100% 37.5%, 100% 62.5%, 62.5% 100%, 37.5% 100%,
        0 62.5%, 0 37.5%); --orb-inset: 3px; }                                                   /* 像素菱形 */
.sh-5 { --orb-sh: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
        --orb-inset: 3px; }                                                                     /* 像素六边�?*/

/* 色调：先在类目色的色相环上转一个角度，再留一档「淡」�?
   一开始是往调色板里别的色混，但 --c-teal �?--c-mint 本来就只差一点，
   混完肉眼分不出，整页扫下去还是一片青；直接改色相才拉得开�?
   亮度基本不动（只微调），是因为图标里的字是深色的，底色一暗就糊�?*/
/* 兜底（不支持相对颜色语法的浏览器）：混色，差异小但不会坏�?*/
.tone-0 { --tone-c: var(--orb-base); }
.tone-1 { --tone-c: color-mix(in srgb, var(--orb-base) 58%, var(--c-mint)); }
.tone-2 { --tone-c: color-mix(in srgb, var(--orb-base) 58%, var(--c-yellow)); }
.tone-3 { --tone-c: color-mix(in srgb, var(--orb-base) 58%, var(--c-sky)); }
.tone-4 { --tone-c: color-mix(in srgb, var(--orb-base) 64%, var(--c-grape)); }
.tone-5 { --tone-c: color-mix(in srgb, var(--orb-base) 52%, #ffffff); }
/* 站点图标从这里取色（值和以前一样，只是换了个变量名）�?
   2026-11-03�?.16 C3）：抽成 --tone-c 是为了让 chip 也能用同一�?—�?
   类目卡里的四�?chip 改成跟它指向的站点图标一个颜色�?*/
.site-card__ico.tone-0 { --orb-c: var(--tone-c); }
.site-card__ico.tone-1 { --orb-c: var(--tone-c); }
.site-card__ico.tone-2 { --orb-c: var(--tone-c); }
.site-card__ico.tone-3 { --orb-c: var(--tone-c); }
.site-card__ico.tone-4 { --orb-c: var(--tone-c); }
.site-card__ico.tone-5 { --orb-c: var(--tone-c); }
/* 主用：只在色相环上转，感知亮度（L）和彩度（C）都不动�?
   这里必须�?oklch 而不�?hsl——hsl �?l 是算数平均值，同样�?70%�?
   蓝紫看着就比黄绿暗一大截，底色一暗图标里的深色字就糊了�?
   �?必须写在上面的兜底之后：@supports 不改变级联顺序，放前面会被盖掉�?*/
@supports (color: oklch(from red l c h)) {
  .tone-1 { --tone-c: oklch(from var(--orb-base) calc(l + .012) c calc(h + 50)); }
  .tone-2 { --tone-c: oklch(from var(--orb-base) calc(l + .012) c calc(h - 50)); }
  .tone-3 { --tone-c: oklch(from var(--orb-base) calc(l + .05) calc(c * .92) calc(h + 95)); }
  .tone-4 { --tone-c: oklch(from var(--orb-base) calc(l + .05) calc(c * .92) calc(h - 95)); }
  .tone-5 { --tone-c: oklch(from var(--orb-base) calc(l + .055) calc(c * .72) h); }
}
.site-card__name { grid-area: name; min-width: 0; font-family: var(--font-ui); font-size: 18px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-font-smoothing: none; }
/* 徽标组：一张卡上可能同时有「外�?↗」「英文」「需加速」，并排放在名字右侧�?
   2026-11-03（v1.3 第九节）由单个徽标改成容器，旧类 .site-card__badge 保留给每颗小徽标�?*/
/* 2026-11-03：徽标改放描述行右侧。卡收窄后（270px）徽标挤在站名后面，
   站名只剩 127px，「Retro Game Corps」需�?147px 被截成「Retro Game …」�?
   改成站名横跨�?2�? 列独占首行（拿到整行 205px），徽标下到描述行，
   谁都不挡谁�?*/
.site-card__badges { grid-area: badge; justify-self: end; align-self: center; display: flex; align-items: center; gap: 2px; }
.site-card__badge { grid-area: badge; justify-self: end; }
/* 语言 / 可访问性徽标：描边 + 同底色，和实心的「外�?/ 推广」分开—�?
   它们说的是「这站怎么用」，不是「这站是什么」�?2px 像素字�?px 直角边�?*/
.px-badge--lang, .px-badge--proxy {
  background: var(--card); padding: 3px 5px;
  box-shadow: inset 0 0 0 2px var(--line);
}
.px-badge--lang { color: var(--muted); }
.px-badge--proxy { color: var(--fg); box-shadow: inset 0 0 0 2px var(--accent); }
.site-card__desc { grid-area: desc; min-width: 0; font-size: 12px; line-height: 1.4; color: var(--fg-soft, var(--fg));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 普通外链（最常见）只显示 �?符号，文字留给读屏；B�?/ 推广 / 友链 显示文字 */
.site-card__badge--min .site-card__badge-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-card[hidden], .site-group[hidden], .sub-head[hidden] { display: none; }
/* ---------- P3-2 语义类：新样式一律挂这里�?sel 保留但不再新�?---------- */
.site-card.is-external { /* 语义标记：这张卡跳第三方站，样式沿用 .sel */ }
.site-card.is-owner-pick { order: 1; }          /* v1.3 R1：第三方资源站永远排在组末，不抢首位 */
.site-card__time { margin-left: 8px; font-family: var(--font-body); font-size: 12px; color: var(--muted); white-space: nowrap; }
.is-active { outline: 2px solid var(--sel); outline-offset: 1px; }   /* 当前项：�?aria-current 成对出现 */
/* 列数交给 auto-fill，这里不再写�?3 / 2 �?*/
@media (max-width: 640px) {
  .site-list { gap: 20px; }
  .group-head { font-size: 12px; line-height: 1.5; gap: 8px; padding-right: 72px; }
  .group-head__count, .group-head__all { font-size: 12px; }
  .label-tab { font-size: 24px; padding: 4px 8px; }
  .sub-head { margin-top: 8px; padding: 3px 8px; font-size: 13px; }
  .site-grid { gap: 8px; }
  .site-card__badge-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359px) { .site-grid { grid-template-columns: 1fr; } }

/* =========================================================
   以下为正式站点追加的样式（首页之外：内容页、页脚、折叠侧栏）
   ========================================================= */

/* ---------- 像素字：全局关闭抗锯齿（AC-5�?---------- */
.brand__text, .tab, .seg, .chip, .group-head, .label-tab, .cat-card__title,
.site-card__name, .site-card__ico, .tool-card__title, .switcher__label,
.px-badge, .px-btn, .px-tag, .crumb, .pagefoot, .page-hero__kicker,
.page-hero__meta, .gameover__title, .gameover__sub, .gameover__hint,
.post-card__date, .prose code, .prose th, .prose .ui,
.ui, h1, h2, h3, .num {
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

/* ---------- 像素滚动条（AC-7�?---------- */
* { scrollbar-width: thin; scrollbar-color: var(--line) var(--inset); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--inset); }
::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid var(--inset); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--inset); }

/* ---------- 内容页外�?---------- */
.screen > * { min-width: 0; }
.page-wrap { width: 100%; max-width: 940px; margin: 0 auto; padding: 28px 24px 0; min-width: 0; }
/* 列表类页面（分类�?/ 工具�?/ 新手页）放宽�?1180�?40 只适合正文�?
   分类页要放站点卡�?40 时只能排 3 列，右边的留白全浪费了。正文页仍用 940�?*/
.page-wrap--wide { max-width: 1300px; }  /* 2026-11-12：和首页同一个 1300 内容框，换页不跳宽；正文页仍是 940 */
/* 2026-11-16：全站文章页整列放宽到 1280。
   2026-11-09 曾收窄到 780（正文一行约 44 字），但史低文章 8 列表格在 780 下
   被迫横向滚动、宽屏下整列显窄；1100 仍觉窄，再放到 1280 让表格与配图充分铺开。
   prose 仍有 32px 36px 内边距，正文行宽可控。 */
.page-wrap--post { max-width: 1280px; }
/* 2026-11-17：文章列表页与详情页同宽 1280。
   原来列表 940 / 详情 1280，点进点出整列宽度跳 340px，是「排版混乱」的主因之一。
   只作用于 /blog/ 与文章分类页，不碰其他正文页。 */
.page-wrap--blog { max-width: 1280px; }
/* 容器放宽后介绍段会拉�?1100 多像素长行，读起来累，限制到 780 */
.page-wrap--wide .page-hero__intro { max-width: 780px; }
.page-wrap--center { display: grid; place-items: center; min-height: 62vh; padding-top: 48px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--link); text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumb span[aria-hidden] { color: var(--divider); }

.page-hero { margin: 0 0 24px; padding-left: 4px; }
.page-hero__kicker { font-size: 12px; line-height: 1; color: var(--accent-text); margin: 0 0 12px; letter-spacing: .12em; }
.page-hero__title { font-size: 36px; line-height: 1.25; margin: 0; text-shadow: 3px 3px 0 var(--c-teal); }
.page-hero__meta { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.page-hero__meta time { margin-right: 12px; }
.page-hero__meta .dot { color: var(--divider); margin: 0 8px; }

/* ---------- 正文排版�?prose�?---------- */
.prose { padding: 32px 36px; min-width: 0; max-width: 100%; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 18px; font-size: 15px; line-height: 1.8; }
.prose h2 { position: relative; font-size: 24px; line-height: 1.4; margin: 40px 0 16px; padding-left: 16px; }
.prose h2::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 20px; background: var(--accent); }
.prose h3 { font-size: 24px; line-height: 1.4; margin: 32px 0 12px; color: var(--accent-text); }
.prose h4 { font-size: 15px; line-height: 1.6; margin: 24px 0 8px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 4px; list-style: none; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 15px; line-height: 1.8; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; background: var(--accent2); box-shadow: 0 0 0 2px var(--line); }
.prose ol { counter-reset: ol; }
.prose ol > li { counter-increment: ol; }
.prose ol > li::before { content: counter(ol, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-body); font-size: 12px; color: var(--accent-text); line-height: 1.9; }
.prose li > ul, .prose li > ol { margin: 8px 0 0; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { background: var(--inset); }
.prose strong { color: var(--fg); font-weight: 700; }
.prose em { font-style: italic; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; background: var(--inset); border-left: 4px solid var(--accent); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 4px; margin: 32px 0; background: repeating-linear-gradient(90deg, var(--divider) 0 4px, transparent 4px 8px); }
.prose code { font-family: var(--font-body); font-size: 12px; background: var(--inset); padding: 2px 5px; box-shadow: 0 0 0 2px var(--line); margin: 0 2px; }
.prose pre { margin: 20px 4px; padding: 16px; background: var(--inset); box-shadow: 0 0 0 4px var(--line); overflow-x: auto; }
.prose pre code { background: none; box-shadow: none; padding: 0; margin: 0; font-size: 12px; line-height: 1.7; display: block; white-space: pre; }
.prose .table-wrap { margin: 20px 0; overflow-x: auto; padding: 4px; min-width: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--divider); }
.prose th { font-family: var(--font-body); font-size: 12px; color: var(--fg); background: var(--bar); border-bottom: 3px solid var(--line); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose img { display: block; max-width: 100%; height: auto; margin: 20px auto; box-shadow: 0 0 0 4px var(--line); }
.prose figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- 文章阅读层：去像素化，保留站外壳识别 ---------- */
.page-wrap--post .page-hero__title {
  font-family: var(--font-body);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.035em;
  text-shadow: none;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  font-smooth: auto;
}
.page-wrap--post .prose { font-size: 16px; line-height: 1.85; }
.page-wrap--post .prose p,
.page-wrap--post .prose li { font-size: inherit; line-height: inherit; }
.page-wrap--post .prose h2,
.page-wrap--post .prose h3,
.page-wrap--post .prose h4 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: none;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  font-smooth: auto;
}
.page-wrap--post .prose h2 { margin: 44px 0 18px; padding-left: 15px; font-size: 27px; line-height: 1.35; }
.page-wrap--post .prose h2::before { top: 7px; width: 6px; height: 24px; border-radius: 2px; }
.page-wrap--post .prose h3 { margin: 32px 0 14px; color: var(--accent-text); font-size: 21px; line-height: 1.45; }
.page-wrap--post .prose h4 { margin: 24px 0 10px; font-size: 17px; line-height: 1.5; }
.page-wrap--post .prose blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--divider);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--inset);
}

/* ---------- 史低 / 好价文章语义表格 ----------
   只增强构建器标记的 .deal-table；普通文章表格不受 nth-child 影响。 */
.table-swipe-hint { display: none; margin: -12px 0 10px; color: var(--muted); font-size: 11px; text-align: right; }
.prose .deal-table-wrap {
  position: relative;
  margin: 24px 0 30px;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-margin-top: 72px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  scrollbar-color: var(--line) var(--inset);
}
.prose table.deal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
}
.prose .deal-table th,
.prose .deal-table td {
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--divider);
  background: var(--deal-row-bg, var(--card));
}
.prose .deal-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  background: var(--bar);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  white-space: nowrap;
}
.prose .deal-table tbody tr { --deal-row-bg: var(--card); }
.prose .deal-table tbody tr:nth-child(even) { --deal-row-bg: var(--panel); }
.prose .deal-table tbody tr:hover { --deal-row-bg: var(--inset); }
.prose .deal-table tbody tr:last-child td { border-bottom: 0; }
.prose .deal-table .col-index { width: 46px; min-width: 46px; color: var(--muted); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.prose .deal-table .col-name { min-width: 174px; color: var(--fg); font-size: 15px; font-weight: 750; }
.prose .deal-table .col-version,
.prose .deal-table .col-region { min-width: 116px; color: var(--muted); font-size: 12px; }
.prose .deal-table .col-price { min-width: 128px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose .deal-table th.col-price { text-align: right; }
.prose .deal-table .price-main { display: block; color: var(--accent-text); font-size: 18px; font-weight: 850; line-height: 1.25; letter-spacing: -.025em; }
.prose .deal-table .price-sub { display: block; max-width: 190px; margin-top: 5px; color: var(--muted); font-size: 10.5px; font-weight: 400; line-height: 1.5; white-space: normal; }
.prose .deal-table .col-deadline { min-width: 112px; color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose .deal-table .col-note { min-width: 270px; color: var(--muted); font-size: 12.5px; }
.prose .deal-table .mobile-subline { display: none; }
.prose .deal-table .tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin: 0 5px 3px 0;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  vertical-align: 1px;
  white-space: nowrap;
}
.prose .deal-table .tag--new { border-color: var(--accent); background: var(--bar); color: var(--accent-text); }
.prose .deal-table .tag--normal { border-color: var(--divider); background: var(--inset); color: var(--muted); }
.prose .deal-table .tag--low { border-color: var(--accent); background: transparent; color: var(--accent-text); }
.prose .deal-table .tag--expired { border-color: var(--divider); background: var(--inset); color: var(--muted); }
.prose .deal-table .tag--ending { border-color: var(--line); background: var(--label); color: var(--label-fg); }
.prose .deal-table tr.is-expired .col-name,
.prose .deal-table tr.is-expired .price-main { color: var(--muted); }
.prose .deal-table tr.is-expired .price-main { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--divider); }
.prose .deal-table tr.is-ending .price-main { color: var(--fg); }

/* ---------- 文章列表 ---------- */
.post-list { display: grid; gap: 20px; }
/* 2026-11-17 文章区重做：列表改「竖卡两列」，封面 16:9 完整显示在标题上方。
   原来一行一张横卡（168×94 缩略图 + 右侧文字），一屏只放 4 张、封面上半被裁；
   改成两列竖卡后一屏放 6 张，封面按原始比例完整露出。 */
.post-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; color: var(--fg); text-decoration: none; background: var(--card); align-content: start; }
.post-card__date { font-size: 12px; color: var(--accent-text); }
.post-card__title { font-size: 24px; line-height: 1.35; margin: 0; }
.post-card__summary { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }
.post-card__more { font-family: var(--font-body); font-size: 12px; color: var(--link); }
.post-card:hover .post-card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- 文章翻页 ---------- */
.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 8px; }
.page-nav a { display: grid; gap: 6px; padding: 16px 18px; background: var(--card); color: var(--fg); text-decoration: none; font-family: var(--font-body); font-size: 12px; }
.page-nav .dir { color: var(--muted); }
.page-nav .to { font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
.page-nav a:last-child:nth-child(odd), .page-nav a:only-child { grid-column: 1 / -1; }

/* ---------- 侧栏最新文�?---------- */
.side-post { display: grid; gap: 4px; padding: 10px 12px; margin-bottom: 8px; background: var(--card); color: var(--fg); text-decoration: none; }
.side-post:last-child { margin-bottom: 0; }
.side-post__date { font-family: var(--font-body); font-size: 12px; color: var(--accent-text); }
.side-post__title { font-size: 14px; line-height: 1.5; }
.side-post:hover .side-post__title { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 GAME OVER ---------- */
.gameover { text-align: center; padding: 48px 32px; max-width: 620px; }
.gameover__title { font-size: 36px; line-height: 1.1; margin: 0 0 8px; color: var(--accent-text); letter-spacing: .08em; text-shadow: 4px 4px 0 var(--line); }
.gameover__sub { font-size: 24px; line-height: 1.3; margin: 0 0 20px; }
.gameover__text { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0 0 28px; }
.gameover__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.gameover__hint { font-size: 12px; color: var(--muted); margin: 28px 0 0; letter-spacing: .2em; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: .25; } }

/* ---------- 工具占位�?---------- */
.tool-soon { text-align: center; padding: 48px 32px; display: grid; justify-items: center; gap: 16px; }
.tool-soon__title { font-size: 24px; margin: 0; }
.tool-soon__text { margin: 0; color: var(--muted); }
.tool-soon__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- 页脚（备案号等） ---------- */
.pagefoot { padding: 16px 20px 20px; border-top: 4px dotted var(--divider); margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.pagefoot__line, .pagefoot__meta { margin: 0; font-family: var(--font-body); font-size: 12px; line-height: 1.6; color: var(--muted); }
.pagefoot__links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--font-body); font-size: 12px; }
.pagefoot__links a { color: var(--link); text-decoration: none; }
.pagefoot__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pagefoot__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-left: auto; }
.pagefoot__meta a { color: var(--link); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pagefoot__meta a:hover { text-decoration: underline; }
.pagefoot__meta img { width: 16px; height: 16px; }
.pagefoot__copy { color: var(--muted); }

/* ---------- 侧栏折叠（手机端�?---------- */
.side { display: block; }
.side-inner { display: grid; gap: 24px; }
.side-details__summary { display: none; }

/* ---------- 响应式：新增�?---------- */
@media (max-width: 1000px) {
  .side-inner { grid-template-columns: 1fr 1fr; }
  .page-hero__title { font-size: 24px; }
  .gameover__title { font-size: 24px; text-shadow: 3px 3px 0 var(--line); }
}
@media (max-width: 640px) {
  .side-inner { grid-template-columns: 1fr; }
  .side-details__summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; min-height: 48px; cursor: pointer;
    background: var(--card); color: var(--fg);
    font-family: var(--font-body); font-size: 12px;
    box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
    margin: 2px; list-style: none;
  }
  .side-details__summary::-webkit-details-marker { display: none; }
  .side-details__hint { color: var(--muted); }
  .side-details[open] .side-details__hint::after { content: "▾"; }
  .side-details:not([open]) .side-details__hint::after { content: "▸"; }
  .side-details[open] .side-inner { margin-top: 20px; }
  .page-wrap { padding: 20px 12px 0; }
  .page-hero { margin-bottom: 20px; }
  .page-hero__title { font-size: 24px; text-shadow: 2px 2px 0 var(--c-teal); }
  .prose { padding: 20px 16px; }
  .prose h2 { font-size: 24px; margin: 28px 0 12px; }
  .prose h3 { font-size: 12px; line-height: 1.8; margin: 24px 0 8px; }
  /* 2026-11-17：竖卡封面要贴到卡片边，外面那圈内边距挪进 .post-card__body。 */
  .post-card { padding: 0; }
  .post-card__title { font-size: 20px; }
  .page-nav { grid-template-columns: 1fr; gap: 12px; }
  .gameover { padding: 32px 16px; }
  .gameover__sub { font-size: 12px; }
  .gameover__actions .px-btn { width: 100%; justify-content: center; }
  .tool-soon { padding: 32px 16px; }
  .pagefoot { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 12px 20px; }
  .pagefoot__meta { margin-left: 0; }
  /* 手机状态栏只保留两组切换（AC-15�?*/
  .seg--on, .seg--hide-sm, #motion-toggle { display: none; }
}

/* ---------- 触控目标 �?44px ---------- */
@media (max-width: 1000px) {
  .page-wrap--post .page-hero__title { font-size: 32px; }
}
@media (max-width: 640px) {
  .page-wrap--post .page-hero__title { font-size: 28px; }
  .page-wrap--post .prose { font-size: 15.5px; line-height: 1.82; }
  .page-wrap--post .prose h2 { margin: 36px 0 12px; font-size: 23px; }
  .page-wrap--post .prose h3 { margin: 28px 0 10px; font-size: 19px; }
  .page-wrap--post .prose blockquote { padding: 15px 16px; }
  .table-swipe-hint { display: block; }
  .prose .deal-table-wrap { margin-left: -6px; margin-right: -6px; border-radius: 10px; }
  .prose table.deal-table { width: 700px; min-width: 700px; table-layout: fixed; }
  .prose .deal-table th,
  .prose .deal-table td { width: auto !important; min-width: 0 !important; max-width: none; padding: 12px 10px; }
  .prose .deal-table col { min-width: 0 !important; max-width: none; }
  .prose .deal-table col.col-index { width: 32px; }
  .prose .deal-table col.col-name { width: 160px; }
  .prose .deal-table col.col-price { width: 132px; }
  .prose .deal-table col.col-deadline { width: 112px; }
  .prose .deal-table:not(.deal-table--dated) col.col-note { width: 376px; }
  .prose .deal-table--dated col.col-note { width: 264px; }
  .prose .deal-table .col-index { position: sticky; left: 0; z-index: 2; }
  .prose .deal-table th.col-index { z-index: 5; }
  .prose .deal-table .col-name { position: sticky; left: 32px; z-index: 2; box-shadow: 5px 0 0 var(--divider); }
  .prose .deal-table th.col-name { z-index: 5; }
  .prose .deal-table .col-version,
  .prose .deal-table .col-region { display: none; }
  .prose .deal-table td.col-name,
  .prose .deal-table td.col-price,
  .prose .deal-table td.col-deadline,
  .prose .deal-table td.col-note { white-space: normal; overflow-wrap: anywhere; }
  .prose .deal-table .mobile-subline { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.35; }
  .prose .deal-table .price-main { white-space: nowrap; font-size: 16px; }
}
@media (pointer: coarse) {
  .chip { min-height: 44px; padding: 12px 6px; }
  .sub, .px-btn { min-height: 44px; }
  .tab { min-height: 44px; }
  .seg--btn { min-height: 44px; }
  .quick { min-height: 44px; }
  .mini-tile { min-height: 56px; }
  .site-card { min-height: 84px; }
}

/* ---------- 手机端站点导航单列（AC-13�?---------- */
@media (max-width: 640px) {
  .site-grid { grid-template-columns: 1fr; }
  .site-card { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "ico name name" "ico desc badge"; column-gap: 8px; min-height: 64px; padding: 9px 10px; }
  .site-card__ico { width: 30px; height: 30px; }
}

/* ---------- 搜索时高�?---------- */
.site-card[hidden], .site-group[hidden], .cat-card[hidden] { display: none; }
.cat-grid[hidden] { display: none; }

/* ---------- 顶栏可换行（窄屏页签横向滚动�?---------- */
@media (max-width: 1000px) {
  .tabs { scrollbar-width: none; }
  .tabs::-webkit-scrollbar { height: 0; }
}

/* ---------- 站点图标（自托管 16px 图片，加载失败退回首字） ---------- */
.site-card__ico img { position: absolute; width: 20px; height: 20px; z-index: 1; image-rendering: pixelated; }

/* ---------- 公安备案图标 ---------- */
.psb-ico { vertical-align: -2px; margin-right: 4px; }
/* 2026-11-23：图标从自画 SVG 换成平台给的 36×40 PNG，按原尺寸一半显示（高分屏也清楚）。*/
img.psb-ico { width: 18px; height: 20px; display: block; vertical-align: middle; image-rendering: auto; }
.pagefoot__icp { color: var(--muted); }

/* ---------- 桌面端侧栏跟随滚�?---------- */
@media (min-width: 1001px) {
  .side { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto; overflow-x: hidden; }
}

/* ---------- 宽屏：外壳随视口放大，避免两侧留出大片空�?---------- */
@media (min-width: 1500px) {
  .screen { max-width: 1560px; }
  /* 2026-11-12 站长反馈「PC 上宽度这么少、边上空着」：
     上面几档只放大外壳、内容框却钉死 1300，屏幕上就空出一圈。
     内容框跟着外壳走——外壳多宽，内容就铺多宽。
     1440 屏不触发这段，仍是原来的 1300，等于没动。 */
  .layout { max-width: none; width: 100%; }
  .page-wrap--wide { max-width: none; }
}
@media (min-width: 1800px) {
  .screen { max-width: 1780px; }
}
@media (min-width: 2200px) {
  .screen { max-width: 1980px; }
  .layout { grid-template-columns: minmax(0, 1fr) 360px; }
}


/* ==========================================================================
   v2 新增组件�?026-11-02 审核意见落地�?
   约定：全部直角；不加缩放/弹跳；像素边�?box-shadow 拼，不用 border-radius�?
   ========================================================================== */

/* ---------- 顶栏右侧：小搜索 + 文章/工具 ---------- */
.topbar__links { margin-left: auto; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.topbar__link { font-family: var(--font-body); font-size: 12px; line-height: 1; color: var(--link); text-decoration: none; padding: 8px 6px; }
.topbar__link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* 2026-11-03�?.16）：1600 以上页签行里已经有「文章」黄块，右上角这个文字入口会
   和它并排出现两个「文章」（相隔不到 300px），所以这一档藏掉文字入口；
   1600 以下页签行里没有黄块，文字入口保留，保证「文章」始终有一个入口�?*/
@media (min-width: 1600px) { .topbar__link--blog { display: none; } }
.mini-search { display: flex; }
.mini-search__input {
  font-family: var(--font-body, inherit); font-size: 14px; color: var(--fg);
  background: var(--card); width: 128px; padding: 7px 9px; min-height: 32px;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
  border: 0; outline: 0;
}
.mini-search__input:focus { box-shadow: 0 -2px 0 0 var(--sel), 0 2px 0 0 var(--sel), -2px 0 0 0 var(--sel), 2px 0 0 0 var(--sel), 0 0 0 3px var(--hit-ring); }

/* ---------- 页签改成链接�?---------- */
a.tab { text-decoration: none; color: var(--fg); }
a.tab.is-cur { background: var(--accent); color: var(--accent-fg); }
.tabs a.tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- 吸顶�?+ 分类快速跳转条 ---------- */
.stickytop { display: grid; gap: 10px; }
.tabstrip { display: none; gap: 4px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabstrip::-webkit-scrollbar { height: 0; }
.tabstrip__item {
  flex: 0 0 auto; white-space: nowrap; font-family: var(--font-body); font-size: 12px; line-height: 1;
  color: var(--fg); text-decoration: none; padding: 12px 10px; min-height: 44px; display: grid; place-items: center;
  background: var(--card); box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.tabstrip__item.is-cur { background: var(--accent); color: var(--accent-fg); }

/* ---------- 手机端底部栏 ---------- */
.bottombar { display: none; }
@media (max-width: 640px) {
  .bottombar {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--bar); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: inset 0 2px 0 0 var(--line);
  }
  .bottombar__btn {
    display: grid; place-items: center; gap: 2px; min-height: 48px; padding: 4px 2px;
    font-family: var(--font-body); font-size: 12px; line-height: 1; color: var(--muted);
    text-decoration: none;
  }
  .bottombar__btn:active { color: var(--accent-text); }
  .bottombar__ico { font-size: 16px; line-height: 1; }
  /* 手机首屏没有顶栏类目页签（铁律 ≤640 无页签），类目入口全在底栏「分类」里。
     给它实心底 + 强调色，让访客一眼看到「去哪进分类」。 */
  .bottombar__btn[data-sheet="cats"] {
    background: var(--accent); color: var(--accent-fg);
    box-shadow: inset 2px 2px 0 0 var(--accent-hi);
  }
  .screen { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .tabs { display: none; }
  .tabstrip { display: flex; }
  .stickytop {
    position: sticky; top: 0; z-index: 30; margin: 0 -12px 12px; padding: 8px 12px 4px;
    background: var(--bg); box-shadow: 0 2px 0 0 var(--divider);
  }
  .stickytop.is-tight .searchbar { margin-bottom: 0; }
  .stickytop.is-tight .px-input { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
  .topbar__links { gap: 4px; }
  .mini-search { display: none; }
  .topbar__link { display: none; }
}

/* ---------- 底部弹出面板 ---------- */
.sheet { border: 0; padding: 0; background: transparent; max-width: 100%; width: 100%; margin: auto 0 0; }
.sheet::backdrop { background: rgba(20,18,40,.55); }
.sheet__box { background: var(--panel); box-shadow: inset 0 3px 0 0 var(--line); padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet__item {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px;
  font-size: 14px; color: var(--fg); text-decoration: none; background: var(--card);
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.sheet__wide { display: flex; justify-content: center; margin-top: 10px; width: 100%; }
.switcher--sheet { margin: 0 0 10px; flex-wrap: wrap; }
.switcher--sheet .seg--btn { min-height: 44px; }
/* 桌面端：这两个面板原来只会从手机底栏弹出，所以样式写成了整宽底贴�?
   bottom sheet。桌面点「设置」时它会变成一条横贯全屏的白板，内容挤在左边�?
   这里�?�?41px 一个居中面板：定宽 + 像素外框 + 内部滚动�?*/
@media (min-width: 641px) {
  .sheet {
    width: min(600px, calc(100vw - 64px));
    max-height: calc(100vh - 64px);
    margin: auto;
    box-shadow: 0 0 0 4px var(--line), 8px 8px 0 0 var(--lo);
  }
  .sheet__box { padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); max-height: calc(100vh - 64px); overflow: auto; }
  .sheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet__head { font-size: 14px; }
}

/* ---------- 分组：details 折叠；「查看全部」在 summary 外，避免嵌套可交�?---------- */
.site-group { position: relative; margin: 0 0 18px; }
.site-group details { margin: 0; }
.site-group summary.group-head { list-style: none; cursor: pointer; }
.site-group summary.group-head::-webkit-details-marker { display: none; }
.site-group summary.group-head::before { content: "▸"; font-family: var(--font-ui); font-size: inherit; }
.site-group details:not([open]) > summary.group-head::before { content: "▸"; }
/* 标题字号跟着 .group-head 走（桌面 24px，手�?12px），别再单写 12px�?
   否则桌面分组标题只有正文一半大�?2 个类目看起来像一排小字�?*/
.group-head__name { font-family: var(--font-ui); font-size: inherit; -webkit-font-smoothing: none; }
.group-head__all {
  position: absolute; right: 0; top: 2px; z-index: 1;
  font-family: var(--font-ui); font-size: 24px; color: var(--link); text-decoration: none;
  padding: 6px 2px; -webkit-font-smoothing: none;
}
.group-head__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.group-toggle { display: block; width: 100%; justify-content: center; margin-top: 8px; }
/* display:block 会盖过浏览器默认的 [hidden]，搜索或展开后必须显式收起按钮。 */
.group-toggle[hidden] { display: none; }
.site-group .group-head__count { font-family: var(--font-ui); -webkit-font-smoothing: none; }

/* ---------- 文章卡（带缩略图�?---------- */
/* 2026-11-09 20:20（文章区 B 方案）：缩略图 96×54 → 168×94。
   题图原图 1200×675，原来缩到 1/12 像占位图；放大后封面才算被用上。
   缩小比放大更需平滑，image-rendering 改 auto（产品图早就是这么做的）。 */
/* 2026-11-17：竖卡封面用 aspect-ratio 锁 16:9，永远完整、不再裁切。
   覆盖掉旧的 168×94 固定尺寸规则（那条是横卡时代的）。 */
.post-card__thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: auto; box-shadow: 0 0 0 2px var(--line); }
.post-card__body { display: grid; gap: 6px; min-width: 0; padding: 14px 16px 16px; align-content: start; }
.post-card__flag { display: inline-block; margin-right: 8px; padding: 1px 6px; background: var(--accent); color: var(--accent-fg); font-family: var(--font-body); font-size: 12px; line-height: 1.5; vertical-align: 1px; }
.post-card__title { font-size: 20px; line-height: 1.4; margin: 0; }
.post-list--compact .post-card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
.post-list--compact .post-card__thumb { width: 96px; height: 54px; }
.side-post { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; }
/* 2026-11-17：侧栏「最新文章」缩略图改为完整显示整张封面。
   原来 48×48 + object-fit:cover 会把 1200×675 横图裁成正方形中间一块，
   封面两侧关键信息被切掉，看着像「显示不全」。改 contain + 浅底，整图缩小完整可见。 */
.side-post__thumb { position: relative; width: 48px; height: 48px; overflow: hidden; box-shadow: 0 0 0 2px var(--line); flex: 0 0 auto; background: var(--inset); display: grid; place-items: center; }
.side-post__thumb img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; display: block; }
.side-post__body { display: grid; gap: 3px; min-width: 0; }
.side-more { display: block; margin-top: 10px; font-size: 12px; color: var(--link); text-decoration: none; }
.side-more:hover { text-decoration: underline; }

/* ---------- 文章题图 ---------- */
.post-cover { margin: 0 0 20px; padding: 6px; background: var(--card); box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line); }
/* 2026-11-17：去掉 max-height:300px。原来 1200×675 被裁成 1280×300 横条，
   上下各切掉约 193px（57%），主题图内容全丢。现在按原比例完整铺开。 */
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }

/* ---------- 分类落地�?---------- */
.page-hero__intro { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 14px 0 0; max-width: 68ch; }
.count-note { margin-left: 8px; color: var(--muted); font-size: 12px; }
.cat-rel { margin-top: 26px; }
/* 分类页站点多、容器窄，阈值放宽到 280 保住密度（名字区 �?65px，最多一两个长名省略）�?
   自选页站点少，仍用 300，避免卡片过宽显空�?*/
/* 分类页栅格跟首页同一套（264 最小宽），不再单独放宽——容器已经用 .page-wrap--wide 变宽�?*/

/* ---------- 文章筛选与分页 ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filter-row .chip { min-height: 36px; padding: 10px 10px; }
/* 分类页的子分类切换：这排 chip 是按钮不是链接，去掉浏览器默认的按钮外观 */
.cat-subs { margin: 0 0 16px; }
.cat-subs .chip { border: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cat-subs .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.cat-subs .chip[aria-pressed="true"] .ui { color: inherit; opacity: .75; }
/* 首页分组里的那一排：分组标题本身已经 24px，chip 再大就抢戏了，收一档�?
   分组是折叠的，chip 条也跟着一块收起——这�?details 的默认行为，不用额外处理�?*/
.cat-subs--group { margin: 0 0 12px; gap: 6px; }
.cat-subs--group .chip { min-height: 28px; padding: 6px 8px; font-size: 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0 0; }
.pager__now { color: var(--muted); font-size: 12px; }

/* ---------- 站长自选页 ---------- */
.picks-note { padding: 20px 22px; margin-bottom: 22px; }
.picks-note .body-text + .body-text { margin-top: 8px; }
.site-card--pick { grid-template-columns: 40px minmax(0, 1fr) auto; }
/* picks 页卡片数量少，别按主站的 4 列排，不然每张卡只有一百多像素�?*/
.site-grid.picks-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.picks-grid .site-card { padding: 12px 14px; }
.px-badge--pick { background: var(--accent2); color: var(--accent2-fg); }
.picks-grid .site-card__desc { grid-column: 2 / -1; }
.picks-qa { margin-top: 26px; }
.picks-qa__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.picks-qa__item { padding: 16px 18px; }
.picks-qa__q { font-family: var(--font-body); font-size: 12px; line-height: 1.5; color: var(--fg); margin: 0 0 8px; }
.picks-qa__q::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px; background: var(--accent); }
.picks-qa__a { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0; }

/* ---------- 联系方式与邮箱防�?---------- */
.contact-box { margin-top: 22px; padding: 20px 22px; }
.mail { font-family: var(--font-body, inherit); }
.mail__at { color: var(--muted); }
.mail-copy { margin-left: 10px; min-height: 36px; }
.pagefoot__mail { color: var(--muted); margin: 0 10px 0 0; }
.pagefoot__mail .mail-copy { display: none; }
/* 页脚邮箱：href �?JS 补，补上之前也要长得像可点的东西 */
.pagefoot__mail a.mail { color: var(--link); text-decoration: none; cursor: pointer; }
.pagefoot__mail a.mail:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 搜索结果扩展 ---------- */
.search-extra { margin: 22px 0 0; }
.search-extra__group { margin-bottom: 14px; }
.search-extra__title { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.search-extra__list { display: grid; gap: 8px; }
/* 2026-11-20：搜索到的站点是一行站名 + 右侧「打开 ›」。
   不能套 .side-post（那个有 48px 缩略图列，会把站名挤成一字一行）。 */
.search-hit {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; background: var(--card); color: var(--fg);
  text-decoration: none; font-size: 14px; line-height: 1.5;
}
.search-hit__go { flex: 0 0 auto; font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.search-hit:hover { text-decoration: underline; text-underline-offset: 3px; }
.search-hit:hover .search-hit__go { color: var(--accent-text); }

/* ---------- 侧栏：随机发�?/ 公告 / 新机 ---------- */
.found, .side-news, .side-notice { display: grid; gap: 4px; padding: 10px 12px; margin-top: 10px; background: var(--card); color: var(--fg); text-decoration: none; }
.found__label, .side-news__label { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.found__link { font-size: 14px; color: var(--link); text-decoration: none; }
.found__link:hover, .side-news__title:hover { text-decoration: underline; }
.side-news__title { font-size: 14px; line-height: 1.5; }
.side-notice { font-size: 14px; line-height: 1.7; }

/* ---------- 广告位（这一版默认不输出，样式先备好�?---------- */
.ad-slot { display: grid; gap: 6px; margin: 22px 0; padding: 10px; background: var(--inset); min-height: 96px; }
.ad-slot__tag { justify-self: start; font-family: var(--font-body); font-size: 12px; line-height: 1; padding: 4px 6px; color: var(--accent2-fg); background: var(--accent2); }

/* ---------- 推广�?---------- */
.products { margin: 22px 0; padding: 16px 18px; background: var(--card); }
.products__title { font-family: var(--font-body); font-size: 12px; color: var(--accent2-fg); background: var(--accent2); display: inline-block; padding: 5px 8px; margin: 0 0 10px; }
.products__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.products__list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 14px; }
.products__note { color: var(--muted); font-size: 13px; }
.products__tip { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ---------- 工具页通用 ---------- */
.tool-panel { padding: 22px 22px 26px; }
.tool-form { display: grid; gap: 14px; }
.tool-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
/* 工具页的表单控件单独画框：这里没�?.px-input-wrap 包着，得自己长出�?*/
.field .px-input {
  width: 100%;
  font-size: 16px;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--card);
  color: var(--fg);
  font-family: var(--font-body);
  box-shadow:
    0 calc(-1 * var(--px)) 0 0 var(--line),
    0 var(--px) 0 0 var(--line),
    calc(-1 * var(--px)) 0 0 0 var(--line),
    var(--px) 0 0 0 var(--line),
    inset 3px 3px 0 0 var(--lo);
}
.field .px-input:hover { background: var(--inset); }
.field .px-input:focus-visible,
.field .px-input:focus { outline: none; background: var(--inset); }
.field .px-input:focus-visible {
  box-shadow:
    0 calc(-1 * var(--px)) 0 0 var(--focus),
    0 var(--px) 0 0 var(--focus),
    calc(-1 * var(--px)) 0 0 0 var(--focus),
    var(--px) 0 0 0 var(--focus),
    inset 3px 3px 0 0 var(--lo);
}
.field select.px-input { padding-right: 32px; cursor: pointer; }
.field textarea.px-input { min-height: 96px; resize: vertical; line-height: 1.7; }
.field .px-input::placeholder { color: var(--muted); opacity: 1; }
.check-row { display: flex; flex-wrap: wrap; gap: 12px; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; min-height: 44px; }
.tool-hint, .tool-note-inline { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- 手柄测试�?tools/pad/�?---------- */
.pad-hint { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 12px; }
.pad-hint b { color: var(--fg); }
.pad-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.pad-head__name { font-family: var(--font-ui); font-size: 16px; color: var(--fg); -webkit-font-smoothing: none; }
.pad-head__meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pad-head__acts { display: flex; gap: 8px; }
.pad-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
.pad-sub { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: normal; letter-spacing: 1px; margin: 0 0 8px; }
.pad-sub__n { color: var(--accent); margin-left: 6px; }
.pad-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pad-key { position: relative; min-height: 46px; padding: 4px 6px; background: var(--card); box-shadow: 0 0 0 2px var(--line), 2px 2px 0 0 var(--lo); display: flex; flex-direction: column; justify-content: center; }
.pad-key__idx { position: absolute; top: 2px; left: 4px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pad-key__name { font-size: 11px; line-height: 1.3; text-align: center; margin-top: 8px; }
.pad-key__val { font-size: 10px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; min-height: 12px; }
.pad-key.is-on { background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--line), inset 2px 2px 0 0 var(--accent-hi); }
.pad-body.is-idle .pad-key { opacity: .45; }
.pad-body.is-idle .pad-axis { opacity: .45; }
.pad-key.is-on .pad-key__idx, .pad-key.is-on .pad-key__val { color: #fff; opacity: .85; }
.pad-axes { display: grid; gap: 8px; }
.pad-axis { display: grid; grid-template-columns: 76px minmax(0, 1fr) 52px; align-items: center; gap: 8px; font-size: 12px; }
.pad-axis__name { color: var(--muted); }
.pad-axis__track { position: relative; height: 12px; background: var(--inset); box-shadow: inset 0 0 0 2px var(--line); }
.pad-axis__fill { display: block; height: 100%; width: 50%; background: var(--accent); }
.pad-axis__mid { position: absolute; left: 50%; top: 0; width: 2px; height: 100%; background: var(--line); opacity: .55; }
.pad-axis__val { text-align: right; font-variant-numeric: tabular-nums; }
.pad-axis.is-live .pad-axis__name { color: var(--fg); }
.pad-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 10px 0 0; }

/* ---------- 键鼠测试�?tools/key/�?---------- */
.kb { margin-bottom: 18px; }
.kb .pad-sub { display: flex; align-items: center; gap: 10px; }
.kb-reset { margin-left: auto; min-height: 32px; font-size: 12px; padding: 4px 12px; }
.kb-board { display: grid; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.kb-row { display: flex; gap: 4px; }
/* 方向键：3 列固�?44px，靠右，跟真�?104 键一�?*/
.kb-nav { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; justify-content: end; margin-top: 8px; }
.kb-key--nav { flex: none; width: 44px; }
.kb-nav__gap { display: block; }
/* 手机上键位图缩到 20px 就没法看了：给它一个最小宽度，整块横向�?*/
@media (max-width: 760px) {
  .kb { overflow-x: auto; }
  .kb-board { min-width: 700px; }
  .kb-cols { grid-template-columns: 1fr; }
}
.kb-key { flex: 1 1 0; min-width: 0; min-height: 40px; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 12px; background: var(--card); box-shadow: 0 0 0 2px var(--line), 2px 2px 0 0 var(--lo); cursor: default; }
.kb-key--wide { font-size: 11px; }
.kb-key.is-on { background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--line), inset 2px 2px 0 0 var(--accent-hi); }
.kb-gap { flex: 0 0 auto; }
.kb-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kb-read { margin: 0; font-size: 13px; }
.kb-read dt { float: left; clear: left; width: 108px; color: var(--muted); }
.kb-read dd { margin: 0 0 8px 108px; font-variant-numeric: tabular-nums; word-break: break-all; }
.kb-mouse { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.kb-mbtn { flex: 1 1 auto; min-width: 64px; min-height: 34px; display: flex; align-items: center; justify-content: center; font-size: 12px; background: var(--card); box-shadow: 0 0 0 2px var(--line), 2px 2px 0 0 var(--lo); }
.kb-mbtn.is-on { background: var(--accent); color: #fff; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.tool-actions .px-btn { min-height: 44px; }
.tool-out { margin-top: 18px; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tool-table th, .tool-table td { padding: 10px 8px; text-align: left; vertical-align: middle; }
.tool-table thead th { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.tool-table tbody tr { box-shadow: inset 0 -1px 0 0 var(--divider); }
.tool-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { display: inline-block; width: 72px; height: 10px; background: var(--inset); margin-right: 8px; vertical-align: -1px; }
.bar i { display: block; height: 100%; background: var(--accent); }
/* 结论先行：大多数人只想知道「这个预算能玩到什么程度」�?*/
.budget-verdict {
  margin: 0 0 12px; padding: 10px 12px; font-size: 15px; line-height: 1.6;
  background: var(--inset); box-shadow: inset 0 0 0 2px var(--line);
}
.budget-verdict b { color: var(--accent-text); }
.budget-table td:first-of-type { width: 96px; }.budget-table th:nth-child(2), .budget-table td:nth-child(2) { width: 104px; white-space: nowrap; }
.budget-table .bar { width: 44px; margin-right: 6px; }
.budget-spec { color: var(--muted); margin-left: 6px; font-size: 13px; }
.budget-table tr.is-reserved th,
.budget-table tr.is-reserved td { color: var(--muted); }

.psu-sub { font-size: 12px; color: var(--muted); margin: 6px 0 0; -webkit-font-smoothing: none; }
.psu-ladder { margin-top: 8px; }
.psu-ladder th[scope="row"] { font-weight: normal; width: 40%; }
.psu-ladder thead th:nth-child(2), .psu-ladder tbody td:nth-child(2) { text-align: right; width: 22%; }
.psu-ladder thead th:nth-child(3), .psu-ladder tbody td:nth-child(3) { width: 22%; }
.psu-ladder tr.is-ok th[scope="row"] { color: var(--accent-text); }
.psu-ladder tr.is-warn th[scope="row"] { color: var(--accent2-lo); }
.psu-ladder tr.is-bad th[scope="row"] { color: var(--muted); text-decoration: line-through; }
.psu-ladder tr.is-bad td { color: var(--muted); }

.tool-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: start; }
/* 配置单：左边表单要宽（一行三个控件），右边是竖图，给够高度才看得�?*/
.tool-split--build { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); }
.tool-preview { display: grid; gap: 10px; justify-items: stretch; position: sticky; top: 14px; }
.share-shot {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; position: relative; box-shadow: 0 0 0 3px var(--line);
}
.share-shot:hover, .share-shot:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.share-preview { display: block; width: 100%; height: auto; }
.share-shot__hint {
  position: absolute; right: 6px; bottom: 6px; padding: 3px 7px;
  font-size: 11px; line-height: 1.4; background: var(--fg); color: var(--bg); opacity: .74;
}
.tool-badges { display: grid; gap: 8px; }
.tool-badge { font-size: 13px; line-height: 1.5; padding: 8px 10px; background: var(--inset); }
.tool-badge--ok { background: var(--chip-teal); color: var(--chip-fg); }
.tool-badge--warn { background: var(--accent2); color: var(--accent2-fg); }
.tool-badge--bad { background: var(--accent); color: var(--accent-fg); }

/* ---------- 配置单的配件�?---------- */
.kit { display: grid; gap: 6px; }
.kit-head, .kit-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 92px; gap: 8px; align-items: center; }
.kit-head { font-family: var(--font-body); font-size: 12px; color: var(--muted); padding: 0 2px; }
.kit-head span:last-child { text-align: right; }
.kit-row__label { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.kit-row .px-input {
  width: 100%; font-size: 16px; min-height: 44px; padding: 8px 10px;
  background: var(--card); color: var(--fg); font-family: var(--font-body);
  box-shadow:
    0 calc(-1 * var(--px)) 0 0 var(--line),
    0 var(--px) 0 0 var(--line),
    calc(-1 * var(--px)) 0 0 0 var(--line),
    var(--px) 0 0 0 var(--line),
    inset 3px 3px 0 0 var(--lo);
}
.kit-row .px-input:hover { background: var(--inset); }
.kit-row .px-input:focus { outline: none; background: var(--inset); }
.kit-row select.px-input { padding-right: 28px; cursor: pointer; }
.kit-row select option:disabled { color: var(--muted) !important; background: var(--inset); opacity: .65; }
.kit-row select option.is-current-conflict { color: var(--accent2-fg) !important; background: var(--accent2); }
.kit-row input.px-input { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 图片放大 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 140; box-sizing: border-box;
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px;
  border: 0; overflow: auto; color: inherit; display: grid; place-items: center;
  gap: 12px; background: rgba(14, 12, 34, .84);
}
.lightbox:not([open]), .lightbox[hidden] { display: none; }
.lightbox::backdrop { background: transparent; }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 1; }
.lightbox img {
  max-width: min(92vw, 780px); max-height: 84vh; width: auto; height: auto;
  box-shadow: 0 0 0 3px var(--line);
}
.lightbox__tip { margin: 0; font-size: 12px; color: #e9e7f7; opacity: .8; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox__close { top: 8px; right: 8px; }
}

.psu-out { display: grid; gap: 14px; }
.psu-empty { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.7; color: var(--muted); background: var(--inset); }
.psu-empty b { color: var(--fg); }
.psu-num { display: grid; gap: 6px; justify-items: start; padding: 16px 18px; background: var(--card); box-shadow: 0 0 0 3px var(--line); }
.psu-num__label { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.psu-num__val { font-family: var(--font-ui); font-size: 48px; line-height: 1; color: var(--accent-text); -webkit-font-smoothing: none; }
.psu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.psu-list li { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 14px; }
.psu-list span { color: var(--muted); }

.tier-tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; align-items: center; }
/* 型号多起来以后要能找：搜索框贴在这一行右端，不额外占一行�?
   .field .px-input 那套是给表单列用的，这里单独给样式�?*/
.tier-search {
  margin-left: auto; min-width: 200px; max-width: 260px; min-height: 36px;
  padding: 6px 10px; font: inherit; font-size: 14px; color: var(--fg);
  background: var(--card); border: 0; border-radius: 0;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.tier-search:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) { .tier-search { margin-left: 0; width: 100%; max-width: none; } }
.tier-grid { display: grid; gap: 12px; }
/* 列名：和 .tier-row__list li 用同一套栅格，才能对齐 */
.tier-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 84px 60px 64px 40px;
  gap: 8px; max-width: 680px; margin: 0 0 8px 14px;
  font-family: var(--font-body); font-size: 12px; color: var(--muted);
 
}
.tier-head.no-price { grid-template-columns: minmax(0, 1fr) 84px 60px 40px; }
.tier-head span:nth-child(2), .tier-head span:nth-child(3), .tier-head span:nth-child(4) { text-align: right; }
.tier-row { padding: 12px 14px; }
.tier-row__title { font-family: var(--font-body); font-size: 12px; color: var(--accent-text); margin: 0 0 8px; }
.tier-row__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 680px; }
.tier-row__list li { display: grid; grid-template-columns: minmax(0, 1fr) 84px 60px 64px 40px; gap: 8px; align-items: center; font-size: 14px; }
.tier-row__list.no-price li { grid-template-columns: minmax(0, 1fr) 84px 60px 40px; }
.tier-row__meta { color: var(--muted); font-size: 13px; text-align: right; }
.tier-row__src { font-size: 12px; color: var(--link); }

.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sc-card { padding: 14px 16px; }
.sc-card__title { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.sc-card__big { font-family: var(--font-ui); font-size: 32px; line-height: 1; color: var(--accent-text); margin: 0 0 10px; -webkit-font-smoothing: none; }
.sc-card__big .ui { font-size: 12px; }
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.sc-list li { display: flex; justify-content: space-between; gap: 8px; }
.sc-list span { color: var(--muted); }

.cmp-table th[scope="row"] { width: 96px; color: var(--muted); font-weight: normal; white-space: nowrap; }
.cmp-table td.is-best { color: var(--accent-text); font-weight: bold; }
/* 两台填得完全一样的行压灰，剩下的行才是「差别在哪」�?*/
.cmp-table tr.is-same > th, .cmp-table tr.is-same > td { color: var(--muted); opacity: .72; }
/* 分组的隔断行：屏�?/ 性能 / 机身，三块之间不用再靠猜 */
.cmp-table tr.cmp-group > th {
  padding: 12px 0 4px; border: 0; text-align: left;
  font-family: var(--font-body); font-size: 12px; color: var(--accent-text);
 
}
.cmp-table tr.cmp-group + tr > th, .cmp-table tr.cmp-group + tr > td { border-top: 0; }
.hh-rank__title {
  margin: 12px 0 6px; font-family: var(--font-ui); font-size: 16px;
  color: var(--fg); -webkit-font-smoothing: none;
}
.hh-rank td, .hh-rank th { font-size: 13px; }
.hh-rank .num { text-align: right; font-variant-numeric: tabular-nums; }
/* 机型名与厂商同一行：原来厂商独占第二行，把每行撑到 60px，131 行就是 7984px 长尾 */
.hh-rank__vendor { display: inline; margin-left: 6px; color: var(--muted); font-size: 12px; }
/* 排行上方的筛选条：比�?/ 平台 / 排序 */
/* 2026-11-24 A 档：六组筛选各占一行横向滚动，宽屏按两列摆。
   平铺时 34 颗按钮在 1440 下占 196px、手机 424px（12 行），第一行表格被顶到 925px 之外。 */
.hh-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: center; margin: 12px 0 0; }
@media (min-width: 700px) { .hh-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; } }
/* 2026-11-24：宽屏排三列，六组正好两行（两列时要三行 144px，表格被顶出首屏）。 */
@media (min-width: 1100px) { .hh-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hh-filters__label {
  font-family: var(--font-body); font-size: 12px; color: var(--muted);
  margin-right: 2px;
}
/* 全库排行表头的一句说明：2026-11-15 起不再输出内部口径 */
.hh-rank__note { margin: 0 0 10px; }
.hh-filters .seg--btn { min-height: 32px; padding: 6px 10px; font-size: 12px; }
/* 品牌组单独一行横向滚动：29 颗牌子平铺会把筛选条撑到 260px（手机 15 行），
   压得下面的排行表首屏就看不见。这一行永远只占一行高，滑一下就能看到全部牌子。 */
.hh-filters__row { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center;
  min-width: 0; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hh-filters__row .seg--btn { flex: 0 0 auto; }
.hh-filters__row .hh-filters__label { flex: 0 0 auto; }
/* 筛选折叠：桌面始终展开；手机只先显示搜索与一行摘要，结果不再被六排按钮顶走。 */
.hh-filter-disclosure { margin-top: 10px; }
.hh-filter-disclosure__summary {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 10px; cursor: pointer; list-style: none;
  background: var(--card); color: var(--fg); box-shadow: 0 0 0 2px var(--line);
  font-family: var(--font-body); font-size: 13px;
}
.hh-filter-disclosure__summary::-webkit-details-marker { display: none; }
.hh-filter-disclosure__summary::after { content: "+"; color: var(--accent-text); font-size: 18px; }
.hh-filter-disclosure[open] .hh-filter-disclosure__summary::after { content: "−"; }
.hh-filter-disclosure__summary span { margin-left: auto; color: var(--muted); font-size: 12px; }
.hh-filter-select { min-width: 0; }
.hh-filter-select__label { display: block; margin-bottom: 4px; font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.hh-filter-select .px-input { min-height: 38px; }
.hh-filter-chips { display: contents; }
/* 2026-11-09 二次改版：一次性铺全的「展开全部」按钮已删，改成分页（样式见 .hh-pager）。 */
/* 机身示意�?+ 一句话判断 */
/* 表头机型缩略图（2026-11-09）：原来图在表格下面的「机身与屏幕」卡片区，
   看参数得往下翻才认得出是哪台，现在挪进表头，抬头就是同一台机器。 */
.cmp-wrap { overflow-x: auto; }
.cmp-table thead th[scope="col"] { text-align: center; vertical-align: bottom; }
.hh-thumb { display: block; width: 100%; height: 132px; margin: 0 auto 6px; object-fit: contain; image-rendering: pixelated; }
/* p- 开头的是透明底产品图，关掉 pixelated（NEAREST 缩放照片会出硬锯齿） */
.hh-thumb--photo { image-rendering: auto; }
.hh-thumb__name { display: block; font-family: var(--font-body); font-size: 13px; line-height: 1.4; color: var(--fg); }
.hh-art { display: block; width: 100%; height: 132px; margin: 0 auto 6px; }
.hh-rank__name { display: flex; align-items: center; gap: 8px; }
.hh-mini { width: 36px; height: 27px; flex: 0 0 auto; object-fit: contain; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line); }
/* 产品图本身是透明底，套实心描边等于框住一片空白，所以去掉边框 */
.hh-mini--photo { image-rendering: auto; box-shadow: none; }

/* ---------- 开源掌机数据库改版（2026-11-09） ----------
   原来一进页面就是对比表，现在数据库列表是主体，对比是可选项：
   对比区在列表上方，可收起；每行最右边一个「对比」按钮往里塞。 */
.hh-cmp { margin: 0 0 24px; }
.hh-cmp__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.hh-cmp__bar .hh-rank__title { margin: 0; }
.hh-cmp__toggle { min-height: 32px; padding: 6px 10px; font-size: 12px; }
/* 收起后只留一条窄条：一展开就把数据库列表整张顶下去，看完想回列表还得滚 */
.hh-cmp--closed { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.hh-cmp--closed .spec-note { margin: 0; }
/* 只选一台时的单机预览（2026-11-09 站长要求）：左边掌机图，右边八项参数。
   选第二台就自动换成并排对比表，同一块位置不跳。 */
.hh-one {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 12px 14px; background: var(--inset); box-shadow: inset 0 0 0 2px var(--line);
}
.hh-one__pic { flex: 0 0 200px; max-width: 200px; display: flex; align-items: center; justify-content: center; }
/* 产品图是透明底，给足高度按比例缩，别拉变形 */
.hh-shot { display: block; width: 100%; height: 150px; object-fit: contain; image-rendering: pixelated; }
.hh-shot--photo { image-rendering: auto; }
.hh-one__pic .hh-art { height: 150px; margin: 0; }
.hh-one__body { flex: 1 1 260px; min-width: 0; }
.hh-one__sub { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
/* 标签和值贴在一起读，别用 space-between 把值推到行尾——那样眼要横跨半个屏幕找对应关系。
   窄屏一列、宽屏两列，八项正好四行。 */
.hh-one__specs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 28px; margin: 0; font-size: 13px; }
.hh-one__specs > div { display: flex; gap: 8px; padding-bottom: 4px; box-shadow: inset 0 -1px 0 0 var(--divider); }
.hh-one__specs dt { flex: 0 0 4.2em; color: var(--muted); white-space: nowrap; }
.hh-one__specs dd { margin: 0; min-width: 0; }
@media (min-width: 700px) {
  .hh-one__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 手机上图片独占一行：给满 width 才居中，否则 200px 的框贴在左边，右边空一大片 */
@media (max-width: 699px) {
  .hh-one__pic { flex: 1 1 auto; max-width: none; }
  .hh-shot, .hh-one__pic .hh-art { height: 128px; }
}
.hh-one__hint { margin: 10px 0 0; }

/* ---------- 单选详情常驻区（2026-11-24 A 档） ----------
   放在检索区下方、表格上方，永远占位：点行就填内容，不点就一句提示。
   以前选一台只出一条「已选 X」的折叠窄条，等于看不到任何参数。 */
.hh-detail { margin: 6px 0 2px; }
.hh-detail:empty { display: none; }
.hh-detail__empty { margin: 0; font-size: 12.5px; }
.hh-detail__card {
  padding: 12px 14px; background: var(--inset); box-shadow: inset 0 0 0 2px var(--line);
}
.hh-detail__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.hh-detail__pic { flex: 0 0 180px; max-width: 180px; display: flex; align-items: center; justify-content: center; }
.hh-detail__pic .hh-shot, .hh-detail__pic .hh-art { height: 132px; }
.hh-detail__id { flex: 1 1 240px; min-width: 0; }
.hh-detail__name { margin: 0 0 4px; font-size: 17px; }
.hh-detail__groups {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 28px; margin-top: 12px;
}
@media (min-width: 700px) {
  .hh-detail__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .hh-detail__groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hh-detail__gt {
  margin: 8px 0 4px; font-size: 12px; color: var(--muted); font-weight: 400;
  letter-spacing: .04em;
}
.hh-detail__specs { margin: 0; font-size: 13px; }
.hh-detail__specs > div { display: flex; gap: 8px; padding-bottom: 3px; }
.hh-detail__specs dt { flex: 0 0 4.6em; color: var(--muted); white-space: nowrap; }
.hh-detail__specs dd { margin: 0; min-width: 0; }
/* 表格行整行可点：指针 + 悬停底色，别让人只盯着最右边那颗小按钮 */
.hh-row { cursor: pointer; }
.hh-row:hover > td { background: var(--hit-card); }
.hh-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* 已选中的那一行：左边一道强调色，和详情区对上号 */
.hh-row.is-on > td { background: var(--inset); }
.hh-row.is-on > td:first-child { box-shadow: inset 3px 0 0 0 var(--accent); }
/* 精确对比表单（挪到表格下方）留一点上间距，别贴着表尾说明 */
.hh-form--tail { margin-top: 22px; }

/* 数据库表多了一列「对比」，窄屏要能横滑，否则机型名会被压成两行字 */
.hh-rank-wrap { overflow-x: auto; }
.hh-rank { min-width: 700px; }
/* 列比原来多了一列「对比」，9 列挤在 725px 的内容区里会把「上市」压成两行。
   除机型名外一律不折行，宁可让容器横滑一点，也别让日期断成两截。 */
.hh-rank td, .hh-rank th { white-space: nowrap; padding: 6px 5px; }
/* 机型列给个下限：不留宽度的话「Retroid Pocket Mini · Retroid」会把厂商名挤到第二行，
   看着像排版坏了 */
.hh-rank td.hh-rank__name { min-width: 210px; }
.hh-rank__name span { white-space: normal; }
.hh-rank__pickcol { text-align: right; }
.hh-rank__pick { text-align: right; white-space: nowrap; }
.hh-rank__pick .seg--btn { min-height: 30px; padding: 5px 9px; font-size: 12px; }

/* ---------- 手机卡片列表 / 已选条 / 底部资料面板（2026-11-24） ---------- */
.hh-cards { display: none; }
.hh-card {
  padding: 12px; background: var(--card); box-shadow: 0 0 0 2px var(--line);
  cursor: pointer; min-width: 0;
}
.hh-card + .hh-card { margin-top: 10px; }
.hh-card:hover { background: var(--hit-card); }
.hh-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hh-card.is-on { background: var(--inset); box-shadow: inset 3px 0 0 0 var(--accent), 0 0 0 2px var(--line); }
.hh-card__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hh-card__pic { flex: 0 0 88px; width: 88px; height: 68px; display: flex; align-items: center; justify-content: center; }
.hh-card__pic .hh-thumb, .hh-card__pic .hh-art { width: 100%; height: 64px; margin: 0; }
.hh-card__id { flex: 1 1 auto; min-width: 0; }
.hh-card__name { margin: 0 0 4px; font-family: var(--font-ui); font-size: 15px; line-height: 1.35; color: var(--fg); overflow-wrap: anywhere; }
.hh-card__vendor { margin: 0; font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.hh-card__specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px;
  margin: 12px 0 0; font-family: var(--font-body); font-size: 12px;
}
.hh-card__specs > div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 5px; min-width: 0; }
.hh-card__specs dt { color: var(--muted); }
.hh-card__specs dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.hh-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; box-shadow: inset 0 1px 0 0 var(--divider); }
.hh-card__foot > span { font-family: var(--font-body); font-size: 11px; color: var(--muted); }
.hh-card__pick { min-height: 44px; min-width: 76px; padding: 8px 12px; }
.hh-selection {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
  max-width: 560px; margin: 0 auto; padding: 8px;
  background: var(--card); box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line), 0 8px 20px rgba(0, 0, 0, .28);
}
.hh-selection[hidden], .hh-selection__slot[hidden], .hh-selection__compare[hidden] { display: none; }
.hh-selection__slots { display: grid; gap: 4px; min-width: 0; }
.hh-selection__slot { display: grid; grid-template-columns: 20px minmax(0, 1fr) 32px; align-items: center; gap: 4px; min-width: 0; }
.hh-selection__slot > span { display: grid; place-items: center; width: 20px; height: 24px; background: var(--accent); color: var(--accent-fg); font-family: var(--font-ui); font-size: 12px; }
.hh-selection__slot > button:not(.hh-selection__x) { min-width: 0; padding: 6px 2px; border: 0; background: transparent; color: var(--fg); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-family: var(--font-body); font-size: 12px; }
.hh-selection__x { position: relative; width: 32px; height: 32px; padding: 0; border: 0; background: var(--inset); color: var(--muted); cursor: pointer; font-size: 18px; }
.hh-selection__x::before { content: ""; position: absolute; inset: -6px; }
.hh-selection__compare { min-height: 44px; padding: 8px 10px; white-space: nowrap; }
.hh-panel { display: none; }
.hh-panel-open { overflow: hidden; }
.hh-panel__bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; background: var(--card); box-shadow: inset 0 -2px 0 0 var(--line);
}
.hh-panel__title { min-width: 0; margin: 0; font-family: var(--font-ui); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.hh-panel__close { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; }
.hh-panel__body { padding: 12px; overflow: auto; }
.hh-panel .hh-detail__card { padding: 0; background: transparent; box-shadow: none; }
.hh-panel .hh-detail__pic { flex-basis: 96px; max-width: 96px; }
.hh-panel .hh-detail__pic .hh-shot, .hh-panel .hh-detail__pic .hh-art { height: 84px; }
.hh-panel .hh-detail__id { flex-basis: 150px; }
.hh-panel .hh-detail__groups { grid-template-columns: minmax(0, 1fr); }
.hh-panel .cmp-table { min-width: 0 !important; width: 100%; table-layout: fixed; }
.hh-panel .cmp-table th[scope="row"] { width: 74px; white-space: normal; overflow-wrap: anywhere; }
.hh-panel .cmp-table td { white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
.hh-panel .cmp-table th[scope="col"] { min-width: 0; }
.hh-panel .hh-thumb, .hh-panel .hh-art { height: 72px; }
.hh-panel .hh-thumb__name { font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .hh-filter-disclosure__summary { display: flex; }
  .hh-filter-disclosure[open] .hh-filters { margin-top: 8px; }
  .hh-filter-select .px-input { min-height: 44px; }
  .hh-filter-select .px-input { padding-right: 46px; }
  .hh-filter-select .hh-pick__x { right: 2px; width: 44px; height: 44px; }
  .hh-detail { display: none; }
  .hh-cards { display: grid; }
  .hh-rank-wrap { display: none; }
  .hh-form--tail .tool-row, .hh-form--tail .hh-form__hint { display: none; }
  .hh-selection:not([hidden]) { display: grid; }
  .hh-has-selection { padding-bottom: 96px; }
  /* 已选条固定在右下角时，回顶部按钮会压住「查看对比」；选机型期间先让位。 */
  .hh-has-selection .totop { display: none; }
  .hh-panel[open] {
    display: block; inset: 0; width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh;
    margin: auto auto 0; padding: 0; border: 2px solid var(--line); border-radius: 0;
    background: var(--card); color: var(--fg); box-shadow: 0 -8px 30px rgba(0, 0, 0, .42);
  }
  .hh-panel::backdrop { background: rgba(7, 6, 13, .72); }
}
@media (max-width: 640px) {
  .hh-selection { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .hh-has-selection { padding-bottom: 132px; }
}

/* ---------- 机型选择：可搜索下拉（2026-11-12 P2-5） ----------
   131 台平铺在原生 <select> 里翻不动：手机上滚半天，还得先记住型号排在名单哪一段。
   改成输入即筛的 combobox，浮层样式沿用预览确认过的那版：方角 2px 描边 + 8px 硬阴影。 */
.hh-pick { position: relative; }
.hh-pick:focus-within { z-index: 20; }
.hh-pick__box { position: relative; display: block; }
.hh-pick__input { padding-right: 34px; }
.hh-pick__x {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0; border: 0; line-height: 1;
  background: transparent; color: var(--muted); font-size: 18px;
  font-family: var(--font-body); cursor: pointer;
}
.hh-pick__x:hover { color: var(--fg); }
.hh-pick__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  max-height: 216px; overflow: auto; background: var(--card);
  box-shadow:
    0 -2px 0 0 var(--line), 0 2px 0 0 var(--line),
    -2px 0 0 0 var(--line), 2px 0 0 0 var(--line),
    0 8px 0 0 rgba(0, 0, 0, .18);
}
.hh-pick__head {
  margin: 0; padding: 6px 10px; font-family: var(--font-body);
  font-size: 11px; line-height: 1.5; color: var(--muted);
  border-bottom: 1px dashed var(--divider);
}
.hh-pick__opt {
  display: flex; flex-direction: column; gap: 1px; width: 100%;
  padding: 7px 10px; border: 0; text-align: left; cursor: pointer;
  background: transparent; color: var(--fg); font-family: var(--font-body);
}
.hh-pick__opt + .hh-pick__opt { box-shadow: inset 0 1px 0 0 var(--divider); }
.hh-pick__opt.is-hi { background: var(--hit-card); }
.hh-pick__opt[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }
.hh-pick__nm { font-size: 13px; }
.hh-pick__old {
  margin-left: 6px; padding: 1px 4px; font-style: normal; font-size: 10px;
  background: var(--inset); color: var(--muted);
}
.hh-pick__sub { font-size: 11px; color: var(--muted); }
.hh-pick__opt[aria-selected="true"] .hh-pick__sub,
.hh-pick__opt[aria-selected="true"] .hh-pick__old { background: transparent; color: inherit; opacity: .85; }
.hh-pick__empty { margin: 0; padding: 10px; font-family: var(--font-body); font-size: 12px; color: var(--muted); }
@media (max-width: 699px) {
  .hh-pick__list { max-height: 46vh; }
  .hh-pick__opt { padding: 9px 10px; }
}

/* ---------- 检索区 + 分页（2026-11-09 二次改版） ----------
   搜索框、结果数、清除条件、比例/平台/排序 chips 合成一处，紧贴表格；
   列表改每页 24 台，页面高度不再跟着 131 台一起长。 */
.hh-form__hint { margin: 0; }
.hh-search {
  margin-top: 12px; padding: 10px 14px;
  background: var(--inset); box-shadow: inset 0 0 0 2px var(--line);
}
.hh-search__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.hh-search__field { flex: 1 1 260px; }
.hh-search__count { flex: 0 0 auto; line-height: 44px; }
.hh-search__clear { min-height: 44px; padding: 8px 12px; font-size: 12px; }
.hh-db__title { margin-top: 10px; }
.hh-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; }
.hh-pager__btn { min-height: 32px; min-width: 34px; padding: 6px 9px; font-size: 12px; }
.hh-pager__info { margin: 0 0 0 6px; }
@media (max-width: 699px) {
  .hh-search { padding: 10px; }
  /* 筛选默认折叠；展开后每组独占一行，按钮保持 44px 触控高度。 */
  .hh-filters { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 0; }
  .hh-filters .seg--btn { min-height: 44px; padding: 8px 10px; font-size: 12px; }
  .hh-search__field { flex: 1 1 100%; }
  .hh-search__count { flex: 1 1 auto; line-height: 32px; }
  .hh-search__clear { min-height: 44px; }
  .hh-pager__btn { min-width: 44px; min-height: 44px; padding: 8px; }
}
/* type=search 在 WebKit 下自带圆角清除按钮，跟站内像素方框不搭 */
.field input[type="search"].px-input { -webkit-appearance: none; appearance: none; }
.field input[type="search"].px-input::-webkit-search-decoration,
.field input[type="search"].px-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* ����ҳ���������ೣ�á���ԭ��ҳ������ĸ���ͷ������� */
.cat-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.cat-chips__label { font-size: 12px; color: var(--muted); letter-spacing: .5px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
/* 8 个工具时 auto-fit 会排�?3+3+2，右下留个洞；宽屏强�?4 列正好两行�?
   4 列时卡片只有 230px�?4px 的标题会把「装机预算分配器」拆成两行，压到 20px�?*/
@media (min-width: 1180px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 站外专业工具末行只剩 2 张时各加宽一倍补满，右侧不留空洞、按钮不再竖排 */
  .tool-grid--pro > :nth-last-child(-n+2) { grid-column: span 2; }
  /* 4 列时卡片只剩 230px，图标和标题并排会把 7 字标题挤成两行：改成上下�?*/
  .tool-card--big { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tool-card--big .tool-card__title { font-size: 20px; }
}
.tool-card--big { align-items: flex-start; padding: 18px; }
/* 卡片并排时描述长短不一，统一收到 4 行，底部给一个「打开」的落点 */
.tool-card--big .tool-card__desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card__go { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 8px; }
.tool-card--big:hover .tool-card__go, .tool-card--big:focus-visible .tool-card__go { color: var(--link); }
/* 侧栏六个工具：竖排紧凑版，一屏能看到全部 */
.side-tools { display: grid; gap: 8px; }
.tool-card--mini { align-items: flex-start; gap: 10px; padding: 8px 10px; margin-bottom: 0; }
.tool-card--mini .px-orb { width: 30px; height: 30px; flex: 0 0 30px; }
.tool-card--mini .tool-card__title { font-size: 15px; line-height: 1.4; }
.tool-card--mini .tool-card__desc {
  font-size: 12px; line-height: 1.5; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 2026-11-09：工具从 8 个并成 5 个，「全部工具 ›」从 grid 外搬进来当第 6 格，
   2 列 3 行不留空位。沿用 .tool-mini 的方框，只用淡一点的字色区分「入口」和「工具」。 */
.tool-mini--more .tool-mini__name { color: var(--muted); }
/* 2026-11-05（MUSE 执行文件 3.3）：链出去的专业工具，窄一格、密一点 */
.tool-grid.tool-grid--pro { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 14px; }
/* 2026-11-15 站长：末行两卡等高。last-child 曾被统一加 16px 下边距，
   让 Handhelds Wiki 比同行的 IsThereAnyDeal 矮一截；站外网格里取消，两卡自然 stretch 等高 */
.tool-grid.tool-grid--pro > .tool-card:last-child { margin-bottom: 0; }
.tool-noscript { color: var(--accent-text); }
/* 2026-11-15 站长：手机端工具页卡片只留图标+名字，去掉描述/打开提示与页头多余文字 */
@media (max-width: 640px) {
  .page-hero--tools .page-hero__kicker,
  .page-hero--tools .page-hero__intro { display: none; }
  .page-hero--tools { margin-bottom: 14px; }
  .tool-grid .tool-card__desc,
  .tool-grid .tool-card__go { display: none; }
  /* 卡片间距收紧：卡片自带 16px 下边距 + grid 12px 间距太松，统一靠 grid gap 控制 */
  .tool-grid .tool-card,
  .tool-grid .tool-card:last-child { margin-bottom: 0; }
  .tool-grid { gap: 8px; }
  .tool-grid.tool-grid--pro { gap: 8px; }
}

@media (max-width: 760px) {
  /* 预算表四列在手机上硬挤：改成一行一件的卡片式，名字与金额同一行，占比条独占一�?*/
  .budget-table { display: block; }
  .budget-table thead { display: none; }
  .budget-table tbody { display: block; }
  .budget-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "n a" "b b" "t t";
    column-gap: 10px; row-gap: 5px;
    padding: 10px 0; border-bottom: 2px dashed var(--inset);
  }
  .budget-table tbody tr:last-child { border-bottom: 0; }
  .budget-table th { grid-area: n; width: auto; text-align: left; font-size: 15px; }
  .budget-table td:nth-child(2) { grid-area: b; width: auto; display: flex; align-items: center; gap: 6px; }
  .budget-table td:nth-child(3) { grid-area: a; width: auto; text-align: right; font-size: 15px; }
  .budget-table td:nth-child(4) { grid-area: t; width: auto; font-size: 12px; color: var(--muted); }
  .budget-table .bar { width: 100%; display: block; margin: 0 0 3px; }
}

@media (max-width: 640px) {
  .tool-split { grid-template-columns: 1fr; }
  .tool-preview { position: static; }
  /* 手机上型号和价格分两行：三列并排时型号只�?8 个字，「i5-13400F · 65W」被截断 */
  .kit-head { display: none; }
  .kit-row {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "lab sel" ". price";
    gap: 4px 6px;
  }
  .kit-row__label { grid-area: lab; align-self: center; }
  .kit-row select.px-input { grid-area: sel; font-size: 15px; padding: 6px 8px; }
  .kit-row input.px-input { grid-area: price; width: 100%; text-align: right; }
  .tool-panel { padding: 16px 14px 20px; }
  .tier-row__list li { grid-template-columns: minmax(0, 1fr) 70px 48px 52px 34px; font-size: 13px; gap: 6px; }
  .tier-row__list.no-price li { grid-template-columns: minmax(0, 1fr) 62px 44px 32px; }
  .tier-head { grid-template-columns: minmax(0, 1fr) 70px 48px 52px 34px; gap: 6px; margin-left: 14px; }
  .tier-head.no-price { grid-template-columns: minmax(0, 1fr) 62px 44px 32px; }
  /* 2026-11-17：竖卡在手机上改单列（390px 下两列每张仅 173px，标题挤成两行）。 */
  .post-list--grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .post-card__body { padding: 12px 14px 14px; }
}

/* =========================================================
   点击反馈（像素步进，不用缩放/弹跳，遵守「不做弹跳」的决策�?
   [data-motion="off"] 下由 components.css 的全局规则统一禁用�?
   ========================================================= */

/* 点页签：先闪一帧黄，再落到强调色，像掌机按�?*/
.tab.is-flash { animation: tab-flash 180ms steps(2) 1; }
@keyframes tab-flash {
  0% { background: var(--accent2); color: var(--accent2-fg); }
  100% { background: var(--accent); color: var(--accent-fg); }
}

/* 跳到某个分组时，标题底色闪一下，方便在长页面里定�?*/
.group-head.is-flash { animation: head-flash 420ms steps(3) 1; }
@keyframes head-flash {
  0%, 66% { background-color: var(--hit-card); }
  100% { background-color: transparent; }
}

/* 点站点卡：整块下�?2px（和按钮的按下手感一致） */
.site-card:active { transform: translate(2px, 2px); }

/* 手机端弹层：从底部推进来，分 3 步，不做缓动 */
dialog.sheet[open] .sheet__box { animation: sheet-in 150ms steps(3) 1; }
@keyframes sheet-in {
  0% { transform: translateY(16px); }
  100% { transform: translateY(0); }
}

/* ============ 2026-11-05：首页首屏再收一档 ============
   站长反馈：顶栏页签和「新手入口 + 5 类目」那排胶囊是同一批东西，整排撤掉
   （新手入口挪到顶栏和手机「分类」抽屉）；搜索框缩一档；推荐位从 hero 里
   挪出来、直接坐在「站点导航」正上方。改完全部 5 个类目进页面就能看见。
   第二轮：站长说搜索框还是占太高——hero 内边距 16→12、行距 12→8，
   输入框 38→30、提示符 16→13。 */
.home-hero { padding: 12px; gap: 8px; }
/* 搜索框：原来 min-height 48 + 上下各 12px 内边距 + 24px 的 > 提示符，
   一张通栏大卡占了 hero 将近一半高度。38 → 30，仍是 hero 的视觉主角。 */
.home-hero .searchbar { gap: 8px; }
.home-hero .searchbar .px-input-wrap { padding: 0 6px; }
.home-hero .searchbar .px-input-wrap .prompt { font-size: 13px; }
.home-hero .searchbar .px-input { min-height: 30px; padding: 2px 0; font-size: 13px; }
/* 推荐位：从 hero 里搬出来，放在「站点导航」上面 */
.rec-row { margin: 0 0 6px; }
.rec-row + .site-list-head { margin-top: 16px; }

/* 推荐位：4 个等宽格，现在放置顶站，以后换广告图不用动布局。
   2026-11-05 站长要求去掉「推荐」那个小标签，只留格子本身。 */
.rec-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.rec-slot { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; background: var(--panel); text-decoration: none; color: var(--fg); }
.rec-slot:hover { background: var(--hit-card); }
.rec-slot__name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-slot__promo { margin-left: auto; font-size: 11px; color: var(--muted); }
.rec-slot--empty { justify-content: center; color: var(--muted); opacity: .55; box-shadow: none; border: 2px dashed var(--line); font-size: 12px; }
@media (max-width: 900px) { .rec-row { flex-wrap: wrap; } .rec-slot { flex: 1 1 46%; } }

/* 八个机种格：现在住在「复古掌机」分类页顶部 */
.cat-consoles { margin: 22px 0 26px; }
.console-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
/* 2026-11-20：手机上 8 格挤进 390px，每格只剩 75px，图标吃掉大半，
   「SFC」「NDS」「PS1」「N64」「PSP」「PS2」全被省略号截成「S…」「N…」「P…」，
   六颗看起来一模一样、分不出是哪台机器。手机上改成横向滑动、格子给足宽度。
   （这里的 .console-tiles 是分类页顶部那一排；首页 hero 那一排另有规则，见 :484） */
@media (max-width: 640px) {
  .console-tiles {
    display: flex; overflow-x: auto; scrollbar-width: none;
    gap: 8px; margin-right: -12px; padding-right: 12px; padding-bottom: 2px;
  }
  .console-tiles::-webkit-scrollbar { display: none; }
  .console-tiles .console-tile { flex: 0 0 auto; min-width: 104px; }
}
@media (max-width: 900px) { .console-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


/* 模拟器只是播放器，不含游戏：卡片上给一个能看懂的徽标 */
.px-badge--warn { color: #3a2a00; background: var(--label); box-shadow: 0 0 0 2px var(--line); }
.px-badge--warn::before { content: "!"; margin-right: 3px; font-weight: bold; }

/* 分类页顶部一句话讲清范围（复古掌机不只老机器） */
.cat-scope {
  margin: 8px 0 14px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--inset);
  box-shadow: inset 3px 0 0 0 var(--accent);
  max-width: 62ch;
}


/* 子分组下的一句话说明（如「模拟器不含游戏」） */
.sub-note { margin: -6px 0 14px; padding-left: 10px; font-size: 13px; line-height: 1.6; color: var(--fg); box-shadow: inset 3px 0 0 0 var(--accent); max-width: 62ch; }

/* 2026-11-05（MUSE 执行文件第 6 节）：新手页「各机种对应的模拟器」折叠块 */
.start-more{margin-top:14px}
.start-more summary{cursor:pointer;font-family:var(--font-ui);font-size:14px;padding:8px 0}
.start-more[open] summary{border-bottom:2px dotted var(--divider);margin-bottom:12px}

/* =========================================================
   2026-11-05：按《SavePoint 给 LongCat 修正文件》改的首屏与分组
   覆盖第 6 / 7 / 8 / 9 / 10 / 12 / 13 / 17 / 18 / 19 条。
   这一整段放在文件末尾：同优先级下后者生效，不用回头改上面那套老规则
   （老注释里带着早前编码事故留下的替换字符，回头改容易再坏一次）。
   ========================================================= */

/* ---- 第 6 条：首屏大框换深色像素底，左右两栏 ---- */
.home-hero {
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 18px;
  padding: 18px 18px 16px;
  align-items: start;
  background: var(--hero-bg);
  --fg: #ece9f8;
  --muted: #a9a3c6;
  --panel: #241f38;
  --card: #241f38;
  --inset: #1b1729;
  --line: #07060d;
  --divider: #3c3557;
  --accent: #3ed6b5;
  --accent-fg: #0b1018;
  --accent-text: #7ff0d6;
  --accent2: #ffd25e;
  --accent2-fg: #0b1018;
  --link: #7ff0d6;
  --hi: rgba(255, 255, 255, .10);
  --lo: rgba(0, 0, 0, .45);
  color: var(--fg);
}
.home-hero__main { display: grid; gap: 8px; min-width: 0; }
.home-hero__kicker {
  margin: 0; font-family: var(--font-body); font-size: 11px; line-height: 1;
  letter-spacing: .1em; color: var(--accent-text);
}
.home-hero__title { margin: 0; font-size: 22px; line-height: 1.3; color: var(--fg); }
.home-hero__sub { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.hero-search { display: grid; gap: 8px; margin-top: 2px; }

/* 第 7 条：搜索范围小切换（本站 / 百度 / Bing / B站） */
.searchbar__modes { display: flex; gap: 4px; flex-wrap: wrap; }
.mode {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; line-height: 1;
  padding: 7px 12px; min-height: 30px;
  background: var(--inset); color: var(--muted);
  box-shadow: 0 0 0 2px var(--line);
}
.mode:hover { color: var(--fg); }
.mode[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }

/* 第 6 条：搜索框做大（原来的 30px 高在深色大框里太单薄） */
.home-hero .searchbar { margin: 0; display: block; }
.home-hero .searchbar .px-input-wrap { padding: 0 12px; }
.home-hero .searchbar .px-input-wrap .prompt { font-size: 18px; color: var(--accent-text); }
.home-hero .searchbar .px-input { min-height: 46px; padding: 8px 0; font-size: 16px; }
.home-hero .searchbar__count { font-size: 12px; color: var(--muted); }

/* 第 8 条：大家常找 */
.hotwords { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hotwords__label { font-family: var(--font-body); font-size: 11px; color: var(--muted); }
.hotword {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; line-height: 1;
  padding: 6px 9px; min-height: 26px;
  background: transparent; color: var(--muted);
  box-shadow: inset 0 0 0 2px var(--divider);
}
.hotword:hover, .hotword:focus-visible {
  background: var(--inset); color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent);
}

/* 第 6 条右栏：时间 + 天气空位 */
.home-hero__side { display: grid; gap: 8px; align-content: start; }
.clockbox { display: grid; gap: 3px; justify-items: start; padding: 10px 12px; background: var(--hero-panel); min-height: 74px; align-content: center; }
.clockbox__date { font-family: var(--font-body); font-size: 12px; line-height: 1; color: var(--muted); }
.clockbox__week { font-family: var(--font-body); font-size: 11px; line-height: 1; color: var(--muted); }
.clockbox__time {
  font-family: var(--font-ui); font-size: 26px; line-height: 1.1; -webkit-font-smoothing: none;
  color: var(--accent-text); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.weatherbox { display: grid; gap: 3px; justify-items: center; align-content: center; min-height: 74px; padding: 10px; }
.weatherbox__label { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.weatherbox__hint { font-size: 11px; color: var(--muted); opacity: .65; }

/* ---- 第 13 条：推荐位要和普通卡分得开 ---- */
.rec-row { align-items: stretch; }
.rec-row__tag {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  padding: 0 9px; min-width: 0; white-space: nowrap; writing-mode: horizontal-tb;
  font-size: 11px; line-height: 1.15; text-align: center;
  color: var(--accent-fg); background: var(--accent);
  box-shadow: 0 0 0 2px var(--line);
}

/* ---- 第 12 条：组头是链接，点标题进分类页；看全部放组下面 ---- */
a.group-head { text-decoration: none; color: inherit; padding: 0 0 10px 0; }
a.group-head:hover .group-head__name { color: var(--accent-text); }
.group-head__name { min-width: 0; }
a.group-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px 0 0; padding: 10px 16px;
  font-family: var(--font-body); font-size: 14px; line-height: 1;
  text-decoration: none; color: var(--fg);
  background: var(--panel);
}
a.group-more:hover { color: var(--accent-text); }

/* ---- 第 10 条：二级类目做成真按钮（点了去分类页那个二级） ---- */
.cat-subs--group { gap: 8px; margin: 0 0 14px; }
.cat-subs--group .chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 9px 14px; margin: 0;
  font-size: 13px; text-decoration: none;
}
.cat-subs--group .chip--teal { background: var(--accent); color: var(--accent-fg); }
.cat-subs--group .chip--teal .ui { color: inherit; opacity: .8; }
.cat-subs--group .chip:hover { text-decoration: none; }

/* ---- 第 17 条：便捷工具（只画真有链接的，留白就是留白） ---- */
.qlink { min-width: 0; }

/* ---- 第 18 条：日常娱乐（非游戏）预留区 ---- */
.leisure {
  margin: 24px 4px 26px; padding: 14px 16px 16px; background: var(--panel);
  box-shadow: 0 calc(-1 * var(--px)) 0 0 var(--line), 0 var(--px) 0 0 var(--line),
    calc(-1 * var(--px)) 0 0 0 var(--line), var(--px) 0 0 0 var(--line);
}
.leisure__note { margin: 6px 0 12px; font-size: 12px; line-height: 1.7; color: var(--muted); max-width: 70ch; }

/* ---- 第 19 条：底栏那个留给友联的空位 ---- */
.seg--slot { color: var(--muted); opacity: .55; }

/* ---- 第 13 条：卡片图标大小统一（有图没图都同一个方块、同一个字号） ---- */
.site-card__ico b { font-size: 13px; line-height: 1; }

/* ---- 2026-11-09 19:47 站长：手机端不再显示顶栏类目页签 ---- */
/* 390 宽一行只能露出 4 个，第 5 个「装机工具」被截在屏幕外，看着像没做完。
   底栏「分类」抽屉里本来就有全部 5 个类目 + 新手入口，工具 / 文章也在底栏，
   所以手机端直接收起这一条（电脑端仍照旧）。不要把 .tabs 在这里改回 display:flex。 */

/* ---- 首屏两栏在窄屏堆起来 ---- */
@media (max-width: 820px) {
  .home-hero { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .home-hero__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero__title { font-size: 20px; }
  .home-hero .searchbar .px-input { min-height: 42px; font-size: 15px; }
}

/* ===== 2026-11-05（修正文件第 11 / 13 条）小屏收尾 =====
   2026-11-09 19:47 站长改口：手机端收起顶栏页签（原因见上一条），
   这里不再把 .tabs 重新打开，避免又被覆盖成一条截断的横条。 */
@media (max-width: 900px) {
  .rec-row__tag { flex: 1 1 100%; min-height: 30px; margin-bottom: 2px; }
  .rec-slot { flex: 1 1 calc(50% - 4px); }
}

/* 小屏推荐位：flex-basis 的百分比和 padding 打架（内容盒相加超过 100%），
   显式用 border-box 再收一档，390 宽也能两列。 */
@media (max-width: 900px) {
  .rec-slot { box-sizing: border-box; flex: 1 1 calc(50% - 8px); }
}

/* 小屏推荐位最终值：行内 gap 8 + 格子自带左右各 4 的外边距，
   calc(50% - 8px) 会让两个格子加起来超出 8px，于是每个都被挤成单独一行。
   这里把外边距归零、basis 让到 calc(50% - 12px)，两列才坐得下。 */
@media (max-width: 900px) {
  .rec-slot { margin: 0; flex: 1 1 calc(50% - 12px); }
}

/* =========================================================
   2026-11-05 第二轮修正（第 1/2/3/9/10/13/14/18/19 条）
   一律追加在文件末尾：同优先级后者生效，不去动上面那些带乱码注释的老规则
   ========================================================= */

/* ---------- 第 19 条：大框底色跟着皮肤走，不再写死 #14111f ---------- */
:root,
html[data-palette="teal"][data-theme="light"] { --hero-bg: #12302e; --hero-panel: #0a1f1d; --hero-line: #3d6f68; --hero-input: #dff0e9; --hero-input-line: #8fc9b6; --hero-input-fg: #10201c; }
html[data-palette="teal"][data-theme="dark"]  { --hero-bg: #0f2b28; --hero-panel: #08201d; --hero-line: #3d6f68; --hero-input: #17403b; --hero-input-line: #4a7f77; --hero-input-fg: #f0f7f4; }
html[data-palette="indigo"][data-theme="light"] { --hero-bg: #33276e; --hero-panel: #261c52; --hero-line: #6a5bc8; --hero-input: #e9e5ff; --hero-input-line: #9b8ce8; --hero-input-fg: #1a1338; }
html[data-palette="indigo"][data-theme="dark"]  { --hero-bg: #241a5c; --hero-panel: #1a1240; --hero-line: #5447b8; --hero-input: #312570; --hero-input-line: #6656c8; --hero-input-fg: #f2f0ff; }
html[data-palette="candy"][data-theme="light"] { --hero-bg: #5c1330; --hero-panel: #3c0b20; --hero-line: #9c2a52; --hero-input: #fff0e0; --hero-input-line: #e79a63; --hero-input-fg: #2a1410; }
html[data-palette="candy"][data-theme="dark"]  { --hero-bg: #4a1830; --hero-panel: #351026; --hero-line: #a63a5e; --hero-input: #5d2040; --hero-input-line: #c04f7a; --hero-input-fg: #fff2f6; }
/* 2026-11-11 芥末黄：大框沿用「深底 + 黄字黄边」的暖调，不用青绿那套冷色，
   也不跟页面一样糊成一片黄——深暖底压在芥末黄页面上，搜索框才立得住。 */
html[data-palette="mustard"][data-theme="light"] { --hero-bg: #2a2110; --hero-panel: #1b1608; --hero-line: #8a6f2a; --hero-input: #fff3cf; --hero-input-line: #c9a63a; --hero-input-fg: #1a1408; --tab-shadow: #16130a; }
html[data-palette="mustard"][data-theme="dark"]  { --hero-bg: #241d0e; --hero-panel: #17120a; --hero-line: #6f5b22; --hero-input: #2e2714; --hero-input-line: #8a6f2a; --hero-input-fg: #ffe07a; --tab-shadow: #000; }

.home-hero { background: var(--hero-bg); }
.home-hero .px-input-wrap,
.home-hero .clockbox,
.home-hero .weatherbox { background: var(--hero-panel); }

/* ---------- 第 9 条：子页面「‹ 返回首页」 ---------- */
.backhome {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  align-self: center; margin: 0 4px 0 10px; padding: 8px 12px;
  font-family: var(--font-body); font-size: 12px; line-height: 1;
  color: var(--fg); text-decoration: none; white-space: nowrap;
}
.backhome:hover { background: var(--inset); }
@media (max-width: 640px) {
  .backhome { margin: 0 2px 0 6px; padding: 7px 9px; font-size: 11px; }
}

/* ---------- 第 9 条：右下角回到顶部（唯一一处定义，别再另写覆盖） ---------- */
.totop {
  position: fixed; right: 20px; bottom: 92px; z-index: 60;
  width: auto; height: auto; white-space: nowrap;
  padding: 11px 16px; border: 0; cursor: pointer;
  font: 14px var(--font-body); line-height: 1;
  color: #10141c; background: var(--c-yellow);
  box-shadow: 0 0 0 3px #10141c, 0 4px 0 0 #10141c;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  /* 跟全站其它像素动效一样用跳帧，不要默认的平滑 ease */
  transition: opacity .16s steps(2, end), transform .16s steps(2, end), visibility .16s steps(2, end);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--accent2); }
@media (max-width: 640px) {
  .totop { right: 12px; bottom: 84px; padding: 13px 18px; font-size: 15px; }
}

/* ---------- 第 13 / 15 / 16 条：卡片右上角标签 ---------- */
.px-badge--hot { background: var(--c-coral); color: #2a1010; }
.px-badge--pick { background: var(--accent2); color: var(--accent2-fg); }
.px-badge--promo { background: var(--b-promo); color: var(--b-promo-fg); }
.px-badge--third { background: var(--inset); color: var(--fg); box-shadow: inset 0 0 0 2px var(--line); }
.site-card__badges { position: relative; z-index: 2; }
/* 资源站那句标签比别家长，允许折行、字号收一档 */
.px-badge--third .site-card__badge-txt {
  position: static; width: auto; height: auto; clip: auto;
  display: block; max-width: 132px; white-space: normal;
  font-size: 10px; line-height: 1.25; text-align: right;
}
/* 手机上原来把所有徽标文字藏起来只留图标；现在图标全删了，文字必须露出来 */
@media (max-width: 640px) {
  .site-card__badge .site-card__badge-txt {
    position: static; width: auto; height: auto; clip: auto;
    white-space: nowrap; font-size: 10px;
  }
  .px-badge--third .site-card__badge-txt { max-width: 96px; white-space: normal; }
}

/* ---------- 第 14 条：侧栏「站内工具」两列小格子 ---------- */
.side-tools--grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
}
.tool-mini {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  padding: 7px 8px; color: var(--fg); text-decoration: none; background: var(--panel);
  box-shadow: inset 0 0 0 2px var(--line);
}
.tool-mini:hover { background: var(--inset); }
.tool-mini .px-orb { flex: 0 0 24px; width: 24px; height: 24px; }
.tool-mini__name {
  font-family: var(--font-body); font-size: 12px; line-height: 1.25;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 休闲区用和上面一样的站点卡，旧的专用卡片规则选择器丢了，这里删掉，避免无效声明。 */

/* ---------- 第 2 条：友情链接 ---------- */
.friendlinks { margin: 24px 4px 26px; padding: 14px 16px 16px; background: var(--panel); }
.friendlinks__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.friendlink {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 10px;
  font-family: var(--font-body); font-size: 12px; color: var(--fg); text-decoration: none;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--divider);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.friendlink:hover { background: var(--inset); }
.friendlink--empty { color: var(--muted); opacity: .5; box-shadow: inset 0 0 0 2px var(--divider); }
@media (max-width: 700px) { .friendlinks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 第 1 条：首页二级按钮选中态要看得见 ---------- */
.cat-subs--group .chip[aria-pressed="true"] { background: var(--line); color: var(--fg-on-line); }
.cat-subs--group .chip[aria-pressed="false"]:hover { background: var(--accent2-hi); }

/* ---------- 第 18 条：文章区 ---------- */
/* 2026-11-09 20:15（文章区 B 方案）：hero 压扁。
   原来 kicker 写一遍「文章」、下面 h1 又写一遍，同一个词一屏出现两次；
   kicker 删掉，标题 26→22，说明压成一行，内边距 18→14。电脑 150→96px。 */
.blog-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px;
  align-items: center;
  margin: 0 0 18px; padding: 14px 18px; background: var(--hero-bg);
  --fg: #f3f7f4; --muted: #b9ccc6; --line: var(--hero-line);
}
.blog-hero__title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; color: #fff; }
.blog-hero__sub { margin: 0; font-size: 13px; line-height: 1.6; color: #cfe0da; }
.blog-hero__side { display: grid; gap: 7px; align-content: center; }
.blog-search {
  width: 100%; min-height: 38px; padding: 7px 12px; font: 14px/1.5 var(--font-body);
  color: #eef7f3; background: var(--hero-panel);
}
.blog-search::placeholder { color: #9fb6ae; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; font-family: var(--font-body); font-size: 11px; line-height: 1;
  color: #dbeae4; text-decoration: none;
  box-shadow: inset 0 0 0 2px var(--hero-line);
}
.tag-chip:hover { background: var(--hero-line); color: #fff; }
.blog-hero .tag-chip { color: #d7e7e1; }

/* 区块标题：12px 小字 + 右侧备注 + 一条细线，跟首页「站点导航」同一套。
   原来「按日期 · 最新在前」是 24px 像素黄框，占 56px，只为说一句排序规则。 */
.blog-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 4px 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--divider); padding-bottom: 8px; margin: 0 0 14px;
}
.blog-h { margin: 0; font-size: 12px; line-height: 1.4; letter-spacing: .1em; color: var(--muted); font-weight: normal; }
.blog-h__note { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* 「先读这三篇」：电脑三列，手机三行。封面在上、文字在下，
   每张卡第一行写「这站是什么 / 我想装机 / 我想买掌机」，替新访客回答「从哪开始」。 */
.blog-picks { margin: 0 0 24px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pick-card { display: block; color: var(--fg); text-decoration: none; background: var(--card); }
.pick-card__cover {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  image-rendering: auto; border-bottom: 2px solid var(--line);
}
.pick-card__body { display: grid; gap: 4px; padding: 10px 12px 13px; }
.pick-card__kicker { font-size: 11px; color: var(--accent-text); letter-spacing: .06em; }
.pick-card__title { font-size: 15px; line-height: 1.45; color: var(--fg); }
.pick-card__sum {
  font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pick-card:hover .pick-card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (max-width: 760px) {
  /* 手机：三张引导卡竖排成三行，左图右文。图固定 16:9（104×58），
     不用 stretch —— 否则封面被裁成近方形，「欢迎来到」会切掉左边两个字。 */
  .pick-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .pick-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; }
  .pick-card__cover {
    width: 104px; height: 58px; aspect-ratio: 16 / 9; object-fit: cover;
    border-right: 0; border-bottom: 0; box-shadow: 0 0 0 2px var(--line);
  }
  .pick-card__body { padding: 8px 10px 9px; align-content: center; gap: 3px; }
  .pick-card__title { font-size: 14px; }
  .pick-card__sum { -webkit-line-clamp: 2; }
  .blog-hero { padding: 12px 14px; gap: 10px; }
  .blog-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .blog-tags::-webkit-scrollbar { display: none; }
  .blog-tags .tag-chip { flex: 0 0 auto; }
}

.blog-feature { margin: 0 0 22px; }
.blog-secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 22px; }
.blog-sec { display: grid; gap: 10px; align-content: start; }
.blog-sec__h {
  margin: 0; font-family: var(--font-ui); font-size: 17px; line-height: 1.3;
  display: flex; align-items: center; gap: 8px;
}
.blog-sec__n {
  font-size: 11px; padding: 2px 6px; background: var(--inset); color: var(--muted);
}
.blog-sec__list { display: grid; gap: 10px; }
.blog-sec__more {
  justify-self: start; font-family: var(--font-body); font-size: 12px;
  color: var(--link); text-decoration: none;
}
.blog-sec__more:hover { text-decoration: underline; text-underline-offset: 3px; }

.post-tile {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px;
  padding: 12px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line);
}
.post-tile--big { grid-template-columns: minmax(0, 1fr); }
.post-tile__cover { display: block; overflow: hidden; background: var(--inset); }
.post-tile__cover img {
  display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; image-rendering: pixelated;
}
.post-tile__body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.post-tile__meta { margin: 0; font-family: var(--font-body); font-size: 11px; color: var(--accent-text); }
.post-tile__title {
  font-family: var(--font-ui); font-size: 17px; line-height: 1.35;
  color: var(--fg); text-decoration: none;
}
.post-tile--big .post-tile__title { font-size: 26px; }
.post-tile__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-tile__sum { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.post-tile__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tile__tags .tag-chip { color: var(--muted); box-shadow: inset 0 0 0 2px var(--divider); font-size: 10px; }
.post-tile__tags .tag-chip:hover { background: var(--inset); color: var(--fg); }
.blog-all { margin: 0; }
.blog-empty { margin: 12px 4px; }

@media (max-width: 900px) {
  .blog-hero { grid-template-columns: minmax(0, 1fr); }
  .blog-secs { grid-template-columns: minmax(0, 1fr); }
  .post-tile { grid-template-columns: 104px minmax(0, 1fr); }
  .post-tile--big { grid-template-columns: minmax(0, 1fr); }
  .post-tile--big .post-tile__title { font-size: 20px; }
}

/* 主推大卡：封面不再占满一整屏，改成左图右文 */
.post-tile--big { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.post-tile--big .post-tile__cover { align-self: stretch; }
.post-tile--big .post-tile__cover img { height: 100%; max-height: 320px; }
@media (max-width: 900px) {
  .post-tile--big { grid-template-columns: minmax(0, 1fr); }
  .post-tile--big .post-tile__cover img { max-height: 240px; }
}

/* 第 15 条：标签固定到卡片右上角（站名那行右侧）；「第三方资源 · 与本站无关」太长，留在描述行 */
.site-card { grid-template-areas: "ico name badge" "ico desc desc"; }
.site-card__badges { grid-area: badge; justify-self: end; align-self: center; }
.site-card.is-owner-pick { grid-template-areas: "ico name name" "ico desc badge"; }
/* 2026-11-12 23:30（撤销上面的错误改法）：第三方卡的徽标是被上一版自己删掉的，
   站长看到「第三方资源 · 与本站无关」消失。徽标必须留着——它是这几张卡的唯一标识，
   描述里那句是正文，不是徽标的替代品。
   P2-4 把它挪到第三行会让卡高 89（别人 78），所以不挪回第三行，
   就停在描述行右侧（上一行的 .is-owner-pick 已定义），描述折两行也仍在 78 以内。
   卡片统一靠 min-height:78px 兜住，不靠删元素。 */

/* ================= 2026-11-05 第三轮修正 ================= */
/* 第 6 条：整站一句「本站共收录 N 个站」 */
.site-total { margin: 22px 0 0; text-align: center; font: 13px var(--font-body); color: var(--muted); letter-spacing: .06em; }
.site-total .num { font-size: 15px; color: var(--accent-text); }

/* 第 3 条：配色 / 日夜 / 设置挪到顶栏，紧挨新手入口 */
.topbar__tools { display: flex; align-items: center; gap: 4px; }
.tool-dot { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--panel); box-shadow: inset 0 0 0 2px var(--line); }
.tool-dot .pal-dot { width: 12px; height: 12px; }
.tool-dot[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.tool-btn { min-width: 26px; height: 24px; padding: 0 7px; border: 0; cursor: pointer; background: var(--panel); color: var(--fg); font: 12px var(--font-body); box-shadow: inset 0 0 0 2px var(--line); }
.tool-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); box-shadow: inset 0 0 0 2px var(--accent); }
.tool-btn--set { margin: 0 4px 0 2px; }
@media (max-width: 960px) { .topbar__tools { display: none; } }

/* 第 3 条：底栏那一格让给友情链接（8 格，两行各 4 个） */
.friendbar { display: grid; gap: 10px; margin: 20px 0 0; padding: 14px 16px 16px; }
.friendbar__title { margin: 0; font-family: var(--font-body); font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.friendbar__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.friendlink { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 10px; font: 12px var(--font-body); color: var(--fg); text-decoration: none; background: var(--panel); box-shadow: inset 0 0 0 2px var(--divider); }
.friendlink:hover { color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent); }
.friendlink--empty { opacity: .5; }
@media (max-width: 700px) { .friendbar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 第 4 条：回到顶部的样式已合并到上面「第 9 条」那一处，别在这里再定义一份 */

/* 第三轮补丁：休闲卡一排 4 张要给够宽度，不能把站名挤成「腾…」 */

/* 手机上顶栏只留 logo（底下有「主题」入口），设置按钮别单独挂在右上角 */
@media (max-width: 960px) { .tool-btn--set { display: none; } }

/* 友情链接按站长说的「两行、一行 4 个」，手机上也不拆成两列 */
@media (max-width: 700px) { .friendbar__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .friendlink { min-height: 34px; font-size: 11px; padding: 4px 2px; } }

/* ===== 2026-11-05 第四轮 ===== */

/* 第 2 条：首页大框里的搜索区跟皮肤走。
   以前这里是写死的 #0b0914（近黑），糖果白天那套底下就像挖了个洞。
   现在每套皮肤给一个「比大框亮一档」的底色 + 一圈浅色描边，读起来是凹槽不是黑窟窿。 */
.home-hero .searchbar .px-input-wrap {
  background: var(--hero-input);
  box-shadow: inset 0 0 0 2px var(--hero-input-line);
}
.home-hero .searchbar .px-input::placeholder { color: color-mix(in srgb, var(--fg) 58%, transparent); }
.home-hero .searchbar .px-input { color: var(--fg); }

/* 第 3 条：友情链接并进页脚那一行 */
.pagefoot__fl { color: var(--muted); margin-left: 6px; }
.pagefoot__links .pagefoot__fl + a { margin-left: 2px; }

/* 第 4 条：日常休闲排成跟分类一样的样子（组头 + 二级按钮 + 卡片网格） */
.site-group--leisure .group-head { padding-right: 0; }
.site-group--leisure .site-card__ico .px-orb { width: 26px; height: 26px; }
.site-group--leisure .site-card { cursor: pointer; }
.site-group--leisure .leisure__note { margin: 12px 2px 0; font-size: 12px; color: var(--muted); }

/* 第四轮·补：白天那套把搜索区做成「浅色纸片」，晚上仍用深一档，昼夜一眼能分出来 */
.home-hero .searchbar .px-input { color: var(--hero-input-fg); }
.home-hero .searchbar .px-input::placeholder { color: color-mix(in srgb, var(--hero-input-fg) 60%, transparent); }
.home-hero .searchbar .prompt { color: color-mix(in srgb, var(--hero-input-fg) 72%, transparent); }

/* ===== 2026-11-05 第六轮（修订）：街机选单只保留在窄屏 =====
   站长复核后明确：PC 端搜索框原来的位置和样子挺好，不要动；当时只要求
   「撤掉可见的搜索范围小字」「撤掉大家常找热词行」，并没有要改搜索框。
   所以本段整段收进窄屏媒体查询 —— PC 端读到的仍是上面的原规则，
   标题、四个按钮、搜索框的位置 / 宽度 / 外观全部还原。
   窄屏（≤820px）保留站长认可的那版：按键放大、输入槽收进深色机壳、整组居中。 */
@media (max-width: 820px) {
  .home-hero__main { justify-items: center; text-align: center; }
  .hero-search { width: 100%; gap: 10px; margin-top: 4px; justify-items: center; }
  .home-hero .searchbar__modes { gap: 6px; align-items: stretch; justify-content: center; }
  .home-hero .searchbar__modes .mode {
    font-size: 13px; min-height: 42px; padding: 9px 14px;
    background: var(--panel); color: var(--fg);
    box-shadow: 0 0 0 2px var(--line), 0 4px 0 0 var(--line),
                inset 2px 2px 0 0 var(--hi), inset -2px -2px 0 0 var(--lo);
    margin-bottom: 4px;
  }
  .home-hero .searchbar__modes .mode[aria-pressed="true"] {
    background: var(--accent); color: var(--accent-fg);
    box-shadow: 0 0 0 2px var(--line), 0 6px 0 0 var(--accent2),
                inset 2px 2px 0 0 var(--hi), inset -2px -2px 0 0 var(--lo);
  }
  .home-hero .searchbar {
    width: min(660px, 100%); justify-self: center;
    background: var(--hero-panel); padding: 6px;
    box-shadow: 0 0 0 2px var(--line), 0 4px 0 0 var(--line),
                inset 2px 2px 0 0 var(--lo), inset -2px -2px 0 0 var(--hi);
  }
  .home-hero .searchbar .px-input-wrap {
    box-shadow: inset 2px 2px 0 0 var(--lo), inset -2px -2px 0 0 var(--hi);
  }
  .home-hero .searchbar .px-input { min-height: 42px; font-size: 15px; }
}

/* ===== 2026-11-05 19:58 / 20:05 第六轮再修订：标题与模式键同一行 =====
   站长两张示意图：图一箭头把四个模式键往中间挪，图二箭头把标题挪到
   模式键原先那个最左边的位置 —— 两者对调，中间不再空一大段。
   搜索框的位置 / 宽度 / 外观一个都不动，PC 端仍是最初那张满宽浅纸片。 */
.hero-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.hero-topline .home-hero__title {
  grid-column: 1; justify-self: start;
  margin: 0; white-space: nowrap;
}
.hero-topline .searchbar__modes { grid-column: 2; justify-self: center; }

/* 中等宽度放不下「标题 + 居中按钮」并排时，退回上下两行，别把按钮挤变形 */
@media (min-width: 821px) and (max-width: 1100px) {
  .hero-topline { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-topline .home-hero__title { order: -1; white-space: normal; }
  .hero-topline .searchbar__modes { align-self: center; }
}
@media (max-width: 820px) {
  .hero-topline { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .hero-topline .home-hero__title { white-space: normal; text-align: center; }
}

/* ===== 2026-11-05：天气框接真实数据 =====
   城市 + 温度 + 天气短句都在 .weatherbox__hint 这一行，它是系统黑体，
   不受像素字体子集限制（晴 / 雨 / 雾等字不在子集里，别挪进 .ui 那行）。 */
.weatherbox__hint {
  font-size: 13px; line-height: 1.35; opacity: 1;
  text-align: center; max-width: 100%; overflow-wrap: anywhere;
}
.weatherbox__src {
  font-size: 9px; line-height: 1; color: var(--muted);
  opacity: .55; white-space: nowrap;
}

/* ===== 2026-11-05 20:30 补：PC 端四个模式键放大一点 =====
   站长指着按钮说「卡片改大一点」。只动尺寸与组内间距，
   颜色 / 字体 / 边框 / 选中态一律不动；手机端已有自己的一套，不受影响。 */
@media (min-width: 821px) {
  .home-hero .searchbar__modes { gap: 6px; }
  .home-hero .searchbar__modes .mode {
    font-size: 14px; min-height: 36px; padding: 9px 16px;
  }
}

/* ===== 2026-11-07：推荐位占位、分类页标题、本周史低、手机站数 ===== */
.rec-slot--empty {
  opacity: 1;
  border: 0;
  cursor: default;
  color: var(--muted);
  background: var(--panel);
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.page-hero__count {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  text-shadow: none;
  margin-left: 8px;
  white-space: nowrap;
}
.week-deals {
  margin: 0 0 24px;
  padding: 16px;
  background: var(--panel);
  box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line);
}
/* 2026-11-09：/week/ 页有真实清单后，这块紧贴上面「更新时间」那一行，
   面板 4px 描边直接压住文字下缘 → 留出间距。 */
.deal-updated + .week-deals { margin-top: 14px; }
.week-deals__shops-title {
  margin: 16px 0 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: none;
}
.week-deals__shops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.week-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: none;
  box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line);
}
.week-entry:hover { background: var(--hit-card); }
.week-entry__go { font-size: 12px; color: var(--link); }
.week-deals__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.week-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 56px;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 4px 8px;
  background: var(--card);
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.week-row__name,
.week-row__price,
.week-row__go {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
 
}
.week-row__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 2026-11-09 21:20：游戏名是采来的，像素子集（1229 字）装不下——
   名字列改用黑体，价格 / 链接仍是像素等宽，字形不打架。 */
.week-row__name { font-family: var(--font-body); font-size: 13px; }
.week-row__price,
.week-row__go { min-width: 0; }
.week-row__price { color: var(--muted); text-align: right; }
.week-row__go { color: var(--muted); text-align: right; text-decoration: none; }
a.week-row__go { color: var(--link); }
a.week-row__go:hover { text-decoration: underline; text-underline-offset: 3px; }
.week-row--head {
  background: transparent;
  box-shadow: none;
  min-height: 0;
  padding: 0 8px 4px;
  color: var(--muted);
}
.week-shop {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 8px;
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
 
}
.week-shop:hover { background: var(--hit-card); }
.play-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.play-links__a {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1;
 
  text-decoration: none;
  color: var(--fg);
  background: var(--card);
  padding: 8px 12px;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.play-links__a:hover { background: var(--hit-card); }
@media (max-width: 760px) {
  .week-deals__shops { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .rec-row__tag {
    flex: 1 1 100%;
    min-height: 0;
    margin: 0 0 4px;
    padding: 0 2px;
    justify-content: flex-start;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    font-size: 12px;
  }
  .rec-slot { box-sizing: border-box; margin: 0; flex: 1 1 calc(50% - 4px); }
}
@media (max-width: 640px) {
  /* 站点导航改成小字后手机上一行放得下，不再竖排两行 */
  .site-list-head { flex-direction: row; align-items: baseline; gap: 4px 10px; margin-top: 14px; }
  .site-list-head__meta { margin: 0; font-size: 11px; }
  .week-deals { padding: 12px; }
  .week-row {
    grid-template-columns: minmax(0, 1fr) 72px 64px;
    gap: 4px;
    padding: 4px 6px;
  }
}

/* ============ 2026-11-07 第四轮：史低三张卡 + 三张清单页 + 吉祥物 ============ */

/* 「史低」两个字的颜色：浅色底用砖红，深色底提亮。字要红/黄，不要整块红底。 */
:root { --deal-hot: #c2410c; }
[data-theme="dark"] { --deal-hot: #ff9d73; }

/* 2026-11-09 方案 A：独立的「史低」页签已删，.tab--week 样式一并移除。
   本周清单从「游戏史低」分类页的三张卡进入。 */

/* 折扣类最前面：三张大卡横排（PC / 任天堂 / 主机） */
.week-cards {
  display: grid;
  /* 2026-11-12（P0-2）曾按「有数据的线」决定张数，主机没数据就只剩 2 张；
     2026-11-13 站长看到 3 张变 2 张以为数据丢了，拍板改回三个平台入口固定都在，
     没采到价格的那张写「待更新」。列数仍跟着张数走，以后加平台不用改这里。 */
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 16px;
}
.week-card {
  display: grid;
  gap: 4px;
  max-width: 360px;
  justify-self: start;
  min-height: 96px;
  padding: 12px;
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
  box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line);
}
.week-card:hover { background: var(--hit-card); }
.week-card__kicker {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1;
 
  color: var(--deal-hot);
  letter-spacing: .08em;
}
.week-card__name {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.2;
  -webkit-font-smoothing: none;
}
.week-card__desc { font-size: 12px; line-height: 1.5; color: var(--muted); }
.week-card__now {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
 
  color: var(--accent-text);
}
.week-card__go {
  justify-self: end;
  font-size: 12px;
  color: var(--link);
}

/* 三张清单页 */
.deal-updated {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
 
  color: var(--muted);
}
.deal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.deal-nav__a {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1;
 
  text-decoration: none;
  color: var(--fg);
  background: var(--card);
  padding: 9px 12px;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.deal-nav__a:hover { background: var(--hit-card); }
.deal-nav__a.sel { background: var(--accent); color: var(--accent-fg); }
.deal-sec { margin: 0 0 26px; }
.deal-sec__note { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.deal-note { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--accent-text); }
.deal-table-wrap {
  overflow-x: auto;
  padding: 8px;
  background: var(--panel);
  box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line);
}
.deal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
 
}
.deal-table th {
  padding: 6px 8px;
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 3px solid var(--line);
  white-space: nowrap;
}
.deal-table td {
  padding: 8px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.deal-table tbody tr:last-child td { border-bottom: 0; }
/* 2026-11-09 21:20：表里第一次出现真实游戏名。像素字体只有 1229 个字的子集，
   游戏名必然 fallback 成系统字，一行里混两种字形很脏——表头继续像素风，
   单元格改用黑体；数字仍等宽，价格列对得齐。 */
.deal-table td { font-family: var(--font-body); font-size: 13px; }
.deal-table td.deal-row__game { color: var(--fg); }
.deal-table td.deal-row__src a { color: var(--link); }
.deal-row__src a:hover { text-decoration: underline; text-underline-offset: 3px; }
.deal-sec--foot .week-deals__shops { margin-bottom: 8px; }

/* =========================================================
   2026-11-07 第五轮（修正文件第 1/2/3 条）
   首屏缩短：删掉搜索框下面的小猫、时间天气框缩小（手机藏起来）、
   三张史低卡改小成一行、推荐位没推广时整行不出现。
   一律追加在文件末尾：同优先级下后者生效。
   ========================================================= */

/* ---- 第 1 条：三张史低卡改成一行小卡，约 60px 高 ---- */
/* 内容（名字、链接、说明）一个都没删，只是把「说明」那一行收起来不占高度，
   手机和电脑都是三列一行，不再竖着排三行。
   2026-11-09 21:10：再压一档 —— 删掉与「PC 史低」重复的「史低」小标签，
   底部三张卡片同一句话压成「价格待更新」，8px 上下内边距后约 50px 高。 */
.week-cards {
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 14px;
}
.week-card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name go" "now now";
  align-content: start;
  min-height: 0;
  padding: 7px 10px;
  gap: 2px 6px;
}
.week-card__kicker { grid-area: kicker; font-size: 11px; letter-spacing: .06em; }
.week-card__name { grid-area: name; font-size: 15px; line-height: 1.25; }
.week-card__desc { display: none; }
.week-card__now { grid-area: now; font-size: 11px; }
.week-card__go { grid-area: go; align-self: start; font-size: 11px; }
@media (max-width: 900px) {
  .week-cards { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .week-card { min-height: 46px; padding: 7px 8px; align-content: center; }
  .week-card__name { font-size: 14px; }
  .week-card__now { display: none; }
}
@media (max-width: 380px) {
  .week-card__kicker { font-size: 10px; }
  .week-card__name { font-size: 13px; }
}

/* ---- 第 1 条第 3 点：时间 / 天气框缩小；手机上整块藏起来 ---- */
.home-hero { grid-template-columns: minmax(0, 1fr) 172px; gap: 14px; padding: 14px 16px; }
.home-hero__side { gap: 6px; }
.clockbox { padding: 8px 10px; gap: 2px; min-height: 0; }
.clockbox__date { font-size: 11px; }
.clockbox__week { font-size: 10px; }
.clockbox__time { font-size: 20px; line-height: 1.1; }
.weatherbox { min-height: 0; padding: 7px 8px; gap: 2px; }
.weatherbox__label { font-size: 11px; }
.weatherbox__hint { font-size: 12px; line-height: 1.3; }
.weatherbox__src { display: none; }
@media (max-width: 820px) {
  /* 手机第一屏不放时间天气：不占一整行，直接不显示（元素还在 DOM 里，脚本照常跑） */
  .home-hero__side { display: none; }
  .home-hero { grid-template-columns: 1fr; padding: 12px; gap: 8px; }
}
@media (max-width: 640px) {
  .week-card__now { display: none; }
}

/* 2026-11-09 19:47 站长：手机端三张史低卡改三行窄条（电脑仍三列）。
   每行 40px：平台色条 + 「史低」+ 机型 + 「打开」，机型名不再贴边，整行可点。 */
@media (max-width: 640px) {
  .week-cards { grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }
  .week-card {
    position: relative; overflow: hidden;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "kicker name go";
    align-items: center;
    max-width: none;
    justify-self: stretch;
    min-height: 40px;
    padding: 6px 10px 6px 14px;
    gap: 0 8px;
  }
  .week-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--wc, var(--c-teal));
  }
  .week-card--pc { --wc: var(--c-teal); }
  .week-card--ns { --wc: var(--c-coral); }
  .week-card--console { --wc: var(--c-sky); }
  .week-card__kicker { grid-area: kicker; font-size: 11px; }
  .week-card__name { grid-area: name; font-size: 14px; line-height: 1.2; }
  .week-card__now { display: none; }
  .week-card__go { grid-area: go; align-self: center; font-size: 11px; }
}

/* ---- 第 3 条：便捷工具只画真链接，空位留白（不再输出占位框） ---- */

/* ---- 第 2 条：文章页一行一篇，标题 / 日期 / 标签 / 一句简介 ----
   2026-11-09 20:20（文章区 B 方案）：标签不再单独占一行，改成跟在日期后面同一行，
   字号 11→10、描边 2→1px；摘要封两行，八张卡高度一致，滚动时有节奏。 */
.post-card__date { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.post-card__tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.post-card__tags .tag-chip { font-size: 10px; padding: 3px 6px; cursor: default; }
.post-card__tags .tag-chip--static { color: var(--muted); box-shadow: inset 0 0 0 1px var(--divider); }
.blog-all .post-card__summary {
  font-size: 14px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px) {
  .blog-all .post-card__title { font-size: 18px; line-height: 1.4; }
  .blog-all .post-card__summary { font-size: 13px; line-height: 1.6; }
}

@media (max-width: 760px) {
  .deal-table { min-width: 560px; }
}

/* =========================================================
   2026-11-07 第五轮追加：三张史低卡加效果（只有电脑端，手机先不动）
   平台色条 + 闪动的「史低」小方点 + 悬停抬 2px、色条变粗、箭头右移。
   全部用方块、像素位移，不加圆角、不加渐变。
   ========================================================= */
@media (min-width: 901px) {
  .week-card {
    position: relative;
    overflow: hidden;
    padding-left: 16px;
    transition: transform .12s steps(2, end), background .12s steps(2, end);
  }
  .week-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--wc, var(--c-teal));
    transform-origin: left center;
    /* 2026-11-07 审计：原来是 transition: width（每帧触发布局），改用 transform 拉伸 */
    transition: transform .12s steps(2, end);
  }
  .week-card--pc { --wc: var(--c-teal); }
  .week-card--ns { --wc: var(--c-coral); }
  .week-card--console { --wc: var(--c-sky); }
  .week-card:hover { transform: translate(-2px, -2px); }
  .week-card:hover::before { transform: scaleX(1.8); }
  .week-card__kicker { display: flex; align-items: center; gap: 5px; }
  .week-card__kicker::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--deal-hot);
    animation: deal-blink 1.6s steps(2, end) infinite;
  }
  .week-card__go { transition: transform .12s steps(2, end); }
  .week-card:hover .week-card__go { transform: translateX(3px); }
}
@keyframes deal-blink {
  50% { opacity: .15; }
}
@media (prefers-reduced-motion: reduce) {
  .week-card, .week-card::before, .week-card__go { transition: none; }
  .week-card__kicker::before { animation: none; }
}



/* =========================================================
   2026-11-07 设计审计修正（只动样式，不动结构 / 数据）
   1 选中文字用配色强调色；2 锚点平滑滚动 + 头顶留白；
   3 标题换行平衡；4 焦点环统一到强调色；5 数字等宽。
   （第 4 条「史低卡色条」已在上面改成 transform，见 .week-card::before）
   ========================================================= */
::selection { background: color-mix(in srgb, var(--accent-text) 26%, transparent); color: var(--fg); }
@supports not (background: color-mix(in srgb, red 26%, transparent)) {
  ::selection { background: var(--accent-text); color: var(--bg); }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 16px; }

h1, h2, .page-hero__title, .post-card__title, .week-card__name { text-wrap: balance; }
p, .site-card__desc, .post-card__summary, .deal-sec__note { text-wrap: pretty; }

/* components.css 的 :focus-visible 用 --focus，而 --focus 在各配色里等于 --sel
   （indigo 浅色下是橙色，跟主色打架）。这里把 --focus 接到该配色自己的强调色上；
   选择器故意跟 palettes.css 同权重（0,3,0）并放在后面，所以后到者胜。 */
html[data-palette="teal"][data-theme="light"],
html[data-palette="teal"][data-theme="dark"],
html[data-palette="indigo"][data-theme="light"],
html[data-palette="indigo"][data-theme="dark"],
html[data-palette="candy"][data-theme="light"],
html[data-palette="candy"][data-theme="dark"] { --focus: var(--accent-text); }

.deal-table th, .deal-table td, .page-hero__count, .site-list-head__meta,
.site-group__count, .post-card__meta, .clockbox__date, .clockbox__time { font-variant-numeric: tabular-nums; }
/* =========================================================
   2026-11-07 设计审计·第二轮（只动样式与交互，不动数据）
   1 搜索框一键清空；2 窄屏价格表可横滑的提示；3 网格卡片焦点环收进卡内。
   ========================================================= */

/* 1. 搜索框右边的 ×：有内容才出现（JS 控制 hidden） */
.search-clear {
  flex: 0 0 auto;
  width: 22px; height: 22px; padding: 0;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
  font: 14px/1 var(--font-body);
  transition: color .08s steps(1, end), background .08s steps(1, end);
}
.search-clear:hover, .search-clear:focus-visible { color: var(--accent-text); background: var(--inset); }
.search-clear:active { transform: translate(1px, 1px); }
/* 2026-11-20：它是 display:grid，作者样式会盖掉 [hidden] 的 UA 样式，
   界面里就出现「空输入框右边还挂个 ×」。全站别处都补过这类兜底，就漏了这一个。 */
.search-clear[hidden] { display: none; }
@media (max-width: 640px) { .search-clear { width: 28px; height: 28px; font-size: 16px; } }

/* 2. 手机上的价格表是横向滚动的，右边被切断会被当成「就这么多」：
      给一层贴边的内阴影当暗示，再加一行小字（只窄屏出现） */
.deal-scroll-hint { display: none; }
@media (max-width: 760px) {
  .deal-table-wrap { box-shadow: inset -14px 0 14px -14px color-mix(in srgb, var(--fg) 40%, transparent); }
  .deal-scroll-hint { display: block; margin: 6px 4px 0; font-size: 11px; line-height: 1.6; color: var(--muted); text-align: right; }
}

/* 3. 卡片网格间距只有 8–10px，全局 6px 偏移的焦点环会压到隔壁卡：网格里的卡片收进卡内 */
.site-card:focus-visible, .week-card:focus-visible, .tool-card:focus-visible,
.leisure-card:focus-visible, .qlink:focus-visible { outline-offset: -4px; }

/* 5. /week/ 没有真实数据时的空状态说明 */
.week-deals__empty { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---------- 2026-11-25：装机向导（挑件 / 装 / 调） ----------
   顶部双入口照顾新手与 DIY 玩家；三阶段共用一条 sticky 路线。
   三个 details 在 HTML 里都带 open：关掉 JS 时全部展开，表单、清单和链接照样在。 */
.wz-lead { margin: 0 0 14px; }
.wz-quick {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 20px 0 12px;
}
.wz-quick__item {
  position: relative; display: grid; min-width: 0; min-height: 118px; align-content: start; gap: 7px;
  padding: 16px 48px 16px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); box-shadow: inset 0 0 0 2px var(--divider); color: var(--fg);
  text-align: left; text-decoration: none; font: inherit; cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.wz-quick__item:hover {
  z-index: 1; border-color: var(--accent); box-shadow: 0 8px 22px rgb(20 20 40 / 10%);
  transform: translateY(-1px);
}
.wz-quick__item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wz-quick__item--diy {
  border: 2px solid var(--accent); background: var(--accent); box-shadow: 4px 4px 0 var(--line);
  color: var(--accent-fg);
}
.wz-quick__flag {
  justify-self: start; padding: 3px 7px; border: 1px solid currentColor; border-radius: 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; opacity: .78;
}
.wz-quick__item strong { font-family: var(--font-body); font-size: 17px; font-weight: 850; line-height: 1.35; }
.wz-quick__desc { max-width: 420px; font-size: 12px; line-height: 1.6; opacity: .76; }
.wz-quick__arrow {
  position: absolute; top: 50%; right: 17px; font-size: 25px; font-weight: 800; line-height: 1;
  transform: translateY(-50%);
}

.wz-route {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 20px 0 22px; padding: 8px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); box-shadow: 0 8px 24px rgb(20 20 40 / 10%); backdrop-filter: blur(12px);
}
.wz-route__item {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center;
  min-width: 0; min-height: 66px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--fg); text-align: left; text-decoration: none; font: inherit; cursor: pointer;
}
.wz-route__item:hover { background: var(--card); }
.wz-route__item.is-on { border-color: var(--accent); background: var(--accent); color: var(--accent-fg); }
.wz-route__item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wz-route__no {
  display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid currentColor; border-radius: 6px;
  font-family: var(--font-ui); font-size: 18px; line-height: 1; opacity: .78;
}
.wz-route__title { display: block; margin-bottom: 3px; font-size: 16px; font-weight: 800; }
.wz-route__desc {
  display: block; overflow: hidden; font-size: 11.5px; line-height: 1.45; opacity: .76;
  text-overflow: ellipsis; white-space: nowrap;
}

.wz-steps { display: block; }
.wz-phase { margin: 0 0 26px; scroll-margin-top: 124px; }
.wz-phase__head {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  margin: 0 0 14px; padding: 0 2px;
}
.wz-phase__index {
  display: grid; width: 54px; height: 54px; place-items: center; border: 2px solid var(--accent); border-radius: 8px;
  background: var(--panel); color: var(--accent-text); font-family: var(--font-ui); font-size: 22px; line-height: 1;
  box-shadow: 3px 3px 0 var(--line);
}
.wz-phase__title {
  margin: 1px 0 5px; font-family: var(--font-body); font-size: 25px; font-weight: 850; letter-spacing: -.02em; line-height: 1.2;
}
.wz-phase__desc { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.wz-phase__flag {
  align-self: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--inset); color: var(--muted); font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.wz-phase__flag--new { border-color: var(--accent); color: var(--accent-text); }

.wz-step { margin: 0 0 12px; background: var(--panel); box-shadow: inset 0 0 0 2px var(--line); scroll-margin-top: 124px; }
.wz-step__head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  list-style: none; cursor: pointer; background: var(--inset);
  box-shadow: inset 0 0 0 2px var(--line);
}
.wz-step__head::-webkit-details-marker { display: none; }
.wz-step__head:hover { background: var(--card); }
.wz-step.is-on .wz-step__head { background: var(--accent); color: var(--accent-fg); }
.wz-step__no {
  flex: 0 0 auto; font-family: var(--font-body); font-size: 12px;
  padding: 3px 6px; color: var(--fg); background: var(--card);
  box-shadow: inset 0 0 0 2px var(--line);
}
.wz-step__title { font-size: 15px; font-weight: 700; white-space: nowrap; }
.wz-step__hint {
  flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wz-step.is-on .wz-step__hint { color: var(--accent-fg); opacity: .8; }
/* 加减号用两条方块画，不用字符：字体子集里没有这些符号 */
.wz-step__mark {
  position: relative; flex: 0 0 14px; width: 14px; height: 14px;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--line);
}
.wz-step__mark::before, .wz-step__mark::after { content: ''; position: absolute; background: var(--fg); }
.wz-step__mark::before { left: 3px; right: 3px; top: 6px; height: 2px; }
.wz-step__mark::after { top: 3px; bottom: 3px; left: 6px; width: 2px; }
.wz-step[open] .wz-step__mark::after { display: none; }
.wz-step__body { padding: 14px 12px 6px; }
.wz-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wz-sub[hidden] { display: none; }
/* 预算表里「T5 档」原来是个链接，改成按钮但保持链接的样子 */
.wz-link {
  padding: 0; border: 0; background: none; font: inherit; cursor: pointer;
  color: var(--link); text-decoration: underline; text-underline-offset: 3px;
}
.wz-link:hover { color: var(--accent-text); }

.wz-note {
  display: flex; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 8px; background: var(--inset); color: var(--muted);
  font-size: 12.5px; line-height: 1.65;
}
.wz-note strong { color: var(--fg); }
.wz-check-card {
  min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); box-shadow: inset 0 0 0 2px var(--divider);
}
.wz-check-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wz-check-card__title { margin: 0; font-family: var(--font-body); font-size: 17px; font-weight: 800; }
.wz-check-progress { color: var(--accent-text); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wz-check-reset {
  min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--card); color: var(--muted); font: inherit; font-size: 11px; cursor: pointer;
}
.wz-check-reset:hover { color: var(--fg); }
.wz-check-reset:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wz-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wz-check {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start;
  min-width: 0; padding: 12px; border: 1px solid var(--divider); border-radius: 8px;
  background: var(--card); cursor: pointer;
}
.wz-check:hover { border-color: var(--line); }
.wz-check:has(input:checked) { border-color: var(--accent); background: var(--inset); }
.wz-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.wz-check__text { display: block; color: var(--fg); font-size: 13px; font-weight: 750; line-height: 1.5; }
.wz-check__detail { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.6; }
.wz-check:has(input:checked) .wz-check__text {
  color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px;
}
.wz-tune-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 14px; align-items: start;
}
.wz-tune-grid .wz-step { min-width: 0; }
.wz-tune-side { min-width: 0; }
.wz-tune-side .wz-checklist { grid-template-columns: 1fr; }

@media (max-width: 860px) {
  .wz-tune-grid { grid-template-columns: 1fr; }
  .wz-route__item { grid-template-columns: 34px minmax(0, 1fr); padding: 8px; }
  .wz-route__no { width: 34px; height: 34px; font-size: 15px; }
  .wz-route__desc { display: none; }
}
@media (max-width: 700px) {
  .wz-step__hint { display: none; }
  .wz-step__head { padding: 9px 10px; }
  .wz-step__body { padding: 12px 10px 6px; }
}
@media (max-width: 640px) {
  .wz-quick { grid-template-columns: 1fr; gap: 8px; margin: 14px 0 10px; }
  .wz-quick__item { min-height: 104px; padding: 13px 42px 13px 13px; }
  .wz-quick__item strong { font-size: 15px; }
  .wz-quick__desc { font-size: 11.5px; }
  .wz-quick__arrow { right: 13px; font-size: 22px; }
  .wz-route { gap: 4px; margin: 14px 0 18px; padding: 5px; border-radius: 9px; }
  .wz-route__item { display: flex; min-height: 48px; justify-content: center; gap: 6px; padding: 7px 4px; }
  .wz-route__no { width: 25px; height: 25px; border: 0; font-size: 13px; }
  .wz-route__title { margin: 0; font-size: 13px; }
  .wz-phase, .wz-step { scroll-margin-top: 96px; }
  .wz-phase__head { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
  .wz-phase__index { width: 42px; height: 42px; font-size: 18px; }
  .wz-phase__title { font-size: 21px; }
  .wz-phase__desc { font-size: 12px; }
  .wz-phase__flag { grid-column: 2; justify-self: start; }
  .wz-checklist { grid-template-columns: 1fr; }
  .wz-check-card { padding: 13px; }
  .wz-check-card__top { align-items: flex-start; }
  .wz-check-card__title { font-size: 15px; }
  .wz-note { padding: 10px 11px; font-size: 11.5px; }
}

/* ---------- 2026-11-09 方案 A：史低入口收成一个 ----------
   首页三张大卡降为一行文字链接；清单页空表默认收起。
   沿用站内链接色与 muted 说明文字，不加圆角、不加动画。 */
.week-links { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.week-links a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.week-links a:hover { color: var(--accent-text); }
.deal-empty-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.deal-fold { margin: 10px 0 0; }
.deal-fold > summary {
  cursor: pointer; font-size: 13px; line-height: 1.6;
  color: var(--link); text-decoration: underline; text-underline-offset: 3px;
}
.deal-fold[open] > summary { margin-bottom: 10px; }

/* 2026-11-09 20:30（文章区 B 方案）：手机端文章封面限高 180。
   必须写在这里 —— 上面的 640 断点在 .post-cover img 基础规则之前，
   同特异性下会被后面的 max-height:300 盖掉（踩过一次）。 */
@media (max-width: 640px) {
    /* 2026-11-17：手机端原来还有一条 .post-cover img{max-height:180px}，已删除——不再限高，完整 16:9。 */
}
/* ===== 2026-11-09 21:00 首页两张工具横卡 =====
   站长问「装机向导和掌机数据库怎么让人一眼看到」：原来只在右栏 6 个小按钮里，
   手机端更是排在 222 个站之后。现在放在史低三卡下面：
   三张史低（这周便宜什么）+ 两张工具（我能帮你做什么），站点导航往后让一屏。
   箭头用 CSS 画三角，不用字符 ›（像素字体子集里没有，会 fallback）。 */
/* 2026-11-11：多了一条「宝可梦图鉴」，固定两列会剩半行，改 auto-fit 自适应 */
/* 2026-11-14（站长：工具卡改成横向扁长条、一排横着排；推广位现在不显示空框，
   以后有推广位时（config.promoSlots>0）渲染到这排卡片【下方】单独一行）。
   卡片统一：标题(左,不缩) + 小字(中,省略号) + 箭头(右)。
   桌面用固定 4 等分网格（minmax(0,1fr) 让 4 张永远等宽同一行，不换行也不被拉伸）；
   手机(≤640) 改满宽竖堆。小字保留。 */
.tool-banners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.tool-banner {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
  padding: 11px 14px; color: var(--fg); text-decoration: none; background: var(--card);
}
.tool-banner__body { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 auto; }
.tool-banner__name {
  display: flex; align-items: center; gap: 7px; flex: 0 0 auto; min-width: 0; white-space: nowrap;
  font-family: var(--font-ui); font-size: 15px; line-height: 1.3;
}
.tool-banner__kicker {
  flex: 0 0 auto; font-size: 10px; line-height: 1; padding: 3px 6px; white-space: nowrap;
  color: var(--accent-fg); background: var(--accent);
}
.tool-banner__brief {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; line-height: 1.3; color: var(--muted); flex: 1 1 auto;
}
.tool-banner__go {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 12px; color: var(--link);
}
.tool-banner__go::after {
  content: ""; display: block; width: 0; height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.tool-banner:hover .tool-banner__name { text-decoration: underline; text-underline-offset: 4px; }

/* 将来有推广位时（config.promoSlots>0）渲染到工具行下方，单独一行同样的扁长条，
   虚线边框 + 中性「推广」标与内容卡区分；现在 promoSlots=0 不显示。
   用 auto-fit 网格，1~N 张都等宽可换行，不会塌成内容宽度。 */
.tool-banners--promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.tool-banner--promo {
  cursor: default; background: transparent; border: 1px dashed var(--line);
  color: var(--muted);
}
.tool-banner--promo .tool-banner__brief { color: var(--muted); opacity: .85; }
.tool-banner--promo .tool-banner__go { color: var(--muted); }
.tool-banner__kicker--promo {
  color: var(--muted); background: var(--line); font-weight: 600;
}
.tool-banner--promo:hover .tool-banner__name { text-decoration: none; }

/* 手机：扁长条满宽竖堆（网格改单列），标题与小字同一行，字号略抬。 */
@media (max-width: 640px) {
  .tool-banners { grid-template-columns: 1fr; }
  .tool-banner { padding: 12px 13px; }
  .tool-banner__name { font-size: 16px; }
  .tool-banner__kicker { font-size: 11px; padding: 4px 6px; }
  .tool-banner__brief { font-size: 14px; }
  .tool-banner__go { font-size: 13px; }
}

/* ===== 2026-11-18（站长方案）：首页 4 横卡→3 条 44px 窄条 =====
   PC史低 / 史低类最新文章 / 宝可梦专区占位。整条可点（占位条除外），
   44px 高不撑破首屏；长标题省略号不撑高；手机隐藏小图省地方。 */
.feature-strip { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.feature-strip__row {
  display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto;
  align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 12px;
  color: var(--fg); text-decoration: none; background: var(--card);
}
a.feature-strip__row:hover { background: var(--inset); }
a.feature-strip__row:hover .feature-strip__title { text-decoration: underline; text-underline-offset: 3px; }
.feature-strip__thumb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; font-family: var(--font-ui); font-size: 14px;
  color: var(--accent-fg); background: var(--accent);
}
.feature-strip__thumb--post { background: var(--c-mint, var(--accent)); }
.feature-strip__thumb--poko { background: var(--c-grape, var(--accent)); }
.feature-strip__tag {
  flex: 0 0 auto; font-size: 10px; line-height: 1; padding: 4px 6px; white-space: nowrap;
  color: var(--muted); background: var(--inset);
}
.feature-strip__title {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-ui); font-size: 14px;
}
.feature-strip__go { flex: 0 0 auto; font-size: 12px; color: var(--link); white-space: nowrap; }
/* 第三条：宝可梦占位，不可点、弱化 */
.feature-strip__row--soon { cursor: default; color: var(--muted); }
.feature-strip__row--soon .feature-strip__go { color: var(--muted); }
@media (max-width: 640px) {
  .feature-strip__row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 6px 10px; }
  .feature-strip__thumb { display: none; }
  .feature-strip__title { font-size: 13px; }
}

/* ===== 2026-11-13 改版 v5：折扣分四档上色（top 新增） =====
   站长原话：「折扣和价格一个颜色，没法区分哪个折扣大」；改版拍板（m07019）
   「不写超值，只加重折扣颜色」。价格列不动，只把折扣变成色块：
   ≥80% 橙红底加重、≥70% 黄底、40–69% 青底、其余灰字加细框。
   top 档取 --deal-hot（砖红/深色下提亮成珊瑚），比黄底再重一档；
   黄 / 青都取调色板里的 --accent2 / --accent，两套主题都有配套的 *-fg，深色下不会糊。 */
.deal-table td.deal-off { white-space: nowrap; }
.deal-off__v {
  display: inline-block; min-width: 54px; padding: 2px 6px;
  font-family: var(--font-body); font-size: 13px; line-height: 1.45;
  text-align: center; font-variant-numeric: tabular-nums;
}
.deal-off--top .deal-off__v { background: var(--deal-hot); color: #fff; font-size: 14px; padding: 2px 8px; }
[data-theme="dark"] .deal-off--top .deal-off__v { color: #1a0f08; }
.deal-off--hi .deal-off__v { background: var(--accent2); color: var(--accent2-fg); }
/* 中档用 --chip-teal / --chip-fg 这一对：两套主题里都是「浅底 + 深字」，
   换成 --accent 会在紫色系深色主题下变成深底深字，糊掉。 */
.deal-off--mid .deal-off__v { background: var(--chip-teal); color: var(--chip-fg); }
.deal-off--lo .deal-off__v { color: var(--muted); box-shadow: inset 0 0 0 2px var(--divider); }

/* 2026-11-13（改版拍板）：站长定「不需要专门展示热门」——
   「热门」角标的 HTML 已从 build.js 删掉，这条老规则一并清掉，不留死代码。 */
.deal-table td.deal-row__game { white-space: nowrap; }

/* =========================================================
   2026-11-11 芥末黄皮肤（第 4 套配色）专属修正
   一律只挂 html[data-palette="mustard"]，青绿 / 靛紫 / 糖果完全不受影响。
   ========================================================= */

/* 页面标题和品牌字的描边硬阴影，原来固定取 --c-teal（薄荷青）：
   压在芥末黄上是一块冷色补丁，夜间版是青色描边压黄字，字会糊成一团。
   这里按本皮肤自己的硬阴影色走——日间黑、夜间深琥珀。 */
html[data-palette="mustard"][data-theme="light"] .brand__text,
html[data-palette="mustard"][data-theme="light"] .page-hero__title { text-shadow: 3px 3px 0 #16130a; }
html[data-palette="mustard"][data-theme="dark"] .brand__text,
html[data-palette="mustard"][data-theme="dark"] .page-hero__title { text-shadow: 3px 3px 0 #c99a12; }

@media (max-width: 640px) {
  html[data-palette="mustard"][data-theme="light"] .brand__text,
  html[data-palette="mustard"][data-theme="light"] .page-hero__title { text-shadow: 2px 2px 0 #16130a; }
  html[data-palette="mustard"][data-theme="dark"] .brand__text,
  html[data-palette="mustard"][data-theme="dark"] .page-hero__title { text-shadow: 2px 2px 0 #c99a12; }
}

/* =========================================================
   2026-11-11 芥末黄：顶栏页签做成「卡片」
   站长对照预览：选中项黄底黑边硬阴影、未选中项白底 + 小阴影，
   每项带一个像素图标（图标来自 src/img/icons.svg，色托沿用类目 orb 色）。
   只在芥末黄皮肤生效，其它三套的页签外观一字未改。
   ========================================================= */

/* 2026-11-11 20:10 站长决定：芥末黄顶栏 LOGO 菜单栏与其它三套**完全统一**。
   原来那套「卡片页签 + 像素图标 + 页签独占第二行」是为修卡片挤压而加的，
   但它把 LOGO 从导航带里孤立到第一行（中间一大片空白），位置与别的皮肤不同；
   而卡片本身太宽（6 张合计约 1000px），1280 下也塞不进 LOGO 与右侧工具之间，
   单纯撤掉强制换行只会复现「右侧工具被顶下去 / 首张卡贴 LOGO 下沿」的老坑。
   所以整块撤除：页签回到通用规则的纯文字 + 底部实心条，图标不参与排版，
   四套皮肤的顶栏结构、LOGO 位置、换行规则 100% 同构。
   芥末黄的气质仍由 palettes.css 的配色变量 + 上面的标题硬阴影修正体现，不受影响。 */
.tab__ico { display: none; }

/* =========================================================
   2026-11-12 · UI 评审第 1 批（站长：字体 B、宽度 1300）
   这几条都是小件，集中放在末尾，不动上面的老规则。
   ========================================================= */

/* P1-3 核验角标：和「英文 / 需加速」同款描边款，位置统一在卡片右上角。
   规则只有一条——数据里有 verified 就挂，没有就不编。 */
.px-badge--verify {
  background: transparent; padding: 3px 5px; color: var(--muted);
  box-shadow: inset 0 0 0 2px var(--divider);
}
/* 手机（≤640）沿用「徽标只留色块、文字藏起来」的老规矩，所以要限定在桌面生效，
   否则这条会把 640 断点里的视觉隐藏顶掉，窄卡上白白吃掉一截站名。 */
@media (min-width: 641px) {
  .px-badge--verify .site-card__badge-txt { position: static; width: auto; height: auto; clip: auto; }
}

/* P0-4 附录条数后的小字：2026-11-15 起不再输出 */
.sub-head__extra { margin-left: 6px; font-style: normal; font-size: 11px; color: var(--muted); }

/* P0-1 史低页第 6 列：列名「历史最低价」，表上方一句中性说明 */
.deal-th-low { white-space: nowrap; }
.deal-th__sub { display: block; font-size: 11px; line-height: 1.2; font-weight: normal; color: var(--muted); }
.deal-col-note { margin: 0 0 10px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* 2026-11-21 站长给的「读法块」：放在 /week/pc/ 三张表之前，只出现一次。
   原本每张表前都重复一段列说明，合并到这里。用原生 ul 而不是自定义列表组件，
   手机端只需压字号，不用另写一套折行逻辑。 */
.deal-howto { margin: 22px 0 24px; }
.deal-howto .label-tab { margin-bottom: 12px; }
.deal-howto__list {
  margin: 0 0 10px;
  padding: 12px 16px 12px 30px;
  display: grid;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  background: var(--inset);
  box-shadow: 0 -2px 0 0 var(--divider), 0 2px 0 0 var(--divider), -2px 0 0 0 var(--divider), 2px 0 0 0 var(--divider);
}
.deal-howto__list li { list-style: none; position: relative; }
.deal-howto__list li::before {
  content: "·";
  position: absolute;
  left: -14px;
  color: var(--accent-text);
  font-weight: 700;
}
.deal-howto__list b { color: var(--fg); font-weight: 700; }
@media (max-width: 640px) {
  .deal-howto { margin: 18px 0 20px; }
  .deal-howto__list { padding: 10px 12px 10px 24px; font-size: 12.5px; line-height: 1.7; gap: 6px; }
  .deal-howto__list li::before { left: -12px; }
}

/* P2-1 页脚网址：纯文本，不做跳转 */
.pagefoot__site { color: var(--muted); }

/* =========================================================
   2026-11-12 · P0-7 分类页导航重排（站长点头的方案，照预览图落地）
   ① hero 下一行「常用先看」四个站
   ② 每组先露 8 个，其余收进原生 details（关 JS 也能点开）
   ③ 第三方资源整组包成面板，卡面不再挂重复徽标
   ========================================================= */

/* ---------- ① 常用先看 ---------- */

/* ---------- ② 分组变成独立块 + 折叠 ---------- */
/* h3 原来是 .site-grid 的直接子项（靠 grid-column 跨行），现在每组单独一块，
   所以跨列交给 .sub-group，组间距也从 h3 的 margin-top 挪到这里。 */
.sub-group { grid-column: 1 / -1; }
.sub-group + .sub-group { margin-top: 22px; }
.sub-group .sub-head { margin-top: 0; }

.sub-more { display: block; margin: 4px 0 2px; }
.sub-more__btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px; cursor: pointer; list-style: none;
  border: 2px solid var(--line); background: var(--panel); color: var(--fg);
  font-family: var(--font-body); font-size: 13px; letter-spacing: .3px;
}
.sub-more__btn::-webkit-details-marker { display: none; }
.sub-more__btn:hover { background: var(--hit-card); border-color: var(--accent); color: var(--accent-text); }
.sub-more__close { display: none; }
.sub-more[open] .sub-more__open { display: none; }
.sub-more[open] .sub-more__close { display: inline; }
/* 展开后 summary 沉到组底：column-reverse 把「先写的 summary」排到最后，
   视觉上就是「8 个 → 剩下的 → 收起」，和收起态按钮在底部保持一致。 */
.sub-more[open] { display: flex; flex-direction: column-reverse; }
.sub-more[open] > summary { margin-top: 6px; }
.sub-more__grid { margin-top: 10px; width: 100%; }

/* ---------- ③ 第三方资源：整组面板 ---------- */
.sub-group--third {
  /* 2026-11-12：这个面板光边框 + 内边距就吃掉 42px 横向空间（左 8+16、右 16+2），
     内侧网格比别的组窄 42 → 少排一列 → 卡片被拉宽（266 → 305），和上面各组对不上。
     负 margin 把面板整体向外扩 21px/边，面板框照样画，但内部网格宽度回到 1932。 */
  margin-top: 30px; margin-left: -21px; margin-right: -21px;
  padding: 14px 16px 10px;
  border: 2px solid var(--line); border-left: 8px solid var(--c-coral);
  background: var(--panel);
}
.sub-group--third + .sub-group { margin-top: 30px; }
.sub-group--third .sub-head { border-left-color: var(--c-coral); }
/* 卡面上的重复徽标已整组提到组名旁边（build.js noBadge），这里把空占位撑开吃掉 */
.sub-group--third .site-card__badges:empty { display: none; }

/* ---------- 手机 ---------- */
@media (max-width: 640px) {
  .sub-more__btn { padding: 12px; font-size: 12px; }
  /* 分类页两列：390 下原来单列，一组 8 个要滚 8 屏。
     只作用在分类页（.site-grid--wide），首页主栏那份单列不动。 */
  /* 2026-11-17：手机端首页也改两列紧凑（原来单列 350px 一张卡，一屏只看到 3 张，
     121 张要滚 12000px）。两列后一屏能看到 8 张，图标 30→22、内边距 8→6，名字仍放得下。 */
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .site-grid .site-card { grid-template-columns: 22px minmax(0, 1fr); column-gap: 6px; padding: 6px; min-height: 62px; }
  .site-grid .site-card__ico { width: 22px; height: 22px; font-size: 10px; }
  .site-grid .site-card__name { font-size: 13px; -webkit-line-clamp: 2; }
  .site-grid .site-card__desc { font-size: 11px; -webkit-line-clamp: 1; }
  .site-grid .site-card__badges { display: none; }
  .site-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-grid--wide .site-card { padding: 10px; }
  .site-grid--wide .site-card__name { font-size: 15px; }
  .site-grid--wide .site-card__desc { font-size: 12px; line-height: 1.35; }
  /* 两列只有约 170px，徽标（英文 / 需加速 / 核验）在这里既看不清又把站名挤成「52P…」。
     窄卡上整块收起，信息靠 title 和点进去看；单列布局（首页）不受影响。 */
  .site-grid--wide .site-card__badges { display: none; }
  /* 名字允许两行：中文站名 5 字以内的仍然一行，长的（52PK 游戏网、Retro Game Corps）
     换行显示全名，比截成三个字强。行高由同一行最高的卡决定，不会参差。 */
  .site-grid--wide .site-card__name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    white-space: normal; overflow: hidden; text-overflow: clip; line-height: 1.25;
  }
}
@media (max-width: 359px) {
  .site-grid--wide { grid-template-columns: 1fr; }
}

/* 2026-11-12（P1-0b）：文章分类筛选靠 hidden 切列表。
   .post-card 自己是 display:grid，作者样式会盖掉 [hidden] 的 UA 样式，
   不补这一条，点分类看起来完全没反应。 */
.post-card[hidden], .pick-card[hidden], .blog-picks[hidden] { display: none; }
/* 文章区顶部那排分类，和分类页的 chip 条同一套样式，只调一下上下留白 */
.blog-filter { margin: 22px 0 6px; }

/* =========================================================
   2026-11-13 · 史低改版 v5（站长 m07019/m07059/m07128 拍板，预览 OK 后落地）
   ① /week/pc/ 顶部「免费领」hero 卡（带封面图，无图退字母色块）
   ② 折扣 ≥80% 第四档加重（上面 deal-off--top）
   ③ 手机（≤640px）明细表不横滑：整块换成竖排小卡，零裁切
   集中放末尾，不动上面的老规则。
   ========================================================= */

/* ---------- ① 限免 hero 区 ---------- */
.deal-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}
.deal-hero__item {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--panel);
  color: var(--fg); text-decoration: none;
  box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line);
}
.deal-hero__item:hover { background: var(--hit-card); }
.deal-hero__item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* 封面：比例 460/195（banner300 的横条），铺满卡宽，高度锁 195 视觉不跳 */
.deal-hero__cover {
  display: block; position: relative;
  height: 195px; background: var(--panel-2, var(--panel));
  overflow: hidden;
  border-bottom: 2px solid var(--line);
}
.deal-hero__cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
}
/* 无图回退：首字母色块，居中大字 */
.deal-hero__cover--letter {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 56px; line-height: 1;
  color: var(--accent2-fg); background: var(--accent2);
  -webkit-font-smoothing: none;
}
.deal-hero__credit {
  position: absolute; left: 0; bottom: 0;
  padding: 2px 5px;
  font-family: var(--font-body); font-size: 10px; line-height: 1.4;
  color: var(--muted); background: color-mix(in srgb, var(--panel) 88%, transparent);
}
.deal-hero__body { display: flex; flex-direction: column; gap: 5px; padding: 12px 13px 13px; }
.deal-hero__store { font-family: var(--font-body); font-size: 11px; color: var(--muted); }
.deal-hero__name {
  font-family: var(--font-ui); font-size: 16px; line-height: 1.3; -webkit-font-smoothing: none;
  text-wrap: balance;
}
.deal-hero__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.deal-hero__zero { font-family: var(--font-body); font-size: 24px; line-height: 1.1; color: var(--deal-hot); }
.deal-hero__orig { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.deal-hero__until { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.deal-hero__claim {
  margin-top: auto; align-self: flex-start;
  padding: 6px 12px;
  font-family: var(--font-ui); font-size: 13px; line-height: 1.2; -webkit-font-smoothing: none;
  background: var(--accent); color: var(--accent-fg);
}

/* ---------- ③ 手机：hero 竖排 + 表格换竖排小卡 ---------- */
/* 默认态：竖排小卡藏起来（桌面不需要它），640 内的媒体查询再打开 */
.deal-mcards { display: none; }
@media (max-width: 640px) {
  /* hero：三卡竖排堆叠，封面缩成左侧 116px 小图，信息在右，一行卡高不裁切 */
  .deal-hero { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .deal-hero__item { flex-direction: row; align-items: stretch; }
  .deal-hero__cover { flex: 0 0 116px; width: 116px; height: auto; min-height: 96px; border-bottom: 0; border-right: 2px solid var(--line); }
  .deal-hero__cover--letter { font-size: 30px; }
  .deal-hero__credit { display: none; }
  .deal-hero__body { gap: 3px; padding: 9px 10px 10px; min-width: 0; }
  .deal-hero__store { display: none; }
  .deal-hero__name { font-size: 14px; line-height: 1.25; }
  .deal-hero__zero { font-size: 21px; }
  .deal-hero__orig { font-size: 12px; }
  .deal-hero__until { font-size: 11px; width: 100%; }
  .deal-hero__claim { padding: 4px 12px; font-size: 12px; }

  /* 明细表：整块收起，换成下面注入的竖排小卡（结构在 dealTableHtml 的手机分支里） */
  .deal-table-wrap--pc .deal-table { display: none; }
  /* 2026-11-14：提示是 .deal-table-wrap 的「兄弟」不是后代（build.js 放在 </div> 之后），
     原来写后代选择器永远命中不到，表格藏了提示却还挂着。改相邻选择器，文案和结构都不动。 */
  .deal-table-wrap--pc + .deal-scroll-hint { display: none; }
  .deal-mcards { display: block; }
  .deal-mitem {
    display: block; position: relative;
    padding: 10px 12px 10px 14px;
    border-left: 4px solid var(--accent);
    background: var(--panel);
    color: var(--fg); text-decoration: none;
  }
  .deal-mitem + .deal-mitem { margin-top: 8px; }
  .deal-mitem--top { border-left-color: var(--deal-hot); }
  .deal-mrow1 { display: flex; align-items: baseline; gap: 8px; }
  .deal-mrow1 .deal-mname {
    font-family: var(--font-body); font-size: 15px; line-height: 1.3; color: var(--fg);
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .deal-mrow1 .deal-moff {
    flex: none; padding: 1px 6px;
    font-family: var(--font-body); font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums;
    background: var(--chip-teal); color: var(--chip-fg);
  }
  .deal-mitem--top .deal-moff { background: var(--deal-hot); color: #fff; }
  [data-theme="dark"] .deal-mitem--top .deal-moff { color: #1a0f08; }
  .deal-moff--hi { background: var(--accent2); color: var(--accent2-fg); }
  .deal-mmeta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px;
    font-family: var(--font-body); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .deal-mget {
    display: inline-block; margin-top: 6px; padding: 4px 12px;
    font-family: var(--font-ui); font-size: 12px; line-height: 1.2; -webkit-font-smoothing: none;
    background: var(--accent); color: var(--accent-fg);
  }
}
/* 手机上 hero + mcard 都不做悬停位移（老规则 prefers-reduced-motion 之外，
   触屏没有 hover，位移只会造成点击闪烁） */
@media (hover: none) {
  .deal-hero__item:hover { background: var(--panel); }
}

/* 2026-11-14 C 批（清单 11.13 第 15 / 22 条）：侧栏文章补两行摘要；页脚补更新日期。
   第 14 条「手机 44px 热区」曾按预览图落地，05:40 站长看成品图反馈
   「下面文字间隔更大、更占用手机屏幕空间」，按方案 R 撤销，理由：
   .pagefoot__links 是 flex 容器，给 <a> 加 inline-flex + min-height:44px 会把每一行
   从 20px 撑到 44px（页脚 166px → 237px）；换 ::after 隐形热区实测向下 +6px 就命中
   下一行链接（两行行距仅约 24px），会误触。故这三类链接保持原高度，不再加 44px。 */
.side-post__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-body); font-size: 12px; line-height: 1.45; color: var(--muted); }
.pagefoot__updated { color: var(--muted); }

/* ==========================================================================
   2026-11-15 V2 视觉改版（站长 15:34 拍板：工具行 A + 视觉按改版做）
   下面这段逐条对应 _verify/_pv_v2_visual.cjs 的 CSS_BASE / CSS_MUSTARD 预览补丁，
   效果以 _verify/预览-V2-*1115.png 那组成品图为准，不得自行换方案。
   放在文件末尾并带 !important：预览是往 <head> 末尾注入样式，这里等价放置，
   保证各断点（尤其手机 max-width:640 那批 media）下都得到同一套结果。
   红线照旧：不加 scale 动画、不改字体分层、不新增圆角（标题带的 border-radius:0
   只是把原本就没有圆角的标签显式归零）。
   ========================================================================== */

/* 未选中筛选 pill：白底 + 2px 深色实线边框 */
.chip[aria-pressed="false"] { background:#fff!important; border:2px solid #2a2350!important; color:#2a2350!important; font-weight:700!important; box-shadow:2px 2px 0 #2a2350!important; }
/* 推荐卡常态高亮：淡黄底 + 粗边 + 左侧色带（类由 build.js 生成时挂，关 JS 也在） */
.site-card.is-pick { background:#fff4c9!important; border:3px solid #2a2350!important; box-shadow:inset 6px 0 0 #e0a92b,3px 3px 0 #2a2350!important; }
/* 站名加大加粗；描述浅灰改深灰、行高略增 */
.site-card__name { font-size:16px!important; font-weight:800!important; }
/* 2026-11-17：上面这条 16px!important 会把手机端两列卡的名字撑爆（169px 卡里名字区只有 123px）。
   手机端单独收回 13px，桌面端不受影响。必须放在 16px!important 之后才生效。 */
@media (max-width: 640px) {
  .site-grid .site-card__name { font-size:13px!important; font-weight:700!important; }
  .site-grid .site-card__desc { font-size:11px!important; line-height:1.35!important; }
}
.site-card__desc { color:#4a4360!important; line-height:1.55!important; }
/* 小标签：白底实线边框、字号略增、不截断 */
.site-card__badge { background:#fff!important; color:#2a2350!important; border:1px solid #2a2350!important; font-size:11px!important; white-space:nowrap!important; overflow:visible!important; }
/* 分类之间压到 38px，并加一条通栏淡色分隔 */
.sub-group { margin-bottom:38px!important; }
.sub-group + .sub-group { border-top:3px solid #d8d2f0!important; padding-top:18px!important; }
/* 「查看全部 / 在线玩」放大加粗 */
.sub-head__link, .side-more { font-size:14px!important; font-weight:800!important; border:2px solid #2a2350!important; padding:5px 12px!important; background:#fff!important; }
/* 侧栏三块标题改通栏色块标题带；底色跟皮肤变量走，不写死靛紫 */
.side-block > .label-tab { display:block!important; background:var(--fg,#33276e)!important; color:var(--hi,#fff)!important; padding:9px 12px!important; margin:0 0 14px!important; border-radius:0!important; box-shadow:none!important; border:0!important; }
/* 最新文章：标题加大加粗、卡片内边距加大、日期字色加深 */
.side-post { padding:12px!important; }
.side-post__title { font-size:15px!important; font-weight:800!important; }
.side-post__date { color:#4a4360!important; }
/* 6 个工具 +「全部工具」= 7 格，末格通栏收尾不留半行；图鉴格淡黄 */
.tool-mini--more { grid-column:1/-1!important; }
.tool-mini--dex { background:#fff4c9!important; }

/* 预览图只出了日间。夜间 4 套皮肤把上面写死的浅底换成各自的皮肤变量，
   保证 4 配色 × 日夜 = 8 套里都不会冒出一块白天用的白底 / 淡黄底。 */
[data-theme="dark"] .chip[aria-pressed="false"] { background:var(--hi)!important; border-color:var(--fg)!important; color:var(--fg)!important; box-shadow:2px 2px 0 var(--fg)!important; }
[data-theme="dark"] .site-card.is-pick { background:var(--hit-card)!important; border-color:var(--fg)!important; box-shadow:inset 6px 0 0 var(--accent2-lo),3px 3px 0 var(--fg)!important; }
[data-theme="dark"] .site-card__desc, [data-theme="dark"] .side-post__date { color:var(--muted)!important; }
[data-theme="dark"] .site-card__badge { background:var(--hi)!important; color:var(--fg)!important; border-color:var(--fg)!important; }
[data-theme="dark"] .sub-group + .sub-group { border-top-color:var(--divider)!important; }
[data-theme="dark"] .sub-head__link, [data-theme="dark"] .side-more { background:var(--hi)!important; color:var(--fg)!important; border-color:var(--fg)!important; }
[data-theme="dark"] .tool-mini--dex { background:var(--hit-card)!important; }
/* 日间标题带是「深底浅字」，夜间 --fg/--hi 会反过来变成浅底深字，
   在暗色页面里是一块刺眼白条。夜间单独钉回深底浅字。 */
[data-theme="dark"] .side-block > .label-tab { background:var(--accent-lo)!important; color:var(--fg)!important; }


/* ---------- 2026-11-22 文章区「存档槽」（站长点头存档槽风格） ----------
   用在 /blog/、/blog/c/*、/blog/tag/* 的文章列表。深色面板用 --hero-bg（四套配色、日夜各有值），
   面板上的标题 / 说明字色沿用 .blog-hero 现成的 #fff / #cfe0da。
   选中态：没悬停时第一条亮；鼠标移到哪条亮哪条。只用 CSS，不加脚本。 */
.sv { margin: 0; padding: 18px 20px 20px; background: var(--hero-bg); }
.sv__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.sv__title { margin: 0; font-family: var(--font-ui); font-size: 22px; line-height: 1.3; letter-spacing: 2px; color: #fff; }
.sv__title::before { content: '■ '; color: var(--c-teal); }
.sv__hint { margin: 0; font-family: var(--font-ui); font-size: 13px; color: #cfe0da; }
.sv__hint .blog-h__note { font-size: inherit; color: inherit; letter-spacing: 0; }
.sv__list { display: grid; gap: 12px; }
.sv__foot { margin: 14px 0 0; text-align: center; font-family: var(--font-ui); font-size: 12px; color: #cfe0da; }
.sv .spec-note { color: #cfe0da; }
.slot { position: relative; display: grid; grid-template-columns: 64px 168px minmax(0, 1fr) 118px; align-items: center; gap: 16px; padding: 10px 14px 10px 30px; background: var(--card); color: var(--fg); text-decoration: none; }
.slot[hidden] { display: none; }
.slot__no { text-align: center; line-height: 1.2; }
.slot__no small { display: block; font-size: 11px; color: var(--muted); }
.slot__no b { display: block; font-size: 30px; font-weight: normal; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.slot__img { display: block; width: 168px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 3px var(--line); }
.slot__main { display: grid; gap: 6px; min-width: 0; }
.slot__chap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--accent-text); }
.slot__cat { padding: 1px 6px; background: var(--accent); color: var(--accent-fg); }
.slot__flag { padding: 1px 6px; background: var(--c-yellow); color: #1e1a10; }
.slot__name { font-size: 17px; line-height: 1.45; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot__sum { font-size: 13px; line-height: 1.6; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot__stat { display: grid; gap: 2px; justify-items: end; font-size: 12px; line-height: 1.7; color: var(--muted); text-align: right; }
.slot__time em { font-style: normal; font-size: 14px; color: var(--fg); }
.slot__go { margin-top: 2px; padding: 1px 8px; color: var(--link); }
.slot__new { position: absolute; right: -6px; top: -10px; z-index: 1; padding: 2px 7px; font-size: 11px; background: var(--c-coral); color: #fff; box-shadow: 2px 2px 0 var(--line); }
.slot.is-first, .slot:hover, .slot:focus-visible { background: color-mix(in srgb, var(--c-teal) 28%, var(--card)); }
.slot.is-first::before, .slot:hover::before, .slot:focus-visible::before { content: ''; position: absolute; left: 9px; top: 50%; margin-top: -8px; border-left: 12px solid var(--accent); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.slot.is-first .slot__go, .slot:hover .slot__go, .slot:focus-visible .slot__go { background: var(--accent); color: var(--accent-fg); }
.sv__list:hover .slot.is-first:not(:hover) { background: var(--card); }
.sv__list:hover .slot.is-first:not(:hover)::before { content: none; }
.sv__list:hover .slot.is-first:not(:hover) .slot__go { background: none; color: var(--link); }
/* 文章页翻页：右边那张（更新的存档）靠右对齐；只有一张时照旧铺满 */
.page-nav .page-nav__newer:not(:only-child) { text-align: right; }
@media (max-width: 900px) {
  .slot { grid-template-columns: 56px 128px minmax(0, 1fr) 96px; gap: 12px; }
  .slot__img { width: 128px; }
}
@media (max-width: 640px) {
  .sv { padding: 12px 10px 14px; }
  .sv__title { font-size: 18px; }
  .slot { grid-template-columns: 112px minmax(0, 1fr); gap: 4px 12px; padding: 8px 10px; }
  .slot__img { grid-column: 1; grid-row: 1 / span 2; width: 112px; }
  .slot__no { position: absolute; left: 13px; top: 11px; z-index: 1; padding: 0 4px; background: var(--hero-bg); }
  .slot__no small { display: none; }
  .slot__no b { font-size: 13px; color: #fff; }
  .slot__main { grid-column: 2; grid-row: 1; gap: 3px; }
  .slot__tags, .slot__sum, .slot__go { display: none; }
  .slot__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; }
  .slot__stat { grid-column: 2; grid-row: 2; display: flex; gap: 10px; justify-items: start; text-align: left; line-height: 1.5; }
  .slot.is-first::before, .slot:hover::before, .slot:focus-visible::before { content: none; }
}


/* ---------- 2026-11-22 分享弹窗 ----------
   入口按钮做成文字链样子（页脚跟其他页脚链接一致；文章页跟标签链接一致）。
   弹窗沿用 .sheet：手机底部弹出；≥641px 居中、限宽。 */
.pagefoot__share, .post-share { padding: 0; border: 0; background: none; font: inherit; color: var(--link); cursor: pointer; }
.pagefoot__share:hover, .post-share:hover { text-decoration: underline; text-underline-offset: 3px; }
.pagefoot__share:focus-visible, .post-share:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.share-sheet__what { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--fg); }
.share-sheet__list { display: grid; gap: 10px; }
.share-sheet__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: var(--card); color: var(--fg); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.share-sheet__row[hidden] { display: none; }
.share-sheet__go { font-size: 12px; color: var(--muted); }
.share-sheet__tip { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
@media (min-width: 641px) {
  .share-sheet { width: min(420px, calc(100% - 32px)); margin: auto; }
  .share-sheet .sheet__box { padding: 16px 18px 18px; }
}

/* 2026-11-22 17:59：分享弹窗加 Logo、预览卡和分享图 */
.share-sheet .sheet__box { max-height: 88vh; overflow: auto; }
.share-sheet__brand { display: flex; justify-content: center; margin: 0 0 12px; }
.share-sheet__logo { display: block; width: auto; height: 44px; }
.share-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; margin: 0 0 12px; background: var(--card); }
.share-card__img { display: block; width: 132px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 3px var(--line); }
.share-card__body { min-width: 0; }
.share-card__title { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-card__host { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.share-poster { display: grid; gap: 8px; justify-items: center; margin: 14px 0 0; }
.share-poster[hidden] { display: none; }
.share-poster__img { display: block; width: min(260px, 70vw); height: auto; box-shadow: 0 0 0 3px var(--line); }
.share-poster .share-sheet__tip { margin: 0; text-align: center; }
