/* ══════════════════════════════════════════════════════════
   BTC 交易台 · 高端加密交易终端风格
   玻璃拟态 + 极光背景 + 发光质感 + 精致排版
   ══════════════════════════════════════════════════════════ */

:root {
  --bg-0:      #07080d;
  --text:      #f0f3fa;
  --text-mute: #9aa3b8;
  --text-faint:#5d6680;

  --long:      #2fe6a0;   /* 做多 / 涨 — 薄荷绿 */
  --long-glow: rgba(47,230,160,0.45);
  --short:     #ff5d6c;   /* 做空 / 跌 — 珊瑚红 */
  --short-glow:rgba(255,93,108,0.45);
  --accent:    #7c8cff;   /* 品牌靛蓝 */
  --accent-2:  #b794ff;   /* 品牌紫 */
  --warn:      #e6b85c;

  --glass-bg:  linear-gradient(165deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  --glass-brd: rgba(255,255,255,0.10);
  --radius:    20px;
}

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

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro SC",
               "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
body { min-height: 100vh; overflow-x: hidden; }

/* 数字统一等宽对齐 */
.num, .hero-value, .price-value, .chip-num, .metric b, .pos-pnl {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ───────── 极光背景 ───────── */
.aurora {
  position: fixed;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 18% 12%, rgba(124,140,255,0.28), transparent 60%),
    radial-gradient(45% 40% at 85% 8%, rgba(183,148,255,0.22), transparent 60%),
    radial-gradient(50% 45% at 75% 80%, rgba(47,230,160,0.12), transparent 60%),
    radial-gradient(40% 40% at 10% 90%, rgba(255,93,108,0.10), transparent 60%);
  filter: blur(20px);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.08); }
}

/* ───────── 容器 ───────── */
.app {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

/* ───────── 玻璃材质 ───────── */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ───────── Hero ───────── */
.hero {
  padding: 20px 22px 18px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}
.hero::before {  /* 顶部高光描边 */
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(120% 80% at 50% -20%, rgba(124,140,255,0.18), transparent 70%);
  pointer-events: none;
}
.hero-top {
  display: flex; justify-content: space-between; align-items: center;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-name {
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--text), #c7cfe6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--long);
  box-shadow: 0 0 0 0 var(--long-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--long-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(47,230,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,230,160,0); }
}
.ts { font-size: 11.5px; color: var(--text-faint); }

.hero-balance { margin-top: 18px; position: relative; }
.hero-label {
  font-size: 11px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
}
.hero-value {
  font-size: 46px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.08; margin-top: 4px;
  color: var(--text);
}
.hero-value.up   { color: var(--long);  text-shadow: 0 0 28px var(--long-glow); }
.hero-value.down { color: var(--short); text-shadow: 0 0 28px var(--short-glow); }

.hero-metrics {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px; flex-wrap: wrap;
}
.metric { display: flex; align-items: baseline; gap: 6px; }
.metric i { font-style: normal; font-size: 11.5px; color: var(--text-faint); }
.metric b { font-size: 14px; font-weight: 700; color: var(--text); }
.metric-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.12); }

.hero-chips { display: flex; gap: 10px; margin-top: 18px; }
.chip {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 6px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px;
}
.chip-num { font-size: 19px; font-weight: 700; }
.chip-lbl { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

/* ───────── 分段 Tab ───────── */
.segmented {
  display: flex; position: relative;
  margin: 16px 0;
  padding: 5px;
  border-radius: 15px;
}
.seg {
  flex: 1; z-index: 1;
  padding: 9px 4px;
  background: none; border: none;
  color: var(--text-mute);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: color 0.25s;
}
.seg-active { color: var(--text); }
.seg-indicator {
  position: absolute; top: 5px; bottom: 5px;
  width: calc((100% - 10px) / 4);
  left: 5px;
  background: linear-gradient(165deg, rgba(124,140,255,0.30), rgba(183,148,255,0.16));
  border: 1px solid rgba(124,140,255,0.30);
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(124,140,255,0.20);
  transition: transform 0.32s cubic-bezier(0.34,1.3,0.5,1);
}

/* ───────── Section ───────── */
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 4px 2px 12px;
}
.sec-head-2 { margin-top: 26px; }
.sec-head h2 { font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.sec-hint { font-size: 11px; color: var(--text-faint); }

.cards { display: flex; flex-direction: column; gap: 12px; }

/* ───────── 订单卡片 ───────── */
.card {
  position: relative;
  padding: 16px 18px 15px;
  border-radius: 18px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 6px 22px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  animation: fadeUp 0.45s ease both;
}
.card.long  { border-left: 2px solid transparent; }
/* 方向发光边 */
.card.long::after, .card.short::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.card.long::after  { background: linear-gradient(var(--long), transparent);  box-shadow: 0 0 20px 2px var(--long-glow); }
.card.short::after { background: linear-gradient(var(--short), transparent); box-shadow: 0 0 20px 2px var(--short-glow); }

/* 大号幽灵编号 */
.card-ghost {
  position: absolute; right: 12px; top: 2px;
  font-size: 64px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,0.035);
  letter-spacing: -0.04em; pointer-events: none; user-select: none;
}

.card-head { display: flex; align-items: center; gap: 9px; position: relative; }
.card-id { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.badges { display: flex; gap: 6px; margin-left: auto; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  padding: 3px 9px; border-radius: 7px;
}
.badge-coin { background: rgba(255,255,255,0.07); color: var(--text); }
.badge-long  { background: rgba(47,230,160,0.14);  color: var(--long);  }
.badge-short { background: rgba(255,93,108,0.14);  color: var(--short); }
.badge-demo  { background: rgba(124,140,255,0.15); color: var(--accent); }
.badge-live  { background: rgba(255,93,108,0.20);  color: var(--short); }
.badge-dry   { background: rgba(255,255,255,0.06); color: var(--text-mute); }
.badge-manual { background: rgba(210,153,34,0.16); color: var(--warn); }

/* 价格三宫格 */
.prices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin: 14px 0 12px; }
.pcell {
  position: relative;
  padding: 10px 8px 9px;
  border-radius: 12px;
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.pcell::before {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px;
  border-radius: 2px;
}
.pcell.entry::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pcell.sl::before    { background: var(--short);  box-shadow: 0 0 10px var(--short-glow); }
.pcell.tp::before    { background: var(--long);   box-shadow: 0 0 10px var(--long-glow); }
.pcell .lbl { font-size: 10px; color: var(--text-faint); letter-spacing: 0.08em; }
.pcell .price-value { font-size: 14.5px; font-weight: 700; margin-top: 3px; }
.pcell.entry .price-value { color: #aeb8ff; }
.pcell.sl    .price-value { color: #ff97a0; }
.pcell.tp    .price-value { color: #79f0c4; }

/* 风险收益条 */
.rr-wrap { margin: 6px 0 12px; }
.rr-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,0.06); }
.rr-risk { background: linear-gradient(90deg, var(--short), #ff8a94); }
.rr-reward { background: linear-gradient(90deg, #2fe6a0, #79f0c4); }
.rr-legend { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 11.5px; font-weight: 700; }
.rr-legend .rr-ratio { color: var(--text); font-weight: 800; }
.rr-meta { display: flex; gap: 12px; margin-top: 5px; }
.rr-meta-i { font-size: 11px; color: var(--text-faint); }

.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06);
}
.foot-info { font-size: 12px; color: var(--text-mute); }
.foot-info b { color: var(--text); font-weight: 700; }
.pos-pnl { font-size: 14px; font-weight: 800; }
.pos-pnl.up { color: var(--long); } .pos-pnl.down { color: var(--short); }

/* 撤单按钮 */
.btn-x {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none;
  color: var(--short);
  background: rgba(255,93,108,0.12);
  border: 1px solid rgba(255,93,108,0.35);
  transition: all 0.18s;
}
.btn-x:hover { background: var(--short); color: #fff; box-shadow: 0 6px 18px var(--short-glow); transform: translateY(-1px); }
.btn-x:active { transform: translateY(0); }

/* ───────── 空状态 ───────── */
.empty {
  text-align: center; color: var(--text-faint);
  padding: 30px 18px; font-size: 13px; line-height: 1.7;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.10);
  border-radius: 16px;
}

/* ───────── 占位 / 币种选择 ───────── */
.coin-picker { display: flex; gap: 6px; padding: 5px; margin-bottom: 14px; border-radius: 14px; }
.coin {
  flex: 1; padding: 9px; border: none; background: none;
  color: var(--text-mute); font-size: 13px; font-weight: 700;
  border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.coin-active {
  color: #fff;
  background: linear-gradient(165deg, rgba(124,140,255,0.5), rgba(183,148,255,0.3));
  box-shadow: 0 4px 14px rgba(124,140,255,0.25);
}
.placeholder { text-align: center; padding: 44px 24px; }
.ph-icon { font-size: 34px; margin-bottom: 12px; opacity: 0.85; }
.placeholder h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.placeholder p { color: var(--text-faint); font-size: 13px; line-height: 1.7; max-width: 320px; margin: 0 auto; }

/* ───────── 图表卡片 ───────── */
.chart-card { padding: 16px 16px 14px; }
.chart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.chart-title { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.chart-tf {
  font-size: 11px; color: var(--accent); font-weight: 700;
  background: rgba(124,140,255,0.15); padding: 2px 7px; border-radius: 6px; margin-left: 4px;
}
.chart-price { font-size: 15px; font-weight: 800; color: var(--text); }
.chart-price.up { color: var(--long); } .chart-price.down { color: var(--short); }
.chart-wrap { width: 100%; border-radius: 12px; overflow: hidden; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px;
  font-size: 11.5px; font-weight: 600;
}

/* ───────── 账本顶部 ───────── */
.ledger-top { display: flex; gap: 12px; margin-bottom: 14px; }
.gauge-card {
  position: relative; width: 132px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.gauge { width: 104px; height: 104px; }
.gauge-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.gauge-val { font-size: 26px; font-weight: 800; }
.gauge-lbl { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
.ledger-stats {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,0.05); overflow: hidden;
}
.lstat {
  background: rgba(20,22,32,0.55); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.lstat-lbl { font-size: 11px; color: var(--text-faint); }
.lstat-val { font-size: 17px; font-weight: 800; }

/* ───────── 报告卡片 ───────── */
.report-card { cursor: pointer; }
.report-ts { font-size: 14px; font-weight: 700; color: var(--text); }
.report-excerpt { font-size: 12.5px; color: var(--text-mute); margin-top: 10px; line-height: 1.6; }
.report-full { margin-top: 10px; }
.report-full pre {
  white-space: pre-wrap; word-break: break-word;
  font-family: -apple-system, "PingFang SC", system-ui, sans-serif;
  font-size: 12.5px; line-height: 1.7; color: var(--text);
  max-height: 60vh; overflow-y: auto;
  background: rgba(0,0,0,0.25); border: 1px solid var(--line-soft, rgba(255,255,255,0.06));
  border-radius: 10px; padding: 12px 14px;
}
.report-toggle { margin-top: 10px; font-size: 11.5px; color: var(--accent); font-weight: 600; }
.pred-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; padding: 9px 12px;
  background: rgba(124,140,255,0.07); border: 1px solid rgba(124,140,255,0.18);
  border-radius: 10px;
}
.pred-lbl { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }
.pred-note { font-style: normal; font-size: 9.5px; color: var(--text-faint); font-weight: 500; margin-left: 5px; }
.pred-cell { display: flex; align-items: baseline; gap: 5px; }
.pred-cell i { font-style: normal; font-size: 11px; color: var(--text-faint); }
.pred-cell b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ───────── 分析工作台 ───────── */
.analysis-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 4px 2px 14px;
}
.analysis-head h2 { font-size: 19px; letter-spacing: -0.01em; }
.analysis-head p { color: var(--text-faint); font-size: 12px; margin-top: 3px; }
.analysis-live {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--long); font-size: 11px; font-weight: 700;
}
.analysis-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--long);
  box-shadow: 0 0 10px var(--long-glow);
}
.report-shell {
  display: grid; grid-template-columns: 245px minmax(0, 1fr);
  gap: 14px; align-items: start;
}
.report-sidebar {
  position: sticky; top: 12px; padding: 12px; border-radius: 18px;
  max-height: calc(100vh - 30px); overflow: hidden;
}
.sidebar-title {
  padding: 3px 5px 10px; color: var(--text-faint);
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
}
.report-run-list {
  display: flex; flex-direction: column; gap: 7px;
  max-height: calc(100vh - 80px); overflow-y: auto; padding-right: 2px;
}
.report-run {
  width: 100%; padding: 11px 11px 10px; border-radius: 13px;
  text-align: left; color: var(--text); cursor: pointer;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
  transition: border-color .2s, background .2s, transform .2s;
}
.report-run:hover { border-color: rgba(124,140,255,.35); transform: translateY(-1px); }
.report-run.active {
  background: linear-gradient(145deg, rgba(124,140,255,.20), rgba(183,148,255,.08));
  border-color: rgba(124,140,255,.42);
  box-shadow: inset 3px 0 0 var(--accent);
}
.run-top, .run-mid, .run-bottom { display: flex; align-items: center; }
.run-top { justify-content: space-between; gap: 7px; }
.run-top b { font-size: 12px; }
.run-top i, .run-status {
  font-style: normal; font-size: 9.5px; font-weight: 800;
  padding: 2px 6px; border-radius: 10px; white-space: nowrap;
}
.status-success { color: var(--long); background: rgba(47,230,160,.12); }
.status-partial { color: var(--warn); background: rgba(230,184,92,.12); }
.status-failed { color: var(--short); background: rgba(255,93,108,.12); }
.run-mid { gap: 5px; margin-top: 8px; }
.run-bottom { gap: 10px; margin-top: 8px; }
.run-bottom em { color: var(--text-faint); font-size: 9.5px; font-style: normal; }
.report-workspace { min-width: 0; }

.report-hero { padding: 19px 20px; border-radius: 18px; }
.report-hero-top, .report-decision-row, .report-actions, .view-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.report-kicker {
  display: block; color: var(--accent); font-size: 10px; font-weight: 800;
  letter-spacing: .09em; margin-bottom: 3px;
}
.report-hero h3 { font-size: 21px; letter-spacing: -.02em; }
.run-status { font-size: 10.5px; padding: 4px 9px; }
.report-decision-row {
  margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.07);
}
.decision-main { display: flex; align-items: center; gap: 8px; }
.decision-main .badge { font-size: 15px; padding: 6px 13px; border-radius: 10px; }
.decision-main > span { color: var(--text-faint); font-size: 11px; }
.report-facts { display: flex; align-items: center; gap: 18px; }
.report-facts span, .report-levels span { display: flex; flex-direction: column; }
.report-facts i, .report-levels i {
  color: var(--text-faint); font-size: 9.5px; font-style: normal; letter-spacing: .05em;
}
.report-facts b { font-size: 15px; margin-top: 1px; }
.report-levels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px;
}
.report-levels span {
  padding: 10px 12px; border-radius: 11px; background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
}
.report-levels b { font-size: 15px; margin-top: 2px; }
.up { color: var(--long) !important; }
.down { color: var(--short) !important; }
.accent { color: var(--accent) !important; }

.pipeline {
  display: flex; align-items: center; gap: 0; margin-top: 16px;
  padding: 11px 12px; border-radius: 12px; background: rgba(0,0,0,.17);
  overflow-x: auto;
}
.pipe-step {
  position: relative; display: flex; align-items: center; gap: 6px;
  color: var(--text-mute); font-size: 10px; white-space: nowrap;
}
.pipe-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.07); font-weight: 900;
}
.pipe-line { display: block; width: 21px; height: 1px; margin: 0 6px; background: rgba(255,255,255,.12); }
.pipe-done .pipe-dot { color: var(--long); background: rgba(47,230,160,.12); }
.pipe-partial .pipe-dot { color: var(--warn); background: rgba(230,184,92,.12); }
.pipe-failed .pipe-dot { color: var(--short); background: rgba(255,93,108,.12); }
.report-actions { justify-content: flex-start; margin-top: 15px; }
.btn-primary, .btn-secondary, .text-link {
  border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.btn-primary, .btn-secondary {
  padding: 8px 12px; border-radius: 9px; font-size: 11px;
}
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent), #a87cff); }
.btn-secondary {
  color: var(--text-mute); background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}
.text-link { padding: 0; color: var(--accent); background: transparent; font-size: 11px; }

.report-subnav {
  display: flex; gap: 4px; padding: 5px; margin: 11px 0; border-radius: 13px;
  overflow-x: auto;
}
.report-subnav button, .tf-switch button {
  border: 0; background: transparent; color: var(--text-mute); cursor: pointer;
  font-size: 11.5px; font-weight: 700; border-radius: 9px; white-space: nowrap;
}
.report-subnav button { flex: 1; padding: 8px 10px; }
.report-subnav button.active, .tf-switch button.active {
  color: #fff; background: rgba(124,140,255,.26); box-shadow: inset 0 0 0 1px rgba(124,140,255,.28);
}
.report-view { animation: fadeUp .28s ease both; }
.overview-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 11px;
}
.process-card {
  position: relative; min-height: 112px; padding: 14px; text-align: left;
  color: var(--text); cursor: pointer; border-radius: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
}
.process-card:hover { border-color: rgba(124,140,255,.38); }
.process-card span { font-size: 13px; font-weight: 800; }
.process-card p { color: var(--text-mute); font-size: 11px; line-height: 1.55; margin-top: 7px; }
.process-card b { position: absolute; left: 14px; bottom: 12px; color: var(--accent); font-size: 10px; }
.failure-callout {
  padding: 12px 14px; margin: 10px 0; border-radius: 12px;
  color: #ffc0c5; background: rgba(255,93,108,.08); border: 1px solid rgba(255,93,108,.20);
  font-size: 11px; line-height: 1.6;
}
.failure-callout p { margin-top: 4px; white-space: pre-wrap; }
.view-section {
  margin-top: 11px; padding: 16px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
}
.view-title { margin-bottom: 12px; }
.view-title span {
  color: var(--accent); font-size: 8.5px; font-weight: 900; letter-spacing: .13em;
}
.view-title h4 { font-size: 15px; margin-top: 1px; }
.report-doc {
  width: 100%; max-height: 68vh; overflow: auto; white-space: pre-wrap; word-break: break-word;
  color: #d8deed; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.055);
  border-radius: 11px; padding: 14px; font-family: inherit; font-size: 12px; line-height: 1.75;
}

.viz-card {
  padding: 14px; border-radius: 15px; background: var(--glass-bg); border: 1px solid var(--glass-brd);
}
.viz-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.viz-title span { font-size: 12px; font-weight: 800; }
.viz-title i { color: var(--text-faint); font-size: 9.5px; font-style: normal; }
.trend-svg { width: 100%; display: block; }
.tf-switch {
  display: flex; gap: 5px; padding: 5px; margin: 11px 0;
  border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.tf-switch button { padding: 7px 13px; }
.metric-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px;
}
.metric-card {
  padding: 10px 9px; border-radius: 11px; background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.055);
}
.metric-card span { display: block; color: var(--text-faint); font-size: 9px; }
.metric-card b { display: block; margin-top: 3px; font-size: 13px; }
.state-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.state-strip span {
  color: var(--text-mute); font-size: 9.5px; padding: 4px 7px;
  border-radius: 8px; background: rgba(124,140,255,.07); border: 1px solid rgba(124,140,255,.13);
}
.metric-detail-grid, .macro-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px;
}
.level-ladder { display: flex; flex-direction: column; gap: 5px; }
.level-row { display: grid; grid-template-columns: 34px 1fr 76px 56px; gap: 7px; align-items: center; }
.level-row span, .level-row em { color: var(--text-faint); font-size: 9px; font-style: normal; }
.level-row i { height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); }
.level-row b { font-size: 11px; text-align: right; }
.level-row em { text-align: right; }
.level-row.resistance i { background: rgba(255,93,108,.45); }
.level-row.support i { background: rgba(47,230,160,.45); }
.level-row.current { padding: 5px 0; }
.level-row.current i { height: 3px; background: var(--accent); box-shadow: 0 0 8px rgba(124,140,255,.5); }
.level-row.current b { color: var(--accent); font-size: 13px; }
.derivative-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.06); }
.derivative-grid div { padding: 8px 9px; background: rgba(12,14,22,.75); }
.derivative-grid span { display: block; color: var(--text-faint); font-size: 8.5px; }
.derivative-grid b { display: block; font-size: 11.5px; margin-top: 2px; }
.spark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spark-card {
  padding: 11px; border-radius: 12px; background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.055);
}
.spark-card > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.spark-card span { color: var(--text-faint); font-size: 9.5px; }
.spark-card b { font-size: 11px; }
.spark-card svg { width: 100%; display: block; margin-top: 5px; }

.vote-card { padding: 15px; }
.vote-card > div:first-child { display: flex; justify-content: space-between; }
.vote-card span { color: var(--text-mute); font-size: 11px; }
.vote-card b { font-size: 12px; }
.vote-bars { display: flex; gap: 4px; height: 38px; margin-top: 11px; }
.vote-bars span {
  display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px;
  color: #fff; border-radius: 9px;
}
.vote-bars i { font-size: 9px; font-style: normal; }
.vote-long { background: rgba(47,230,160,.38); }
.vote-short { background: rgba(255,93,108,.38); }
.vote-wait { background: rgba(124,140,255,.32); }
.expert-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.expert-card { padding: 0; overflow: hidden; }
.expert-card summary {
  display: flex; align-items: center; gap: 9px; padding: 13px 14px; cursor: pointer; list-style: none;
}
.expert-card summary::-webkit-details-marker { display: none; }
.expert-index {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  color: var(--accent); background: rgba(124,140,255,.12); border-radius: 9px; font-weight: 900;
}
.expert-name { flex: 1; min-width: 0; }
.expert-name b, .expert-name i { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expert-name b { font-size: 12px; }
.expert-name i { color: var(--text-faint); font-size: 9px; font-style: normal; margin-top: 2px; }
.expert-confidence { color: var(--text-mute); font-size: 11px; font-weight: 800; }
.expert-excerpt { color: var(--text-mute); font-size: 11px; line-height: 1.6; padding: 0 14px 13px; }
.expert-doc { margin: 0 12px 12px; width: calc(100% - 24px); max-height: 62vh; }

.macro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.macro-card {
  padding: 11px; border-radius: 12px; background: var(--glass-bg); border: 1px solid var(--glass-brd);
}
.macro-card span, .macro-card b, .macro-card i { display: block; }
.macro-card span { color: var(--text-faint); font-size: 9px; }
.macro-card b { font-size: 14px; margin-top: 3px; }
.macro-card i { font-style: normal; font-size: 9.5px; margin-top: 2px; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item {
  padding: 0; overflow: hidden; cursor: zoom-in; color: var(--text); text-align: left;
}
.gallery-item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #090a10; }
.gallery-item span { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.gallery-item b { font-size: 11px; }
.gallery-item i { color: var(--accent); font-size: 9px; font-style: normal; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 25px; background: rgba(0,0,0,.88); backdrop-filter: blur(12px);
}
.lightbox.show { display: flex; }
.lightbox figure { max-width: min(1100px, 96vw); max-height: 92vh; }
.lightbox img { display: block; max-width: 100%; max-height: 86vh; border-radius: 13px; }
.lightbox figcaption { color: var(--text-mute); text-align: center; margin-top: 8px; }
.lightbox-close {
  position: fixed; right: 22px; top: 16px; color: #fff; background: transparent; border: 0;
  font-size: 34px; cursor: pointer;
}
.chart-context {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; margin-bottom: 11px; border-radius: 13px;
}
.chart-context span, .chart-context b { display: block; }
.chart-context span { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.chart-context b { font-size: 11.5px; margin-top: 2px; }

/* ───────── Toast ───────── */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(8px);
  padding: 11px 18px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: rgba(20,22,32,0.9);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ───────── 动画 ───────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.10s; }
.card:nth-child(4) { animation-delay: 0.15s; }

/* ───────── 移动端 ───────── */
@media (max-width: 820px) {
  .report-shell { grid-template-columns: 1fr; }
  .report-sidebar { position: static; max-height: none; padding: 9px; }
  .report-run-list {
    flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden;
    padding: 0 0 3px;
  }
  .report-run { min-width: 205px; }
  .sidebar-title { padding-bottom: 7px; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .spark-grid { grid-template-columns: repeat(2, 1fr); }
  .macro-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 430px) {
  .app { padding: 14px 12px 32px; }
  .hero-value { font-size: 40px; }
  .prices { gap: 7px; }
  .pcell { padding: 9px 5px 8px; }
  .card-ghost { font-size: 54px; }
  .analysis-head { align-items: flex-start; }
  .analysis-head p { max-width: 250px; }
  .analysis-live { display: none; }
  .report-hero { padding: 15px; }
  .report-hero h3 { font-size: 18px; }
  .report-decision-row { align-items: flex-start; }
  .report-facts { gap: 9px; }
  .report-facts b { font-size: 12px; }
  .pipeline { padding: 9px; }
  .pipe-line { width: 12px; margin: 0 3px; }
  .report-subnav button { padding: 8px 11px; flex: none; }
  .overview-grid, .metric-detail-grid, .macro-summary-grid, .gallery-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .spark-grid { grid-template-columns: 1fr 1fr; }
  .macro-grid { grid-template-columns: repeat(2, 1fr); }
  .view-section { padding: 13px; }
  .report-doc { padding: 12px; font-size: 11.5px; }
  .expert-card summary { gap: 7px; padding: 11px; }
  .expert-card .badge { display: none; }
  .chart-context { align-items: flex-start; }
}
