:root {
  --bg: #030811;
  --panel: #0b1220;
  --panel-2: #101a2b;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #f5c451;
  --gold-soft: rgba(245, 196, 81, 0.14);
  --text: #e9eefb;
  --muted: #8ea0bd;
  --up: #ff4d4f;
  --down: #22c55e;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(120% 60% at 50% 0%, #16233a 0%, #0a1220 42%, #030811 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.overview,
.lower-grid { display: block; }

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.back {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.back:active { transform: translateY(1px); }

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.28);
  background: var(--gold-soft);
  color: #e8cf95;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.brand-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 5px 11px;
  line-height: 1.05;
}

.brand-badge b {
  color: #e8cf95;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-badge small {
  color: #8f8463;
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.asof {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.eye-btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-left: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.eye-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-btn .eye-slash { display: none; }

.eye-btn.is-on {
  color: #ffd977;
  border-color: rgba(245, 196, 81, 0.36);
  background: rgba(245, 196, 81, 0.1);
}

.eye-btn.is-on .eye-open { display: none; }
.eye-btn.is-on .eye-slash { display: inline; }

.livebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: -10px 0 16px;
  font-size: 10.5px;
  color: var(--muted);
}

.market-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.market-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 7px rgba(255, 77, 79, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
}

.market-pill b {
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
}

.market-pill.closed i {
  background: #5f6e88;
  box-shadow: none;
  animation: none;
}

.market-pill.open i {
  background: var(--down);
  box-shadow: 0 0 7px rgba(34, 197, 94, 0.8);
}

.market-pill.pre i,
.market-pill.post i {
  background: var(--gold);
  box-shadow: 0 0 7px rgba(245, 196, 81, 0.62);
}

.market-pill.post i {
  background: #9f8cff;
  box-shadow: 0 0 7px rgba(159, 140, 255, 0.62);
}

/* 24H 与开市：字面带一点微光 */
.market-pill.btc b {
  color: #ffd977;
  text-shadow: 0 0 6px rgba(245, 196, 81, 0.45), 0 0 14px rgba(245, 196, 81, 0.18);
}

.market-pill.open b {
  color: #5ee08f;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.5), 0 0 14px rgba(34, 197, 94, 0.22);
}

.market-pill.pre b { color: #f5c451; }
.market-pill.post b { color: #b8a8ff; }

.market-pill.goal {
  border-color: rgba(245, 196, 81, 0.24);
  background: rgba(245, 196, 81, 0.07);
  cursor: pointer;
}

.market-pill.goal i {
  background: var(--gold);
  box-shadow: 0 0 7px rgba(245, 196, 81, 0.55);
  animation: none;
}

.market-pill.goal b { color: #e8cf95; }
.market-pill.goal:active { transform: translateY(1px); }

.market-next {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.summary { margin-bottom: 18px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: #dbe4f5;
  letter-spacing: 0.08em;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.eyebrow-row .eyebrow { margin: 0; }

.total {
  margin: 0 0 14px;
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 30%, #c6d2e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 数值变化时轻微亮一下，配合数字滚动 */
.value-tick { animation: valueTick 0.55s ease-out; }

@keyframes valueTick {
  0% { filter: brightness(1.75); }
  100% { filter: none; }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metrics > div,
.pool-row > div {
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.metrics span, .pool-row span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  white-space: nowrap;
}

.metrics b, .pool-row b {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.metric-formula {
  display: block;
  margin-top: 4px;
  color: #687996;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
}

/* 卡片内数值：上下两行统一靠左对齐 */
.pool-row b {
  text-align: left;
  padding-right: 0;
}

/* 隐藏位用星号，做轻微基线下移，和数字光学居中 */
.mk {
  font-style: normal;
  font-size: 0.95em;
  vertical-align: -0.1em;
  opacity: 0.72;
  letter-spacing: 0;
}

.total .mk {
  opacity: 0.8;
}

.chart-card {
  padding: 14px 14px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.ticker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.ticker-head b {
  color: #e8cf95;
  font-size: 10px;
  font-weight: 500;
}

.ticker-strip {
  overflow: hidden;
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px dashed var(--line);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 36s linear infinite;
}

.ticker-group {
  display: flex;
  gap: 7px;
  padding-right: 7px;
}

.ticker-track:hover,
.ticker-strip:active .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--loop, 50%))); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-strip { overflow-x: auto; }
}

.ticker-item {
  flex: 0 0 auto;
  min-width: 84px;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.ticker-sym {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.ticker-price {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ticker-chg {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.chart-actions { display: inline-flex; align-items: center; gap: 10px; }

.chart-more {
  font-style: normal;
  font-size: 11px;
  color: #cbb57e;
}

.chart-card { cursor: pointer; }

.muted { color: var(--muted); font-size: 11px; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #e8cf95;
}

.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 8px rgba(255, 77, 79, 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.chart { width: 100%; height: 150px; display: block; }

.live-dot {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(255, 77, 79, 0.8));
  animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.event-bar {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.event-bar::-webkit-scrollbar { display: none; }

.event-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #b8c6dd;
  font-size: 10px;
  font-family: inherit;
  white-space: nowrap;
}

.event-chip i,
.event-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.event-chip.macro i { background: var(--gold); }
.event-chip.volatility i { background: var(--up); }
.event-chip.risk i { background: #b28cff; }

.event-chip i {
  animation: eventBreathe 4.2s ease-in-out infinite;
}

.event-chip.future i {
  animation-duration: 5.4s;
}

.event-chip.future {
  border-style: dashed;
  color: #7f8da7;
  background: transparent;
}

.event-chip:active { transform: translateY(1px); }

.event-dot {
  cursor: pointer;
  stroke: #030811;
  stroke-width: 1.7;
  opacity: 0.98;
}

.event-dot-halo {
  pointer-events: none;
  animation: eventHalo 3s ease-in-out infinite;
}

.event-dot.macro,
.event-dot-halo.macro {
  filter: drop-shadow(0 0 3px rgba(245, 196, 81, 0.9));
}

.event-dot.volatility,
.event-dot-halo.volatility {
  filter: drop-shadow(0 0 3px rgba(255, 77, 79, 0.92));
}

.event-dot.risk,
.event-dot-halo.risk {
  filter: drop-shadow(0 0 3px rgba(178, 140, 255, 0.95));
}

@keyframes eventHalo {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.3; }
}

@keyframes eventBreathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.cards-pager { position: relative; }

.cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cards::-webkit-scrollbar { display: none; }

.card-page {
  flex: 0 0 100%;
  display: grid;
  gap: 10px;
  scroll-snap-align: start;
}

.cards.dense .card { padding: 8px; border-radius: 12px; }
.cards.dense .sym { font-size: 12px; }
.cards.dense .strategy-status { font-size: 9px; padding: 1px 5px; gap: 4px; }
.cards.dense .session-tag { font-size: 9px; padding: 1px 5px; }
.cards.dense .mkt-price { font-size: 10px; }
.cards.dense .mkt-chg { font-size: 9px; }
.cards.dense .session-strip { gap: 2px; padding: 3px; margin-top: 5px; }
.cards.dense .session-cell { padding: 3px 2px; }
.cards.dense .session-cell > b { font-size: 8px; }
.cards.dense .session-cell > span,
.cards.dense .session-cell > small { font-size: 7px; }
.cards.dense .pool-row { gap: 2px; margin: 6px 0 4px; }
.cards.dense .pool-row span { font-size: 9px; }
.cards.dense .pool-row b { font-size: 10px; }
.cards.dense .spark { height: 24px; }
.cards.dense .card-foot { font-size: 9px; margin-top: 4px; }
.cards.dense .card-foot b { font-size: 10px; }

.pager-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.pager-dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.pager-dots i.on {
  width: 16px;
  background: var(--gold);
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.event-modal[hidden] { display: none; }

.event-modal-card {
  width: min(100%, 390px);
  max-height: 86vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(245, 196, 81, 0.24);
  background: #0b1220;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* 单个标的详情（一屏内，不滚动） */
.detail-card {
  width: min(100%, 420px);
  max-height: 92vh;
  overflow: auto;
  padding: 14px;
}

.detail-head { display: flex; align-items: center; gap: 7px; }

.detail-sym { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.detail-name { font-size: 11px; color: var(--muted); }
.detail-head .session-tag { padding: 1px 5px; font-size: 9px; }

.detail-quote {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.detail-quote-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.detail-quote-metric:first-child { align-items: flex-start; }

.detail-quote-metric small {
  color: #687996;
  font-size: 8px;
  line-height: 1.1;
  white-space: nowrap;
}

.detail-quote b,
.detail-quote em {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.detail-quote em { font-style: normal; }

.detail-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 9px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(245, 196, 81, 0.22);
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.09), rgba(255, 255, 255, 0.02));
}

.detail-hero span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }

.detail-hero b {
  display: block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.detail-hero em {
  font-style: normal;
  font-size: 11px;
  color: #e8cf95;
  white-space: nowrap;
  padding-bottom: 3px;
}

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

.detail-grid > div,
.detail-risk > div {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.detail-grid span,
.detail-risk span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  margin-bottom: 2px;
}

.detail-grid b,
.detail-risk b {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.btc-exchange-section {
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(245, 196, 81, 0.17);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(245, 196, 81, 0.065), transparent 58%),
    rgba(255, 255, 255, 0.022);
}

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

.btc-exchange-head span {
  color: #d9c79a;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btc-exchange-head em {
  color: #71819c;
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.btc-exchange-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.exchange-quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  background: rgba(4, 10, 20, 0.34);
}

.exchange-quote span {
  min-width: 0;
  overflow: hidden;
  color: #91a2be;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-quote b {
  grid-column: 1 / -1;
  color: #e9eefb;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.exchange-quote em {
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.exchange-empty {
  grid-column: 1 / -1;
  padding: 9px;
  color: #71819c;
  font-size: 10.5px;
  text-align: center;
}

.detail-risk {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.detail-risk span { font-size: 9px; }
.detail-risk b { font-size: 11.5px; }

.detail-risk-b { margin-top: 5px; }
.detail-risk-b b { font-size: 10.5px; letter-spacing: -0.01em; }

.detail-chart-head {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 9.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.detail-chart-head span:nth-child(2) { opacity: 0.7; }

.detail-chart { width: 100%; height: 62px; margin-top: 4px; display: block; }

.detail-drawdown { width: 100%; height: 40px; display: block; }

.detail-month-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-size: 9.5px;
  color: var(--muted);
}

.detail-month-head span:last-child { font-size: 9px; }

.detail-month-bars {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.detail-month-bars .month-bar {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.detail-month-bars i {
  display: block;
  width: 100%;
  max-width: 34px;
  border-radius: 4px 4px 2px 2px;
  background: rgba(255, 107, 109, 0.55);
}

.detail-month-bars i.down { background: rgba(54, 208, 122, 0.5); }

.detail-month-bars em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
}

.detail-month-bars u {
  text-decoration: none;
  font-size: 9px;
  color: var(--muted);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 0;
}

.detail-tags span {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.3);
  background: rgba(245, 196, 81, 0.1);
  font-size: 9.5px;
  color: #f0d9a3;
  letter-spacing: 0.01em;
}

.detail-foot {
  margin: 7px 0 0;
  font-size: 10px;
  color: #7d8aa3;
  font-variant-numeric: tabular-nums;
}

.lib-block { margin-top: 10px; }

.lib-title {
  margin: 0 0 5px;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: #cbb57e;
}

.lib-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.lib-chips span {
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  font-size: 9.5px;
  color: #9fb0c9;
  white-space: nowrap;
}

.detail-profile {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  font-size: 9.8px;
  line-height: 1.75;
  color: #93a3bf;
}

.detail-profile b { color: #cbb57e; font-weight: 600; }

.detail-ai {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 196, 81, 0.18);
  background: rgba(245, 196, 81, 0.05);
  font-size: 10.5px;
  line-height: 1.75;
  color: #d9c79a;
}

.detail-meta {
  margin: 6px 0 0;
  font-size: 9.5px;
  color: #6f7f9b;
  letter-spacing: 0.01em;
}

.card { cursor: pointer; }
.card:active { transform: translateY(1px); }

.event-kicker {
  margin: 0 0 6px;
  color: #e8cf95;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.event-modal-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.35;
}

.event-date {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.event-detail {
  margin: 0 0 14px;
  color: #b8c6dd;
  font-size: 13px;
  line-height: 1.75;
}

.event-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.event-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.event-note {
  margin: 0 0 16px;
  color: #5f6e88;
  font-size: 10px;
  line-height: 1.6;
}

.strategy-points {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #b8c6dd;
  font-size: 12px;
  line-height: 1.75;
}

.rule-block {
  margin: 14px 0 4px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(245, 196, 81, 0.22);
  background: rgba(245, 196, 81, 0.05);
}

.rule-title {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #f0d9a3;
  letter-spacing: 0.04em;
}

.rule-list { margin: 0; display: grid; gap: 5px; }

.rule-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
  line-height: 1.5;
}

.rule-list dt { color: var(--muted); white-space: nowrap; }

.rule-list dd {
  margin: 0;
  text-align: right;
  color: #dbe4f5;
  font-variant-numeric: tabular-nums;
}

.strategy-points li {
  margin-bottom: 6px;
}

.event-modal-card button {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}

.card {
  --market-gap: 7px;
  padding: 14px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.card.watch {
  border-color: rgba(245, 196, 81, 0.28);
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.06), rgba(255, 255, 255, 0.025));
}

.card-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: nowrap;
}

.market-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--market-gap);
  margin-top: 7px;
}

.market-quote {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.market-quote.change { align-items: flex-start; }

.market-quote small {
  color: #687996;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}

.market-row .mkt-price { margin-left: 0; justify-self: start; }
.market-row .mkt-chg { margin-left: 0; justify-self: start; text-align: left; }

.card-head .session-tag { margin-left: 2px; }
.session-tag-top { display: none; }
.session-tag-bottom { display: inline-flex; }

.sym {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.session-tag.live {
  color: #ffd977;
  border-color: rgba(245, 196, 81, 0.3);
  background: rgba(245, 196, 81, 0.1);
  text-shadow: 0 0 6px rgba(245, 196, 81, 0.5), 0 0 14px rgba(245, 196, 81, 0.22);
}

.session-tag.open {
  color: #8ee6b0;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.5), 0 0 14px rgba(34, 197, 94, 0.22);
}

.session-tag.pre {
  color: #f5c451;
  border-color: rgba(245, 196, 81, 0.3);
  background: rgba(245, 196, 81, 0.08);
}

.session-tag.post {
  color: #b8a8ff;
  border-color: rgba(159, 140, 255, 0.3);
  background: rgba(159, 140, 255, 0.08);
}

.session-tag.closed { color: #8ea0bd; }

.session-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.12);
}

.session-cell {
  min-width: 0;
  padding: 5px 4px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.session-cell.is-active {
  background: rgba(245, 196, 81, 0.09);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.15);
}

.session-cell > span,
.session-cell > small {
  display: block;
  overflow: hidden;
  color: #71819d;
  font-size: 8.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-cell > small + small { margin-top: 1px; }
.session-cell > .session-range { opacity: 0.74; }

.session-cell > b {
  display: block;
  margin: 2px 0;
  overflow: hidden;
  color: #dbe4f5;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.session-cell.btc-session {
  background: rgba(245, 196, 81, 0.045);
}

.session-cell.btc-session > b { color: #f3d487; }

.strategy-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  width: calc((100% - var(--market-gap)) / 2);
  padding: 2px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.strategy-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  animation: statusBreathe 3.2s ease-in-out infinite;
}

.strategy-status.active {
  color: #8ee6b0;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.5), 0 0 14px rgba(34, 197, 94, 0.22);
}

.strategy-status.backtest {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.55), 0 0 14px rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.22);
}

.strategy-status.backtest::before {
  background: #7dd3fc;
  box-shadow: 0 0 7px rgba(125, 211, 252, 0.9);
  opacity: 0.9;
  animation: statusBreathe 3.6s ease-in-out infinite;
}

.session-tag.backtest {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.45);
}

.strategy-status.watch {
  color: #e8cf95;
  border-color: rgba(245, 196, 81, 0.3);
  background: rgba(245, 196, 81, 0.1);
}

.strategy-status.watch::before {
  animation-duration: 4.8s;
}

@keyframes statusBreathe {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.mkt-price { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }
.mkt-chg { font-size: 13px; font-variant-numeric: tabular-nums; }

.pool-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}

.spark { width: 100%; height: 46px; display: block; }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.card-foot.dual { justify-content: space-between; gap: 5px; }

.card-foot b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.foot-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.foot-metric em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.foot-metric.win-metric {
  margin-left: auto;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
}
.foot-metric.win-metric b { color: #e8cf95; }

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

.news-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 8px;
}

.news-head b {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

.news-list { margin: 0; padding: 0; list-style: none; }

.news-list li {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  line-height: 1.6;
  color: #c9d4e6;
}

.news-list li:first-child { border-top: 0; }

.news-list time {
  flex: 0 0 auto;
  color: #6f7f9b;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.news-list em {
  font-style: normal;
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: #5f6e88;
}

.foot {
  margin-top: 22px;
  font-size: 11px;
  line-height: 1.8;
  color: #5f6e88;
}

.foot p {
  margin: 0 0 7px;
}

.foot .strategy-model-note {
  padding: 8px 10px;
  border: 1px solid rgba(245, 196, 81, 0.18);
  border-radius: 10px;
  background: rgba(245, 196, 81, 0.045);
  color: #bda978;
}

.foot p:last-child {
  margin-bottom: 0;
}

.foot-link {
  color: #cbb57e;
  text-decoration: none;
}

.admin-link {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #5b6880;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.admin-link:hover {
  color: #cbb57e;
  border-color: rgba(245, 196, 81, 0.28);
}

.demo-meter { display: none; }

.meter-unit {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.meter-unit > small {
  color: #71819d;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.meter-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.meter-cluster.daily { flex: 1 1 0; }

.meter-cluster.international {
  flex: 1 1 0;
  justify-content: flex-end;
  padding-left: 16px;
  border-left: 0;
}

.demo-meter-copy.international {
  padding: 0 8px 0 12px;
  text-align: right;
}

.demo-meter-dial b {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.demo-meter {
  position: relative;
  cursor: pointer;
}

.screen-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d8c58e;
  line-height: 1;
  letter-spacing: normal;
  text-indent: 0;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: none;
}

.screen-title::before,
.screen-title::after {
  display: none;
}

.screen-title small {
  color: #71819d;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.screen-title b {
  color: #d8c58e;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
}

.demo-meter:hover,
.demo-meter:focus-visible {
  border-color: rgba(245, 196, 81, 0.32);
  outline: none;
}

.demo-meter-copy em {
  display: block;
  margin-top: 2px;
  color: #b7a36d;
  font-style: normal;
  font-size: 9px;
  line-height: 1.2;
}

.foot-link:active { opacity: 0.7; }

/* 手机：两张标的并排，纵向更紧凑 */
@media (max-width: 639px) {
  #btc-pill { order: 1; }
  #market-pill { order: 2; }
  #market-next { order: 3; }
  #goal-pill { order: 4; }

  .page { padding: 14px 12px 22px; }

  .card { padding: 10px; border-radius: 14px; }
  .card { --market-gap: 6px; }
  .card-head { gap: 6px; }
  .sym { font-size: 14px; }
  .name { display: none; }

  .strategy-status {
    width: auto;
    gap: 4px;
    padding: 1px 5px;
    font-size: 9px;
    letter-spacing: 0;
  }

  .market-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px;
    margin-top: 6px;
  }
  .market-quote {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .market-quote.price { align-items: flex-start; }
  .market-quote.change { align-items: flex-end; }
  .market-quote small { display: none; }
  .market-row .mkt-chg {
    justify-self: end;
    text-align: right;
  }
  .session-tag-top { display: inline-flex; }
  .session-tag-bottom { display: none; }
  .session-tag { padding: 1px 5px; font-size: 9.5px; }
  .mkt-price { margin-left: auto; font-size: 11.5px; }
  .mkt-chg { font-size: 11.5px; }
  .session-strip { gap: 2px; padding: 3px; }
  .session-cell { padding: 4px 2px; }
  .session-cell > b { font-size: 8.5px; }
  .session-cell > span,
  .session-cell > small { font-size: 8px; line-height: 1.3; }

  .pool-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    margin: 8px 0 6px;
  }

  .pool-row > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    overflow: hidden;
  }

  .pool-row span { margin: 0; font-size: 10px; }
  .pool-row b { font-size: 11px; }

  .spark { height: 32px; }
  .card-foot {
    justify-content: flex-end;
    margin-top: 6px;
    font-size: 10.5px;
  }
  .card-foot b { font-size: 11.5px; }
}

/* 平板 */
@media (min-width: 640px) {
  .page { width: min(100%, 780px); padding: 20px 22px 28px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 14px; }
  .mkt-price { font-size: 12px; }
  .pool-row b { font-size: 12px; }
}

/* 桌面：独立桌面栅格，标的物全宽 4×2 展示，不翻页 */
@media (min-width: 1024px) {
  .page {
    width: min(100%, 1420px);
    padding: 30px 36px 42px;
    display: block;
  }

  .topbar { margin-bottom: 18px; }
  .livebar { margin: -7px 0 24px; }
  .badge { padding: 7px 13px; font-size: 13px; }
  .brand-badge { padding: 6px 13px; }
  .brand-badge b { font-size: 14px; }
  .brand-badge small { font-size: 7.5px; }
  .admin-link { padding: 4px 10px; font-size: 11.5px; }
  .asof { font-size: 13px; }

  .demo-meter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 338px;
    margin-left: 30px;
    padding: 7px 12px 7px 8px;
    border: 1px solid rgba(245, 196, 81, 0.16);
    border-radius: 16px;
    background:
      linear-gradient(110deg, rgba(245, 196, 81, 0.07), transparent 46%),
      rgba(255, 255, 255, 0.022);
  }

  .demo-meter-dial {
    --heat-color: #f5c451;
    --heat-arc: 135deg;
    --needle-angle: 0deg;
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: conic-gradient(from 225deg,
      var(--heat-color) 0 var(--heat-arc),
      rgba(255, 255, 255, 0.07) var(--heat-arc) 270deg,
      transparent 270deg 360deg);
    box-shadow: 0 0 16px rgba(245, 196, 81, 0.12);
    transition: background 0.35s ease;
  }

  .meter-cluster { gap: 6px; }
  .meter-cluster.international { padding-left: 8px; }
  .demo-meter-copy.international { padding: 0 3px 0 6px; }

  .demo-meter-dial::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #09111e;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .demo-meter-dial i {
    position: absolute;
    left: calc(50% - 0.5px);
    bottom: 50%;
    z-index: 1;
    width: 1px;
    height: 11px;
    background: #ffe4a0;
    transform-origin: 50% 100%;
    transform: rotate(var(--needle-angle));
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 5px rgba(245, 196, 81, 0.75);
  }

  .demo-meter-copy { flex: 1 1 auto; min-width: 0; padding: 0 18px; }
  .demo-meter-copy b {
    display: block;
    color: #e8dbb8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
  }
  .demo-meter-copy small {
    display: block;
    margin-top: 2px;
    color: #7888a4;
    font-size: 10.5px;
    line-height: 1.25;
    white-space: nowrap;
  }
  .screen-title {
    padding: 0 22px;
  }
  .screen-title b {
    font-size: 18px;
  }
  .livebar { gap: 8px; font-size: 11.5px; }
  .market-pill { padding: 5px 9px; }
  .market-pill b,
  .market-next { font-size: 11.5px; }

  .overview {
    display: grid;
    grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: stretch;
  }

  .summary {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch;
    height: 100%;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
      linear-gradient(145deg, rgba(245, 196, 81, 0.055), transparent 46%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  }

  .summary .eyebrow { font-size: 15px; }
  .summary .total { margin-bottom: 20px; font-size: 48px; }
  .summary .metrics {
    flex: 1 1 auto;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .summary .metrics > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
  }
  .summary .metrics span { font-size: 12.5px; }
  .summary .metrics b { font-size: 16px; }
  .metric-formula { margin-top: 5px; font-size: 10.5px; }

  .chart-card {
    min-width: 0;
    margin: 0;
    padding: 18px 20px 14px;
  }

  .ticker-head { font-size: 11.5px; }
  .ticker-head b { font-size: 11.5px; }
  .ticker-item { min-width: 100px; padding: 8px 10px; }
  .ticker-sym { font-size: 11.5px; }
  .ticker-price { font-size: 15px; }
  .ticker-chg { font-size: 11.5px; }
  .chart-head { font-size: 15px; }
  .axis { font-size: 12px; }
  .event-chip { padding: 6px 10px; font-size: 11px; }

  .cards-pager { margin-top: 26px; }

  .cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
  }

  /* 取消分页容器，让两页共 8 个标的直接铺成 4×2 */
  .card-page { display: contents; }
  .pager-dots { display: none; }

  .card {
    --market-gap: 12px;
    min-width: 0;
    padding: 20px;
    border-radius: 20px;
  }

  .sym { font-size: 20px; }
  .name { font-size: 14px; }
  .session-tag { padding: 3px 9px; font-size: 12px; }
  .strategy-status { padding: 3px 10px; font-size: 13px; }

  .market-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
  }
  .market-quote { gap: 4px; padding: 10px 12px; border-radius: 12px; }
  .market-quote small { font-size: 10px; }
  .market-row .mkt-price {
    margin-left: 0;
    justify-self: start;
    font-size: 17px;
    font-weight: 600;
  }
  .market-row .mkt-chg {
    margin-left: 0;
    justify-self: start;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
  }
  .session-strip {
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    border-radius: 14px;
  }
  .session-cell { padding: 8px 6px; border-radius: 10px; }
  .session-cell > b { margin: 4px 0; font-size: 12px; }
  .session-cell > span,
  .session-cell > small { font-size: 10px; }

  .pool-row {
    gap: 12px;
    margin: 16px 0 12px;
  }
  .pool-row > div { padding: 12px 14px; }
  .pool-row span { font-size: 13px; }
  .pool-row b { font-size: 17px; }
  .spark { height: 54px; }
  .card-foot { margin-top: 12px; font-size: 14px; }
  .card-foot b { font-size: 17px; }
  .foot-metric em { font-size: 13px; }

  .chart { height: 220px; }

  .lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 24px;
    margin-top: 24px;
    align-items: stretch;
  }

  .news-card { margin: 0; }
  .news-head { font-size: 14px; }
  .news-head b { font-size: 11.5px; }
  .news-list li { padding: 9px 0; font-size: 13px; }
  .news-list time { font-size: 11.5px; }
  .news-list em { font-size: 11px; }
  .foot {
    margin: 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.022);
    font-size: 12.5px;
  }
}

.demo-meter-copy b.up,
.demo-meter-facts b.up {
  color: var(--up);
  text-shadow: 0 0 8px rgba(255, 77, 79, 0.3);
}

.demo-meter-copy b.down,
.demo-meter-facts b.down {
  color: var(--down);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.demo-meter-copy b.flat,
.demo-meter-facts b.flat {
  color: #e8cf95;
}

.heat-detail-card {
  width: min(100%, 760px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  border-radius: 22px;
  transform-origin: 50% 50%;
  animation: heatCardIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#heat-modal.is-closing { animation: heatBackdropOut 0.36s ease forwards; }

#heat-modal.is-closing .heat-detail-card {
  pointer-events: none;
  animation: heatCardRotateOut 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heatCardIn {
  from { opacity: 0; transform: rotate(-5deg) scale(0.94); }
  to { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes heatCardRotateOut {
  from { opacity: 1; transform: rotate(0deg) scale(1); }
  to { opacity: 0; transform: rotate(10deg) scale(0.84); }
}

@keyframes heatBackdropOut {
  to { opacity: 0; }
}

.heat-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.heat-detail-head h3 {
  margin: 0;
  font-size: 20px;
}

.heat-detail-intro {
  margin: 5px 0 0;
  color: #7e8da8;
  font-size: 10.5px;
  line-height: 1.5;
}

.heat-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.heat-detail-grid section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.heat-detail-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.heat-detail-score span {
  color: #dbe4f5;
  font-size: 13px;
}

.heat-detail-score b {
  color: #ff6b6d;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.heat-detail-score.international b { color: #f5c451; }

.heat-detail-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
}

.heat-detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
}

.heat-detail-list > .heat-news-factor {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.heat-detail-list > .heat-news-factor dd {
  width: 100%;
  margin: 0;
  text-align: left;
}

.heat-detail-list dt { color: var(--muted); }
.heat-detail-list dd {
  margin: 0;
  color: #dbe4f5;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.heat-detail-note {
  margin: 10px 0 0;
  color: #71819d;
  font-size: 10px;
  line-height: 1.6;
}

.heat-session-section {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.heat-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.heat-session-head span {
  color: #dbe4f5;
  font-size: 12px;
  font-weight: 600;
}

.heat-session-head em {
  color: #71819d;
  font-style: normal;
  font-size: 9.5px;
}

.heat-session-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.heat-session-grid > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.heat-session-grid b {
  display: block;
  margin-bottom: 5px;
  color: #dbe4f5;
  font-size: 11px;
}

.heat-session-grid span {
  display: block;
  color: #a8b5ca;
  font-size: 10px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.heat-session-grid small {
  display: block;
  margin-top: 3px;
  color: #687996;
  font-size: 9.5px;
  line-height: 1.4;
}

.heat-session-grid > div.btc {
  border-color: rgba(245, 196, 81, 0.22);
  background: rgba(245, 196, 81, 0.05);
}

@media (max-width: 639px) {
  .heat-detail-card { padding: 18px; }
  .heat-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .heat-session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 桌面详情弹层：按桌面比例放大，避免沿用手机小卡片尺寸 */
@media (min-width: 1024px) {
  .event-modal { padding: 32px 38px; }

  .event-modal-card.detail-card {
    width: min(100%, 940px);
    max-height: 90vh;
    padding: 26px 30px;
    border-radius: 24px;
  }

  #coin-modal .detail-card,
  #btc-modal .detail-card,
  #market-modal .detail-card {
    width: min(100%, 760px);
  }

  #detail-modal .detail-card {
    width: min(100%, 1040px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 22px;
    align-content: start;
  }

  #detail-modal .detail-head,
  #detail-modal .detail-hero,
  #detail-modal .detail-chart-head,
  #detail-modal .detail-chart,
  #detail-modal .detail-tags,
  #detail-modal .detail-profile,
  #detail-modal .detail-meta,
  #detail-modal .detail-foot {
    grid-column: 1 / -1;
  }

  #detail-modal .detail-grid {
    grid-column: 1;
    grid-row: 3 / span 2;
  }

  #detail-modal .detail-risk {
    grid-column: 2;
    margin-top: 0;
  }

  #detail-modal .detail-risk-b {
    grid-column: 2;
    margin-top: 8px;
  }

  .detail-head { gap: 10px; margin-bottom: 14px; }
  .detail-sym { font-size: 24px; }
  .detail-name { font-size: 14px; }
  .detail-head .session-tag { padding: 3px 8px; font-size: 11px; }
  .detail-quote b,
  .detail-quote em { font-size: 19px; }
  .detail-quote-metric small { font-size: 10px; }

  .detail-hero {
    margin: 0 0 14px;
    padding: 15px 18px;
    border-radius: 16px;
  }
  .detail-hero span { font-size: 12px; margin-bottom: 4px; }
  .detail-hero b { font-size: 29px; }
  .detail-hero em { font-size: 13px; }

  .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .detail-grid > div,
  .detail-risk > div {
    padding: 10px 12px;
    border-radius: 12px;
  }
  .detail-grid span,
  .detail-risk span { font-size: 12px; margin-bottom: 4px; }
  .detail-grid b,
  .detail-risk b { font-size: 16px; }

  .btc-exchange-section {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
  }
  .btc-exchange-head { margin-bottom: 9px; }
  .btc-exchange-head span { font-size: 12px; }
  .btc-exchange-head em { font-size: 11px; }
  .btc-exchange-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .exchange-quote {
    gap: 5px 10px;
    padding: 9px 11px;
    border-radius: 10px;
  }
  .exchange-quote span { font-size: 11.5px; }
  .exchange-quote b { font-size: 14px; }
  .exchange-quote em { font-size: 11.5px; }
  .exchange-empty { padding: 12px; font-size: 12px; }

  .detail-risk { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .detail-risk span { font-size: 11.5px; }
  .detail-risk b { font-size: 14px; }
  .detail-risk-b { margin-top: 10px; }
  .detail-risk-b b { font-size: 13px; }

  .detail-chart-head { margin-top: 16px; font-size: 12px; }
  .detail-chart { height: 180px; margin-top: 8px; }
  .detail-drawdown { height: 88px; }

  .detail-month-head { margin-top: 14px; font-size: 12px; }
  .detail-month-head span:last-child { font-size: 11px; }
  .detail-month-bars { gap: 14px; margin-top: 8px; padding: 10px 12px; }
  .detail-month-bars i { max-width: 48px; }
  .detail-month-bars em { font-size: 12px; }
  .detail-month-bars u { font-size: 11px; }

  .detail-tags { gap: 7px; margin-top: 14px; }
  .detail-tags span { padding: 4px 9px; font-size: 11.5px; }
  .detail-profile {
    margin-top: 14px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.8;
  }
  .detail-ai { margin-top: 14px; padding: 14px 16px; font-size: 13px; }
  .detail-meta { margin-top: 10px; font-size: 11.5px; }
  .detail-foot { margin-top: 10px; font-size: 12px; }

  .lib-block { margin-top: 14px; }
  .lib-title { margin-bottom: 7px; font-size: 12px; }
  .lib-chips { gap: 7px; margin-bottom: 10px; }
  .lib-chips span { padding: 4px 9px; font-size: 11.5px; }
}

/* 13 英寸桌面：顶部状态铺满，详情弹层固定一屏内完整展示 */
@media (min-width: 1024px) {
  .topbar {
    grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: stretch;
    min-height: 54px;
    margin-bottom: 18px;
  }

  .topbar-nav {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.022);
  }

  .demo-meter {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  .asof { margin-left: auto; }

  .demo-meter-facts {
    display: flex;
    align-items: stretch;
    gap: 18px;
    margin-left: auto;
  }

  .demo-meter-facts > span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 62px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }

  .demo-meter-facts small {
    color: #687996;
    font-size: 9px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .demo-meter-facts b {
    margin-top: 3px;
    color: #d7c79f;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  #detail-modal .detail-card {
    width: min(100%, 960px);
    height: auto;
    max-height: calc(100vh - 48px);
    padding: 18px 22px;
    column-gap: 18px;
    overflow: hidden;
  }

  #detail-modal .detail-head { margin-bottom: 8px; }
  #detail-modal .detail-sym { font-size: 21px; }
  #detail-modal .detail-name { font-size: 13px; }
  #detail-modal .detail-quote b,
  #detail-modal .detail-quote em { font-size: 17px; }
  #detail-modal .detail-quote-metric small { font-size: 9.5px; }

  #detail-modal .detail-hero {
    margin-bottom: 9px;
    padding: 10px 14px;
    border-radius: 13px;
  }
  #detail-modal .detail-hero span { margin-bottom: 2px; font-size: 10.5px; }
  #detail-modal .detail-hero b { font-size: 24px; }
  #detail-modal .detail-hero em { font-size: 11.5px; }

  #detail-modal .detail-grid,
  #detail-modal .detail-risk { gap: 7px; }
  #detail-modal .detail-grid > div,
  #detail-modal .detail-risk > div { padding: 7px 9px; border-radius: 10px; }
  #detail-modal .detail-grid span,
  #detail-modal .detail-risk span { margin-bottom: 2px; font-size: 10.5px; }
  #detail-modal .detail-grid b,
  #detail-modal .detail-risk b { font-size: 14px; }
  #detail-modal .detail-risk-b { margin-top: 7px; }
  #detail-modal .detail-risk-b b { font-size: 12.5px; }

  #detail-modal .detail-chart-head { margin-top: 9px; font-size: 10.5px; }
  #detail-modal .detail-chart { height: 126px; margin-top: 4px; }

  #detail-modal .detail-tags { gap: 5px; margin-top: 8px; }
  #detail-modal .detail-tags span { padding: 3px 7px; font-size: 10px; }
  #detail-modal .detail-profile {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 1.55;
  }
  #detail-modal .detail-meta { margin-top: 6px; font-size: 10px; }
  #detail-modal .detail-foot { margin-top: 6px; font-size: 10.5px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .demo-meter-facts { display: none; }
}

/* 手机端：仪表盘单独占一行，保持完整但不过度拥挤 */
@media (max-width: 639px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .demo-meter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    flex: 0 0 100%;
    order: 10;
    align-items: center;
    column-gap: 7px;
    row-gap: 6px;
    width: 100%;
    min-width: 0;
    margin: 2px 0 0;
    padding: 7px 10px;
    border: 1px solid rgba(245, 196, 81, 0.16);
    border-radius: 14px;
    background:
      linear-gradient(110deg, rgba(245, 196, 81, 0.07), transparent 52%),
      rgba(255, 255, 255, 0.022);
  }

  .meter-cluster.daily {
    grid-column: 1;
    grid-row: 1;
  }

  .meter-cluster.international {
    grid-column: 2;
    grid-row: 1;
    padding-left: 0;
  }

  .demo-meter-dial {
    --heat-color: #f5c451;
    --heat-arc: 135deg;
    --needle-angle: 0deg;
    position: relative;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(from 225deg,
      var(--heat-color) 0 var(--heat-arc),
      rgba(255, 255, 255, 0.07) var(--heat-arc) 270deg,
      transparent 270deg 360deg);
    box-shadow: 0 0 12px rgba(245, 196, 81, 0.12);
    transition: background 0.35s ease;
  }

  .demo-meter-dial::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #09111e;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .demo-meter-dial i {
    position: absolute;
    left: calc(50% - 0.5px);
    bottom: 50%;
    z-index: 1;
    width: 1px;
    height: 9px;
    background: #ffe4a0;
    transform-origin: 50% 100%;
    transform: rotate(var(--needle-angle));
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 4px rgba(245, 196, 81, 0.75);
  }

  .demo-meter-copy { flex: 1 1 auto; min-width: 0; padding: 0 8px; }
  .demo-meter-copy b {
    display: block;
    color: #e8dbb8;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
  }
  .demo-meter-copy small {
    display: block;
    margin-top: 2px;
    color: #7888a4;
    font-size: 9.5px;
    line-height: 1.25;
    white-space: nowrap;
  }
  .screen-title {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    position: static;
    gap: 0;
    padding: 0 4px;
    margin: 0;
    background: transparent;
    transform: none;
  }
  .screen-title::before,
  .screen-title::after,
  .screen-title small { display: none; }
  .screen-title b {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }

  .demo-meter-facts {
    display: flex;
    margin-left: auto;
  }

  .demo-meter-facts > span {
    display: none;
  }

  .demo-meter-facts > span:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 62px;
    padding-left: 9px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }

  .demo-meter-facts small {
    color: #687996;
    font-size: 8px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .demo-meter-facts b {
    margin-top: 2px;
    color: #d7c79f;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }
}
