/* ══════════════════════════════════════════════════════════════
   AI算力产业图谱 — 全局样式（含移动端响应式）
   ══════════════════════════════════════════════════════════════ */

/* ─── CSS 变量 ─── */
:root {
  --bg: #F7F6F2;
  --card: #FFFFFF;
  --border: #E4E2DC;
  --text: #17191C;
  --text-dim: #575B61;
  --accent: #2456A6;
  --accent-light: #EDF2FA;

  --role-core: #2456A6;
  --role-support: #B45309;
  --role-edge: #9AA0A6;
  --role-next-gen: #1F7A4D;

  --heat-hot: #C8361F;
  --heat-warm: #D97706;
  --heat-cool: #9AA0A6;

  --severity-critical: #ef4444;
  --danger: #b91c1c;
  --severity-high: #f59e0b;
  --severity-medium: #3b82f6;

  --tier1-bg: #EDF2FA;
  --tier1-border: #A8C0E8;
  --tier2-bg: #FEF9EC;
  --tier2-border: #F0DDA0;
  --tier3-bg: #F5F4F0;
  --tier3-border: #E4E2DC;

  /* 研究快照（人工研究属性，紫色系，与实时行情区分） */
  --replay: #7A4FA3;
  --replay-bg: #F1EBF8;

  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Cascadia Code', ui-monospace, 'Roboto Mono', Menlo, Consolas, monospace;

  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
}

/* ─── 基础重置 ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

/* ─── 顶部栏 ─── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  position: relative;
  flex-shrink: 0;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-dot {
  width: 22px;
  height: 22px;
  display: inline-block;
}
.mega-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
}
.mega-score-badge.hot { background: #fef2f2; color: var(--heat-hot); }
.mega-score-badge.warm { background: #fffbeb; color: var(--heat-warm); }

/* ═══ 产业主线上下文栏 ═══ */
.context-bar {
  display: none;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  padding: 0 24px;
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.context-bar.visible { display: block; }
.context-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  font-size: 13px;
  color: var(--text);
  min-width: 0;
}
.context-bar-icon { font-size: 14px; }
.context-bar-label {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.context-bar-sep {
  color: var(--border);
  font-size: 16px;
  margin: 0 2px;
}
.context-bar-hint {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0.7;
  text-align: right;
}
.hint-br { display: none; }

/* ─── Mega Pill 选择器 ─── */
.mega-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.mega-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.mega-pill-btn:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px var(--accent-light);
}
.mega-pill-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
  opacity: 0.8;
}
.mega-pill-name {
  font-weight: 700;
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}
.mega-pill-arrow {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform 0.2s;
  line-height: 1;
}
.mega-pill.open .mega-pill-arrow {
  transform: rotate(180deg);
}
.mega-pill.open .mega-pill-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}
/* ─── 下拉菜单 ─── */
.mega-pill-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  padding: 4px 0;
}
.mega-pill.open .mega-pill-menu { display: block; }
.mega-pill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.12s;
}
.mega-pill-item:hover { background: var(--accent-light); }
.mega-pill-item.active {
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
}
.mega-pill-item .check {
  width: 16px;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  text-align: center;
}
.mega-pill-item:not(.active) .check { visibility: hidden; }

/* ─── 层级树内 Mega Pill ─── */
.vt-mega-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.vt-mega-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.vt-mega-pill-btn:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px var(--accent-light);
}
.vt-mega-pill-arrow {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform 0.2s;
  line-height: 1;
}
.vt-mega-pill.open .vt-mega-pill-arrow {
  transform: rotate(180deg);
}
.vt-mega-pill.open .vt-mega-pill-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}
.vt-mega-pill-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  padding: 4px 0;
}
.vt-mega-pill.open .vt-mega-pill-menu { display: block; }
.vt-mega-pill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.12s;
}
.vt-mega-pill-item:hover { background: var(--accent-light); }
.vt-mega-pill-item.active {
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
}
.vt-mega-pill-item .check {
  width: 16px;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  text-align: center;
}
.vt-mega-pill-item:not(.active) .check { visibility: hidden; }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.update-time {
  font-size: 12px;
  color: var(--text-dim);
}
/* ─── 视图切换器 ─── */
.view-switcher {
  display: flex;
  gap: 3px;
  background: #EFEDE7;
  border-radius: 8px;
  padding: 3px;
}
.view-btn {
  padding: 5px 14px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.view-btn:hover { color: var(--text); }
.view-btn.active {
  background: var(--card);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
/* 独立收件箱图标按钮（不占视图栏，靠右；角标定位到右上角） */
.inbox-btn {
  position: relative;
  padding: 5px 10px;
  font-size: 15px;
  margin-left: 4px;
}
.inbox-btn .nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  margin-left: 0;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  padding: 0 3px;
  font-size: 10px;
}

/* ─── 视图容器切换 ─── */
.view-container { display: none; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto; }
.view-container.active { display: flex; }

/* ─── 工具栏提示 ─── */
/* ─── 层级树 (卡片式) ─── */
.vtree-container {
  flex: 1; min-height: 0;
  overflow: auto;
  padding: 20px 24px;
  background: #F7F6F2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.vt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.vt-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vt-header-right {
  display: flex;
  align-items: center;
}
.vt-header-icon { font-size: 18px; }
.vt-header-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 400;
}
.vt-header-heat {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.vt-header-hint {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0.7;
}

/* 产业卡片 */
.vt-tree-wrapper { margin-bottom: 2px; }
.vt-card {
  margin: 3px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.vt-card:hover {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.vt-card-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

/* ─── v9: 节点卡片化（圆角白底 + 左侧热度色条） ─── */
.vt-node-card {
  position: relative;
  margin: 6px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.vt-node-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
/* 左侧 3px 热度色条（颜色由 JS 内联写入） */
.vt-node-heat {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: #e2e5ec;
}
/* 给色条留出位置 */
.vt-node-card .vt-card-inner { padding-left: 15px; }
.vt-node-card .vt-card-name { font-weight: 700; }

.vt-heat-ring {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid #e2e5ec;
  flex-shrink: 0;
}
.vt-expand-icon { font-size: 9px; color: var(--text-dim); width: 14px; flex-shrink: 0; }
.vt-card-name { font-size: 14px; font-weight: 600; color: var(--text); }
.vt-card-change {
  font-size: 12px; font-weight: 700;
  padding: 1px 5px; border-radius: 4px;
  flex-shrink: 0;
}
.vt-card-change.up   { color: #C8361F; background: #fef2f2; }
.vt-card-change.down { color: #1F7A4D; background: #f0fdf4; }
.vt-card-change.zero { color: #94a3b8; background: #F7F6F2; }
.vt-card-role {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  font-weight: 500; text-transform: uppercase;
}
.vt-role-core { background: #eff6ff; color: #2563eb; }
.vt-role-support { background: #fefce8; color: #b45309; }
.vt-role-edge { background: #F7F6F2; color: #64748b; }
.vt-role-next_gen { background: #ecfdf5; color: #059669; }

.vt-card-imp { font-size: 10px; letter-spacing: 1px; }
.vt-card-badge {
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
  background: #EFEDE7; color: #64748b;
}
.vt-badge-stocks { background: #eff6ff; color: #2563eb; }

/* ─── v3: 节点类型样式 ─── */
.vt-card-navigation {
  border-style: dashed !important;
  opacity: 0.88;
}
.vt-card-navigation .vt-card-name {
  color: #94a3b8;
}
.vt-card-type {
  font-size: 13px;
  margin-left: 2px;
  line-height: 1;
}
.vt-type-navigation { opacity: 0.7; }

/* 导航节点在仪表盘的显示 */
.dashboard-card .vt-card-navigation { display: none; }

/* meta tag for node type */
.meta-type {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.type-investable {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.type-navigation {
  background: #F7F6F2;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}

/* 子节点容器 */
.vt-kids {
  border-left: 2px solid #e2e5ec;
  margin-left: 16px;
  padding-left: 4px;
}

/* 股票小卡片 */
.vt-stock-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  margin: 1px 0;
  border-radius: 5px;
  font-size: 12px;
  border-left: 3px solid #e2e5ec;
  transition: background 0.12s;
}
.vt-stock-card:hover { background: #fff; }
.vt-stock-card.tier-1 { border-left-color: #3b82f6; }
.vt-stock-card.tier-2 { border-left-color: #f59e0b; }
.vt-stock-card.tier-3 { border-left-color: #cbd5e1; }
.vt-stock-code { font-family: var(--font-mono); color: var(--text-dim); font-size: 11px; }
.vt-stock-tier {
  font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px;
  flex-shrink: 0;
}
.vt-stock-tier.t1 { background: #eff6ff; color: #2563eb; }
.vt-stock-tier.t2 { background: #fefce8; color: #b45309; }
.vt-stock-tier.t3 { background: #F7F6F2; color: #94a3b8; }
.vt-stock-name { font-weight: 500; color: var(--text); }
.vt-stock-note { font-size: 11px; color: var(--text-dim); }

/* ─── 主容器 ─── */
.main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ─── 树图面板 ─── */
.tree-panel {
  flex: 1 1 55%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #F7F6F2;
  position: relative;
}
/* ─── 空状态 ─── */
.tree-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 16px;
}

/* ─── 按钮 ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover { background: #EFEDE7; border-color: #cbd5e1; }
.btn:active { background: #e2e5ec; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover { background: #2563eb; }

/* ─── 详情面板 ─── */
.detail-panel {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  max-width: 600px;
  background: var(--card);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: flex 0.3s ease, width 0.3s ease;
}
.detail-panel.expanded {
  flex: 0 0 45%;
  width: 45%;
  min-width: 360px;
}

/* 折叠触发器（面板左边缘的竖条按钮）— button 元素，需重置 UA 默认样式 */
.detail-toggle-tab {
  appearance: none;
  padding: 0;
  font-family: inherit;
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 80px;
  background: var(--card);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dim);
  z-index: 10;
  transition: background 0.15s;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  font-weight: 600;
  font-size: 12px;
}
.detail-toggle-tab:hover {
  background: #EFEDE7;
  color: var(--accent);
}
/* 面板折叠时 tab 始终可见；面板展开时调整 */
.detail-panel.expanded .detail-toggle-tab {
  left: -28px;
}

.detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-align: center;
  gap: 12px;
  padding: 20px;
  white-space: nowrap;
}
.detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-dim);
  gap: 10px;
}
.detail-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: detailSpin 0.7s linear infinite;
}
@keyframes detailSpin {
  to { transform: rotate(360deg); }
}
.empty-icon { font-size: 40px; }

.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* 详情头部 */
.detail-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  font-size: 18px;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-close:hover { background: #EFEDE7; }
.detail-breadcrumb {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.detail-title {
  display: inline-block;  /* 与右侧自选星标同行 */
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 元数据标签 */
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.meta-tag.role-core { background: #eff6ff; color: var(--role-core); }
.meta-tag.role-support { background: #fefce8; color: #b45309; }
.meta-tag.role-edge { background: #F7F6F2; color: #64748b; }
.meta-tag.role-next-gen { background: #ecfdf5; color: #059669; }
.meta-tag.importance { background: #EFEDE7; color: #475569; }
.meta-tag.meta-vcr { font-family: var(--font-mono); }
.meta-tag.meta-cpr { font-family: var(--font-mono); }
.vcr-强, .cpr-强 { background: #ecfdf5; color: #059669; }
.vcr-中, .cpr-中 { background: #fffbeb; color: #b45309; }
.vcr-弱, .cpr-弱 { background: #F7F6F2; color: #94a3b8; }

/* 选项卡导航 */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.tab-btn {
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 选项卡内容 */
.tab-content {
  display: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
}
.tab-content.active { display: block; }
.tab-section {
  margin-bottom: 20px;
}
.tab-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* 概览卡片通用 */
.ocard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
}
.ocard-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ocard-icon { font-size: 18px; }
.ocard-empty {
  color: var(--text-dim);
  font-size: 13px;
  padding: 8px 0;
}

/* ─── 摘要选项卡 ─── */
.summary-oneliner {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  margin-bottom: 16px;
}
.summary-oneliner-icon {
  font-size: 16px;
  margin-right: 6px;
}

/* 六栏网格 — 单列，逐栏展示 */
.summary-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 摘要卡片 */
.ocard-summary {
  border-left-color: #6366f1;
  padding: 12px 16px;
  overflow-x: auto;
}
.ocard-summary .ocard-title {
  font-size: 13px;
  margin-bottom: 8px;
}

/* 利润地图代码块 */
.profit-map-chart {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  background: #F7F6F2;
  padding: 10px 12px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 8px 0;
  color: var(--text);
}
.profit-map-note {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  margin: 0;
}

/* ── 卡片 1: 产业时钟 ── */
.ocard-clock { border-left-color: #8b5cf6; }

/* ── 卡片 2: 投资结论 ── */
.ocard-conclusion { border-left-color: #1F7A4D; }

/* ── 卡片 3: 市场温度 ── */
.ocard-heat { border-left-color: #f59e0b; }
.heat-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.heat-bar-wrap {
  flex: 1;
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}
.heat-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}
/* 五级温度条配色（冰/冻/温/热/沸） */
.heat-frozen { background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.heat-ice { background: linear-gradient(90deg, #60a5fa, #2563eb); }
.heat-mild { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.heat-warm { background: linear-gradient(90deg, #fb923c, #D97706); }
.heat-boiling { background: linear-gradient(90deg, #f59e0b, #C8361F); }
.heat-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.heat-score {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text);
}
.heat-trend {
  font-size: 16px;
}
.heat-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.heat-themes-label {
  font-size: 12px;
  color: var(--text-dim);
}
.heat-theme-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  color: #92400e;
}
.heat-theme-tag small {
  color: var(--text-dim);
}

/* ── 卡片 4: 核心逻辑 ── */
.ocard-logic { border-left-color: #3b82f6; }

.tier-label.t1 { background: var(--tier1-bg); color: var(--accent); }
.tier-label.t2 { background: var(--tier2-bg); color: #b45309; }
.tier-label.t3 { background: var(--tier3-bg); color: #64748b; }
.tier-label.etf-label { background: #e6f7ff; color: #0070c9; }
.etf-item { border-left: 3px solid #1890ff; }

/* 股票列表（详情面板新格式） */
.stock-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stock-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  transition: background 0.12s;
}
.stock-item:hover { background: #F7F6F2; }
.stock-item-name { font-weight: 600; color: var(--text); white-space: nowrap; }
.stock-item-code { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-left: 2px; }
.stock-item-note { font-size: 12px; color: var(--text-dim); flex: 1 1 100%; min-width: 0; }
.stock-change { font-family: var(--font-mono); font-size: 12px; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.stock-change.up { color: #C8361F; }
.stock-change.down { color: #1F7A4D; }

/* 个股研报图标（股票行内，各自独立点击） */
.stock-report-icons { display: inline-flex; gap: 6px; margin-left: 2px; }
.sri-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; font-size: 13px; line-height: 1;
  border-radius: 6px; cursor: pointer;
  opacity: 0.85; transition: all 0.18s;
  background: #EFEDE7; border: 1px solid #e2e8f0;
}
.sri-icon:hover { opacity: 1; transform: translateY(-1px); }
.sri-icon.sri-tracking { background: #eff6ff; border-color: #bfdbfe; }
.sri-icon.sri-tracking:hover { background: #dbeafe; box-shadow: 0 1px 3px rgba(59,130,246,0.15); }
.sri-icon.sri-deep { background: #fffbeb; border-color: #fde68a; }
.sri-icon.sri-deep:hover { background: #fef3c7; box-shadow: 0 1px 3px rgba(245,158,11,0.15); }

/* 侧滑研报面板 */
.stock-report-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.3); display: none;
}
.stock-report-overlay.open { display: block; }

.stock-report-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000;
  width: 55%; max-width: 700px; min-width: 380px;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.stock-report-panel.open { transform: translateX(0); }

.srp-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: #fafafa; flex-shrink: 0;
}
.srp-title { font-size: 15px; font-weight: 700; color: var(--text); }
.srp-toolbar-actions { display: flex; gap: 8px; }
.srp-btn {
  border: 1px solid var(--border); background: #fff;
  padding: 4px 10px; border-radius: 6px; font-size: 12px;
  cursor: pointer; color: var(--text-dim); transition: all 0.12s;
}
.srp-btn:hover { background: #f0f0f0; color: var(--text); }
.srp-fullscreen { border-color: var(--accent); color: var(--accent); }
.srp-close { font-size: 16px; padding: 2px 8px; }

.srp-scorebar { padding: 12px 16px; border-bottom: 1px solid var(--border); background: #F7F6F2; flex-shrink: 0; }
.srp-scorecard { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.srp-score-total { font-size: 28px; font-weight: 900; font-family: var(--font-mono); color: #1A1A1A; }
.srp-score-grade { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.srp-score-grade.grade-a { background: #e6f7ff; color: #0072FF; }
.srp-score-grade.grade-b { background: #f6ffed; color: #1F7A4D; }
.srp-score-grade.grade-c { background: #fff7e6; color: #fa8c16; }
.srp-score-detail { font-size: 12px; color: var(--text-dim); }
.srp-score-nodes { font-size: 11px; color: var(--text-dim); flex: 1 1 100%; }
.srp-loading { font-size: 13px; color: var(--text-dim); }

.srp-tabs {
  display: flex; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.srp-tab {
  flex: 1; padding: 10px; border: none; background: transparent;
  font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-dim);
  border-bottom: 2px solid transparent; transition: all 0.12s;
}
.srp-tab:hover { color: var(--text); }
.srp-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

.srp-content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.srp-iframe { flex: 1; border: none; }

@media (max-width: 600px) {
  .stock-report-panel { width: 100%; max-width: none; min-width: 0; }
}

/* 风险卡片 */
.risk-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 4px solid var(--severity-medium);
}
.risk-card.severity-critical { border-left-color: var(--severity-critical); }
.risk-card.severity-high { border-left-color: var(--severity-high); }
.risk-card .risk-signal {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}
.risk-card .risk-detail {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.severity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.severity-badge.critical { background: #fef2f2; color: #C8361F; }
.severity-badge.high { background: #fffbeb; color: #b45309; }
.severity-badge.medium { background: #eff6ff; color: #2563eb; }

/* 指标表 */
.indicator-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.indicator-table th {
  text-align: left;
  padding: 8px 10px;
  background: #F7F6F2;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-dim);
}
.indicator-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
}
.freq-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.freq-monthly { background: #eff6ff; color: #2563eb; }
.freq-quarterly { background: #f5f3ff; color: #7c3aed; }
.freq-annual { background: #F7F6F2; color: #64748b; }

/* 研报链接（底部紧凑条） */
.detail-reports {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
}
.reports-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.reports-bar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.report-link-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  background: #F7F6F2;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--accent);
  transition: background 0.15s;
}
.report-link-compact:hover { background: var(--accent-light); }
.report-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F7F6F2;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  transition: all 0.15s;
}
.report-link:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  text-decoration: none;
}
.report-depth {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.report-depth.mega { background: #fef2f2; color: #C8361F; }
.report-depth.segment { background: #eff6ff; color: #2563eb; }
.report-depth.mention { background: #F7F6F2; color: #64748b; }

/* 一行横排 */
.heat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.heat-row-kids {
  padding-left: 20px;
  border-left: 2px solid #e2e8f0;
  margin-left: 4px;
}

/* 分支活跃度：每维度一个列容器，kids 嵌在 dim bar 下方 */
.hm-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hm-kids {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid #e2e8f0;
  margin-left: 4px;
}

/* 热度标签（维度 / L2 子节点）*/
.heat-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 16px;
  background: #F7F6F2;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.heat-tag:hover {
  background: #EFEDE7;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.heat-tag.active {
  background: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f644;
}

/* 子节点标签 */
.heat-tag-kid {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

/* 标签名 */
.heat-tag-name {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  flex-shrink: 0;
}
.heat-tag-kid .heat-tag-name {
  font-size: 11px;
  font-weight: 500;
  color: #475569;
}

/* 热度标签（如 龙头驱动）*/
.heat-tag-label {
  font-size: 9px;
  color: #fff;
  padding: 1px 5px;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 14px;
}

/* 条状轨道 */
.heat-tag-track {
  width: 48px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.heat-tag-kid .heat-tag-track {
  width: 40px;
  height: 5px;
}
.heat-tag-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s, background 0.4s;
}

/* 百分比 */
.heat-tag-pct {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.heat-tag-kid .heat-tag-pct {
  font-size: 11px;
}

/* 响应式 */
@media (max-width: 768px) {
  .heat-row { gap: 4px; }
  .heat-tag { padding: 4px 7px; gap: 4px; }
  .heat-tag-name { font-size: 11px; }
  .heat-tag-track { width: 32px; }
  .heat-tag-pct { font-size: 10px; }
  .heat-row-kids { padding-left: 12px; margin-left: 2px; }
}

/* ─── 移动端覆盖层 ─── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--card);
  z-index: 200;
  overflow-y: auto;
  flex-direction: column;
}
.mobile-overlay.active {
  display: flex;
}

/* ═══════════════════════════════════════════════════════
   响应式：平板 (600-899px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  .main-container { flex-direction: column; }
  .tree-panel { flex: 1 1 60%; }
  .detail-panel {
    flex: 0 0 40%;
    max-width: none;
    min-width: 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .top-bar { padding: 0 12px; }
  .app-title { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════
   响应式：手机 (< 600px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 599px) {
  /* 顶栏改两行布局：第一行 logo+选择器+热度徽章（数据日期绝对定位于右上角），
     第二行 搜索框+视图切换（.top-bar-center 基础规则在下方，覆盖见文末响应式补充块） */
  .top-bar { height: auto; flex-wrap: wrap; padding: 6px 10px; row-gap: 6px; column-gap: 8px; }
  .top-bar-left { order: 1; flex: 1 1 100%; min-width: 0; gap: 6px; justify-content: space-between; }
  .top-bar-center { order: 2; flex: 1 1 0; min-width: 0; max-width: none; margin: 0; }
  .top-bar-right { order: 2; display: flex; flex-shrink: 0; }
  .top-bar-right .update-time { display: none; }
  .top-bar-right .auth-btn { display: none; }
  .auth-btn-mobile { display: inline-flex !important; }
  .app-title { font-size: 14px; white-space: nowrap; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; }
  .context-bar { padding: 4px 10px; }
  .context-bar-inner { height: auto; gap: 4px; font-size: 12px; }
  .context-bar-icon { font-size: 14px; }
  .context-bar-hint { font-size: 9px; line-height: 1.3; }
  .hint-dot { display: none; }
  .hint-br { display: inline; }
  .vt-mega-pill-btn { font-size: 12px; padding: 3px 10px; gap: 4px; }
  .vt-mega-pill-name { max-width: 18vw; }
  .context-bar .vt-mega-pill-name { max-width: 24vw; }
  .mega-score-badge { font-size: 10px; padding: 2px 6px; white-space: nowrap; flex-shrink: 0; }
  .update-time { display: block; }
  .view-btn { padding: 4px 8px; font-size: 11px; }

  .main-container {
    flex-direction: column;
    height: calc(100vh - 44px - 60px);
  }
  .tree-panel { flex: 1; }
  .vt-header { padding: 0 0 10px 0; font-size: 13px; gap: 4px; }
  .vt-header-left { gap: 4px; }
  .vt-header-icon { font-size: 16px; }
  .vt-header-heat { font-size: 10px; padding: 1px 6px; }
  .vt-header-hint { font-size: 9px; line-height: 1.3; }
  .vtree-container { padding: 14px 12px; }

  /* 移动端详情面板 = 全屏覆盖 */
  .detail-panel { display: none; }
  .detail-close { display: flex; }

  .heat-tag { padding: 3px 6px; gap: 3px; }
  .heat-tag-name { font-size: 10px; }
  .heat-tag-track { width: 28px; }
  .heat-tag-pct { font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════
   搜索框
   ═══════════════════════════════════════════════════════ */

.top-bar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 400px;
  margin: 0 20px;
}
.search-wrapper {
  position: relative;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  background: #F7F6F2;
  outline: none;
  transition: all 0.2s;
}
.search-input:focus {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.search-input::placeholder { color: #94a3b8; }

.search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  z-index: 300;
}
.search-result-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #EFEDE7;
  transition: background 0.1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.highlighted {
  background: var(--accent-light);
}
.search-result-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.search-result-name mark {
  background: #fde68a;
  color: var(--text);
  border-radius: 2px;
  padding: 0 1px;
}
.search-result-path {
  width: 100%;
  font-size: 11px;
  color: var(--text-dim);
}
.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════
   加载骨架屏
   ═══════════════════════════════════════════════════════ */

.loading-skeleton {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 24px;
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--bg);
}
.skeleton-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.skeleton-spinner {
  width: 36px;
  height: 36px;
  border-width: 4px;
}
.skeleton-text {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}
.skeleton-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}
.skeleton-card {
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e2e8f0 25%, #EFEDE7 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
  width: 100%;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 移动端骨架屏 */
@media (max-width: 599px) {
  .loading-skeleton {
    padding: 30px 16px;
    gap: 18px;
  }
  .skeleton-spinner { width: 28px; height: 28px; }
  .skeleton-text { font-size: 12px; }
  .skeleton-bars { max-width: 100%; gap: 8px; }
  .skeleton-card { height: 32px; }
}

/* 加载错误 */
.load-error {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  position: absolute;
  inset: 40px 0 0 0;
  z-index: 10;
  background: #F7F6F2;
  text-align: center;
}
.load-error .error-icon { font-size: 36px; }
.load-error p { color: var(--text-dim); font-size: 14px; }

/* ═══════════════════════════════════════════════════════
   仪表盘
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   仪表盘 v2 — 投资者视角
   ═══════════════════════════════════════ */

.dashboard-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─── 仪表盘容器 ─── */
#dashboardContainer {
  padding: 20px 24px;
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
}

/* ─── 1. 市场脉搏 ─── */
.dash-pulse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dash-pulse-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
}
.dash-pulse-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-pulse-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.dash-pulse-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* ─── v9: 统计卡语义色（淡色底 ~10% 透明度，色值与温度徽章/涨跌色一致） ─── */
.dash-pulse-boiling { background: rgba(220,38,38,0.10); border-color: rgba(220,38,38,0.25); }
.dash-pulse-warm    { background: rgba(234,88,12,0.10); border-color: rgba(234,88,12,0.25); }
.dash-pulse-mild    { background: rgba(202,138,4,0.10); border-color: rgba(202,138,4,0.25); }
.dash-pulse-ice     { background: rgba(37,99,235,0.10); border-color: rgba(37,99,235,0.25); }
.dash-pulse-frozen  { background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.25); }
.dash-pulse-trend-up   { background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.25); }   /* 上行=红 */
.dash-pulse-trend-down { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.25); }    /* 下行=绿 */

/* ─── 通用区块 ─── */
.dash-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}
.dash-section-header h3 {
  font-size: 15px;
  font-weight: 700;
}
.dash-section-hint {
  font-size: 11px;
  color: var(--text-dim);
}
.dash-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ─── 2. 热门分支 ─── */
.dash-hot-list {
  display: flex;
  flex-direction: column;
}
.dash-hot-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.12s;
  border-top: 1px solid #F7F6F2;
}
.dash-hot-item:hover {
  background: #F7F6F2;
}
.dash-hot-rank {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
  background: #94a3b8;
}
.dash-hot-rank.r1 { background: #C8361F; }
.dash-hot-rank.r2 { background: #f59e0b; }
.dash-hot-rank.r3 { background: #3b82f6; }
.dash-hot-name {
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  min-width: 70px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-hot-path {
  flex: 1;
  font-size: 11px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.dash-hot-mid {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  flex-shrink: 0;
  min-width: 38px;
}
.dash-hot-label {
  font-size: 9px;
  color: #fff;
  padding: 1px 6px;
  border-radius: 8px;
  flex-shrink: 0;
}
.dash-hot-leader {
  font-size: 10px;
  color: #6366f1;
  flex-shrink: 0;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #eef2ff;
  padding: 1px 6px;
  border-radius: 4px;
}
.dash-hot-track {
  flex: 1;
  min-width: 60px;
  height: 6px;
  background: #EFEDE7;
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}
.dash-hot-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s;
}
.dash-hot-pct {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* ─── 3. 维度覆盖 ─── */
.dash-dims {
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-dim-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #F7F6F2;
  border-radius: 6px;
}
.dash-dim-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-dim-name {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
}
.dash-dim-num {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.dash-summary {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid #EFEDE7;
  margin-top: 4px;
  padding-top: 12px;
}

/* ─── 响应式 ─── */
@media (max-width: 768px) {
  .dash-pulse { grid-template-columns: 1fr; }
  .dash-pulse-value { font-size: 22px; }
  .dashboard-container { padding: 12px; gap: 14px; }
  .dash-hot-name { min-width: 50px; max-width: 80px; font-size: 12px; }
  .dash-hot-path { display: none; }
  .dash-hot-track { width: 50px; }
}

/* ═══════════════════════════════════════════════════════
   v8: 维度分组树视图
   ═══════════════════════════════════════════════════════ */

/* 维度分组容器 */
.vt-dim-section {
  margin: 4px 0 8px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

/* 维度头部 */
.vt-dim-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8edf8 100%);
  border: 1px solid #e0e7ff;
  border-left: 3px solid #8b5cf6;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}
.vt-dim-header:hover {
  background: linear-gradient(135deg, #e8edfa 0%, #dce3f2 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.vt-dim-toggle {
  font-size: 12px;
  color: #8b5cf6;
  width: 16px;
  text-align: center;
}
.vt-dim-name {
  font-weight: 700;
  font-size: 15px;
  color: #4c1d95;
  flex: 1;
}
.vt-dim-meta {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* 维度子方向体 */
.vt-dim-body {
  padding: 4px 0 4px 24px;
  background: #fafbfd;
}
.vt-dim-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

/* 维度子节点卡片（紧凑行） */
.vt-dim-child-wrapper {
  margin: 2px 0;
}
.vt-dim-child-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.vt-dim-child-card:hover {
  box-shadow: var(--shadow);
  border-color: #8b5cf6;
}
.vt-dim-child-type {
  font-size: 16px;
  flex-shrink: 0;
}
.vt-dim-child-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vt-dim-child-change {
  font-size: 11px; font-weight: 700;
  padding: 1px 5px; border-radius: 4px;
  flex-shrink: 0;
}
.vt-dim-child-change.up   { color: #C8361F; background: #fef2f2; }
.vt-dim-child-change.down { color: #1F7A4D; background: #f0fdf4; }
.vt-dim-child-change.zero { color: #94a3b8; background: #F7F6F2; }
.vt-dim-child-role {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  background: #EFEDE7;
  color: var(--text-dim);
  flex-shrink: 0;
}
.vt-dim-child-imp {
  font-size: 10px;
  color: #f59e0b;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.vt-dim-child-badge {
  font-size: 10px;
  padding: 1px 6px;
  background: #eff6ff;
  color: #3b82f6;
  border-radius: 8px;
  flex-shrink: 0;
}

/* 维度子节点热度条 */
.vt-dim-heat-bar {
  width: 60px;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.vt-dim-heat-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

/* 维度内嵌套子节点 */
.vt-dim-nested {
  padding-left: 20px;
  border-left: 1px dashed #e2e5ec;
  margin-left: 16px;
}

/* ═══════════════════════════════════════════════════════
   v8: 维度详情聚合视图
   ═══════════════════════════════════════════════════════ */

.dim-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.dim-def-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  padding: 12px 0 4px;
}

/* 覆盖状态卡片 */
.dim-coverage-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.dim-coverage-stat {
  text-align: center;
  flex: 1;
  min-width: 60px;
}
.dim-coverage-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #8b5cf6;
}
.dim-coverage-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}
.dim-coverage-badge {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
}
.dim-coverage-badge.covered {
  background: #ecfdf5;
  color: #059669;
}
.dim-coverage-badge.partial {
  background: #fffbeb;
  color: #d97706;
}

/* 子方向网格（维度详情 → 股票池 tab 中展示） */
.dim-child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding: 4px 0;
}
.dim-child-card-item {
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.dim-child-card-item:hover {
  box-shadow: var(--shadow);
  border-color: #8b5cf6;
}
.dim-child-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.dim-child-card-type {
  font-size: 14px;
}
.dim-child-card-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.dim-child-card-thesis {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 6px;
}
.dim-child-card-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   v8: L1 子产业 — 子方向快览行
   ═══════════════════════════════════════════════════════ */

.child-quick-look {
  margin-bottom: 12px;
}
.child-quick-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.child-quick-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #F7F6F2;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 12px;
  white-space: nowrap;
}
.child-quick-item:hover {
  border-color: #8b5cf6;
  background: #f0f4ff;
}
.child-quick-icon {
  font-size: 12px;
}
.child-quick-name {
  font-weight: 500;
  color: var(--text);
}
.child-quick-lp {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   响应式补充
   ═══════════════════════════════════════════════════════ */

@media (max-width: 899px) {
  .top-bar-center { max-width: 200px; margin: 0 10px; }
}

@media (max-width: 599px) {
  .search-input { font-size: 12px; padding: 4px 10px; }
  .dashboard-container { padding: 12px; gap: 12px; }
  .dash-pulse { grid-template-columns: 1fr; }
  .dash-pulse-value { font-size: 22px; }

  /* 仪表盘：内容自适应不溢出 */
  .dash-section-header { padding: 12px 14px 8px; flex-wrap: wrap; gap: 6px; }
  .dash-hot-item { padding: 8px 12px; gap: 6px; }
  .dash-hot-name { min-width: 40px; max-width: 60px; font-size: 11px; }
  .dash-hot-mid { font-size: 10px; min-width: 28px; }
  .dash-hot-path { font-size: 10px; }
  .dash-hot-leader { max-width: 40px; font-size: 9px; }
  /* 热力标签允许换行 */
  .heat-tag { padding: 4px 7px; gap: 4px; white-space: normal; flex-shrink: 1; }
  .heat-tag-name { font-size: 10px; }

  /* 热点卡片移动端：名字/badge 截断 + 热度条收窄 */
  .hp-hot-main { padding: 10px 12px; }
  .hp-hot-name { max-width: 90px; font-size: 12px; }
  .hp-hot-mega { max-width: 60px; font-size: 10px; }
  .hp-hot-row2 { gap: 4px; font-size: 10px; }
  .hp-hot-stat { font-size: 10px; }
  .heat-tag-track { width: 24px; }
  .heat-tag-pct { font-size: 10px; }
  .heat-row-kids { padding-left: 12px; margin-left: 2px; }

  /* 层级树缩进减半 */
  .vt-kids { margin-left: 8px; padding-left: 2px; }
  .vt-node-card .vt-card-inner { padding: 6px 8px; gap: 4px; }
  .vt-card-name { font-size: 12px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* 移动端允许主容器纵向滚动 */
  .main-container { overflow-y: auto; }
}

/* ═══════════════════════════════════════════════════════════
   首页 v3 — 仪表盘风格（atlas-website-plan.md §四）
   ═══════════════════════════════════════════════════════════ */

.homepage-container {
  padding: 20px 24px;
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
}

.hp-section {
  margin-bottom: 32px;
}

.hp-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hp-section-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: 0.3px;
}

.hp-section-icon { font-size: 20px; }

/* ═══════════ 一、大主线总览 ═══════════ */

.hp-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.hp-mega-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.hp-mega-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(59,130,246,0.08);
  transform: translateY(-1px);
}

.hp-mega-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hp-mega-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hp-mega-icon { font-size: 22px; line-height: 1; }

.hp-mega-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.hp-mega-meta {
  font-size: 11px;
  color: #94a3b8;
}

.hp-mega-right {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.hp-mega-score {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.hp-mega-unit {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.hp-mega-bar {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.hp-mega-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════ 二、今日热点 ═══════════ */

.hp-hot-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-hot-card {
  display: flex;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.hp-hot-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(59,130,246,0.06);
}

.hp-hot-accent {
  width: 4px;
  flex-shrink: 0;
}

.hp-hot-main {
  flex: 1;
  padding: 12px 16px;
  min-width: 0;
}

.hp-hot-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 12px;
}

.hp-hot-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.hp-hot-rank {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  min-width: 18px;
}

.hp-hot-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.hp-hot-mega {
  font-size: 11px;
  color: #94a3b8;
  background: #EFEDE7;
  padding: 1px 7px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.hp-hot-numbers {
  flex-shrink: 0;
}

.hp-hot-change {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.hp-hot-change.up   { color: #C8361F; }
.hp-hot-change.down { color: #1F7A4D; }
.hp-hot-change.flat { color: #94a3b8; }

/* 动态右侧分值（趋势/热度/质地维度） */
.hp-hot-score {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* row2 嵌入式涨跌幅（当不按涨幅排序时显示在统计行） */
.hp-hot-embedded-change {
  font-size: 11px;
  color: #64748b;
}
.hp-hot-embedded-change.up b   { color: #C8361F; }
.hp-hot-embedded-change.down b { color: #1F7A4D; }
.hp-hot-embedded-change.flat b { color: #94a3b8; }

.hp-hot-row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hp-hot-stat {
  font-size: 11px;
  color: #64748b;
}
.hp-hot-stat b { color: #334155; }

.hp-hot-dot {
  color: #cbd5e1;
  font-weight: 700;
}

.hp-hot-tag {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

/* 温度标签 */
.hp-hot-temp {
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.hp-temp-boiling { background: #fef2f2; color: #C8361F; }
.hp-temp-warm    { background: #fff7ed; color: #D97706; }
.hp-temp-mild    { background: #fefce8; color: #ca8a04; }
.hp-temp-ice     { background: #eff6ff; color: #2563eb; }
.hp-temp-frozen  { background: #f5f3ff; color: #7c3aed; }

/* ═══════════ 三、趋势关注 ═══════════ */

.hp-watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.hp-watch-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.hp-watch-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(59,130,246,0.06);
  transform: translateY(-1px);
}

.hp-watch-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hp-watch-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.hp-watch-star {
  font-size: 10px;
  font-weight: 600;
  color: #d97706;
  background: #fffbeb;
  padding: 1px 6px;
  border-radius: 6px;
}

/* 综合标签行 */
.hp-watch-label-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.hp-watch-label {
  font-size: 14px;
  font-weight: 700;
}

.hp-watch-ts {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  background: #EFEDE7;
  padding: 1px 8px;
  border-radius: 10px;
}

.hp-watch-upinfo {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 4px;
}

.hp-watch-desc {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
}

.hp-watch-change {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}
.hp-watch-change .up   { color: #C8361F; font-weight: 600; }
.hp-watch-change .down { color: #1F7A4D; font-weight: 600; }

/* 风险节点红色边框 */
.hp-watch-card.hp-watch-risk {
  border-color: #fecaca;
  background: #fff5f5;
}
.hp-watch-card.hp-watch-risk:hover {
  border-color: #f87171;
  box-shadow: 0 4px 12px rgba(239,68,68,0.08);
}

.hp-watch-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}

/* ═══════════ 四、全部主线 ═══════════ */

.hp-mega-nav-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hp-mega-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hp-mega-chip:hover {
  border-color: #93c5fd;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(59,130,246,0.06);
}

.hp-mega-chip.active {
  border-color: #f59e0b;
  background: #fffbeb;
}

.hp-mega-chip-icon { font-size: 14px; }

/* 静默主线紧凑区（0 分主线收编，不再各占一张大卡） */
.hp-mega-silent { margin-top: 12px; }
.hp-mega-silent-title {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.hp-mega-silent-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.hp-mega-silent .hp-mega-chip {
  padding: 5px 12px;
  font-size: 12px;
  color: #94a3b8;
}

/* ═══════════ 空/加载/错误 ═══════════ */

.hp-empty {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  background: #F7F6F2;
  border-radius: 10px;
  border: 1px dashed #e2e8f0;
}

.hp-loading {
  padding: 60px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.hp-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: hp-spin 0.7s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

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

.hp-error {
  padding: 40px;
  text-align: center;
  color: #C8361F;
  font-size: 14px;
}
.hp-error button {
  margin-top: 12px;
  padding: 6px 16px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

/* ═══════════════════════════════════════════
   v3 五维: 排序按钮栏
   ═══════════════════════════════════════════ */
.hp-sort-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.hp-sort-btn {
  padding: 5px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #F7F6F2;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.hp-sort-btn:hover { border-color: #93c5fd; color: #3b82f6; }
.hp-sort-btn.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

/* 滚动容器 */
.hp-hot-scroll {
  max-height: 65vh;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #F7F6F2;
}
.hp-hot-scroll::-webkit-scrollbar { width: 6px; }
.hp-hot-scroll::-webkit-scrollbar-track { background: #F7F6F2; border-radius: 3px; }
.hp-hot-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* 提醒图标 */
.hp-hot-alert {
  font-size: 14px;
  margin-left: 4px;
}

/* ═══════════════════════════════════════════
   v3 五维: 详情页概览 — 基本面卡片
   ═══════════════════════════════════════════ */
.ocard-fundamentals {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.fund-sub {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #EFEDE7;
}
.fund-sub-title {
  font-size: 13px;
  color: #334155;
  margin-bottom: 4px;
}
.fund-sub-title b {
  color: #1e293b;
  margin-left: 4px;
}
.fund-sub-detail {
  font-size: 11px;
  color: #94a3b8;
}
/* 基本面预警 */
.fund-warnings {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #fef3c7;
}
.fund-warning-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  font-size: 12px;
}
.fund-warning-icon { flex-shrink: 0; font-size: 13px; }
.fund-warning-text { color: #92400e; flex: 1; }
.fund-warning-penalty { color: #C8361F; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.fund-sub-items {
  margin-top: 4px;
}
.fund-item {
  font-size: 11px;
  color: #475569;
  padding: 2px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.fund-item small {
  color: #94a3b8;
  margin-left: auto;
}

/* ═══════════════════════════════════════════
   v3 五维: 详情页 — 提醒区
   ═══════════════════════════════════════════ */
.ocard-alerts {
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}
.alert-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #fef3c7;
}
.alert-item:last-child { border-bottom: none; }
.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.alert-body { flex: 1; min-width: 0; }
.alert-title {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
}
.alert-detail {
  font-size: 12px;
  color: #a16207;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   v3 五维: 通用 — 涨跌颜色
   ═══════════════════════════════════════════ */
.dim-up { color: #C8361F; font-weight: 700; }     /* 涨=红（A股习惯） */
.dim-down { color: #1F7A4D; font-weight: 700; }   /* 跌=绿 */
.dim-flat { color: #94a3b8; }
.dim-na { color: #94a3b8; }

/* ═══════════════════════════════════════════
   首页响应式：小屏降低卡片最小宽度
   （须放在 .hp-mega-grid 基础规则之后才能覆盖）
   ═══════════════════════════════════════════ */
@media (max-width: 599px) {
  .hp-mega-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ═══════════════════════════════════════════
   v9: 微交互 — 浮起 / 渐入 / 过渡（纯追加，不改旧规则）
   ═══════════════════════════════════════════ */

/* 可点卡片 hover 浮起（首页 Mega 卡 / 热点卡 / vtree 节点卡） */
.hp-mega-card,
.hp-hot-card,
.vt-node-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.hp-mega-card:hover,
.hp-hot-card:hover,
.vt-node-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* 列表渲染渐入（首页热点列表 / dashboard 热门分支列表共用 .hp-hot-list） */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hp-hot-list .hp-hot-card { animation: fadeSlideIn 0.3s ease both; }
.hp-hot-list .hp-hot-card:nth-child(1)  { animation-delay: 0ms; }
.hp-hot-list .hp-hot-card:nth-child(2)  { animation-delay: 30ms; }
.hp-hot-list .hp-hot-card:nth-child(3)  { animation-delay: 60ms; }
.hp-hot-list .hp-hot-card:nth-child(4)  { animation-delay: 90ms; }
.hp-hot-list .hp-hot-card:nth-child(5)  { animation-delay: 120ms; }
.hp-hot-list .hp-hot-card:nth-child(6)  { animation-delay: 150ms; }
.hp-hot-list .hp-hot-card:nth-child(7)  { animation-delay: 180ms; }
.hp-hot-list .hp-hot-card:nth-child(8)  { animation-delay: 210ms; }
.hp-hot-list .hp-hot-card:nth-child(9)  { animation-delay: 240ms; }
.hp-hot-list .hp-hot-card:nth-child(10) { animation-delay: 270ms; }
/* 超过 10 档统一 300ms， stagger 不再累加 */
.hp-hot-list .hp-hot-card:nth-child(n+11) { animation-delay: 300ms; }

/* 进度条 / 热度条宽度变化过渡 */
.hp-mega-fill,
.dash-hot-fill,
.heat-tag-fill,
.vt-dim-heat-fill,
.heat-bar {
  transition: width 0.3s ease;
}

/* 视图切换容器淡入
   注：起点取 0.85 而非 0 —— 无头 Chrome 截图按需产帧会把动画冻结在起始帧，
   0 起点会让整个视图在截图里近乎不可见；真实浏览器中 0.85→1 仍是 150ms 淡入 */
@keyframes viewFadeIn {
  from { opacity: 0.85; }
  to   { opacity: 1; }
}
.view-container.active { animation: viewFadeIn 0.15s ease; }

/* 减少动态偏好：关闭以上动画与过渡 */
@media (prefers-reduced-motion: reduce) {
  .hp-mega-card,
  .hp-hot-card,
  .vt-node-card,
  .hp-mega-fill,
  .dash-hot-fill,
  .heat-tag-fill,
  .vt-dim-heat-fill,
  .heat-bar,
  .view-container.active {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   详情概览页优化（2026-07-17）
   ═══════════════════════════════════════════════════════ */
/* 市场温度：分数+徽章收进标题行右侧，温度条独占一行全宽 */
.heat-head-right { margin-left: auto; display: flex; align-items: baseline; gap: 8px; }
.heat-badge { color: #fff; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 500; line-height: 1.6; }
.heat-bar-lg { height: 14px; border-radius: 7px; margin-bottom: 4px; }
.heat-bar-lg .heat-bar { border-radius: 7px; }

/* 基本面底座标签 chips 化 */
.fund-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fund-chip { background: #EFEDE7; border-radius: 10px; padding: 3px 10px; font-size: 11px; color: #475569; }

/* 摘要表格（产业时钟/预期差/配置）— 此前完全无样式，用的浏览器默认渲染 */
.summary-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.summary-table th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text-dim); padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.summary-table td { padding: 8px; line-height: 1.55; vertical-align: top; border-bottom: 1px solid #EFEDE7; color: var(--text); }
.summary-table tbody tr:last-child td { border-bottom: none; }
.summary-table tbody tr:nth-child(even) { background: #F7F6F2; }
.summary-table td:first-child { font-weight: 600; }
/* 产业时钟：固定布局防挤压，按列内容分配宽度（子赛道/阶段/渗透率/估值框架/下一拐点） */
.clock-table { table-layout: fixed; }
.clock-table th:nth-child(1) { width: 13%; }
.clock-table th:nth-child(2) { width: 18%; }
.clock-table th:nth-child(3) { width: 18%; }
.clock-table th:nth-child(4) { width: 24%; }

/* ─── 利润地图 HTML 条形图（替代 ASCII 方块图，2026-07-17） ─── */
.pm-chart { font-size: 12px; overflow-x: auto; }
.pm-text { color: var(--text-dim); font-size: 11px; margin: 4px 0; }
.pm-row { display: flex; align-items: center; gap: 6px; margin: 3px 0; flex-wrap: nowrap; }
.pm-prefix { color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; white-space: pre; flex-shrink: 0; }
.pm-label { font-weight: 600; color: var(--text); flex-shrink: 0; white-space: nowrap; }
.pm-barwrap { flex-shrink: 0; height: 12px; display: flex; align-items: center; }
.pm-bar { display: block; height: 10px; background: #60a5fa; border-radius: 2px; }
.pm-val { font-weight: 700; color: var(--text); font-family: var(--font-mono); font-size: 11px; flex-shrink: 0; min-width: 38px; }
.pm-note { color: var(--text-dim); font-size: 11px; line-height: 1.5; flex: 0 0 auto; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════
   核心资产池视图（2026-07-17）
   ═══════════════════════════════════════════════════════ */
.assets-container { max-width: 960px; margin: 0 auto; padding: 20px 24px; overflow-y: auto; }
.as-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.as-title { font-size: 17px; font-weight: 700; color: var(--text); }
.as-title small { font-size: 12px; font-weight: 400; color: var(--text-dim); margin-left: 8px; }
.as-stats { font-size: 12px; color: var(--text-dim); }
.as-filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.as-chip { padding: 3px 12px; font-size: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text-dim); cursor: pointer; transition: all .15s; }
.as-chip:hover { border-color: var(--accent); color: var(--accent); }
.as-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.as-list { display: flex; flex-direction: column; gap: 8px; }
.as-row { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.as-row:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.as-rank { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text-dim); min-width: 22px; padding-top: 2px; }
.as-main { flex: 1; min-width: 0; }
.as-row1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.as-name { font-size: 14px; font-weight: 700; color: var(--text); }
.as-code { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.as-change { margin-left: auto; font-size: 14px; font-weight: 700; font-family: var(--font-mono); }
.as-change.up { color: #C8361F; } .as-change.down { color: #1F7A4D; } .as-change.flat { color: var(--text-dim); }
.as-row2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.as-node { font-size: 12px; color: var(--accent); }
.as-ranks { font-size: 11px; color: var(--text-dim); }
.as-ranks b { color: var(--text); margin-left: 2px; }
.as-note { font-size: 11px; color: var(--text-dim); line-height: 1.5; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 静默主线 chip 分值 */
.hp-mega-chip-score { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text-dim); margin-left: 4px; }

/* 核心资产池：加载更多按钮 */
.as-more-btn { margin: 12px auto 0; display: block; padding: 6px 20px; font-size: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text-dim); cursor: pointer; }
.as-more-btn:hover { border-color: var(--accent); color: var(--accent); }

/* 核心资产池：范围切换 */
.as-scope-bar { display: flex; gap: 6px; margin-bottom: 8px; }
.as-scope-chip { font-weight: 600; }

/* 核心资产池：跨节点角标 */
.as-dup { font-size: 10px; color: var(--accent); background: #eff6ff; border-radius: 8px; padding: 1px 6px; }

/* ═══════════════════════════════════════════════════════
   AI 对话面板（2026-07-17）
   ═══════════════════════════════════════════════════════ */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--accent); color: #fff; font-size: 22px; cursor: pointer; box-shadow: 0 4px 14px rgba(59,130,246,.4); transition: transform .15s ease; }
.chat-fab:hover { transform: scale(1.08); }
.chat-fab.hidden { display: none; }
.chat-panel { position: fixed; top: 0; right: 0; z-index: 901; width: 420px; max-width: 96vw; height: 100vh; background: var(--bg); border-left: 1px solid var(--border); box-shadow: -6px 0 24px rgba(15,23,42,.12); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .22s ease; }
.chat-panel.open { transform: translateX(0); }
.chat-resize-handle { position: absolute; left: 0; top: 0; width: 5px; height: 100%; cursor: ew-resize; z-index: 2; background: transparent; transition: background .15s; }
.chat-resize-handle:hover { background: var(--accent); opacity: .4; }
.chat-header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--card); }
.chat-title { font-size: 14px; font-weight: 700; color: var(--text); }
.chat-header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.chat-new-btn { border: none; background: none; font-size: 16px; color: var(--text-dim); cursor: pointer; padding: 0 6px; border-radius: 4px; }
.chat-new-btn:hover { color: var(--text); background: var(--border); }
.chat-close { border: none; background: none; font-size: 20px; color: var(--text-dim); cursor: pointer; padding: 0 4px; }
.chat-close:hover { color: var(--text); }
.chat-send-stop { background: #e53e3e !important; color: #fff !important; }
.chat-send-stop:hover { background: #c53030 !important; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble { max-width: 88%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.65; word-break: break-word; }
.chat-msg.user .chat-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.assistant .chat-bubble { background: var(--card); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.error .chat-bubble { border-color: #fca5a5; color: #C8361F; }
.chat-typing { color: var(--text-dim); font-size: 12px; animation: chatBlink 1.2s infinite; }
@keyframes chatBlink { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.chat-h { font-weight: 700; margin: 6px 0 2px; }
.chat-li { padding-left: 4px; }
.chat-code { background: #EFEDE7; border-radius: 6px; padding: 8px 10px; font-family: var(--font-mono); font-size: 11px; overflow-x: auto; margin: 6px 0; }
.chat-bubble code { background: #EFEDE7; border-radius: 4px; padding: 0 4px; font-family: var(--font-mono); font-size: 12px; }
.chat-msg.user .chat-bubble code { background: rgba(255,255,255,.2); }
.chat-node-ref { color: var(--accent); cursor: pointer; border-bottom: 1px dashed var(--accent); transition: all .15s; }
.chat-node-ref:hover { background: rgba(59,130,246,.08); border-bottom-style: solid; }
.chat-msg.user .chat-node-ref { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
.chat-msg.user .chat-node-ref:hover { background: rgba(255,255,255,.15); }
.chat-tool-card { align-self: stretch; background: #F7F6F2; border: 1px dashed var(--border); border-radius: 8px; padding: 6px 10px; font-size: 11px; color: var(--text-dim); }
.chat-tool-card summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.chat-tool-card pre { margin: 6px 0 0; font-family: var(--font-mono); font-size: 10px; max-height: 200px; overflow: auto; white-space: pre-wrap; }
.chat-confirm-card { align-self: stretch; background: var(--card); border: 1px solid var(--accent); border-radius: 8px; padding: 10px 12px; }
.chat-confirm-text { font-size: 13px; color: var(--text); margin-bottom: 8px; }
.chat-confirm-actions { display: flex; gap: 8px; }
.chat-confirm-ok, .chat-confirm-cancel { padding: 5px 14px; border-radius: 6px; font-size: 12px; cursor: pointer; border: 1px solid var(--border); }
.chat-confirm-ok { background: var(--accent); color: #fff; border-color: var(--accent); }
.chat-confirm-cancel { background: transparent; color: var(--text-dim); }
.chat-confirm-resolved { border-color: var(--border); opacity: .8; }
.chat-confirm-done { font-size: 13px; color: var(--text-dim); }
.chat-confirm-error { font-size: 12px; color: var(--danger); }
.chat-reply-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px 0; font-size: 12px; color: var(--text-dim); }
.chat-reply-tag { color: var(--accent); flex-shrink: 0; }
.chat-reply-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply-clear { border: none; background: none; color: var(--text-dim); cursor: pointer; font-size: 14px; }
.chat-reply-clear:hover { color: var(--text); }
.chat-quick { display: flex; gap: 6px; padding: 8px 12px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.chat-quick-btn { font-size: 11px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text-dim); cursor: pointer; }
.chat-quick-btn:hover { border-color: var(--accent); color: var(--accent); }
/* P4-C 记账入口：写操作类快捷 chip，与读操作（QUICK_PROMPTS）视觉区分 */
.chat-quick-btn.chat-quick-write { border-style: dashed; color: var(--accent); border-color: var(--tier1-border); }
.chat-quick-btn.chat-quick-write:hover { background: var(--accent-light); }
.chat-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--card); }
.chat-input { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: var(--font); outline: none; max-height: 100px; }
.chat-input:focus { border-color: var(--accent); }
.chat-send { border: none; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; padding: 0 16px; cursor: pointer; }
.chat-send:disabled { opacity: .5; cursor: default; }
/* P4-B 对话链引导：选项按钮（参考原型 .replies button——竖向左对齐、白底蓝字、hover 浅蓝） */
.chat-options { display: flex; flex-direction: column; gap: 6px; padding: 0 0 4px; }
.chat-option-chip {
  text-align: left; font-size: 13px; padding: 8px 12px; border-radius: 10px;
  cursor: pointer; border: 1px solid var(--border); background: var(--card);
  color: var(--accent); transition: border-color .15s, background .15s;
}
.chat-option-chip:hover { border-color: var(--accent); background: var(--accent-light); }
@media (max-width: 599px) { .chat-panel { width: 100vw; max-width: 100vw; } .chat-fab { right: 14px; bottom: 14px; } }

/* 聊天气泡内的表格/引用/分隔线 */
.chat-table { font-size: 11px; margin: 6px 0; display: block; overflow-x: auto; }
.chat-table th, .chat-table td { padding: 5px 7px; }
.chat-table th { white-space: normal; }
.chat-quote { border-left: 3px solid var(--accent); background: #F7F6F2; border-radius: 0 6px 6px 0; padding: 6px 10px; margin: 6px 0; color: var(--text-dim); font-size: 12px; line-height: 1.6; }
.chat-hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

/* ═══════════════════════════════════════════════════════
   用户认证（登录态按钮 + 登录/注册弹窗）
   ═══════════════════════════════════════════════════════ */
.auth-btn-mobile { display: none; }
.auth-btn { border: 1px solid var(--border); background: var(--card); color: var(--text-dim); border-radius: 14px; padding: 4px 12px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.auth-btn:hover { border-color: var(--accent); color: var(--accent); }
.auth-btn.logged-in { color: var(--accent); border-color: var(--accent); }
.auth-overlay { position: fixed; inset: 0; z-index: 950; background: rgba(15,23,42,.4); display: flex; align-items: center; justify-content: center; }
.auth-card { position: relative; width: 340px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 40px rgba(15,23,42,.25); padding: 20px 22px 14px; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.auth-tab { flex: 1; border: none; background: none; padding: 8px 0; font-size: 14px; color: var(--text-dim); cursor: pointer; border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.auth-input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 10px; outline: none; background: var(--card); color: var(--text); }
.auth-input:focus { border-color: var(--accent); }
.auth-err { min-height: 18px; font-size: 12px; color: #C8361F; margin-bottom: 6px; }
.auth-submit { width: 100%; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; padding: 9px 0; cursor: pointer; }
.auth-foot { margin-top: 12px; font-size: 10px; color: var(--text-dim); text-align: center; }
.auth-close { position: absolute; top: 8px; right: 10px; border: none; background: none; font-size: 18px; color: var(--text-dim); cursor: pointer; }
.auth-close:hover { color: var(--text); }

/* 邮箱登录面板 */
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-email-form { padding: 4px 0; }
.auth-field { margin-bottom: 10px; }
.auth-field input {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px; font-size: 13px; outline: none;
  background: var(--card); color: var(--text);
}
.auth-field input:focus { border-color: var(--accent); }
.auth-email-btn { width: 100%; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; padding: 9px 0; cursor: pointer; }
.auth-email-btn:hover { filter: brightness(1.08); }
.auth-email-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-email-btn.register { background: #1F7A4D; }
.auth-switch { margin-top: 12px; font-size: 12px; color: var(--text-dim); text-align: center; }
.auth-switch a { color: var(--accent); text-decoration: none; margin-left: 4px; }
.auth-switch a:hover { text-decoration: underline; }

/* 微信登录 */
.auth-tab-wechat.active { color: #07C160; border-bottom-color: #07C160; }
.auth-wechat-box { text-align: center; padding: 10px 0; }
.auth-wechat-icon { margin-bottom: 8px; }
.auth-wechat-hint { font-size: 13px; color: var(--text-dim); margin: 0 0 16px; }
.auth-wechat-btn { display: inline-block; border: none; border-radius: 8px; background: #07C160; color: #fff; font-size: 14px; padding: 9px 32px; cursor: pointer; }
.auth-wechat-btn:hover { background: #06AD56; }
.auth-wechat-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 免责声明 */
.auth-disclaimer-box {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.auth-disclaimer-title {
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: #F7F6F2;
  border-bottom: 1px solid var(--border);
}
.auth-disclaimer-text {
  max-height: 170px;
  overflow-y: auto;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.7;
  color: #64748b;
}
.auth-disclaimer-text p {
  margin: 0 0 8px;
}
.auth-disclaimer-text p:last-child { margin-bottom: 0; }
.auth-disclaimer-text b {
  color: #475569;
}
.auth-agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  margin-bottom: 12px;
  user-select: none;
}
.auth-agree input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #07C160;
}

/* 移动端登录弹窗适配 */
@media (max-width: 599px) {
  .auth-card {
    width: calc(100vw - 28px);
    max-width: 340px;
    padding: 16px 14px 12px;
  }
  .auth-disclaimer-text {
    max-height: 130px;
    font-size: 10px;
    line-height: 1.6;
  }
  .auth-wechat-hint {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .auth-wechat-btn {
    padding: 8px 24px;
    font-size: 13px;
  }
}

/* 聊天配额提示 + 自选星标 */
.chat-quota { padding: 0 14px 8px; font-size: 10px; color: var(--text-dim); text-align: right; }
.watch-star { border: none; background: none; font-size: 16px; cursor: pointer; color: #cbd5e1; padding: 0 4px; line-height: 1; }
.watch-star.on { color: #f59e0b; }
.watch-star:hover { transform: scale(1.15); }

/* 详情头部星标与标题对齐 */
#detailWatchStar { vertical-align: 4px; margin-left: 6px; font-size: 18px; }

/* 自选范围：节点/股票分组 */
.as-watch-sec { margin-bottom: 18px; }
.as-watch-title { font-size: 13px; font-weight: 700; color: var(--text-dim); margin: 8px 0 6px; }
.as-node-row { cursor: pointer; }

/* ══════════════════════════════════════════════════════
   自选视图（⭐ 自选）
   ══════════════════════════════════════════════════════ */

/* 容器 = 首页同级容器，复用 hp-section / hp-loading / hp-empty / hp-spinner */
.watchlist-container {
  padding: 20px 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* 未登录 & 空状态 */
.wl-unauth {
  text-align: center;
  padding: 60px 20px;
}
.wl-unauth-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.wl-unauth-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.wl-unauth-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.wl-unauth-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.wl-unauth-btn:hover {
  filter: brightness(1.08);
}

/* section 复用 hp-section 的结构，加额外间距 */
.wl-section {
  margin-bottom: 24px;
}
.wl-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.wl-section-icon {
  font-size: 18px;
}
.wl-section-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ─── 自选节点卡片 ─── */
.wl-node-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wl-node-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.wl-node-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.wl-node-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.wl-node-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.wl-node-mega {
  font-size: 11px;
  color: var(--text-dim);
  background: #EFEDE7;
  padding: 2px 8px;
  border-radius: 4px;
}
.wl-node-trend {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.wl-node-change {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.wl-node-change.up { color: #C8361F; }
.wl-node-change.down { color: #1F7A4D; }
.wl-node-change.flat { color: #94a3b8; }
.wl-node-change.dim-up { color: #fca5a5; }
.wl-node-change.dim-down { color: #86efac; }
.wl-node-stats {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
.wl-node-stats b {
  font-weight: 600;
}
/* 复用首页 .hp-hot-temp / .hp-hot-tag / .hp-hot-dot / .hp-hot-embedded-change 样式，无需额外定义 */

/* ─── 自选股票列表 ─── */
.wl-stock-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wl-stock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.wl-stock-code {
  font-size: 12px;
  color: var(--text-dim);
  font-family: monospace;
  min-width: 54px;
}
.wl-stock-name {
  font-size: 14px;
  color: var(--text);
  flex: 1;
}
.wl-stock-trend {
  font-size: 12px;
  font-weight: 600;
  min-width: 50px;
  text-align: right;
  flex: 1;
}
.wl-stock-change {
  font-size: 13px;
  font-weight: 600;
  min-width: 56px;
  text-align: right;
}
.wl-stock-change.up { color: #C8361F; }
.wl-stock-change.down { color: #1F7A4D; }
.wl-stock-change.flat { color: #94a3b8; }

/* ─── 自选股首页：人话摘要条 + 评估卡（M1） ─── */
.wl-summary {
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
/* 组合体检卡（§2.8） */
.wl-portfolio {
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.wl-pf-row {
  display: flex;
  gap: 10px;
  padding: 3px 0;
  font-size: 13px;
}
.wl-pf-k { flex: 0 0 auto; min-width: 56px; color: var(--text-dim); }
.wl-pf-v { color: var(--text); }
.wl-pf-profile {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.wl-pf-alert {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--warn, #d97706);
  background: rgba(217, 119, 6, 0.08);
  border-radius: 6px;
}
/* 结论优先：顶部一句人话，数据折叠 */
.wl-pf-conclusion {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
}
.wl-pf-details { margin-top: 8px; }
.wl-pf-details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-dim);
  user-select: none;
  list-style: none;
}
.wl-pf-details summary::-webkit-details-marker { display: none; }
.wl-pf-details summary::before { content: '▸ '; }
.wl-pf-details[open] summary::before { content: '▾ '; }
.wl-pf-body {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--bg-hover, rgba(59,130,246,.04));
  border-radius: 6px;
}
.wl-pf-sub .wl-pf-v { font-size: 12px; color: var(--text-dim); }
/* 自选页搜索直加 */
.wl-add { position: relative; margin-bottom: 16px; }
.wl-add-input {
  width: 100%; padding: 10px 14px; font-size: 14px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; outline: none;
}
.wl-add-input:focus { border-color: var(--accent, #3b82f6); }
.wl-add-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  margin-top: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden;
}
.wl-add-item { padding: 10px 14px; font-size: 14px; cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.wl-add-item:hover { background: var(--bg-hover, rgba(59,130,246,.08)); }
.wl-add-code { color: var(--text-dim); font-size: 12px; }
.wl-add-tierb { margin-left: auto; font-size: 11px; color: var(--warn, #d97706); }
.wl-add-empty { padding: 12px 14px; color: var(--text-dim); font-size: 13px; }
.acct {
  padding: 10px 14px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.acct-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.acct-note { margin-top: 6px; font-size: 11px; color: var(--text-dim); }
.acct-empty-text { color: var(--text-dim); }
.wl-account-record {
  border: none;
  background: #4f8cff;
  color: #fff;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
  transition: background .15s;
}
.wl-account-record:hover { background: #3b76e0; }
.wl-account-loading { color: var(--text-dim); font-size: 13px; padding: 8px 14px; }
/* 账户汇总条涨跌/达标颜色（作用域限定，避免全局污染） */
.acct .up { color: #C8361F; }
.acct .down { color: #1F7A4D; }
.acct .ok { color: #1F7A4D; }
.acct .warn { color: #B45309; }

.wl-stock-tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.wl-stock-tab {
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
}
.wl-stock-tab:hover { color: var(--text); }
.wl-stock-tab.active {
  color: var(--accent, #4f8cff);
  border-bottom-color: var(--accent, #4f8cff);
  font-weight: 600;
}
.wl-stock-tab b { margin-left: 4px; }

.wl-empty-add {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}
.wl-empty-add-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 2px dashed var(--border);
  background: none;
  cursor: pointer;
  padding: 28px 44px;
  border-radius: 10px;
  color: var(--text-dim);
  transition: all .15s;
}
.wl-empty-add-btn:hover { border-color: #4f8cff; color: var(--text); }
.wl-empty-add-icon { font-size: 30px; line-height: 1; }
.wl-empty-add-text { font-size: 14px; }
.wl-empty-add-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px;
  margin-top: 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s;
}
.wl-empty-add-more:hover { border-color: #4f8cff; }
.wl-add-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--accent, #4f8cff);
  padding: 4px 8px;
}
.wl-add-more-btn:hover { opacity: .8; }
.wl-add-more-icon { font-size: 16px; }
.wl-add-more-hint { font-size: 12px; color: var(--text-dim); }

.wl-node-group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 4px 8px;
  padding-left: 8px;
  border-left: 3px solid var(--border);
}
.wl-node-group-name { font-size: 12px; font-weight: 500; color: var(--text-dim); }
.wl-node-group-count { font-size: 12px; color: var(--text-dim); }

.wl-eval-card {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.wl-eval-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wl-eval-head-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim);
}
.wl-eval-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.wl-eval-code {
  font-size: 12px;
  color: var(--text-dim);
  font-family: monospace;
}
.wl-eval-del {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.wl-eval-del:hover { color: #C8361F; background: rgba(239, 68, 68, .08); }
.wl-eval-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
}
.wl-eval-meta b { color: var(--text); }
.wl-eval-stale {
  color: #94a3b8;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 6px;
}
.wl-eval-profile {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.wl-eval-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.wl-eval-card.tier-b { opacity: .85; }

/* ─── 净值曲线（信号评估面板内，全仓 100% 参考口径）─── */
.wl-eval-equity {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.wl-eval-equity-meta {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
.wl-eval-equity-meta b { color: var(--text); }
.wl-eval-equity-svg {
  display: block;
  width: 100%;
  height: 80px;
  margin-top: 6px;
}
.wl-eval-equity-base {
  stroke: var(--text-dim);
  stroke-opacity: .35;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.wl-eval-equity-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-dim);
  opacity: .8;
}

/* ─── M2 趋势条（三色，人话状态词）+ 点开层信号明细 ─── */
.wl-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px -6px 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.wl-trend-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.wl-trend-healthy { background: rgba(34, 197, 94, .12); color: #1F7A4D; }
.wl-trend-healthy .wl-trend-dot { background: #1F7A4D; }
.wl-trend-fading { background: rgba(234, 179, 8, .14); color: #ca8a04; }
.wl-trend-fading .wl-trend-dot { background: #eab308; }
.wl-trend-broken { background: rgba(239, 68, 68, .12); color: #C8361F; }
.wl-trend-broken .wl-trend-dot { background: #C8361F; }
.wl-trend-since { font-weight: 400; opacity: .75; margin-left: 2px; }
.wl-trend-detail {
  margin: -4px 0 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.wl-trend-detail summary {
  cursor: pointer;
  padding: 2px 0;
  user-select: none;
}
.wl-trend-nums { margin: 4px 0 2px; }
.wl-trend-nums b { color: var(--text); }
.wl-trend-detail ul { margin: 4px 0 2px; padding-left: 18px; }
.wl-trend-detail li { line-height: 1.7; }
.wl-trend-sigdate { margin-left: 6px; opacity: .6; }

/* M2 分歧卡（趋势转弱/危险 + 研究逻辑没被推翻，浅黄提示条） */
.wl-diverge {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  background: rgba(234, 179, 8, .10);
  border-left: 3px solid #eab308;
  border-radius: 4px;
}

/* ─── 提醒规则（M3）─── */
.wl-rules {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
}
.wl-rules summary {
  cursor: pointer;
  color: var(--text-dim);
  user-select: none;
}
.wl-rules summary:hover { color: var(--text); }
.wl-rules[open] summary { margin-bottom: 6px; }
.wl-rule-empty { color: var(--text-dim); padding: 4px 0; }
.wl-rule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.wl-rule-row.off { opacity: .45; }
.wl-rule-toggle, .wl-rule-del {
  border: none;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 13px;
}
.wl-rule-toggle:hover, .wl-rule-del:hover { background: rgba(148, 163, 184, .12); }
.wl-rule-del { margin-left: auto; font-size: 14px; }
.wl-rule-del:hover { color: #C8361F; }
.wl-rule-label { color: var(--text); line-height: 1.5; }
.wl-rule-action { font-weight: 600; color: #4f8cff; }
.wl-rule-history { margin-top: 6px; }
.wl-rule-history summary { cursor: pointer; color: var(--text-dim); font-size: 12px; padding: 2px 0; user-select: none; }
.wl-rule-history-body { padding-left: 8px; border-left: 2px solid rgba(148, 163, 184, .2); }

/* P3-1 规矩信号质量评估 */
.wl-rule-eval { background: none; border: none; cursor: pointer; font-size: 13px; padding: 0 2px; opacity: .7; }
.wl-rule-eval:hover { opacity: 1; }
.wl-rule-eval-panel { margin: 4px 0 8px 24px; padding: 8px 10px; background: rgba(148, 163, 184, .06); border-radius: 8px; font-size: 12.5px; line-height: 1.6; }
.wl-eval-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wl-eval-count { color: var(--text-dim); }
.wl-eval-warn { color: #D97706; }
.wl-eval-metrics { color: var(--text); margin: 4px 0; }
.wl-eval-metrics b { color: #4f8cff; }
.wl-eval-regime { display: flex; flex-direction: column; gap: 2px; color: var(--text-dim); }
.wl-eval-regime-row { display: flex; gap: 10px; }
.wl-eval-regime-row span:first-child { width: 2em; }
.wl-eval-caliber { color: var(--text-dim); font-size: 11.5px; margin-top: 4px; }

/* P3-2 规矩版本历史 */
.wl-rule-versions { background: none; border: 1px solid var(--text-dim); border-radius: 4px; cursor: pointer; font-size: 10.5px; padding: 0 4px; color: var(--text-dim); opacity: .8; }
.wl-rule-versions:hover { opacity: 1; }
.wl-rule-versions-panel { margin: 4px 0 8px 24px; padding: 8px 10px; background: rgba(148, 163, 184, .06); border-radius: 8px; font-size: 12.5px; line-height: 1.6; }
.wl-version-row { display: flex; gap: 10px; padding: 3px 0; align-items: baseline; }
.wl-version-row.cur .wl-version-tag { color: #4f8cff; }
.wl-version-tag { color: var(--text-dim); font-size: 11px; flex: none; }
.wl-version-cond { color: var(--text); }
.wl-version-eval { color: var(--text-dim); font-size: 11.5px; margin-left: auto; text-align: right; }

/* P3-3 今日要看 */
.wl-today-body { display: flex; flex-direction: column; gap: 6px; }
.wl-today-empty { color: var(--text-dim); padding: 8px 0; }
.wl-today-card summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.wl-today-card summary::-webkit-details-marker { display: none; }
.wl-today-name { color: var(--text); font-weight: 500; }
.wl-today-count { color: var(--text-dim); font-size: 12px; }
.wl-today-resnoozed { color: #D97706; font-size: 11px; }
.wl-today-btns { display: flex; gap: 4px; }
.wl-today-done, .wl-today-snooze { background: none; border: 1px solid var(--border); cursor: pointer; font-size: 11px; padding: 2px 8px; border-radius: 4px; color: var(--text-dim); }
.wl-today-done:hover, .wl-today-snooze:hover { color: var(--text); border-color: var(--text-dim); }
.wl-today-batch { margin-left: auto; display: flex; gap: 4px; }
.wl-today-batch-btn { background: none; border: 1px solid var(--border); cursor: pointer; font-size: 11px; padding: 2px 8px; border-radius: 4px; color: var(--text-dim); }
.wl-today-batch-btn:hover { color: var(--text); border-color: var(--text-dim); }
.wl-today-ask { background: none; border: 1px solid var(--border); cursor: pointer; font-size: 11px; padding: 1px 8px; border-radius: 4px; color: var(--accent, #3b82f6); margin-left: 6px; }
.wl-today-ask:hover { border-color: var(--accent, #3b82f6); }
.wl-today-items { margin-top: 4px; padding-left: 6px; display: flex; flex-direction: column; gap: 2px; }
.wl-today-item { color: var(--text); font-size: 13px; line-height: 1.5; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wl-today-item-title { color: var(--text); flex: 1; min-width: 0; }
.wl-today-more { color: var(--text-dim); font-size: 12px; padding: 4px 0; cursor: pointer; }
.wl-today-digest summary { cursor: pointer; color: var(--text-dim); font-size: 13px; }
.wl-today-digest-body { margin-top: 4px; padding-left: 6px; display: flex; flex-direction: column; gap: 2px; }
.wl-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.wl-rule-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-dim);
  background: none;
}
.wl-rule-chip:hover { color: var(--text); border-color: var(--text-dim); }

/* ─── 自选卡首行「规矩」chip（P2a-4 三态：诱饵 / 正常 / 已触发）─── */
.wl-rule-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.4;
  border: 1px solid transparent;
}
.wl-rule-badge.on {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--tier1-border);
}
.wl-rule-badge.fired {
  background: rgba(239, 68, 68, .08);
  color: var(--danger);
  border-color: rgba(239, 68, 68, .3);
}
.wl-rule-badge.add {
  background: none;
  color: var(--accent);
  border: 1px dashed var(--tier1-border);
}
.wl-rule-badge.add:hover { background: var(--accent-light); }
.wl-rule-badge:hover { filter: brightness(.98); }
/* ─── 自选卡首行「持仓」chip（P2a-5：成本/浮盈，收盘静态口径；P4-C：button 化可点击记账）─── */
.wl-holding-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-family: inherit;   /* button 化：继承父级字体，避免系统默认字体 */
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
  cursor: pointer;
  background: rgba(100, 116, 139, .08);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
/* 无持仓：淡色「＋记一笔」chip（P4-C 记账次入口） */
.wl-holding-badge.wl-holding-empty {
  background: none;
  color: var(--accent);
  border: 1px dashed var(--tier1-border);
}
.wl-holding-badge.wl-holding-empty:hover { background: var(--accent-light); }
.wl-holding-badge:hover { filter: brightness(.98); }
.wl-rule-nl {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.wl-rule-price-err {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}
.wl-rule-nl-input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  font-size: 12px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
}
.wl-rule-nl-input:focus { border-color: var(--text-dim); }
.wl-rule-nl-btn {
  flex: none;
  padding: 4px 12px;
  font-size: 12px;
  color: #fff;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.wl-rule-nl-btn:hover { background: #2563eb; }
.wl-rule-system-bait { margin-top: 10px; }
.wl-rule-system-bait-btn {
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text-dim, #666);
  background: transparent;
  border: 1px dashed var(--text-dim, #bbb);
  border-radius: 6px;
  cursor: pointer;
}
.wl-rule-system-bait-btn:hover { color: var(--text); border-color: var(--text-dim, #888); }
.wl-rule-confirm {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(59, 130, 246, .08);
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
}
.wl-rule-confirm-text { color: var(--text); line-height: 1.6; }
.wl-rule-confirm-btns { display: flex; gap: 8px; margin-top: 6px; }

/* ─── 移动端 ─── */
@media (max-width: 599px) {
  .watchlist-container {
    padding: 12px 12px 32px;
    max-width: none;
  }
  .wl-node-stats {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .wl-stock-row {
    gap: 8px;
  }
  /* 单行折叠卡头部：窄屏折行 + 缩小间距，避免名称/代码/评分/价格挤一行 */
  .wl-eval-head,
  .wl-node-top {
    flex-wrap: wrap;
    gap: 6px 8px;
  }
  .wl-eval-headmeta,
  .wl-node-headmeta {
    gap: 6px 10px;
    font-size: 11px;
    margin-left: 0;
  }
  .wl-eval-head-right {
    margin-left: auto;
  }
  .wl-eval-name { font-size: 14px; }
  .wl-eval-code { font-size: 11px; }
  .wl-inbox-top { gap: 6px; }
}
/* 板块降温警示（趋势条旁，不改变状态色） */
.wl-trend-advisory {
  margin-left: 8px; font-size: 11px; color: var(--warn, #d97706);
  border: 1px solid var(--warn, #d97706); border-radius: 8px; padding: 0 6px;
}

/* ─── 研究跟踪（M4 假设看板，点开层）─── */
.wl-thesis-line {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
}
.wl-thesis {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
}
.wl-thesis summary {
  cursor: pointer;
  color: var(--text-dim);
  user-select: none;
}
.wl-thesis summary:hover { color: var(--text); }
.wl-thesis[open] summary { margin-bottom: 6px; }
.wl-thesis-gname {
  margin-top: 6px;
  font-weight: 600;
  color: var(--text-dim);
}
.wl-thesis-item { padding: 5px 0 5px 2px; }
.wl-thesis-ihead {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wl-thesis-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.wl-thesis-state { font-weight: 600; }
/* 状态色：灰=未触发 蓝=有进展 绿=已兑现 橙=抬头 红=已证伪 青=缓和 */
.wl-thesis-dot.st-untriggered { background: #94a3b8; }
.wl-thesis-state.st-untriggered { color: #94a3b8; }
.wl-thesis-dot.st-supporting { background: #3b82f6; }
.wl-thesis-state.st-supporting { color: #3b82f6; }
.wl-thesis-dot.st-fulfilled { background: #1F7A4D; }
.wl-thesis-state.st-fulfilled { color: #1F7A4D; }
.wl-thesis-dot.st-looming { background: #D97706; }
.wl-thesis-state.st-looming { color: #D97706; }
.wl-thesis-dot.st-falsified { background: #C8361F; }
.wl-thesis-state.st-falsified { color: #C8361F; }
.wl-thesis-dot.st-easing { background: #14b8a6; }
.wl-thesis-state.st-easing { color: #14b8a6; }
.wl-thesis-text {
  color: var(--text);
  line-height: 1.6;
  margin: 2px 0 0 14px;
}
.wl-thesis-note {
  color: var(--text-dim);
  line-height: 1.6;
  margin-left: 14px;
}
/* 「调整阈值 ✎」入口（对标原型 .adj：小字蓝链接） */
.wl-thesis-adj {
  font-size: 11px;
  color: var(--accent);
  margin-left: 8px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.wl-thesis-adj:hover { text-decoration: underline; }

/* ═══ M5 提醒 inbox + 顶栏未读角标 ═══ */
.nav-badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 4px;
  margin-left: 4px;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #C8361F;
  border-radius: 8px;
  vertical-align: 2px;
}
.wl-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wl-inbox-card {
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #3b82f6);
  border-radius: 8px;
}
.wl-inbox-card.kind-knock { border-left-color: #C8361F; }
.wl-inbox-card.kind-trend_break { border-left-color: #D97706; }
.wl-inbox-card.kind-move_attr { border-left-color: #eab308; }
.wl-inbox-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.wl-inbox-kind {
  font-size: 11px;
  padding: 1px 6px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.wl-inbox-time {
  font-size: 12px;
  color: var(--text-dim);
}
.wl-inbox-read {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
}
.wl-inbox-read:hover { color: var(--text); }
.wl-inbox-ask {
  margin-left: auto;
  border: 1px solid var(--border);
  background: none;
  color: var(--accent, #3b82f6);
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.wl-inbox-ask:hover { border-color: var(--accent, #3b82f6); }
.wl-inbox-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.wl-inbox-body {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  white-space: pre-line;
}
.wl-inbox-readall {
  margin-left: auto;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
}
/* 独立收件箱（视图级，拆自自选主页） */
.inbox-container {
  padding: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.wl-inbox-head {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.wl-inbox-head h2 {
  font-size: 18px;
  margin: 0;
}
.wl-inbox-card.read {
  opacity: .55;
}
.wl-inbox-read-label {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-dim);
}
.wl-inbox-readall:hover { color: var(--text); }
/* ══════════ P3-3b UI 重设计：今日要看 + 收件箱 ══════════ */
/* ── 通用按钮（三档权重）── */
.wl-btn { font-family: var(--font); font-size: 12.5px; border-radius: 7px; padding: 5px 14px; cursor: pointer; border: 1px solid transparent; line-height: 1.4; }
.wl-btn-primary { background: var(--accent); color: #fff; }
.wl-btn-primary:hover { background: #1d4689; }
.wl-btn-ghost { background: var(--card); border-color: var(--border); color: var(--text-dim); }
.wl-btn-ghost:hover { color: var(--text); border-color: #c9c6bf; }
.wl-btn-text { background: none; border: none; color: var(--role-edge); padding: 5px 8px; }
.wl-btn-text:hover { color: var(--text-dim); }
.wl-btn-danger { background: var(--danger); color: #fff; }
.wl-btn-danger:hover { background: #9f1717; }

/* ── 今日要看头部 ── */
.wl-tw-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.wl-tw-count { font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: var(--text); }
.wl-tw-count.danger { color: var(--danger); }
.wl-tw-count-label { font-size: 13px; color: var(--text-dim); }
.wl-tw-progress { margin-left: auto; font-size: 12px; color: var(--role-edge); font-family: var(--font-mono); }
.wl-tw-digest-count { font-size: 12px; color: var(--role-edge); font-family: var(--font-mono); }

/* ── 待处理（整个今日要看一个折叠块，summary 一行 = 标题+待处理数+进度）── */
.wl-today-wrap { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.wl-today-summary { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; }
.wl-today-summary::-webkit-details-marker { display: none; }
.wl-today-h2 { font-size: 16px; font-weight: 700; }
.wl-today-summary .wl-tw-progress { margin-left: 0; }
.wl-today-pending-arrow { margin-left: auto; color: var(--role-edge); font-size: 12px; transition: transform .15s; }
.wl-today-wrap[open] .wl-today-pending-arrow { transform: rotate(90deg); }
.wl-today-body { padding: 0 14px 14px; }

/* ── 行动卡（3px 左色条分级）── */
.wl-acard { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.wl-acard-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.wl-acard-spine.stop, .wl-acard-spine.exit { background: var(--danger); }
.wl-acard-spine.track { background: var(--accent); }
.wl-acard-spine.knock { background: var(--replay); }
.wl-acard-summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.wl-acard-summary::-webkit-details-marker { display: none; }
.wl-acard-arrow { margin-left: auto; color: var(--role-edge); font-size: 12px; transition: transform .15s; }
.wl-acard[open] .wl-acard-arrow { transform: rotate(180deg); }
.wl-acard-body { padding: 0 16px 14px; }
.wl-acard-name { font-weight: 700; font-size: 14.5px; }
.wl-acard-code { font-family: var(--font-mono); font-size: 12px; color: var(--role-edge); }
.wl-acard-merged { font-size: 11px; color: var(--text-dim); background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 1px 8px; }
.wl-acard-redo { font-size: 11px; color: var(--heat-warm); background: var(--tier2-bg); border: 1px solid var(--tier2-border); border-radius: 99px; padding: 1px 8px; }
.wl-acard-kind { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.wl-acard-kind.stop, .wl-acard-kind.exit { color: var(--danger); }
.wl-acard-kind.track { color: var(--accent); }
.wl-acard-kind.knock { color: var(--replay); }
.wl-acard-main { font-size: 14px; margin-bottom: 2px; }
.wl-acard-meta { font-size: 12px; color: var(--text-dim); }
.wl-acard-more { margin-top: 8px; font-size: 12.5px; color: var(--text-dim); border-top: 1px dashed var(--border); padding-top: 8px; cursor: pointer; }
.wl-acard-more:hover { color: var(--text); }
.wl-acard-main-row { display: flex; align-items: flex-start; gap: 12px; }
.wl-acard-main-col { flex: 1; min-width: 0; }
.wl-acard-actions { display: flex; gap: 8px; flex: none; align-self: center; }
.wl-acard-items { margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 8px; }

/* ── digest 收纳卡（虚线框）── */
.wl-today-digest { background: transparent; border: 1px dashed var(--border); border-radius: 10px; padding: 11px 16px; cursor: pointer; }
.wl-today-digest summary { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 13px; list-style: none; }
.wl-today-digest summary::-webkit-details-marker { display: none; }
.wl-today-digest-n { font-family: var(--font-mono); font-size: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 0 8px; }
.wl-today-digest-hint { font-size: 12px; }
.wl-today-digest-arrow { color: var(--role-edge); }
.wl-today-digest-allread { margin-left: auto; padding: 3px 10px; font-size: 11.5px; }

/* ── 清零态 ── */
.wl-today-clear { text-align: center; padding: 32px 0 28px; border: 1px dashed var(--border); border-radius: 10px; color: var(--text-dim); }
.wl-today-clear-big { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.wl-today-clear-small { font-size: 12.5px; color: var(--role-edge); }

/* ── 收件箱两列（grid + 响应式）── */
.wl-inbox-cols { display: grid; grid-template-columns: 5fr 7fr; gap: 14px; align-items: start; }
@media (max-width: 820px) { .wl-inbox-cols { grid-template-columns: 1fr; } }
.wl-inbox-col { background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.wl-inbox-colhead { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #FCFBF9; }
.wl-inbox-colhead h3 { font-size: 13.5px; font-weight: 700; }
.wl-inbox-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 600; border-radius: 99px; padding: 0 8px; }
.wl-inbox-badge.hot { background: var(--danger); color: #fff; }
.wl-inbox-badge.calm { background: var(--bg); color: var(--text-dim); border: 1px solid var(--border); }
.wl-inbox-hint { margin-left: auto; font-size: 11.5px; color: var(--role-edge); }
.wl-inbox-headbtn { margin-left: auto; background: none; border: 1px solid var(--border); cursor: pointer; font-size: 11px; padding: 2px 8px; border-radius: 4px; color: var(--text-dim); }
.wl-inbox-headbtn:hover { color: var(--text); border-color: var(--text-dim); }
.wl-inbox-nask { background: none; border: 1px solid var(--border); cursor: pointer; font-size: 11px; padding: 1px 8px; border-radius: 4px; color: var(--accent, #3b82f6); flex: none; }
.wl-inbox-nask:hover { border-color: var(--accent, #3b82f6); }

/* ── 行动列时间线 ── */
.wl-inbox-irow { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #F0EFEB; align-items: flex-start; }
.wl-inbox-irow:last-child { border-bottom: none; }
.wl-inbox-dot { width: 7px; height: 7px; border-radius: 99px; margin-top: 7px; flex: none; }
.wl-inbox-dot.pend { background: var(--danger); }
.wl-inbox-dot.done { background: #C9C6BF; }
.wl-inbox-dot.snoo { background: var(--heat-warm); }
.wl-inbox-ic { flex: 1; min-width: 0; }
.wl-inbox-t1 { font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; }
.wl-inbox-who { font-weight: 600; }
.wl-inbox-time { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--role-edge); flex: none; }
.wl-inbox-t2 { font-size: 12.5px; color: var(--text-dim); margin-top: 1px; }
.wl-inbox-mini { display: flex; gap: 6px; margin-top: 7px; }
.wl-inbox-mini .wl-btn { font-size: 11.5px; padding: 3px 10px; }
.wl-inbox-state { font-size: 11px; border-radius: 99px; padding: 0 7px; flex: none; align-self: center; }
.wl-inbox-state.done { background: var(--bg); color: var(--role-edge); border: 1px solid var(--border); }
.wl-inbox-state.snoo { background: var(--tier2-bg); color: var(--heat-warm); border: 1px solid var(--tier2-border); }
.wl-inbox-irow.is-done .wl-inbox-who, .wl-inbox-irow.is-done .wl-inbox-t2 { color: var(--role-edge); text-decoration: line-through; text-decoration-color: #d8d5cf; }

/* ── 消息流行式 ── */
.wl-inbox-nrow { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #F0EFEB; font-size: 13px; align-items: baseline; cursor: pointer; }
.wl-inbox-nrow:last-child { border-bottom: none; }
.wl-inbox-nrow:hover { background: #FCFBF9; }
.wl-inbox-nsrc { font-size: 11px; color: var(--role-edge); flex: none; width: 52px; }
.wl-inbox-ntxt { flex: 1; color: var(--text); }
.wl-inbox-ntime { font-family: var(--font-mono); font-size: 11px; color: var(--role-edge); flex: none; }
.wl-inbox-nrow.read .wl-inbox-ntxt { color: var(--role-edge); }
.wl-inbox-colfoot { padding: 9px 16px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--role-edge); cursor: pointer; }
.wl-inbox-colfoot:hover { color: var(--text-dim); }
/* ── 收件箱消息流「点开看详情」弹层（方案 B）── */
.wl-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 40px;
  overflow-y: auto;
}
.wl-detail {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 18px 20px;
}
.wl-detail-head { display: flex; align-items: flex-start; gap: 10px; }
.wl-detail-src { flex: none; font-size: 11px; color: var(--role-edge); padding: 1px 8px; border: 1px solid var(--border); border-radius: 99px; margin-top: 2px; }
.wl-detail-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.45; }
.wl-detail-close { flex: none; background: none; border: none; color: var(--text-dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.wl-detail-close:hover { color: var(--text); }
.wl-detail-summary { margin-top: 12px; font-size: 13.5px; color: var(--text); line-height: 1.7; }
.wl-detail-comment { margin-top: 6px; font-size: 13px; color: var(--text-dim); line-height: 1.6; border-left: 3px solid var(--accent, #3b82f6); padding-left: 10px; }
.wl-detail-news { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.wl-detail-news-item { font-size: 13px; }
.wl-detail-news-title { display: block; font-weight: 600; line-height: 1.5; }
a.wl-detail-news-title { color: var(--accent, #3b82f6); text-decoration: none; }
a.wl-detail-news-title:hover { text-decoration: underline; }
span.wl-detail-news-title { color: var(--text); font-weight: 500; }
.wl-detail-news-meta { display: block; font-size: 11.5px; color: var(--role-edge); margin-top: 2px; }
.wl-detail-news-excerpt { margin-top: 4px; font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.wl-detail-links { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.wl-detail-link { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.wl-detail-body { margin-top: 12px; font-size: 13px; color: var(--text); line-height: 1.7; }
.wl-detail-loading { margin-top: 12px; font-size: 13px; color: var(--text-dim); text-align: center; padding: 16px 0; }
.wl-detail-expand { margin-top: 2px; }
.wl-detail-expand summary { cursor: pointer; list-style: none; }
.wl-detail-expand summary::-webkit-details-marker { display: none; }
.wl-detail-expand-open { font-size: 11px; color: var(--accent, #3b82f6); margin-left: 6px; }
.wl-detail-expand-close { font-size: 11px; color: var(--accent, #3b82f6); margin-left: 6px; }
.wl-detail-expand[open] .wl-detail-expand-open { display: none; }
.wl-detail-expand:not([open]) .wl-detail-expand-close { display: none; }
.wl-detail-rawtext { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.7; white-space: pre-wrap; }
.wl-detail-news-link { font-size: 11px; color: var(--accent, #3b82f6); text-decoration: none; margin-right: 8px; }
.wl-detail-news-link:hover { text-decoration: underline; }
.wl-detail-news-links { display: inline-block; margin-top: 4px; }
/* Web Push（P1b-3）：权限请求横幅 + 前台 Toast */
.push-prompt-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  color: var(--text);
  max-width: 92vw;
}
.push-prompt-go {
  border: none;
  border-radius: 6px;
  background: var(--accent, #3b82f6);
  color: #fff;
  font-size: 12px;
  padding: 5px 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.push-prompt-later {
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.push-prompt-later:hover { color: var(--text); }
.push-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9990;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  font-size: 13px;
  color: var(--text);
}
/* 四好筛选器：加自选 toast 类型色条 + 确认弹窗 */
.ff-toast-ok { border-left: 3px solid #1F7A4D; }
.ff-toast-err { border-left: 3px solid #C8361F; }
.ff-toast-info { border-left: 3px solid var(--accent, #3b82f6); }
.ff-confirm-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.4);
  display: flex; align-items: center; justify-content: center;
}
.ff-confirm {
  min-width: 320px; max-width: 420px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.ff-confirm-msg { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 18px; }
.ff-confirm-btns { display: flex; justify-content: flex-end; gap: 10px; }
/* 自选卡：最新价（红涨绿跌）+ 研报/跟踪链接 */
.wl-eval-price { margin: 0 8px; font-size: 14px; }
.wl-eval-price.up { color: #C8361F; }
.wl-eval-price.down { color: #1F7A4D; }
.wl-eval-price.flat { color: var(--text-dim); }
.wl-eval-links { margin: 4px 0 2px; font-size: 12px; }
.wl-eval-link { color: var(--accent, #3b82f6); text-decoration: none; margin-right: 4px; }
.wl-eval-link:hover { text-decoration: underline; }
/* 板块节点名：超长截断省略号，悬浮 title 看全名（自选卡首行精简 08-24） */
.wl-eval-node {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
/* 自选卡：最新动态（服务端预渲染，与跟踪页同一渲染器 report/news_section.py） */
.wl-events { margin: 8px 0 2px; font-size: 13px;
  /* 跟踪页变量在 Atlas 未定义，映射到 Atlas 变量（供下方 news-* 规则与内联样式使用） */
  --text-secondary: var(--text-dim); --border-color: var(--border); --accent-red: var(--heat-hot);
}
.wl-events summary { color: var(--text-dim); cursor: pointer; font-size: 12px; font-weight: 600; }
.wl-events-summary { display: flex; align-items: center; gap: 8px; }
.wl-events-summary .wl-silent-toggle { margin-left: auto; padding: 2px 8px; font-size: 11px; flex: none; }
/* ─── 近况跟踪共享 CSS（与 NEWS_SECTION_CSS 逐字同步，改时两边一起改） ─── */
.news-item { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.news-item:last-child { border-bottom: none; }
.news-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; line-height: 1.5; }
.news-meta { font-size: 11px; color: var(--text-secondary); display: flex; justify-content: space-between; }
.news-expand .expand-close { display: none; }
.news-expand[open] .expand-open { display: none; }
.news-expand[open] .expand-close { display: inline; }
.news-expand[open] > div { cursor: pointer; }  /* 点击正文折叠 */
.news-tag { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 500; margin-right: 4px; vertical-align: middle; }
.news-tag.notice { background: rgba(0,114,255,0.1); color: #0072FF; }
.news-tag.news { background: rgba(222,2,2,0.08); color: var(--accent-red); }
.news-tag.zsxq { background: rgba(0,178,122,0.1); color: #008060; }
.news-tag.event { background: rgba(124,58,237,0.12); color: #7C3AED; }
/* 自选卡头部：图标链接 + 删除钮美化 */
.wl-eval-icons { display: inline-flex; gap: 2px; margin-left: 6px; }
.wl-eval-icon { font-size: 14px; text-decoration: none; opacity: .75; padding: 2px; }
.wl-eval-icon:hover { opacity: 1; }
.wl-eval-head-right { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.wl-eval-del {
  border: 1px solid var(--border); background: transparent; color: var(--text-dim);
  border-radius: 50%; width: 22px; height: 22px; line-height: 1; cursor: pointer;
  font-size: 13px; transition: all .15s;
}
.wl-eval-del:hover { color: #C8361F; border-color: #C8361F; }
.wl-eval-del.armed {
  width: auto; border-radius: 11px; padding: 0 8px; font-size: 11px;
  color: #fff; background: #C8361F; border-color: #C8361F; height: 22px;
}
/* 研究跟踪展开层标题内联计数标签 */
.wl-thesis-tag { margin-left: 8px; font-size: 11px; color: var(--warn, #d97706); font-weight: 400; }
.wl-thesis-dot.st-watching { background: #0ea5e9; }
.wl-thesis-state.st-watching { color: #0ea5e9; }
/* 关键指标结论 chip：正常=绿 / 越界=红 / 待查=灰 */
.wl-thesis-chip {
  font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px;
  line-height: 16px; white-space: nowrap;
}
.wl-thesis-chip.v-normal { color: #1F7A4D; background: rgba(34,197,94,.12); }
.wl-thesis-chip.v-breach { color: #C8361F; background: rgba(239,68,68,.12); }
.wl-thesis-chip.v-unknown { color: #94a3b8; background: rgba(148,163,184,.15); }
.wl-thesis-dot.v-normal { background: #1F7A4D; }
.wl-thesis-dot.v-breach { background: #C8361F; }
.wl-thesis-dot.v-unknown { background: #94a3b8; }
/* 节点证伪条件结论 chip：未触发=绿 / 观察中=黄 / 已触发=红 */
.wl-thesis-chip.iv-ok { color: #1F7A4D; background: rgba(34,197,94,.12); }
.wl-thesis-chip.iv-watch { color: #d97706; background: rgba(217,119,6,.12); }
.wl-thesis-chip.iv-fired { color: #C8361F; background: rgba(239,68,68,.12); }
.wl-thesis-dot.iv-ok { background: #1F7A4D; }
.wl-thesis-dot.iv-watch { background: #f59e0b; }
.wl-thesis-dot.iv-fired { background: #C8361F; }
.wl-thesis-loading { font-size: 12px; color: var(--text-dim, #94a3b8); padding: 4px 0 4px 2px; }
/* 趋势条与明细合并：整条即折叠开关 */
.wl-trend-merged summary { list-style: none; cursor: pointer; }
.wl-trend-merged summary::-webkit-details-marker { display: none; }
.wl-trend-merged { margin-top: 6px; }
.wl-trend-merged .wl-trend { display: inline-flex; align-items: center; margin: 0; }
.wl-trend-merged .wl-trend::after {
  content: '▾'; margin-left: 6px; font-size: 10px; color: var(--text-dim);
}
.wl-trend-merged[open] .wl-trend::after { content: '▴'; }
.wl-trend-merged ul { margin: 4px 0 0; padding-left: 18px; font-size: 12px; color: var(--text-dim); }

/* ─── 自选节点 M6：趋势明细 / 最新动态 / 研究跟踪（复用 wl-* 样式，只补节点专用件）─── */
.wl-node-trend { margin: 6px 0 2px; }
.wl-node-trend-title { color: var(--text-dim); font-weight: 600; }
.wl-node-trend-title b { color: var(--text); }
.wl-node-trend summary::after { content: '▾'; margin-left: 6px; font-size: 10px; color: var(--text-dim); }
.wl-node-trend[open] summary::after { content: '▴'; }
.wl-node-block-body { margin-top: 4px; }
/* 趋势持续天数与区间涨跌（红涨绿跌） */
.wl-trend-since .up { color: #C8361F; }
.wl-trend-since .down { color: #1F7A4D; }
/* 节点趋势强度行（平铺，不折叠） */
.wl-node-trend-line { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.wl-node-trend-line b { color: var(--text); }
/* 单行折叠卡：首行全信息 */
.wl-collapsed-head { cursor: pointer; flex-wrap: wrap; }
.wl-eval-headmeta {
  display: inline-flex; gap: 12px; flex-wrap: wrap; font-size: 12px;
  color: var(--text-dim); margin-left: 4px;
  flex: 0 1 auto; min-width: 0;
}
.wl-eval-headmeta b { color: var(--text); }
.wl-eval-caret { color: var(--text-dim); font-size: 11px; margin-left: 2px; }
.wl-eval-head.open .wl-eval-caret { transform: rotate(0); }
.wl-dot-healthy { background: #1F7A4D; }
.wl-dot-fading { background: #eab308; }
.wl-dot-broken { background: #C8361F; }
.wl-eval-card .wl-eval-body { margin-top: 8px; }
/* 节点卡单行折叠 */
.wl-node-headmeta { display: inline-flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); margin-left: 8px; }
.wl-node-link { cursor: pointer; }
.wl-node-link:hover { color: var(--accent, #3b82f6); }
.wl-node-card .wl-node-body { margin-top: 8px; }

/* ─── K 线组件化（AtlasKline，kline.js）：自选卡走势块 + 全局浮层 ─── */
/* 自选卡展开层「走势」块 */
.wl-kline { margin-top: 8px; }
.wl-kline-title { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.wl-kline-legend { font-size: 11px; font-weight: 400; margin-left: 6px; }
.wl-kline-legend i {
  display: inline-block; width: 12px; height: 3px; border-radius: 2px;
  margin: 0 4px 2px 8px; vertical-align: middle;
}
.wl-kline-info {
  min-height: 16px; font-size: 11px; color: var(--text-dim);
  font-family: monospace; margin: 2px 0;
}
.wl-kline-canvas { width: 100%; height: 200px; display: block; }
/* 股票名可点（弹 K 线浮层） */
.wl-eval-name { cursor: pointer; }
.wl-eval-name:hover { color: var(--accent, #3b82f6); }
.stock-item-name[data-code] { cursor: pointer; }
.stock-item-name[data-code]:hover { color: var(--accent, #3b82f6); }

/* K 线浮层（居中，点遮罩/×/ESC 关闭） */
.akl-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0, 0, 0, .35); display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.akl-overlay.open { display: flex; }
.akl-modal {
  width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto;
  background: var(--card, #fff); border: 1px solid var(--border, #e5e1da);
  border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.akl-head { display: flex; align-items: center; justify-content: space-between; }
.akl-title { font-size: 16px; font-weight: 700; }
.akl-code { font-size: 12px; font-weight: 400; color: var(--text-dim); font-family: monospace; margin-left: 4px; }
.akl-close {
  border: none; background: none; font-size: 20px; line-height: 1;
  color: var(--text-dim); cursor: pointer; padding: 2px 8px; border-radius: 6px;
}
.akl-close:hover { color: var(--text); background: rgba(0, 0, 0, .05); }
.akl-quote { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; min-height: 4px; }
.akl-price { font-size: 22px; font-weight: 700; }
.akl-pct { font-size: 13px; font-weight: 600; }
.akl-price.up, .akl-pct.up { color: #C8361F; }
.akl-price.down, .akl-pct.down { color: #1F7A4D; }
.akl-chart { margin-top: 8px; }
.akl-info {
  min-height: 16px; font-size: 11px; color: var(--text-dim);
  font-family: monospace; margin-bottom: 2px;
}
.akl-canvas { width: 100%; height: 260px; display: block; }
.akl-trend { margin-top: 8px; }
.akl-trend .wl-trend { display: inline-flex; margin: 0; }
.akl-trend-nums { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.akl-trend-nums b { color: var(--text); }
.akl-foot { margin-top: 10px; text-align: right; }
.akl-track-link { font-size: 13px; color: var(--accent, #3b82f6); text-decoration: none; }
.akl-track-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   全景视图（v4 T23 · 市场温度轨）——panorama.js
   ═══════════════════════════════════════════════════════════ */

.pv-up { color: #C8361F; }   /* 红涨 */
.pv-down { color: #1F7A4D; } /* 绿跌 */
.pv-flat { color: #94a3b8; }

.panorama-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  width: 100%;
}

.pv-hero {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between;
  padding: 26px 0 18px;
}
.pv-hero-main { flex: 1; min-width: 0; }
.pv-hero-kicker { font-size: 12px; color: var(--text-dim); letter-spacing: 0.1em; margin-bottom: 6px; }
.pv-hero-name { font-size: 30px; font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: 6px; }
.pv-hero-name b { font-weight: 700; }
.pv-hero-name .num, .pv-hero-name .pv-up, .pv-hero-name .pv-down { font-family: var(--font-mono); font-variant-numeric: slashed-zero tabular-nums; font-feature-settings: "zero" 1, "tnum" 1; }
.pv-hero-desc { margin-top: 6px; font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }
.pv-hero-desc b { color: var(--text); font-weight: 600; }
.pv-hero-jump { margin-top: 4px; font-size: 12.5px; color: var(--text-dim); }

.pv-hero-mkt {
  flex: 0 0 460px; display: flex; flex-direction: column; gap: 10px;
  max-width: 100%;
}
.pv-mkt-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--border); background: var(--card);
}
.pv-mkt-cell {
  padding: 10px 16px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.pv-mkt-cell:last-child { border-right: none; }
.pv-mkt-label { font-size: 11px; color: var(--text-dim); }
.pv-mkt-value { font-family: var(--font-mono); font-variant-numeric: slashed-zero tabular-nums; font-feature-settings: "zero" 1, "tnum" 1; font-size: 17px; font-weight: 600; color: var(--text); }

.pv-index-cell .pv-mkt-value { font-size: 13px; font-variant-numeric: slashed-zero tabular-nums; font-feature-settings: "zero" 1, "tnum" 1; }
.pv-index-chg { font-family: var(--font-mono); font-size: 11px; font-weight: 700; margin-left: 3px; }

.pv-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.pv-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pv-section-head h2 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0; display: flex; align-items: center; min-width: 0; }
.pv-view-toggle { display: flex; gap: 4px; background: #EFEDE7; border-radius: 6px; padding: 3px; }
.pv-toggle-btn {
  border: none; background: transparent; padding: 5px 14px; border-radius: 4px;
  font-size: 13px; color: var(--text-dim); cursor: pointer;
}
.pv-toggle-btn.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }

.pv-table th.pv-sortable { cursor: pointer; user-select: none; }
.pv-table th.pv-sortable:hover { color: var(--accent); }
.pv-table th.pv-sortable.active { color: var(--accent); font-weight: 700; }

.pv-ranking-box { overflow-x: auto; }
.pv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pv-table th {
  text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border);
  color: #9A9EA6; font-weight: 500; font-size: 11px; white-space: nowrap;
}
.pv-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pv-table tbody tr:hover { background: #FAF9F5; }
.pv-table .num { text-align: center; white-space: nowrap; font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: slashed-zero tabular-nums; font-feature-settings: "zero" 1, "tnum" 1; }
.pv-table th.num { text-align: center; font-family: var(--font); font-variant-numeric: normal; }
.pv-rank { font-family: var(--font-mono); color: #9A9EA6; font-size: 11.5px; width: 32px; }
.pv-node-name { font-weight: 600; color: var(--text); font-size: 12.5px; }
.pv-node-path { font-size: 10.5px; color: #9A9EA6; margin-top: 2px; }
.pv-temp { font-weight: 700; }

.pv-footer { padding: 4px 6px 20px; font-size: 12px; color: var(--text-dim); line-height: 1.7; }
.pv-footer b { color: var(--text); }

/* ─── T49 · 验证小结区（复盘工具非预测） ─── */
.pv-verify-section { margin-top: 28px; }
.pv-verify-hint { padding: 20px 16px; text-align: center; color: var(--text-dim); font-size: 13px; line-height: 1.7; }
.pv-verify-body { display: flex; flex-direction: column; gap: 16px; }
.pv-verify-block-t { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.pv-verify-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pv-verify-cell { background: #FAF9F5; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.pv-verify-cell-l { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.pv-verify-low .pv-verify-cell-l { color: #2456A6; font-weight: 700; }   /* 冷蓝 */
.pv-verify-high .pv-verify-cell-l { color: #C8361F; font-weight: 700; }  /* 热红 */
.pv-verify-cell-v { font-size: 16px; font-weight: 700; font-family: var(--font-mono); font-variant-numeric: slashed-zero tabular-nums; font-feature-settings: "zero" 1, "tnum" 1; }
.pv-verify-cell-s { font-size: 10.5px; color: var(--text-dim); margin-top: 3px; }
.pv-verify-note { margin-top: 12px; font-size: 11.5px; color: var(--text-dim); line-height: 1.7; }
@media (max-width: 768px) { .pv-verify-grid { grid-template-columns: 1fr; } }

/* ─── T43 · 温度×周期象限图（只陈列不打结论） ─── */
.pv-quadrant-section { margin-top: 16px; }
.pv-quadrant-head-hint { font-size: 12px; color: var(--text-dim); }
.pv-quadrant { width: 100%; position: relative; }
.pv-quadrant svg { width: 100%; height: auto; display: block; }
.pv-quadrant-dot { transition: opacity 0.15s ease; }
.pv-quadrant-dot:hover { opacity: 0.85; }
.pv-quadrant-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-bottom: 8px; font-size: 11.5px; color: var(--text-dim);
}
.pv-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.pv-legend-dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block;
}
.pv-legend-dot.hollow { background: transparent !important; border: 1.5px solid #9AA0A6; }
.pv-quadrant-tip {
  display: none; position: absolute; z-index: 20; pointer-events: none;
  max-width: 320px; padding: 8px 11px; border-radius: 6px;
  background: #17191C; color: #F7F6F2; font-size: 12px; line-height: 1.55;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.pv-quadrant-tip-name { font-weight: 700; margin-bottom: 3px; }
.pv-quadrant-tip-mega { display: block; font-weight: 400; font-size: 10.5px; color: #C9C6BE; }
.pv-quadrant-tip-row b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pv-quadrant-foot {
  display: flex; flex-wrap: wrap; gap: 4px 0;
  border-top: none; padding: 8px 0 0;
  font-size: 11px; color: var(--text-dim); line-height: 1.7;
}
.pv-quadrant-sep { margin: 0 8px; color: var(--border); }
@media (max-width: 768px) { .pv-quadrant-head-hint { display: none; } }

/* ─── T33a · Hero 第二行（双确认主升段主线） ─── */
.pv-hero-row2 {
  flex: 1 1 100%;
  border: 1.5px solid var(--replay);
  border-radius: 8px;
  background: var(--replay-bg);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pv-hero-row2-lb { font-size: 12px; font-weight: 700; color: var(--replay); white-space: nowrap; }
.pv-hero-row2-empty { font-size: 13px; color: var(--text-dim); }
.pv-hero-row2-list { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.pv-hero-row2-item { display: flex; flex-direction: column; gap: 3px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; min-width: 0; }
.pv-hero-row2-item-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pv-hero-row2-item-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; cursor: pointer; text-decoration: none; }
.pv-hero-row2-item-name:hover { text-decoration: underline; }
.pv-hero-row2-item-meta { font-size: 11.5px; font-family: var(--font-mono); color: var(--text-dim); white-space: nowrap; }
.pv-hero-row2-item-sub { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pv-hero-row2-item-reps { font-size: 10.5px; color: #9A9EA6; }
.pv-hero-row2-item-rep { cursor: pointer; }
.pv-hero-row2-item-rep:hover { text-decoration: underline; }
.pv-hero-row2-item-stamp { font-size: 10.5px; color: var(--text-dim); font-family: var(--font-mono); }
.pv-hero-row2-stale { color: #C8361F; font-weight: 700; }
.pv-hero-row2-more { font-size: 12px; color: var(--text-dim); white-space: nowrap; align-self: center; }

/* ─── T33 · 排行榜双轨切换 ─── */
.pv-head-controls { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.pv-track-toggle { display: flex; gap: 4px; background: #EFEDE7; border-radius: 6px; padding: 3px; }
.pv-track-btn {
  border: none; background: transparent; padding: 6px 12px; border-radius: 5px;
  font-size: 13px; color: var(--text-dim); cursor: pointer; font-weight: 600;
  display: inline-flex; align-items: baseline; gap: 5px;
}
.pv-track-btn.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.pv-track-sub { font-size: 10.5px; font-weight: 400; color: var(--text-dim); }

/* ─── T33 · 基本面轨单元格 ─── */
.pv-fund-table { table-layout: fixed; width: 100%; }
.pv-fund-table td { vertical-align: middle; }
.pv-fund-table .pv-c { text-align: center; }   /* 短值列居中：时钟/指标兑现/证伪/催化剂/研究日期 */
.pv-clock { color: var(--text-dim); }
.pv-stage-cell { max-width: 100px; }
.pv-fund-table .pv-node-name { max-width: 150px; white-space: normal; word-break: break-all; line-height: 1.3; }
.pv-fin { white-space: normal; word-break: break-word; }  /* 财报列：允许换行 */
.pv-stage { font-family: var(--font); font-weight: 600; color: var(--text); white-space: normal; }
.pv-stage-none { color: var(--text-dim); font-weight: 400; }
.pv-stage-sub { display: block; font-size: 10.5px; color: var(--text-dim); font-weight: 400; margin-top: 2px; white-space: normal; word-break: break-all; }
.pv-stage-note { display: block; font-size: 10px; color: var(--replay); font-weight: 400; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-stage-sub-inline { font-size: 11px; color: var(--text-dim); margin-left: 4px; }
.pv-stage-note-inline { font-size: 10px; color: var(--replay); margin-left: 4px; }
.pv-fund-six { margin: 12px 0; }
.pv-fund-six-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-fund-six-v { font-size: 12px; }
.pv-inherit { font-size: 10px; color: var(--replay); border: 1px solid var(--replay); border-radius: 3px; padding: 0 3px; margin-left: 4px; vertical-align: 1px; }

/* ─── T48 · 六列直显：财报 / 估值 / 证伪四态 / 催化（景气度六族灯已弃用，改读 node_prosperity 七档判读） ─── */
.pv-prosperity-none { font-size: 11px; color: var(--text-dim); }

/* ─── T56 · 景气判读卡 + 六族证据墙 ─── */
.pv-prosperity { margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--border); }
.pv-block-t { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--text-dim); margin: 0 0 6px; }
.pv-verdict { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pv-verdict-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 11px; white-space: nowrap; }
.pv-verdict-up { background: #EAF3EE; color: #1F7A4D; }
.pv-verdict-turn { background: #FBF3DF; color: #9A6B00; }
.pv-verdict-down { background: #F9E9E5; color: #C8361F; }
.pv-verdict-chop { background: #F2F1EC; color: var(--text-dim); }
.pv-verdict-none { background: transparent; color: var(--text-dim); border: 1px dashed var(--border); }
.pv-verdict-text { font-weight: 700; }
.pv-verdict-text-up { color: #1F7A4D; }
.pv-verdict-text-turn { color: #9A6B00; }
.pv-verdict-text-down { color: #C8361F; }
.pv-verdict-text-chop { color: var(--text-dim); }
.pv-verdict-text-none { color: var(--text-dim); }
.pv-prosperity-toggle { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; border: 0; background: transparent; cursor: pointer; padding: 0; font-family: var(--font); }
.pv-verdict-reason { font-size: 12px; line-height: 1.5; color: var(--text); }
.pv-verdict-meta { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
.pv-verdict-disclaimer { opacity: .85; }
.pv-ev-wall { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.pv-ev-fam { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.pv-ev-fam-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 10px; background: #FAFAF7; border: 0; cursor: pointer; font-size: 12px; text-align: left; font-family: var(--font); color: var(--text); }
.pv-ev-fam-head:hover { background: #F2F1EC; }
.pv-ev-fam-name { flex: 0 0 auto; font-weight: 600; }
.pv-ev-mark { flex: 0 0 auto; font-size: 11px; font-weight: 700; width: 16px; text-align: center; border-radius: 3px; }
.pv-ev-mark-ok { background: #EAF3EE; color: #1F7A4D; }
.pv-ev-mark-bad { background: #F9E9E5; color: #C8361F; }
.pv-ev-mark-none { background: #F2F1EC; color: var(--text-dim); }
.pv-ev-caret { flex: 0 0 auto; margin-left: auto; color: var(--text-dim); font-size: 10px; }
.pv-ev-fam-body { padding: 6px 10px 8px; border-top: 1px solid var(--border); }
.pv-ev-list { margin: 0; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 4px; }
.pv-ev-list li { font-size: 11px; line-height: 1.5; color: var(--text); }
.pv-ev-empty { font-size: 11px; color: var(--text-dim); }
.pv-jor { color: var(--accent); }
.pv-dim { color: var(--text-dim); }

/* 证伪四态徽章：充分(绿) / 待补(灰) / 打架(红) / 不足(灰虚框) */
.pv-badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 9px; font-family: var(--font); font-weight: 600; white-space: nowrap; }
.pv-badge-ok { background: #EAF3EE; color: #1F7A4D; }
.pv-badge-wait { background: #F2F1EC; color: var(--text-dim); }
.pv-badge-fight { background: #F9E9E5; color: #C8361F; }
.pv-badge-none { background: transparent; color: var(--text-dim); border: 1px dashed var(--border); }
/* T34 四灯徽章：视觉语义对齐证据徽章——✓绿(证据充分) / ✗红(证据打架) / —灰(证据待补/无数据) */
.pv-lights { display: inline-flex; gap: 4px; margin-top: 4px; }
.pv-light { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; padding: 0 4px; border-radius: 3px; line-height: 16px; cursor: default; white-space: nowrap; }
.pv-light-on { background: #EAF3EE; color: #1F7A4D; }
.pv-light-off { background: #F9E9E5; color: #C8361F; }
.pv-light-na { background: transparent; color: var(--text-dim); border: 1px dashed var(--border); }

.pv-research-ok { color: var(--text-dim); white-space: nowrap; }
.pv-research-stale { color: #C8361F; font-weight: 600; white-space: nowrap; }
.pv-research-missing { color: var(--text-dim); white-space: nowrap; }

.pv-footnote { padding: 10px 2px 0; font-size: 11px; color: var(--text-dim); line-height: 1.7; }

.pv-empty, .pv-loading, .pv-error {
  padding: 40px 20px; text-align: center; color: var(--text-dim); font-size: 14px;
}
.pv-error .btn { margin-top: 10px; }

/* ─── T42b · 点选详情面板（节点卡 / 主线卡 / 维度卡）─── */
.pv-card-section { margin-top: 28px; }
.pv-card-body {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px;
}
.pv-card-head { margin-bottom: 14px; }
.pv-card-path { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.pv-crumb-link { color: var(--accent); cursor: pointer; }
.pv-crumb-link:hover { text-decoration: underline; }
.pv-crumb-sep { color: var(--text-dim); margin: 0 6px; }
.pv-card-name { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.pv-card-chg { font-size: 15px; font-weight: 700; margin-left: 10px; font-family: var(--font-mono); font-variant-numeric: slashed-zero tabular-nums; }
.pv-card-sub { font-size: 12px; color: var(--text-dim); }
.pv-card-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.pv-card-link { color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.pv-card-link:hover { text-decoration: underline; }

/* 六格事实卡 */
.pv-fact-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 14px 0; }
.pv-fact { background: #FAF9F5; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.pv-fact-prosperity { cursor: pointer; transition: border-color .15s, background .15s; }
.pv-fact-prosperity:hover { border-color: var(--text-dim); background: #F2F1EC; }
.pv-fact-l { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.pv-fact-v { font-size: 14px; font-weight: 700; color: var(--text); font-family: var(--font-mono); font-variant-numeric: slashed-zero tabular-nums; }
.pv-fact-v.pv-up { color: #C8361F; }
.pv-fact-v.pv-down { color: #1F7A4D; }
.pv-fact-v.pv-flat, .pv-fact-v.flat { color: #94a3b8; }
.pv-fact-s { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
@media (max-width: 768px) { .pv-fact-grid { grid-template-columns: repeat(3, 1fr); } }

/* 随后实际走势条（回溯模式） */
.pv-future { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; margin: 12px 0; background: #F4F0FA; border: 1px solid #E0D6F2; border-radius: 8px; }
.pv-future-t { font-size: 12px; font-weight: 700; color: #5C3D80; }
.pv-fut { font-size: 13px; }
.pv-fut-l { color: var(--text-dim); font-size: 12px; }
.pv-fut-v { font-weight: 700; font-family: var(--font-mono); font-variant-numeric: slashed-zero tabular-nums; }

/* 股票池 / 下属节点表 */
.pv-pool { margin: 14px 0; }
.pv-pool-t { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.pv-pool-tbl th { font-size: 11px; }
.pv-pool-tbl td { padding: 5px 10px; }
.pv-pool-tbl tr[data-rudder-nid] { cursor: pointer; }
.pv-tier-tag { display: inline-block; min-width: 20px; margin-right: 6px; padding: 0 4px; border-radius: 3px; font-size: 10px; font-weight: 600; text-align: center; }
.pv-tier-1 { background: #EDF2FA; color: #2456A6; }
.pv-tier-2 { background: #FEF9EC; color: #B45309; }
.pv-tier-3 { background: #F5F4F0; color: #575B61; }
.pv-tier-etf { background: #EAF3EE; color: #1F7A4D; }
.pv-etf-note { color: var(--text-dim); cursor: default; margin-left: 4px; }
.pv-stock-name { color: var(--text); font-weight: 500; cursor: pointer; }
.pv-stock-name:hover { color: var(--accent); }
.pv-stock-line { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.pv-stock-note { font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.5; }
.pv-report-icons { margin-left: 6px; }
.pv-fund-oneliner { margin: 10px 0 6px; padding: 8px 10px; background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%); border-left: 3px solid var(--accent); border-radius: 6px; font-size: 13px; line-height: 1.6; color: var(--text); }
.pv-oneliner-icon { margin-right: 6px; }

/* 基本面一行摘要 */
.pv-fund-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.pv-badge-cycle { background: #EDF2FA; color: var(--accent); }
.pv-fund-research { font-size: 11px; color: var(--text-dim); }

/* 结构事实（主线卡） */
.pv-struct { margin: 12px 0; padding: 12px 14px; background: #FAF9F5; border-radius: 8px; }
.pv-struct h4 { font-size: 12px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.pv-struct ul { margin: 0; padding-left: 18px; }
.pv-struct li { font-size: 12.5px; color: var(--text); line-height: 1.8; }
.pv-struct li .pv-up, .pv-struct li .pv-down { font-family: var(--font-mono); font-variant-numeric: slashed-zero tabular-nums; }

.pv-lights-row { margin: 6px 0; }

/* 作用域 chip：内联在标题后（短名「XX · 内部排行」），完整路径在 title 悬浮 */
.pv-scope-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; padding: 2px 10px; border-radius: 12px;
  background: #EDF2FA; color: var(--accent); font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.pv-scope-close { flex: none; border: none; background: transparent; color: var(--accent); font-size: 13px; cursor: pointer; padding: 0 2px; }
.pv-scope-close:hover { color: #C8361F; }

/* ─── T36 · 概览重整 ─── */
.fund-oneliner { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; padding: 10px 12px; background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%); border-left: 3px solid var(--accent); border-radius: 6px; font-size: 13.5px; line-height: 1.7; color: var(--text); }
.fund-oneliner-stamp { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.fund-goto-row { display: flex; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.fund-goto { color: var(--accent); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.fund-goto:hover { text-decoration: underline; }
.summary-section-header { font-size: 13px; font-weight: 700; color: var(--text); margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }

@media (max-width: 768px) {
  .pv-hero { flex-direction: column; }
  .pv-hero-mkt { flex: none; border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 14px; grid-template-columns: 1fr 1fr; }
}

/* ─── T41 · 日期滑杆 / 回溯模式 ─── */
.pv-replay-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin-bottom: 4px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card);
}
.pv-replay-label {
  font-size: 12px; font-weight: 700; color: var(--text-dim);
  padding: 2px 10px; border-radius: 4px; background: #EFEDE7; white-space: nowrap;
}
.pv-replay-slider { flex: 1; accent-color: var(--replay); min-width: 120px; }
.pv-replay-date {
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
  font-variant-numeric: slashed-zero tabular-nums; white-space: nowrap;
}
.pv-replay-reset {
  border: 1px solid var(--replay); background: transparent; color: var(--replay);
  padding: 3px 10px; border-radius: 5px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.pv-replay-reset:hover { background: var(--replay-bg); }

/* 回溯模式：容器进入紫色主题（复用 T33 --replay） */
.pv-replay .pv-hero-kicker { color: var(--replay); }
.pv-replay .pv-replay-label { background: var(--replay-bg); color: var(--replay); }

/* 快照晚于回溯日警示 */
.pv-replay-warn {
  display: inline-block; font-size: 10px; color: #C8361F; white-space: nowrap;
  border: 1px solid #C8361F; border-radius: 3px; padding: 0 3px; margin-left: 3px; cursor: default;
}

/* 回溯模式：ETF 行「现值」徽标（ETF 行情不随日期轴变，展示当前实时值，非回溯日当时值） */
.pv-snapshot {
  display: inline-block; font-size: 10px; font-weight: 600; color: var(--replay);
  border: 1px solid var(--replay); border-radius: 3px; padding: 0 3px; margin-left: 4px;
  cursor: default; white-space: nowrap;
}

/* 基本面轨研究日期列：回溯模式置灰（提示是当前快照，不随日期轴变） */
.pv-replay .pv-research-cell { opacity: 0.55; }

/* MKT 四格无历史（market_daily 自 08-20 起积累，回溯更早日期无数据） */
.pv-mkt-na { color: var(--text-dim); font-size: 13px; font-weight: 400; }

/* ─── T42 · 主线地图（treemap 左 + 排行榜右，并排） ─── */
.pv-map-hint { font-size: 12px; color: var(--text-dim); }
.pv-map-body { display: grid; grid-template-columns: 1.25fr 1fr; height: 520px; gap: 0; }
.pv-treemap { height: 520px; border-right: 1px solid var(--border); overflow: hidden; position: relative; }
.pv-map-rank { display: flex; flex-direction: column; min-width: 0; padding-left: 16px; overflow: hidden; }
.pv-map-rank .pv-section-head { flex: none; margin-bottom: 10px; }
.pv-map-rank .pv-ranking-box { flex: 1 1 auto; min-height: 0; overflow: auto; }

/* treemap 面包屑（沿祖先链可点返回） */
.pv-tm-breadcrumb { height: 34px; display: flex; align-items: center; gap: 2px; padding: 6px 2px; font-size: 12px; white-space: nowrap; overflow-x: auto; overflow-y: hidden; }
.pv-tm-svg { display: block; }
.pv-tm-crumb { color: var(--text-dim); cursor: pointer; padding: 2px 6px; border-radius: 4px; white-space: nowrap; background: #EDEAE3; }
.pv-tm-crumb:hover { color: var(--accent); background: var(--accent-light); }
.pv-tm-crumb.current { color: var(--text); font-weight: 600; cursor: default; }
.pv-tm-crumb.current:hover { color: var(--text); background: transparent; }
.pv-tm-crumb-sep { color: var(--border); user-select: none; }

/* treemap 节点文字 */
.pv-tm-label { font-size: 13px; font-weight: 600; pointer-events: none; }
.pv-tm-pct { font-family: var(--font-mono); font-size: 11px; font-weight: 600; }

/* treemap tooltip（固定定位，跟随鼠标） */
.pv-tm-tooltip {
  position: fixed; display: none; z-index: 1000;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 12px; box-shadow: var(--shadow-lg);
  font-size: 12px; pointer-events: none; max-width: 280px;
}
.pv-tm-tooltip b { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.pv-tm-tooltip > span { display: block; line-height: 1.6; color: var(--text-dim); }
.pv-tm-tooltip .pv-tm-disclose { color: var(--replay); font-size: 11px; border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 4px; }

/* 窄屏回退：treemap 与排行榜纵向堆叠（原型 <1000px 同款） */
@media (max-width: 1000px) {
  .pv-map-body { grid-template-columns: 1fr; height: auto; }
  .pv-treemap { height: 420px; border-right: none; border-bottom: 1px solid var(--border); }
  .pv-map-rank { padding-left: 0; padding-top: 12px; overflow: visible; }
  .pv-map-rank .pv-ranking-box { flex: none; max-height: 460px; }
}

/* ─── P3-5 自选体检 / 分组 / 排序 ─── */

/* 折叠块分组（拍板4：按 Mega 折叠，符合「安静的沉底」） */
.wl-group { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.wl-group-summary {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  cursor: pointer; background: var(--panel); font-weight: 600; color: var(--text);
  list-style: none;
}
.wl-group-summary::-webkit-details-marker { display: none; }
.wl-group-name { flex: 0 1 auto; }
.wl-group-n {
  background: var(--border); color: var(--text-dim); border-radius: 10px;
  font-size: 11px; padding: 1px 8px; font-weight: 500;
}
.wl-group-arrow { margin-left: auto; color: var(--text-dim); font-size: 12px; transition: transform .15s; }
.wl-group:not([open]) .wl-group-arrow { transform: rotate(-90deg); }
.wl-group-body { padding: 4px 6px 6px; }

/* 30 天无动态体检提示（硬约束2：只提示，不提供删除） */
.wl-stale-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(234, 179, 8, .12); color: #b45309;
  border-radius: 4px; font-size: 11px; padding: 1px 6px; white-space: nowrap;
}

/* 静默 toggle（拍板5：入口在详情层，不进首行） */
.wl-silent-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.wl-silent-toggle {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.wl-silent-toggle:hover { border-color: var(--accent, #4A7DE0); color: var(--text); }
.wl-silent-toggle.on { background: rgba(74, 125, 224, .12); color: #4A7DE0; border-color: rgba(74, 125, 224, .4); }

/* ═══ T60 时间线（节点详情页 + 主线全景页）═══ */
.timeline-item { padding: 10px 12px; border-bottom: 1px solid var(--border, #f0f0f0); }
.timeline-item:last-child { border-bottom: none; }
.timeline-item-head { display: flex; align-items: center; gap: 8px; }
.timeline-sev { font-size: 12px; line-height: 1; }
.timeline-sev.sev-alert { color: #C8361F; }
.timeline-sev.sev-watch { color: #f97316; }
.timeline-sev.sev-info { color: #94a3b8; }
.timeline-title { font-weight: 600; font-size: 14px; color: var(--text, #1e293b); }
.timeline-evidence { font-size: 12px; color: var(--text-dim, #64748b); margin: 4px 0 2px; }
.timeline-meta { font-size: 11px; color: var(--text-dim, #94a3b8); }
.timeline-empty { padding: 24px; text-align: center; color: var(--text-dim, #94a3b8); font-size: 13px; }
.timeline-more { margin: 10px auto; display: block; padding: 6px 16px; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; background: var(--bg, #fff); color: var(--text-dim, #475569); cursor: pointer; font-size: 12px; }
.timeline-more:hover { background: var(--bg-hover, #f8fafc); }

.pv-timeline { margin: 16px; padding: 14px; background: var(--bg, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 10px; }
.pv-timeline-h { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--text, #1e293b); }
.pv-timeline-item { padding: 8px 0; border-bottom: 1px solid var(--border, #f1f5f9); }
.pv-timeline-item:last-child { border-bottom: none; }
.pv-timeline-item-h { display: flex; align-items: center; gap: 8px; }
.pv-timeline-sev { font-size: 12px; line-height: 1; }
.pv-timeline-sev.pv-sev-alert { color: #C8361F; }
.pv-timeline-sev.pv-sev-watch { color: #f97316; }
.pv-timeline-sev.pv-sev-info { color: #94a3b8; }
.pv-timeline-title { font-size: 13px; font-weight: 600; color: var(--text-dim, #334155); }
.pv-timeline-meta { font-size: 11px; color: var(--text-dim, #94a3b8); margin-top: 2px; }
.pv-timeline-empty, .pv-timeline-loading { padding: 12px; text-align: center; color: var(--text-dim, #94a3b8); font-size: 12px; }
.pv-timeline-more { margin: 8px auto 0; display: block; padding: 5px 14px; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; background: var(--bg, #fff); color: var(--text-dim, #475569); cursor: pointer; font-size: 12px; }

/* ─── 四好榜（v0.2 Phase B，对外产品层）─── */
.fourdim-container { padding: 16px; overflow-y: auto; height: 100%; }
.fd-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fd-select { padding: 5px 10px; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; background: var(--bg, #fff); color: var(--text, #1e293b); font-size: 13px; }
.fd-filter { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim, #475569); cursor: pointer; }
.fd-updated { margin-left: auto; font-size: 12px; color: var(--text-dim, #94a3b8); }
.fd-table-body { border: 1px solid var(--border, #e2e8f0); border-radius: 8px; overflow: hidden; }
.fd-head, .fd-row { display: grid; grid-template-columns: 2fr 0.8fr 0.8fr 0.8fr 0.8fr 0.6fr 0.8fr; align-items: center; padding: 8px 12px; gap: 4px; }
.fd-head { background: #f8fafc; font-size: 12px; color: var(--text-dim, #64748b); font-weight: 600; border-bottom: 1px solid var(--border, #e2e8f0); }
.fd-row { border-bottom: 1px solid var(--border, #e2e8f0); font-size: 13px; }
.fd-row:last-child { border-bottom: none; }
.fd-c-name { text-align: left; }
.fd-c-dim { text-align: center; }
.fd-c-score { text-align: center; }
.fd-c-act { text-align: right; }
.fd-link { background: none; border: none; cursor: pointer; color: var(--text, #1e293b); font-size: 13px; text-align: left; padding: 0; }
.fd-link:hover { color: var(--accent, #2563eb); }
.fd-code { color: var(--text-dim, #94a3b8); font-size: 11px; margin-left: 4px; }
.fd-dim { font-weight: 700; font-size: 15px; }
.fd-good { color: #16a34a; }
.fd-warn { color: #d97706; }
.fd-bad { color: #dc2626; }
.fd-unknown { color: #94a3b8; }
.fd-add { padding: 3px 10px; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; background: var(--bg, #fff); color: var(--accent, #2563eb); cursor: pointer; font-size: 12px; }
.fd-add:hover { background: var(--accent, #2563eb); color: #fff; }
.fd-detail-panel { margin-top: 12px; }
.fd-detail-hint { font-size: 12px; color: var(--text-dim, #94a3b8); text-align: center; padding: 8px; }
.fd-detail-row { border: 1px solid var(--border, #e2e8f0); border-radius: 8px; padding: 12px; margin: 8px 0; background: #f8fafc; }
.fd-detail-box { margin-bottom: 10px; }
.fd-detail-box:last-child { margin-bottom: 0; }
.fd-detail-title { font-size: 13px; color: var(--text, #1e293b); }
.fd-detail-meta { font-size: 12px; color: var(--text-dim, #64748b); margin-top: 2px; padding-left: 22px; }

/* ═══════════════ 四好指标筛选器（ff- 前缀，v0.3）═══════════════ */
.ff-wrap { max-width: 1280px; margin: 0 auto; padding: 6px 4px 40px; color: #17191C; }
.ff-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.ff-title h1 { font-size: 20px; line-height: 1.25; margin-bottom: 5px; color: #17191C; }
.ff-title p { color: #575B61; font-size: 12.5px; max-width: 850px; }
.ff-header-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; justify-content: flex-end; align-items: center; }
.ff-tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; background: #EDF2FA; color: #2456A6; white-space: nowrap; }
.ff-tag-warn { background: #FFF6E8; color: #B4690E; }
.ff-card { background: #FFFFFF; border: 1px solid #E4E2DC; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.ff-card-hd { padding: 12px 16px; border-bottom: 1px solid #EFEDE7; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ff-card-hd h2 { font-size: 14px; color: #17191C; }
.ff-hint { font-size: 11.5px; color: #9A9EA6; }
.ff-card-bd { padding: 14px 16px; }
.ff-controls { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: end; }
.ff-field label { display: block; font-size: 11px; color: #9A9EA6; margin-bottom: 4px; }
.ff-input, .ff-select { width: 100%; border: 1px solid #E4E2DC; border-radius: 8px; background: #fff; padding: 7px 10px; color: #17191C; outline: none; font-size: 13px; }
.ff-input:focus, .ff-select:focus { border-color: #2456A6; box-shadow: 0 0 0 3px #EDF2FA; }
.ff-btn { border: 1px solid #E4E2DC; background: #fff; color: #2456A6; border-radius: 8px; padding: 7px 12px; cursor: pointer; font-weight: 600; white-space: nowrap; font-size: 13px; }
.ff-btn:hover { border-color: #2456A6; background: #EDF2FA; }
.ff-btn-primary { background: #2456A6; border-color: #2456A6; color: #fff; }
.ff-btn-primary:hover { background: #1c4685; }
.ff-btn-ghost { color: #575B61; }
.ff-btn-sm { padding: 3px 8px; font-size: 12px; }
.ff-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid #EFEDE7; }
.ff-preset { border: 1px solid #E4E2DC; border-radius: 999px; background: #fff; padding: 5px 11px; font-size: 12px; color: #575B61; cursor: pointer; }
.ff-preset small { opacity: .72; margin-left: 4px; }
.ff-preset-active { background: #2456A6; border-color: #2456A6; color: #fff; font-weight: 700; }
.ff-filter-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ff-group { border: 1px solid #EFEDE7; border-radius: 10px; background: #FCFBF8; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 10px 11px; }
.ff-group-hd { flex: 0 0 92px; padding: 2px 0; }
.ff-group-hd h3 { font-size: 12.5px; color: #17191C; }
.ff-count { display: block; margin-top: 2px; font-size: 10.5px; color: #9A9EA6; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ff-metric { padding: 8px 10px; border: 1px solid #EFEDE7; border-radius: 9px; background: #fff; min-width: 150px; max-width: 100%; }
.ff-metric-top { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.ff-metric-name { font-weight: 700; font-size: 12px; color: #17191C; }
.ff-unit { margin-left: auto; font-size: 10px; color: #9A9EA6; }
.ff-chev { font-size: 9px; color: #9A9EA6; transition: transform .15s; flex-shrink: 0; }
.ff-metric-open .ff-chev, .ff-metric.ff-open .ff-chev { transform: rotate(90deg); }
.ff-metric-bd { display: none; margin-top: 7px; }
.ff-metric.ff-open .ff-metric-bd { display: block; }
.ff-metric-sum { display: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; color: #2456A6; font-weight: 700; margin-top: 2px; }
.ff-metric.ff-active { background: #F4F7FD; }
.ff-metric.ff-active .ff-metric-name { color: #2456A6; }
.ff-metric.ff-active:not(.ff-open) .ff-metric-sum { display: block; }
.ff-metric.ff-disabled { opacity: .55; background: #F8F7F3; }
.ff-metric.ff-disabled .ff-metric-top { cursor: not-allowed; }
.ff-pending { display: inline-block; font-size: 10px; color: #B4690E; background: #FFF6E8; border-radius: 999px; padding: 1px 6px; margin-left: 4px; }
.ff-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.ff-range span { text-align: center; color: #9A9EA6; font-size: 11px; }
.ff-range input { width: 100%; border: 1px solid #E4E2DC; border-radius: 7px; padding: 5px 7px; font-size: 12px; background: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; color: #17191C; }
.ff-range input:focus { border-color: #2456A6; outline: none; box-shadow: 0 0 0 3px #EDF2FA; }
.ff-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ff-chips-mt { margin-top: 7px; }
.ff-chip { border: 1px solid #E4E2DC; border-radius: 999px; background: #fff; padding: 4px 9px; font-size: 11.5px; color: #575B61; cursor: pointer; }
.ff-chip-active { background: #EDF2FA; border-color: #2456A6; color: #2456A6; font-weight: 700; }
.ff-risk-inline { margin-top: 8px; font-size: 11px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.ff-risk-inline #ffRiskCount { font-family: ui-monospace, Menlo, Consolas, monospace; color: #C8361F; }
.ff-tooltip { position: relative; display: inline-flex; color: #2456A6; border-bottom: 1px dashed #2456A6; cursor: help; width: fit-content; }
.ff-tooltip .ff-tip { visibility: hidden; opacity: 0; position: absolute; left: 0; top: 24px; width: 330px; background: #17191C; color: #fff; border-radius: 8px; padding: 10px 12px; font-size: 11.5px; line-height: 1.55; z-index: 30; transition: .12s; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.ff-tooltip:hover .ff-tip { visibility: visible; opacity: 1; }
.ff-integrity-note { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #E4E2DC; font-size: 11.5px; color: #9A9EA6; line-height: 1.7; }
.ff-active-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: #FCFBF8; border-top: 1px solid #EFEDE7; }
.ff-lb { font-size: 11px; color: #9A9EA6; font-weight: 700; }
.ff-active-chip { display: inline-flex; align-items: center; gap: 5px; background: #EDF2FA; color: #2456A6; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.ff-funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ff-step { background: #FCFBF8; border: 1px solid #EFEDE7; border-radius: 9px; padding: 9px 10px; position: relative; }
.ff-step:not(:last-child)::after { content: '→'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: #9A9EA6; font-size: 12px; z-index: 1; }
.ff-n { font-size: 17px; font-weight: 800; font-family: ui-monospace, Menlo, Consolas, monospace; color: #17191C; }
.ff-d { font-size: 10.5px; color: #9A9EA6; }
.ff-loss { color: #C8361F; }
.ff-result-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ff-table-wrap { overflow: auto; border: 1px solid #E4E2DC; border-radius: 12px; background: #fff; }
.ff-table { width: 100%; border-collapse: collapse; min-width: 1120px; }
.ff-table th { position: sticky; top: 0; background: #F8F7F3; color: #575B61; font-size: 11px; text-align: center; padding: 9px 10px; border-bottom: 1px solid #E4E2DC; white-space: nowrap; z-index: 2; cursor: pointer; user-select: none; }
.ff-table th:first-child, .ff-table td:first-child { text-align: left; padding-left: 14px; }
.ff-table th:last-child, .ff-table td:last-child { padding-right: 14px; }
.ff-table td { padding: 10px; border-bottom: 1px solid #EFEDE7; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; white-space: nowrap; color: #17191C; }
.ff-table tr:hover td { background: #FBFAF6; }
.ff-name { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 700; text-align: left; cursor: pointer; }
.ff-name:hover { color: #2456A6; }
.ff-code { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 400; color: #9A9EA6; font-size: 10.5px; margin-top: 1px; }
.ff-sans { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.ff-sm { font-size: 11px; }
.ff-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 7px; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5px; font-weight: 800; }
.ff-badge-t1 { background: #EDF2FA; color: #2456A6; }
.ff-badge-t2 { background: #F1EBF8; color: #7A4FA3; }
.ff-badge-t3 { background: #F2F1EC; color: #575B61; }
.ff-badge-safe { background: #EAF3EE; color: #1F7A4D; }
.ff-badge-risk { background: #F9E9E5; color: #C8361F; }
.ff-badge-fault { background: #FFF6E8; color: #B4690E; margin-left: 4px; cursor: help; }
.ff-good { color: #1F7A4D; font-weight: 700; }
.ff-warn { color: #B4690E; font-weight: 700; }
.ff-bad { color: #C8361F; font-weight: 700; }
.ff-muted { color: #9A9EA6; }
.ff-detail { margin-top: 12px; border: 1px solid #E4E2DC; border-radius: 12px; background: #FCFBF8; padding: 12px 14px; display: none; }
.ff-detail.ff-open { display: block; }
.ff-detail h3 { font-size: 13px; margin-bottom: 8px; color: #17191C; }
.ff-detail-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 10px; }
.ff-detail-box { background: #fff; border: 1px solid #EFEDE7; border-radius: 9px; padding: 10px; }
.ff-detail-box h4 { font-size: 12px; margin-bottom: 6px; color: #17191C; }
.ff-detail-box ul { margin-left: 18px; color: #575B61; font-size: 12px; }
.ff-footer-note { font-size: 11px; color: #9A9EA6; padding: 10px 4px; line-height: 1.7; }
@media (max-width: 980px) {
  .ff-controls { grid-template-columns: 1fr 1fr; }
  .ff-funnel { grid-template-columns: 1fr 1fr; }
  .ff-step::after { display: none; }
  .ff-detail-grid { grid-template-columns: 1fr; }
  .ff-top { flex-direction: column; }
  .ff-header-tags { margin-left: 0; justify-content: flex-start; }
  .ff-group-hd { flex: 0 0 100%; }
}
@media (max-width: 640px) {
  .ff-controls { grid-template-columns: 1fr; }
  .ff-funnel { grid-template-columns: 1fr; }
  .ff-card-bd { padding: 12px; }
  .ff-metric { min-width: 0; flex: 1 1 140px; }
}
/* ═══ P4-2 体系蓝图展示页（system.html 独立页，复用 CSS 变量）═══ */
.sys-wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }
.sys-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sys-back { font-size: 13px; color: var(--accent); text-decoration: none; cursor: pointer; white-space: nowrap; }
.sys-back:hover { text-decoration: underline; }
.sys-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.sys-title h1 { font-size: 17px; font-weight: 700; }
.sys-default-badge { font-size: 11px; color: var(--accent); background: var(--accent-light); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.sys-switch select { font-size: 12px; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; max-width: 180px; }

.sys-readiness { margin-bottom: 12px; }
.sys-readiness-badge { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 5px 12px; }
.sys-rd-not_ready { color: #9A6B00; background: #FBF3E0; }
.sys-rd-backtestable { color: #1F7A4D; background: #E8F3EE; }
.sys-readiness-note { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; }

.sys-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.sys-card-hd { padding: 9px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sys-card-hd h3 { font-size: 12.5px; font-weight: 700; }
.sys-card-sub { font-size: 11px; color: var(--text-dim); }
.sys-card-bd { padding: 12px 14px; }
.sys-card-ft { padding: 0 14px 12px; }

.sys-mod-empty { font-size: 12px; color: var(--text-dim); }
.sys-mod-done { font-size: 11px; color: var(--text-dim); }
.sys-mod-items { display: flex; flex-direction: column; gap: 8px; }
.sys-mod-item { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sys-mod-item-text { font-size: 12.5px; color: var(--text); }
.sys-q { font-size: 10.5px; border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.sys-q-yes { color: #1F7A4D; background: #E8F3EE; }
.sys-q-no { color: #9A6B00; background: #FBF3E0; }
.sys-mod-source { font-size: 11px; color: var(--text-dim); margin-top: 8px; }

.sys-bait-btn { font-size: 12px; color: var(--accent); background: var(--accent-light); border: none; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.sys-bait-btn:hover { background: #DCE7F7; }

.sys-validity-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.sys-validity-item:last-child { border-bottom: none; }
.sys-validity-text { font-size: 12.5px; color: var(--text); }
.sys-validity-meta { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.sys-val-na { color: #9A6B00; }
.sys-val-note { color: var(--text-dim); font-size: 11px; }
.sys-discipline-line { font-size: 13px; color: var(--text); }

.sys-empty { text-align: center; padding: 60px 20px; }
.sys-empty-card { display: inline-flex; flex-direction: column; gap: 10px; align-items: center; max-width: 360px; }
.sys-empty-title { font-size: 15px; font-weight: 700; }
.sys-empty-text { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.sys-empty-btn { display: inline-block; font-size: 13px; color: #fff; background: var(--accent); border: none; border-radius: 8px; padding: 8px 18px; cursor: pointer; text-decoration: none; }
.sys-empty-btn:hover { opacity: 0.92; }

/* P4-2 体系入口（账户汇总条内「我的体系 →」） */
.wl-system-link { margin-top: 8px; text-align: right; display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.wl-system-link a { font-size: 12.5px; color: var(--accent); text-decoration: none; }
.wl-system-link a:hover { text-decoration: underline; }
.wl-system-link .wl-system-create { font-size: 12.5px; color: var(--accent); background: var(--accent-light); border: none; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.wl-system-link .wl-system-create:hover { background: #DCE7F7; }

/* P4-3 组合回测卡 */
.sys-bt-disabled { font-size: 12px; color: var(--text-dim); background: var(--bg); border: 1px dashed var(--border); border-radius: 8px; padding: 10px 12px; }
.sys-bt-run { font-size: 13px; color: #fff; background: var(--accent); border: none; border-radius: 8px; padding: 7px 16px; cursor: pointer; }
.sys-bt-run:hover { opacity: 0.92; }
.sys-bt-result { margin-top: 10px; }
.sys-bt-meta { font-size: 11.5px; color: var(--text-dim); margin-bottom: 8px; }
.sys-bt-curve { margin: 6px 0; }
.sys-bt-svg { display: block; max-height: 120px; }
.sys-bt-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin: 8px 0; }
.sys-bt-metric { background: var(--bg); border-radius: 6px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.sys-bt-metric span { font-size: 11px; color: var(--text-dim); }
.sys-bt-metric b { font-size: 13px; font-weight: 600; }
.sys-bt-overfit { font-size: 12px; color: #9A6B00; background: #FBF3E0; border-radius: 6px; padding: 8px 10px; margin-top: 8px; }
.sys-bt-disclaimer { font-size: 11px; color: var(--text-dim); margin-top: 8px; }
.sys-bt-legend { display: flex; gap: 14px; margin-top: 4px; font-size: 11px; color: var(--text-dim); }
.sys-bt-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sys-bt-legend-strategy::before { content: ''; width: 12px; height: 2px; background: #2456A6; display: inline-block; }
.sys-bt-legend-benchmark::before { content: ''; width: 12px; height: 0; border-top: 2px dashed #9AA0A6; display: inline-block; }
