/* ============================================
   AI美股推文追踪工具 - 暗色主题样式
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(99, 102, 241, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --accent-pink: #ec4899;
  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-card: linear-gradient(145deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(99,102,241,0.08), transparent),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(168,85,247,0.06), transparent),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6,182,212,0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: var(--accent-cyan); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-hero);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 16px rgba(99,102,241,0.3);
}

.logo-text span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15));
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
  white-space: nowrap;
}

/* ---- Navigation Tabs ---- */
.nav-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.nav-tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.nav-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-tab.active {
  background: var(--gradient-hero);
  color: white;
  box-shadow: 0 2px 10px rgba(99,102,241,0.3);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.btn-primary {
  background: var(--gradient-hero);
  border: none;
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
  transform: translateY(-1px);
}

.btn-success { border-color: rgba(16,185,129,0.3); color: var(--accent-green); }
.btn-success:hover { background: rgba(16,185,129,0.1); box-shadow: 0 0 16px rgba(16,185,129,0.15); }

.btn-danger { border-color: rgba(239,68,68,0.3); color: var(--accent-red); }
.btn-danger:hover { background: rgba(239,68,68,0.1); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 10px; }

/* ---- Main Layout ---- */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .icon { font-size: 20px; }

/* ---- Grid Layouts ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; background: var(--gradient-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.grid-main { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 24px; }

/* ---- Tweet Timeline ---- */
.tweet-item {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  background: var(--bg-glass);
  transition: var(--transition);
}

.tweet-item:hover { border-color: var(--border-glow); background: rgba(255,255,255,0.04); }

.tweet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tweet-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tweet-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.tweet-name { font-weight: 600; font-size: 14px; }
.tweet-handle { color: var(--text-muted); font-size: 12px; }
.tweet-date { color: var(--text-muted); font-size: 12px; }

.tweet-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.tweet-type-badge.tweet {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.tweet-type-badge.reply {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.tweet-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
  word-break: break-word;
}

.tweet-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ticker-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
}

.ticker-tag.bullish { background: rgba(16,185,129,0.12); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.2); }
.ticker-tag.bearish { background: rgba(239,68,68,0.12); color: var(--accent-red); border: 1px solid rgba(239,68,68,0.2); }
.ticker-tag.neutral { background: rgba(148,163,184,0.12); color: var(--text-secondary); border: 1px solid rgba(148,163,184,0.2); }
.ticker-tag:hover { transform: scale(1.05); }

.tweet-analysis {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.1);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* ---- Tweet Filters ---- */
.tweet-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-input {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
  min-height: auto;
}

.filter-input::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

.filter-clear-btn {
  padding: 4px 8px !important;
  font-size: 11px !important;
  min-height: auto !important;
  border: 1px solid var(--border-color) !important;
  background: transparent !important;
  color: var(--text-muted) !important;
}

.filter-clear-btn:hover {
  color: var(--accent-red) !important;
  border-color: rgba(239,68,68,0.3) !important;
}

.filter-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.03);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.filter-tab {
  padding: 4px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  min-height: auto;
}

.filter-tab:hover { color: var(--text-primary); }
.filter-tab.active {
  background: rgba(99,102,241,0.2);
  color: var(--accent-purple);
  font-weight: 600;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  min-height: auto;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(99,102,241,0.1);
  color: var(--text-primary);
  border-color: rgba(99,102,241,0.3);
}

.pagination-btn.active {
  background: rgba(99,102,241,0.2);
  color: var(--accent-purple);
  border-color: rgba(99,102,241,0.4);
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 8px;
}

/* ---- Compact Blogger Cards (Tweets Sidebar) ---- */
.blogger-grid-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blogger-card-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.blogger-card-compact:hover {
  border-color: rgba(99,102,241,0.2);
  background: rgba(255,255,255,0.04);
}

.blogger-card-compact.disabled { opacity: 0.4; }

.blogger-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.blogger-info-compact { flex: 1; min-width: 0; }
.blogger-name-sm { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.blogger-handle-sm { font-size: 11px; color: var(--text-muted); }
.blogger-focus-sm {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blogger-actions-compact {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.btn-icon-sm {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
  min-height: auto;
}

.btn-icon-sm:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  color: var(--text-primary);
}

.btn-icon-sm.danger:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: var(--accent-red);
}

/* ---- Tweet Translation ---- */
.tweet-translation {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary);
}

.translation-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 4px;
  margin-right: 6px;
  opacity: 0.8;
}

/* ---- Sentiment Badge ---- */
.sentiment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.sentiment-badge.bullish { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.sentiment-badge.bearish { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.sentiment-badge.neutral { background: rgba(148,163,184,0.15); color: var(--text-secondary); }

/* ---- Hot Tickers Bar ---- */
.hot-tickers-list { display: flex; flex-direction: column; gap: 8px; }

.hot-ticker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.hot-ticker-row:hover { background: rgba(99,102,241,0.08); border-color: var(--border-glow); }

.hot-ticker-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--gradient-hero);
  color: white;
  flex-shrink: 0;
}

.hot-ticker-rank.rank-other { background: rgba(100,116,139,0.3); color: var(--text-secondary); }

.hot-ticker-symbol { font-weight: 700; font-size: 14px; flex: 1; }
.hot-ticker-count { font-size: 13px; color: var(--text-muted); }

.hot-ticker-bar {
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.hot-ticker-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-hero);
  transition: width 0.6s ease;
}

/* ---- Supply Chain View ---- */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }

.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.sector-card:hover { border-color: var(--border-glow); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.sector-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sector-icon { font-size: 22px; }
.sector-name { font-weight: 600; font-size: 15px; flex: 1; }
.sector-count { font-size: 12px; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 10px; }

.sector-companies { padding: 12px; }

.company-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.company-row:hover { background: rgba(99,102,241,0.08); }

.company-ticker {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-cyan);
  width: 52px;
  flex-shrink: 0;
}

.company-name { font-size: 13px; color: var(--text-secondary); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chokepoint-stars { font-size: 10px; color: var(--accent-amber); flex-shrink: 0; letter-spacing: 1px; }

/* ---- Phase Blocks ---- */
.phase-block {
  margin-bottom: 32px;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  border-left-width: 4px;
}

.phase-icon { font-size: 28px; }

.phase-info { flex: 1; }
.phase-name { font-size: 18px; font-weight: 700; }
.phase-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.phase-badge {
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ---- Market Data in Company Row ---- */
.company-market {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.mkt-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mkt-cap {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 1px 6px;
  border-radius: 4px;
}

.mkt-change {
  font-size: 11px;
  font-weight: 700;
  min-width: 52px;
  text-align: right;
}

.mkt-change.bullish { color: var(--accent-green); }
.mkt-change.bearish { color: var(--accent-red); }
.mkt-change.neutral { color: var(--text-muted); }

.mkt-hint {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}
.company-row:hover .mkt-hint { opacity: 1; color: var(--accent-cyan); }

/* ---- Company Detail Market Stats ---- */
.company-market-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.market-stat { flex: 1; text-align: center; }
.market-stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.market-stat-value { font-size: 18px; font-weight: 700; }
.market-stat-value.bullish { color: var(--accent-green); }
.market-stat-value.bearish { color: var(--accent-red); }
.market-stat-value.neutral { color: var(--text-secondary); }

/* ---- Market Data Refresh Button ---- */
.btn-refresh { position: relative; }
.btn-refresh.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  border-top-color: var(--accent-purple);
  animation: spin 1s linear infinite;
}

/* ---- Rotation Phases ---- */
.rotation-timeline {
  display: flex;
  gap: 0;
  position: relative;
}

.rotation-phase {
  flex: 1;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition);
}

.rotation-phase:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.rotation-phase-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.rotation-phase-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.rotation-phase-period { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }

.rotation-phase-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.rotation-phase-tickers { display: flex; flex-wrap: wrap; gap: 6px; }

.rotation-connector {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  z-index: 2;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 10px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.form-select { appearance: none; cursor: pointer; }

/* ---- Blogger Cards ---- */
.blogger-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.blogger-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  transition: var(--transition);
}

.blogger-card:hover { border-color: var(--border-glow); background: rgba(255,255,255,0.04); }
.blogger-card.priority-1 { border-left: 3px solid var(--accent-purple); }
.blogger-card.disabled { opacity: 0.4; }

.blogger-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.blogger-info { flex: 1; min-width: 0; }
.blogger-name { font-weight: 600; font-size: 14px; }
.blogger-handle { color: var(--text-muted); font-size: 12px; }
.blogger-focus { font-size: 11px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.blogger-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ---- Company Detail Panel ---- */
.company-detail { padding: 20px; }

.company-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.company-detail-ticker {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.company-detail-name { font-size: 16px; color: var(--text-secondary); }

.company-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
  border: 1px solid rgba(99,102,241,0.2);
}

.rank-label {
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rank-sector {
  font-size: 12px;
  color: var(--text-muted);
}

.company-moat {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.12);
}

.moat-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 8px;
}

.moat-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.company-highlights {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.12);
}

.highlights-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 8px;
}

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

.highlights-list li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 3px 0 3px 16px;
  position: relative;
}

.highlights-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-amber);
}

.relations-section { margin-top: 16px; }
.relations-title { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

.relations-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.relation-chip {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid;
}

.relation-chip.upstream { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2); color: var(--accent-amber); }
.relation-chip.downstream { background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.2); color: var(--accent-cyan); }
.relation-chip.related { background: rgba(148,163,184,0.1); border-color: rgba(148,163,184,0.2); color: var(--text-secondary); }
.relation-chip:hover { transform: scale(1.05); }

/* ---- Daily Summary ---- */
.summary-card {
  background: var(--gradient-card);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.summary-mood {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.summary-mood.bullish { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.summary-mood.bearish { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.summary-mood.neutral { background: rgba(148,163,184,0.15); color: var(--text-secondary); }
.summary-mood.mixed { background: rgba(245,158,11,0.15); color: var(--accent-amber); }

.summary-text { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }

.summary-themes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.theme-tag {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.15);
  color: var(--accent-purple);
}

/* ---- Loading & Empty States ---- */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
  gap: 10px;
}

.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state-desc { font-size: 13px; margin-bottom: 20px; }

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.toast.success { background: rgba(16,185,129,0.9); color: white; }
.toast.error { background: rgba(239,68,68,0.9); color: white; }
.toast.info { background: rgba(99,102,241,0.9); color: white; }

@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-main { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .rotation-timeline { flex-direction: column; }
  .rotation-connector { display: none; }
}

/* ========== Mobile Menu Button (Hamburger) ========== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  z-index: 101;
  min-height: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Mobile Nav Drawer ========== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 999;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open { right: 0; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-header .logo { font-size: 16px; }
.mobile-nav-header .logo-icon { width: 30px; height: 30px; font-size: 15px; }

.mobile-nav-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
}

.mobile-nav-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 4px;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-align: left;
  min-height: auto;
  width: 100%;
}

.mobile-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.mobile-nav-item.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-purple);
  font-weight: 600;
}

.mobile-nav-actions {
  padding: 16px 12px;
  border-top: 1px solid var(--border-color);
}

body.menu-open { overflow: hidden; }

/* ========== 768px Breakpoint (Tablets & Large Phones) ========== */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .mobile-nav { display: flex; }
  .nav-tabs { display: none !important; }
  .header-actions { display: none !important; }

  .header { padding: 0 16px; }
  .header-inner {
    height: 56px;
    gap: 8px;
  }

  .logo-text { font-size: 16px; }
  .logo-icon { width: 32px; height: 32px; font-size: 16px; }

  .main-content { padding: 16px; }

  /* 指数条紧凑化 */
  .nasdaq-bar {
    gap: 12px;
    padding: 8px 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
  }
  .nasdaq-item { gap: 6px; }
  .nasdaq-label { font-size: 11px; }
  .nasdaq-price { font-size: 13px; }

  /* 统计卡片 2列 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }

  /* 布局全部单列 */
  .grid-main { grid-template-columns: 1fr; gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }

  /* 卡片 */
  .card { padding: 16px; border-radius: var(--radius-md); }
  .card-header { margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
  .card-title { font-size: 15px; }

  /* 产业链板块卡片 */
  .sector-grid { grid-template-columns: 1fr; }
  .sector-header { padding: 12px 16px; }

  /* 公司行 - 市场数据在小屏隐藏市值 */
  .company-market { gap: 6px; }
  .mkt-cap { display: none; }
  .mkt-hint { display: none; }

  /* 博主卡片 */
  .blogger-grid { grid-template-columns: 1fr; }

  /* 推文列表 */
  .tweet-item { padding: 14px; }
  .tweet-content { font-size: 13px; }
  .tweet-actions { flex-wrap: wrap; }

  /* 弹窗适配 */
  .modal {
    width: 95%;
    max-width: none;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    margin: 16px;
  }
  .modal-header { padding: 16px; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; }

  /* Toast 通知 */
  .toast-container {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
  }
  .toast { max-width: none; }

  /* 轮动时间线 */
  .rotation-timeline { flex-direction: column; gap: 12px; }
  .rotation-connector { display: none; }
  .rotation-phase { padding: 16px; }
  .rotation-phase-name { font-size: 14px; }

  /* 表格可横向滚动 */
  table { min-width: 480px; }

  /* 公司详情 */
  .company-detail { padding: 16px; }
  .company-detail-header { gap: 12px; }
  .company-detail-ticker { font-size: 22px; }
  .company-detail-name { font-size: 14px; }
  .company-market-detail { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .market-stat { min-width: 40%; }
  .market-stat-value { font-size: 16px; }

  /* 阶段头 */
  .phase-header { padding: 12px 16px; gap: 10px; }
  .phase-icon { font-size: 22px; }
  .phase-name { font-size: 15px; }
}

/* ========== 480px Breakpoint (Small Phones) ========== */
@media (max-width: 480px) {
  .header { padding: 0 12px; }
  .header-inner { height: 50px; }

  .logo { gap: 8px; }
  .logo-text { font-size: 14px; }
  .logo-icon { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }

  .main-content { padding: 12px; }

  /* 指数条竖排 */
  .nasdaq-bar {
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
  }
  .nasdaq-item { justify-content: center; }
  .nasdaq-cap { display: none; }

  /* 统计网格 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-label { font-size: 11px; }
  .stat-value { font-size: 20px; }
  .stat-sub { font-size: 11px; }

  /* 卡片更紧凑 */
  .card { padding: 12px; }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .card-title { font-size: 14px; }
  .card-title .icon { font-size: 16px; }

  /* 公司行简化 */
  .company-row { padding: 6px 8px; gap: 8px; }
  .company-ticker { width: 44px; font-size: 12px; }
  .company-name { font-size: 12px; }
  .chokepoint-stars { font-size: 9px; }
  .company-market { gap: 4px; }
  .mkt-price { font-size: 11px; }
  .mkt-change { font-size: 10px; min-width: 44px; }

  /* 推文 */
  .tweet-item { padding: 12px; margin-bottom: 8px; }
  .tweet-avatar { width: 28px; height: 28px; font-size: 12px; }
  .tweet-name { font-size: 13px; }
  .tweet-handle { font-size: 11px; }
  .tweet-date { font-size: 11px; }
  .tweet-content { font-size: 13px; line-height: 1.6; }
  .ticker-tag { font-size: 11px; padding: 2px 8px; }
  .tweet-analysis { font-size: 12px; padding: 10px; }
  .tweet-actions .btn { font-size: 11px; padding: 5px 10px; }

  /* 博主 */
  .blogger-card { padding: 12px; gap: 10px; }
  .blogger-avatar { width: 34px; height: 34px; font-size: 14px; }
  .blogger-name { font-size: 13px; }
  .blogger-handle { font-size: 11px; }

  /* 弹窗全屏化 */
  .modal {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  .modal-header { padding: 14px 16px; }
  .modal-title { font-size: 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer {
    padding: 12px 16px;
    flex-direction: column;
  }
  .modal-footer .btn { width: 100%; justify-content: center; }

  /* 排名按钮换行 */
  .tabs { gap: 6px; }
  .tabs .btn-sm { padding: 5px 10px; font-size: 11px; }

  /* 轮动 */
  .rotation-phase { padding: 12px; }
  .rotation-phase-name { font-size: 13px; }
  .rotation-phase-period { font-size: 11px; }
  .rotation-phase-tickers .ticker-tag { font-size: 10px; }

  /* 日报 */
  .summary-card { padding: 16px; }
  .summary-text { font-size: 13px; }
  .theme-tag { font-size: 11px; padding: 3px 10px; }

  /* 详情页 */
  .company-detail { padding: 12px; }
  .company-detail-ticker { font-size: 20px; }
  .company-market-detail {
    flex-direction: column;
    gap: 8px;
  }
  .market-stat { text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .market-stat-label { margin-bottom: 0; }
  .market-stat-value { font-size: 15px; }

  .company-rank-badge { padding: 4px 12px; font-size: 12px; }
  .company-moat, .company-highlights { padding: 10px; }
  .moat-title, .highlights-title { font-size: 12px; }
  .moat-text, .highlights-list li { font-size: 12px; }

  .relations-chips { gap: 4px; }
  .relation-chip { font-size: 11px; padding: 3px 10px; }

  /* 按钮通用 */
  .btn { padding: 8px 14px; font-size: 12px; }
  .btn-primary { padding: 10px 16px; }
}

/* ========== Safe Area (Notch Phones) ========== */
@supports (padding: env(safe-area-inset-bottom)) {
  .header { padding-top: env(safe-area-inset-top); }
  .modal-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .mobile-nav { padding-bottom: env(safe-area-inset-bottom); }
  .toast-container { bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ========== 纳斯达克指数条样式 (Dark Theme) ========== */
.nasdaq-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 10px 24px;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  z-index: 10;
}

.nasdaq-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nasdaq-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.nasdaq-price {
  font-weight: 600;
  color: var(--text-primary);
  font-family: monospace;
}

.nasdaq-change {
  font-weight: bold;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.nasdaq-change.bullish {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.nasdaq-change.bearish {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.nasdaq-refresh {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: transform 0.3s ease;
  min-height: auto;
}

.nasdaq-refresh:hover {
  color: var(--text-primary);
  transform: rotate(180deg);
  background: transparent;
}

.nasdaq-refresh.spinning {
  animation: spin 1s linear infinite;
}

/* ========== Nasdaq 标签 & Badge ========== */
.tag-nasdaq-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-left: 6px;
  vertical-align: middle;
}

/* ========== Touch Interaction Enhancements ========== */
@media (hover: none) and (pointer: coarse) {
  /* 移除 hover 效果，避免触控时残留 */
  .card:hover { border-color: var(--border-color); box-shadow: none; }
  .stat-card:hover { transform: none; box-shadow: none; }
  .stat-card:hover::before { opacity: 0; }
  .sector-card:hover { transform: none; box-shadow: none; border-color: var(--border-color); }
  .company-row:hover { background: transparent; }
  .tweet-item:hover { border-color: var(--border-color); background: var(--bg-glass); }
  .btn-primary:hover { transform: none; }
  .ticker-tag:hover { transform: none; }
  .relation-chip:hover { transform: none; }

  /* 增大触控热区 */
  .company-row { padding: 10px 12px; min-height: 44px; }
  .nav-tab { min-height: 44px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
}

/* ---- Report Page ---- */
.report-date-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.report-stat-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  text-align: center;
}

.report-stat-num {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.report-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.report-section {
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
}

.report-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.report-commentary {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.report-commentary strong {
  color: var(--accent-cyan);
}

/* Report Tickers */
.report-tickers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.report-ticker-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
}

.report-ticker-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.report-ticker-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-cyan);
  display: inline;
  margin-left: 8px;
}

.report-ticker-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.report-ticker-ctx {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.ctx-item {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ctx-item strong { color: var(--accent-purple); }

/* Report Bars */
.report-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  width: 60px;
  text-align: right;
  flex-shrink: 0;
}

.report-bar-track {
  flex: 1;
  height: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  overflow: hidden;
}

.report-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  min-width: 4px;
  transition: width 0.6s ease;
}

.report-bar-count {
  font-size: 12px;
  color: var(--text-muted);
  width: 50px;
  flex-shrink: 0;
}

/* Report Phases */
.report-phases {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.report-phase-card {
  flex: 1;
  min-width: 180px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
}

.report-phase-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.report-phase-period {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.report-phase-status {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.report-phase-status.active {
  background: rgba(16,185,129,0.15);
  color: var(--accent-green);
}

.report-phase-stocks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.ticker-pill {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99,102,241,0.12);
  color: #818cf8;
}

/* Blogger Insights */
.report-blogger-insight {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.report-blogger-insight:last-child { border-bottom: none; }

.insight-blogger-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 6px;
}

.insight-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.insight-tickers {
  display: inline;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-left: 4px;
}

@media (max-width: 768px) {
  .report-stats { grid-template-columns: repeat(2, 1fr); }
  .report-tickers { grid-template-columns: 1fr; }
  .report-phases { flex-direction: column; }
  .report-bar-label { width: 45px; font-size: 11px; }
}
