:root {
  --bg: #0b0a08;
  --bg-soft: #100e0b;
  --card: #17130e;
  --card-2: #1c1711;
  --border: #2a2318;
  --border-soft: #221c14;
  --gold: #d9b979;
  --gold-bright: #f0d49a;
  --gold-dim: #9b855c;
  --text: #f3ecdc;
  --muted: #a99d85;
  --muted-2: #7b7160;
  --up: #ff6259;
  --down: #2fd08c;
  --soft: #e2b95f;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1100px 500px at 12% -8%, rgba(217, 185, 121, 0.10), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(255, 98, 89, 0.05), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

.app {
  max-width: 1260px;
  margin: 0 auto;
  padding: 22px 22px 60px;
}

/* ---------- 顶栏 ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 260px; }

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid rgba(217, 185, 121, 0.55);
  background: radial-gradient(120% 120% at 25% 15%, rgba(217, 185, 121, 0.28), rgba(217, 185, 121, 0.04) 70%);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-bright);
  box-shadow: inset 0 0 22px rgba(217, 185, 121, 0.12);
}

.brand h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.tagline {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.3px;
}

.badges { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(23, 19, 14, 0.7);
  white-space: nowrap;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.status-pill.live { color: var(--gold-bright); border-color: rgba(217, 185, 121, 0.5); background: rgba(217, 185, 121, 0.08); }
.status-pill.live i { background: var(--up); box-shadow: 0 0 0 3px rgba(255, 98, 89, 0.18); animation: pulse 1.8s infinite; }
.status-pill.soft { color: var(--soft); border-color: rgba(226, 185, 95, 0.32); }
.status-pill.soft i { background: var(--soft); }
.status-pill.off { opacity: 0.72; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.top-right { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.clock {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.8px;
}

.top-actions { display: flex; gap: 8px; }

.btn {
  appearance: none;
  border: 1px solid rgba(217, 185, 121, 0.4);
  background: rgba(217, 185, 121, 0.1);
  color: var(--gold-bright);
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover { background: rgba(217, 185, 121, 0.2); }
.btn:active { transform: scale(0.97); }
.btn.ghost { border-color: var(--border); color: var(--muted); background: transparent; }
.btn.ghost.active { border-color: rgba(217, 185, 121, 0.55); color: var(--gold-bright); background: rgba(217, 185, 121, 0.08); }

/* ---------- Hero ---------- */

.hero {
  margin-top: 20px;
  border-radius: 20px;
  border: 1px solid rgba(217, 185, 121, 0.28);
  background:
    radial-gradient(120% 160% at 8% 0%, rgba(217, 185, 121, 0.13), transparent 55%),
    linear-gradient(160deg, #1a1610, #12100c 65%);
  padding: 22px 24px 18px;
  box-shadow: var(--shadow);
}

.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.focus-chip {
  font-size: 12px;
  color: var(--gold-bright);
  border: 1px solid rgba(217, 185, 121, 0.5);
  background: rgba(217, 185, 121, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.hero-time { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.hero-headline {
  margin: 14px 0 6px;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.hero-subline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 980px;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(217, 185, 121, 0.18);
  flex-wrap: wrap;
}

.countdown { font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }
.hero-hint { font-size: 12px; color: var(--muted-2); }

/* ---------- Hero 趣味区：市场温度计 + 今日一句 ---------- */

.hero-main {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 12px;
}

.hero-copy { flex: 1 1 auto; min-width: 0; }

.hero-fun {
  flex: 0 0 268px;
  border: 1px solid rgba(217, 185, 121, 0.22);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(217, 185, 121, 0.1), rgba(23, 19, 14, 0.62));
  padding: 12px 14px;
}

.mood-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }

.mood-emoji { font-size: 18px; line-height: 1; animation: moodFloat 3.2s ease-in-out infinite; }
.mood-label { letter-spacing: 0.4px; }
.mood-score { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--gold-bright); font-size: 18px; }
.mood-score::after { content: '°'; font-size: 11px; margin-left: 1px; color: var(--muted-2); font-weight: 400; }

.mood-dial {
  position: relative;
  width: 150px;
  height: 78px;
  margin: 10px auto 2px;
  overflow: hidden;
}

.mood-dial::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 150px;
  height: 150px;
  margin-left: -75px;
  border-radius: 50%;
  background: conic-gradient(from 270deg at 50% 50%, #2e9e6b 0deg, #b6a34d 70deg, #d15252 140deg, #8a2f2f 180deg);
  opacity: 0.25;
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 50px, #000 51px, #000 72px, transparent 73px);
  mask: radial-gradient(circle at 50% 100%, transparent 50px, #000 51px, #000 72px, transparent 73px);
}

.mood-dial::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-bottom: -1px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(232, 201, 138, 0.7);
}

.mood-needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 62px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f4e3bb, #c9a45f);
  transform-origin: 50% 100%;
  transform: rotate(-90deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 10px rgba(232, 201, 138, 0.35);
}

.mood-comment { margin: 8px 0 0; font-size: 12px; line-height: 1.65; color: var(--muted); }

.daily-quote {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(217, 185, 121, 0.18);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-2);
}

.daily-quote b { color: var(--gold); font-weight: 500; }

.hero-fun[data-tone='bull'] .mood-score { color: #ff8f7a; }
.hero-fun[data-tone='bear'] .mood-score { color: #6fd3a2; }
.hero-fun[data-tone='bull'] .mood-emoji { animation-duration: 1.4s; }

@keyframes moodFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

.ui-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(10px);
  max-width: min(90vw, 560px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(217, 185, 121, 0.45);
  background: rgba(20, 17, 12, 0.95);
  color: var(--gold-bright);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  word-break: break-all;
  text-align: center;
}

.ui-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 导航 ---------- */

.jump {
  display: flex;
  gap: 10px;
  margin: 18px 0 4px;
  flex-wrap: wrap;
}

.jump a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(23, 19, 14, 0.5);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.jump a:hover { color: var(--gold-bright); border-color: rgba(217, 185, 121, 0.4); }

/* ---------- 区块 ---------- */

.section { margin-top: 26px; scroll-margin-top: 18px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 1px;
  color: var(--gold-bright);
}

.section-head .hint { font-size: 12px; color: var(--muted-2); }

/* ---------- 指数卡片 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--card-2), var(--card) 70%);
  padding: 15px 15px 12px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover { border-color: rgba(217, 185, 121, 0.35); transform: translateY(-1px); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.card-name { font-size: 14px; font-weight: 600; letter-spacing: 0.3px; }

.group-tag {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--gold-dim);
  border: 1px solid rgba(217, 185, 121, 0.28);
  background: rgba(217, 185, 121, 0.06);
  white-space: nowrap;
}

.card-price {
  margin-top: 10px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
}

.card-chg {
  margin-top: 2px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.card-chg .pct { font-weight: 650; }
.card-chg .abs { color: var(--muted-2); font-size: 12px; }

.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }

.spark { margin: 8px 0 4px; height: 46px; }
.spark-svg { width: 100%; height: 100%; display: block; }
.spark-base { stroke: rgba(169, 157, 133, 0.28); stroke-width: 1; stroke-dasharray: 3 4; }
.spark-empty { height: 46px; display: grid; place-items: center; color: var(--muted-2); font-size: 12px; }

.card-note {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-2);
  border-top: 1px dashed var(--border-soft);
  padding-top: 8px;
  margin-top: 2px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- 复盘 ---------- */

.digest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 920px) {
  .digest-grid { grid-template-columns: 1fr; }
}

.digest {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(170deg, var(--card-2), var(--card) 75%);
  padding: 16px 17px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.digest.focus {
  border-color: rgba(217, 185, 121, 0.5);
  box-shadow: 0 0 0 1px rgba(217, 185, 121, 0.12), 0 14px 34px rgba(0, 0, 0, 0.35);
}

.digest-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.digest-title { font-size: 15px; font-weight: 650; }
.digest-badge {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(217, 185, 121, 0.35);
  color: var(--gold);
  background: rgba(217, 185, 121, 0.07);
}
.digest-coverage { margin-left: auto; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.digest-summary {
  margin: 11px 0 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #ded5c2;
}

.digest-points { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--border-soft); }

.digest-points li { padding: 9px 0 8px; border-bottom: 1px dashed var(--border-soft); }
.digest-points li:last-child { border-bottom: 0; padding-bottom: 2px; }

.point-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted-2); margin-bottom: 3px; }

.src-chip {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.src-chip.bbg { color: var(--gold); border-color: rgba(217, 185, 121, 0.3); }

.point-text { font-size: 12.8px; line-height: 1.6; color: #cfc6b6; }
.point-text a { color: inherit; text-decoration: none; }
.point-text a:hover { color: var(--gold-bright); }

/* ---------- 消息台 ---------- */

.news-panel {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(170deg, var(--card-2), var(--card) 75%);
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.15);
}

.tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--gold-bright);
  border-color: rgba(217, 185, 121, 0.5);
  background: rgba(217, 185, 121, 0.1);
}

.tab .count { font-size: 10.5px; color: var(--gold-dim); font-variant-numeric: tabular-nums; }

.news-lists { max-height: 430px; overflow-y: auto; }
.news-lists::-webkit-scrollbar { width: 8px; }
.news-lists::-webkit-scrollbar-thumb { background: #2c251a; border-radius: 4px; }
.news-lists::-webkit-scrollbar-track { background: transparent; }

.news-list { display: none; }
.news-list.active { display: block; }

.news-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42, 35, 24, 0.55);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.news-item:hover { background: rgba(217, 185, 121, 0.045); }
.news-item:last-child { border-bottom: 0; }

.ni-top { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted-2); margin-bottom: 4px; }
.ni-time { font-variant-numeric: tabular-nums; }
.ni-title { font-size: 13.2px; line-height: 1.55; color: #e7dfcf; font-weight: 550; }
.news-item:hover .ni-title { color: var(--gold-bright); }
.ni-en { margin-top: 2px; font-size: 11px; line-height: 1.5; color: var(--muted-3, #7d7463); font-style: italic; }
.ni-zh-tag { font-size: 10px; line-height: 1; padding: 2px 6px; border-radius: 999px; color: #1a1509; background: linear-gradient(180deg, #e8c887, #c9a15c); font-weight: 700; letter-spacing: 0.5px; }
.ni-desc { margin-top: 3px; font-size: 12px; line-height: 1.6; color: var(--muted-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni-text { font-size: 13px; line-height: 1.65; color: #ded6c6; }
.ni-arrow { margin-left: auto; color: var(--gold-dim); font-size: 11px; }

.news-empty { padding: 34px 16px; text-align: center; color: var(--muted-2); font-size: 12.5px; }

/* ---------- AI 板块 ---------- */

.ai-summary {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(217, 185, 121, 0.32);
  background: linear-gradient(120deg, rgba(217, 185, 121, 0.10), rgba(217, 185, 121, 0.025));
  font-size: 13px;
  line-height: 1.7;
  color: #e9ddc5;
}

.ai-grid { display: grid; grid-template-columns: 1.05fr 1fr 1.25fr; gap: 12px; }

@media (max-width: 1100px) {
  .ai-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid > .panel:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-grid > .panel:last-child { grid-column: auto; }
}

.panel {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(170deg, var(--card-2), var(--card) 75%);
  padding: 14px 15px 12px;
  overflow: hidden;
}

.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.panel-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: 0.3px; }
.panel-meta { margin-left: auto; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.ai-sub { font-size: 11.5px; color: var(--muted-2); margin-bottom: 8px; line-height: 1.6; }
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-col-title { font-size: 11px; color: var(--muted-2); padding-bottom: 5px; border-bottom: 1px dashed var(--border-soft); margin-bottom: 3px; }

.ai-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(42, 35, 24, 0.55);
  font-size: 12.3px;
}
.ai-row:last-child { border-bottom: 0; }
.ai-rank { width: 15px; color: var(--gold-dim); font-size: 11px; text-align: center; }
.ai-rank.dim { color: var(--muted-2); }
.ai-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e7ddc9; }
.ai-name.dim { color: var(--muted); }
.ai-row .pct { font-variant-numeric: tabular-nums; font-weight: 600; }

.ai-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dashed rgba(42, 35, 24, 0.55);
  font-size: 12.5px;
}
.ai-stock:last-child { border-bottom: 0; }
.ai-stock:hover .ai-stock-name { color: var(--gold-bright); }
.ai-stock-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; }
.ai-stock-name em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }
.ai-stock-price { font-variant-numeric: tabular-nums; color: #ded5c2; }
.ai-stock .pct { width: 62px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.ai-news { display: block; padding: 8px 0; text-decoration: none; color: inherit; border-bottom: 1px dashed rgba(42, 35, 24, 0.55); }
.ai-news:last-child { border-bottom: 0; }
.ai-news:hover .ai-news-title { color: var(--gold-bright); }
.ai-news-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.ai-news-title { font-size: 12.5px; line-height: 1.55; color: #e3d9c5; }
.ai-news-en { margin-top: 2px; font-size: 10.5px; line-height: 1.45; color: var(--muted-2); font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-news-desc { margin-top: 2px; font-size: 11.5px; line-height: 1.5; color: var(--muted-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 页脚 / 离线条 ---------- */

.footer {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted-2);
}

.foot-meta { line-height: 1.8; }
.foot-meta a { color: var(--gold); text-decoration: none; border-bottom: 1px dotted rgba(217, 185, 121, 0.45); }
.foot-meta a:hover { color: var(--gold-bright); }
.foot-right { text-align: right; line-height: 1.8; }
.foot-source { display: block; }

.offline-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #2a1d16;
  border: 1px solid rgba(255, 98, 89, 0.4);
  color: #ffb4ae;
  font-size: 12.5px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 10;
}

.hidden { display: none !important; }

@media (max-width: 640px) {
  .app { padding: 16px 14px 50px; }
  .topbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .brand { min-width: 0; }
  .badges { flex: none; }
  .status-pill { font-size: 12px; padding: 5px 10px; }
  .top-right { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; margin-left: 0; flex-wrap: wrap; gap: 8px; }
  .hero-top { flex-wrap: wrap; }
  .hero-headline { font-size: 21px; }
  .card-price { font-size: 24px; }
  .hero { padding: 18px; }
}

/* ---------- 金价 · 油价 · 贵金属 ---------- */

.commodity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.cmd-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(165deg, var(--card-2), var(--card) 70%);
  padding: 14px 16px 8px;
}

.cmd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cmd-head h3 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: 0.5px; color: var(--gold-bright); }
.cmd-meta { font-size: 11px; color: var(--muted-2); white-space: nowrap; }

.cmd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed rgba(42, 35, 24, 0.8); }
.cmd-row:first-of-type { border-top: 0; }
.cmd-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmd-name strong { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.cmd-name em { font-style: normal; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-right { text-align: right; white-space: nowrap; flex: none; }
.cmd-price { display: block; font-size: 15px; font-weight: 650; color: #ece3d0; font-variant-numeric: tabular-nums; }
.cmd-unit { font-size: 10px; color: var(--muted-2); margin-left: 3px; font-weight: 400; }
.cmd-right .pct { display: block; font-size: 11.5px; font-weight: 600; margin-top: 1px; font-variant-numeric: tabular-nums; }
.cmd-row.is-closed .cmd-price { color: var(--muted-2); }
.cmd-closed-tag { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }

.commodity-note { margin: 10px 2px 0; font-size: 11.5px; line-height: 1.7; color: var(--muted-2); }

@media (max-width: 1100px) { .commodity-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .commodity-grid { grid-template-columns: 1fr; } }

/* ---------- 趣味区响应式 ---------- */

@media (max-width: 920px) {
  .hero-main { flex-direction: column; }
  .hero-fun { flex: none; width: 100%; }
  .mood-dial { margin-top: 8px; }
}

@media (max-width: 640px) {
  .hero-fun { padding: 11px 12px; }
  .mood-dial { transform: scale(0.92); transform-origin: center bottom; margin-top: 4px; }
  .top-actions { gap: 6px; }
  .ui-toast { bottom: 18px; }
}
