:root {
  --bg: #0a0e15;
  --surface: #10151f;
  --surface-2: #151a26;
  --surface-3: #1a2130;
  --border: rgba(255, 255, 255, 0.065);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #e9ebf0;
  --muted: #848b9c;
  --faint: #5c6474;
  --up: #ff5b5b;        /* 涨：红（中国惯例） */
  --down: #2fd67b;      /* 跌：绿 */
  --accent: #4da3ff;    /* 主蓝：高亮/按钮/下划线 */
  --accent-dim: rgba(77, 163, 255, 0.12);
  --accent-2: #7cc6ff;  /* 官方参考价浅蓝 */
  --gold: #4da3ff;      /* 统一为主蓝（原金色位） */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: -apple-system, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- 动态地球背景 + 暗角 ---- */
#earth-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(10,14,21,.92) 0%,
      rgba(10,14,21,.60) 45%,
      rgba(10,14,21,.16) 64%,
      rgba(10,14,21,.48) 100%),
    radial-gradient(130% 95% at 50% -5%, rgba(10,14,21,0) 0%, rgba(10,14,21,.55) 100%);
}

/* ---- 内容层 ---- */
.app {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ---- 顶栏 ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; justify-content: center; }
.brand-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
  background: linear-gradient(90deg, #185fa5 0%, #4da3ff 28%, #b5e3ff 50%, #4da3ff 72%, #185fa5 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: brandFlow 5.5s ease-in-out infinite;
}
@keyframes brandFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.brand-sub {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted);
}
.submit-chip {
  color: var(--accent);
  border-color: rgba(77, 163, 255, .4);
  background: rgba(77, 163, 255, .1);
  font-weight: 700;
}
.u-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--down);
  box-shadow: 0 0 8px rgba(47,214,123,.7);
}
.points {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ---- 品类 tab（下划线式） ---- */
.tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 16px 2px 0;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 8px 2px 12px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  font-weight: 700;
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---- 市场概览 stats ---- */
.stats {
  display: flex;
  gap: 12px;
  margin: 20px 0 18px;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.stat-label { font-size: 11px; color: var(--faint); letter-spacing: .5px; }
.stat-value {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat.up .stat-value { color: var(--up); }
.stat.down .stat-value { color: var(--down); }

/* ---- 涨跌榜（交易所表格） ---- */
.board-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 4px 2px 14px;
}
.board-header h2 { font-size: 18px; font-weight: 800; }
.board-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.legend { font-size: 12px; color: var(--muted); }
.up-dot { color: var(--up); }
.down-dot { color: var(--down); }

.market {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.market-head,
.item {
  display: grid;
  grid-template-columns: 2.4fr 1.15fr 1.05fr 0.7fr 1.3fr;
  gap: 14px;
  align-items: center;
}
.market-head {
  padding: 12px 18px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.board { list-style: none; }
.item {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s ease;
}
.item:last-child { border-bottom: none; }
.item:hover { background: var(--surface-2); }
.ta-r { text-align: right; }

.cell-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.item-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--surface-3);
  border: 1px solid var(--border);
}
.item-info { min-width: 0; }
.item-name {
  font-size: 14.5px; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.item-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.cell-price {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.cell-muted { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.chg {
  display: inline-block;
  min-width: 66px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.chg.up { color: var(--up); background: rgba(255,91,91,.12); }
.chg.down { color: var(--down); background: rgba(47,214,123,.12); }
.chg.flat { color: var(--muted); background: rgba(132,139,156,.12); }

.empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 14px; }

.foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

.legal-links {
  margin-top: 10px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
.legal-links a:hover { color: var(--accent); }

/* ---- 弹窗 ---- */
.modal {
  position: fixed; inset: 0;
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 50;
}
.modal.hidden { display: none; }
.modal-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
}
.modal-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.modal-head h3 { font-size: 16px; font-weight: 700; }
.close {
  background: none; border: none; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.close:hover { color: var(--text); }
.modal-body { padding: 18px 20px 24px; }

/* 行情概览 */
.quote { margin-bottom: 14px; }
.quote-main {
  display: flex; align-items: baseline; gap: 10px; margin: 6px 0;
}
.quote-price { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.quote-change { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-size: 11px; padding: 3px 9px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--muted);
}
.tag.official { color: var(--accent-2); border-color: rgba(124,198,255,.3); background: rgba(124,198,255,.08); }
.tag.trade { color: var(--gold); border-color: rgba(77,163,255,.3); background: rgba(77,163,255,.08); }

/* ---- 共识质量分层（价格发现机制可视化） ---- */
.conf-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: .3px;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.conf-badge.market { color: var(--accent-2); border-color: rgba(124,198,255,.3); background: rgba(124,198,255,.08); }
.conf-badge.empty { color: var(--faint); border-color: rgba(132,139,156,.3); background: rgba(132,139,156,.08); }
.conf-badge.low { color: #ffb054; border-color: rgba(255,176,84,.3); background: rgba(255,176,84,.08); }
.conf-badge.mid { color: var(--gold); border-color: rgba(77,163,255,.3); background: rgba(77,163,255,.08); }
.conf-badge.high { color: var(--down); border-color: rgba(47,214,123,.3); background: rgba(47,214,123,.08); }

/* 涨跌榜价格区间小字 */
.price-range {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--faint);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}

/* 详情页共识质量卡 */
.consensus-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
}
.consensus-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.consensus-title { font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.conf-bar {
  height: 6px; border-radius: 4px; background: var(--surface-3);
  overflow: hidden;
}
.conf-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }
.conf-fill.low { background: linear-gradient(90deg, #ff8a4c, #ffb054); }
.conf-fill.mid { background: linear-gradient(90deg, #4da3ff, #7cc6ff); }
.conf-fill.high { background: linear-gradient(90deg, #2fd67b, #5fe6a0); }
.consensus-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 8px; font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.consensus-meta .range { color: var(--accent-2); }
.consensus-note { font-size: 12px; color: var(--muted); }
.risk-banner {
  margin-top: 10px; padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 138, 76, .12);
  border: 1px solid rgba(255, 138, 76, .35);
  color: #ffb054; font-size: 12px; line-height: 1.5;
}

/* 官方 vs 成交 对比 */
.ref-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0;
}
.ref-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
}
.ref-card .ref-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ref-card .ref-value { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ref-card .ref-note { font-size: 11px; color: var(--faint); margin-top: 2px; }

/* 积分说明（用户中心） */
.points-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(77, 163, 255, .08);
  border: 1px solid rgba(77, 163, 255, .18);
  margin: 2px 0 4px;
}

/* 历史走势图 */
.chart-wrap { margin: 16px 0 6px; }
.chart-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted); margin-bottom: 8px;
}
.chart-head b { color: var(--text); font-size: 13px; }
canvas#history-chart {
  width: 100%; height: 300px;
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ma-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
}
.ma-legend i { font-style: normal; font-size: 11px; font-weight: 700; }
.ma-legend i.ma5 { color: #4da3ff; }
.ma-legend i.ma10 { color: #85B7EB; }
.ma-legend i.ma20 { color: #4da3ff; }
.ma-legend em { font-style: normal; color: var(--faint); font-size: 11px; margin-left: 4px; }

.section-title {
  font-size: 13px; color: var(--muted); margin: 18px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* 上报表单 */
.field { margin: 12px 0; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 14px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77,163,255,.14);
}

.btn {
  width: 100%; padding: 12px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--accent);
  color: #1a1400; font-size: 15px; font-weight: 800; margin-top: 10px;
  transition: filter .12s ease, transform .08s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.msg { font-size: 13px; margin-top: 10px; }
.msg.ok { color: var(--down); }
.msg.err { color: var(--up); }

/* 最近成交 */
.report-list { margin-top: 4px; }
.report-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 9px 2px; border-bottom: 1px solid var(--border);
}
.report-row:last-child { border-bottom: none; }
.report-row .rp-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.report-row .rp-meta { color: var(--muted); font-size: 11px; }
.rp-badge {
  font-size: 10px; padding: 1px 6px; border-radius: 6px; margin-left: 6px;
}
.rp-badge.official { color: var(--accent-2); border: 1px solid rgba(124,198,255,.3); }
.rp-badge.trade { color: var(--gold); border: 1px solid rgba(77,163,255,.3); }

/* 价格来源（多源对比） */
.src-list { display: flex; flex-direction: column; gap: 8px; }
.src-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}
.src-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.src-name { font-size: 13px; font-weight: 600; }
.src-meta { font-size: 11px; color: var(--muted); }
.src-price {
  font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-2);
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  .market-head, .item { grid-template-columns: 1.7fr 1fr 0.9fr; }
  .market-head span:nth-child(4),
  .market-head span:nth-child(5) { display: none; }
  .item .cell:nth-child(4),
  .item .cell:nth-child(5) { display: none; }
  .chg { min-width: 56px; }
  .brand-title { font-size: 18px; }
  .stats { gap: 8px; }
  .stat { min-width: 84px; padding: 10px 12px; }
}

/* ================= 管理后台 ================= */
.hidden { display: none !important; }
.view { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.btn-mini {
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--muted); font-size: 13px; transition: all .15s ease;
}
.btn-mini:hover { color: var(--text); border-color: var(--border-strong); }

/* 管理口令 */
.auth-box {
  display: flex; align-items: center; gap: 8px;
}
.auth-box #auth-token {
  width: 130px; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 13px;
}
.auth-box #auth-token:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77,163,255,.14);
}
.auth-hint { font-size: 11px; color: var(--faint); white-space: nowrap; }
.auth-hint.ok { color: var(--down); }
.auth-hint.err { color: var(--up); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}

/* 审核工作台 */
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.rv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-head b { font-size: 15px; }
.rv-price { margin-left: auto; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }
.rv-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); margin-top: 8px;
}
.rv-note { color: var(--faint); }
.rp-img { color: var(--accent-2); text-decoration: none; }
.rp-img:hover { text-decoration: underline; }
.rp-noimg { color: var(--up); font-weight: 600; }
.rv-reason { font-size: 12px; color: var(--gold); margin-top: 8px; }
.rv-actions { display: flex; gap: 10px; margin-top: 12px; }
.rv-btn {
  flex: 1; padding: 9px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; transition: filter .12s ease, transform .08s ease;
}
.rv-btn:active { transform: scale(.98); }
.rv-btn.approve { background: var(--down); color: #06281a; }
.rv-btn.reject { background: rgba(255,91,91,.15); color: var(--up); border: 1px solid rgba(255,91,91,.35); }
.rv-btn:hover { filter: brightness(1.08); }

.review-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
}
.review-row.ok { border-left: 3px solid var(--down); }
.review-row.err { border-left: 3px solid var(--up); }
.rv-row-main { display: flex; align-items: center; gap: 12px; }
.rv-row-main b { font-size: 14px; }
.rv-row-main .rv-price { margin-left: auto; }
.rv-st { font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.rv-st.ok { color: var(--down); background: rgba(47,214,123,.12); }
.rv-st.err { color: var(--up); background: rgba(255,91,91,.12); }

/* 价格发现智能体 */
.agent-status-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.agent-result-grid { display: flex; gap: 12px; margin: 8px 0 14px; flex-wrap: wrap; }
.agent-result-grid .stat { max-width: 220px; }
.agent-summary, .agent-reasoning { font-size: 13px; line-height: 1.7; margin-top: 8px; color: var(--text); }
.agent-reasoning { color: var(--muted); }
.agent-flags { font-size: 12px; margin-top: 10px; color: var(--up); }
.agent-flags b { color: var(--up); }
.agent-flags ul { margin: 4px 0 0 18px; padding: 0; }
.agent-flags li { margin: 2px 0; }

/* 用户管理 */
.users-grid { grid-template-columns: 2fr 0.8fr 0.8fr 0.7fr 0.7fr; }

/* 选品管理 */
.asset-list { display: flex; flex-direction: column; gap: 16px; }
.cat-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px;
}
.cat-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.cat-title em { font-style: normal; font-weight: 400; color: var(--faint); font-size: 12px; margin-left: 6px; }
.asset-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px; border-top: 1px solid var(--border);
}
.asset-row:first-of-type { border-top: none; }
.ar-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ar-name b { font-size: 14px; }
.ar-brand { font-size: 12px; color: var(--muted); }
.ar-prices { display: flex; gap: 16px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* 子栏目标签（规格/年份） */
.spec-tag {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  font-size: 11px; color: var(--accent-2);
  background: rgba(124,198,255,.10); border: 1px solid rgba(124,198,255,.25);
  border-radius: 6px; vertical-align: 1px;
}

/* 分类研判卡片（智能体 · 挂在分类开头） */
.category-insight {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(77,163,255,.10), rgba(24,95,165,.06));
  border: 1px solid rgba(77,163,255,.25);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.insight-trend {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 800; white-space: nowrap;
  padding: 5px 10px; border-radius: 8px; flex-shrink: 0;
}
.insight-trend.up { color: var(--up); background: rgba(255,91,91,.10); }
.insight-trend.down { color: var(--down); background: rgba(47,214,123,.10); }
.insight-trend.flat { color: var(--muted); background: rgba(132,139,156,.10); }
.insight-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.insight-summary { font-size: 14px; font-weight: 700; color: var(--text); }
.insight-highlight { font-size: 12px; color: var(--accent-2); }
.insight-meta { font-size: 11px; color: var(--faint); white-space: nowrap; }
@media (max-width: 640px) {
  .category-insight { flex-wrap: wrap; gap: 8px; }
  .insight-meta { width: 100%; }
}

/* 品类价格规律说明（冷启动运营 · 教用户怎么看价格） */
.category-desc {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(132,139,156,.07);
  border: 1px solid rgba(132,139,156,.18);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
}
.desc-tag {
  flex-shrink: 0; font-size: 11px; font-weight: 800; color: var(--accent-2);
  padding: 2px 8px; border-radius: 6px; background: rgba(77,163,255,.14);
  white-space: nowrap; margin-top: 1px;
}
.desc-text { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* 冷启动运营：空状态 CTA + 上报激励 + 首页三步引导 */
.consensus-card.cta-empty { border-color: rgba(77,163,255,.32); }
.btn-cta {
  margin-top: 10px; width: 100%; padding: 10px; border-radius: 8px; border: none; cursor: pointer;
  background: linear-gradient(90deg, #4da3ff, #7cc6ff);
  color: #0a0e15; font-size: 13px; font-weight: 800;
  transition: filter .12s ease, transform .08s ease;
}
.btn-cta:hover { filter: brightness(1.06); }
.btn-cta:active { transform: scale(.99); }

.reward-tag {
  font-size: 11px; color: var(--accent-2);
  background: rgba(77,163,255,.12);
  border: 1px solid rgba(77,163,255,.3);
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}

.howto {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; margin: 12px 0;
}
.howto-head {
  font-size: 12px; color: var(--accent-2); font-weight: 700;
  margin-bottom: 10px; letter-spacing: .3px;
}
.howto-steps { display: flex; gap: 12px; flex-wrap: wrap; }
.howto-step {
  flex: 1; min-width: 160px;
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
}
.howto-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #0a0e15;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-bottom: 4px;
}
.howto-step b { font-size: 13px; color: var(--text); }
.howto-step span:last-child { font-size: 11px; color: var(--muted); }

/* 今日热门（冷启动聚合人气） */
.hot-wrap { margin: 14px 0; }
.hot-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.hot-title { font-size: 15px; font-weight: 800; color: var(--text); }
.hot-sub { font-size: 11px; color: var(--muted); }
.hot-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.hot-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; cursor: pointer;
  transition: border-color .15s ease, transform .08s ease;
}
.hot-card:hover { border-color: rgba(77,163,255,.4); }
.hot-card:active { transform: scale(.98); }
.hot-card-top { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.hot-icon { font-size: 16px; }
.hot-name { font-size: 12px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-spec { font-style: normal; font-size: 10px; color: var(--faint); margin-left: 4px; }
.hot-price { font-size: 18px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hot-chg-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.hot-chg { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hot-chg.up { color: var(--up); }
.hot-chg.down { color: var(--down); }
.hot-chg.flat { color: var(--muted); }
.hot-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; }
.hot-tag.trade { background: rgba(47,214,123,.14); color: var(--down); }
.hot-tag.market { background: rgba(77,163,255,.14); color: var(--accent-2); }
.hot-empty { color: var(--muted); font-size: 12px; padding: 8px 0; }
