/* ===========================================================
   电脑使用指南与配套硬件总结 · 样式表
   简洁现代风：白底 + 蓝色主色 + 卡片化布局 + 响应式
   =========================================================== */

/* ---- 设计系统变量 ---- */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-soft: #eff6ff;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #0f172a;
  --color-text-soft: #475569;
  --color-border: #e2e8f0;
  --color-card: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 20px rgba(15, 23, 42, .08);
  --shadow-hover: 0 14px 34px rgba(37, 99, 235, .16);

  --maxw: 1120px;
  --gap: 22px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", sans-serif;
}

/* ---- 基础重置 ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

/* ---- 深色模式变量 ---- */
:root[data-theme="dark"] {
  --color-primary: #3b82f6;
  --color-primary-dark: #60a5fa;
  --color-primary-soft: #1e293b;
  --color-bg: #0b1120;
  --color-bg-alt: #111827;
  --color-text: #e5e7eb;
  --color-text-soft: #9ca3af;
  --color-border: #1f2937;
  --color-card: #111827;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 6px 20px rgba(0, 0, 0, .55);
  --shadow-hover: 0 14px 34px rgba(59, 130, 246, .30);
}

/* ---- 滚动进度条 ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--color-primary);
  z-index: 60;
  transition: width .12s ease;
}

/* ---- 主题切换按钮 ---- */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--color-primary); }
:root[data-theme="dark"] .theme-toggle { background: var(--color-card); }

/* ---- 深色模式下的硬编码组件覆盖 ---- */
:root[data-theme="dark"] .site-header { background: rgba(11, 17, 32, .85); }
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(1100px 480px at 80% -10%, rgba(59, 130, 246, .18), transparent 60%),
    linear-gradient(180deg, #0b1120, #0b1120);
  border-bottom-color: var(--color-border);
}
:root[data-theme="dark"] .nav-toggle { background: var(--color-card); }
:root[data-theme="dark"] .nav-links { background: var(--color-card); }
:root[data-theme="dark"] .btn-ghost { background: var(--color-card); }
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .table-wrap { background: var(--color-card); }
:root[data-theme="dark"] .data-table tbody tr:hover { background: #0b1120; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ===========================================================
   顶部导航
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { margin-right: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--color-text-soft);
  transition: background .2s, color .2s;
}

.nav-link:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.nav-link.active { color: var(--color-primary); background: var(--color-primary-soft); font-weight: 600; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(1100px 480px at 80% -10%, rgba(37, 99, 235, .12), transparent 60%),
    linear-gradient(180deg, #fbfdff, #ffffff);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-art { width: 100%; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 36px rgba(37, 99, 235, .12)); }

.hero-eyebrow {
  letter-spacing: .22em;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.5px;
}

.hero-sub {
  margin: 20px 0 30px;
  max-width: 640px;
  font-size: 17px;
  color: var(--color-text-soft);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--color-primary); }
.stat-label { font-size: 14px; color: var(--color-text-soft); }

/* ===========================================================
   通用 section
   =========================================================== */
.section { padding: 76px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.4px; }
.section-desc { margin-top: 12px; color: var(--color-text-soft); font-size: 16px; }

.block-title {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 18px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}

/* ---- 卡片网格 ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: var(--gap);
}
.builds-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  margin-bottom: 14px;
}
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card-text { color: var(--color-text-soft); font-size: 15px; }
.card-link { display: inline-block; margin-top: 14px; color: var(--color-primary); font-weight: 600; font-size: 14px; }
.card-link:hover { text-decoration: underline; }

.build-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 12px;
}
.build-tag-hot { background: #fef2f2; color: #dc2626; }

/* ---- 表格 ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border); }
.data-table th { background: var(--color-primary-soft); color: var(--color-primary-dark); font-weight: 700; font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--color-bg-alt); }

/* ---- FAQ ---- */
.faq-list { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
}
.faq-plus { font-size: 22px; color: var(--color-primary); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 20px 8px; color: var(--color-text-soft); line-height: 1.7; }
.faq-a p:last-child { padding-bottom: 18px; }
.faq-a ul { margin: 0 20px 12px; padding-left: 20px; color: var(--color-text-soft); line-height: 1.7; }
.faq-a ul li { margin: 5px 0; }
.faq-a strong { color: var(--color-text); font-weight: 600; }
.faq-cat { max-width: 720px; margin: 28px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--color-primary); }
.faq-cat:first-of-type { margin-top: 6px; }

/* ---- 引导框（大白话提示） ---- */
.guide-lead { max-width: 860px; margin: 0 auto 28px; padding: 16px 20px; background: rgba(37,99,235,.08); border-left: 4px solid var(--color-primary); border-radius: var(--radius); color: var(--color-text-soft); line-height: 1.85; }
.guide-lead p { margin: 6px 0; }
.guide-lead strong { color: var(--color-text); }

/* ---- 术语悬停解释（小白降维：悬停看白话） ---- */
.term { border-bottom: 1px dashed var(--color-primary); cursor: help; position: relative; color: inherit; }
.term::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  background: #1f2937;
  color: #f8fafc;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 400;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
  z-index: 60;
  pointer-events: none;
}
.term::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
  z-index: 60;
  pointer-events: none;
}
.term:hover::after, .term:focus::after,
.term:hover::before, .term:focus::before { opacity: 1; visibility: visible; }
.term:focus { outline: none; }

/* ---- 资源卡 ---- */
.resource-card { display: block; }
.resource-card:hover .card-title { color: var(--color-primary); }
/* 卡片内具体资源外链（无下划线默认样式继承自全局 a，此处显式标出可点） */
.res-link { color: var(--color-primary); font-weight: 600; }
.res-link:hover { text-decoration: underline; }

/* 锚点跳转避开 sticky 头部（首页深链到方案卡 / 各页板块锚点） */
.section[id],
.plan-card[id] { scroll-margin-top: 90px; }

/* ===========================================================
   页脚
   =========================================================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.footer-note { font-size: 14px; }
.footer-top { color: #93c5fd; font-weight: 600; }
.footer-top:hover { text-decoration: underline; }

/* ===========================================================
   进场动画
   =========================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   可访问性（a11y）：可见焦点 + 跳转链接 + 移动端增强
   =========================================================== */
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible,
.entry-card:focus-visible,
.term:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 8px; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ===========================================================
   响应式断点阶梯（全站统一，仅此四个值）
   -----------------------------------------------------------
   900px  桌面 → 平板：首页 hero 由两列转单列
   768px  平板 → 手机：导航折叠为汉堡菜单、区块间距压缩
   640px  手机：工具栏/筛选竖排、宽表格横向滚动、卡片网格转单列
   480px  小屏手机：缩略图等次要元素收缩
   新增断点请从上面四档里选，不要引入第五个值。
   =========================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-link { min-height: 44px; display: flex; align-items: center; justify-content: flex-start; padding: 12px 8px; border-radius: var(--radius-sm); }
  .hero { padding: 56px 0 48px; }
  .hero-stats { gap: 26px; }
  .section { padding: 56px 0; }
}

/* ===========================================================
   回到顶部悬浮按钮
   =========================================================== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-card, #fff);
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ===========================================================
   配件价格库 / 搭配计划 / 个性化测评
   =========================================================== */
.empty-box { padding: 28px; text-align: center; color: var(--color-soft); border: 1px dashed var(--color-border); border-radius: var(--radius); }

/* ---- 关键词搜索 ---- */
.acc-search { margin-bottom: 12px; }
.acc-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.acc-search-input::placeholder { color: var(--color-soft); }
.acc-search-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.acc-search-hint { display: block; margin-top: 8px; font-size: 13px; color: var(--color-soft); }
.acc-search-hint:empty { display: none; }

/* ---- 筛选面板 ---- */
.filter-panel {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.filter-group { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.filter-group + .filter-group { border-top: 1px dashed var(--color-border); }
.filter-label { flex: 0 0 46px; font-size: 13px; font-weight: 700; color: var(--color-soft); padding-top: 7px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chip.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 600; }
.acc-count { font-size: 13px; color: var(--color-soft); margin-bottom: 12px; }

/* ---- 配件卡片 ---- */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.acc-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.acc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 23, 42, .10); }
.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.acc-cat { font-size: 12px; color: var(--color-primary); font-weight: 700; }
.acc-name { font-size: 16px; margin-top: 2px; }
.acc-price { font-size: 15px; font-weight: 800; color: var(--color-primary); white-space: nowrap; }
.acc-specs { font-size: 13px; color: var(--color-soft); line-height: 1.55; }
.acc-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; flex-wrap: wrap; }
.acc-style { background: var(--color-primary-soft, #eff6ff); color: var(--color-primary); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.acc-rating { color: #f59e0b; letter-spacing: 1px; }
.use-dot { font-size: 14px; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { background: #f1f5f9; color: #334155; border: 1px solid var(--color-border); padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.tag-pill.big { font-size: 13px; padding: 4px 12px; }
.acc-compat { font-size: 12.5px; color: var(--color-soft); border-top: 1px dashed var(--color-border); padding-top: 8px; }
.acc-model { display: inline-block; font-size: 12px; color: var(--color-soft); margin-top: 2px; }
.acc-note { font-size: 13px; color: var(--color-primary); background: var(--color-primary-soft, #eff6ff); border-radius: 8px; padding: 6px 10px; line-height: 1.5; }

/* ---- 性价比等级徽章 ---- */
.grade { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: 13px; font-weight: 800; color: #fff; }
.grade-S { background: linear-gradient(135deg, #f59e0b, #d97706); }
.grade-A { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.grade-B { background: linear-gradient(135deg, #94a3b8, #64748b); }
.grade-C { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
[data-theme="dark"] .grade-C { background: linear-gradient(135deg, #475569, #334155); }

/* ---- 性价比 TOP 榜单 ---- */
.top-tabs { margin-bottom: 16px; }
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.top-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.top-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 23, 42, .10); }
.top-rank { flex: 0 0 40px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: var(--color-primary); background: var(--color-primary-soft, #eff6ff); border-radius: 10px; }
.top-main { flex: 1; min-width: 0; }
.top-cat { font-size: 11px; color: var(--color-soft); font-weight: 700; letter-spacing: 1px; }
.top-name { font-size: 15px; margin: 1px 0 3px; }
.top-reason { font-size: 12.5px; color: var(--color-soft); line-height: 1.5; }
.top-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.top-price { font-size: 13px; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.top-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--color-bg-alt); box-shadow: inset 0 0 0 1px var(--color-border); }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 480px) { .top-thumb { flex-basis: 52px; width: 52px; height: 52px; } }

/* 每个具体型号 → 真实产品图跳转入口 */
.prod-link { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prod-img-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: var(--color-primary); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: transform .15s, filter .15s; }
.prod-img-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.prod-ico { font-size: 14px; }
.prod-shop { font-size: 12px; color: var(--color-primary); text-decoration: none; border-bottom: 1px dashed currentColor; padding-bottom: 1px; }
.prod-shop:hover { color: var(--color-accent); }
.prod-price-links { display: inline-flex; gap: 14px; align-items: center; }
.prod-tb { color: #ff6a00; }
.prod-jd { color: #e1251b; }
.prod-hint { flex-basis: 100%; font-size: 12px; line-height: 1.5; color: var(--color-text-soft); margin: 2px 0 1px; }
.price-note { margin: 14px 0 4px; padding: 11px 16px; border-radius: 10px; background: rgba(255, 179, 25, .14); border: 1px solid rgba(255, 179, 25, .4); color: var(--color-text); font-size: 13.5px; line-height: 1.6; }
.price-note strong { color: var(--color-primary); }

/* ---- 站内查实时价小卡片（直接跳京东搜索，联盟 API 已停） ---- */
.jd-live { flex-basis: 100%; margin-top: 6px; }
.jd-live-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; line-height: 1.4; padding: 6px 12px;
  border: none; border-radius: 8px; cursor: pointer; color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #e1251b, #ff6a00);
  text-decoration: none;
}
.jd-live-btn:hover { filter: brightness(1.07); }
.jd-live-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.jd-live-hint { font-size: 12px; color: var(--color-text-soft); margin-top: 6px; line-height: 1.55; }

/* ---- 按品类分组榜单 ---- */
.top-group { margin-bottom: 26px; }
.top-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.top-group-icon { font-size: 20px; }
.top-group-name { font-size: 17px; font-weight: 800; }
.top-group-count { font-size: 12px; color: var(--color-soft); background: var(--color-primary-soft, #eff6ff); padding: 2px 10px; border-radius: 999px; }
.top-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.group-rank { font-weight: 800; }
.group-rank.r1 { color: #d97706; }
.group-rank.r2 { color: #475569; }
.group-rank.r3 { color: #b45309; }

/* ---- 预算档位徽章 ---- */
.plan-tier { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--color-primary); padding: 2px 10px; border-radius: 999px; margin-left: 8px; }

/* ---- 方案部件规格说明 ---- */
.plan-detail { display: block; font-size: 12px; color: var(--color-soft); margin-top: 2px; line-height: 1.5; font-weight: 400; }

/* ---- 预算适配器 ---- */
.budget-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.budget-label { flex: 0 0 86px; font-size: 13px; font-weight: 700; color: var(--color-soft); }
.budget-input {
  width: 180px; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: 10px;
  font-size: 15px; font-weight: 700; color: var(--color-text); background: var(--color-bg); outline: none;
}
.budget-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.budget-out { margin-top: 8px; }
.budget-result { border: 1px solid var(--color-primary); border-radius: var(--radius-lg, 16px); padding: 20px 22px; background: linear-gradient(180deg, var(--color-primary-soft, #eff6ff), transparent 60%); }
.budget-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.budget-head .plan-name { font-size: 17px; }
.budget-tip { font-size: 13.5px; border-radius: 10px; padding: 10px 14px; margin: 8px 0; line-height: 1.6; background: var(--color-primary-soft, #eff6ff); color: var(--color-primary); }
.budget-tip.warn { background: #fef3c7; color: #b45309; }
[data-theme="dark"] .budget-tip.warn { background: rgba(217, 119, 6, .18); color: #fbbf24; }

/* ---- 可编辑配置单（部件级调整） ---- */
.part-table td { vertical-align: top; }
.part-ctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.part-select {
  padding: 6px 10px; border: 1px solid var(--color-border); border-radius: 8px;
  font-size: 13px; background: var(--color-bg); color: var(--color-text); outline: none; max-width: 260px;
}
.part-select:focus { border-color: var(--color-primary); }
.part-price-box { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--color-border); border-radius: 8px; padding: 0 4px; background: var(--color-bg); }
.part-currency { font-size: 13px; color: var(--color-soft); padding-left: 4px; }
.part-price {
  width: 84px; padding: 6px 4px; border: none; outline: none; font-size: 13px; font-weight: 700;
  background: transparent; color: var(--color-primary);
}
.part-price:focus { box-shadow: 0 0 0 2px rgba(37, 99, 235, .18); border-radius: 6px; }
.part-static { font-size: 14px; font-weight: 600; }

/* ---- 搭配计划 ---- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.plan-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-icon { font-size: 30px; }
.plan-name { font-size: 18px; }
.plan-budget { font-size: 13px; color: var(--color-primary); font-weight: 700; }
.plan-summary { font-size: 14px; color: var(--color-soft); }
.plan-personas { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plan-table th { text-align: left; color: var(--color-soft); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--color-border); }
.plan-table td { padding: 7px 8px; border-bottom: 1px dashed var(--color-border); vertical-align: top; }
.plan-table td:first-child { white-space: nowrap; font-weight: 600; }
.plan-price { color: var(--color-primary); font-weight: 700; white-space: nowrap; }
.plan-tip { font-size: 13px; background: var(--color-primary-soft, #eff6ff); color: var(--color-primary); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.persona-strip { margin-top: 40px; }
.persona-card .card-icon { font-size: 30px; }

/* ---- 个性化测评 ---- */
.quiz-panel {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  padding: 26px 26px 30px;
  box-shadow: var(--shadow);
}
.quiz-step { margin-bottom: 22px; }
.q-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.q-step { font-size: 12px; background: var(--color-primary); color: #fff; padding: 2px 9px; border-radius: 999px; }
.q-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.q-opt {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  text-align: left;
  transition: all .18s ease;
  min-width: 150px;
}
.q-opt:hover { border-color: var(--color-primary); }
.q-opt.selected { border-color: var(--color-primary); background: var(--color-primary); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
.q-opt-label { display: block; font-size: 14px; font-weight: 600; }
.q-opt-desc { display: block; font-size: 12px; opacity: .75; margin-top: 2px; }
.q-opt.selected .q-opt-desc { color: #e0e7ff; }
.q-submit { margin-top: 8px; width: 100%; }

/* ---- 测评结果 ---- */
.result-box { border: 1px solid var(--color-primary); border-radius: var(--radius-lg, 16px); padding: 22px 24px; background: linear-gradient(180deg, var(--color-primary-soft, #eff6ff), transparent 60%); }
.result-title { font-size: 18px; margin-bottom: 14px; }
.result-persona, .res-section { margin-bottom: 14px; }
.res-label { display: block; font-size: 12px; font-weight: 700; color: var(--color-soft); letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
.res-plan { font-size: 15px; background: var(--color-card); border: 1px solid var(--color-border); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; line-height: 1.6; }
.res-budget { color: var(--color-primary); font-weight: 700; white-space: nowrap; }
.pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.pick-icon { font-size: 22px; }
.pick-main { flex: 1; min-width: 0; }
.pick-name { display: block; font-size: 14px; font-weight: 700; }
.pick-why { display: block; font-size: 12.5px; color: var(--color-soft); margin-top: 2px; line-height: 1.5; }
.pick-price { font-size: 14px; font-weight: 800; color: var(--color-primary); white-space: nowrap; }
.res-total { font-size: 15px; margin: 6px 0 10px; }
.res-total b { color: var(--color-primary); font-size: 18px; }
.res-note { font-size: 12px; color: var(--color-soft); margin-bottom: 16px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.res-actions .btn { flex: 1 1 180px; }

/* 测评结果：偏好的颜值风格卡片 */
.res-look { margin-top: 4px; }
.res-look-card { display: flex; gap: 14px; background: var(--color-card); border: 1px solid var(--color-border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); }
.res-look-img { flex: 0 0 120px; width: 120px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--color-bg-alt); }
.res-look-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.res-look-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; flex-wrap: wrap; }
.res-look-pal { display: inline-flex; gap: 5px; }
.res-look-desc { font-size: 13px; color: var(--color-text-soft); line-height: 1.6; margin: 0; }
.res-look-tip { font-size: 12.5px; color: var(--color-text-soft); line-height: 1.5; margin: 0; }
.res-look-jump { align-self: flex-start; margin-top: 2px; }
@media (max-width: 640px) {
  .res-look-card { flex-direction: column; }
  .res-look-img { width: 100%; height: 150px; }
}

/* 深色模式适配 */
[data-theme="dark"] .acc-style, [data-theme="dark"] .plan-tip, [data-theme="dark"] .result-box { background: rgba(37, 99, 235, .18); }
[data-theme="dark"] .tag-pill { background: #1e293b; color: #cbd5e1; border-color: #334155; }
[data-theme="dark"] .q-opt { background: #0f172a; }
[data-theme="dark"] .plan-tip { color: #93c5fd; }
[data-theme="dark"] .result-box { background: linear-gradient(180deg, rgba(37, 99, 235, .16), transparent 60%); }

/* ===========================================================
   颜值外观（Aesthetics）画廊 + 风格色带
   =========================================================== */
.look-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}
.look-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.look-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.look-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.look-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.look-card:hover .look-cover img { transform: scale(1.05); }
.look-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.look-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.look-name { font-size: 17px; font-weight: 800; }
.look-desc { font-size: 14px; color: var(--color-text-soft); line-height: 1.6; }
.look-swatches { display: flex; gap: 8px; }
.look-swatch { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--color-border); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.look-tips { list-style: none; display: flex; flex-direction: column; gap: 5px; margin: 2px 0; }
.look-tips li { position: relative; padding-left: 18px; font-size: 13px; color: var(--color-text-soft); line-height: 1.5; }
.look-tips li::before { content: "✦"; position: absolute; left: 0; color: var(--color-primary); font-size: 12px; }
.look-jump { margin-top: auto; width: 100%; text-align: center; }

/* ---- 新版块间距 ---- */
.look-block { margin-top: 52px; }
.look-block .block-title { margin-bottom: 8px; }

/* 风格卡：配色 / 元信息 / 底部 */
.look-pal { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.look-pal-name { font-size: 12.5px; font-weight: 700; color: var(--color-text-soft); letter-spacing: .03em; }
.look-swatches { display: flex; gap: 8px; }
.look-swatch.sm { width: 20px; height: 20px; border-radius: 6px; }
.look-meta { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 4px 0; }
.look-meta li { display: flex; gap: 8px; font-size: 13px; line-height: 1.55; }
.lm-k { flex: 0 0 34px; font-weight: 800; color: var(--color-primary); font-size: 12px; padding-top: 1px; }
.lm-v { color: var(--color-text-soft); }
.lm-avoid { background: rgba(239, 68, 68, .08); border-radius: 8px; padding: 6px 9px; }
.lm-avoid .lm-k { color: #ef4444; }
.look-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.look-count { font-size: 12px; font-weight: 700; color: var(--color-text-soft); }

/* 机箱 × 风格 速查 */
.look-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 14px; }
.case-row { background: var(--color-card); border: 1px solid var(--color-border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.case-head { display: flex; align-items: center; gap: 12px; }
.case-icon { font-size: 22px; }
.case-titles { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.case-name { font-size: 15px; font-weight: 800; }
.case-type { font-size: 12px; color: var(--color-primary); font-weight: 700; }
.case-tip { margin: 10px 0 0; font-size: 13px; color: var(--color-text-soft); line-height: 1.6; }

/* 细节赏析图廊 */
.look-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 14px; }
.detail-fig { margin: 0; background: var(--color-card); border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.detail-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-bg-alt); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.detail-fig:hover .detail-cover img { transform: scale(1.05); }
.detail-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; background: rgba(15, 23, 42, .55); backdrop-filter: blur(6px); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.detail-cap { padding: 12px 14px 14px; font-size: 13px; color: var(--color-text-soft); line-height: 1.6; }

/* 颜值避坑指南 */
.look-pitfalls { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.pitfall { background: var(--color-card); border: 1px solid var(--color-border); border-left: 3px solid #ef4444; border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow-sm); }
.pf-badge { display: inline-block; font-size: 12.5px; font-weight: 800; color: #ef4444; margin-bottom: 5px; }
.pf-text { margin: 0; font-size: 13px; color: var(--color-text-soft); line-height: 1.6; }

@media (max-width: 640px) {
  .look-cases, .look-details, .look-pitfalls { grid-template-columns: 1fr; }
  .look-foot { flex-direction: column; align-items: stretch; }
  .look-foot .look-jump { width: 100%; }
}

/* ---- 配件卡片上的「颜值风格」色带 ---- */
.acc-card { overflow: hidden; }
.acc-look {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -18px -20px 10px;
  padding: 10px 20px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.acc-look-icon { font-size: 18px; }
.acc-look-name { font-size: 13px; font-weight: 800; letter-spacing: .04em; }

/* 深色模式下色带文字保持可读 */
:root[data-theme="dark"] .acc-look { text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }

@media (max-width: 640px) {
  .look-gallery { grid-template-columns: 1fr; }
}

/* ===========================================================
   首页分类入口卡片（可点击，整卡跳转）
   =========================================================== */
.entry-grid { margin-top: 8px; }
a.entry-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.entry-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .14);
}
a.entry-card .card-icon { transition: transform .18s ease; }
a.entry-card:hover .card-icon { transform: scale(1.08); }
a.entry-card .entry-go {
  margin-top: auto;
  padding-top: 14px;
  color: var(--color-primary, #2563eb);
  font-weight: 700;
  font-size: 14px;
  transition: letter-spacing .18s ease;
}
a.entry-card:hover .entry-go { letter-spacing: .03em; }
a.entry-card .card-title { margin-top: 0; }

/* ===========================================================
   P2 增强：面包屑 / 配件库工具栏 / 配置单复制 / 移动端适配
   =========================================================== */
.breadcrumb {
  max-width: var(--maxw, 1120px);
  margin: 16px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--color-soft);
  line-height: 1.5;
}
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.crumb-sep { margin: 0 8px; color: var(--color-border, #94a3b8); }
.crumb-cur { color: var(--color-text); font-weight: 600; }

.acc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.acc-toolbar .acc-count { margin-bottom: 0; }
.acc-sort {
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  outline: none;
}
.acc-sort:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

.budget-copy {
  margin-left: auto;
  border: 1px solid var(--color-primary);
  background: var(--color-card);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s ease;
}
.budget-copy:hover { background: var(--color-primary); color: #fff; }

/* 手机档（640）：筛选/工具栏/表格溢出/触控热区 + 卡片网格转单列 */
@media (max-width: 640px) {
  .breadcrumb { padding: 0 16px; margin-top: 12px; }
  .acc-toolbar { flex-direction: column; align-items: stretch; }
  .acc-sort { width: 100%; }
  .filter-group { flex-direction: column; gap: 6px; }
  .filter-label { flex: none; padding-top: 0; }
  .budget-head { flex-wrap: wrap; }
  .budget-copy { margin-left: 0; width: 100%; text-align: center; }
  .part-table, .plan-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .chip { min-height: 34px; }
}

/* ===========================================================
   智能推荐页（smart）
   =========================================================== */
.smart-panel .smart-step { margin-bottom: 18px; }
.smart-panel .q-title { margin-bottom: 10px; }
.smart-hint { margin: 10px 0 2px; font-size: 13px; line-height: 1.6; color: var(--color-text-soft); }
.smart-hint.ready { color: var(--color-primary); font-weight: 600; }
.smart-res-head { font-size: 15px; font-weight: 800; margin: 24px 0 12px; }
.smart-plan {
  background: var(--color-card);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg, 16px);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.smart-summary { font-size: 14px; color: var(--color-text-soft); margin: 6px 0 14px; line-height: 1.7; }
.smart-plan-link { display: inline-block; text-decoration: none; }
.smart-note { font-size: 12.5px; color: var(--color-soft); margin-top: 12px; line-height: 1.6; }
.smart-grid { margin-top: 4px; }
.smart-why { font-size: 12.5px; color: var(--color-primary); font-weight: 600; line-height: 1.5; }

/* 智能推荐：配置单同款徽标 / 备选切换 / 预算差距提示 */
.anchor-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--color-primary); background: var(--color-primary-soft); vertical-align: middle; }
[data-theme="dark"] .anchor-badge { background: rgba(59, 130, 246, .18); color: #93c5fd; }
.smart-alts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--color-text-soft); }
.smart-alt-chip { cursor: pointer; border: 1px solid var(--color-border); background: transparent; color: var(--color-text-soft); padding: 2px 10px; border-radius: 999px; font-size: 12px; font-family: inherit; transition: border-color .15s ease, color .15s ease; }
.smart-alt-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.smart-budget-warn { margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13.5px; line-height: 1.7; }
[data-theme="dark"] .smart-budget-warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .35); color: #fbbf24; }

/* 智能推荐：全套配置单表格 */
.smart-spec { margin: 18px 0 8px; }
.smart-spec-title { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.smart-spec-scroll { overflow-x: auto; }
.smart-spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.smart-spec-table th, .smart-spec-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--color-border); line-height: 1.5; }
.smart-spec-table thead th { background: var(--color-bg-alt); font-size: 12.5px; color: var(--color-text-soft); white-space: nowrap; }
.spec-part { font-weight: 700; white-space: nowrap; }
.spec-price { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.spec-total td { font-weight: 700; border-bottom: none; background: var(--color-primary-soft); }
[data-theme="dark"] .spec-total td { background: rgba(59, 130, 246, .12); }
.smart-spec-tip { font-size: 12.5px; color: var(--color-text-soft); margin: 10px 0 0; line-height: 1.7; }
.smart-sub-title { font-size: 15px; font-weight: 700; margin: 24px 0 12px; }



/* ===========================================================
   打印样式：把配置单/方案干净地印出来（给店家看或存档）
   =========================================================== */
@media print {
  .site-header, .site-footer, .back-to-top, .scroll-progress, .skip-link,
  .filter-panel, .acc-search, .filter-chips, .top-tabs,
  .nav-toggle, .theme-toggle, .btn, .q-submit, .res-actions, .budget-copy,
  .prod-link, .jd-live, .res-look-jump, .price-note, .quiz-step { display: none !important; }

  body { background: #fff !important; color: #000 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }

  .card, .quiz-panel, .plan-card, .pick-item, .result-box, .smart-plan,
  .filter-panel, .res-section, .look-pitfalls { box-shadow: none !important; }

  .plan-table { width: 100% !important; border-collapse: collapse !important; }
  .plan-table th, .plan-table td { border: 1px solid #999 !important; padding: 5px 7px !important; }

  .res-total, .budget-tip, .res-look { border: 1px solid #999 !important; padding: 8px 10px !important; }

  a { color: #000 !important; text-decoration: none !important; }
  h1, h2, h3 { break-after: avoid; }
  .card, .pick-item, .pitfall { break-inside: avoid; }
}
