/* ============================================
   Stellaris — 自主投研操作系统
   金融暗色主题（复用 chain-news-site 风格并进化）
   ============================================ */

/* === CSS Variables === */
:root {
  /* Stellaris 品牌色 */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-glow: rgba(37, 99, 235, 0.3);
  --accent: #10b981;
  --accent-green: #22c55e;
  --accent-red: #ef4444;

  /* 背景 */
  --bg-body: #0a0e1a;
  --bg-surface: #1a2332;
  --bg-card: #1e293b;
  --bg-card-hover: #243044;
  --bg-active: #1e3a5f;
  --bg-gradient: linear-gradient(135deg, #0a0e1a 0%, #111827 100%);

  /* 文字 */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-brand: #60a5fa;

  /* 边框 */
  --border: #334155;
  --border-light: #475569;

  /* 产业链节点颜色 */
  --color-upstream: #ef4444;
  --color-midstream: #f59e0b;
  --color-downstream: #22c55e;
  --color-equipment: #8b5cf6;
  --color-service: #06b6d4;
  --color-external: #ec4899;

  /* A股涨跌色 */
  --color-rise: #ef4444;
  --color-fall: #22c55e;

  /* 尺寸 */
  --navbar-height: 64px;
  --hero-height: 420px;
  --card-radius: 12px;
  --btn-radius: 8px;

  /* 动画 */
  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === Typography === */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

a { color: var(--text-brand); text-decoration: none; }
a:hover { color: var(--primary-light); }

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  display: none;
}

@media (min-width: 768px) {
  .brand-subtitle { display: inline; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--border); }
}

.navbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.navbar-actions::-webkit-scrollbar { display: none; }

.nav-link {
  color: var(--text-secondary);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

/* === Hero Section === */
.hero {
  padding: calc(var(--navbar-height) + 48px) 24px 48px;
  text-align: center;
  position: relative;
  
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-brand);
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* === Stats Bar === */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* === Main Content === */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* === Section Headers === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2 {
  color: var(--text-primary);
}

.section-title .count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 10px;
}

/* === Brief Cards === */
.brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.brief-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  
}

.brief-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

.brief-card:hover::before { opacity: 1; }

.brief-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.brief-type-badge.morning { background: rgba(37, 99, 235, 0.12); color: var(--text-brand); }
.brief-type-badge.editor { background: rgba(16, 185, 129, 0.12); color: var(--accent); }
.brief-type-badge.chain { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
.brief-type-badge.mailbox { background: rgba(6, 182, 212, 0.12); color: var(--color-service); }

.brief-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  
}

.brief-card .summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  
  margin-bottom: 12px;
}

.brief-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.brief-card .meta .confidence {
  margin-left: auto;
}

.confidence-high { color: var(--accent-green); }
.confidence-mid { color: var(--color-midstream); }
.confidence-low { color: var(--accent-red); }

/* === Chain Grid (Industry Grid) === */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}

.chain-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.chain-item:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.chain-item .chain-code {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.chain-item .chain-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* === Chain Detail View === */
.chain-detail {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 28px;
}

.chain-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.chain-detail-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.chain-detail-header .chain-code-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 12px;
}

.chain-detail-stats {
  display: flex;
  gap: 20px;
}

.chain-detail-stats .stat {
  text-align: center;
}

.chain-detail-stats .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.chain-detail-stats .stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Node group section */
.node-group {
  margin-bottom: 24px;
}

.node-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.node-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: var(--transition);
}

.node-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.node-card .node-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.node-card .node-category {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.node-card .node-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.node-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.node-type-badge.upstream { background: rgba(239,68,68,0.2); color: #fca5a5; }
.node-type-badge.midstream { background: rgba(245,158,11,0.2); color: #fcd34d; }
.node-type-badge.downstream { background: rgba(34,197,94,0.2); color: #86efac; }
.node-type-badge.equipment { background: rgba(139,92,246,0.2); color: #c4b5fd; }
.node-type-badge.service { background: rgba(6,182,212,0.2); color: #67e8f9; }
.node-type-badge.external { background: rgba(236,72,153,0.2); color: #f9a8d4; }

/* Relation section */
.relations-section {
  margin-top: 8px;
}

.relation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  transition: var(--transition);
}

.relation-item:hover {
  border-color: var(--primary);
}

.relation-item .rel-source,
.relation-item .rel-target {
  font-weight: 600;
  color: var(--text-primary);
}

.relation-item .rel-arrow {
  color: var(--text-muted);
  font-weight: 300;
}

.relation-item .rel-type {
  color: var(--text-brand);
  font-size: 11px;
  background: var(--bg-active);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.relation-item .rel-desc {
  color: var(--text-secondary);
  flex: 1;
  
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  transition: var(--transition);
  margin-bottom: 16px;
}

.back-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  background: var(--bg-active);
}

@media (max-width: 768px) {
  .chain-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .node-group-grid {
    grid-template-columns: 1fr;
  }
  .relation-item {
    flex-wrap: wrap;
  }
}

.node-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.node-upstream { background: var(--color-upstream); }
.node-midstream { background: var(--color-midstream); }
.node-downstream { background: var(--color-downstream); }
.node-equipment { background: var(--color-equipment); }
.node-service { background: var(--color-service); }

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 13px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--btn-radius);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 4px 16px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* === Loading Skeleton === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 140px;
  border-radius: var(--card-radius);
  margin-bottom: 16px;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.footer a { color: var(--text-secondary); }

/* === Responsive === */
@media (max-width: 640px) {
  .hero { padding: calc(var(--navbar-height) + 32px) 16px 32px; }
  .hero h1 { font-size: 1.6rem; }
  .stats-bar { gap: 16px; padding: 16px; }
  .stat-value { font-size: 22px; }
  .brief-grid { grid-template-columns: 1fr; }
  .chain-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .main-content { padding: 20px 16px; }
  .navbar { padding: 0 16px; }
}

/* === Brief View (Detail Page Overlay / Page) === */
.brief-detail {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px;
  margin-bottom: 24px;
}

.brief-detail h1 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.brief-detail .brief-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.brief-detail .brief-content {
  line-height: 1.8;
  font-size: 14px;
}

.brief-detail .brief-content h2 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.brief-detail .brief-content p {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.brief-detail .brief-content strong {
  color: var(--text-primary);
}

.brief-detail .brief-content ul {
  margin: 8px 0 16px 20px;
  color: var(--text-secondary);
}

.brief-detail .brief-content li {
  margin-bottom: 6px;
}

/* ============================================
   日报矩阵视图
   ============================================ */

/* Tab 切换 */
.brief-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border,#334155);
}
.brief-tabs .btn-ghost {
  font-size: 13px;
  padding: 8px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.15s;
  border-radius: 0;
  margin-bottom: -1px;
}
.brief-tabs .btn-ghost:hover {
  color: var(--text-primary);
  background: transparent;
}
.brief-tabs .btn-ghost.active {
  color: var(--primary-light,#8b5cf6);
  border-bottom-color: var(--primary-light,#8b5cf6);
  background: transparent;
}

/* 矩阵加载 */
.matrix-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* 层级标题 */
.matrix-layer {
  margin-bottom: 20px;
}
.matrix-layer-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.matrix-layer-title .layer-badge {
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 10px;
}
.layer-cmd .layer-badge { background: rgba(83, 74, 183, 0.2); color: #AFA9EC; }
.layer-sig .layer-badge { background: rgba(37, 99, 235, 0.2); color: #85B7EB; }
.layer-gov .layer-badge { background: rgba(133, 79, 11, 0.2); color: #FAC775; }

/* 模块卡片 */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.matrix-full {
  grid-column: 1 / -1;
}
.m-card {
  background: var(--bg-card);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
}
.m-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.m-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}
.m-card-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.status-ready { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-stale { background: rgba(250, 204, 21, 0.15); color: #facc15; }
.status-pending { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.status-unavailable { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.m-card-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 主线总结 */
.summary-headline {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.summary-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  flex-wrap: wrap;
}
.summary-meta span {
  color: var(--text-muted);
}
.summary-meta strong {
  color: var(--text-secondary);
}

/* 情绪雷达 */
.sentiment-bar {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.sentiment-item {
  font-size: 11px;
}
.sentiment-up { color: var(--accent-green); }
.sentiment-flat { color: #facc15; }
.sentiment-down { color: var(--accent-red); }

/* 头栏 */
.header-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
}
.header-meta .hm-item {
  background: rgba(255,255,255,0.04);
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--text-muted);
}

/* 行业信号行 */
.signal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.signal-row:last-child {
  border-bottom: none;
}
.signal-name {
  font-size: 12px;
  color: var(--text-primary);
  width: 90px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-stance {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 500;
  text-align: center;
  flex-shrink: 0;
  min-width: 36px;
}
.signal-up { background: rgba(34,197,94,0.15); color: #4ade80; }
.signal-down { background: rgba(239,68,68,0.15); color: #f87171; }
.signal-flat { background: rgba(250,204,21,0.15); color: #facc15; }
.signal-text {
  font-size: 11px;
  color: var(--text-muted);
  flex: 1;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.signal-dir {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  flex-shrink: 0;
  min-width: 28px;
}

/* Top 事件 */
.event-item {
  padding: 6px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.event-item:last-child { border-bottom: none; }
.event-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.event-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.event-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.event-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

/* 交叉验证四栏 */
.xv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.xv-item {
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
}
.xv-verified { background: rgba(34,197,94,0.1); }
.xv-gap { background: rgba(250,204,21,0.1); }
.xv-conflict { background: rgba(239,68,68,0.1); }
.xv-pending { background: rgba(100,116,139,0.1); }
.xv-label { font-size: 10px; display: block; margin-bottom: 2px; }
.xv-verified .xv-label { color: #4ade80; }
.xv-gap .xv-label { color: #facc15; }
.xv-conflict .xv-label { color: #f87171; }
.xv-pending .xv-label { color: #94a3b8; }

/* 风险项 */
.risk-item {
  padding: 5px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  font-size: 11px;
}
.risk-item:last-child { border-bottom: none; }
.risk-name { color: var(--text-primary); font-weight: 500; }
.risk-meta { color: var(--text-muted); font-size: 10px; margin-top: 2px; }

/* 跨资产 */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
}
.asset-item { }
.asset-label { font-size: 10px; color: var(--text-muted); display: block; margin-bottom: 2px; }
.asset-value { font-size: 14px; font-weight: 500; color: var(--text-primary); display: block; }
.asset-change { font-size: 11px; display: block; }

/* 底部版本 */
.matrix-footer {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 8px 0;
}

/* 空占位 */
.matrix-placeholder {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
}

/* 行业信号矩阵 — 增强版 */
.im-bar-wrap {
  margin-bottom: 10px;
}
.im-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  
  margin-bottom: 4px;
}
.im-bar-seg { transition: flex 0.3s; }
.im-bullish { background: var(--accent-green); opacity: 0.7; }
.im-neutral { background: #facc15; opacity: 0.7; }
.im-bearish { background: var(--accent-red); opacity: 0.7; }
.im-bar-labels {
  display: flex;
  gap: 12px;
  font-size: 11px;
}

/* 集中标签 */
.im-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.im-tag-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  flex-wrap: wrap;
}
.im-tag-label {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 2px;
}
.im-tag-up { background: rgba(34,197,94,0.15); color: #4ade80; }
.im-tag-down { background: rgba(239,68,68,0.15); color: #f87171; }
.im-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
}
.im-tag-up-bg { background: rgba(34,197,94,0.08); color: #4ade80; }
.im-tag-down-bg { background: rgba(239,68,68,0.08); color: #f87171; }

/* 分组 */
.im-group { margin-bottom: 4px; }
.im-group-title {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.im-group-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.im-group-count {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

/* 展开按钮 */
.im-expand-btn {
  
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 4px;
  flex-shrink: 0;
  user-select: none;
}
.im-expand-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

/* 详情区域 */
.im-detail {
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 2px 0 6px 0;
  font-size: 11px;
  line-height: 1.6;
}
.im-detail-section {
  margin-bottom: 4px;
}
.im-detail-section:last-child {
  margin-bottom: 0;
}
.diff-summary { background: rgba(255,255,255,0.02); border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; }

/* Top事件卡片 */
.top-events-card { margin-bottom: 6px; }
.top-event-item:hover { background: rgba(255,255,255,0.03); border-radius: 4px; }
.top-event-chain { display:inline-block; font-size:9px; color:var(--color-text-info); background:var(--color-text-info)15; border:0.5px solid var(--color-text-info)30; border-radius:3px; padding:0 4px; margin:1px 2px 1px 0; }

/* 事件详情弹窗 */
.event-section { margin-bottom: 12px; padding: 10px; background: rgba(255,255,255,0.02); border-radius: 8px; }
.event-section-title { font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.event-grid-item { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.event-label { color: var(--text-muted); font-size: 10px; min-width: 48px; flex-shrink: 0; }

/* 首席日报 */
.badge-chief {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}

.chief-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chief-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chief-detail-card {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
  animation: fadeIn 0.3s ease;
  line-height: 1.6;
}

.chief-detail-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

#chief-detail {
  animation: fadeIn 0.3s ease;
}

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

/* 页面架构 */
.page { display: none; }
.page.active { display: block; padding-top: calc(var(--navbar-height) + 12px); }

.page-header {
  padding: 32px 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.page-header h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}

.home-section {
  margin-top: 32px;
}

.placeholder-tab {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.placeholder-tab h3 {
  margin: 12px 0 8px;
  font-weight: 500;
  font-size: 16px;
}
.placeholder-tab p {
  font-size: 13px;
  color: var(--text-muted);
}

/* 导航栏滚动 */
.navbar-actions {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.navbar-actions::-webkit-scrollbar { display: none; }

.nav-link {
  white-space: nowrap;
  font-size: 13px;
  padding: 6px 12px;
}

/* 信号矩阵全宽 */
#matrix-view-full,
#matrix-industry {
  width: 100%;
  overflow-x: auto;
}

/* 首页最新日报网格 */
#home-chief-list .brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* 首页偏离信号 */
.deviation-item:hover {
  background: var(--hover-bg, rgba(0,0,0,0.02));
}

/* 产业连详情容器 */
#chain-detail-container {
  margin-top: 16px;
}
#chain-detail-container .chain-detail {
  animation: fadeIn 0.3s ease;
}

.industry-badge {
  background: var(--tag-bg, #f0f0f0);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

/* 信号矩阵表格 */
.matrix-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  
  font-size: 13px;
}

.matrix-header, .matrix-row {
  display: grid;
  grid-template-columns: 100px 60px 60px 1fr 50px;
  border-bottom: 1px solid var(--border);
}
.matrix-header {
  background: var(--bg-secondary, #f8f9fa);
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
}
.matrix-row:last-child { border-bottom: none; }
.matrix-row:hover { background: var(--hover-bg, rgba(0,0,0,0.02)); }

.matrix-cell {
  padding: 10px 12px;
  display: flex;
  align-items: center;
}
.matrix-cell.name { font-weight: 500; }
.matrix-cell.stance { font-weight: 500; }
.matrix-cell.stance.bullish { color: #22c55e; }
.matrix-cell.stance.bearish { color: #ef4444; }
.matrix-cell.stance.neutral { color: #64748b; }
.matrix-cell.cause { color: var(--text-muted); font-size: 12px; }

.matrix-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* 策略日报 */
.strategy-section { margin-bottom: 28px; }
.strategy-section h3 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: #e2e8f0; }
.strategy-section h3 .sg-badge { font-size: 10px; padding: 2px 8px; border-radius: 8px; background: linear-gradient(135deg,#8b5cf6,#6366f1); color: #fff; }
.qv-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.qv-card { background: linear-gradient(135deg, #1a2332, rgba(99,102,241,0.08)); border: 1px solid #334155; border-radius: 12px; padding: 14px 16px; }
.qv-card .qv-condition { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.qv-card .qv-comment { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.qv-card .qv-sector { font-size: 11px; color: #64748b; margin-top: 2px; }
.ml-card { border: 1px solid #334155; border-radius: 12px; padding: 16px; margin-bottom: 10px; background: #1a2332; }
.ml-card .ml-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ml-card .ml-name { font-weight: 600; font-size: 15px; color: #f1f5f9; }
.ml-card .ml-theme { font-size: 12px; color: #a78bfa; }
.ml-card .ml-thesis { font-size: 13px; color: #cbd5e1; margin: 6px 0; line-height: 1.6; }
.ml-card .ml-action { font-size: 12px; padding: 6px 10px; background: rgba(99,102,241,0.1); border-radius: 6px; color: #a78bfa; margin-top: 6px; }
.ml-card .ml-certainty { font-size: 11px; color: #64748b; }
.strategy-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.strategy-table th { text-align: left; padding: 8px 12px; background: #111827; color: #94a3b8; font-weight: 500; border-bottom: 1px solid #334155; }
.strategy-table td { padding: 8px 12px; border-bottom: 1px solid #1e293b; color: #cbd5e1; }
.catalyst-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1e293b; }
.catalyst-item:last-child { border-bottom: none; }
.catalyst-date { min-width: 56px; font-weight: 600; font-size: 13px; color: #a78bfa; }
.strategy-info { padding: 10px 14px; background: rgba(99,102,241,0.08); border-radius: 8px; font-size: 12px; color: #94a3b8; border-left: 3px solid #6366f1; }

/* ===== 信号矩阵标签切换 ===== */
.matrix-tabs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.matrix-tab {
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
}
.matrix-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}
.matrix-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.matrix-tab-content.active { display: block; }

/* ===== 技术信号 ===== */
.tech-market-banner {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 13px;
  flex-wrap: wrap;
}
.tech-market-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tech-market-label { color: var(--text-muted); font-size: 12px; }
.tech-market-value { font-weight: 600; }

.tech-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tech-filter-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  transition: all .2s;
}
.tech-filter-btn:hover { border-color: var(--accent); }
.tech-filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tech-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tech-card {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.tech-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.tech-card-code {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.tech-card-name {
  font-size: 13px;
  color: var(--text);
}
.tech-card-signals {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.tech-signal-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.tech-signal-badge.divergence { background: rgba(249,115,22,0.2); color: #f97316; }
.tech-signal-badge.upper_shadow { background: rgba(239,68,68,0.15); color: #ef4444; }
.tech-signal-badge.lower_shadow { background: rgba(34,197,94,0.15); color: #22c55e; }
.tech-signal-badge.doji { background: rgba(250,204,21,0.15); color: #eab308; }
.tech-signal-badge.bald_candle { background: rgba(168,85,247,0.15); color: #a855f7; }
.tech-signal-badge.volume_surge { background: rgba(59,130,246,0.15); color: #3b82f6; }
.tech-signal-badge.amplitude_surge { background: rgba(236,72,153,0.15); color: #ec4899; }
.tech-signal-badge.big_open { background: rgba(249,115,22,0.15); color: #f97316; }
.tech-signal-badge.intraday_reversal { background: rgba(59,130,246,0.15); color: #3b82f6; }
.tech-signal-badge.breakout { background: rgba(34,197,94,0.15); color: #22c55e; }

.tech-card-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}
.tech-card-score.high { background: rgba(34,197,94,0.2); color: #22c55e; }
.tech-card-score.medium { background: rgba(250,204,21,0.2); color: #eab308; }
.tech-card-score.low { background: rgba(239,68,68,0.15); color: #ef4444; }

.tech-card-reason {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-line;
}
.tech-card-catalyst {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary, #e2e8f0);
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #334155);
  margin-bottom: 6px;
}
.tech-card-price {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-tertiary, #64748b);
}
.tech-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}
.tech-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== 技术信号策略说明 ===== */
.tech-help {
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden;
}
.tech-help-header {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.tech-help-header:hover { background: rgba(255,255,255,0.03); }
.tech-help-body {
  padding: 8px 14px 12px;
  border-top: 1px solid var(--border);
}
.tech-help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.tech-help-table td {
  padding: 4px 6px;
  vertical-align: top;
  line-height: 1.5;
}
.tech-help-table td:first-child {
  white-space: nowrap;
  font-weight: 500;
  width: 80px;
}
.tech-help-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

/* ============ 个股页 Stock Page ============ */
.stock-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding: 4px 6px;
  background: var(--bg-card, #1a2332);
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
}
.stock-search input {
  width: 220px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  color: var(--text, #e2e8f0);
  font-size: 13px;
  outline: none;
}
.stock-search input::placeholder { color: var(--text-muted, #64748b); }
.stock-search button {
  padding: 6px 12px;
  background: var(--accent, #6366f1);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.stock-search button:hover { opacity: 0.9; }
.stock-search { position: relative; }
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 330px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--bg-card, #1a2332);
  border: 1px solid var(--border, #334155);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  z-index: 1000;
  display: none;
  padding: 4px;
}
.search-dropdown .ss-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px; cursor: pointer;
}
.search-dropdown .ss-opt:hover, .search-dropdown .ss-opt.active { background: rgba(99,102,241,.20); }
.search-dropdown .ss-code { font-family: ui-monospace, SFMono-Regular, monospace; color: var(--text-muted,#94a3b8); font-size:12px; min-width:54px; }
.search-dropdown .ss-name { flex: 1; color: var(--text,#e2e8f0); font-size:13px; }
.search-dropdown .ss-mkt { font-size:11px; padding:1px 8px; border-radius:999px; white-space:nowrap; }
.search-dropdown .ss-a { background: rgba(99,102,241,.18); color:#c7d2fe; }
.search-dropdown .ss-hk { background: rgba(34,197,94,.20); color:#bbf7d0; }

.stock-header {
  margin-bottom: 20px;
  padding: 18px 20px;
  background: var(--bg-card, #1a2332);
  border: 1px solid var(--border, #334155);
  border-radius: 12px;
}
.stock-title-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stock-title-row h2 { margin: 0; font-size: 24px; }
.stock-code { font-size: 14px; color: var(--text-muted, #64748b); font-weight: 400; }
.stock-price { font-size: 28px; font-weight: 700; }
.stock-chg { font-size: 16px; font-weight: 600; }
.stock-meta { margin-top: 8px; font-size: 12px; color: var(--text-muted, #64748b); }

.stock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.stock-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) {
  .stock-grid, .stock-grid-2 { grid-template-columns: 1fr; }
}
.stock-card {
  background: var(--bg-card, #1a2332);
  border: 1px solid var(--border, #334155);
  border-radius: 12px;
  padding: 16px 18px;
}
.stock-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.stock-card-icon { font-size: 18px; }
.stock-card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.stock-card-body { font-size: 13px; line-height: 1.6; }

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }

/* 研究要点模块 */
.rp-grid { display: flex; flex-direction: column; gap: 4px; }
.rp-row { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 6px; background: var(--bg-secondary, #1e293b); border-left: 3px solid; align-items: start; }
.rp-row:nth-child(even) { background: rgba(30,41,59,0.5); }
.rp-row.rp-pos { border-left-color: #22c55e; }
.rp-row.rp-neu { border-left-color: #eab308; }
.rp-row.rp-neg { border-left-color: #ef4444; }
.rp-row.rp-na  { border-left-color: #64748b; }
.rp-left { display: flex; align-items: flex-start; gap: 6px; }
.rp-status { font-size: 13px; line-height: 1.5; flex-shrink: 0; }
.rp-label { font-weight: 600; font-size: 12px; line-height: 1.4; }
.rp-question { color: var(--text-muted, #64748b); font-size: 11px; line-height: 1.3; margin-top: 1px; }
.rp-right { min-width: 0; }
.rp-evidence { font-size: 12px; line-height: 1.6; color: var(--text, #e2e8f0); }
.rp-indicator { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--text-muted, #64748b); margin-bottom: 3px; word-break: break-word; }
.rp-sources { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.rp-src { font-size: 10px; color: var(--text-muted, #64748b); background: rgba(148,163,184,0.12); border: 1px solid rgba(148,163,184,0.18); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.kv { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--border, #334155); }
.kv span { color: var(--text-muted, #64748b); }
.kv b { font-weight: 600; }
.kv.muted, .muted { color: var(--text-muted, #64748b); }
.fin-divider { height: 1px; background: var(--border, #334155); margin: 12px 0; }

/* === 公司研究框架（买方 6 段式） === */
.fw-wrap { display: flex; flex-direction: column; gap: 14px; }
.fw-meta { font-size: 11px; color: var(--text-muted, #64748b); margin-bottom: 2px; }
.fw-conclusion { background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(37,99,235,0.04)); border: 1px solid rgba(37,99,235,0.3); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; line-height: 1.75; color: var(--text-primary, #f8fafc); }
.fw-conc-label { display: inline-block; font-weight: 700; color: var(--primary-light, #60a5fa); margin-right: 8px; padding: 1px 8px; border: 1px solid rgba(96,165,250,0.4); border-radius: 5px; font-size: 12px; }
.fw-subhead { font-size: 13.5px; font-weight: 700; color: var(--text-primary, #f8fafc); margin-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border, #334155); }
.fw-fig { margin: 10px 0 4px; }
.fw-fig-img { max-width: 100%; border-radius: 8px; border: 1px solid var(--border, #334155); display: block; }
.fw-fig figcaption { font-size: 11px; color: var(--text-muted, #64748b); margin-top: 5px; text-align: center; }
.fw-table-wrap { overflow-x: auto; }
.fw-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.55; }
.fw-table th { text-align: left; background: rgba(37,99,235,0.15); color: var(--text-primary, #f8fafc); font-weight: 600; padding: 7px 9px; border: 1px solid var(--border, #334155); white-space: nowrap; }
.fw-table td { padding: 7px 9px; border: 1px solid var(--border, #334155); color: var(--text-secondary, #cbd5e1); vertical-align: top; }
.fw-table tr:nth-child(even) td { background: rgba(30,41,59,0.4); }
.fw-c-dim { font-weight: 600; color: var(--text-primary, #f8fafc); }
.fw-c-ind, .fw-c-obs { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--text-brand, #60a5fa); }
.fw-c-ev { color: var(--text-secondary, #cbd5e1); }
.fw-dash .fw-d-metric { font-weight: 600; color: var(--text-primary, #f8fafc); white-space: nowrap; }
.fw-dash .fw-d-val { font-family: var(--font-mono, monospace); color: var(--text-brand, #60a5fa); white-space: nowrap; }
.fw-dash .fw-d-chg { white-space: nowrap; color: var(--accent-green, #22c55e); }
.fw-dim { background: var(--bg-surface, #1a2332); border: 1px solid var(--border, #334155); border-radius: 8px; padding: 10px 12px; }
.fw-dim-title { font-weight: 700; font-size: 13px; color: var(--primary-light, #60a5fa); margin-bottom: 7px; }
.fw-block { display: flex; gap: 8px; padding: 4px 0; font-size: 12.5px; line-height: 1.65; }
.fw-block-label { flex-shrink: 0; width: 64px; font-weight: 600; color: var(--text-muted, #64748b); }
.fw-block-text { color: var(--text-secondary, #cbd5e1); }
.fw-evidence { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.fw-evidence li { position: relative; padding: 8px 10px 8px 22px; background: rgba(16,185,129,0.08); border-left: 3px solid var(--accent, #10b981); border-radius: 5px; font-size: 12.5px; line-height: 1.6; color: var(--text-secondary, #cbd5e1); }
.fw-evidence li::before { content: "✓"; position: absolute; left: 7px; top: 8px; color: var(--accent, #10b981); font-size: 12px; }
.fw-actions { display: flex; flex-direction: column; gap: 7px; }
.fw-action { display: flex; gap: 10px; padding: 9px 11px; background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.22); border-radius: 7px; font-size: 12.5px; line-height: 1.6; }
.fw-action-focus { flex-shrink: 0; width: 150px; font-weight: 700; color: #fbbf24; }
.fw-action-text { color: var(--text-secondary, #cbd5e1); }
/* 五层分析链（NVDA 式） */
.fw-layer { background: var(--bg-surface, #1a2332); border: 1px solid var(--border, #334155); border-left: 3px solid var(--primary-light, #60a5fa); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.fw-layer-name { font-weight: 700; font-size: 13px; color: var(--primary-light, #60a5fa); margin-bottom: 6px; }
.fw-layer-row { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.6; padding: 2px 0; }
.fw-layer-k { flex-shrink: 0; width: 56px; font-weight: 600; color: var(--text-muted, #64748b); }
.fw-layer-v { color: var(--text-secondary, #cbd5e1); }
.fw-layer-red { font-size: 12px; color: #fca5a5; background: rgba(239,68,68,0.08); border-left: 3px solid #ef4444; padding: 4px 8px; border-radius: 5px; margin: 5px 0; }
.fw-layer-sum { font-size: 12.5px; line-height: 1.65; color: var(--text-secondary, #cbd5e1); margin-top: 4px; }
/* 看板红线列 */
.fw-dash .fw-d-red { font-size: 11px; color: #fca5a5; line-height: 1.5; max-width: 220px; }

.sig-list, .op-list, .rel-list, .news-list { display: flex; flex-direction: column; gap: 10px; }
.sig-row { padding-bottom: 8px; border-bottom: 1px dashed var(--border, #334155); }
.sig-date { font-size: 12px; color: var(--text-muted, #64748b); margin-bottom: 4px; }
.sig-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sig-chip { background: rgba(99,102,241,0.15); color: #a5b4fc; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.sig-cat { margin-top: 4px; font-size: 12px; color: #fbbf24; }

.op-row { padding-bottom: 10px; border-bottom: 1px dashed var(--border, #334155); }
.op-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-broker { color: var(--accent, #6366f1); font-size: 12px; }
.op-type { font-size: 11px; color: var(--text-muted, #64748b); background: rgba(148,163,184,0.12); padding: 1px 6px; border-radius: 8px; }
.op-title { margin-top: 4px; font-weight: 500; }
.op-content { margin-top: 4px; color: #cbd5e1; font-size: 12px; }
.op-time { margin-top: 4px; font-size: 11px; color: var(--text-muted, #64748b); }

.chain-tag { background: rgba(34,197,94,0.15); color: #6ee7b7; padding: 3px 10px; border-radius: 10px; font-size: 12px; }
.rel-row { padding: 3px 0; font-size: 12px; }
.rel-type { color: var(--accent, #6366f1); margin: 0 4px; }

/* 产业链暴露卡片（主节点 + 直接上下游 + 同链公司） */
.chain-node-main { background: linear-gradient(135deg, rgba(110,231,183,0.12), rgba(99,102,241,0.10)); border: 1px solid rgba(110,231,183,0.35); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; text-align: center; }
.chain-main-name { font-size: 19px; font-weight: 700; color: #6ee7b7; letter-spacing: .5px; }
.chain-main-meta { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.chain-promoted { margin-top: 8px; font-size: 12px; color: #fbbf24; background: rgba(251,191,36,0.10); border: 1px dashed rgba(251,191,36,0.35); border-radius: 8px; padding: 5px 10px; line-height: 1.5; }
.chain-promoted b { color: #fcd34d; }
.chain-promoted .muted { color: #94a3b8; margin-left: 4px; }
.badge { background: rgba(99,102,241,0.18); color: #a5b4fc; font-size: 11px; padding: 1px 8px; border-radius: 8px; }
.badge.muted { background: rgba(148,163,184,0.14); color: #94a3b8; }
.chain-io { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
.chain-col { background: var(--bg-surface, #131c2b); border: 1px solid var(--border, #1f2a3a); border-radius: 10px; padding: 8px 10px; }
.chain-col-h { font-size: 12px; font-weight: 600; color: #cbd5e1; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.chain-cons { background: var(--bg-surface, #131c2b); border: 1px solid var(--border, #1f2a3a); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.tier-n { background: rgba(99,102,241,0.18); color: #a5b4fc; font-size: 11px; padding: 0 7px; border-radius: 8px; }
.chain-nodes { display: flex; flex-wrap: wrap; gap: 5px; }
.chain-node { background: rgba(148,163,184,0.12); color: #cbd5e1; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; line-height: 1.5; cursor: default; border-left: 2px solid rgba(148,163,184,0.5); }
.chain-node[data-type^="Re"], .chain-node[data-type^="Material"] { border-left-color: #34d399; }
.chain-node[data-type^="Intermediate"], .chain-node[data-type^="Process"] { border-left-color: #60a5fa; }
.chain-node[data-type^="FinalProduct"], .chain-node[data-type^="Application"], .chain-node[data-type^="Demand"] { border-left-color: #f59e0b; }
.chain-node[data-type^="External"] { border-left-color: #f87171; }
.peer-block { border-top: 1px dashed var(--border, #1f2a3a); padding-top: 10px; }
.peer-h { font-size: 12px; font-weight: 600; color: #cbd5e1; margin-bottom: 7px; }
.peer-h .muted { font-weight: 400; }
.peer-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chain-sub-block { border-top: 1px dashed var(--border, #1f2a3a); padding-top: 10px; margin-top: 8px; }
.chain-sub-h { font-size: 12px; font-weight: 600; color: #a5b4fc; margin-bottom: 8px; display: flex; align-items: center; }
.chain-sub-block .chain-io { margin-bottom: 0; }
.peer-chip { background: rgba(99,102,241,0.14); color: #a5b4fc; padding: 3px 10px; border-radius: 9px; font-size: 12px; cursor: pointer; transition: background .15s, color .15s; border: 1px solid transparent; }
.peer-chip:hover { background: rgba(99,102,241,0.30); color: #c7d2fe; border-color: rgba(99,102,241,0.5); }

.news-row { padding-bottom: 8px; border-bottom: 1px dashed var(--border, #334155); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.news-title { font-size: 13px; }
.news-link { font-size: 13px; color: var(--accent, #6366f1); text-decoration: none; }
.news-link:hover { text-decoration: underline; }
.news-time { font-size: 11px; color: var(--text-muted, #64748b); margin-left: auto; white-space: nowrap; }
.news-sent { font-size: 11px; color: #f59e0b; }

.tools-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary { background: var(--accent, #6366f1); color: #fff; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--text, #e2e8f0); border: 1px solid var(--border, #334155); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.btn-primary:hover, .btn-ghost:hover { opacity: 0.9; }

/* ===================== 估值模型页 ===================== */
.val-intro { background: var(--bg-card, #1e293b); border: 1px solid var(--border, #334155); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.val-intro-title { font-size: 15px; font-weight: 700; color: var(--text-primary, #f1f5f9); margin-bottom: 8px; }
.val-intro-body { font-size: 13px; line-height: 1.7; color: var(--text-secondary, #cbd5e1); }
.val-intro-body b { color: var(--text-primary, #f1f5f9); }
.val-intro-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border, #334155); font-size: 12px; color: var(--text-muted, #94a3b8); }
.val-intro-legend span { white-space: nowrap; }

.val-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.val-type-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 13px; cursor: pointer; background: var(--bg-surface, #131c2b); border: 1px solid var(--border, #334155); color: var(--text-secondary, #cbd5e1); transition: all .15s; user-select: none; }
.val-type-chip:hover { border-color: var(--text-muted, #64748b); }
.val-type-chip.active { font-weight: 600; }
.val-type-chip b { font-weight: 700; }

.val-table-wrap { background: var(--bg-card, #1e293b); border: 1px solid var(--border, #334155); border-radius: 12px; overflow: hidden; }
.val-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.val-table thead th { background: var(--bg-surface, #131c2b); color: var(--text-muted, #94a3b8); font-weight: 600; font-size: 12px; padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--border, #334155); white-space: nowrap; }
.val-table tbody td { padding: 11px 12px; text-align: center; border-bottom: 1px solid var(--border, #1f2a3a); color: var(--text, #e2e8f0); vertical-align: middle; }
.val-table tbody tr { cursor: pointer; transition: background .12s; }
.val-table tbody tr:hover { background: rgba(99,102,241,0.08); }
.val-table tbody tr:last-child td { border-bottom: none; }
.val-code { font-size: 11px; color: var(--text-muted, #64748b); font-family: ui-monospace, monospace; }
.val-badge { display: inline-block; padding: 2px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.val-detail-link { color: var(--accent, #6366f1); font-size: 12px; white-space: nowrap; }

/* 详情弹窗 */
.val-modal-overlay { position: fixed; inset: 0; background: rgba(2,6,23,0.72); backdrop-filter: blur(3px); z-index: 9999; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.val-modal { background: var(--bg-card, #1e293b); border: 1px solid var(--border, #334155); border-radius: 14px; width: 100%; max-width: 640px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); animation: valModalIn .18s ease; }
@keyframes valModalIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.val-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border, #334155); }
.val-modal-close { background: transparent; border: none; color: var(--text-muted, #94a3b8); font-size: 18px; cursor: pointer; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.val-modal-close:hover { background: rgba(148,163,184,0.15); color: var(--text, #e2e8f0); }
.val-modal-body { padding: 18px 20px 20px; }
.val-d-section { margin-bottom: 18px; }
.val-d-h { font-size: 13px; font-weight: 700; color: var(--text-primary, #f1f5f9); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.val-exp { font-size: 10px; font-weight: 500; color: var(--text-muted, #64748b); background: rgba(148,163,184,0.12); padding: 1px 7px; border-radius: 6px; }
.val-formula { background: var(--bg-surface, #131c2b); border: 1px solid var(--border, #1f2a3a); border-left: 3px solid var(--accent, #6366f1); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; color: var(--text, #e2e8f0); font-family: ui-monospace, "SF Mono", monospace; }
.val-d-note { font-size: 12px; color: var(--text-muted, #94a3b8); margin-top: 8px; line-height: 1.6; }
.val-assump-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.val-assump { display: flex; align-items: center; justify-content: space-between; background: var(--bg-surface, #131c2b); border: 1px solid var(--border, #1f2a3a); border-radius: 8px; padding: 8px 12px; }
.val-assump span { font-size: 12px; color: var(--text-muted, #94a3b8); }
.val-assump b { font-size: 14px; color: var(--text-primary, #f1f5f9); font-weight: 700; }
.val-d-foot { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--border, #334155); font-size: 11.5px; color: var(--text-muted, #64748b); line-height: 1.7; }
@media (max-width: 720px) { .val-table thead th:nth-child(3), .val-table tbody td:nth-child(3) { display: none; } }

/* 估值详情增强：足球场 / 相对估值 / 敏感性 / DCF明细 */
.val-ff-wrap { background: var(--bg-surface, #131c2b); border: 1px solid var(--border, #1f2a3a); border-radius: 10px; padding: 12px 10px 6px; }
.val-rel-wrap, .val-sens-wrap { overflow-x: auto; }
.val-rel { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.val-rel th { padding: 7px 10px; text-align: right; color: var(--text-muted, #64748b); font-weight: 600; border-bottom: 1px solid var(--border, #334155); font-size: 11px; }
.val-rel th:first-child, .val-rel-td { text-align: left; color: var(--text-secondary, #cbd5e1); padding: 7px 10px; border-bottom: 1px solid var(--border, #1f2a3a); }
.val-rel-num { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--border, #1f2a3a); font-weight: 600; white-space: nowrap; }
.val-sens { border-collapse: collapse; font-size: 11.5px; min-width: 360px; }
.val-sens th, .val-sens-rowh { padding: 6px 8px; color: var(--text-muted, #94a3b8); font-weight: 600; text-align: center; background: var(--bg-surface, #131c2b); border: 1px solid var(--border, #1f2a3a); white-space: nowrap; }
.val-sens-rowh { text-align: left; }
.val-sens-cell { padding: 6px 8px; text-align: center; border: 1px solid var(--border, #1f2a3a); font-variant-numeric: tabular-nums; }
.val-dcf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.val-dcf-card { background: var(--bg-surface, #131c2b); border: 1px solid var(--border, #1f2a3a); border-radius: 10px; padding: 12px; }
.val-dcf-h { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.val-dcf-ev { font-size: 20px; font-weight: 800; color: var(--text-primary, #f1f5f9); margin-bottom: 8px; }
.val-dcf-rows { display: flex; flex-direction: column; gap: 4px; }
.val-dcf-rows > div { display: flex; justify-content: space-between; font-size: 11.5px; }
.val-dcf-rows span { color: var(--text-muted, #94a3b8); }
.val-dcf-rows b { color: var(--text-secondary, #cbd5e1); font-weight: 600; }

/* ===== 产业链全景：真实数据树形详情 ===== */
.chain-item { cursor: pointer; }
.chain-item .chain-name { font-size: 13px; font-weight: 600; color: #e2e8f0; margin-bottom: 4px; }
.chain-meta { font-size: 11px; color: var(--text-muted, #9aa4b2); }
.chain-count { font-weight: 600; color: #6ee7b7; }
.back-btn { background: rgba(99,102,241,0.15); color: #c7d2fe; border: 1px solid rgba(99,102,241,0.4); border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; margin-bottom: 16px; }
.back-btn:hover { background: rgba(99,102,241,0.28); }
.chain-detail-subtitle { font-size: 14px; font-weight: 600; color: #cbd5e1; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border, #1f2a3a); }
.chain-tree { font-size: 13px; }
.tree-node { padding: 2px 0; }
.tree-node-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; }
.tree-node-row:hover { background: rgba(148,163,184,0.08); }
.tree-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(110,231,183,0.15); }
.tree-name { font-weight: 500; color: #e2e8f0; }
.tree-children { border-left: 1px dashed rgba(148,163,184,0.25); margin-left: 9px; padding-left: 4px; }
.node-co-count { margin-left: auto; background: rgba(99,102,241,0.22); color: #c7d2fe; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; }
.chain-supply { margin-top: 8px; }
.supply-list { display: flex; flex-wrap: wrap; gap: 6px; }
.supply-edge { background: rgba(148,163,184,0.1); color: #cbd5e1; padding: 3px 9px; border-radius: 8px; font-size: 12px; border-left: 2px solid #34d399; }
.supply-arrow { color: #34d399; margin: 0 3px; }

/* ===== 个股卡片：产业链层级定位 ===== */
.chain-hierarchy { background: rgba(30,41,59,0.4); border: 1px solid var(--border, #1f2a3a); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.chain-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 2px; }
.path-node { background: rgba(110,231,183,0.12); color: #a7f3d0; padding: 3px 10px; border-radius: 8px; font-size: 12.5px; border: 1px solid rgba(110,231,183,0.3); }
.path-sep { color: var(--text-muted, #9aa4b2); font-size: 12px; }
.sib-chip { background: rgba(148,163,184,0.12); color: #cbd5e1; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; cursor: default; border-left: 2px solid rgba(148,163,184,0.5); }

/* ===== 个股页 sub-nav 分区 ===== */
.stock-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; padding-bottom: 2px; border-bottom: 1px solid var(--border, #334155); }
.stock-tab { background: transparent; border: 1px solid transparent; color: var(--text-muted, #94a3b8); padding: 7px 14px; border-radius: 9px 9px 0 0; font-size: 13.5px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.stock-tab:hover { color: var(--text, #e2e8f0); background: rgba(148,163,184,0.08); }
.stock-tab.active { color: var(--accent, #10b981); border-color: var(--border, #334155); border-bottom-color: var(--bg-card, #1e293b); background: var(--bg-card, #1e293b); font-weight: 600; position: relative; top: 1px; }
.stock-panels { min-height: 200px; }
.stock-panel { display: none; animation: fadeIn .2s ease; }
.stock-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===== 财务三表 ===== */
.fs-wrap { display: flex; flex-direction: column; gap: 18px; }
.fs-chart { width: 100%; height: 240px; background: var(--bg-card, #1e293b); border: 1px solid var(--border, #334155); border-radius: 12px; padding: 8px; }
.fs-block { background: var(--bg-card, #1e293b); border: 1px solid var(--border, #334155); border-radius: 12px; overflow: hidden; }
.fs-block-h { font-size: 14px; font-weight: 600; color: var(--text, #e2e8f0); padding: 12px 16px; border-bottom: 1px solid var(--border, #334155); background: rgba(148,163,184,0.06); }
.fs-table-wrap { overflow-x: auto; }
.fs-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fs-table th { background: rgba(148,163,184,0.08); color: var(--text-muted, #94a3b8); font-weight: 600; padding: 8px 12px; text-align: right; white-space: nowrap; position: sticky; top: 0; }
.fs-table th:first-child { text-align: left; }
.fs-table td { padding: 7px 12px; border-top: 1px solid rgba(148,163,184,0.08); text-align: right; white-space: nowrap; }
.fs-table td.fs-item { text-align: left; color: var(--text, #cbd5e1); }
.fs-table tbody tr:hover { background: rgba(148,163,184,0.05); }
.fs-num { font-variant-numeric: tabular-nums; color: var(--text, #e2e8f0); }
.fs-na { color: var(--text-muted, #64748b); }
.val-d-note { font-size: 11.5px; color: var(--text-muted, #94a3b8); line-height: 1.6; margin-top: 6px; }
@media (max-width: 720px) { .stock-tab { padding: 6px 10px; font-size: 12.5px; } .fs-chart { height: 200px; } }

/* ===== 个股产业链三层模型 (2026-07-14) ===== */
.chain-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chain-tag { background: rgba(148,163,184,0.12); color: #cbd5e1; padding: 3px 11px; border-radius: 10px; font-size: 12.5px; border: 1px solid transparent; }
.chain-tag.primary { background: rgba(110,231,183,0.16); color: #a7f3d0; border: 1px solid rgba(110,231,183,0.4); font-weight: 600; }
.io-row { display: flex; align-items: center; gap: 7px; padding: 4px 0; }
.io-name { color: #e2e8f0; font-size: 13px; }
.io-badge { font-size: 10.5px; padding: 1px 7px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.io-badge.intra { background: rgba(52,211,153,0.18); color: #6ee7b7; }
.io-badge.cross { background: rgba(99,102,241,0.2); color: #c7d2fe; }
.io-w { font-size: 10.5px; color: #9aa4b2; }
.io-empty { font-size: 12.5px; color: #9aa4b2; padding: 6px 0; font-style: italic; }
.io-more { background: transparent; color: #6ee7b7; border: 1px solid rgba(110,231,183,0.35); border-radius: 8px; padding: 3px 10px; font-size: 11.5px; cursor: pointer; margin-top: 6px; }
.io-more:hover { background: rgba(110,231,183,0.12); }
.chain-sec { margin-top: 12px; border-top: 1px solid var(--border, #1f2a3a); padding-top: 8px; }
.chain-sec summary { cursor: pointer; font-size: 12.5px; color: #cbd5e1; font-weight: 600; }
.chain-sec[open] summary { margin-bottom: 8px; }

/* ===== 个股资金面（腾讯自选股赋能） ===== */
.ws-section { font-size: 13px; }
.fund-divider { margin: 16px 0; border: 0; border-top: 1px dashed var(--border, #334155); }
.sub-h { font-size: 12.5px; font-weight: 700; color: var(--accent, #10b981); margin: 12px 0 8px; letter-spacing: .3px; }
.sub-h:first-child { margin-top: 0; }
.ws-scroll { overflow-x: auto; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 4px 0 8px; }
.ws-table th, .ws-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border, #334155); white-space: nowrap; }
.ws-table th { color: var(--text-muted, #94a3b8); font-weight: 600; background: rgba(148,163,184,0.06); }
.ws-table td { color: var(--text, #e2e8f0); }
.ws-table tr:hover td { background: rgba(148,163,184,0.06); }
.ws-table .ws-num { text-align: right; font-variant-numeric: tabular-nums; }
.ws-table .tag { display: inline-block; font-size: 11px; color: var(--text-muted, #94a3b8); margin-right: 6px; }
.ws-note { margin-top: 14px; font-size: 11px; color: var(--text-muted, #64748b); line-height: 1.6; }
.datebadge { font-size: 11px; color: var(--accent, #10b981); margin-left: 6px; }

/* ===== 期货期权 MVP（静态样本 · candidate_pending_review） ===== */
.fut-wrap { max-width: 1180px; margin: 0 auto; padding: 8px 4px 40px; }
.fut-candidate-badge { display:inline-block; font-size:11px; color:#fbbf24; background:rgba(251,191,36,0.12); border:1px solid rgba(251,191,36,0.35); border-radius:999px; padding:3px 12px; margin:4px 0 14px; }
.fut-sec-title { font-size:14px; font-weight:700; color:var(--text-primary,#f1f5f9); margin:22px 0 10px; padding-left:10px; border-left:3px solid var(--primary,#2563eb); }
.fut-sec-title.rise { color:var(--color-rise,#ef4444); border-color:var(--color-rise,#ef4444); }
.fut-sec-title.fall { color:var(--color-fall,#22c55e); border-color:var(--color-fall,#22c55e); }
.fut-hint { font-size:11px; color:var(--text-muted,#94a3b8); font-weight:400; }

.fut-head { display:flex; justify-content:space-between; align-items:center; gap:24px; background:var(--bg-card,#1e293b); border:1px solid var(--border,#1f2a3a); border-radius:12px; padding:16px 20px; }
.fut-head-date { font-size:12px; color:var(--text-muted,#94a3b8); }
.fut-head-title { font-size:18px; font-weight:700; margin-top:2px; }
.fut-mean-bar { flex:1; max-width:420px; }
.fut-mean-track { height:10px; background:linear-gradient(90deg, var(--color-fall,#22c55e), #475569 50%, var(--color-rise,#ef4444)); border-radius:6px; overflow:hidden; }
.fut-mean-label { font-size:12px; color:var(--text-secondary,#cbd5e1); margin-top:6px; text-align:right; }
.fut-mean-label b { font-size:14px; }

.fut-temp-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.fut-temp-card, .fut-sector-card { background:var(--bg-card,#1e293b); border:1px solid var(--border,#1f2a3a); border-radius:12px; padding:14px; }
.fut-temp-k { font-size:13px; font-weight:600; color:var(--primary,#2563eb); }
.fut-temp-v { font-size:12px; color:var(--text-muted,#94a3b8); margin:6px 0; }
.fut-temp-why { font-size:11.5px; color:var(--text-secondary,#cbd5e1); line-height:1.6; border-top:1px dashed var(--border,#334155); padding-top:8px; }

.fut-win-row { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.fut-win-chip { background:rgba(37,99,235,0.10); border:1px solid rgba(37,99,235,0.35); border-radius:10px; padding:10px 12px; cursor:pointer; }
.fut-win-chip b { color:var(--primary,#2563eb); margin-right:8px; }
.fut-win-chip span { font-size:12px; color:var(--text-secondary,#cbd5e1); }

.fut-sector-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.fut-sector-name { font-size:13px; font-weight:700; color:var(--accent,#10b981); margin-bottom:6px; }
.fut-sector-text { font-size:12px; color:var(--text-secondary,#cbd5e1); line-height:1.7; }

.fut-heat-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(120px,1fr)); gap:6px; }
.fut-heat-cell { border-radius:8px; padding:8px 10px; cursor:pointer; transition:transform .12s, box-shadow .12s; display:flex; flex-direction:column; gap:2px; }
.fut-heat-cell:hover { transform:translateY(-2px); box-shadow:0 4px 14px rgba(0,0,0,.3); }
.fut-heat-name { font-size:12px; color:#fff; font-weight:500; display:flex; align-items:center; gap:2px; }
.fut-heat-score { font-size:12px; font-weight:700; color:#fff; }
.fut-sample-dot { font-size:9px; color:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.4); border-radius:4px; padding:0 3px; }

.fut-ranks { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.fut-rank-list { list-style:none; margin:0; padding:0; }
.fut-rank-list li { display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:8px; cursor:pointer; }
.fut-rank-list li:hover { background:var(--bg-card-hover,#243044); }
.fut-rank { width:20px; height:20px; border-radius:50%; background:var(--bg-surface,#111827); color:var(--text-muted,#94a3b8); font-size:11px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.fut-nm { flex:1; font-size:13px; color:var(--text-primary,#f1f5f9); }
.fut-sc { font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; }
.fut-sc.rise { color:var(--color-rise,#ef4444); }
.fut-sc.fall { color:var(--color-fall,#22c55e); }
.fut-empty { color:var(--text-muted,#64748b); padding:8px; font-size:12px; }

.fut-event { display:flex; gap:10px; padding:9px 12px; background:var(--bg-card,#1e293b); border:1px solid var(--border,#1f2a3a); border-radius:10px; margin-bottom:8px; font-size:13px; color:var(--text-secondary,#cbd5e1); line-height:1.6; }
.fut-event-idx { flex-shrink:0; width:22px; height:22px; border-radius:6px; background:rgba(37,99,235,0.15); color:var(--primary,#2563eb); font-weight:700; font-size:12px; display:flex; align-items:center; justify-content:center; }
.fut-foot { margin-top:24px; font-size:11px; color:var(--text-muted,#64748b); line-height:1.7; border-top:1px dashed var(--border,#334155); padding-top:12px; }

/* 品种研究页 */
.fut-back { display:inline-block; font-size:13px; color:var(--primary,#2563eb); margin:6px 0 10px; text-decoration:none; }
.fut-detail-head { display:flex; align-items:baseline; gap:12px; }
.fut-detail-head h2 { font-size:22px; margin:0; }
.fut-detail-slug { font-size:12px; color:var(--text-muted,#94a3b8); font-weight:400; }
.fut-detail-sector { font-size:12px; color:var(--accent,#10b981); }

.fut-metrics { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-top:8px; }
.fut-metric { background:var(--bg-card,#1e293b); border:1px solid var(--border,#1f2a3a); border-radius:10px; padding:12px; text-align:center; }
.fut-metric-k { font-size:11px; color:var(--text-muted,#94a3b8); }
.fut-metric-v { font-size:15px; font-weight:700; color:var(--text-primary,#f1f5f9); margin-top:4px; }

.fut-layers { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.fut-layer { border-radius:12px; padding:14px; border:1px solid var(--border,#1f2a3a); background:var(--bg-card,#1e293b); }
.fut-layer-fact { border-top:3px solid var(--accent,#10b981); }
.fut-layer-logic { border-top:3px solid #f59e0b; }
.fut-layer-view { border-top:3px solid #ec4899; }
.fut-layer-h { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.fut-layer-h span:first-child { font-size:14px; font-weight:700; color:var(--text-primary,#f1f5f9); }
.fut-layer-tag { font-size:10.5px; color:var(--text-muted,#94a3b8); }
.fut-layer-list { margin:0; padding-left:18px; }
.fut-layer-list li { font-size:12.5px; color:var(--text-secondary,#cbd5e1); line-height:1.7; }
.fut-failmodes { margin-top:12px; font-size:11.5px; color:var(--text-muted,#94a3b8); line-height:1.8; }
.fut-fail { display:inline-block; background:rgba(239,68,68,0.10); color:#fca5a5; border:1px solid rgba(239,68,68,0.3); border-radius:6px; padding:2px 8px; margin:3px 4px 0 0; }

.fut-ff-row { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.fut-ff { background:var(--bg-card,#1e293b); border:1px solid var(--border,#1f2a3a); border-radius:10px; padding:12px; }
.fut-ff-k { font-size:11px; color:var(--primary,#2563eb); font-weight:600; }
.fut-ff-v { font-size:12.5px; color:var(--text-secondary,#cbd5e1); margin-top:6px; line-height:1.6; }
.fut-placeholder { background:var(--bg-surface,#111827); border:1px dashed var(--border,#334155); border-radius:10px; padding:14px; font-size:12.5px; color:var(--text-muted,#94a3b8); line-height:1.7; }

.fut-det { background:var(--bg-card,#1e293b); border:1px solid var(--border,#1f2a3a); border-radius:12px; padding:14px; }
.fut-det-row { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px dashed var(--border,#334155); font-size:13px; }
.fut-det-row span { color:var(--text-muted,#94a3b8); }
.fut-det-row b { color:var(--text-primary,#f1f5f9); text-align:right; }
.fut-det-strength-high { color:var(--color-rise,#ef4444) !important; }
.fut-det-strength-medium { color:#f59e0b !important; }
.fut-det-strength-low { color:var(--text-muted,#94a3b8) !important; }
.fut-det-trap { background:rgba(239,68,68,0.08); border:1px solid rgba(239,68,68,0.3); border-radius:8px; padding:10px 12px; margin:10px 0; font-size:12.5px; color:#fca5a5; line-height:1.6; }

.fut-tool-recs { display:flex; flex-direction:column; gap:8px; }
.fut-tool-rec { display:flex; gap:12px; align-items:flex-start; background:var(--bg-card,#1e293b); border:1px solid var(--border,#1f2a3a); border-radius:10px; padding:12px; }
.fut-tool-rank { width:24px; height:24px; border-radius:50%; background:var(--primary,#2563eb); color:#fff; font-weight:700; font-size:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.fut-tool-body { flex:1; }
.fut-tool-name { font-size:13.5px; font-weight:700; color:var(--text-primary,#f1f5f9); }
.fut-tool-reason { font-size:12px; color:var(--text-secondary,#cbd5e1); margin-top:4px; line-height:1.6; }
.fut-tool-case { font-size:11.5px; color:var(--accent,#10b981); margin:10px 0; line-height:1.6; }
.fut-matcher { background:var(--bg-surface,#111827); border:1px solid var(--border,#1f2a3a); border-radius:10px; padding:12px; margin-top:12px; }
.fut-matcher-title { font-size:12.5px; font-weight:600; color:var(--text-secondary,#cbd5e1); margin-bottom:10px; }
.fut-matcher-ctrl { display:flex; gap:8px; align-items:center; }
.fut-matcher-ctrl select { padding:6px 10px; border-radius:6px; border:1px solid var(--border,#334155); background:var(--bg-surface,#111827); color:var(--text-primary,#f1f5f9); font-size:13px; }
.fut-matcher-out { margin-top:10px; }

.fut-price { background:var(--bg-card,#1e293b); border:1px solid var(--border,#1f2a3a); border-radius:10px; padding:12px; }
.fut-price-range { font-size:14px; font-weight:700; color:var(--text-primary,#f1f5f9); }
.fut-price-note { font-size:12px; color:var(--text-secondary,#cbd5e1); margin-top:4px; line-height:1.6; }
.fut-score-line { font-size:13px; color:var(--text-muted,#94a3b8); margin-top:8px; }
.fut-score-line b.rise { color:var(--color-rise,#ef4444); }
.fut-score-line b.fall { color:var(--color-fall,#22c55e); }

.fut-src-list { list-style:none; margin:10px 0 0; padding:0; }
.fut-src { display:grid; grid-template-columns:auto auto auto 1fr; gap:12px; align-items:center; padding:8px 10px; border-bottom:1px solid var(--border,#1f2a3a); font-size:12px; }
.fut-src-org { font-weight:600; color:var(--text-primary,#f1f5f9); }
.fut-src-score { color:var(--accent,#10b981); }
.fut-src-inf { color:var(--primary,#2563eb); }
.fut-src-sum { color:var(--text-muted,#94a3b8); }

@media (max-width: 860px) {
  .fut-temp-row, .fut-sector-row, .fut-win-row, .fut-layers, .fut-ranks, .fut-metrics, .fut-ff-row { grid-template-columns:1fr; }
}
