/* ============================================================
   🎨 虫群设计系统 v3.1 · huntlow（猎低）AI 比价
   v3 → v3.1 增量（09-25）：品牌 lockup / 低异常价标记 / 类目 chips /
   店铺档案页 / footer 分层。token 不变，只加组件。
   签名：白底金融精致（Stripe 系）+ 深navy标题 + 紫 accent + 等宽数字
   ============================================================ */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;       /* 面板/浅底（冷调呼吸层） */
  --bg-hover: #f3f4f8;
  --line: #e2e8f0;          /* 细分隔线（更浅） */
  --line-strong: #cbd5e1;
  --text: #1f2937;          /* 深灰蓝标题——非纯黑，Linear 质感 */
  --text-dim: #64748d;      /* 次要文字 */
  --text-faint: #94a3b8;
  --accent: #4f46e5;        /* indigo-600：Linear 冷调紫 */
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;   /* indigo 6% 底 */
  --accent-2: #4f46e5;      /* 链接同色系 */
  --success: #10b981;       /* 有货——emerald 高级绿 */
  --success-text: #059669;
  --success-soft: #ecfdf5;
  --warn: #9b6829;
  --danger: #e11d48;        /* rose：缺货/风险 */
  --radius: 10px;           /* 统一圆角，柔和协调 */
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 2px 6px rgba(16,24,40,0.06), 0 12px 28px -6px rgba(16,24,40,0.10);
  --shadow-btn: 0 1px 2px rgba(79,70,229,0.25), 0 4px 12px -2px rgba(79,70,229,0.25);
  --font-num: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--font-num); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.rk { color: var(--text-faint); font-family: var(--font-num); font-size: 13px; width: 34px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand-link { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark { font-weight: 700; font-size: 18px; letter-spacing: -0.4px; color: var(--text); }
.brand-mark .brand-low { color: var(--accent); }
.brand-zh {
  font-size: 11px; font-weight: 600; color: var(--text-dim); letter-spacing: 1px;
  border: 1px solid var(--line-strong); border-radius: 9999px; padding: 1px 8px;
}
.brand-link:hover { text-decoration: none; }
nav a { color: var(--text-dim); text-decoration: none; margin-left: 20px; font-size: 14px; font-weight: 500; transition: color .15s; }
nav a.active { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 28px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; letter-spacing: -0.8px; color: var(--text); }
.hero .sub { color: var(--text-dim); margin-top: 10px; font-size: 15px; }
.hero-cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 24px; flex-wrap: wrap; }
.stat .num { font-family: var(--font-num); font-size: 28px; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; }
.stat .lbl { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.crumb { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }

/* ---------- 面板/表格 ---------- */
.panel {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.panel h2 { font-size: 17px; margin-bottom: 14px; color: var(--text); }
.panel-count { color: var(--text-faint); font-size: 12px; font-weight: 500; margin-left: 10px; font-family: var(--font-num); }

.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th {
  text-align: left; color: var(--text-dim); font-weight: 600; font-size: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line-strong);
  position: sticky; top: 58px; background: var(--bg-soft); z-index: 5;
  white-space: nowrap; letter-spacing: 0.4px;
}
.ptable td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ptable tbody tr { transition: background .12s; }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 6px; animation: pulse-dot 2s infinite; }

/* ---------- 元信息行（照 PriceAI：最近更新 / N 个标准商品 / 口径一句话）---------- */
.meta-line { color: var(--text-dim); font-size: 13px; margin-top: 8px; }
.meta-line strong { color: var(--text); font-family: var(--font-num); }

/* ---------- 平台筛选 tab（照 PriceAI 顶部/底部各一排）---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tab {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text-dim);
  font-size: 13px; font-weight: 500; font-family: var(--font-body);
  padding: 7px 14px; border-radius: 9999px; transition: all .15s;
}
.tab em { font-style: normal; font-family: var(--font-num); font-size: 11px; color: var(--text-faint); }
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.tab.active em { color: var(--accent); }

/* ---------- 标准商品表（列结构对齐 PriceAI /channels）---------- */
.std-table td { vertical-align: middle; }
.std-name strong { font-size: 15px; color: var(--text); }
.std-plat { color: var(--text-dim); font-size: 13px; white-space: nowrap; }
.std-type-cell { color: var(--text-dim); font-size: 13px; white-space: nowrap; }
/* 有货/质保 小标签（照 PriceAI 的次级标记） */
.tag {
  display: inline-block; font-size: 10px; font-weight: 600; color: var(--text-faint);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; margin-left: 5px;
  vertical-align: 2px; letter-spacing: 0; line-height: 15px;
}
.tag.ok { color: var(--success-text); border-color: #a7f3d0; background: var(--success-soft); }
.tag.off { color: var(--text-faint); }
.std-chan { color: var(--text-dim); font-size: 14px; font-weight: 600; }
.std-upd-cell { color: var(--text-dim); font-size: 13px; white-space: nowrap; }
.std-title { display: block; color: var(--text-faint); font-size: 11px; line-height: 1.5; margin-top: 2px; }
.std-type {
  color: var(--accent); font-size: 11px; margin-left: 8px; padding: 2px 10px;
  border-radius: 9999px; background: var(--accent-soft); font-weight: 600;
}
/* 这一格原来是 nowrap：价格 + "有货" + "低异常价" 挤不下时会溢出到"质保最低价"列上。
   改成允许换行（金额本身很短，不会被拆），标签自己 nowrap，装不下就掉到下一行。 */
.std-price { font-size: 21px; font-weight: 700; color: var(--success-text); font-family: var(--font-num); letter-spacing: -0.3px; white-space: normal; }
.std-normal { display: block; font-size: 11px; color: var(--text-dim); font-weight: 500; letter-spacing: 0; }
/* 低异常价标记（规格不同/短周期/资格号，别直接当同档比） */
.suspect {
  font-size: 11px; font-weight: 600; color: var(--warn); background: #fdf6ec;
  border: 1px solid #f0dcc0; border-radius: 9999px; padding: 1px 8px; margin-left: 6px;
  vertical-align: 2px; cursor: help; white-space: nowrap; letter-spacing: 0;
}
.std-warranty { color: var(--text-dim); font-family: var(--font-num); font-size: 14px; font-weight: 600; }
.plat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; flex: none; background: var(--plat); }
/* 平台色只在这里定义一次（--plat），色点圆点和文字图标都从它取色 —— 一处改，处处变 */
.plat-chatgpt { --plat: #10b981; }
.plat-claude { --plat: #a855f7; }
.plat-gemini { --plat: #6366f1; }
.plat-grok { --plat: #f59e0b; }
.plat-codex { --plat: #3b82f6; }
.plat-cursor { --plat: #06b6d4; }
.plat-social { --plat: #ec4899; }
.plat-other { --plat: #94a3b8; }
/* 邮箱 / 接码：照 PriceAI 单列成一级类别。色值取自同一套色板（teal / slate），不新造色相 */
.plat-email { --plat: #14b8a6; }
.plat-sms { --plat: #475569; }

/* ---------- 图标 ----------
   出处 lucide（ISC），由 _extract_icons.js 内联进页面，所以是零外链、可用 currentColor 上色。
   图标语义按"你买到的是什么"（分类的 type）取，不按品牌 —— 我们没有也不需要品牌 logo。 */
.ico { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
.tab-mark { color: var(--plat); display: inline-flex; align-items: center; margin-right: 7px; }
.tab-mark .ico { width: 15px; height: 15px; }
.std-name { display: flex; align-items: flex-start; gap: 9px; }
.std-name strong { flex: 1 1 auto; min-width: 0; }
.row-ico { color: var(--plat); display: inline-flex; margin-top: 2px; }
.row-ico .ico { width: 17px; height: 17px; }

/* 三态："待核验"= 有在售记录但最近没核验成功（既不是缺货，也不能当可买价）。
   照 PriceAI 的 data-policy：过期报价不进外层最低价，但保留在明细里。 */
.tag.warn { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.expired-low { font-size: 13px; font-weight: 600; color: var(--text-dim); margin-right: 6px; }
.stale-note { display: block; color: var(--text-faint); font-size: 11px; margin-top: 2px; }
/* 交付方式：合并商品之后，这条信息不能丢 —— 挂在类型下面，说明这一族里有哪几种交付形态 */
.sub-tag { display: block; color: var(--text-faint); font-size: 11px; margin-top: 2px; }
.psub { color: var(--text-dim); font-size: 12px; white-space: nowrap; }

/* 比价表上方的筛选条（搜索 + 类型 + 渠道数 + 排序）——观感与 search.html 的 .controls 一致 */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.filters input[type="search"] { flex: 1; min-width: 200px; }
.filters input, .filters select {
  font: inherit; font-size: 13px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }

/* 桌面端列宽：这几个短列曾被挤到把字拆开 ——"有货"折成"有/货"、"查看 →"竖排成"查/看/→"。
   短列一律不许折行，宽度由内容自己撑开（长文本列本来就允许换行）。 */
.ptable th { white-space: nowrap; }
.std-chan, .std-upd-cell, .std-link { white-space: nowrap; }
.std-link .btn { white-space: nowrap; }
/* 库存格："有货 326 缺货 180" 整格 nowrap 会溢出压到"渠道"列；
   改成两半各自不折行、但允许上下堆 —— 既不被拆成"有/货"，也不会越界。 */
.std-stock .in, .std-stock .out { white-space: nowrap; }

/* 10 列挤在 1440 里，浏览器按内容分配时会把"最低渠道"（最长的那列）压到极窄 → 行高失控。
   列宽写死成百分比，每列都可预期；≤720px 表格变卡片，不受这条影响。 */
@media (min-width: 721px) {
  .std-table { table-layout: fixed; }
  .std-table th:nth-child(1) { width: 15.5%; }  /* 标准商品（要放下图标 + 名字） */
  .std-table th:nth-child(2) { width: 7.5%; }   /* 平台 */
  .std-table th:nth-child(3) { width: 6.5%; }   /* 类型 */
  .std-table th:nth-child(4) { width: 12.5%; }  /* 最低价 —— 要让"¥0.30 有货"待在同一行 */
  .std-table th:nth-child(5) { width: 8%; }     /* 质保最低价 */
  .std-table th:nth-child(6) { width: 12.5%; }  /* 库存 —— 要装下"有货 326 缺货 180"，窄了会压到下一列 */
  .std-table th:nth-child(7) { width: 5%; }     /* 渠道 */
  .std-table th:nth-child(8) { width: 14.5%; }  /* 最低渠道 */
  .std-table th:nth-child(9) { width: 9%; }     /* 最近更新 */
  .std-table th:nth-child(10) { width: 8%; }    /* 操作 */
  .std-table .std-name, .std-table .std-lowest { overflow-wrap: anywhere; }
}

.std-lowest { font-size: 12px; color: var(--text-dim); max-width: 240px; }
.std-upd { display: block; color: var(--text-faint); font-size: 11px; }
.std-stock .in { color: var(--success-text); font-family: var(--font-num); font-weight: 600; }
.std-stock .out { color: var(--text-dim); margin-left: 8px; font-family: var(--font-num); }
.std-detail { display: none; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); scroll-margin-top: 70px; }
.std-detail h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.std-detail h3 span { color: var(--accent); font-family: var(--font-num); }
.pname { max-width: 480px; }
.pprice { font-weight: 700; color: var(--success-text); }
.pstock.in { color: var(--success-text); font-family: var(--font-num); }
.pstock.out { color: var(--text-faint); font-family: var(--font-num); font-size: 12px; }

/* ---------- 购买路径卡 + 核验边界 + FAQ（照 PriceAI 首页的三块信任内容）---------- */
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.path-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.path-tag {
  align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 9999px; padding: 2px 10px;
}
.path-card h3 { font-size: 15px; color: var(--text); }
.path-card p { color: var(--text-dim); font-size: 13px; }
.path-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 22px; }
.qa-grid h3 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.qa-grid p { color: var(--text-dim); font-size: 13px; }
ul.faq li { margin: 12px 0; }
ul.faq strong { color: var(--text); }

/* ---------- 类目 chips（about 页） ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 9999px; padding: 4px 12px;
}
.chip em { font-style: normal; color: var(--accent); font-family: var(--font-num); font-weight: 600; font-size: 11px; }

/* ---------- 店铺卡片 ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; padding-bottom: 40px; }
.shop-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.shop-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.shop-name { font-weight: 600; font-size: 15px; color: var(--text); }
.shop-score { color: var(--accent); font-size: 13px; font-family: var(--font-num); font-weight: 600; white-space: nowrap; }
.shop-domain { color: var(--text-dim); font-size: 12px; word-break: break-all; font-family: var(--font-num); }
.shop-meta { color: var(--text-dim); font-size: 12px; line-height: 1.7; }
.shop-meta .in { color: var(--success-text); font-family: var(--font-num); }
.shop-actions { display: flex; gap: 8px; margin-top: 4px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: 11px 20px; border-radius: var(--radius-sm); text-decoration: none; font-size: 14px;
  text-align: center; box-shadow: var(--shadow-btn); border: 1px solid transparent;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; box-shadow: 0 2px 4px rgba(79,70,229,0.4), 0 8px 20px -2px rgba(79,70,229,0.4); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.ghost { background: var(--bg); border: 1px solid var(--line-strong); color: var(--text-dim); font-weight: 500; box-shadow: none; }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.btn.tiny {
  background: rgba(99,102,241,0.08); color: var(--accent); font-weight: 500;
  padding: 5px 12px; font-size: 12px; border: 1px solid #a5b4fc;
  box-shadow: none; border-radius: 10px; transition: background .15s, color .15s, border-color .15s;
}
.btn.tiny:hover { background: #6366f1; color: #fff; border-color: #6366f1; }

/* ---------- 搜索控件 ---------- */
.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.controls input[type="search"] { flex: 1; min-width: 220px; }
.controls select { min-width: 120px; }
.controls input, .controls select {
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-body);
}
.controls input:focus, .controls select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
.result-count { align-self: center; color: var(--text-dim); font-size: 13px; margin-left: auto; font-family: var(--font-num); }

/* ---------- 商品卡片（搜索） ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding-bottom: 40px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.card-top { display: flex; justify-content: space-between; align-items: center; }
.cat { background: var(--accent-soft); color: var(--accent); font-size: 12px; padding: 2px 10px; border-radius: 9999px; font-weight: 600; }
.stock { font-size: 12px; font-family: var(--font-num); font-weight: 600; }
.stock.in { color: var(--success-text); }
.stock.out { color: var(--danger); }
.card h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 22px; font-weight: 700; color: var(--success-text); font-family: var(--font-num); }
.orig { color: var(--text-faint); text-decoration: line-through; font-size: 13px; font-family: var(--font-num); }
.score { margin-left: auto; color: var(--accent); font-size: 13px; font-family: var(--font-num); font-weight: 600; }
.buy { display: inline-block; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(99,102,241,0.25); text-align: center; padding: 8px 0; border-radius: var(--radius-sm); text-decoration: none; font-size: 14px; font-weight: 600; transition: background .15s; }
.meta { color: var(--text-dim); font-size: 12px; font-family: var(--font-num); }
.empty { color: var(--text-dim); text-align: center; padding: 60px 0; }

/* ---------- 档位价卡片 ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.tier-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); transition: border-color .15s; }
.tier-name { color: var(--text-dim); font-size: 14px; }
.tier-price { font-size: 28px; font-weight: 700; color: var(--accent); margin: 6px 0; font-family: var(--font-num); letter-spacing: -0.5px; }
.tier-sub { color: var(--text-dim); font-size: 12px; }

.kv-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-row:last-child { border-bottom: none; }
.kv-row span:first-child { color: var(--text-dim); }
ul.plain, ol.plain { padding-left: 20px; color: var(--text-dim); }
ul.plain li, ol.plain li { margin: 8px 0; }
ul.plain strong, ol.plain strong { color: var(--text); }
.muted { color: var(--text-dim); font-size: 13px; }
blockquote { border-left: 3px solid var(--accent); padding: 8px 14px; background: var(--bg); border-radius: 0 8px 8px 0; color: var(--text-dim); margin: 10px 0; }

/* ---------- Footer ---------- */
footer { color: var(--text-dim); font-size: 12px; padding: 24px 0 40px; border-top: 1px solid var(--line); margin-top: 20px; }
.foot-brand { font-size: 13px; color: var(--text); margin-bottom: 8px; }
.foot-brand strong { letter-spacing: -0.2px; }
.foot-note { color: var(--text-dim); margin-top: 4px; line-height: 1.7; }
.foot-note strong { color: var(--text); }

/* ---------- Hover 动效（仅精确指针，防触摸粘滞） ---------- */
@media (hover: hover) and (pointer: fine) {
  nav a:hover { color: var(--accent); text-decoration: none; }
  .ptable tbody tr:hover { background: var(--bg-hover); }
  .shop-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
  .btn:hover { background: var(--accent-hover); }
  .btn.ghost:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
  .card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
  .buy:hover { background: rgba(79,70,229,0.16); }
  .tier-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding: 10px 20px; gap: 6px; }
  nav { display: flex; flex-wrap: wrap; }
  nav a { margin-left: 0; margin-right: 14px; font-size: 13px; }
  .hero { padding: 30px 0 18px; }
  .hero-stats { gap: 20px 26px; }
  .stat .num { font-size: 23px; }
  .panel { padding: 16px; }
  /* 其它页面的表格：保持横向滚动当兜底（不隐藏任何列） */
  .panel { overflow-x: auto; }
  .ptable th { position: static; }
  .std-lowest, .pname { max-width: 200px; white-space: normal; }

  /* 首页标准品表：10 列横滚是手机上最差的读法 → 摊成卡片。
     每个字段靠 td 上的 data-th 自己报出名字（data-th 由 build_std.js 写入）。 */
  .std-table, .std-table tbody, .std-table tr, .std-table td { display: block; width: auto; }
  .std-table thead { display: none; }
  .std-table tbody tr { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--bg); }
  .std-table tbody td { border: none; padding: 3px 0; }
  .std-table tbody td[data-th]::before { content: attr(data-th) " · "; color: var(--text-faint); font-size: 12px; }
  .std-table .std-name { font-size: 15px; padding-bottom: 6px; }
  .std-table .std-name::before { display: none; }
  .std-table .std-link { padding-top: 8px; }
  /* 详情抽屉的表格不在 .panel 里，单独兜一层滚动，否则窄屏撑破整页 */
  .std-detail { padding: 16px; overflow-x: auto; }
  .hero-cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 价格走势（lowest.html 的"走势"列，数据来自 history.json）---------- */
.spark-cell { white-space: nowrap; }
.spark { vertical-align: middle; }
.spark-pct { font-size: 11px; font-family: var(--font-num); margin-left: 5px; vertical-align: middle; }

/* ---------- 多源交叉核验（lowest.html 的第三方对照格）---------- */
.xcell { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.xcell + .xcell { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.xcell .std-chan { color: var(--text); }
.xcell .suspect { margin-left: 6px; }

/* ---------- relay.html 中转站表（09-16 新增模块）----------
   桌面：9 列挤在 1014px 里，自动布局会把"来源"撑到 487px、把"模型覆盖"压成 4 行
        → 写死百分比列宽（同首页 .std-table 的做法），整表正好铺满、不出横向滚动条。
   手机：横滚 9 列是最差的读法 → 摊成卡片，每个字段靠 td 的 data-th 自报名字。 */
@media (min-width: 721px) {
  .relay-table { table-layout: fixed; }
  .relay-table th:nth-child(1) { width: 21%; }  /* 站点（名字 + 域名 + 多源标记） */
  .relay-table th:nth-child(2) { width: 10%; }  /* 类型 */
  .relay-table th:nth-child(3) { width: 15%; }  /* 模型覆盖 */
  .relay-table th:nth-child(4) { width: 8%; }   /* 在线率（含"最低 xx%"小字） */
  .relay-table th:nth-child(5) { width: 7%; }   /* 延迟 */
  .relay-table th:nth-child(6) { width: 11%; }  /* 倍率 */
  .relay-table th:nth-child(7) { width: 9%; }   /* 最低充值 */
  .relay-table th:nth-child(8) { width: 6%; }   /* 评分 */
  .relay-table th:nth-child(9) { width: 13%; }  /* 来源（chips 最多 3 个 + "+N"） */
  .relay-table .std-name, .relay-table .std-lowest { overflow-wrap: anywhere; }
  /* 来源列的 chips 不能被全局 .std-upd-cell{nowrap} 撑破列宽 —— 允许折行 */
  .relay-table .std-upd-cell { white-space: normal; }
}
@media (max-width: 720px) {
  /* 导航从 6 项变 7 项后，手机上一行放不下 → 让 nav 占满整行、自己折行 */
  .site-header nav { flex: 1 1 100%; }
  .relay-table, .relay-table tbody, .relay-table tr, .relay-table td { display: block; width: auto; }
  .relay-table thead { display: none; }
  .relay-table tbody tr { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--bg); }
  .relay-table tbody td { border: none; padding: 3px 0; }
  .relay-table tbody td[data-th]::before { content: attr(data-th) " · "; color: var(--text-faint); font-size: 12px; }
  .relay-table .std-name { font-size: 15px; padding-bottom: 6px; }
  .relay-table .std-name::before { display: none; }
  .relay-table .std-upd-cell { white-space: normal; }
}
