/* btctrade Dashboard — 与主站 frontend/home 深色网格 + 极光底呼应 */
:root {
  --bg: #0a0f1c;
  --card: #121a28;
  --bord: #2a3444;
  --text: #e6edf3;
  --muted: #8b949e;
  --link: #58a6ff;
  --ok: #3fb950;
  --warn: #d29922;
  --err: #f85149;
  --accent: #79c0ff;
  --mint: #00d4aa;
}
* { box-sizing: border-box; }
body.dash {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.5;
  padding: 0 1.25rem 2.5rem;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 55% at 100% -8%, rgba(0, 212, 170, 0.16), transparent 52%),
    radial-gradient(ellipse 70% 50% at -5% 105%, rgba(0, 122, 255, 0.11), transparent 48%),
    linear-gradient(rgba(0, 212, 170, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.034) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
  background-attachment: fixed;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* —— 顶栏：全宽 + 毛玻璃，与主站 Header 层次接近 —— */
.dash-top {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -1.25rem 1.35rem;
  padding: 0;
  border-bottom: 1px solid rgba(42, 52, 68, 0.95);
  background: rgba(10, 15, 28, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dash-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.dash-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #f0f6fc !important;
  flex-shrink: 0;
  text-decoration: none !important;
}
.dash-brand:hover { color: #fff !important; }
/* 与 Next 顶栏同款 SVG 徽标（圆环 + 罗盘向） */
.dash-brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--mint);
  transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.35));
}
.dash-brand:hover .dash-brand-logo {
  transform: scale(1.08);
  color: #26e8c5;
}
.dash-brand-text {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.dash-brand-ai {
  color: var(--mint);
}
.dash-brand:hover .dash-brand-ai {
  color: #26e8c5;
}
/* 单行：主站 + 领航/回测 + 仅 PHP 具备的日志/API */
.dash-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.5rem;
  flex: 1;
  min-width: 0;
}
.dash-nav-row a {
  color: #c9d1d9;
  font-size: 0.84rem;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
}
.dash-nav-row a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.dash-nav-row .nav-active {
  color: #f0f6fc;
  font-weight: 600;
  background: rgba(0, 212, 170, 0.14);
  border: 1px solid rgba(0, 212, 170, 0.32);
  text-decoration: none;
}
.dash-nav-row a.dash-nav-cta {
  color: #0d1117;
  background: linear-gradient(135deg, #3df5d0, #00c9a3);
  font-weight: 700;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 170, 0.55);
  box-shadow: 0 0 16px rgba(0, 212, 170, 0.25);
}
.dash-nav-row a.dash-nav-cta:hover {
  color: #061016;
  background: linear-gradient(135deg, #5effdf, #12e0b5);
  text-decoration: none;
  box-shadow: 0 0 22px rgba(0, 212, 170, 0.38);
}
.dash-nav-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 0.15rem;
  background: rgba(139, 148, 158, 0.45);
  flex-shrink: 0;
}

/* —— 页脚 —— */
.dash-site-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bord);
}
.dash-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.dash-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}
.dash-footer-links a {
  color: var(--muted);
  font-size: 0.84rem;
}
.dash-footer-links a:hover { color: var(--accent); }
.dash-footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: #6e7681;
}
h1 { font-size: 1.35rem; color: #f0f6fc; margin: 0 0 0.4rem; }
h2 { color: var(--accent); font-size: 1.1rem; margin: 1.4rem 0 0.75rem; border-bottom: 1px solid var(--bord); padding-bottom: 0.35rem; }
.sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.btc-day-strip, .signal-panel, .account-card, .log-table-wrap {
  background: var(--card);
  border: 1px solid var(--bord);
  border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 0.9rem;
}
.btc-day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 0.5rem; }
.btc-k { color: var(--muted); font-size: 0.78rem; }
.btc-v { font-size: 1.05rem; font-weight: 600; }
.btc-p-up { color: var(--ok); } .btc-p-dn { color: var(--err); }
.btc-hint, .foot-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; }

.signal-title { color: var(--accent); font-weight: 700; font-size: 0.92rem; margin-bottom: 0.4rem; }
.signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.32rem 0.7rem; }
.sig-cell.sig-wide { grid-column: span 2; }
@media (max-width: 1000px) { .signal-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .sig-cell.sig-wide { grid-column: span 2; } }
.sig-cell { display: flex; flex-direction: column; gap: 0.08rem; }
.sig-cell span { color: var(--muted); font-size: 0.74rem; }
.sig-cell b { color: #e6edf3; font-size: 0.92rem; line-height: 1.2; }
.sig-cell small { font-size: 0.74rem; line-height: 1.2; }
.dist-safe { color: var(--ok) !important; } .dist-warn { color: var(--warn) !important; }
.dist-danger { color: var(--err) !important; } .dist-na { color: var(--muted) !important; }
.sig-cell b.trad-ok, .trad-ok { color: var(--ok) !important; font-weight: 700; }
.sig-cell b.trad-no, .trad-no { color: var(--err) !important; font-weight: 700; }
/* 四子账户桌面同一行；窄屏横向滚动或换行避免挤爆 */
.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
@media (max-width: 1100px) {
  .account-grid {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
}
@media (max-width: 640px) {
  .account-grid { grid-template-columns: 1fr; overflow-x: visible; }
}
.account-card h3 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.kv { font-size: 0.85rem; color: #c9d1d9; } .kv span { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { border: 1px solid var(--bord); padding: 0.45rem 0.5rem; text-align: left; }
th { background: #1c2128; color: var(--muted); }
.controls { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: 1rem; }
.btn { background: #21262d; border: 1px solid var(--bord); color: var(--text); border-radius: 6px; padding: 0.2rem 0.6rem; cursor: pointer; }
.btn:hover { background: #30363d; }
.foot-note { max-width: 60rem; }
.err-box { color: var(--err); background: rgba(248, 81, 73, 0.08); border: 1px solid var(--err); padding: 0.6rem 0.8rem; border-radius: 8px; }
.api-log-filter { align-items: flex-end; }
.api-stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.5rem; margin: 0.6rem 0 1rem; }
@media (max-width: 900px) { .api-stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .api-stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.api-stat.card-like, .api-stat { background: var(--card); border: 1px solid var(--bord); border-radius: 8px; padding: 0.5rem 0.6rem; }
.api-stat-k { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.api-stat-v { font-size: 1.05rem; font-weight: 600; }
.api-stat-v.okc { color: var(--ok); } .api-stat-v.errc { color: var(--err); }
.api-chart-wrap { background: var(--card); border: 1px solid var(--bord); border-radius: 10px; padding: 0.75rem; margin-bottom: 0.9rem; max-width: 56rem; }
.api-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; align-items: start; }
@media (max-width: 900px) { .api-two-col { grid-template-columns: 1fr; } }
.api-daily-row { display: grid; grid-template-columns: 1fr 280px; gap: 0.8rem; align-items: start; margin-bottom: 0.9rem; }
.api-daily-left { min-width: 0; }
.api-daily-left h2 { margin-top: 0; }
.api-daily-left .api-chart-wrap { margin-bottom: 0; }
.api-daily-right { min-width: 0; }
.api-daily-right h2 { margin-top: 0; }
@media (max-width: 900px) { .api-daily-row { grid-template-columns: 1fr; } }
.mono-ellipsis { max-width: 20rem; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, monospace; font-size: 0.82rem; }
.tc-ok { color: var(--ok) !important; } .tc-err { color: var(--err) !important; }
tr.tr-warn td { color: var(--warn); }
.logs-filter { margin: 0.4rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.logs-filter input, .logs-filter select { background: #21262d; border: 1px solid var(--bord); color: var(--text); border-radius: 4px; padding: 0.2rem 0.4rem; }
.log-prewrap { white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: 0.82rem; }
.kv-stale { color: var(--err); }
.kv-stale .log-health-val { font-weight: 600; }
.tag-l1 { color: #58a6ff; } .tag-l2 { color: var(--warn); } .tag-l3 { color: var(--err); }

.sentinel-matrix { margin-top: 0.5rem; overflow-x: auto; }
.sentinel-grid {
  display: grid;
  gap: 0.5rem;
}
/* 两行：上排 A|B，下排层级横排占满 */
.sentinel-grid--compact {
  grid-template-columns: minmax(220px, 1.12fr) minmax(200px, 0.88fr);
  grid-template-rows: auto auto;
  min-width: min(100%, 720px);
}
.sentinel-grid--compact .sentinel-layer {
  grid-column: 1 / -1;
}
.sentinel-grid--compact .sentinel-cell {
  padding: 0.5rem 0.65rem;
}
.sentinel-grid--compact .sentinel-head {
  font-size: 0.74rem;
  margin-bottom: 0.28rem;
}
.sentinel-grid--compact .sentinel-state {
  font-size: 0.9rem;
  margin-bottom: 0.22rem;
}
.sentinel-grid--compact .sentinel-detail {
  font-size: 0.8rem;
  line-height: 1.35;
}
.sentinel-a-tail {
  margin-top: 0.38rem;
  padding-top: 0.38rem;
  border-top: 1px dashed #30363d;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #c9d1d9;
}
.sentinel-a-final {
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 0.18rem;
}
.sentinel-layer-compact-inner {
  display: flex;
  flex-flow: row wrap;
  gap: 0.28rem 0.5rem;
  align-items: center;
}
.sentinel-cell {
  background: rgba(17, 24, 36, 0.65);
  border: 1px solid #2a3444;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.sentinel-head { color: var(--muted); font-size: 0.78rem; margin-bottom: 0.35rem; }
.sentinel-state { font-size: 0.96rem; font-weight: 700; margin-bottom: 0.3rem; }
.sentinel-detail { color: #c9d1d9; font-size: 0.83rem; line-height: 1.45; }
.sentinel-funding-monitor { margin-top: 0.25rem; font-size: 0.76rem; color: var(--muted); line-height: 1.3; }
.sentinel-funding-optimal { color: var(--ok); font-weight: 600; }
.sentinel-funding-cautious { color: var(--warn); font-weight: 600; }
.sentinel-funding-blocked { color: var(--err); font-weight: 600; }
.sentinel-card { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.sentinel-layer .layer-pill {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed #2d3748;
}
.sentinel-grid--compact .sentinel-layer .layer-pill {
  display: inline-flex;
  gap: 0.28rem;
  padding: 0.08rem 0.38rem 0.1rem;
  margin: 0;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.45);
  border-bottom: none;
}
.sentinel-layer .layer-pill:last-child { border-bottom: 0; }
.sentinel-layer .layer-pill span { color: var(--muted); font-size: 0.82rem; min-width: 70px; }
.sentinel-grid--compact .sentinel-layer .layer-pill span {
  min-width: 0;
  font-size: 0.76rem;
}
.sentinel-layer .layer-pill strong { color: #f0f6fc; font-size: 0.88rem; }
.sentinel-grid--compact .sentinel-layer .layer-pill strong { font-size: 0.8rem; }
.sentinel-layer .layer-pill small { color: #9fb3c8; font-size: 0.78rem; }
.sentinel-grid--compact .sentinel-layer .layer-pill small { font-size: 0.72rem; }
.layer-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.14rem 0.52rem;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}
.layer-base {
  background: rgba(63, 185, 80, 0.18);
  border-color: rgba(63, 185, 80, 0.45);
  color: #b4f1c2 !important;
}
.layer-padd {
  background: rgba(121, 192, 255, 0.18);
  border-color: rgba(121, 192, 255, 0.45);
  color: #b8dcff !important;
}
.layer-t2 {
  background: rgba(166, 114, 255, 0.2);
  border-color: rgba(166, 114, 255, 0.48);
  color: #dcc4ff !important;
}
.layer-defensive {
  background: rgba(139, 148, 158, 0.18);
  border-color: rgba(139, 148, 158, 0.4);
  color: #d0d7de !important;
}
@media (max-width: 900px) {
  .sentinel-grid--compact { min-width: 560px; }
}

/* Index hub: centered column, balanced cards */
.dash-index-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0.25rem 2rem;
}
.dash-index-main > h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.dash-index-main > h2 {
  text-align: center;
  margin-top: 1.75rem;
}
.dash-db-status {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 0.8rem 0 1.2rem;
}
.hub-cards-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.hub-cards-compact .hub-card {
  flex: 1 1 300px;
  max-width: 440px;
}
.hub-cards.reports-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.hub-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--bord);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hub-card:hover {
  border-color: var(--link);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
}
.hub-card-title {
  color: #f0f6fc;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.hub-card-desc {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}
.reports-grid .hub-card {
  min-height: 108px;
}

/* ── Mobile ≤640px ─────────────────────────────────── */
@media (max-width: 640px) {
  body.dash { padding: 0 0.75rem 2rem; font-size: 0.93rem; }
  .dash-top { margin-left: -0.75rem; margin-right: -0.75rem; }
  h1 { font-size: 1.15rem; }
  h2 { font-size: 0.97rem; }
  .dash-index-main { padding: 0 0 1.5rem; }
  .hub-cards,
  .hub-cards.reports-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .hub-cards-compact .hub-card { flex: 1 1 100%; max-width: 100%; }
  .hub-card { padding: 0.85rem 1rem; }
  .hub-card-title { font-size: 0.9rem; }
  .reports-grid .hub-card { min-height: unset; }
  table { font-size: 0.78rem; }
  th, td { padding: 0.35rem 0.4rem; }
  .signal-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .api-stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .controls { display: flex; flex-wrap: wrap; margin-left: 0; margin-top: 0.4rem; }
}

/* ── Dashboard index：KPI 卡片（与 genesis 页一致的层次、薄荷强调） ── */
.dash-index-main--reports {
  max-width: 1280px;
  padding-top: 0.75rem;
}
.dash-index-eyebrow {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 212, 170, 0.9);
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.dash-index-lead {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
}
.dash-section-heading {
  border: none;
  margin: 2rem 0 1rem;
  padding: 0;
  text-align: center;
}
.dash-section-heading span {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9d1d9;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 170, 0.28);
  background: rgba(0, 212, 170, 0.06);
  box-shadow: 0 0 28px rgba(0, 212, 170, 0.07);
}
.reports-grid--metrics {
  display: grid;
  gap: 0.85rem 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 641px) {
  .reports-grid--metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .reports-grid--metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.reports-grid--metrics.reports-grid--after-cluster {
  margin-top: 1.85rem;
}
.reports-grid--metrics .report-card--compare {
  grid-column: 1 / -1;
}
.reports-grid--tools {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem 1rem;
}
.report-card--metrics {
  position: relative;
  padding: 1.2rem 1.25rem 1rem;
  min-height: 172px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(26, 36, 54, 0.98) 0%, rgba(11, 17, 30, 0.92) 55%, rgba(14, 22, 38, 0.95) 100%);
  border: 1px solid rgba(0, 212, 170, 0.22);
  box-shadow:
    0 0 0 1px rgba(88, 166, 255, 0.07),
    0 10px 36px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}
.report-card--metrics:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 170, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 212, 170, 0.14),
    0 14px 44px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.report-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(42, 52, 68, 0.85);
}
.report-card-brand {
  font-size: 1.14rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.report-card-period {
  font-size: 0.76rem;
  color: #7d8b9a;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.report-card-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
}
.rc-label-row {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 1rem;
}
.rc-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.95;
}
.report-card-stat {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.5rem 0.55rem;
  border-radius: 9px;
  background: rgba(6, 10, 20, 0.45);
}
.report-card-stat .rc-k {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.report-card-stat .rc-v {
  font-size: 1.08rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.report-card-stat--mul {
  border: 1px solid rgba(88, 166, 255, 0.28);
}
.report-card-stat--mul .rc-svg { color: #58a6ff; }
.report-card-stat--mul .rc-k { color: #7ea3c7; }
.report-card-stat--cagr {
  border: 1px solid rgba(63, 185, 80, 0.3);
}
.report-card-stat--cagr .rc-svg { color: #3fb950; }
.report-card-stat--cagr .rc-k { color: #6eb87e; }
.report-card-stat--calmar {
  border: 1px solid rgba(188, 140, 255, 0.28);
}
.report-card-stat--calmar .rc-svg { color: #bc8cff; }
.report-card-stat--calmar .rc-k { color: #a599c6; }
.report-card-stat--mdd {
  border: 1px solid rgba(255, 155, 90, 0.28);
}
.report-card-stat--mdd .rc-svg { color: #ff9b5a; }
.report-card-stat--mdd .rc-k { color: #c49b7a; }
.rc-v--mul { color: #b6e0ff !important; }
.rc-v--cagr { color: #6ef08a !important; }
.rc-v--calmar { color: #e0c4ff !important; }
.rc-v--mdd { color: #ffb86b !important; }
.report-card-cta {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.8rem;
  font-size: 0.76rem;
  color: #6edcbf;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.report-card--compare {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem;
  min-height: unset;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 170, 0.32);
  background: linear-gradient(100deg, rgba(0, 212, 170, 0.1) 0%, rgba(88, 166, 255, 0.06) 45%, rgba(18, 26, 40, 0.9) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.report-card--compare:hover {
  border-color: rgba(0, 212, 170, 0.5);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.26);
}
.compare-card-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 212, 170, 0.25);
  color: #5fe0c0;
}
.compare-card-svg {
  width: 34px;
  height: 34px;
}
.compare-card-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.compare-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f0f6fc;
  letter-spacing: 0.02em;
}
.compare-card-desc {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #8b9bab;
  font-weight: 500;
}
.compare-card-go {
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 300;
  color: rgba(0, 212, 170, 0.85);
  line-height: 1;
}
.report-card--simple {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(42, 52, 68, 0.9);
  background: linear-gradient(145deg, rgba(22, 30, 46, 0.92), rgba(14, 20, 34, 0.88));
  min-height: 88px;
  padding: 1rem 1.1rem;
}
.simple-card-svg-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 212, 170, 0.18);
  color: #5fd4b8;
}
.simple-card-svg {
  width: 22px;
  height: 22px;
}
.simple-card-svg--lg {
  width: 24px;
  height: 24px;
  color: #79c0ff;
}
.simple-card-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.report-card--simple .hub-card-title {
  color: #f0f6fc;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.report-card--simple .hub-card-desc {
  color: #8b9bab;
  font-size: 0.8rem;
  line-height: 1.45;
}
.report-card--simple:hover {
  border-color: rgba(0, 212, 170, 0.38);
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
@media (max-width: 640px) {
  .reports-grid--metrics,
  .reports-grid--tools {
    grid-template-columns: 1fr;
  }
}

/* live.php: 中文主文案 + 旁注英文 */
.live-suben {
  font-size: 0.82em;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.35em;
}
h1 .live-suben,
h2 .live-suben {
  font-size: 0.58em;
  font-weight: 400;
  vertical-align: middle;
}
.live-suben-block {
  display: block;
  margin-top: 0.35rem;
  margin-left: 0;
  max-width: 72ch;
  line-height: 1.45;
}
th .live-suben {
  display: block;
  margin-left: 0;
  margin-top: 0.15rem;
  font-size: 0.78em;
}
.kv > span:first-child .live-suben {
  margin-left: 0.25em;
}

/* live.php 底部：策略渊源与数据口径（要点卡片） */
.live-origin-card {
  background: linear-gradient(160deg, rgba(18, 26, 40, 0.98) 0%, rgba(11, 16, 26, 0.99) 100%);
  border: 1px solid rgba(0, 212, 170, 0.22);
  border-radius: 12px;
  padding: 1rem 1.15rem 1.05rem;
  margin: 1.35rem 0 1rem;
  max-width: 60rem;
  border-left: 4px solid var(--mint);
  box-shadow:
    0 0 0 1px rgba(0, 212, 170, 0.05) inset,
    0 8px 28px rgba(0, 0, 0, 0.28);
}
.live-origin-card__head {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(42, 52, 68, 0.95);
  letter-spacing: 0.02em;
}
.live-origin-card__body {
  font-size: 0.86rem;
  color: #c9d1d9;
  line-height: 1.68;
}
.live-origin-card__body p {
  margin: 0 0 0.55rem;
}
.live-origin-card__body p:last-child {
  margin-bottom: 0;
}
.live-origin-card__body strong {
  color: #e6edf3;
  font-weight: 600;
}
.live-origin-card__emph {
  margin-top: 0.4rem !important;
  padding: 0.55rem 0.7rem;
  background: rgba(0, 212, 170, 0.07);
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 170, 0.16);
  color: #e6edf3 !important;
}
