/* ===== 设备挑选器 全局样式（移动端优先） ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f2f4f9;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 760px; margin: 0 auto; padding: 16px; }
h1, h2 { margin: 0 0 10px; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
p { margin: 6px 0; }
.muted { color: #64748b; }
.sm { font-size: 12px; }
.page-title { margin-top: 8px; }
.page-sub { margin-top: -4px; margin-bottom: 14px; font-size: 13px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e6eaf2;
}
/* 左上角大 Logo（模仿淘宝：品牌大块放在最左上） */
.logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; text-decoration: none; color: #0f172a;
  font-size: 26px; letter-spacing: .5px; line-height: 1.15;
}
.logo span {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topnav a {
  color: #475569; text-decoration: none; margin-left: 6px;
  font-size: 14px; padding: 6px 10px; border-radius: 8px;
}
.topnav a.on, .topnav a:hover { background: #eef2ff; color: #2563eb; }

/* 顶栏下拉菜单（挑选品类 / 我的 / 未登录） */
.nav-menu { position: relative; display: inline-block; }
.nav-menu-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: none; background: transparent; color: #475569;
  font-size: 14px; font-family: inherit; cursor: pointer;
  padding: 6px 10px; border-radius: 8px; line-height: 1.2; margin-left: 6px;
}
.nav-menu-btn:hover { background: #eef2ff; color: #2563eb; }
.nav-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.nav-menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 70;
  background: #fff; border: 1px solid #eef2f7; border-radius: 12px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .18);
  padding: 6px; min-width: 148px;
  display: flex; flex-direction: column; gap: 1px;
}
.nav-menu.pop-left .nav-menu-pop { right: auto; left: 0; }
.nav-menu-pop a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 11px; border-radius: 8px; text-decoration: none;
  color: #334155; font-size: 13.5px; white-space: nowrap;
}
.nav-menu-pop a:hover { background: #eef2ff; color: #2563eb; }
.nav-menu-pop.cat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  width: min(360px, calc(100vw - 20px)); gap: 2px;
}
.nav-menu-pop.cat-grid a { padding: 8px 9px; font-size: 13px; }
.nav-menu-pop[hidden] { display: none; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
  margin-bottom: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid #d7deea; background: #fff; color: #0f172a;
  padding: 11px 18px; border-radius: 12px; font-size: 15px;
  cursor: pointer; text-decoration: none; font-family: inherit;
  transition: filter .15s, background .15s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; border: none; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 17px; border-radius: 14px; }

/* ---------- 首页 ---------- */
.hero {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 20px; color: #fff;
  padding: 30px 22px; text-align: center; margin-bottom: 16px;
}
.hero h1 { font-size: 26px; line-height: 1.35; margin-bottom: 8px; }
.hero .grad { color: #ffe08a; }
.hero p { color: rgba(255, 255, 255, .88); margin: 8px 0 18px; font-size: 14px; }
.hero .btn-primary { background: #fff; color: #2563eb; font-weight: 700; }

.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 420px) { .entry-grid { grid-template-columns: 1fr; } }
.entry-card { display: block; text-decoration: none; color: inherit; }
.entry-card h3 { margin: 8px 0 4px; font-size: 16px; }
.entry-card p { font-size: 13px; color: #64748b; margin: 4px 0; }
.entry-icon { font-size: 30px; }
.accent-blue { border-top: 3px solid #2563eb; }
.soon { border: 1.5px dashed #cbd5e1; box-shadow: none; opacity: .8; }
.soon-section h2 { font-size: 16px; margin: 6px 0 10px; }

.tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-top: 6px; }
.tag-live { background: #dcfce7; color: #15803d; }
.tag-soon { background: #f1f5f9; color: #64748b; }

.stats { display: flex; justify-content: space-around; text-align: center; padding: 4px 0 14px; }
.stats b { display: block; font-size: 24px; color: #2563eb; }
.stats span { font-size: 12px; color: #64748b; }
.brand-strip { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ---------- 品牌徽章 ---------- */
.brand-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: var(--c, #64748b);
  padding: 2px 9px; border-radius: 999px; vertical-align: middle;
}
.brand-chip.sm { font-size: 11px; padding: 1px 8px; }

/* ---------- 向导 ---------- */
.steps-bar { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 14px; }
.step-dot { flex: 1; text-align: center; opacity: .55; }
.step-dot b {
  display: block; width: 26px; height: 26px; line-height: 26px;
  border-radius: 50%; background: #e2e8f0; color: #475569;
  margin: 0 auto 4px; font-size: 13px;
}
.step-dot span { font-size: 10px; color: #64748b; display: block; }
.step-dot.active { opacity: 1; }
.step-dot.active b { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; }
.step-dot.done b { background: #bbf7d0; color: #15803d; }
.step-dot.done span { color: #15803d; }

.step { display: none; }
.step.on { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.field { margin-top: 14px; }
.field-title { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }

.option-grid { display: grid; gap: 8px; }
.cols-1 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 380px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 440px) { .cols-4 { grid-template-columns: 1fr 1fr; } }

.option {
  position: relative; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 11px 12px; background: #fff; cursor: pointer;
  font-size: 14px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { flex: 1; line-height: 1.4; }
.option:has(input:checked) {
  border-color: #2563eb; background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.option:has(input:focus-visible) { outline: 2px solid #2563eb; }

.reco-badge {
  margin-top: 4px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px dashed #a5b4fc;
  color: #4338ca; font-weight: 600; font-size: 14px;
  border-radius: 12px; padding: 12px 14px;
}
.advanced { margin-top: 8px; }
.advanced summary { cursor: pointer; font-size: 13px; color: #2563eb; }
.advanced .option-grid { margin-top: 8px; }

.brand-actions { display: flex; gap: 8px; margin-top: 10px; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.brand-option em { font-style: normal; font-size: 12px; color: #64748b; white-space: nowrap; }

.wizard-actions { display: flex; gap: 10px; margin-top: 16px; position: sticky; bottom: 12px; }
.wizard-actions .btn { flex: 1; box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }

/* ---------- 结果页 ---------- */
.winner-hero {
  border: 2px solid transparent; text-align: center; padding: 24px 18px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #f59e0b, #7c3aed) border-box;
}
.crown {
  display: inline-block; background: #fef3c7; color: #b45309;
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.winner-title { font-size: 24px; margin: 12px 0 6px; }
.winner-main { display: flex; gap: 10px; margin-top: 16px; }
.winner-box { flex: 1; background: #f8faff; border-radius: 14px; padding: 14px; }
.winner-box b { font-size: 22px; color: #2563eb; }
.winner-box.score b { color: #7c3aed; }
.winner-box span { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
.winner-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.mini-tag { background: #eef2ff; color: #4338ca; font-size: 12px; padding: 4px 10px; border-radius: 999px; }

.reason-list { margin: 0; padding-left: 20px; }
.reason-list li { margin: 6px 0; font-size: 14px; }

.bar-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.bar-label { width: 110px; font-size: 14px; flex: none; }
.bar-label em { font-style: normal; font-size: 11px; color: #64748b; }
.bar { flex: 1; height: 9px; background: #e9eef7; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2563eb, #7c3aed); }
.bar-val { width: 52px; text-align: right; font-size: 13px; font-weight: 700; color: #334155; flex: none; }

.notice { border-left: 4px solid #f59e0b; background: #fffbeb; }
.result-actions { display: flex; gap: 10px; margin: 4px 0 20px; }
.result-actions .btn { flex: 1; }

/* ---------- 表格 / 榜单 ---------- */
.table-wrap { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank-table th {
  text-align: left; color: #64748b; font-weight: 600; font-size: 12px;
  padding: 8px 6px; border-bottom: 1px solid #e6eaf2; white-space: nowrap;
}
.rank-table td { padding: 10px 6px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.rank-table tr.champion { background: #fffbeb; }
.rank-table tr.top3 { background: #fafbff; }
.rank { font-weight: 700; color: #64748b; width: 34px; }
.val { font-weight: 700; color: #2563eb; white-space: nowrap; }
.price { color: #b45309; font-weight: 600; white-space: nowrap; }
.model { font-weight: 600; }

.board-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px;
  margin-bottom: 4px; -webkit-overflow-scrolling: touch;
}
.board-tab {
  flex: none; border: 1.5px solid #e2e8f0; background: #fff;
  border-radius: 999px; padding: 8px 14px; font-size: 13px;
  cursor: pointer; color: #475569; font-family: inherit;
}
.board-tab.on {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent; color: #fff; font-weight: 600;
}
.board-panel { display: none; }
.board-panel.on { display: block; }

/* ---------- 其他 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(15, 23, 42, .92); color: #fff;
  font-size: 14px; padding: 10px 18px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 99;
  max-width: 86vw; text-align: center;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.footer { text-align: center; padding: 24px 16px 40px; font-size: 12px; color: #94a3b8; }
.footer p { margin: 3px 0; }
.footer a { color: #64748b; text-decoration: none; border-bottom: 1px dotted #cbd5e1; }
.footer a:hover { color: #2563eb; border-bottom-color: #93c5fd; }

/* ---------- 视图切换（自动 / 手机端 / 电脑端） ---------- */
.top-right { display: flex; align-items: center; gap: 8px; }
.view-switch {
  display: flex; gap: 3px; background: #eef2f7; padding: 3px; border-radius: 10px;
}
.view-switch button {
  border: none; background: transparent; color: #64748b;
  font-size: 12px; padding: 5px 8px; border-radius: 8px; cursor: pointer;
  font-family: inherit; line-height: 1.1;
}
.view-switch button.on {
  background: #fff; color: #2563eb; font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}
@media (max-width: 480px) {
  .logo { font-size: 19px; }
  .topnav a { padding: 5px 6px; font-size: 12px; margin-left: 1px; }
  .nav-menu-btn { padding: 5px 6px; font-size: 12px; margin-left: 1px; }
  .nav-avatar { width: 18px; height: 18px; font-size: 10px; }
  .view-switch button { padding: 5px 6px; font-size: 11px; }
  .top-right { gap: 4px; }
}

/* ---------- 电脑端布局（自动模式的宽屏 + 手动强制电脑端） ---------- */
/* 全站统一加宽（与对比页 page-xwide 同口径）：左右空白约 -80%，1920 屏每侧 ~80px */
html[data-view="desktop"] .page { max-width: min(1760px, calc(100vw - 48px)); }

@media (min-width: 960px) {
  html:not([data-view="mobile"]) .page { max-width: min(1760px, calc(100vw - 48px)); }
  html:not([data-view="mobile"]) .hero { padding: 46px 38px; }
  html:not([data-view="mobile"]) .hero h1 { font-size: 34px; }
  html:not([data-view="mobile"]) .hero p { font-size: 15px; }
  html:not([data-view="mobile"]) .card { padding: 24px; }
  html:not([data-view="mobile"]) .stats b { font-size: 30px; }
  html:not([data-view="mobile"]) .step .option-grid.cols-2 { grid-template-columns: repeat(3, 1fr); }
  html:not([data-view="mobile"]) .brand-grid { grid-template-columns: repeat(3, 1fr); }
  html:not([data-view="mobile"]) .entry-grid { grid-template-columns: repeat(3, 1fr); }
  html:not([data-view="mobile"]) .board-tabs { justify-content: center; }
  html:not([data-view="mobile"]) .rank-table { font-size: 14px; }
  html:not([data-view="mobile"]) .wizard { max-width: 900px; margin: 0 auto; }
  html:not([data-view="mobile"]) .topbar { padding: 12px 28px; }
}

/* 手动强制手机端：窄容器居中，排除桌面增强 */
html[data-view="mobile"] .page { max-width: 760px; }

/* ---------- 下拉框（上市时间） ---------- */
.select-row { display: flex; gap: 10px; }
.select-box { flex: 1; display: block; min-width: 0; }
.select-box select {
  width: 100%; padding: 11px 34px 11px 12px;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 15px; font-family: inherit; color: #0f172a; background-color: #fff;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select-box select:focus { outline: 2px solid #2563eb; border-color: #2563eb; }

/* ---------- 手机库 ---------- */
.filter-card { padding: 16px 18px; }
.filter-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  border: 1.5px solid #e2e8f0; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: inherit;
  color: #475569; transition: background .15s, color .15s, border-color .15s;
}
.filter-chip.on {
  background: var(--c, #2563eb); color: #fff;
  border-color: transparent; font-weight: 600;
}
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 420px) { .filter-grid { grid-template-columns: 1fr; } }

.lib-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .lib-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { html:not([data-view="mobile"]) .lib-grid { grid-template-columns: repeat(3, 1fr); } }
.lib-card { margin-bottom: 0; padding: 14px 16px; }
.lib-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lib-model { font-weight: 700; font-size: 15px; }
.lib-price { margin-left: auto; color: #b45309; font-weight: 700; font-size: 14px; white-space: nowrap; }
.lib-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #64748b; font-size: 12.5px; margin: 8px 0; }
.lib-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- 品类切换条 / 入口卡 ---------- */
.cat-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cat-tabs a {
  border: 1.5px solid #e2e8f0; background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; color: #475569; text-decoration: none;
}
.cat-tabs a.on {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent; color: #fff; font-weight: 600;
}
.entry-links { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.entry-links a { color: #2563eb; text-decoration: none; font-size: 13px; }
.entry-links a:hover { text-decoration: underline; }
.entry-card .btn { margin-top: 8px; }

/* ---------- VIP ---------- */
.btn-gold { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; border: none; }
.btn-gold:hover { filter: brightness(1.06); }
.vip-card { border-top: 3px solid #f59e0b; }
.vip-badge {
  display: inline-block; background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  vertical-align: middle; margin-left: 4px;
}
.vip-benefits li { margin: 10px 0; font-size: 14px; }
.vip-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.vip-active { border-left: 4px solid #22c55e; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
@media (max-width: 520px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative; text-align: center; border: 1.5px solid #e2e8f0;
  border-radius: 14px; padding: 16px 12px; background: #fff;
}
.price-card h3 { margin: 0 0 6px; font-size: 15px; }
.price-card b { display: block; font-size: 26px; color: #b45309; margin: 4px 0; }
.price-card.hot { border-color: #f59e0b; box-shadow: 0 4px 14px rgba(245, 158, 11, .18); }
.price-hot-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  font-size: 11px; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}

.activate-form { display: flex; gap: 8px; margin: 10px 0 6px; }
.activate-form input {
  flex: 1; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 15px; font-family: inherit; letter-spacing: 1px; min-width: 0;
}
.activate-form input:focus { outline: 2px solid #2563eb; border-color: #2563eb; }
.form-error { color: #dc2626; background: #fef2f2; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.form-ok { color: #15803d; background: #f0fdf4; border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* ---------- 深度报告 / 付费墙 / 广告位 ---------- */
.report-card { border-left: 4px solid #f59e0b; }
.report-body h3 { margin: 4px 0 10px; font-size: 16px; }
.report-body p { font-size: 14px; margin: 8px 0; line-height: 1.7; }
.locked {
  margin-top: 10px; background: #fffbeb; border: 1px dashed #f59e0b;
  border-radius: 12px; padding: 14px; text-align: center;
}
.locked p { margin-bottom: 10px; }
.locked-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-top: 12px; background: #fffbeb;
  border-radius: 12px; padding: 12px 14px; font-size: 14px;
}
.ad-slot {
  border: 1.5px dashed #cbd5e1; background: #f8fafc; position: relative;
  font-size: 13px; color: #64748b;
}
.ad-tag {
  position: absolute; top: -9px; left: 14px; background: #e2e8f0; color: #64748b;
  font-size: 10px; padding: 1px 8px; border-radius: 999px;
}

/* ---------- 自助筛选（refine 向导） ---------- */
.refine-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap; position: sticky; top: 58px; z-index: 40;
  padding: 12px 16px;
}
.refine-status { flex: 1; min-width: 200px; }
.refine-count { font-size: 15px; }
.refine-count b { font-size: 22px; color: #2563eb; }
.delta { display: inline-block; font-weight: 800; font-size: 14px; margin-left: 8px; }
.delta.down { color: #dc2626; animation: floatUp 1s ease forwards; }
.delta.up { color: #16a34a; animation: floatUp 1s ease forwards; }
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(8px); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-16px); }
}
.refine-actions { display: flex; gap: 8px; }

.refine-panels { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.refine-panel {
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
  overflow: hidden;
}
.refine-panel summary {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: 14px;
  list-style: none;
}
.refine-panel summary::-webkit-details-marker { display: none; }
.refine-panel summary::after {
  content: "▾"; margin-left: 6px; color: #94a3b8; font-size: 12px;
  transition: transform .2s;
}
.refine-panel[open] summary::after { transform: rotate(180deg); }
.refine-panel summary em {
  font-style: normal; font-weight: 400; color: #94a3b8;
  font-size: 12px; margin-left: auto;
}
.refine-panel summary em.on { color: #2563eb; font-weight: 600; }
.refine-panel[open] { border: 1.5px solid #bfdbfe; }
.panel-body { padding: 4px 16px 16px; }

.active-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eef2ff; color: #4338ca; font-size: 12px;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}

/* 筛选面板：自定义输入行（预算 / 电池） */
.custom-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.custom-row .custom-label { font-size: 12.5px; color: #64748b; }
.custom-row input {
  width: 86px; padding: 8px 10px; box-sizing: border-box;
  border: 1.5px solid #e2e8f0; border-radius: 9px;
  font-size: 14px; font-family: inherit;
}
.custom-row input:focus { outline: 2px solid #2563eb; border-color: #2563eb; }
.custom-row .custom-tilde, .custom-row .custom-unit { font-size: 13px; color: #64748b; }
.custom-row input[type="month"] { width: 130px; }
.active-chip.plain { cursor: default; opacity: .85; }
.active-chip b { color: #94a3b8; font-weight: 700; }
.active-chip:hover b { color: #dc2626; }

.wall-title { font-size: 15px; margin: 4px 0 10px; }
.wall-title span { color: #2563eb; }
.wall-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin: 4px 0 10px; }
.wall-head .wall-title { margin: 0; }

/* 「找不到我的机型」入口 + 提交弹窗 */
.cant-find {
  margin-left: 8px; border: 1px dashed #c7d2fe; background: #eef2ff; color: #4338ca;
  font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  cursor: pointer; font-family: inherit; vertical-align: 2px; white-space: nowrap;
}
.cant-find:hover { background: #e0e7ff; }
.pm-modal {
  position: fixed; inset: 0; z-index: 120; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.pm-modal[hidden] { display: none; }
.pm-box {
  width: min(430px, 94vw); background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .25); text-align: left;
}
.pm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pm-head b { font-size: 15px; }
.pm-x { border: 0; background: none; font-size: 15px; color: #94a3b8; cursor: pointer; padding: 2px 6px; }
.pm-x:hover { color: #0f172a; }
.pm-row { display: flex; gap: 8px; margin-top: 6px; }
.pm-input {
  flex: 1; min-width: 0; border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: 9px 12px; font-size: 14px; font-family: inherit; color: #0f172a;
}
.pm-input:focus { outline: 2px solid #2563eb; border-color: #2563eb; }
.pm-msg { margin: 10px 0 0; font-size: 12.5px; color: #64748b; line-height: 1.6; }
.pm-msg.ok { color: #047857; }
.pm-msg.err { color: #b91c1c; }

/* 我的反馈列表 */
.fb-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fb-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid #eef2f7; border-radius: 12px; padding: 10px 12px; background: #f8fafc;
}
.fb-main { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.fb-badge {
  flex: none; font-size: 11.5px; font-weight: 700; color: #b45309;
  background: #fef3c7; border-radius: 999px; padding: 3px 10px;
}
.fb-badge.ok { color: #047857; background: #d1fae5; }
/* 设备名称模糊搜索（挑选页机型墙/商品墙） */
.name-search {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px 5px 10px; min-width: 0;
  border: 1.5px solid #d5dbe3; border-radius: 9px; background: #fff;
}
.name-search:focus-within { outline: 2px solid rgba(37, 99, 235, .25); border-color: #2563eb; }
.name-search .ns-icon { font-size: 12.5px; line-height: 1; color: #94a3b8; flex: none; }
.name-search input {
  border: 0; outline: 0; background: transparent; padding: 0;
  font: inherit; font-size: 13px; color: #0f172a; width: 170px; min-width: 0;
}
.name-search input::placeholder { color: #94a3b8; }
.name-search input::-webkit-search-cancel-button,
.name-search input::-webkit-search-decoration { -webkit-appearance: none; }
.name-search .ns-clear {
  flex: none; width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: #e2e8f0; color: #475569; font-size: 12px; line-height: 1;
  padding: 0; cursor: pointer;
}
.name-search .ns-clear:hover { background: #cbd5e1; }
.name-search .ns-clear[hidden] { display: none; }
.wall-head .name-search { flex: none; }
@media (max-width: 560px) { .name-search input { width: 118px; } }
.wall-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wall-tools .tool-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
.wall-tools select { padding: 5px 8px; font-size: 13px; border: 1px solid #d5dbe3; border-radius: 8px; background: #fff; color: #333; cursor: pointer; }
.wall-tools select:focus { outline: 2px solid rgba(37, 99, 235, .25); border-color: #2563eb; }
.wall-tools input[type="number"] { width: 96px; padding: 5px 8px; font-size: 13px; border: 1px solid #d5dbe3; border-radius: 8px; background: #fff; color: #333; }
.wall-tools input[type="number"]:focus { outline: 2px solid rgba(37, 99, 235, .25); border-color: #2563eb; }
/* 「选中前 N 个」组合框：输入框点击可下拉选常用数量 */
.cmp-top-wrap input[type="number"] { width: 72px; padding: 5px 24px 5px 8px; }
.cmp-top-wrap input[type="number"]::-webkit-outer-spin-button,
.cmp-top-wrap input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cmp-top-field { position: relative; display: inline-flex; align-items: center; }
.cmp-top-arrow {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: #64748b; font-size: 11px;
  padding: 2px 6px; cursor: pointer; border-radius: 6px; line-height: 1;
}
.cmp-top-arrow:hover { background: #f1f5f9; color: #2563eb; }
.cmp-top-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  min-width: 108px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .14); padding: 4px;
  display: flex; flex-direction: column; gap: 2px;
}
.cmp-top-menu[hidden] { display: none; }
.cmp-top-opt {
  border: 0; background: none; text-align: left; font-size: 13px; color: #334155;
  padding: 7px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.cmp-top-opt:hover { background: #eff6ff; color: #2563eb; }
.cmp-top-sep { height: 1px; background: #eef2f7; margin: 3px 4px; }
.cmp-top-clear { color: #dc2626; }
.cmp-top-clear:hover { background: #fef2f2; color: #dc2626; }
/* 排序开关（不区分品牌 / 混合排序） */
.wall-tools .sw-item { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.sw-item input { display: none; }
.sw-track {
  width: 34px; height: 20px; border-radius: 999px; background: #cbd5e1;
  position: relative; flex: none; transition: background .18s;
}
.sw-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: left .18s;
}
.sw-item input:checked + .sw-track { background: #2563eb; }
.sw-item input:checked + .sw-track::after { left: 16px; }
.wall-group { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin: 10px 0 0; padding: 4px 2px 6px; border-bottom: 1px solid #e5eaf1; }
.wall-group .wg-name { font-size: 14px; font-weight: 700; color: #1f2937; }
.wall-group .wg-count { font-size: 12px; color: #9aa4b2; font-style: normal; }
.wall-brand-head { grid-column: 1 / -1; display: flex; flex-direction: column; margin: 20px 0 0; }
.wall-brand-head .wbh-top { display: flex; align-items: center; gap: 9px; padding: 6px 2px 9px; border-bottom: 2px solid #dbe3ec; }
.wall-brand-head .wbh-top::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c, #64748b); }
.wall-brand-head .wb-name { font-size: 17px; font-weight: 800; color: #0f172a; letter-spacing: .5px; }
.wall-brand-head .wb-count { font-size: 12px; color: #9aa4b2; font-style: normal; }
.series-tabs, .gen-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 7px 2px 9px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.gen-tabs { padding-top: 0; padding-left: 12px; }
.gen-tabs .st-tab { font-size: 12px; padding: 3px 10px; }
.series-tabs::-webkit-scrollbar { height: 6px; }
.series-tabs::-webkit-scrollbar-thumb { background: #dbe3ec; border-radius: 3px; }
.series-desc { font-size: 12px; color: #8b96a5; line-height: 1.6; padding: 0 2px 10px; }
.opt-desc { display: block; font-style: normal; font-size: 11px; color: #94a3b8; font-weight: 400; margin-top: 2px; line-height: 1.45; }
.option.stor { align-items: flex-start; }
.st-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dbe3ec; background: #f8fafc; color: #475569; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; font-family: inherit; line-height: 1.6; }
.st-tab:hover { border-color: #93c5fd; color: #1d4ed8; }
.st-tab em { font-style: normal; font-size: 11px; color: #94a3b8; }
.st-tab.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.st-tab.on em { color: rgba(255,255,255,.85); }
/* 系列内代际小分组（Z10 / Z11 …） */
.gen-head {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  margin: 14px 0 1px; padding: 2px 2px 6px;
  border-bottom: 1px dashed #e2e8f0; font-size: 13px; color: #0f172a;
}
.gen-head::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #93c5fd; flex: none;
}
.gen-head b { font-weight: 800; letter-spacing: .3px; }
.gen-head em { font-style: normal; font-size: 11.5px; color: #94a3b8; }
.device-mini.tab-hide { display: none; }
.device-mini.gen-hide { display: none; }
.device-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (min-width: 640px) { .device-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) {
  html:not([data-view="mobile"]) .device-wall { grid-template-columns: repeat(4, 1fr); }
}
.device-mini {
  display: flex; flex-direction: column; gap: 2px;
  border: 1.5px solid #e8edf5; border-radius: 12px;
  padding: 8px 10px; background: #fff; font-size: 12.5px;
  transition: opacity .32s ease, transform .32s ease;
}
.device-mini.vanish { opacity: 0; transform: scale(.5) rotate(-4deg); }
.device-mini.appear { animation: dmPop .4s ease; }
@keyframes dmPop {
  0% { opacity: 0; transform: scale(.6); }
  100% { opacity: 1; transform: scale(1); }
}
.dm-brand { font-size: 11px; font-weight: 700; color: var(--c, #64748b); }
.dm-model { font-weight: 600; line-height: 1.25; }
.dm-price { color: #b45309; font-weight: 700; }
.dm-dead {
  font-style: normal; font-size: 10px; font-weight: 700;
  background: #e2e8f0; color: #64748b; border-radius: 5px;
  padding: 1px 5px; margin-left: 5px; vertical-align: 1px;
}
.dm-meta { color: #94a3b8; font-size: 11px; }
/* 比价参考（排序=价格低→高 时与最低价基准的差异模块） */
.dm-diff {
  margin-top: 8px; padding-top: 6px; border-top: 1px dashed #e2e8f0;
  font-size: 12px; line-height: 1.75; color: #64748b;
}
.dm-diff-head { font-weight: 700; color: #b45309; margin-bottom: 2px; }
.dm-diff .up { color: #047857; font-weight: 600; }
.dm-diff .dn { color: #94a3b8; }
.dm-diff .sep { color: #cbd5e1; margin: 0 2px; }
.dm-diff-base { color: #2563eb; font-weight: 600; }

/* ---------- 降价标签 ---------- */
.deal-tag {
  display: inline-block; background: #fee2e2; color: #dc2626;
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px;
  margin-left: 6px;
}
.deal { color: #dc2626; }

/* ---------- 敬请期待 / 投票 ---------- */
.wish-list { display: flex; flex-direction: column; gap: 10px; }
.wish-item { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.wish-item.plan { border-left: 4px solid #10b981; }
.wish-main { flex: 1; min-width: 0; }
.wish-name { font-weight: 700; font-size: 15px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wish-note { margin-top: 2px; }
.wish-metrics { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: #475569; flex-wrap: wrap; }
.wish-side { text-align: center; flex-shrink: 0; }
.wish-votes { font-size: 13px; color: #64748b; margin-bottom: 6px; }
.wish-votes b { color: #dc2626; font-size: 17px; }
.wish-vote-btn { min-width: 76px; }
.wish-vote-btn.done { background: #d1fae5; color: #059669; border-color: #a7f3d0; }
.mini-bar { display: inline-block; width: 70px; height: 6px; background: #e2e8f0; border-radius: 4px; overflow: hidden; vertical-align: middle; }
.mini-bar em, .mini-bar span { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #3b82f6); border-radius: 4px; }
.mini-bar.wide { width: 100%; display: block; margin: 6px 0 3px; }
.mini-meta { font-size: 12px; color: #94a3b8; }
.wish-progress { height: 8px; background: #e2e8f0; border-radius: 5px; overflow: hidden; margin: 6px 0 4px; }
.wish-progress i { display: block; height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b); border-radius: 5px; transition: width .3s; }
.add-item-card { padding: 14px 16px; }
.add-item-row { display: flex; gap: 8px; }
.add-item-row input { flex: 1; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; min-width: 0; }
.add-item-row input:focus { outline: 2px solid #93c5fd; border-color: #60a5fa; }

/* ---------- 收藏 ---------- */
.fav-btn { cursor: pointer; transition: transform .15s; }
.fav-btn:active { transform: scale(.94); }
.fav-btn.faved { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.lib-fav { background: none; border: none; font-size: 25px; color: #cbd5e1; padding: 2px 4px; line-height: 1; margin-left: 2px; }
.lib-fav.faved { color: #ef4444; }

/* 筛选页商品卡（右上角对勾左侧）/ 对比页表头 收藏按钮 */
.dm-fav, .cmp-fav {
  background: none; border: none; cursor: pointer; line-height: 1;
  color: #cbd5e1; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.dm-fav { position: absolute; top: 0; right: 28px; width: 32px; height: 32px; font-size: 23px; }
.cmp-fav { font-size: 23px; padding: 4px 7px; margin-left: 5px; vertical-align: middle; }
.dm-fav:hover, .cmp-fav:hover { color: #ef4444; }
.dm-fav:active, .cmp-fav:active { transform: scale(.94); }
.dm-fav.faved, .cmp-fav.faved { color: #ef4444; background: none; border-color: transparent; }

/* ---------- 收藏分类 ---------- */
.fav-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; flex-wrap: wrap; padding: 12px 14px;
}
.fav-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.fav-tab {
  border: 1.5px solid #e2e8f0; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; color: #475569;
  font-family: inherit; line-height: 1.2;
}
.fav-tab b { color: #94a3b8; font-weight: 700; font-size: 12px; margin-left: 2px; }
.fav-tab.on {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent; color: #fff; font-weight: 600;
}
.fav-tab.on b { color: #dbeafe; }
.fav-cat-select {
  padding: 6px 8px; border: 1.5px solid #e2e8f0; border-radius: 9px;
  font-size: 13px; font-family: inherit; color: #475569;
  background: #fff; max-width: 140px;
}

/* 轻量输入弹层（新建分类） */
.mini-modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  z-index: 120; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.mini-modal-box {
  background: #fff; border-radius: 16px; padding: 18px;
  width: 100%; max-width: 320px; box-shadow: 0 12px 40px rgba(15, 23, 42, .25);
}
.mini-modal-box b { font-size: 15px; }
.mini-modal-box p { margin: 6px 0 0; }
.mini-modal-box input {
  display: block; width: 100%; box-sizing: border-box; margin: 10px 0 14px;
  padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 15px; font-family: inherit;
}
.mini-modal-box input:focus { outline: 2px solid #2563eb; border-color: #2563eb; }
.mini-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- 登录 / 注册 / 账号 ---------- */
.auth-card { max-width: 430px; margin: 10px auto; }
.auth-form label { display: block; margin: 12px 0; font-size: 14px; font-weight: 600; }
.auth-form input {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px;
  padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 15px; font-family: inherit;
}
.auth-form input:focus { outline: 2px solid #2563eb; border-color: #2563eb; }
.auth-form .btn { width: 100%; margin-top: 4px; }
.account-row {
  display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid #f1f5f9; font-size: 14px;
}
.account-row:last-child { border-bottom: none; }

/* ---------- 后台管理 ---------- */
.admin-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-inline input { padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 7px; font-size: 13px; }
.ana-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ana-block { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; }
.ana-block h3 { margin: 0 0 8px; font-size: 14px; }
.ana-row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 8px; margin: 5px 0; font-size: 12px; }
.ana-label { color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ana-val { color: #94a3b8; font-size: 11px; }

/* 窄屏：投票条目纵向排列 */
@media (max-width: 480px) {
  .wish-item { flex-direction: column; align-items: stretch; }
  .wish-side { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .wish-votes { margin: 0; }
  .wish-vote-btn { min-width: 90px; }
}

/* ---------- 更多品类挑选器 ---------- */
.genre-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; margin-top: 10px;
}
.genre-grid.big { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 14px; }
.genre-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px; padding: 16px 10px; text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.genre-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 23, 42, .1); }
.genre-icon { font-size: 30px; line-height: 1; }
.genre-grid.big .genre-icon { font-size: 40px; }
.genre-card b { font-size: 14px; }
.genre-grid.big .genre-card b { font-size: 16px; }
.genre-card .xs { font-size: 11px; }
.genre-card .mini-tag { margin-top: 4px; }

/* 已上线（期待页行） */
.wish-item.is-live { border-left: 4px solid #10b981; background: #f0fdf4; }

/* ---------- 通用品类问卷 ---------- */
.pick-form { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.q-block h2 { font-size: 15px; margin: 0 0 10px; }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q-opt input { display: none; }
.q-opt span {
  display: inline-block; padding: 9px 16px; border: 1.5px solid #cbd5e1;
  border-radius: 10px; font-size: 14px; color: #334155; cursor: pointer;
  transition: all .15s; background: #fff;
}
.q-opt span:hover { border-color: #93c5fd; }
.q-opt input:checked + span {
  background: #eff6ff; border-color: #3b82f6; color: #1d4ed8;
  font-weight: 700; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.pick-actions {
  display: flex; gap: 10px; justify-content: center;
  margin: 18px 0 30px; flex-wrap: wrap;
}
@media (max-width: 480px) {
  .q-opt span { padding: 8px 12px; font-size: 13px; }
  .genre-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
  .genre-grid.big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .genre-card { padding: 12px 6px; }
  .genre-icon { font-size: 26px; }
  .genre-grid.big .genre-icon { font-size: 32px; }
}

/* ---------- 商品对比（勾选 + 底栏 + 对比页） ---------- */
.device-mini, .lib-card { position: relative; }
.cmp-pickable { cursor: pointer; }
/* 右侧让位给右上角对勾（html 前缀压过桌面端 .card 的 padding 覆盖） */
html .device-mini.cmp-pickable, html .lib-card.cmp-pickable { padding-right: 28px; }
.cmp-tick {
  position: absolute; top: 5px; right: 4px; width: 20px; height: 20px;
  border-radius: 50%; border: 1.5px solid #cbd5e1; background: #f8fafc;
  color: #cbd5e1; font-size: 12px; font-weight: 900; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; z-index: 3; pointer-events: none;
}
.cmp-pickable:hover .cmp-tick { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
.device-mini.cmp-on, .lib-card.cmp-on { outline: 2px solid #3b82f6; outline-offset: 1px; }
.device-mini.cmp-on .cmp-tick, .lib-card.cmp-on .cmp-tick {
  background: #3b82f6; border-color: #3b82f6; color: #fff;
}
.cmp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #0f172a; color: #fff;
  transform: translateY(110%); transition: transform .25s ease;
  box-shadow: 0 -4px 18px rgba(15, 23, 42, .25);
}
.cmp-bar.on { transform: none; }
.cmp-bar-in {
  max-width: 980px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cmp-bar-info { flex: 1; font-size: 14px; min-width: 100px; }
.cmp-bar-info b { color: #7dd3fc; font-size: 17px; }
.cmp-toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(8px);
  background: #1e293b; color: #fff; font-size: 13px; padding: 8px 16px;
  border-radius: 20px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 80;
}
.cmp-toast.on { opacity: 1; transform: translateX(-50%); }

/* 对比页 */
.cmp-wrap { padding: 4px !important; }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { border-collapse: collapse; min-width: 100%; }
.cmp-table th, .cmp-table td {
  padding: 9px 12px; font-size: 13px; text-align: left;
  border-bottom: 1px solid #eef2f7; vertical-align: top;
}
.cmp-table tbody tr:hover { background: #f8fafc; }
.cmp-head { font-weight: 700; font-size: 14px; white-space: nowrap; min-width: 130px; }
.cmp-param {
  color: #64748b; white-space: nowrap; position: sticky; left: 0;
  background: #fff; min-width: 88px; font-size: 12px;
}
.cmp-cell { color: #334155; min-width: 130px; }
.cmp-cell.star, .cmp-head.star { background: #fffbeb; }
.cmp-val { display: block; }
.cmp-sub { display: block; font-size: 11px; color: #94a3b8; font-weight: 400; margin-top: 2px; line-height: 1.35; }
.cmp-cell.best .cmp-sub { color: #34d399; }
.cmp-cell.best { color: #059669; font-weight: 700; background: #f0fdf4; }

/* 名次徽章（仅对比页「排行榜」区块使用） */
.cmp-rank {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 5px; margin-left: 6px;
  border-radius: 11px; font-size: 14px; font-weight: 800;
  vertical-align: middle; line-height: 1; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .18);
}
.cmp-rank.r1 { background: #047857; color: #fff; }
.cmp-rank.r2 { background: #64748b; color: #fff; }
.cmp-rank.r3 { background: #9a3412; color: #fff; }
.cmp-rank.rn { background: #cbd5e1; color: #334155; }
.cmp-sec td {
  background: #f1f5f9; color: #475569; font-weight: 700; font-size: 12px;
  padding: 7px 12px; letter-spacing: .5px; position: sticky; left: 0;
}
/* 图例条 */
.cmp-legend-bar {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05); margin-bottom: 14px;
  font-size: 12.5px; color: #475569;
}

/* 最优项小结已移除 */
.lg-item { display: flex; align-items: center; gap: 7px; min-width: 0; }
.lg-item .cmp-rank { margin-left: 0; }

/* 参数说明 ? 图标与气泡 */
.q-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 5px;
  border: 1px solid #cbd5e1; border-radius: 50%;
  color: #94a3b8; font-size: 10px; font-weight: 700;
  cursor: pointer; vertical-align: middle; background: #fff;
  transition: all .15s;
}
.q-mark:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
/* ---------- 参数说明大弹框（? 点击打开，右上角关闭） ---------- */
body.help-lock { overflow: hidden; }
.help-modal {
  position: fixed; inset: 0; z-index: 140; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.help-modal[hidden] { display: none; }
.help-box {
  background: #fff; border-radius: 16px; width: 100%; max-width: 580px;
  max-height: 84vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .25);
}
.help-head {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 12px 14px; border-bottom: 1px solid #f1f5f9;
}
.help-head b { font-size: 15px; color: #0f172a; }
.help-close {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: none; background: #f1f5f9; color: #64748b; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.help-close:hover { background: #e2e8f0; color: #0f172a; }
.help-body {
  overflow-y: auto; padding: 12px 16px 16px;
  font-size: 13.5px; line-height: 1.75; color: #334155;
  white-space: pre-line;
}

/* 表头「移出对比」按钮 */
.cmp-remove {
  background: none; border: none; cursor: pointer;
  color: #cbd5e1; font-size: 13px; padding: 2px 5px;
  line-height: 1; margin-left: 2px; vertical-align: middle;
  border-radius: 6px; transition: all .15s;
}
.cmp-remove:hover { color: #dc2626; background: #fee2e2; }

/* ---------- 对比页：心仪商品 ---------- */
.cmp-star {
  background: none; border: none; cursor: pointer; font-size: 14px;
  padding: 2px 5px; line-height: 1; margin-left: 2px; vertical-align: middle;
  border-radius: 6px; transition: all .15s;
  filter: grayscale(1); opacity: .45;
}
.cmp-star:hover { filter: none; opacity: 1; background: #fef3c7; }
.cmp-star.on { filter: none; opacity: 1; }
.star-card { border-top: 3px solid #f59e0b; }
.star-card h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#star-body.star-fade { animation: starFade .22s ease; }
@keyframes starFade { from { opacity: 0; } to { opacity: 1; } }
.star-clear-btn {
  margin-left: auto; font-size: 12px; color: #94a3b8;
  background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 2px 6px; border-radius: 6px;
  transition: all .15s;
}
.star-clear-btn:hover { color: #dc2626; background: #fef2f2; }
.star-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
@media (max-width: 560px) { .star-grid { grid-template-columns: 1fr; } }
.star-col h4 { margin: 0 0 6px; font-size: 13.5px; }
.star-col ul { margin: 0; padding-left: 20px; }
.star-col li { font-size: 13px; margin: 5px 0; line-height: 1.5; }
.star-col.pros li::marker { color: #059669; }
.star-col.cons li::marker { color: #d97706; }
.star-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.star-tag {
  background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa;
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600;
}
@media (max-width: 480px) {
  .cmp-legend-bar { gap: 8px 12px; padding: 10px 12px; }
}
.cmp-ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cmp-up-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; }
.cmp-up-item b { font-size: 14px; }
.cmp-up-item .reason-list { margin: 6px 0 0; }
/* 性价比之选（领先亮点模块内） */
.cmp-value {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 14px;
  background: #fffbeb; border: 1.5px solid #fcd34d; border-radius: 10px;
  font-size: 13.5px;
}
.cmp-value-tag { font-weight: 700; color: #b45309; white-space: nowrap; }
.cmp-value b { color: #0f172a; }
.cmp-value-price { color: #b45309; font-weight: 700; }

/* ---------- 对比页：维度排行榜 ---------- */
.cmp-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cmp-board { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; }
.cmp-board h3 { margin: 0 0 6px; font-size: 13.5px; }
.board-row {
  display: flex; align-items: center; gap: 8px; padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0; font-size: 12.5px;
}
.board-row:last-child { border-bottom: none; }
.cmp-board .cmp-rank { min-width: 18px; height: 18px; font-size: 11.5px; margin-left: 0; flex: none; box-shadow: none; }
.board-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.board-val { color: #475569; font-weight: 700; white-space: nowrap; font-size: 12px; }
.board-row.top1 .board-name { color: #047857; font-weight: 700; }
@media (max-width: 480px) {
  .cmp-table th, .cmp-table td { padding: 8px 9px; font-size: 12px; min-width: 104px; }
  .cmp-head { min-width: 104px; font-size: 13px; }
}

/* ---------- 首页：今日机皇推荐 ---------- */
.deal-section { margin: 18px 0 6px; }
.deal-head { font-size: 19px; margin: 0 0 12px; }
.deal-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) {
  html:not([data-view="mobile"]) .deal-grid { grid-template-columns: repeat(3, 1fr); }
}
.deal-card { display: flex; flex-direction: column; gap: 6px; padding: 16px !important; }
.deal-badge {
  align-self: flex-start; background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 3px 12px;
}
.deal-name { font-size: 16px; font-weight: 700; }
.deal-price { color: #b45309; font-weight: 800; font-size: 15px; }
.deal-reason { margin: 2px 0; font-size: 13px; color: #475569; line-height: 1.55; }
.deal-hl { margin: 0 0 6px; font-size: 12.5px; color: #059669; line-height: 1.5; }
.deal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.deal-ad { margin: 8px 0 0; font-size: 11px; }

/* ---------- 右上角快捷区（分享 + 收藏 / 桌面引导，所有页面可见） ---------- */
.corner {
  position: fixed; right: 10px; top: var(--corner-top, 64px); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.corner-btns { display: flex; gap: 6px; }
.corner-btn {
  border: 1.5px solid #e2e8f0; background: rgba(255, 255, 255, .94);
  color: #0f172a; font-size: 12.5px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .10);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.corner-btn:hover { background: #eef2ff; color: #2563eb; border-color: #c7d2fe; }
.corner-btn.corner-ic { padding: 6px 9px; font-size: 13.5px; }
.corner-pop {
  background: #fff; border: 1px solid #eef2f7; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .22);
  padding: 11px 12px; min-width: 216px;
}
.corner-pop[hidden] { display: none; }
.cp-title { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: #64748b; }
.corner-pop .view-switch { width: 100%; }
.corner-pop .view-switch button { flex: 1; font-size: 12px; padding: 7px 6px; }
.corner-guide {
  position: relative; width: min(300px, calc(100vw - 26px));
  background: #fff; border: 1px solid #eef2f7; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .22);
  padding: 13px 14px 12px; text-align: left;
}
.corner-guide[hidden] { display: none; }
.corner-guide.sg-in { animation: sgIn .22s ease; }
@keyframes sgIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.corner-guide.wx {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
}
.sg-x {
  position: absolute; top: 7px; right: 7px;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: rgba(120, 130, 150, .13); color: #475569;
  font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}
.sg-x:active { background: rgba(120, 130, 150, .26); }
.sg-head { display: flex; align-items: center; gap: 7px; padding-right: 24px; font-size: 13.5px; color: #0f172a; }
.corner-guide.wx .sg-head { color: #78350f; }
.sg-text { margin: 7px 0 0; font-size: 12.5px; color: #475569; line-height: 1.6; }
.sg-text b { color: #b45309; }
.corner-guide.wx .sg-text { color: #78350f; }
.sg-steps { margin-top: 7px; }
.sg-steps i {
  font-style: normal; background: #eef2ff; border: 1px solid #c7d2fe;
  color: #3730a3; border-radius: 6px; padding: 1.5px 7px; font-size: 11px; white-space: nowrap;
}
.corner-guide.wx .sg-steps i { background: #fff7e0; border-color: #f5d889; color: #92400e; }
.sg-steps em { font-style: normal; color: #94a3b8; margin: 0 3px; font-size: 11px; }
.corner-guide.wx .sg-steps em { color: #b45309; }
.sg-install {
  margin-top: 9px; width: 100%; border: none; border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff;
  font-weight: 700; font-size: 12.5px; padding: 8px 0; cursor: pointer; font-family: inherit;
}
.sg-never {
  margin-top: 8px; width: 100%; border: 1px dashed #cbd5e1; background: #f8fafc;
  color: #64748b; font-size: 12px; padding: 7px 0; border-radius: 9px;
  cursor: pointer; font-family: inherit;
}
.sg-never:hover { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }
.sg-never[hidden] { display: none; }
@media (max-width: 480px) {
  .corner { right: 8px; }
  .corner-btn { padding: 5px 9px; font-size: 12px; }
}

/* ---------- 对比表：工具条 / 行排序 / 批量显隐 ---------- */
.cmp-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 2px 10px; }
.cmp-mode { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 999px; overflow: hidden; background: #fff; }
.cmp-mode button { border: none; background: transparent; padding: 5px 14px; font-size: 12.5px; color: #475569; cursor: pointer; }
.cmp-mode button.on { background: #4f46e5; color: #fff; font-weight: 700; }
.cmp-tools .btn { padding: 5px 12px; font-size: 12.5px; }
.cmp-tools-hint { flex-basis: 100%; }
@media (min-width: 760px) { .cmp-tools-hint { flex-basis: auto; margin-left: auto; } }
.cmp-tools .sw-item { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; font-size: 13px; color: #555; }
.cmp-table.no-labels .cmp-param { display: none; }   /* 隐藏最左侧参数名列 */
.cmp-param.cmp-sortable { cursor: pointer; user-select: none; }
.cmp-param.cmp-sortable:hover { background: #f1f5f9; }
.cmp-param.cmp-sortable:hover .cmp-sort { border-color: #a5b4fc; color: #4f46e5; }
.cmp-sort {
  display: inline-flex; align-items: center; justify-content: center;
  height: 16px; padding: 0 5px; margin-left: 5px;
  color: #64748b; font-size: 11px; line-height: 1;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px;
  vertical-align: 1px;
}
.cmp-param.sorted-desc .cmp-sort, .cmp-param.sorted-asc .cmp-sort {
  color: #fff; background: #4f46e5; border-color: #4f46e5; font-weight: 800;
}
/* 联合排序条 */
.cmp-sortbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 2px 10px; padding: 8px 12px;
  background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 10px;
  font-size: 12.5px; color: #4338ca;
}
.cmp-sortbar-label { font-weight: 700; }
.sort-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: #4f46e5; color: #fff; border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 600;
  margin: 2px 6px 2px 0;
}
.sort-tag b { cursor: pointer; font-weight: 800; opacity: .85; }
.sort-tag b:hover { opacity: 1; }
.cmp-sortbar .btn { padding: 4px 10px; font-size: 12px; }
.cmp-table.cmp-brief tbody tr:not([data-core]) { display: none; }   /* 简洁模式：只留核心参数行 */

/* ---------- 机型墙「ⓘ 详细参数」图标 + 参数弹框 ---------- */
.dm-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 3px; vertical-align: -2px;
  border: none; background: none; padding: 0; cursor: pointer;
  font-family: inherit; font-weight: 400; color: #b6c2d1;
  transition: color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.dm-info::before { content: 'ⓘ'; font-size: 13px; line-height: 1; }
.dm-info:hover { color: #2563eb; }
.dm-info:active { transform: scale(.9); }

body.di-lock { overflow: hidden; }
.di-modal {
  position: fixed; inset: 0; z-index: 140; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.di-modal[hidden] { display: none; }
.di-box {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
  max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .25);
}
.di-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 14px; border-bottom: 1px solid #f1f5f9; flex: none;
}
.di-brand { color: var(--c, #64748b); font-weight: 700; font-size: 13px; }
.di-title { font-size: 16px; line-height: 1.3; }
.di-price { color: #b45309; font-weight: 700; }
.di-dead {
  font-style: normal; font-size: 10px; font-weight: 700;
  background: #e2e8f0; color: #64748b; border-radius: 5px; padding: 1px 5px;
}
.di-close {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%; flex: none;
  border: none; background: #f1f5f9; color: #64748b; font-size: 13px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.di-close:hover { background: #e2e8f0; color: #0f172a; }
.di-share {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%; flex: none;
  border: none; background: #eff6ff; color: #2563eb; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.di-share:hover { background: #dbeafe; }
.di-share + .di-close { margin-left: 0; }

/* ---------- 分享弹窗（设备 / 网站通用） ---------- */
.sh-modal {
  position: fixed; inset: 0; z-index: 96; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.sh-modal[hidden] { display: none; }
.sh-box {
  width: min(360px, 92vw); background: #fff; border-radius: 16px;
  padding: 18px 18px 16px; box-shadow: 0 18px 50px rgba(15, 23, 42, .25); text-align: center;
}
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sh-title { font-size: 15px; text-align: left; line-height: 1.35; }
.sh-close { border: 0; background: none; font-size: 15px; color: #94a3b8; cursor: pointer; padding: 2px 6px; flex: none; }
.sh-close:hover { color: #0f172a; }
.sh-qr { display: inline-block; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.sh-qr img { display: block; width: 180px; height: 180px; }
.sh-tip { margin: 8px 0 4px; }
.sh-url {
  font-size: 12px; color: #64748b; word-break: break-all;
  background: #f8fafc; border-radius: 8px; padding: 7px 10px; margin: 6px 0 12px;
}
/* 平台直达按钮（微信 / 抖音 / 小红书 / QQ / 微博 / 复制链接 / 系统分享） */
.sh-plat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.sh-p {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 1px solid #eef2f7; background: #f8fafc; border-radius: 12px;
  padding: 9px 2px 7px; font-size: 11.5px; color: #334155;
  cursor: pointer; font-family: inherit;
}
.sh-p:hover { background: #eef2ff; border-color: #c7d2fe; }
.sh-p-ic { font-size: 20px; line-height: 1; }
.sh-status {
  margin: 0 0 10px; padding: 9px 11px; border-radius: 10px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  font-size: 12.5px; line-height: 1.6; text-align: left;
}
.sh-status b { color: #047857; }
.sh-status[hidden] { display: none; }
.sh-qrwrap { display: none; }
@media (min-width: 760px) { .sh-qrwrap { display: block; } }
.sh-wx { margin: 10px 0 0; text-align: left; }
.sh-toast {
  position: fixed; left: 50%; bottom: 14%; transform: translateX(-50%);
  z-index: 999; background: rgba(15, 23, 42, .92); color: #fff;
  font-size: 13px; line-height: 1.5; padding: 10px 16px; border-radius: 10px;
  max-width: 86vw; text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .3);
}
.sh-toast[hidden] { display: none; }

/* ---------- 设备分享落地页 ---------- */
.ds-card { padding: 22px 24px; }
.ds-top { display: flex; align-items: center; gap: 10px; }
.ds-brand { font-size: 13px; font-weight: 700; color: var(--c, #64748b); }
.ds-title { margin: 6px 0 4px; font-size: 24px; }
.ds-price { color: #b45309; font-weight: 800; font-size: 22px; }
.ds-hl { color: #475569; margin: 6px 0 0; }
.ds-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ds-rows { display: flex; flex-direction: column; }

.di-body { overflow-y: auto; padding: 4px 16px 16px; }
.di-sec {
  margin: 12px 0 2px; padding-top: 4px;
  font-size: 13px; font-weight: 700; color: #2563eb;
}
.di-row {
  display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #f1f5f9;
  font-size: 13px; line-height: 1.5;
}
.di-label { flex: 0 0 96px; color: #64748b; }
.di-val { flex: 1; color: #0f172a; word-break: break-word; }
.di-loading { padding: 36px 0; text-align: center; color: #94a3b8; font-size: 13px; }

/* ---------- 机型墙卡片：CPU 天梯排名徽章 ---------- */
.dm-ladder {
  font-style: normal; font-size: 10px; font-weight: 700;
  color: #2563eb; background: #eff6ff; border-radius: 5px;
  padding: 1px 5px; margin-left: 4px; vertical-align: 1px;
  white-space: nowrap;
}

/* ---------- CPU 天梯（排行榜内） ---------- */
.cl-tier { margin: 16px 0 0; }
.cl-tier-head {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: #f1f5f9; border-radius: 8px;
  font-size: 13.5px; font-weight: 700; color: #1f2937;
}
.cl-tier-head em { font-style: normal; font-size: 11.5px; color: #94a3b8; font-weight: 400; margin-left: auto; }
.cl-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px; border-bottom: 1px dashed #f1f5f9; font-size: 13px;
}
.cl-rank { flex: 0 0 32px; text-align: center; font-size: 12.5px; font-weight: 700; color: #94a3b8; }
.cl-name { flex: 0 0 178px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #0f172a; }
.cl-bar { flex: 1; height: 8px; min-width: 48px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.cl-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.cl-score { flex: 0 0 34px; text-align: right; font-weight: 700; color: #2563eb; }
@media (max-width: 480px) {
  .cl-name { flex-basis: 106px; font-size: 12px; }
  .cl-bar { min-width: 30px; }
}

/* ---------- 加宽容器类（与全站默认一致，保留兼容） ---------- */
html[data-view="desktop"] .page.page-wide { max-width: min(1760px, calc(100vw - 48px)); }
@media (min-width: 960px) {
  html:not([data-view="mobile"]) .page.page-wide { max-width: min(1760px, calc(100vw - 48px)); }
}
/* ---------- 对比页：容器大幅加宽（1920 屏两侧空白 380px → 约 80px，≈ -80%） ---------- */
html[data-view="desktop"] .page.page-xwide { max-width: min(1760px, calc(100vw - 48px)); }
@media (min-width: 960px) {
  html:not([data-view="mobile"]) .page.page-xwide { max-width: min(1760px, calc(100vw - 48px)); }
}
@media (min-width: 640px) {
  html:not([data-view="mobile"]) .page-wide .device-wall,
  html[data-view="desktop"] .page-wide .device-wall {
    grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  }
}
