/* ==========================================================
   买得值 · 公共组件样式（两屏共用）
   ========================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(226, 196, 163, 0.5) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 10px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i { width: 20px; height: 20px; flex: 0 0 auto; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 24px; height: 24px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶栏 ---------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 2px solid rgba(58, 46, 63, 0.1);
}

.top-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }

.brand .mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 15px;
  background: var(--butter);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-pop);
}
.brand .mark svg { width: 26px; height: 26px; }

.brand-txt { display: grid; line-height: 1.15; }
.brand-txt b { font-size: var(--fs-20); font-weight: 800; letter-spacing: -0.01em; }
.brand-txt span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 8px; margin-left: 12px; }

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--ink-2);
  transition: background-color 0.15s, border-color 0.15s;
}
.nav a:hover { background: var(--surface); border-color: var(--line-soft); }
.nav a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--line);
  color: var(--bg);
}

.live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--mint-soft);
  border: 2px solid rgba(27, 113, 87, 0.25);
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--ok);
  white-space: nowrap;
}
.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-16);
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-pop);
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.16s, background-color 0.16s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-deep); }

.btn--ghost { background: var(--surface); }
.btn--ghost:hover { background: var(--butter-soft); }

.btn--lg { min-height: 56px; padding: 0 24px; }
.btn--block { width: 100%; }

/* ---------------- 药丸 / 标签 ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  border: 2px solid var(--line-soft);
  background: var(--surface);
  font-size: var(--fs-13);
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 0.15s, background-color 0.15s;
}
.chip:hover { border-color: var(--line); }
.chip--on {
  background: var(--butter);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.chip--sm { height: 30px; padding: 0 10px; font-size: var(--fs-12); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1.5px solid var(--line-soft);
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--butter);
  border: 2px solid var(--line);
  font-size: var(--fs-12);
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
}
.sticker--pink { background: var(--pink-soft); }
.sticker--mint { background: var(--mint-soft); }
.sticker--taro { background: var(--taro-soft); }
.sticker--primary { background: var(--primary); color: var(--on-primary); }

/* ---------------- 首屏 ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 40px;
  align-items: center;
  padding: 40px 0 24px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--taro-soft);
  border: 2px solid var(--line);
  font-size: var(--fs-13);
  font-weight: 800;
  color: var(--ink);
  transform: rotate(-1.5deg);
}

.hero h1 {
  margin-top: 16px;
  font-size: var(--fs-40);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hl {
  padding: 0 2px;
  background-image: linear-gradient(transparent 60%, var(--butter) 60%, var(--butter) 92%, transparent 92%);
}

.lede {
  margin-top: 12px;
  max-width: 32em;
  font-size: var(--fs-16);
  color: var(--muted);
}

/* 搜索条 */
.search { display: flex; gap: 10px; margin-top: 24px; max-width: 600px; }

.search .field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-card-soft);
}
.search .field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--pink-soft);
}
.search .field svg { color: var(--muted); }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--ink);
}
.search input::placeholder { color: var(--muted); font-weight: 500; }

.hero .chips { margin-top: 16px; }

/* 吉祥物 */
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .art { width: min(100%, 300px); height: auto; }

.bubble {
  position: absolute;
  top: 0;
  right: 4px;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 4px;
  background: var(--surface);
  border: 2px solid var(--line);
  font-size: var(--fs-13);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-card-soft);
  transform: rotate(2.5deg);
}

.mascot-mini { display: none; }

/* ---------------- 主栅格 ---------------- */
.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 20px 0 64px;
}

.panel { display: grid; gap: 16px; position: sticky; top: 92px; }

.box {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-card-soft);
}
.box h2 { font-size: var(--fs-16); font-weight: 800; letter-spacing: -0.01em; }
.box p { margin-top: 8px; font-size: var(--fs-13); color: var(--muted); line-height: 1.65; }
.box .chips { margin-top: 12px; }

.rules { display: grid; gap: 12px; margin-top: 14px; }
.rules li { display: flex; gap: 10px; font-size: var(--fs-13); color: var(--ink-2); line-height: 1.5; }
.rules .ico {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  border: 1.5px solid rgba(27, 113, 87, 0.2);
  color: var(--ok);
}
.rules .ico--taro { background: var(--taro-soft); border-color: rgba(90, 70, 150, 0.18); color: #5a4696; }
.rules .ico--sky { background: var(--sky-soft); border-color: rgba(30, 100, 160, 0.18); color: #1e649f; }

/* ---------------- 结果列表 ---------------- */
.results { display: grid; gap: 26px; min-width: 0; }

.rhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.rhead h2 { font-size: var(--fs-28); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.rhead .sub { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--muted); }

.card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.card--pick { box-shadow: 7px 7px 0 var(--butter); }

.rank {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--butter);
  border: 2px solid var(--line);
  font-size: var(--fs-16);
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-7deg);
}

.card-head { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding-top: 4px; }

.thumb {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  transform: rotate(-3deg);
}
.thumb svg { width: 76px; height: 76px; }
.thumb--pink { background: var(--pink-soft); }
.thumb--sky { background: var(--sky-soft); }
.thumb--mint { background: var(--mint-soft); }

.cm { min-width: 0; }
.cm h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-20);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.cm .meta { margin-top: 6px; font-size: var(--fs-13); color: var(--muted); font-weight: 600; }
.cm .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.score { text-align: center; }
.score b {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  min-width: 64px;
  height: 64px;
  padding: 0 10px;
  border-radius: 22px;
  background: var(--butter);
  border: 2px solid var(--line);
  box-shadow: 2px 3px 0 var(--ink);
  font-size: var(--fs-28);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 60px;
}
.score b i { font-style: normal; font-size: var(--fs-13); font-weight: 700; letter-spacing: 0; }
.score small { display: block; margin-top: 6px; font-size: var(--fs-12); font-weight: 700; color: var(--muted); }

.fit {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1.5px dashed var(--line-soft);
  font-size: var(--fs-13);
  color: var(--ink-2);
  line-height: 1.6;
}
.fit svg { color: var(--pink); margin-top: 2px; }

.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }

.pane { padding: 14px 16px; border-radius: var(--r-md); border: 2px solid transparent; }
.pane--pros { background: var(--mint-soft); border-color: #b6ead9; }
.pane--cons { background: var(--warn-soft); border-color: #ffd0c2; }
.pane h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-13);
  font-weight: 800;
  color: var(--ink);
}
.pane--pros h4 { color: var(--ok); }
.pane--cons h4 { color: var(--warn); }
.pane ul { display: grid; gap: 6px; margin-top: 8px; }
.pane li { position: relative; padding-left: 14px; font-size: var(--fs-13); line-height: 1.6; color: var(--ink); }
.pane li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.cfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px dashed var(--line-soft);
}
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: var(--fs-28); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price b i { font-style: normal; font-size: var(--fs-16); margin-right: 1px; }
.price span { font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
.cfoot .btn { margin-left: auto; }

.src { display: flex; gap: 8px; margin-top: 14px; max-width: 40em; font-size: var(--fs-12); line-height: 1.6; color: var(--muted); }
.src svg { margin-top: 3px; }

/* 底部引导 */
.next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  background: var(--butter-soft);
  border: 2px dashed var(--line);
}
.next h2 { font-size: var(--fs-20); font-weight: 800; }
.next p { margin-top: 4px; font-size: var(--fs-13); color: var(--ink-2); }
.next .btn { margin-left: auto; }

/* ---------------- 比价页 ---------------- */
.verdict {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--butter-soft);
  border: 2px solid var(--line);
  box-shadow: 6px 7px 0 var(--butter);
}
.verdict h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-size: var(--fs-28);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.verdict h2 b { font-size: var(--fs-40); letter-spacing: -0.03em; }
.verdict h2 b i { font-style: normal; font-size: var(--fs-20); }
.verdict p { margin-top: 8px; font-size: var(--fs-13); color: var(--ink-2); line-height: 1.65; max-width: 34em; }
.verdict .art { width: 170px; height: auto; justify-self: center; transform: rotate(3deg); }

.offers { display: grid; gap: 16px; margin-top: 24px; }

.offer {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-card-soft);
}
.offer--best { background: var(--butter-soft); box-shadow: 6px 6px 0 var(--butter); }

.shop {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: var(--fs-13);
  font-weight: 800;
  line-height: 1.2;
  padding: 0 4px;
}
.shop--pdd { background: var(--pink-soft); color: #a8214a; }
.shop--jd { background: #ffe3e0; color: #a5302a; }
.shop--tb { background: #ffedd8; color: #9a5410; }

.offer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offer-top h3 { font-size: var(--fs-16); font-weight: 800; letter-spacing: -0.01em; }
.offer-meta { margin-top: 6px; font-size: var(--fs-13); color: var(--muted); font-weight: 600; }
.offer-buy { display: flex; align-items: center; gap: 16px; }
.offer-buy .price b { font-size: var(--fs-28); }

/* ---------------- 页脚 ---------------- */
.foot {
  border-top: 2px solid rgba(58, 46, 63, 0.1);
  padding: 24px 0 40px;
  font-size: var(--fs-12);
  color: var(--muted);
}
.foot-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot .sep { color: var(--line-soft); }

/* 备案号：最底部一行，独立居中 */
.icp { margin: 14px auto 0; padding: 0 20px; text-align: center; }
.icp a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0 2px;
  font-size: var(--fs-12); font-weight: 600; color: var(--muted);
  text-decoration: none; border-bottom: 1.5px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.icp a:hover { color: var(--ink-2); border-bottom-color: rgba(58, 46, 63, 0.45); }
.icp a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.nw { white-space: nowrap; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .panel { position: static; grid-template-columns: 1fr 1fr; order: 2; }
  .results { order: 1; }
  .hero { gap: 24px; }
  .hero-art .art { width: min(100%, 240px); }
}

@media (max-width: 860px) {
  .top-in { flex-wrap: wrap; gap: 10px 16px; }
  .nav { order: 3; margin-left: 0; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .nav a { flex: 1 0 auto; justify-content: center; }
  .live { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-art { display: none; }
  .mascot-mini {
    display: block;
    width: 84px;
    height: auto;
    margin-left: auto;
    transform: rotate(4deg);
  }
  .hero-kick { display: flex; align-items: center; gap: 12px; }
  .panel { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; }
  .verdict .art { display: none; }
}

@media (max-width: 640px) {
  .card { padding: 22px 18px; border-radius: var(--r-md); }
  .card-head { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .thumb { width: 72px; height: 72px; border-radius: 18px; }
  .thumb svg { width: 60px; height: 60px; }
  .cm h3 { font-size: var(--fs-20); }
  .score b { min-width: 54px; height: 54px; border-radius: 18px; font-size: var(--fs-20); line-height: 50px; }
  .score b i { font-size: var(--fs-12); }
  .score small { font-size: var(--fs-12); }
  .pc { grid-template-columns: 1fr; }
  .cfoot { display: grid; gap: 12px; }
  .cfoot .btn { width: 100%; margin-left: 0; }
  .next { padding: 18px; }
  .next .btn { width: 100%; margin-left: 0; }
  .offer { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; }
  .shop { width: 56px; height: 56px; border-radius: 16px; font-size: var(--fs-12); }
  .offer-buy { grid-column: 1 / -1; justify-content: space-between; padding-top: 12px; border-top: 2px dashed var(--line-soft); }
  .search { gap: 8px; }
  .search .field { padding: 0 14px; height: 52px; }
  .search .btn { min-height: 52px; padding: 0 16px; font-size: var(--fs-13); }
  .verdict { padding: 20px 18px; }
  .verdict h2 { flex-wrap: wrap; }
}

/* ---------------- 入口：两条路 ---------------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }

.path {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.path:hover { transform: translate(-2px, -2px); }
.path h3 { margin-top: 4px; font-size: var(--fs-20); font-weight: 800; letter-spacing: -0.01em; }
.path p { margin-top: 4px; font-size: var(--fs-13); line-height: 1.6; color: var(--muted); }
.path .ptag { font-size: var(--fs-12); font-weight: 800; color: var(--muted); }

.pico {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
}
.pico svg { width: 30px; height: 30px; }
.pico--pink { background: var(--pink-soft); color: var(--primary-deep); }
.pico--mint { background: var(--mint-soft); color: var(--ok); }

.parrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--butter);
  display: grid;
  place-items: center;
}

/* 热门品类 */
.hot { margin-top: 44px; }
.hotlist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.hotitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 2px solid var(--line-soft);
  border-radius: 18px;
  transition: border-color 0.15s;
}
.hotitem:hover { border-color: var(--line); }
.hotitem .ht {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-soft);
}
.hotitem .ht svg { width: 36px; height: 36px; }
.hotitem b { display: block; font-size: var(--fs-16); font-weight: 800; }
.hotitem .hmeta { font-size: var(--fs-12); color: var(--muted); }
.hotitem .go { margin-left: auto; color: var(--muted); }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 2px dashed var(--line-soft);
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--ink-2);
}

/* ---------------- 表单 ---------------- */
.form {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.form h2 { font-size: var(--fs-20); font-weight: 800; letter-spacing: -0.01em; }
.form .sub { margin-top: 6px; font-size: var(--fs-13); color: var(--muted); line-height: 1.6; }

.fblock { margin-top: 20px; }
.flabel { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--fs-13); font-weight: 800; }
.flabel .opt { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }

.input {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--surface-2);
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--ink);
}
.input::placeholder { color: var(--muted); font-weight: 500; }
.input:focus { outline: 0; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--pink-soft); }
.input--err { border-color: var(--warn); background: var(--warn-soft); }
.input--err:focus { border-color: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.help--err { color: var(--warn); font-weight: 700; }
textarea.input { height: auto; min-height: 104px; padding: 12px 16px; line-height: 1.6; font-weight: 500; resize: vertical; }

.help { display: flex; gap: 6px; margin-top: 8px; font-size: var(--fs-12); line-height: 1.6; color: var(--muted); }
.help svg { margin-top: 2px; }

.form .btn { margin-top: 22px; }

/* ---------------- 加载中 ---------------- */
.loadcard {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.loadcard .art { width: 180px; height: auto; margin: 0 auto; }
.loadcard h2 { margin-top: 12px; font-size: var(--fs-28); font-weight: 800; letter-spacing: -0.02em; }
.loadcard .sub { margin-top: 6px; font-size: var(--fs-13); color: var(--muted); }

.progress {
  height: 16px;
  margin-top: 22px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 2px solid var(--line);
  overflow: hidden;
}
.progress i { display: block; height: 100%; width: 62%; background: var(--butter); border-right: 2px solid var(--line); }
.progress-label { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-12); font-weight: 700; color: var(--muted); }

.todo { display: grid; gap: 12px; margin-top: 22px; text-align: left; }
.todo li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
.todo li b { font-weight: 800; color: var(--ink-2); }
.todo .dot {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--line-soft);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.todo li.done { color: var(--ink-2); }
.todo li.done .dot { background: var(--mint-soft); border-color: #b6ead9; color: var(--ok); }
.todo li.now .dot { background: var(--butter); border-color: var(--line); }
.spin {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid var(--butter);
  border-top-color: var(--ink);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeletons { display: grid; gap: 16px; }
.skel {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 2px dashed var(--line-soft);
  border-radius: var(--r-lg);
}
.skel .sq { width: 72px; height: 72px; border-radius: 18px; background: #f8eadb; }
.skel .lines { display: grid; gap: 10px; }
.sk { height: 12px; border-radius: var(--r-pill); background: #f8eadb; }
.sk.w80 { width: 80%; }
.sk.w60 { width: 60%; }
.sk.w40 { width: 40%; }

/* ---------------- 状态 ---------------- */
.states { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.state {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.state h2 { font-size: var(--fs-28); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.state p { max-width: 28em; font-size: var(--fs-16); line-height: 1.65; color: var(--muted); }
.state .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.state--wide { grid-column: 1 / -1; }
.ico-big {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
}
.ico-big svg { width: 32px; height: 32px; }
.ico-big--taro { background: var(--taro-soft); color: #5a4696; }
.ico-big--warn { background: var(--warn-soft); color: var(--warn); }

/* ---------------- 比价明细 / 记录 ---------------- */
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 20px;
  font-size: var(--fs-13);
  font-weight: 700;
  color: var(--muted);
}
.crumb:hover { color: var(--ink); }

.page-head { padding: 12px 0 8px; }
.ptitle {
  margin-top: 14px;
  font-size: var(--fs-40);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.psub { max-width: 34em; margin-top: 10px; font-size: var(--fs-16); color: var(--muted); }

.break {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1.5px dashed var(--line-soft);
  background: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-12);
  color: var(--ink-2);
}
.break div { display: flex; justify-content: space-between; gap: 12px; }
.break .sum { padding-top: 6px; border-top: 1.5px dashed var(--line-soft); font-weight: 800; color: var(--ink); }

.recs { display: grid; margin-top: 6px; }
.rec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1.5px dashed var(--line-soft);
  font-size: var(--fs-13);
  color: var(--ink-2);
}
.rec:last-child { border-bottom: 0; }
.rec .rprice { margin-left: auto; flex: 0 0 auto; text-align: right; font-weight: 800; color: var(--ink); }
.rec .rprice i { margin-left: 6px; white-space: nowrap; }
.rec > span:first-child { min-width: 0; }

@media (min-width: 1025px) {
  .layout--flip { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .states { grid-template-columns: 1fr; }
  .hotlist { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .path { grid-template-columns: 56px minmax(0, 1fr); padding: 18px; }
  .pico { width: 56px; height: 56px; border-radius: 18px; }
  .pico svg { width: 26px; height: 26px; }
  .parrow { display: none; }
  .form { padding: 20px 18px; }
  .state { padding: 22px 18px; }
  .state h2 { font-size: var(--fs-20); }
  .loadcard { padding: 22px 18px; }
  .loadcard .art { width: 140px; }
  .skel { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; }
  .skel .sq { width: 56px; height: 56px; border-radius: 16px; }
  .verdict { grid-template-columns: 1fr; padding: 20px; }
  .verdict .art { display: none; }
  .card-head { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .thumb { width: 72px; height: 72px; border-radius: 18px; }
  .thumb svg { width: 60px; height: 60px; }
  .cm h3 { font-size: var(--fs-16); gap: 6px; }
  .rhead { flex-direction: column; align-items: flex-start; gap: 6px; }
  .offer { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .offer .shop { width: auto; height: 40px; padding: 0 14px; border-radius: 12px; justify-self: start; }
  .offer-buy { justify-content: space-between; }
  .offer-buy .btn { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   迁移新增：数据驱动结果页用到的零件（只追加，不改上面原有规则）
   ========================================================================== */

/* hidden 属性优先于任何 display 布局 */
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 可靠度标签：与 .tag 同尺寸，靠颜色区分 */
.tag--ok { background: var(--mint-soft); border-color: #b6ead9; color: var(--ok); }
.tag--mid { background: var(--butter-soft); border-color: #f6dc9a; color: #7a4b06; }
.tag--low { background: var(--warn-soft); border-color: #ffd0c2; color: var(--warn); }

/* 结论条里的产品图 */
.vpic {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: var(--r-md);
  border: 2px solid var(--line);
  background: var(--butter-soft);
  box-shadow: var(--shadow-card-soft);
}

/* 口碑卡缩略图：真实商品图盖在插画上，加载失败就露出插画 */
.thumb { position: relative; overflow: hidden; }
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
}

/* 报价卡里的补充说明 */
.offer-note { margin-top: 6px; font-size: var(--fs-12); line-height: 1.6; color: var(--muted); }

/* 来源小链接 */
.src .srclabel { flex: 0 0 auto; }
.src .srcs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.src .sep { color: var(--muted); opacity: .55; }
.src .srclink {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 三维评分条 */
.scores { display: grid; gap: 12px; margin-top: 4px; }
.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 12px;
}
.score-row b { font-size: var(--fs-13); font-weight: 800; }
.sbar {
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.sbar i {
  display: block;
  height: 100%;
  background: var(--mint);
  border-right: 2px solid var(--line);
}
.sval { font-size: var(--fs-12); font-weight: 800; color: var(--muted); white-space: nowrap; }

/* Top5 / 版本配置 / 原文链接：两种排法 */
.rec--stack { align-items: start; }
.rec--stack > span:first-child { display: grid; gap: 4px; min-width: 0; }
.rec--stack .rprice { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.rec--stack b { color: var(--primary); }
.rec--plain { cursor: default; }
.rnote { display: block; font-size: var(--fs-12); line-height: 1.55; color: var(--muted); }

/* 置灰的平台勾选（只有拼多多接了真实接口） */
.plat--off { cursor: not-allowed; }
.plat--off .opt { font-size: var(--fs-12); font-weight: 700; color: var(--muted); }

@media (max-width: 640px) {
  .vpic { width: 100%; height: 160px; }
  .score-row { grid-template-columns: minmax(0, 1fr) auto; }
  .score-row .sbar { grid-column: 1 / -1; grid-row: 2; }
}

/* 无 JS 兜底提示 */
.noscript { margin: 0 0 16px; padding: 10px 14px; border: 2px dashed var(--line); border-radius: var(--r-sm); background: var(--butter-soft); font-size: var(--fs-13); font-weight: 800; line-height: 1.5; color: var(--ink); }
