/* 卡券货源导航 · 设计系统
   变量驱动，深/浅色双主题。类名语义化，模板只依赖这里定义的类。 */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;
  --bg-hover: #f1f5f9;
  --header-bg: rgba(255, 255, 255, 0.88);

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;

  --border: #e5eaf1;
  --border-strong: #cfd8e5;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-text: #1d4ed8;

  --success: #059669;
  --success-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --violet: #7c3aed;
  --violet-soft: #f5f3ff;

  --header-h: 64px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.07);
  --max: 1200px;
}

html.dark {
  --bg: #0a1220;
  --bg-soft: #0e1729;
  --bg-card: #101c31;
  --bg-elev: #142339;
  --bg-hover: #17273e;
  --header-bg: rgba(10, 18, 32, 0.86);

  --text: #e9eff9;
  --text-2: #a3b3cb;
  --text-3: #6b7f9e;

  --border: #1c2b43;
  --border-strong: #2a3d59;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-soft: #12233f;
  --primary-text: #93c5fd;

  --success: #34d399;
  --success-soft: #0c2a22;
  --warn: #fbbf24;
  --warn-soft: #2b2110;
  --danger: #f87171;
  --danger-soft: #2c1517;
  --violet: #a78bfa;
  --violet-soft: #1e1a38;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.5px;
}
.brand-logo.brand-logo-img {
  background: transparent;
  overflow: hidden;
}
.brand-logo.brand-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 600; font-size: 15px; }
.brand-sub { font-size: 11px; color: var(--text-3); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;          /* 固定高度，底边才能在 64 高的头里算准 */
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--primary-text); background: var(--bg-hover); }
.nav a.active { color: var(--primary-text); font-weight: 600; }
/* 当前页指示条：紧贴头部下边框，别飘到边框外面 */
.nav a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  bottom: calc((var(--header-h) - 34px) / -2 - 1px);
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}
.nav-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  color: #fff;
  background: var(--primary);
  line-height: 1.5;
}
.nav-badge.hot { background: #e11d48; }
.nav-badge.core { background: #f59e0b; }
.nav-badge.new { background: #10b981; }

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  width: 260px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  transition: border-color .15s, box-shadow .15s;
}
.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.header-search input {
  border: 0; outline: 0; background: transparent;
  color: var(--text); width: 100%; font-size: 13px;
}
.header-search input::placeholder { color: var(--text-3); }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-2);
  transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--primary-text); border-color: var(--border-strong); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: scale(.985); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 54px 0 34px;
  background:
    radial-gradient(680px 340px at 10% -12%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 68%),
    radial-gradient(560px 320px at 94% 4%, color-mix(in srgb, var(--violet) 9%, transparent), transparent 72%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 52px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.hero-badge:hover { border-color: var(--primary); color: var(--primary-text); }

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
  flex: none;
}

.hero-badge svg { color: var(--text-3); }

.hero h1 {
  margin: 20px 0 0;
  font-size: 42px;
  line-height: 1.26;
  letter-spacing: -1.6px;
  font-weight: 700;
  color: var(--text);
}

.hero h1 em {
  display: inline-block;
  font-style: normal;
  background: linear-gradient(98deg, #2563eb 4%, #4f46e5 52%, #7c3aed 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.dark .hero h1 em {
  background: linear-gradient(98deg, #60a5fa 4%, #818cf8 52%, #a78bfa 96%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  margin: 18px 0 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.hero-desc {
  margin: 10px 0 0;
  max-width: 552px;
  font-size: 13px;
  line-height: 1.88;
  color: var(--text-2);
}

.hero-search {
  display: flex;
  flex-wrap: nowrap; /* 搜索框与「查价」按钮始终同一行，窄屏也不折行 */
  gap: 10px;
  max-width: 552px;
  margin: 26px 0 12px;
}

.hero-search .field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .5);
  transition: border-color .15s, box-shadow .15s;
}

.hero-search .field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.hero-search .field svg { color: var(--text-3); flex: none; }
.hero-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 14px;
}
.hero-search input::placeholder { color: var(--text-3); }
.hero-search .btn { height: 50px; border-radius: 13px; padding: 0 22px; flex: none; }
.hero-search .btn-primary {
  background: linear-gradient(96deg, #2f6bff, #5b45ff);
  border-color: transparent;
  box-shadow: 0 8px 18px -8px rgba(59, 91, 255, .55);
}
.hero-search .btn-primary:hover {
  background: linear-gradient(96deg, #2457e6, #4a34e6);
  border-color: transparent;
}

/* ---------- 查价进度条：搜索框正下方，条纹滚动表示进行中 ---------- */
.qprog {
  max-width: 560px;
  margin: 2px 0 16px;
  transition: opacity .4s;
}
.qprog[hidden] { display: none; }
.qprog.is-fade { opacity: 0; }
.qprog-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.qprog-fill {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: 999px;
  background-image: repeating-linear-gradient(45deg,
    #2f6bff 0 7px, #6d97ff 7px 14px);
  background-size: 19.8px 19.8px; /* 45° 条纹水平周期 = 14 / sin45° */
  animation: kq-prog .8s linear infinite;
}
.qprog-text {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.qprog-text b { color: var(--text); font-weight: 600; }
@keyframes kq-prog {
  from { background-position: 0 0; }
  to { background-position: 19.8px 0; }
}
/* 查询完成：满格 + 绿色，停止条纹动画 */
.qprog.is-done .qprog-fill {
  width: 100%;
  background-image: linear-gradient(90deg, #12b76a, #3ddc97);
  animation: none;
  transition: width .35s ease;
}
.qprog.is-done .qprog-text { color: var(--text-2); }
/* 查询失败：橙色满格 */
.qprog.is-fail .qprog-fill {
  width: 100%;
  background-image: linear-gradient(90deg, #f79009, #fdb022);
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .qprog-fill { animation: none; }
  /* 系统要求减少动效时 JS 不会启动小鱼，这里把空容器一起收掉 */
  .footer-fish { display: none; }
}

.hot-words {
  display: flex; flex-wrap: wrap; gap: 7px;
  align-items: center;
  font-size: 12px; color: var(--text-3);
}
.hot-words a {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .15s;
}
.hot-words a:hover { color: var(--primary-text); border-color: var(--primary); }

.hero-actions { display: flex; gap: 12px; margin-top: 26px; }
.hero-actions .btn { height: 44px; padding: 0 22px; font-size: 14px; border-radius: 11px; }
.hero-actions .btn-primary {
  background: linear-gradient(96deg, #2f6bff, #5b45ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(59, 91, 255, .6);
}
.hero-actions .btn-primary:hover {
  background: linear-gradient(96deg, #2457e6, #4a34e6);
  border-color: transparent;
  color: #fff;
}
.hero-actions .btn-ghost { background: var(--bg-card); border-color: var(--border); }

/* 右侧倾斜卡片 */
.hero-visual { display: flex; justify-content: center; }

.hero-card {
  width: 100%;
  max-width: 516px;
  padding: 18px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow:
    0 30px 64px -26px rgba(30, 64, 175, .34),
    0 10px 26px -18px rgba(15, 23, 42, .22);
  transform: rotate(3.2deg);
  transition: transform .35s ease;
}

.hero-card:hover { transform: rotate(1.4deg) translateY(-3px); }

.hc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 14px;
}

.hc-logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, #3b82f6, #6d4aff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.hc-name { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.hc-name small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: .01em;
}

.hc-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10.5px;
  font-weight: 600;
  flex: none;
}

.hc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hc-item {
  padding: 14px 13px 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg-soft) 70%, var(--bg-card));
}

.hc-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  margin-bottom: 10px;
}

.hc-ico.i-blue { background: #e8f0ff; color: #2563eb; }
.hc-ico.i-violet { background: #efe9ff; color: #7c3aed; }
.hc-ico.i-green { background: #e5f8ef; color: #059669; }
.hc-ico.i-orange { background: #fff0e2; color: #d97706; }

html.dark .hc-ico.i-blue { background: #13264a; color: #93c5fd; }
html.dark .hc-ico.i-violet { background: #241d3f; color: #c4b5fd; }
html.dark .hc-ico.i-green { background: #0d2a22; color: #6ee7b7; }
html.dark .hc-ico.i-orange { background: #33210f; color: #fbbf24; }

.hc-item b { display: block; font-size: 13px; font-weight: 650; color: var(--text); }
.hc-item span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.55; color: var(--text-3); }
.hc-item em {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}
.hc-item em.ok { color: var(--success); }
.hc-item em::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* 数据条 */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 38px;
  padding: 22px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 40px -30px rgba(15, 23, 42, .5);
}

.metric { position: relative; text-align: center; padding: 0 8px; }

.metric + .metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}

.metric strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

html.dark .metric strong { color: #93c5fd; }
.metric strong i { font-style: normal; font-size: 17px; letter-spacing: 0; }
.metric span { display: block; margin-top: 7px; font-size: 12px; color: var(--text-3); }

/* ---------- 通用区块 ---------- */
.section { padding: 40px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.section-head .sub { margin: 4px 0 0; color: var(--text-3); font-size: 13px; }
.more-link { color: var(--primary-text); font-weight: 500; font-size: 13px; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 0 0 8px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  font-size: 13px;
  color: var(--text-2);
}
.notice-bar strong { color: var(--text); font-weight: 600; }
.notice-bar .tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--warn);
}

/* ---------- 分类条 ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.cat-tab:hover { border-color: var(--border-strong); color: var(--text); }
.cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.cat-tab .count { font-size: 11px; opacity: .75; }

/* ---------- 货源卡片 ---------- */
.grid-sites {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* ---------- 首页分类分区 ---------- */
.cat-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 22px;
}
.cat-jump-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  transition: color .15s, border-color .15s, background .15s;
}
.cat-jump-item:hover {
  color: var(--primary-text);
  border-color: var(--border-strong);
  background: var(--primary-soft);
}
.cat-jump-item img { width: 15px; height: 15px; object-fit: contain; }
.cat-jump-item i {
  font-style: normal;
  font-size: 11px;
  padding: 0 5px;
  line-height: 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-3);
}
.cat-jump-item:hover i { background: var(--bg-card); color: var(--primary-text); }

.cat-block { margin-bottom: 34px; scroll-margin-top: 84px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-block-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
}
.cat-block-hd h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16.5px;
  font-weight: 620;
  letter-spacing: -.2px;
}
.cat-count {
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-text);
}
.cat-block-hd p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-3); }
.site-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.site-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.site-card-top { display: flex; gap: 12px; align-items: flex-start; }
.site-logo {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: contain;
  padding: 4px;
}
/* hidden 属性是 UA 样式，会被上面的 display:grid 覆盖，这里显式兜住 */
.site-logo-fallback[hidden] { display: none; }
.site-logo-fallback {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-weight: 600;
  font-size: 18px;
}
.site-meta { min-width: 0; flex: 1; }
.site-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}
.site-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-domain {
  font-size: 12px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-desc {
  margin: 0;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.site-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--text-3);
}
.site-go { color: var(--primary-text); font-weight: 500; }

/* ---------- 标签 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}
.badge-sponsor { background: #fef3c7; color: #92400e; }
.badge-audit { background: var(--success-soft); color: var(--success); }
.badge-quote { background: var(--primary-soft); color: var(--primary-text); }
.badge-rec { background: var(--violet-soft); color: var(--violet); }
.badge-plain { background: var(--bg-hover); color: var(--text-2); }
html.dark .badge-sponsor { background: #3a2a0a; color: #fbbf24; }

/* ---------- 广告位 ---------- */
.ad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.ad-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color .15s, background .15s;
}
.ad-slot:hover { border-color: var(--primary); background: var(--bg-hover); }
.ad-slot.filled {
  border-style: solid;
  border-color: var(--border);
  background: linear-gradient(160deg, var(--primary-soft), var(--bg-card) 62%);
}
.ad-slot .ad-img {
  width: 100%;
  height: 46px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  margin-bottom: 2px;
  background: var(--bg-hover);
}
.ad-slot .ad-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text-3);
  text-transform: uppercase;
}
.ad-slot .ad-title { font-weight: 600; font-size: 14px; }
.ad-slot .ad-desc {
  font-size: 12px;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-slot .plus {
  font-size: 20px;
  color: var(--text-3);
  line-height: 1;
}

/* 合作位：有投放才渲染，页脚上方一行 72px，不再占据版心首屏 */
.ad-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* 首页中部合作位：热门比价与货源分区之间 */
.ad-row-mid { margin-top: 16px; }
.ad-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 72px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color .15s;
}
.ad-bar:hover { border-color: var(--primary); }
.ad-bar .ad-kicker { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--text-3); }
.ad-bar-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-bar-desc {
  font-size: 12px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-left: auto;
}

/* 今日热门比价条：Hero 之后把核心能力前置 */
.hps-card {
  border: 1px solid #dbe6ff;
  background: linear-gradient(160deg, var(--primary-soft), var(--bg-card) 70%);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.hps-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.hps-head b { font-size: 15px; }
.hps-head span { font-size: 12.5px; color: var(--text-3); }
.hps-head .more-link { margin-left: auto; }
.hps-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hps-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: border-color .15s;
}
.hps-item:hover { border-color: var(--primary); }
.hps-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hps-go { flex: none; font-size: 12px; color: var(--primary-text); }

/* 分类块不足一行时的引导卡 */
.site-card-more {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  border-style: dashed;
  background: var(--bg-soft);
}
.site-card-more .scm-title { font-weight: 600; font-size: 14px; color: var(--text-2); }
.site-card-more .scm-go { font-size: 12.5px; color: var(--primary-text); }

/* 首页资讯三列卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.news-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color .15s, box-shadow .15s;
}
.news-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.news-card .nc-title {
  margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .nc-excerpt {
  margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .nc-meta {
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-soft, var(--border));
  display: flex; gap: 10px; font-size: 12px; color: var(--text-3);
}
.news-card .nc-cat { color: var(--primary-text); }

/* ---------- 文章 ---------- */
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.post-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.post-main { flex: 1; min-width: 0; }
.post-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.post-excerpt {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-3);
}
.post-cover {
  width: 132px; height: 84px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-2);
  word-break: break-word;
}
.article-body p { margin: 0 0 16px; }
.article-body p:last-child { margin-bottom: 0; }
.article-empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- 列表页布局 ---------- */
.page-head {
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.crumb { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.crumb a:hover { color: var(--primary-text); }
.page-head h1 { margin: 0 0 6px; font-size: 27px; font-weight: 600; letter-spacing: -.5px; }
.page-head p { margin: 0; color: var(--text-2); font-size: 13px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 18px;
}
/* 货源目录搜索条：图标 + 输入 + 内嵌按钮，按钮留 6px 内边距不贴边 */
.search-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  max-width: 460px;
  min-width: 260px;
  height: 44px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: 0 6px 18px -16px rgba(15, 23, 42, .5);
  transition: border-color .15s, box-shadow .15s;
}
.search-inline:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.search-inline > svg { flex: none; color: var(--text-3); }
.search-inline input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  height: 100%;
}
.search-inline input::placeholder { color: var(--text-3); }
.search-inline input::-webkit-search-cancel-button { cursor: pointer; }
.search-inline .btn {
  flex: none;
  height: 32px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
}
/* 「只看支持 API」开关：高价值筛选，与搜索框同行 */
.api-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.api-toggle input { accent-color: var(--primary); cursor: pointer; }
.api-toggle:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-text);
  font-weight: 600;
}
.result-count { font-size: 12.5px; color: var(--text-3); }
.result-count b { color: var(--text); font-weight: 600; }

/* ---------- 详情页 ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding: 28px 0 48px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card + .card { margin-top: 14px; }
.card h2 { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.card h3 { margin: 22px 0 8px; font-size: 14px; font-weight: 600; }

.detail-hero { display: flex; gap: 18px; align-items: flex-start; }
.detail-hero .site-logo, .detail-hero .site-logo-fallback { width: 64px; height: 64px; border-radius: 14px; font-size: 24px; }
.detail-title { margin: 0 0 6px; font-size: 23px; font-weight: 600; letter-spacing: -.4px; }
.detail-desc { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }

.fact-list { display: grid; gap: 0; margin: 0; }
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { color: var(--text-3); margin: 0; }
.fact-row dd { margin: 0; font-weight: 500; text-align: right; }
.dot-ok { color: var(--success); }
.dot-bad { color: var(--danger); }

.side-sticky { position: sticky; top: 84px; }
.visit-box { text-align: center; }
.visit-box .domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 12px;
  word-break: break-all;
}

.faq-item { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { display: flex; gap: 8px; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.faq-q .mark { color: var(--primary); flex-shrink: 0; }
.faq-a { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13px; }

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 32px 0 8px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 13px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary-text); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; gap: 18px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 13px; font-weight: 500; }
.field-group label .req { color: var(--danger); }
.field-group .hint { font-size: 11.5px; color: var(--text-3); }
.input, .textarea, .select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 1px solid var(--border);
}
.alert-ok { background: var(--success-soft); color: var(--success); border-color: transparent; }
.alert-err { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
/* 中性说明：灰蓝底，不占用黄色（黄=需要用户注意的异常） */
.alert-info { background: var(--bg-soft); color: var(--text-2); border-color: var(--border); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.step { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-soft); }
.step .n {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-text);
  font-size: 11px; font-weight: 700; margin-bottom: 8px;
}
.step strong { display: block; font-size: 13px; margin-bottom: 3px; }
.step span { font-size: 12px; color: var(--text-3); }

/* 平台服务与免责：一行四段，竖线分隔 */
.svc-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2px;
}
.svc-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 0 18px;
  border-left: 1px solid var(--border);
}
.svc-item:first-child { padding-left: 0; border-left: 0; }
.svc-item:last-child { padding-right: 0; }
.svc-n {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 11px;
  font-weight: 700;
}
.svc-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.svc-txt strong { font-size: 13px; line-height: 1.35; color: var(--text); }
.svc-txt span { font-size: 12px; line-height: 1.6; color: var(--text-3); }

/* ---------- 中转页 ---------- */
.go-wrap { max-width: 560px; margin: 48px auto; }
.go-card { text-align: center; padding: 34px 30px 20px; }
.go-badge {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary-text);
}
.go-title { font-size: 20px; margin: 0 0 6px; }
.go-sub { color: var(--text-2); font-size: 13px; margin: 0; line-height: 1.6; }
.go-target {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  word-break: break-all;
  margin: 14px 0 20px;
}

/* 倒计时：圆环进度 + 秒数 */
.go-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 9px 14px;
  border-radius: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  transition: background .2s ease, color .2s ease;
}
.go-count.is-stopped { color: var(--text-3); }
.go-ring {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.go-ring svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.go-ring circle { fill: none; stroke-width: 3; }
.go-ring-bg { stroke: var(--border); }
.go-ring-fg {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: 97.4; /* 2πr，r = 15.5 */
  stroke-dashoffset: 0;
  animation: go-ring var(--go-dur, 3s) linear forwards;
}
@keyframes go-ring { to { stroke-dashoffset: 97.4; } }
.go-count.is-stopped .go-ring-fg { animation-play-state: paused; opacity: .45; }
.go-count b {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}
.go-count.is-stopped b { color: var(--text-3); }

/* 出站核对备忘：四条提示改成 2×2 图标卡，扫读不易跳过 */
.go-card .risk-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}
.go-card .risk-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.go-card .risk-list .ico {
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 11px;
  font-weight: 700;
}

.go-now { margin-top: 2px; }
.go-cancel {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 0;
  background: none;
  border: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-3);
  cursor: pointer;
}
.go-cancel:hover { color: var(--text-2); }
.go-cancel[hidden] { display: none; }
.go-back {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-3);
}
.go-back:hover { color: var(--primary-text); }

.risk-list { text-align: left; margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.risk-list li { display: flex; gap: 9px; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.risk-list .ico {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent);
  color: var(--warn);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .go-wrap { margin: 22px auto 32px; }
  .go-card { padding: 26px 18px 16px; }
  .go-card .risk-list { grid-template-columns: 1fr; }
}

/* ---------- 页脚 ---------- */
/* 页脚上方的小鱼跃水条：水面与页脚同色（--bg-soft），视觉上连成一片。
   页面底色比页脚浅，白水面单独看不出来，用 drop-shadow 沿线描一道细边（原来是 footer 的上边框）。
   容器本身不画任何背景，上半部是页面底色，鱼跃出水面时露在这片空白里。 */
.footer-fish {
  position: relative;
  height: 110px;
  margin-top: 8px;
  margin-bottom: -1px;   /* 防止和 footer 之间露出一条细缝 */
  overflow: hidden;
}
.footer-fish canvas { display: block; filter: drop-shadow(0 -1px 0 var(--border)); }

.site-footer {
  padding: 40px 0 24px;
  background: var(--bg-soft);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-about { margin-top: 12px; }
.footer-about p { margin: 0 0 8px; color: var(--text-3); font-size: 12.5px; line-height: 1.7; }
.footer-about p:last-child { margin-bottom: 0; }
.footer-col h4 { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.footer-col a, .footer-col p { display: block; color: var(--text-2); font-size: 12.5px; margin: 0 0 9px; }
.footer-col a:hover { color: var(--primary-text); }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 12px;
}
.contact-qr { width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--border); object-fit: contain; background: #fff; }

/* ---------- 移动端 ---------- */
.mobile-tab { display: none; }
.mobile-menu-btn { display: none; }

@media (max-width: 1024px) {
  .hero-wrap { gap: 34px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.3px; }
  .hero-card { max-width: 440px; }

  .nav { display: none; }
  .header-search { width: 200px; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ad-grid { grid-template-columns: repeat(2, 1fr); }
  /* 首页新增块在窄屏降为单列 / 两列 */
  .hps-list { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .ad-row { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .svc-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .svc-item:nth-child(even) { padding-right: 0; }
}

@media (max-width: 768px) {
  body { padding-bottom: 58px; }
  .header-search { display: none; }
  /* 搜索框在窄屏隐藏，「立即查价」也一并收起（抽屉里有搜索入口） */
  .header-quote-btn { display: none; }
  .mobile-menu-btn { display: grid; margin-left: auto; }
  .header-inner { gap: 10px; }
  .hero { padding: 34px 0 26px; }
  .hero-wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 30px; letter-spacing: -1px; }
  .hero-lead { font-size: 15px; }
  .hero-desc { font-size: 13px; line-height: 1.8; }
  /* 搜索框与「查价」按钮保持一行：按钮收到 76px，输入框吃掉剩余宽度 */
  .hero-search { flex-direction: row; margin: 20px 0 10px; gap: 8px; }
  .hero-search .field { height: 48px; padding: 0 12px; gap: 8px; }
  .hero-search input { font-size: 13px; }
  .hero-search .btn { height: 48px; padding: 0 16px; font-size: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .btn { flex: 1; }
  .hero-card { transform: none; max-width: 100%; }
  .hero-card:hover { transform: none; }
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 14px 0;
    margin-top: 24px;
    padding: 18px 6px;
    border-radius: 14px;
  }
  .metric:nth-child(3)::before { display: none; }
  .metric + .metric::before { top: -7px; bottom: -7px; }
  .metric strong { font-size: 22px; }
  .metric strong i { font-size: 13px; }
  .metric span { font-size: 11px; }
  .grid-sites { grid-template-columns: 1fr; }
  .ad-grid { grid-template-columns: 1fr; }
  .post-cover { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; row-gap: 14px; }
  .svc-item,
  .svc-item:nth-child(odd),
  .svc-item:nth-child(even) { padding: 0; border-left: 0; }
  .page-head h1 { font-size: 22px; }
  .detail-hero { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  /* 小鱼条在窄屏收矮，水面（50%）仍然留出足够的游动空间 */
  .footer-fish { height: 84px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-inline { min-width: 0; }

  .mobile-tab {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .mobile-tab a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-3);
  }
  .mobile-tab a.active { color: var(--primary-text); font-weight: 600; }
  .mobile-tab svg { width: 20px; height: 20px; }
}

/* 抽屉菜单 */
.drawer-mask {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(15, 23, 42, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: 280px; max-width: 82vw;
  padding: 18px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .24s cubic-bezier(.3, .8, .3, 1);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 500;
}
.drawer-link.active { color: var(--primary-text); }

/* 主题图标显隐 */
.icon-sun { display: none; }
html.dark .icon-moon { display: none; }
html.dark .icon-sun { display: block; }

/* ---------- 实时查价 ---------- */
/* 状态行与进度条已移除（正常结果用指标卡与表格表达）；
   quote-err 仅在限流 / 超时 / 未接入时由 JS 显示 */
/* 表格在卡片内滚动，表头吸顶：报价几十上百条时不用把整页拉成长龙 */
.quote-scroll {
  max-height: min(70vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: inherit;
}
.quote-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.quote-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.quote-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: content-box; }

.quote-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.quote-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 11px 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-3);
  background: var(--bg-soft);
  box-shadow: inset 0 -1px 0 var(--border);
  white-space: nowrap;
}
.quote-table td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.quote-table tbody tr:last-child td { border-bottom: 0; }
.quote-table tbody tr { transition: background .15s ease; }
.quote-table tbody tr:hover { background: var(--bg-soft); }
.quote-table .num { width: 130px; text-align: right; white-space: nowrap; }
.quote-table .col-site { width: 172px; }
.quote-table .act { width: 118px; text-align: right; }

.q-name { color: var(--text); line-height: 1.55; }

.q-price {
  font-variant-numeric: tabular-nums;
  color: #e0342f;
  font-weight: 700;
}
.q-price .q-cur { font-size: 11.5px; margin-right: 1px; opacity: .8; }
.q-price .q-amt { font-size: 16px; letter-spacing: -.01em; }

/* 站点名做成「小圆点 + 名称」，比纯链接更像来源标识 */
.q-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--text-2);
  font-size: 12.5px;
}
.q-site::before {
  content: "";
  width: 5px; height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  opacity: .5;
  transition: opacity .15s ease;
}
.q-site:hover { color: var(--primary-text); }
.q-site:hover::before { opacity: 1; }

.q-go {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 3px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.q-go::after { content: "›"; font-size: 14px; margin-top: -1px; opacity: .7; }
.q-go:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-text);
}
.quote-empty {
  padding: 34px 16px !important;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
html.dark .q-price { color: #ff7b72; }

@media (max-width: 768px) {
  .quote-scroll { max-height: none; overflow: visible; }
  .quote-table thead { display: none; }

  /* 报价行卡片化：不再是五列摊平（值失去标签），
     而是「左信息 / 右价格 + 按钮」两栏——
     左上商品名，右上价格；左下供货方式，底部商城名 + 去拿货按钮 */
  .quote-table, .quote-table tbody, .quote-table tr, .quote-table td { display: block; width: 100%; }
  .quote-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 4px 12px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
  }
  .quote-table tbody tr:hover { background: var(--bg-card); }
  .quote-table tbody tr:last-child { margin-bottom: 0; }
  .quote-table td { border: 0; padding: 0; }
  .quote-table tbody tr td.quote-empty { grid-column: 1 / -1; }

  .quote-table td.p-name {
    grid-column: 1; grid-row: 1;
    text-align: left;
    font-weight: 600;
    line-height: 1.5;
  }
  .quote-table td.num {
    grid-column: 2; grid-row: 1 / span 2;
    text-align: right;
    align-self: start;
  }
  .quote-table td.p-supply-col {
    grid-column: 1; grid-row: 2;
    text-align: left;
    font-size: 12px;
    color: var(--text-3);
  }
  .quote-table td.col-site {
    grid-column: 1; grid-row: 3;
    text-align: left;
    font-size: 12.5px;
    color: var(--text-2);
    align-self: end;
  }
  .quote-table td.act {
    grid-column: 2; grid-row: 3;
    text-align: right;
    align-self: end;
  }

  /* 卡片化后不需要「最低」小标的等宽占位 */
  .price-table tbody td,
  .price-table tbody td.num,
  .price-table tbody td.act,
  .price-table tbody td.col-site,
  .price-table tbody td.p-supply-col,
  .price-table tbody td.p-name { text-align: left; }
  .price-table .p-price-num { font-size: 17px; }
  .price-table .p-price-num.has-low { padding-left: 0; }
  .quote-table .p-price { width: auto; }
  .quote-table .p-supply-col { width: auto; }
  .quote-table .act { width: auto; }
  .q-price .q-amt { font-size: 15px; }
}

/* 提交收录：表单分组与 sticky 提交条 */
.fs-group {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.fs-group legend {
  padding: 0;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
/* 「自动填充」降级为输入框标签右侧的小字链接，不再抢主流程视觉 */
.auto-fill-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--primary-text);
  cursor: pointer;
}
.auto-fill-link:hover { text-decoration: underline; }
.submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 4px -22px -22px;
  padding: 12px 22px;
  background: linear-gradient(180deg, transparent, var(--bg-card) 38%);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- 自动识别站点信息 ---------- */
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row label { margin: 0; }
.btn-xs {
  height: 26px;
  padding: 0 9px;
  gap: 5px;
  font-size: 12px;
  border-radius: 7px;
  font-weight: 500;
}
.btn-xs svg { flex-shrink: 0; }
.btn.is-loading { cursor: progress; opacity: .75; }
.spin {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  border-right-color: transparent;
  animation: kq-spin .7s linear infinite;
}
@keyframes kq-spin { to { transform: rotate(360deg); } }

.auto-note[hidden] { display: none; }
.auto-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.auto-note img {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 3px;
  object-fit: contain;
}
.auto-note span { min-width: 0; }
.auto-note i { display: block; font-style: normal; color: var(--text-3); font-size: 11.5px; }
.auto-note.ok { background: var(--success-soft); border-color: transparent; color: var(--success); }
.auto-note.ok i { color: color-mix(in srgb, var(--success) 70%, var(--text-3)); }
.auto-note.err { background: var(--danger-soft); border-color: transparent; color: var(--danger); }

/* 站点图标：小尺寸 favicon 放大后别糊成一团，留白 + 平滑缩放 */
.site-logo { image-rendering: -webkit-optimize-contrast; }

/* ---------- 实时查价：规模统计条 + 说明文案 ---------- */
.quote-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
/* display:grid 会盖掉 UA 的 [hidden]，指标卡在无结果时必须真的隐藏 */
.quote-stats[hidden] { display: none; }

.qs-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
}

.qs-item b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.qs-item span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-3);
}

.quote-seo {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.quote-seo h2 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--text);
}

.quote-seo h3 {
  margin: 20px 0 8px;
  font-size: 14px;
  color: var(--text);
}

.quote-seo p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-2);
}

.quote-seo a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .quote-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qs-item b { font-size: 18px; }
}

/* ---------- 商品比价页 /price/{slug} ---------- */
.price-section {
  margin-top: 26px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.price-section h2 { margin: 0 0 10px; font-size: 16px; }
.price-section p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-2);
}
.price-section p:last-child { margin-bottom: 0; }
.price-disclaim {
  background: transparent;
  border-style: dashed;
}
.price-disclaim p { font-size: 12.5px; color: var(--text-3); }

.badge-low {
  margin-left: 6px;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-weight: 600;
}
.badge-ok-text { background: var(--success-soft); color: var(--success); }
.p-site-link { font-weight: 600; }
.quote-table .p-price { white-space: nowrap; }

/* 暗色主题下的比价页配色跟随全局变量，无需单独覆盖 */

/* ===== 比价表格 v1.10：筛选 / 最低价高亮 / 去拿货 / 小贴士卡片 ===== */

/* 表格卡头部：标题 + 筛选 + 刷新 */
.table-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.table-bar-title { font-size: 14px; }
.table-bar-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 供货方式筛选 chips */
.supply-filter { display: flex; gap: 6px; }
.supply-filter .chip {
  height: 28px;
  padding: 0 12px;
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.supply-filter .chip:hover { border-color: var(--primary); color: var(--primary-text); }
.supply-filter .chip.is-on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-text);
  font-weight: 600;
}

/* 最低价行：只保留「最低」小标（左侧红条与红色底纹均按用户要求去掉） */

/* 比价表格对齐（/price 与 /compare 结果表共用 .price-table）：
   表头全居中；商品名称左对齐；价格 / 供货方式 / 权益商城 / 操作居中。
   选择器要压过 .quote-table .num / .act 的 text-align:right（同权重靠后者胜，故显式列出组合）。 */
.price-table thead th,
.price-table thead th.num,
.price-table thead th.act,
.price-table thead th.col-site,
.price-table thead th.p-supply-col { text-align: center; }
.price-table tbody td,
.price-table tbody td.num,
.price-table tbody td.act,
.price-table tbody td.col-site,
.price-table tbody td.p-supply-col { text-align: center; }
.price-table tbody td.p-name { text-align: left; }

/* 价格单元格：主价格 + 「最低」右上角小标（流内对齐，不用负 top，避免被粘性表头压住） */
.p-price-num {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
/* 有「最低」小标时左侧补等宽空白，让价格数字在列里视觉居中 */
.p-price-num.has-low { padding-left: 34px; }
.p-price-num .badge-low {
  width: 30px;
  margin: 0;
  padding: 1px 0;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  transform: translateY(-4px);
}
/* 供货方式独立成列 */
.quote-table .p-supply-col {
  width: 112px;
  color: var(--text-2);
  white-space: nowrap;
}
.quote-table .p-price { width: 150px; }

/* 站点详情右栏操作卡：状态行 / 风险提示 */
.visit-box .vb-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.visit-box .vb-risk {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--warn);
}

/* 操作列：去拿货（安全跳转到货源站） */
.btn-go {
  display: inline-block;
  height: 30px;
  line-height: 28px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(96deg, #2f6bff, #5b45ff);
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity .15s;
}
.btn-go:hover { opacity: .88; }

/* 拿货小贴士：精简卡片 */
.tip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.tip-card {
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.tip-card p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--text-2);
}
.tip-card::before {
  content: "";
  display: block;
  width: 18px;
  height: 3px;
  margin-bottom: 8px;
  border-radius: 2px;
  background: var(--primary);
  opacity: .75;
}
