/* ══════════════════════════════════════════════════════════════════════════
   IQH Dashboard · Tech-Cyber Style
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg-base: #050b14;
  --bg-card: #0a1526;
  --bg-card-hover: #0e1d35;
  --bg-modal: #0d1a2e;
  --border: #1a3050;
  --border-glow: #0d6efd44;
  --accent: #00d4ff;
  --accent2: #7c3aed;
  --accent-green: #00e676;
  --accent-red: #ff1744;
  --accent-yellow: #ffea00;
  --text-primary: #e0eaff;
  --text-secondary: #6b8cad;
  --text-dim: #3a5470;
  --glow-blue: 0 0 16px #00d4ff44;
  --glow-purple: 0 0 16px #7c3aed44;
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #1a3050; border-radius: 3px; }

/* ─── NAV ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(5,11,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
}

.nav-left { display: flex; align-items: center; gap: 10px; }

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}



.logo-sub {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-time { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.nav-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  padding: 2px 8px;
  border-radius: 20px;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}


/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

/* ─── Claim Report Banner ────────────────────────────────────────────────── */
.claim-report-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.claim-report-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ff0080 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  animation: claimBtnGrad 4s ease infinite, claimBtnPulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(0,212,255,0.45), 0 0 48px rgba(124,58,237,0.3);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
  overflow: hidden;
}

.claim-report-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.claim-report-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 36px rgba(0,212,255,0.65), 0 0 64px rgba(124,58,237,0.5), 0 8px 32px rgba(0,0,0,0.4);
}

.claim-report-btn:active {
  transform: translateY(0) scale(0.98);
}

.claim-report-icon {
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
  animation: claimIconSpin 3s ease-in-out infinite;
}

.claim-report-arrow {
  font-size: 16px;
  opacity: 0.85;
  transition: transform .2s;
}

.claim-report-btn:hover .claim-report-arrow {
  transform: translateX(4px);
}

@keyframes claimBtnGrad {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes claimBtnPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(0,212,255,0.45), 0 0 48px rgba(124,58,237,0.3); }
  50%       { box-shadow: 0 0 36px rgba(0,212,255,0.7), 0 0 72px rgba(255,0,128,0.4), 0 0 12px rgba(255,255,255,0.15); }
}

@keyframes claimIconSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%       { transform: rotate(-15deg) scale(1.15); }
  75%       { transform: rotate(15deg) scale(1.15); }
}

/* ─── Section ────────────────────────────────────────────────────────────── */
.section { margin-bottom: 48px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.section-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}

/* ─── Grid ───────────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 12px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 72px 12px 40px; }
}

/* ─── Card ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, background .2s, box-shadow .2s;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.card.clickable { cursor: pointer; }

.card.clickable:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  box-shadow: var(--glow-blue);
}

.card.clickable:hover::before { opacity: 1; }

.card-wide { width: 100%; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }

/* ─── Card Header ────────────────────────────────────────────────────────── */
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.card-header.tight { padding: 8px 16px; }

.card-icon { font-size: 16px; }
.card-label { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
.card-freq {
  font-size: 10px;
  color: var(--text-dim);
  border: 1px solid var(--text-dim);
  padding: 1px 6px;
  border-radius: 10px;
}
.card-freq.live { color: var(--accent-green); border-color: var(--accent-green); }

/* ─── Card Body ──────────────────────────────────────────────────────────── */
.card-body { padding: 12px 16px; }

.card-meta { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.meta-value { font-size: 20px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.meta-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #1a3050;
  color: var(--text-secondary);
}
.meta-change { font-size: 12px; font-variant-numeric: tabular-nums; }
.meta-change.pos { color: var(--accent-green); }
.meta-change.neg { color: var(--accent-red); }

/* ─── Mini Charts ────────────────────────────────────────────────────────── */
.gauge-wrap { height: 100px; }
.mini-chart { height: 80px; }
.chart-lg { height: 200px; }
.chart-kline { height: 420px; }
.chart-sub { height: 160px; }
.chart-pie { height: 180px; }
.chart-modal { height: 380px; }

/* ─── Card Chart ─────────────────────────────────────────────────────────── */
.card-chart { }

/* ─── Ticker Price ───────────────────────────────────────────────────────── */
.ticker-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 12px;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.ticker-change {
  font-size: 13px;
  font-weight: 600;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  transition: color .3s;
}

/* ─── Live Dot ───────────────────────────────────────────────────────────── */
.live-dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Chart Controls ─────────────────────────────────────────────────────── */
.chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.sym-group, .iv-group { display: flex; gap: 4px; }

.overlay-toggles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.toggle-lbl {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.toggle-lbl input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px; height: 14px;
}

/* ─── Tabs / Buttons ─────────────────────────────────────────────────────── */
.tab {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
}

.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #000; }

.tab-group { display: flex; gap: 4px; margin-left: auto; }

.btn-toggle {
  margin-left: auto;
  padding: 3px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
}
.btn-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Bull Market ────────────────────────────────────────────────────────── */
.bull-body { padding: 16px; }
.bull-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }

.bull-item {
  background: #081220;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bull-item-symbol {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.bull-item-name { font-size: 12px; color: var(--text-secondary); }
.bull-item-val { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bull-signal-sell { color: var(--accent-red); }
.bull-signal-hold { color: var(--accent-yellow); }
.bull-signal-buy { color: var(--accent-green); }
.bull-signal-neutral { color: var(--text-secondary); }

.hidden { display: none !important; }

/* ─── Whale List ─────────────────────────────────────────────────────────── */
.whale-list {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.whale-item {
  background: #081220;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
}

.whale-row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.whale-symbol { font-weight: 700; color: var(--accent); font-size: 13px; }
.whale-time { font-size: 10px; color: var(--text-dim); }
.whale-action-buy { color: var(--accent-green); font-weight: 700; }
.whale-action-sell { color: var(--accent-red); font-weight: 700; }
.whale-size { font-size: 12px; color: var(--text-secondary); }

/* ─── Position List ──────────────────────────────────────────────────────── */

.pos-sym { font-weight: 700; color: var(--accent); }
.pos-side-long { color: var(--accent-green); font-weight: 700; }
.pos-side-short { color: var(--accent-red); font-weight: 700; }
.pos-num { font-variant-numeric: tabular-nums; color: var(--text-secondary); font-size: 11px; }
.pos-pnl-pos { color: var(--accent-green); font-variant-numeric: tabular-nums; }
.pos-pnl-neg { color: var(--accent-red); font-variant-numeric: tabular-nums; }

/* ─── Event List ─────────────────────────────────────────────────────────── */
.event-list {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-item {
  background: #081220;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
}

.event-item.imp-high { border-left-color: var(--accent-red); }
.event-item.imp-med { border-left-color: var(--accent-yellow); }
.event-item.imp-low { border-left-color: var(--text-dim); }

.event-time { font-size: 10px; color: var(--text-dim); margin-bottom: 3px; }
.event-title { font-weight: 600; color: var(--text-primary); }
.event-meta { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.event-tag { font-size: 10px; color: var(--text-secondary); background: #112; padding: 1px 6px; border-radius: 3px; }
.event-actual { color: var(--accent-green); font-weight: 700; }
.event-forecast { color: var(--text-secondary); }

/* ─── News Tabs ──────────────────────────────────────────────────────────── */
.news-tabs { display: flex; gap: 4px; margin-bottom: 10px; }

.news-item {
  background: #081220;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
}

.news-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
  transition: color .15s;
  line-height: 1.4;
}
.news-item a:hover { color: var(--accent); }

.news-meta { display: flex; justify-content: space-between; }
.news-source { font-size: 10px; color: var(--accent2); }
.news-time { font-size: 10px; color: var(--text-dim); }

.flash-item {
  background: #081220;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
}
.flash-time { flex-shrink: 0; font-size: 10px; color: var(--text-dim); padding-top: 2px; }
.flash-content { line-height: 1.5; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: block; }

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(900px, 96vw);
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px #000a, var(--glow-blue);
  z-index: 1010;
  display: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
}

.modal.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  transition: color .15s;
}
.modal-close:hover { color: var(--accent-red); }

.modal-body { padding: 16px 20px 20px; }

/* ─── Scanline ───────────────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,212,255,0.012) 2px,
    rgba(0,212,255,0.012) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ─── Loading ────────────────────────────────────────────────────────────── */
.loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
}

/* card 级别加载/错误遮罩 */
.card-loading,
.card-error {
  position: relative;
}

/* 加载时：顶部细线动画，不遮挡内容、不阻断交互 */
.card-loading::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: card-scan .9s linear infinite;
  z-index: 4;
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}
@keyframes card-scan {
  0%   { left: -100%; width: 60%; }
  100% { left: 140%;  width: 60%; }
}

/* 错误态：仅显示遮罩（首次无数据时才插入 overlay） */
.card-state-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(5,11,20,0.75);
  z-index: 5;
  border-radius: var(--radius);
  pointer-events: none;  /* 错误遮罩也不阻断点击 */
}

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.spinner-sm {
  width: 16px; height: 16px;
  border-width: 2px;
}

.card-state-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.card-state-label.error {
  color: var(--accent-red);
}

/* 内联行加载 */
.inline-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 12px;
}



/* ─── Data Grid ──────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  padding: 6px 10px;
  background: #081220;
  color: var(--text-dim);
  font-weight: 600;
  text-align: left;
  letter-spacing: 1px;
  font-size: 10px;
  text-transform: uppercase;
}

.data-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #0e1d35; }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-accent { color: var(--accent); }
.fw-bold { font-weight: 700; }

/* ─── Whale addr badge (clickable copy) ─────────────────────────────────── */
.whale-addr-badge {
  display: inline-block;
  font-size: 11px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 700;
  color: #00d4ff;
  background: rgba(0,212,255,0.10);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background .15s, color .15s;
  user-select: none;
  word-break: break-all;
  white-space: normal;
}
.whale-addr-badge:hover {
  background: rgba(0,212,255,0.22);
  color: #fff;
}
/* 持仓列表里的地址全显示（撑满一格） */
.whale-addr-full {
  display: block;
  width: 100%;
  font-size: 10px;
}
/* 提醒列表里地址单独一行 */
.whale-addr-line {
  margin: 4px 0 2px;
}

.whale-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

/* pos-hdr: header row for position list */
.pos-hdr {
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.6fr 1fr 1fr;
  gap: 4px;
  padding: 4px 12px;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #04090f;
  border-radius: var(--radius-sm);
}
.pos-item {
  background: #081220;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.6fr 1fr 1fr;
  gap: 4px;
  align-items: center;
  cursor: pointer;
  transition: background .15s;
}
.pos-item:hover { background: #0e1d35; }

/* 排序图标 */
.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable:hover { color: var(--accent); }
.sort-icon { font-size: 10px; margin-left: 2px; opacity: 0.7; }
.sort-asc, .sort-desc { color: var(--accent); opacity: 1; }

/* 移动端排序标签栏（默认隐藏，仅 ≤480px 显示） */
.mobile-sort-bar {
  display: none;
}

/* 搜索框 */
.list-search-wrap {
  padding: 6px 0 4px;
}
.list-search-input {
  width: 100%;
  background: #081220;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  padding: 5px 10px;
  outline: none;
  box-sizing: border-box;
}
.list-search-input:focus { border-color: var(--accent); }
.list-search-input::placeholder { color: var(--text-dim); }

/* 鲸鱼提醒排序头 */
.list-sort-hdr {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 0 2px;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.list-sort-hdr span { cursor: pointer; }
.list-sort-hdr span:hover { color: var(--accent); }
.wa-hdr-action { flex: 1; text-align: center; }
.wa-hdr-time { margin-left: auto; }

/* clickable-item hover */
.clickable-item { cursor: pointer; transition: background .15s, border-color .15s; }
.clickable-item:hover { background: #0e1d35 !important; border-color: var(--accent) !important; }

/* whale item clickable */
.whale-item { cursor: pointer; transition: background .15s; }
.whale-item:hover { background: #0d1c30; }

/* news title row (replacing <a>) */
.news-title-row {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
  line-height: 1.4;
}
.news-item:hover .news-title-row { color: var(--accent); }

/* ─── Detail Modal ───────────────────────────────────────────────────────── */
.modal-detail { width: min(600px, 96vw); }
.modal-detail .modal-body { max-height: 70vh; overflow-y: auto; }

.detail-grid { display: flex; flex-direction: column; gap: 0; }
.detail-row {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.detail-row:last-child { border-bottom: none; }
.detail-lbl {
  flex-shrink: 0;
  width: 90px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  padding-top: 1px;
}
.detail-lbl::after {
  content: "：";
}
.detail-val {
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}
.addr-full {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  color: #00d4ff;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.addr-full:hover { background: rgba(0,212,255,0.18); }

.detail-news { display: flex; flex-direction: column; gap: 12px; }
.detail-news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.source-logo { height: 18px; width: auto; border-radius: 3px; }
.detail-news-title { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.5; }
.detail-news-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-height: 400px;
  overflow-y: auto;
}
.detail-news-content p { margin-bottom: 8px; }
.detail-news-content img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  margin: 8px 0;
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 2px;
  flex-wrap: wrap;
}
.pagination .pg-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1.6;
}
.pagination .pg-btn:hover { background: var(--border); color: var(--text-primary); }
.pagination .pg-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.pagination .pg-btn:disabled { opacity: 0.35; cursor: default; }
.pagination .pg-info { font-size: 11px; color: var(--text-dim); white-space: nowrap; }

/* ─── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.4);
  color: #00d4ff;
  font-size: 13px;
  padding: 8px 22px;
  border-radius: 20px;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Whale Transfer Table ───────────────────────────────────────────────── */
.tx-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 1000px;
  table-layout: fixed;
}
/* 各列固定宽度 */
.tx-table th:nth-child(1), .tx-table td:nth-child(1) { width: 138px; }  /* 时间 */
.tx-table th:nth-child(2), .tx-table td:nth-child(2) { width: 56px;  }  /* 币种 */
.tx-table th:nth-child(3), .tx-table td:nth-child(3) { width: 100px; }  /* 金额 */
.tx-table th:nth-child(4), .tx-table td:nth-child(4) { width: 100px; }  /* 数量 */
.tx-table th:nth-child(5), .tx-table td:nth-child(5) { width: 76px;  }  /* 链 */
.tx-table th:nth-child(6), .tx-table td:nth-child(6) { width: 160px; }  /* 发送方 */
.tx-table th:nth-child(7), .tx-table td:nth-child(7) { width: 160px; }  /* 接收方 */
.tx-table th:nth-child(8), .tx-table td:nth-child(8) { width: 210px; }  /* 哈希 */
.tx-table th {
  background: #0d1e33;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 7px 10px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.tx-table th.sortable { cursor: pointer; }
.tx-table th.sortable:hover { color: var(--accent); }
.tx-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #0d1e3388;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-table tr:hover td { background: #0e1d3566; }
.tx-time { color: var(--text-secondary); font-size: 11px; }
.tx-sym  { color: var(--accent); font-weight: 600; }
.tx-amt  { color: var(--accent-green); font-weight: 600; }
.tx-qty  { color: var(--text-secondary); }
.tx-chain { color: var(--accent2); }
.tx-addr { color: var(--text-secondary); font-size: 11px; cursor: default; }
.tx-hash { color: var(--text-dim); font-size: 11px; font-family: monospace; cursor: default; }
.tx-hash-copy { color: var(--accent); cursor: pointer; transition: color .15s; font-family: monospace; font-size: 11px; }
.tx-hash-copy:hover { color: #fff; text-decoration: underline; }

/* ─── Exchange Balance chart height ─────────────────────────────────────── */
#exBalChart { min-height: 260px; }

/* ─── Section 1 Sentiment Layout ────────────────────────────────────────── */
.sentiment-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  align-items: stretch;
}

.sentiment-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sentiment-right {
  display: flex;
  flex-direction: column;
}

.sentiment-etf-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sentiment-etf-body .chart-lg {
  flex: 1;
  height: auto;
  min-height: 200px;
}

@media (max-width: 900px) {
  .sentiment-layout {
    grid-template-columns: 1fr;
  }
  .sentiment-etf-body .chart-lg {
    min-height: 200px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   移动端响应式优化  ≤ 768px
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── NAV ─────────────────────────────────────────────────────────── */
  .nav { height: 48px; padding: 0 14px; }
  .logo { font-size: 18px; letter-spacing: 2px; }
  .logo-img { height: 40px; }
  .logo-sub { display: none; }
  .nav-time { display: none; }
  .nav-badge { font-size: 9px; padding: 2px 6px; letter-spacing: 1px; }
  .nav-ai { font-size: 16px; }

  /* ── Ticker ──────────────────────────────────────────────────────── */
  .ticker-price  { font-size: 15px; margin-left: 8px; }
  .ticker-change { font-size: 11px; }

  /* ── Container ───────────────────────────────────────────────────── */
  .container { padding: 60px 10px 32px; }
  .section { margin-bottom: 32px; }
  .section-title { font-size: 13px; margin-bottom: 12px; }
  .claim-report-btn { font-size: 13px; padding: 11px 22px; letter-spacing: 1px; }
  .claim-report-wrap { margin-bottom: 20px; }

  /* ── Card ────────────────────────────────────────────────────────── */
  .card-header { padding: 10px 12px; }
  .card-body   { padding: 10px 12px; }
  .card-label  { font-size: 12px; }
  .meta-value  { font-size: 17px; }

  /* ── Tabs ────────────────────────────────────────────────────────── */
  .tab { padding: 3px 8px; font-size: 11px; }
  .tab-group { gap: 3px; flex-wrap: wrap; }

  /* ── 图表高度 ─────────────────────────────────────────────────────── */
  .chart-kline { height: 300px; }
  .chart-sub   { height: 160px; }
  .chart-pie   { height: 150px; }
  .chart-lg    { height: 160px; }
  .chart-modal { height: 260px; }
  .gauge-wrap  { height: 80px; }
  .mini-chart  { height: 60px; }
  #exBalChart  { min-height: 160px; }

  /* ── Section 1 情绪面板 ───────────────────────────────────────────── */
  .sentiment-layout { grid-template-columns: 1fr; gap: 10px; }
  .sentiment-etf-body .chart-lg { min-height: 160px; }

  /* ── Section 2 合约控制栏 ─────────────────────────────────────────── */
  .chart-controls { gap: 8px; }
  .sym-group, .iv-group { flex-wrap: wrap; gap: 3px; }
  .overlay-toggles {
    margin-left: 0;
    width: 100%;
    gap: 8px;
  }
  .toggle-lbl { font-size: 11px; }

  /* ── Section 3 鲸鱼列表 ───────────────────────────────────────────── */
  .whale-list { max-height: 280px; }
  .whale-item { padding: 7px 10px; }
  .pos-item   { font-size: 11px; padding: 7px 10px; }
  .pos-hdr    { font-size: 9px; padding: 3px 10px; }

  /* ── Section 4 大额转账 ───────────────────────────────────────────── */
  /* 移动端改为卡片列表，隐藏表格 */
  .tx-table-wrap { display: none !important; }
  .tx-cards { display: flex !important; flex-direction: column; gap: 8px; }

  /* ── Section 5 资讯 ───────────────────────────────────────────────── */
  .event-list  { max-height: 240px; }
  .event-item  { padding: 7px 10px; }
  .news-item   { padding: 7px 10px; }
  .flash-item  { padding: 7px 10px; }
  .bull-grid   { grid-template-columns: 1fr; }

  /* ── Modal ───────────────────────────────────────────────────────── */
  .modal {
    top: auto; left: 0; right: 0; bottom: 0;
    transform: translateY(100%);
    width: 100%;
    max-height: 85vh;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: opacity .25s, transform .25s;
    overflow: hidden;
  }
  .modal.active {
    transform: translateY(0);
    opacity: 1;
  }
  .modal-body  { max-height: calc(85vh - 52px); overflow-y: auto; padding: 14px 14px 24px; }
  .modal-header { padding: 12px 14px; }

  /* 详情弹窗（新闻/快讯/鲸鱼/经济日历）移动端居中显示 */
  .modal-detail {
    top: 50%; left: 50%; right: auto; bottom: auto;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(480px, 92vw);
    max-height: 80vh;
    border-radius: var(--radius);
  }
  .modal-detail.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  .modal-detail .modal-body { max-height: calc(80vh - 52px); }

  /* ── Pagination ──────────────────────────────────────────────────── */
  .pagination .pg-btn { padding: 4px 10px; font-size: 11px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   超小屏  ≤ 480px
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 56px 8px 24px; }
  .logo { font-size: 16px; }
  .logo-img { height: 32px; }
  .chart-kline { height: 260px; }
  .chart-sub   { height: 140px; }
  .overlay-toggles { gap: 6px; }
  /* 超小屏：持仓列表改为两行布局 */
  .pos-hdr { display: none; }

  /* 移动端排序栏 */
  .mobile-sort-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 4px 0 6px;
  }
  .msb-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    font-size: 11px;
    color: var(--text-secondary);
    background: #0b1a2e;
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s, background .15s;
  }
  .msb-btn:active { opacity: 0.7; }
  .msb-btn.msb-active {
    color: var(--accent);
    border-color: var(--accent);
    background: #0d2240;
  }
  .msb-icon { font-size: 10px; margin-left: 1px; }
  .pos-item {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    padding: 8px 10px;
  }
  .pos-item > *:nth-child(1) { width: 100%; font-size: 11px; }
  .pos-item > *:nth-child(2) { font-size: 11px; }
  .pos-item > *:nth-child(3) { font-size: 11px; }
  .pos-item > *:nth-child(4) { font-size: 11px; }
  .pos-item > *:nth-child(4)::before { content: 'Val: '; color: var(--text-dim); font-size: 10px; }
  .pos-item > *:nth-child(5) { font-size: 11px; display: inline-block !important; }
  .pos-item > *:nth-child(5)::before { content: 'PnL: '; color: var(--text-dim); font-size: 10px; }
}

/* ── 移动端大额转账卡片样式 ──────────────────────────────────────────────── */
.tx-cards { display: none; }   /* 桌面端隐藏，移动端由上面 media 开启 */

/* 移动端卡片列表限高可滚动 */
@media (max-width: 768px) {
  .tx-cards {
    max-height: 420px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.tx-card {
  background: #081220;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tx-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.tx-card-label {
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
  width: 52px;
}

.tx-card-val {
  flex: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tx-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.tx-card-sym  { font-weight: 700; color: var(--accent); font-size: 14px; }
.tx-card-amt  { font-weight: 700; color: var(--accent-green); font-size: 13px; }

/* ─── K线区块加载遮罩 ────────────────────────────────────────────────────── */
.chart-loading-wrap {
  position: relative;
}
.chart-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius);
  pointer-events: none;
  animation: fadeInOverlay .15s ease;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.chart-loading-overlay .spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(0, 212, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinRing .7s linear infinite;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AI 报告弹窗 (modal-report)
   ═══════════════════════════════════════════════════════════════════════════ */

/* NAV AI 按钮 */
.nav-ai {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  animation: navAiBlink 2s infinite;
  user-select: none;
  padding: 2px 6px;
}
.nav-ai:hover {
  background: linear-gradient(90deg, #7c3aed, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-ai.loading {
  opacity: 0.5;
  cursor: wait;
}
@keyframes navAiBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* 报告弹窗覆盖层 */
.report-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 8000;
  backdrop-filter: blur(4px);
}
.report-modal-overlay.active { display: block; }

/* 报告弹窗容器 */
.report-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 96vw);
  max-height: 92vh;
  background: #06101e;
  border: 1px solid #1a3050;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  z-index: 8001;
  flex-direction: column;
  overflow: hidden;
}
.report-modal.active {
  display: flex;
  animation: reportSlideIn .3s ease;
}
@keyframes reportSlideIn {
  from { opacity: 0; transform: translate(-50%, -52%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* 报告弹窗头部 */
.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #0e2040;
  flex-shrink: 0;
}
.report-modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-modal-icon {
  font-size: 20px;
}
.report-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #e8f4fd;
  letter-spacing: 0.5px;
}
.report-session-tag-body {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 6px;
  padding: 5px 14px;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
  white-space: nowrap;
}

.report-modal-date {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
}
.report-modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  line-height: 1;
}
.report-modal-close:hover { color: #e8f4fd; background: rgba(255,255,255,0.06); }

/* 报告倒计时（正文内嵌卡片） */
.report-countdown-wrap {
  margin: 0 0 18px 0;
}
.report-countdown-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(77,184,255,0.04) 100%);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 10px;
  padding: 12px 18px;
}
.report-countdown-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-countdown-icon {
  font-size: 16px;
  line-height: 1;
}
.report-countdown-hint {
  font-size: 13px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.report-countdown-timer {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #4db8ff;
  letter-spacing: .08em;
  font-family: 'Courier New', Courier, monospace;
  margin-left: 4px;
}
.report-countdown-sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: .02em;
}
.report-countdown-sub strong {
  color: #8ecfff;
  font-weight: 600;
}
@media (max-width: 480px) {
  .report-countdown-inner { padding: 10px 14px; gap: 4px; }
  .report-countdown-timer { font-size: 17px; }
  .report-countdown-hint  { font-size: 12px; }
  .report-countdown-sub   { font-size: 10px; }
}

/* 报告弹窗内容区 */
.report-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 28px;
  -webkit-overflow-scrolling: touch;
}

/* 报告加载状态 */
.report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  color: var(--text-dim);
}
.report-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(124,58,237,0.15);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spinRing .8s linear infinite;
}
.report-loading-text { font-size: 13px; }

/* 报告无数据提示 */
.report-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  color: var(--text-dim);
  font-size: 13px;
}
.report-empty-icon { font-size: 40px; opacity: .4; }

/* ─── AI 报告内容样式（.ai-report 内部）─────────────────────────────────── */
.ai-report {
  font-size: 14px;
  line-height: 1.75;
  color: #c8daea;
}

/* 报告头部英雄区 */
.report-hero {
  text-align: center;
  padding: 20px 0 16px;
  border-bottom: 1px solid #0e2040;
  margin-bottom: 24px;
}
.report-hero-badge {
  display: inline-block;
  padding: 3px 12px;
  background: linear-gradient(90deg, rgba(124,58,237,0.25), rgba(0,212,255,0.18));
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.report-title {
  font-size: 20px;
  font-weight: 800;
  color: #e8f4fd;
  margin: 6px 0 8px;
  background: linear-gradient(90deg, #00d4ff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.report-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.report-date {
  font-size: 12px;
  color: var(--text-dim);
}
.report-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 10px;
  font-size: 11px;
  color: #5aa8cc;
}

/* 置顶摘要卡片 */
.report-summary-card {
  background: linear-gradient(135deg, rgba(10,22,40,0.95) 0%, rgba(5,15,30,0.9) 100%);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 12px;
  padding: 18px 20px 16px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0,212,255,0.06);
}
.rsc-title {
  font-size: 13px;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.rsc-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.rsc-tag {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(13,28,50,0.7);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 10px;
  padding: 10px 8px;
}
.rsc-icon { font-size: 20px; line-height: 1; }
.rsc-label { font-size: 11px; color: #6b8ca8; }
.rsc-value { font-size: 14px; font-weight: 700; color: #e8f4fd; }
/* 风险等级着色 */
.rsc-tag.tag-safe  { border-color: rgba(34,197,94,0.3); }
.rsc-tag.tag-safe .rsc-value  { color: #4ade80; }
.rsc-tag.tag-warn  { border-color: rgba(250,204,21,0.3); }
.rsc-tag.tag-warn .rsc-value  { color: #facc15; }
.rsc-tag.tag-danger { border-color: rgba(239,68,68,0.35); }
.rsc-tag.tag-danger .rsc-value { color: #f87171; }
.rsc-verdict {
  font-size: 13px;
  color: #b8cdd8;
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  border-left: 3px solid rgba(0,212,255,0.4);
  border-radius: 0 6px 6px 0;
}

/* 目录 */
.report-toc {
  background: rgba(13,28,50,0.6);
  border: 1px solid #0e2040;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.toc-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.toc-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toc-item {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 4px;
  font-size: 12px;
  color: #5ab8d4;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.toc-item:hover { background: rgba(0,212,255,0.14); color: #00d4ff; }

/* 报告章节 */
.report-chapter {
  margin-bottom: 28px;
  border: 1px solid #0e2040;
  border-radius: 10px;
  overflow: hidden;
}
.chapter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(13,28,50,0.9), rgba(10,21,38,0.7));
  border-bottom: 1px solid #0e2040;
  cursor: pointer;
  user-select: none;
}
.chapter-header:hover { background: linear-gradient(90deg, rgba(18,36,62,0.95), rgba(14,27,48,0.8)); }
.chapter-icon { font-size: 18px; }
.chapter-title {
  font-size: 15px;
  font-weight: 700;
  color: #e8f4fd;
  margin: 0;
  flex: 1;
}
.chapter-toggle {
  font-size: 13px;
  color: #4a9eca;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.report-chapter.collapsed .chapter-toggle { transform: rotate(-90deg); }
.report-chapter.collapsed .chapter-header { border-bottom: none; }
.chapter-body {
  padding: 16px 18px;
  background: rgba(8,18,32,0.4);
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
  max-height: 9999px;
  opacity: 1;
}
.report-chapter.collapsed .chapter-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

/* 章节内部样式（AI 生成内容） */
.chapter-body h4 {
  font-size: 13px;
  font-weight: 700;
  color: #7dd3fc;
  margin: 12px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(125,211,252,0.15);
}
.chapter-body h4:first-child { margin-top: 0; }
.chapter-body p {
  margin: 6px 0;
  color: #b8cdd8;
  font-size: 13px;
}
.chapter-body ul, .chapter-body ol {
  margin: 6px 0 8px 16px;
  padding: 0;
}
.chapter-body li {
  font-size: 13px;
  color: #b8cdd8;
  margin-bottom: 4px;
}

/* 洞察条目 */
.insight-item {
  background: rgba(13,28,50,0.5);
  border-left: 3px solid rgba(0,212,255,0.3);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.insight-item:last-child { margin-bottom: 0; }

/* 信号标签 */
.highlight-pos {
  color: #4ade80;
  font-weight: 600;
  background: rgba(74,222,128,0.1);
  padding: 1px 5px;
  border-radius: 3px;
}
.highlight-neg {
  color: #f87171;
  font-weight: 600;
  background: rgba(248,113,113,0.1);
  padding: 1px 5px;
  border-radius: 3px;
}
.highlight-neu {
  color: #fbbf24;
  font-weight: 600;
  background: rgba(251,191,36,0.1);
  padding: 1px 5px;
  border-radius: 3px;
}
.tag-up { color: #4ade80; font-size: 12px; }
.tag-down { color: #f87171; font-size: 12px; }

/* 今日结论框 */
.today-verdict {
  margin-top: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(0,212,255,0.1));
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #e8f4fd;
  text-align: center;
  letter-spacing: 0.3px;
}

/* 报告底部免责声明 */
.report-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #0e2040;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}
.report-footer p { margin: 3px 0; }
.report-gen-time { color: #2a4560; }

/* 占位错误 */
.error-placeholder {
  color: #e87070;
  font-size: 12px;
  padding: 10px;
  background: rgba(248,113,113,0.07);
  border-radius: 6px;
}

/* ─── 移动端报告弹窗适配 ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .report-modal {
    width: 100vw;
    max-height: 100vh;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
    border: none;
  }
  .report-modal.active {
    animation: reportSlideUp .3s ease;
  }
  @keyframes reportSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .report-modal-body { padding: 14px 14px 24px; }
  .report-title { font-size: 16px; }
  .chapter-header { padding: 10px 14px; }
  .chapter-body { padding: 12px 14px; }
  .toc-items { gap: 6px; }
  .toc-item { font-size: 11px; padding: 3px 8px; }
}
.tx-card-time { font-size: 10px; color: var(--text-dim); }
