/* ========================================
   CyndiZhao的理财工作台 - 样式表
   粉紫背景 · 淡紫主体 · 红涨绿跌
   ======================================== */

:root {
  /* Black Sidebar - 黑底白字侧边栏（2026-09-08 用户指定） */
  --sidebar-bg: #1A1A1A;
  --sidebar-bg-hover: #2D2D35;
  --sidebar-active: #8B5CF6;
  --sidebar-active-bg: #8B5CF6;
  --sidebar-text: #FFFFFF;
  --sidebar-text-active: #FFFFFF;

  /* 背景粉紫 · 主体淡紫 */
  --bg-primary: #F2E6F8;
  --bg-secondary: #FAF6FE;
  --bg-tertiary: #EEE2F6;
  --bg-hover: #E8D8F3;
  --bg-active: #E3D1F0;

  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-placeholder: #d1d5db;

  --border-color: #EADDF4;
  --border-light: #F2E9F9;

  --accent: #8B5CF6;
  --accent-light: #EDE3F9;
  --accent-hover: #7C3AED;

  /* Chinese convention: Red = Up, Green = Down */
  --color-up: #dc2626;
  --color-up-bg: #fef2f2;
  --color-up-border: #fecaca;
  --color-up-light: #fee2e2;

  --color-down: #16a34a;
  --color-down-bg: #f0fdf4;
  --color-down-border: #bbf7d0;
  --color-down-light: #dcfce7;

  --color-flat: #6b7280;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-error: #dc2626;
  --color-info: #0891b2;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);

  /* Sizing */
  --sidebar-width: 220px;
  --header-height: 60px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --transition: 0.2s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Layout
   ======================================== */
#app {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  color: var(--sidebar-text);
}

.main-content {
  flex: 1;
  overflow-y: auto;
  height: 100vh;
  background: var(--bg-primary);
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar-header {
  padding: 22px 20px 18px;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 10px;
  color: var(--sidebar-text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-list {
  list-style: none;
  padding: 8px 12px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 4px;
  cursor: pointer;
  color: var(--sidebar-text);
  font-weight: 700;
  transition: all var(--transition);
  border-radius: var(--radius-md);
  font-size: 14px;
  user-select: none;
  position: relative;
}

.nav-item:hover {
  background: var(--sidebar-bg-hover);
  color: #fff;
}

.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
  font-weight: 700;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--sidebar-active);
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.nav-label {
  flex: 1;
}

.nav-badge {
  background: var(--color-up);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: var(--sidebar-text);
}

.time-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.time-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
  display: inline-block;
}

.time-dot.ok { background: #10b981; }
.time-dot.warn { background: #f59e0b; }
.time-dot.error { background: #ef4444; }

.version {
  font-size: 11px;
  color: #6b7280;
}

/* ========================================
   Pages
   ======================================== */
.page {
  display: none;
  padding: 24px 28px;
  animation: fadeIn 0.3s ease;
  min-height: 100vh;
}

.page.active {
  display: block;
}

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

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

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

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

.news-updated {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.last-update {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 500;
}

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

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-ghost:hover {
  background: var(--bg-hover);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-danger {
  color: var(--color-error);
  border-color: #fecaca;
  background: var(--color-up-bg);
}

.btn-danger:hover {
  background: #fee2e2;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

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

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.card-action {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}

/* ========================================
   KPI Cards
   ======================================== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
}

.kpi-card.primary {
  background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  color: #fff;
  border: none;
}

.kpi-card.primary .kpi-label,
.kpi-card.primary .kpi-sub,
.kpi-card.primary .kpi-value {
  color: #fff;
}

.kpi-card.up {
  border-left: 4px solid var(--color-up);
}

.kpi-card.down {
  border-left: 4px solid var(--color-down);
}

.kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.kpi-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================
   Color helpers
   ======================================== */
.text-up { color: var(--color-up); }
.text-down { color: var(--color-down); }
.text-flat { color: var(--color-flat); }
.bg-up { background: var(--color-up-bg); }
.bg-down { background: var(--color-down-bg); }

/* ========================================
   Index Mini Bar
   ======================================== */
.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.index-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.index-chip-name {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.index-chip-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.index-chip-change {
  font-size: 12px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   Tables
   ======================================== */
.table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  font-size: 12px;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr:hover {
  background: var(--bg-hover);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.empty-row {
  text-align: center;
  color: var(--text-tertiary);
  padding: 32px !important;
}

/* 选股表格（今日资讯 → 选股） */
.pick-note {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.pick-note b { color: var(--text-primary); }
.pick-name {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.pick-name:hover { text-decoration: underline; }
.stock-pick-table th { text-align: left; }
.stock-pick-table td { white-space: nowrap; }
.stock-pick-table td:first-child {
  color: var(--text-tertiary);
  font-weight: 600;
}

/* 选股信号标注：进场＝红字，底部＝琥珀，其它＝弱化 */
.pick-sig-entry {
  color: #d42b2b;
  font-weight: 700;
  background: rgba(212, 43, 43, 0.10);
  border: 1px solid rgba(212, 43, 43, 0.35);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}
.pick-sig-bottom {
  color: #c77700;
  font-weight: 700;
  background: rgba(199, 119, 0, 0.10);
  border: 1px solid rgba(199, 119, 0, 0.30);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}
.pick-sig-muted {
  color: var(--text-tertiary);
  font-weight: 600;
}
.pick-entry-banner {
  margin: 8px 0 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(212, 43, 43, 0.10);
  border: 1px solid rgba(212, 43, 43, 0.40);
  color: #d42b2b;
  font-size: 13px;
  line-height: 1.6;
}
.pick-entry-banner b { color: #b71c1c; }


/* 资金流向面板 */
.flow-market { margin-bottom: 18px; }
.flow-market-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.flow-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .flow-cols { grid-template-columns: 1fr; }
}
.flow-col {
  background: var(--bg-tertiary);
  border-radius: 10px;
  padding: 10px 12px;
}
.flow-col-title {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  text-align: center;
}
.flow-col-title.inflow { color: var(--color-up); background: rgba(220,38,38,0.10); }
.flow-col-title.outflow { color: var(--color-down); background: rgba(22,163,74,0.10); }
.flow-table { width: 100%; border-collapse: collapse; }
.flow-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.flow-table tr:last-child td { border-bottom: none; }
.flow-rank {
  color: var(--text-tertiary);
  font-weight: 600;
  width: 22px;
}
.flow-sub { color: var(--text-tertiary); font-size: 12px; }
.flow-leader { color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.flow-empty { color: var(--text-tertiary); padding: 16px; text-align: center; }
.flow-unsupported {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.flow-unsupported b { color: var(--text-primary); }
.flow-unsupported-reason { margin-top: 6px; font-size: 12px; color: var(--text-tertiary); }

.position-table th,
.position-table td {
  white-space: nowrap;
}

td.cell-up, .cell-up { color: var(--color-up); font-weight: 600; }
td.cell-down, .cell-down { color: var(--color-down); font-weight: 600; }
.cell-flat { color: var(--text-tertiary); font-weight: 600; }

/* ========================================
 * 全球产业数据（24 个精选板块网格）
 * ======================================== */
.concepts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.concept-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 64px;
}
.concept-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.concept-card.concept-empty {
  cursor: default;
  opacity: 0.55;
}
.concept-card.concept-empty:hover {
  transform: none;
  box-shadow: none;
}
.concept-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #111);
  margin-bottom: 6px;
}
.concept-chg {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.concept-src {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-tertiary, #888);
  font-weight: 400;
}
@media (min-width: 640px) {
  .concepts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .concepts-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mini progress bar for position weight */
.weight-bar {
  width: 80px;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.weight-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

/* ========================================
   Badges
   ======================================== */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}

.badge-estimated {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-imported {
  background: #EDE3F9;
  color: #7C3AED;
}

.badge-no-data {
  background: #f3f4f6;
  color: var(--text-tertiary);
}

.badge-session {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-session.premarket { background: #fef3c7; color: #92400e; }
.badge-session.regular { background: #EDE3F9; color: #7C3AED; }
.badge-session.afterhours { background: #ede9fe; color: #5b21b6; }
.badge-session.closed { background: #f3f4f6; color: #6b7280; }

.badge-ann {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-stock {
  background: #EDE3F9;
  color: #7C3AED;
}

.badge-settle-future { background: #e3f2fd; color: #1565c0; }
.badge-settle-etf { background: #e0f2f1; color: #00796b; }
.badge-settle-a50 { background: #fff3e0; color: #e65100; }

/* ========================================
   Filter Tabs
   ======================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

/* ---- 财经新闻 · 持仓资金流 + 主力抛货 AI 判断 ---- */
.myfunds-summary { background: var(--bg-tertiary, #EEE2F6); border: 1px solid var(--border-color, #EADDF4); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.myfunds-sum-row { font-size: 13px; color: var(--text-primary, #1f2533); }
.myfunds-sum-row b.up { color: #dc2626; }
.myfunds-sum-row b.down { color: #16a34a; }
.myfunds-sum-row b.danger { color: #dc2626; }
.myfunds-llm { margin-top: 8px; font-size: 13px; color: var(--text-primary, #1f2533); line-height: 1.6; }
.fund-engine { display: inline-block; margin-top: 8px; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.fund-engine.llm { background: var(--accent, #8B5CF6); color: #fff; font-weight: 700; }
.fund-engine.rule { background: #eef0f4; color: #6b7280; }
.myfunds-item { border: 1px solid var(--border-light, #F2E9F9); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg-secondary, #FAF6FE); }
.myfunds-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.myfunds-name { font-weight: 700; font-size: 14px; color: var(--text-primary, #1f2533); }
.myfunds-code { font-size: 12px; color: #9aa0b4; }
.myfunds-price { font-size: 13px; }
.myfunds-price.up { color: #dc2626; }
.myfunds-price.down { color: #16a34a; }
.myfunds-verdict { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.myfunds-verdict i { font-style: normal; opacity: .78; margin-left: 4px; }
.fund-verdict-dump { background: #dc2626; color: #fff; }
.fund-verdict-out { background: #fde68a; color: #92400e; }
.fund-verdict-neutral { background: #eef0f4; color: #6b7280; }
.fund-verdict-in { background: #16a34a; color: #fff; }
.fund-verdict-accum { background: #059669; color: #fff; }
.myfunds-bars { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.myfunds-metric { display: flex; align-items: baseline; gap: 4px; font-size: 12px; }
.myfunds-metric i { font-style: normal; color: #9aa0b4; }
.myfunds-metric b { font-size: 13px; }
.myfunds-metric b.up { color: #dc2626; }
.myfunds-metric b.down { color: #16a34a; }
.myfunds-metric em { font-style: normal; color: #9aa0b4; font-size: 11px; }
.myfunds-reasons { margin-top: 8px; font-size: 12px; color: #6b7280; line-height: 1.7; }
.myfunds-note { margin-top: 10px; font-size: 12px; color: #9aa0b4; line-height: 1.7; }
.filter-tab {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--bg-secondary);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* 财经新闻过滤标签强制分两行：第 4 个（财联社来源）后换行，
   形成「新闻类 4 个 + 数据类 3 个」两行布局 */
.filter-break {
  flex-basis: 100%;
  height: 0;
  margin: 0;
  padding: 0;
}

/* ========================================
   Two column layout
   ======================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1200px) {
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   News Timeline
   ======================================== */
.news-timeline {
  position: relative;
  padding-left: 18px;
}

.news-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-color);
}

.news-item {
  position: relative;
  padding-bottom: 18px;
}

.news-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: 2px solid var(--bg-secondary);
}

.news-item.cls::before {
  background: var(--color-up);
}

.news-item.related::before {
  background: var(--accent);
}

.news-time {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.news-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-summary.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.news-source {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.news-source-cls {
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  background: #e23b3b;
  padding: 2px 8px;
  border-radius: 4px;
}

.news-related {
  font-size: 11px;
  color: var(--color-up);
  background: var(--color-up-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.news-ai-inline {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.news-ai-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.news-ai-stock {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.news-ai-stock:last-child {
  margin-bottom: 0;
}

.news-ai-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.news-ai-reason {
  color: var(--text-secondary);
  flex: 1 1 100%;
  line-height: 1.5;
}

.news-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.news-featured {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.news-featured-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.news-featured-list {
  list-style: none;
}

.news-featured-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
}

.news-featured-list li:last-child {
  border-bottom: none;
}

/* ========================================
   Flows
   ======================================== */
.flows-panel { animation: fadeIn .2s ease; }
.flows-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }

/* ========================================
   Benchmarks
   ======================================== */
.benchmark-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.benchmark-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.benchmark-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-left: 6px;
}

.benchmark-group { margin-bottom: 10px; }

.benchmark-group-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.benchmark-row { display: flex; gap: 10px; flex-wrap: wrap; }

.benchmark-item {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  min-width: 130px;
  flex: 1;
}

.bi-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.bi-ticker { font-size: 11px; color: var(--text-tertiary); font-weight: 400; }
.bi-meta { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.bi-closed { color: var(--text-tertiary); font-size: 11px; }

/* ========================================
   Analysis Cards
   ======================================== */
.analysis-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.analysis-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.analysis-count {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-left: 6px;
}

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

.analysis-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 13px;
}

.analysis-list li:last-child { border-bottom: none; }

.sentiment {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.tag-up { color: var(--color-up); background: var(--color-up-bg); }
.tag-down { color: var(--color-down); background: var(--color-down-bg); }
.tag-neutral { color: #6b7280; background: #f3f4f6; }

.analysis-news { flex: 1; color: var(--text-primary); }
.analysis-src { font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; }
.analysis-reason { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-top: 4px; }
.analysis-ai-tag { font-size: 12px; font-weight: 700; color: #7C3AED; margin-bottom: 10px; }

/* ========================================
   Review Page
   ======================================== */
.review-score-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.donut-chart {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
}

.donut-chart svg {
  transform: rotate(-90deg);
}

.donut-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.donut-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.review-section {
  margin-bottom: 20px;
}

.review-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

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

.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.risk-item:last-child { border-bottom: none; }

.risk-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.risk-icon.warn { background: #fffbeb; color: #d97706; }
.risk-icon.ok { background: #f0fdf4; color: #16a34a; }
.risk-icon.info { background: #EDE3F9; color: #8B5CF6; }

.risk-content { flex: 1; }
.risk-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.risk-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.review-disclaimer {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--color-warning-bg);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--color-warning);
  line-height: 1.6;
}

.review-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.review-objective {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.review-ai {
  background: #EDE3F9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: #7C3AED;
}

/* 持仓技术信号 —— 红色/高亮提示（突破确认 / 趋势回调 / 极端情绪） */
.review-signals {
  border: 1px solid #DDCBF2;
  border-left: 4px solid #8B5CF6;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: #F2E6F8;
}
.signal-group { margin: 12px 0; }
.signal-group-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 6px;
}
.signal-breakout .signal-group-title { background: #fdecea; color: #c62828; }
.signal-pullback .signal-group-title { background: #fff4e5; color: #e65100; }
.signal-panic   .signal-group-title { background: #fdecea; color: #c62828; }
.signal-shrink  .signal-group-title { background: #fdecea; color: #c62828; }
.signal-shrink  .signal-item { border-left-color: #c62828; }
.signal-shrink  .signal-item b { color: #c62828; }
/* 高危信号：放量滞涨 / 有效跌破年线 —— 比常规信号更醒目（深红底 + 粗边框） */
.signal-stagnation .signal-group-title,
.signal-annualbreak .signal-group-title { background: #8e0000; color: #fff; }
.signal-stagnation  .signal-item,
.signal-annualbreak .signal-item {
  border-left-width: 5px;
  border-left-color: #8e0000;
  background: #fff5f5;
  font-weight: 500;
}
.signal-stagnation  .signal-item b,
.signal-annualbreak .signal-item b { color: #8e0000; }
.signal-item {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: #fff;
  border-left: 3px solid #8B5CF6;
}
.signal-pullback .signal-item { border-left-color: #fb8c00; }
.signal-item b { color: #c62828; }
.signal-pullback .signal-item b { color: #e65100; }
.signal-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.signal-empty {
  margin: 6px 0 2px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg-secondary, #f6f8fa);
  border: 1px dashed var(--border-color, #dfe3e8);
  color: var(--text-secondary, #5a6b7b);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------------- 仓位复盘 · 持仓量能分析（放量 / 放量滞涨 / 健康度） ---------------- */
.vol-summary {
  margin: 10px 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  background: var(--bg-secondary, #f6f8fa);
  border-left: 4px solid #90a4ae;
  color: var(--text-secondary, #5a6b7b);
}
.vol-summary.vol-good { background: #fdecea; border-left-color: #c62828; color: #8e0000; }
.vol-summary.vol-danger { background: #fff5f5; border-left-color: #8e0000; color: #8e0000; font-weight: 500; }
.vol-summary.vol-mid { background: #fff8e1; border-left-color: #f9a825; color: #8d6e00; }
.vol-card {
  border: 1px solid var(--border-color, #e6eaee);
  border-radius: var(--radius-md, 8px);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}
.vol-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.vol-name { font-size: 14px; font-weight: 700; color: var(--text-primary, #1f2d3d); }
.vol-code { font-size: 12px; color: var(--text-tertiary, #8a97a3); }
.vol-day { font-size: 11px; color: var(--text-tertiary, #8a97a3); margin-left: auto; }
.vol-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  background: #eceff1;
  color: #546e7a;
}
.vol-badge.vol-good { background: #fdecea; color: #c62828; }
.vol-badge.vol-danger { background: #8e0000; color: #fff; }
.vol-badge.vol-warn { background: #fff4e5; color: #e65100; }
.vol-badge.vol-mid { background: #fff8e1; color: #8d6e00; }
.vol-badge.vol-flat { background: #eceff1; color: #546e7a; }
.vol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.vol-cell { display: flex; flex-direction: column; gap: 3px; }
.vol-cell .k { font-size: 11px; color: var(--text-tertiary, #8a97a3); }
.vol-cell .v { font-size: 15px; font-weight: 700; color: var(--text-primary, #1f2d3d); }
.vol-cell .s { font-size: 11px; color: var(--text-tertiary, #8a97a3); }
.vol-cell .s.vol-hot { color: #c62828; font-weight: 500; }
.vol-cell .s.vol-warm { color: #ef6c00; }
.vol-cell .s.vol-cold { color: #2e7d32; }
.vol-bar-track { height: 5px; border-radius: 3px; background: #eceff1; overflow: hidden; }
.vol-bar { display: block; height: 100%; border-radius: 3px; background: #90a4ae; }
.vol-bar.vol-hot { background: #c62828; }
.vol-bar.vol-warm { background: #ef6c00; }
.vol-bar.vol-flat { background: #90a4ae; }
.vol-bar.vol-cold { background: #2e7d32; }
.vol-advice { margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--text-secondary, #5a6b7b); }

/* ---------------- 仓位复盘 · 持仓公司财报分析 ---------------- */
.review-fundamentals {
  border: 1px solid #DDCBF2;
  border-left: 4px solid #8B5CF6;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: #F2E6F8;
}
.fin-card {
  background: #fff;
  border: 1px solid #DDCBF2;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.fin-card:last-of-type { margin-bottom: 0; }
.fin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #DDCBF2;
}
.fin-name { font-size: 15px; font-weight: 700; color: var(--text-primary, #1f2933); }
.fin-code { font-size: 11px; color: var(--text-tertiary, #9aa5b1); }
.fin-sector {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #EDE3F9;
  color: #6D28D9;
}
.fin-period { font-size: 11px; color: var(--text-tertiary, #9aa5b1); }
.fin-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  color: #fff;
  white-space: nowrap;
}
.fin-badge .fin-score { opacity: .85; font-weight: 600; margin-left: 4px; }
.fin-badge.excellent { background: #c62828; }
.fin-badge.good      { background: #8B5CF6; }
.fin-badge.neutral   { background: #78909c; }
.fin-badge.weak      { background: #2e7d32; }
.fin-badge.risk      { background: #1b5e20; }
.fin-group { margin: 10px 0; }
.fin-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #6D28D9;
  margin-bottom: 6px;
  padding-left: 8px;
  border-left: 3px solid #8B5CF6;
}
.fin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}
.fin-metric {
  background: #fafafa;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fin-metric .k { font-size: 11px; color: var(--text-tertiary, #9aa5b1); }
.fin-metric .v { font-size: 13px; font-weight: 600; color: var(--text-primary, #1f2933); }
.fin-pos { color: #c62828; }
.fin-neg { color: #2e7d32; }
.fin-bull, .fin-bear { margin: 8px 0; }
.fin-bull-title, .fin-bear-title { font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.fin-bull-title { color: #c62828; }
.fin-bear-title { color: #2e7d32; }
.fin-li {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-secondary, #5a6b7b);
  padding: 5px 9px;
  margin-bottom: 4px;
  border-radius: 5px;
  background: #fafafa;
}
.fin-bull .fin-li { border-left: 3px solid #c62828; }
.fin-bear .fin-li { border-left: 3px solid #2e7d32; }
.fin-summary {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 6px;
  background: #fff8fa;
  border: 1px solid #DDCBF2;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-secondary, #5a6b7b);
}
.fin-trend {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-tertiary, #9aa5b1);
  line-height: 1.7;
}
.fin-empty {
  margin: 6px 0 2px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg-secondary, #f6f8fa);
  border: 1px dashed var(--border-color, #dfe3e8);
  color: var(--text-secondary, #5a6b7b);
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 480px) {
  .fin-metrics { grid-template-columns: repeat(2, 1fr); }
  .fin-badge { margin-left: 0; }
}

/* ========================================
   Calendar
   ======================================== */
.calendar-date-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.date-chip {
  min-width: 80px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.date-chip:hover {
  border-color: var(--accent);
}

.date-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.date-chip .day {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.date-chip .week {
  font-size: 11px;
  opacity: 0.8;
}

.date-chip.active .day,
.date-chip.active .week {
  color: #fff;
}

.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.calendar-date {
  text-align: center;
  min-width: 60px;
}

.calendar-date .day {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.calendar-date .month {
  font-size: 12px;
  color: var(--text-secondary);
}

.calendar-date .time {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.calendar-info { flex: 1; }

.calendar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.calendar-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.calendar-meta a { color: var(--accent); text-decoration: none; }

.calendar-archived { opacity: 0.5; }

/* ========================================
   Notes
   ======================================== */
.notes-editor {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.notes-input {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}

.notes-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.note-time {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.note-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
}

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

/* 投资纪律（紫色加粗）+ 事件日历 */
.note-discipline {
  background: #faf5ff;
  border: 1px solid #d8b4fe;
  border-left: 4px solid #7c3aed;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.note-discipline-title {
  font-weight: 800;
  color: #6d28d9;
  font-size: 15px;
  margin-bottom: 8px;
}
.note-discipline-list {
  margin: 0 0 0 18px;
  padding: 0;
}
.note-discipline-list li {
  color: #6d28d9;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.8;
}
.event-calendar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e9d5ff;
}
.event-calendar-title {
  font-weight: 700;
  color: #7c3aed;
  font-size: 13px;
  margin-bottom: 6px;
}
.event-region { margin: 6px 0 2px; color: #4c1d95; font-size: 13px; }
.event-list { margin: 0 0 4px 2px; padding-left: 16px; }
.event-list li { font-size: 12.5px; color: var(--text-secondary); line-height: 1.7; }
.event-date { font-weight: 700; color: #7c3aed; }
.note-discipline-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* 选股剔除规则条 */
.pick-rules {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.pick-rules-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.pick-rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.pick-rule-chip.disabled { opacity: 0.5; cursor: not-allowed; }
.pick-rule-hint { font-size: 10.5px; color: var(--text-tertiary); }
.pick-excluded {
  margin-top: 8px;
  font-size: 12px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 10px;
}

/* ========================================
   Settings (embedded in notes/settings page)
   ======================================== */
.settings-container { max-width: 900px; }

.settings-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.settings-section h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.setting-row label {
  width: 140px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.setting-row input[type="text"],
.setting-row input[type="password"],
.setting-row input[type="number"],
.setting-row select {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  flex: 1;
  max-width: 300px;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.setting-row input:focus,
.setting-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.small-input {
  width: 80px !important;
  max-width: 80px !important;
}

.hint {
  font-size: 12px;
  color: var(--text-tertiary);
}

.rate-info {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.security-notice {
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-down);
}

.security-notice p { margin-bottom: 4px; }

.cash-row { gap: 8px; margin-bottom: 8px; }
.cash-row .cash-amount { max-width: 150px !important; }
.cash-row .cash-currency { max-width: 100px !important; }

/* ========================================
   Data Source Banner
   ======================================== */
.data-source-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 6px 20px;
  font-size: 11px;
  color: var(--text-tertiary);
  z-index: 100;
  border-radius: var(--radius-md) 0 0 0;
}

.ds-label { font-weight: 600; }

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-sm { width: 400px; }
.modal-lg { width: 760px; max-width: 94vw; }

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

.modal-header h2 { font-size: 18px; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 0;
  line-height: 1;
}

.modal-close:hover { color: var(--text-primary); }

.modal-body { padding: 20px; }

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.form-row label {
  width: 80px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.form-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: -8px;
  margin-bottom: 8px;
  margin-left: 92px;
}

/* ========================================
   Price Detail
   ======================================== */
.price-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 13px;
}

.price-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
}

.price-detail-item .label { color: var(--text-secondary); }
.price-detail-item .value {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   Toast
   ======================================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  animation: slideIn 0.2s ease;
}

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

.toast-success { border-left: 3px solid #22c55e; }
.toast-warning { border-left: 3px solid #f59e0b; }
.toast-error { border-left: 3px solid #ef4444; }

/* ========================================
   Loading
   ======================================== */
.loading {
  padding: 32px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* Import modal */
.import-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.import-warn {
  font-size: 12px;
  color: var(--color-warning);
  background: var(--color-warning-bg);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 10px;
}

.import-warn:empty { display: none; }

#importPreviewTable th, #importPreviewTable td {
  padding: 6px 8px;
  font-size: 12px;
}

#importPreviewTable code {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 11px;
}

/* Dashboard specific */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.position-gainers {
  max-height: 340px;
  overflow-y: auto;
}

.gainer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.gainer-row:last-child { border-bottom: none; }

.gainer-info { flex: 1; }
.gainer-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.gainer-code { font-size: 11px; color: var(--text-tertiary); }
.gainer-change { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Action checklist */
.action-list {
  list-style: none;
}

.action-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
}

.action-list li:last-child { border-bottom: none; }

.action-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  cursor: pointer;
}

.action-check.done {
  background: var(--color-down);
  border-color: var(--color-down);
  color: #fff;
}

/* Sector/risk bars */
.risk-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.risk-bar-label {
  width: 80px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.risk-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.risk-bar-value {
  width: 60px;
  text-align: right;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------------- 新闻早报 / 收盘分析 ---------------- */
.briefing-body { padding: 20px 28px 40px; }
.brief-section { margin-bottom: 22px; }
.brief-sec-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--color-up); }
.brief-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.brief-chip { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--text-secondary); }
.brief-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.brief-card { background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; }
.brief-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.brief-name { font-weight: 700; color: var(--text-primary); font-size: 14px; }
.brief-meta { font-size: 12px; color: var(--text-secondary); margin: 3px 0; }
.brief-news-block { margin-top: 6px; border-top: 1px dashed var(--border-color); padding-top: 6px; }
.brief-news { font-size: 12px; color: var(--text-primary); line-height: 1.6; }
.brief-src { color: var(--text-tertiary); font-size: 11px; }
.brief-muted { color: var(--text-tertiary); font-size: 12px; }
.brief-list { list-style: none; padding: 0; margin: 0; }
.brief-list li { font-size: 13px; color: var(--text-primary); padding: 6px 0; border-bottom: 1px dashed var(--border-color); }
.brief-date { color: var(--text-secondary); font-size: 12px; margin-right: 6px; }
.brief-cat { display: inline-block; background: #EDE3F9; color: #7C3AED; font-size: 11px; padding: 1px 7px; border-radius: 10px; margin-right: 6px; }
.brief-summary { font-size: 14px; color: var(--text-primary); margin-bottom: 6px; }
.brief-note { font-size: 12px; color: var(--text-tertiary); background: #f9fafb; border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.brief-table { width: 100%; }
.brief-table th, .brief-table td { padding: 8px 10px; font-size: 13px; text-align: center; }
.brief-table th { background: #f3f4f6; color: var(--text-secondary); font-weight: 600; }
.brief-empty { color: var(--text-tertiary); font-size: 14px; padding: 30px; text-align: center; }
.brief-generating { color: var(--text-secondary); font-size: 14px; padding: 40px; text-align: center; background: rgba(139,92,246,.05); border: 1px dashed rgba(139,92,246,.3); border-radius: 10px; }
.brief-generating-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 10px; }
.brief-generating .spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(139,92,246,.2); border-top-color: rgba(139,92,246,1); border-radius: 50%; animation: brief-spin .9s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes brief-spin { to { transform: rotate(360deg); } }

/* ---------------- 财联社来源兜底提示 ---------------- */
.news-fallback-notice {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  color: #92400e;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.news-info-banner {
  background: #EDE3F9;
  border: 1px solid #A78BFA;
  border-radius: 8px;
  color: #7C3AED;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ---------------- 仓位复盘 · A股大盘监控（盘前/盘中/盘后） ---------------- */
.review-monitor {
  border: 1px solid #bbdefb;
  border-left: 4px solid #1976d2;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: #f5f9ff;
}
.mon-indices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.mon-index {
  background: #fff;
  border: 1px solid #e3f2fd;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.mon-index-name { font-size: 11px; color: var(--text-tertiary, #9aa5b1); margin-bottom: 3px; }
.mon-index-price { font-size: 16px; font-weight: 700; color: var(--text-primary, #1f2933); }
.mon-index-chg { font-size: 12px; font-weight: 600; margin-top: 2px; }
.mon-breadth { margin: 10px 0; }
.mon-breadth-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #eceff1;
}
.mon-bu { background: #c62828; }
.mon-bf { background: #b0bec5; }
.mon-bd { background: #2e7d32; }
.mon-breadth-txt {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-secondary, #5a6b7b);
}
.mon-points { margin: 10px 0; }
.mon-point {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary, #5a6b7b);
  padding: 6px 10px;
  margin-bottom: 5px;
  border-radius: 6px;
  background: #fff;
  border-left: 3px solid #1976d2;
}
.mon-holdings { margin-top: 10px; }
.mon-holding {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 5px 9px;
  margin-bottom: 4px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #e3f2fd;
}
.mh-name { flex: 1 1 auto; font-weight: 600; color: var(--text-primary, #1f2933); }
.mh-price { width: 68px; text-align: right; color: var(--text-secondary, #5a6b7b); }
.mh-chg { width: 64px; text-align: right; font-weight: 600; }
.mh-pnl { width: 78px; text-align: right; font-weight: 600; }
.mon-flag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #8B5CF6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.mon-error {
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 6px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #8d6e63;
  font-size: 12px;
}

/* ---------------- 仓位复盘 · 财报增长归因 / 现金流诊断 ---------------- */
.fin-dupont {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin: 6px 0;
}
.fin-dp-item {
  background: #fafafa;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fin-dp-item .k { font-size: 11px; color: var(--text-tertiary, #9aa5b1); }
.fin-dp-item .v { font-size: 13px; font-weight: 600; color: var(--text-primary, #1f2933); }
.fin-dp-item .c { font-size: 11px; font-weight: 600; }
.fin-line {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-secondary, #5a6b7b);
  padding: 5px 9px;
  margin-bottom: 4px;
  border-radius: 5px;
  background: #fafafa;
  border-left: 3px solid #DDCBF2;
}
.fin-line b { color: #6D28D9; }
@media (max-width: 480px) {
  .mon-indices { grid-template-columns: repeat(2, 1fr); }
  .mon-holding { flex-wrap: wrap; }
  .mh-price, .mh-chg, .mh-pnl { width: auto; }
}

/* [CHIP-LEVELS-BEGIN] */
/* ---------------- 仓位复盘 · 持仓关键点位（压力位 / 平均成本 / 支撑位） ---------------- */
.review-levels {
  border: 1px solid #DDCBF2;
  border-left: 4px solid #8B5CF6;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: #F2E6F8;
}
.lvl-card {
  background: #fff;
  border: 1px solid #DDCBF2;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.lvl-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lvl-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.lvl-code { font-size: 12px; color: var(--text-tertiary); }
.lvl-now { margin-left: auto; font-size: 13px; color: var(--text-secondary); }
.lvl-now b { color: var(--text-primary); }

/* 筹码分布水平柱状图：纵轴=价格（样本最低~最高），中线=现价，绿=获利筹码向左/红=套牢筹码向右 */
.lvl-hist {
  position: relative;
  width: 100%;
  height: 180px;
  margin: 10px 0 8px;
  background: #fafafa;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #eef1f4;
}
.lvl-hist-axis {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--text-primary);
  opacity: 0.55;
  z-index: 2;
}
.lvl-hist-bar {
  position: absolute;
  height: 1.6px;
  z-index: 1;
}
.lvl-hist-bar.profit { background: var(--color-down); opacity: 0.65; }
.lvl-hist-bar.trapped { background: var(--color-up); opacity: 0.65; }
.lvl-hist-ref {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  z-index: 3;
  border-top: 1px dashed;
}
.lvl-ref-sup { border-color: var(--color-down); }
.lvl-ref-avg { border-color: #8B5CF6; }
.lvl-ref-res { border-color: var(--color-up); }

/* 图例 */
.lvl-hist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 4px;
  font-size: 11px;
  color: var(--text-secondary);
}
.lvl-hist-legend span { display: inline-flex; align-items: center; gap: 4px; }
.lvl-hist-legend i.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.lvl-hist-legend i.dot.sup { background: var(--color-down); }
.lvl-hist-legend i.dot.avg { background: #8B5CF6; }
.lvl-hist-legend i.dot.res { background: var(--color-up); }
.lvl-hist-legend i.dot.px { background: var(--text-primary); }

/* 三个点位：支撑位(绿) / 平均成本(主色) / 压力位(红)，遵循红涨绿跌 */
.lvl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 8px;
}
.lvl-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #F2E6F8;
}
.lvl-cell .k { font-size: 12px; color: var(--text-secondary); }
.lvl-cell .v { font-size: 16px; font-weight: 600; }
.lvl-cell .s { font-size: 11px; color: var(--text-tertiary); }
.lvl-sup .v { color: var(--color-down); }
.lvl-res .v { color: var(--color-up); }
.lvl-avg .v { color: #8B5CF6; }

.lvl-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------------- 仓位复盘 · 持仓资金分布（主力/特大/大/中/小单） ---------------- */
.review-funds {
  border: 1px solid #DDCBF2;
  border-left: 4px solid #8B5CF6;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: #F2E6F8;
}
.fund-card {
  background: #fff;
  border: 1px solid #DDCBF2;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.fund-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.fund-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 6px 0 10px;
  padding: 6px 8px;
  background: #F2E6F8;
  border-radius: 4px;
}
.fund-main-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.fund-main-v {
  font-size: 16px;
  font-weight: 600;
}
.fund-main-ratio {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-left: auto;
}
.fund-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.fund-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #fafafa;
  border-radius: 4px;
}
.fund-cell-k { font-size: 11px; color: var(--text-secondary); }
.fund-cell-v { font-size: 13px; font-weight: 600; }
.fund-bar-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: #eef1f4;
  border-radius: 2px;
  overflow: hidden;
}
.fund-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 2px;
}
.fund-bar.inflow { background: var(--color-up); opacity: 0.75; }
.fund-bar.outflow { background: var(--color-down); opacity: 0.75; }

/* 兜底端点标记：数据不全（仅特大+大两档） */
.fund-partial {
  font-size: 10px;
  color: var(--text-tertiary);
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

/* ---------------- 仓位复盘 · 持仓资讯（情绪智能标注 · 周报/日报 toggle） ---------------- */
.review-news {
  border: 1px solid #DDCBF2;
  border-left: 4px solid #8B5CF6;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: #F2E6F8;
}
.news-toggle {
  display: inline-flex;
  margin: 6px 0 12px;
  border: 1px solid #f3d7e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.news-toggle-btn {
  border: 0;
  background: transparent;
  padding: 6px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
}
.news-toggle-btn + .news-toggle-btn {
  border-left: 1px solid #f3d7e0;
}
.news-toggle-btn.active {
  background: #8B5CF6;
  color: #fff;
}
.news-pane { margin-top: 4px; }
.news-group {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #DDCBF2;
  border-radius: 6px;
  padding: 8px 10px;
}
.news-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.news-group-count {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
}
.news-empty {
  padding: 18px 12px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 12px;
  background: #fff;
  border: 1px dashed #f3d7e0;
  border-radius: 6px;
}
.news-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px dashed #f3d7e0;
  line-height: 1.6;
}
.news-item:last-child { border-bottom: 0; }
.news-senti {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.news-senti.senti-hot { color: var(--color-up); background: #FEE2E2; }
.news-senti.senti-neg { color: var(--color-down); background: #DCFCE7; }
.news-senti.senti-neu { color: var(--text-secondary); background: #F3F4F6; }
.news-source {
  font-size: 11px;
  color: var(--text-tertiary);
  background: #f3f4f6;
  padding: 0 5px;
  border-radius: 2px;
  flex-shrink: 0;
}
.news-time {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.news-title {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  flex: 1 1 auto;
  min-width: 200px;
}
.news-title:hover { color: #8B5CF6; text-decoration: underline; }
.news-related {
  font-size: 11px;
  color: var(--text-secondary);
  background: #F2E6F8;
  padding: 0 5px;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .fund-grid { grid-template-columns: repeat(2, 1fr); }
  .fund-cell-v { font-size: 12px; }
}

@media (max-width: 480px) {
  .lvl-grid { gap: 5px; }
  .lvl-cell { padding: 6px; }
  .lvl-cell .v { font-size: 13px; }
  .lvl-cell .k { font-size: 11px; }
  .lvl-cell .s { font-size: 10px; }
  .lvl-name { font-size: 14px; }
  .lvl-now { font-size: 12px; }
  .lvl-hist { height: 150px; }
  .lvl-hist-legend { gap: 8px; font-size: 10px; }
}
/* [CHIP-LEVELS-END] */

/* [AI-EVENT-IMPACT-START] AI 事件日历·利好/利空研判 */
.ai-impact { margin-top: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12px; line-height: 1.55; border: 1px solid transparent; }
.ai-impact.ai-bull { background: rgba(230,57,70,.08); border-color: rgba(230,57,70,.35); }
.ai-impact.ai-bear { background: rgba(40,167,69,.08); border-color: rgba(40,167,69,.35); }
.ai-impact.ai-neutral { background: rgba(120,120,120,.07); border-color: rgba(120,120,120,.3); }
.ai-tag { display: inline-block; font-weight: 700; color: #999; margin-right: 6px; letter-spacing: .5px; }
.ai-verdict { display: inline-block; font-weight: 800; margin-right: 8px; }
.ai-bull .ai-verdict { color: #e63946; }
.ai-bear .ai-verdict { color: #28a745; }
.ai-neutral .ai-verdict { color: #888; }
.ai-summary { color: #555; }
.ai-bystock { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.ai-chip { font-size: 11px; padding: 1px 7px; border-radius: 10px; border: 1px solid #ccc; cursor: default; }
.ai-chip.ai-bull { color: #e63946; border-color: rgba(230,57,70,.5); background: rgba(230,57,70,.06); }
.ai-chip.ai-bear { color: #28a745; border-color: rgba(40,167,69,.5); background: rgba(40,167,69,.06); }
.ai-chip.ai-neutral { color: #888; }
/* [AI-EVENT-IMPACT-END] */

/* ---------------- 仓位复盘 · 我持股的年线（MA250 站上/跌破 · 偏离幅度） ---------------- */
.review-annual {
  border: 1px solid #bbdefb;
  border-left: 4px solid #1565c0;
  border-radius: var(--radius-md, 8px);
  padding: 14px 16px;
  background: #f5f9ff;
}
.al-summary {
  margin: 10px 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  background: var(--bg-secondary, #f6f8fa);
  border-left: 4px solid #90a4ae;
  color: var(--text-secondary, #5a6b7b);
}
.al-summary.vol-good { background: #fdecea; border-left-color: #c62828; color: #8e0000; }
.al-summary.vol-danger { background: #fff5f5; border-left-color: #8e0000; color: #8e0000; font-weight: 500; }
.al-summary.vol-mid { background: #fff8e1; border-left-color: #f9a825; color: #8d6e00; }
.al-table {
  border: 1px solid var(--border-color, #e6eaee);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  background: #fff;
}
.al-row {
  display: grid;
  grid-template-columns: 2.4fr 1.2fr 1.4fr 1.2fr 1.2fr 1.4fr 1.2fr;
  align-items: center;
  padding: 9px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light, #eef1f4);
}
.al-row:last-child { border-bottom: none; }
.al-head {
  background: var(--bg-tertiary, #f0f3f7);
  font-weight: 700;
  color: var(--text-primary, #1f2d3d);
  font-size: 12px;
}
.al-name { font-weight: 600; color: var(--text-primary, #1f2d3d); }
.al-code { font-style: normal; font-size: 11px; color: var(--text-tertiary, #8a97a3); margin-left: 4px; }
.al-price { font-weight: 600; }
.al-ma { color: var(--text-secondary, #5a6b7b); }
.al-gap { font-weight: 600; }
.al-state { font-weight: 600; text-align: right; }
.al-cost { color: var(--text-primary, #1f2d3d); font-weight: 600; }
.al-costma { font-weight: 600; }
.al-cost-above { color: #e05656; }
.al-cost-below { color: #2faa6b; }
.al-scroll { overflow-x: auto; }

/* 持仓股 5/10/20 日均线走向 AI 分析 */
.review-matrend {
  border: 1px solid #c5e1f5;
  border-left: 4px solid #1e88e5;
  border-radius: var(--radius-md, 8px);
  padding: 14px 16px;
  background: #f3f9ff;
}
.ma-summary {
  margin: 10px 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  background: var(--bg-secondary, #f6f8fa);
  border-left: 4px solid #90a4ae;
  color: var(--text-secondary, #5a6b7b);
}
.ma-summary.ma-bull { background: #eafaf0; border-left-color: #2faa6b; color: #1b7a47; }
.ma-summary.ma-bear { background: #fff0f0; border-left-color: #e05656; color: #a83232; }
.ma-summary.ma-mid { background: #fff8e1; border-left-color: #f9a825; color: #8d6e00; }
.ma-summary.ma-flat { background: var(--bg-secondary, #f6f8fa); border-left-color: #90a4ae; }
.ma-table {
  border: 1px solid var(--border-color, #e6eaee);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  background: #fff;
}
.ma-row {
  display: grid;
  grid-template-columns: 2.4fr 1.2fr 1.3fr 1.3fr 1.3fr 1.7fr 1.7fr;
  align-items: center;
  padding: 9px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light, #eef1f4);
}
.ma-analysis {
  grid-column: 1 / -1;
  padding: 4px 12px 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-secondary, #5a6b7b);
  background: #fafcff;
  border-bottom: 1px solid var(--border-light, #eef1f4);
}
.ma-row:last-child, .ma-analysis:last-child { border-bottom: none; }
.ma-head {
  background: var(--bg-tertiary, #f0f3f7);
  font-weight: 700;
  color: var(--text-primary, #1f2d3d);
  font-size: 12px;
}
.ma-name { font-weight: 600; color: var(--text-primary, #1f2d3d); }
.ma-code { font-style: normal; font-size: 11px; color: var(--text-tertiary, #8a97a3); margin-left: 4px; }
.ma-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.ma-m5, .ma-m10, .ma-m20 { font-variant-numeric: tabular-nums; }
.ma-up { color: #e05656; }
.ma-down { color: #2faa6b; }
.ma-flat { color: #8a97a3; }
.ma-chip { font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
.ma-trend { font-weight: 600; }
.ma-trend.ma-bull { color: #c62828; }
.ma-trend.ma-bear { color: #2faa6b; }
.ma-trend.ma-mid { color: #ef8c00; }
.ma-trend.ma-flat { color: #8a97a3; }
.ma-scroll { overflow-x: auto; }

/* ====== IXIC 定投指数工作台 ====== */
.ixic-price-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f1f5f9;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.ixic-gold-card {
  background: var(--bg-secondary, #FAF6FE);
  border: 1px solid var(--border-color, #EADDF4);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.ixic-gold-card.gold-buy {
  border-color: var(--accent, #8B5CF6);
  background: linear-gradient(135deg, #F3E8FF 0%, #EDE3F9 100%);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.ixic-gold-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ixic-gold-en {
  font-size: 12px;
  color: #9aa0b4;
  font-weight: 400;
  margin-left: 6px;
}
.ixic-gold-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.ixic-gold-tag.tag-neutral { background: #eef0f4; color: #6b7280; }
.gold-buy-tag { background: var(--accent, #8B5CF6); color: #fff; }
.ixic-gold-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.ixic-gold-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-primary, #1f2533);
  letter-spacing: -0.5px;
}
.ixic-gold-side { text-align: right; font-size: 13px; color: #6b7280; }
.ixic-gold-change { font-weight: 700; }
.ixic-gold-change-pct { font-size: 12px; color: #9aa0b4; margin-left: 4px; }
.ixic-gold-threshold { margin-top: 6px; font-size: 12px; }
.ixic-gold-threshold b { color: var(--accent, #8B5CF6); }
.ixic-gold-buy {
  margin-top: 12px;
  background: var(--accent, #8B5CF6);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}
.ixic-gold-meta { margin-top: 8px; font-size: 12px; color: #9aa0b4; }
/* ================= 指数定投页 · 珍珠白/浅粉/香槟金主题（仅 #page-ixic 作用域，其他页面保持淡紫） ================= */
#page-ixic {
  background: linear-gradient(180deg, #FBF7F0 0%, #F6EDE4 100%);
  border-radius: 14px;
}
#page-ixic .card { background: #FFFDFA; border-color: #EBDCC8; }
#page-ixic .card-header { border-bottom-color: #F2E7D8; }
#page-ixic .page-subtitle { color: #A08B6C; }
#page-ixic .btn-primary { background: #C9A86A; border-color: #C9A86A; }
#page-ixic .btn-primary:hover { background: #B6935A; border-color: #B6935A; }
#page-ixic .ixic-years-btn, #page-ixic .ixic-rate-btn { border-color: #E2D2B6; background: #FDFAF4; color: #6B5B3E; }
#page-ixic .ixic-price-card {
  background: linear-gradient(135deg, #F7E8D5 0%, #E8CFA8 100%);
  color: #4A3A22;
  box-shadow: 0 8px 24px rgba(201, 168, 106, 0.25);
}
#page-ixic .ixic-price-label { color: #8A6F48; }
#page-ixic .ixic-price-en { color: #B09A72; }
#page-ixic .ixic-price { color: #3E2F18; }
#page-ixic .ixic-range { color: #8A6F48; }
#page-ixic .ixic-index-select {
  appearance: none; -webkit-appearance: none;
  background: #FFFDFA url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23C9A86A'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid #E2D2B6; border-radius: 8px;
  color: #4A3A22; font-weight: 600; font-size: 13px;
  padding: 6px 28px 6px 12px; cursor: pointer;
}
#page-ixic .ixic-index-select:focus { outline: none; border-color: #C9A86A; box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.18); }
#page-ixic .ixic-range-mark { background: #C9A86A; }
#page-ixic .ixic-range-track { background: #EFE3CF; }
#page-ixic .ixic-compound-card.active { border-color: #C9A86A; background: rgba(201, 168, 106, 0.08); }
#page-ixic .ixic-compound-total { color: #B6935A; }
#page-ixic .ixic-gold-card { background: #FDFAF4; border-color: #EBDCC8; }
#page-ixic .ixic-gold-card.gold-buy {
  background: linear-gradient(135deg, #FBEFF2 0%, #F6E3D9 100%);
  border-color: #D9A8B8;
  box-shadow: 0 0 0 3px rgba(217, 168, 184, 0.20);
}
#page-ixic .gold-buy-tag { background: #C9A86A; }
#page-ixic .ixic-gold-buy { background: linear-gradient(135deg, #C9A86A 0%, #B6935A 100%); }
#page-ixic .ixic-gold-price { color: #3E2F18; }
#page-ixic .ixic-gold-threshold b { color: #C9A86A; }
.ixic-price-label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 500;
}
.ixic-price-en {
  color: #64748b;
  font-size: 12px;
  margin-left: 8px;
  font-weight: 400;
}
.ixic-price-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.ixic-price {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ixic-price.price-up { color: #fca5a5; }
.ixic-price.price-down { color: #86efac; }
.ixic-price.price-neutral { color: #f1f5f9; }
.ixic-price-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ixic-change, .ixic-change-pct {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ixic-change.price-up, .ixic-change-pct.price-up { color: #fca5a5; }
.ixic-change.price-down, .ixic-change-pct.price-down { color: #86efac; }
.ixic-change.price-neutral, .ixic-change-pct.price-neutral { color: #f1f5f9; }
.ixic-range {
  font-size: 12px;
  color: #94a3b8;
}
.ixic-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.ixic-score-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 8px 0 16px;
  flex-wrap: wrap;
}
.ixic-score-left {
  flex: 0 0 180px;
  text-align: center;
  border-right: 1px solid var(--border-color, #e5e7eb);
  padding-right: 24px;
}
.ixic-score-total {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}
.ixic-score-total.score-great, .ixic-bucket.score-great { color: #059669; }
.ixic-score-total.score-good, .ixic-bucket.score-good { color: #16a34a; }
.ixic-score-total.score-mid, .ixic-bucket.score-mid { color: #f59e0b; }
.ixic-score-total.score-bad, .ixic-bucket.score-bad { color: #dc2626; }
.ixic-score-total.score-na, .ixic-bucket.score-na { color: #6b7280; }
.ixic-bucket {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0,0,0,0.04);
}
.ixic-score-advice {
  font-size: 12px;
  color: var(--text-secondary, #4b5563);
  margin-top: 6px;
}
.ixic-score-rank {
  font-size: 11px;
  color: var(--text-tertiary, #6b7280);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ixic-score-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ixic-factor-row {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.ixic-factor-name { color: var(--text-secondary, #4b5563); }
.ixic-factor-weight { color: var(--text-tertiary, #9ca3af); font-size: 10px; margin-left: 4px; }
.ixic-factor-bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.ixic-factor-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.ixic-factor-fill.score-great { background: #059669; }
.ixic-factor-fill.score-good { background: #16a34a; }
.ixic-factor-fill.score-mid { background: #f59e0b; }
.ixic-factor-fill.score-bad { background: #dc2626; }
.ixic-factor-fill.score-na { background: #9ca3af; }
.ixic-factor-score {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ixic-factor-score.score-great { color: #059669; }
.ixic-factor-score.score-good { color: #16a34a; }
.ixic-factor-score.score-mid { color: #f59e0b; }
.ixic-factor-score.score-bad { color: #dc2626; }
.ixic-factor-score.score-na { color: #9ca3af; }
.ixic-reasons-wrap {
  border-top: 1px solid var(--border-color, #e5e7eb);
  padding-top: 12px;
  margin-top: 8px;
}
.ixic-reasons { display: flex; flex-direction: column; gap: 4px; }
.ixic-reason {
  font-size: 12px;
  color: var(--text-secondary, #4b5563);
  line-height: 1.5;
  padding-left: 4px;
}

.ixic-pos-summary {
  font-size: 13px;
  color: var(--text-secondary, #4b5563);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.ixic-pos-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.ixic-pos-kpi {
  background: var(--bg-tertiary, #f9fafb);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.ixic-pos-kpi-label {
  font-size: 11px;
  color: var(--text-tertiary, #6b7280);
  margin-bottom: 4px;
}
.ixic-pos-kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #1f2937);
  font-variant-numeric: tabular-nums;
}
.ixic-pos-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
}
.ixic-pos-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary, #4b5563);
}
.ixic-pos-form input {
  padding: 8px 10px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ixic-pos-pnl.price-up { color: #dc2626; }
.ixic-pos-pnl.price-down { color: #16a34a; }
.ixic-pos-pnl.price-neutral { color: var(--text-primary, #1f2937); }
.ixic-pos-pnl-pct.price-up { color: #dc2626; }
.ixic-pos-pnl-pct.price-down { color: #16a34a; }
.ixic-pos-pnl-pct.price-neutral { color: var(--text-primary, #1f2937); }

.ixic-chart {
  width: 100%;
  min-height: 220px;
}
.ixic-range-bar {
  margin-top: 4px;
}
.ixic-range-track {
  position: relative;
  height: 6px;
  background: linear-gradient(90deg, #16a34a 0%, #f3f4f6 50%, #dc2626 100%);
  border-radius: 3px;
  margin: 12px 0 6px;
}
.ixic-range-mark {
  position: absolute;
  top: -3px;
  width: 12px;
  height: 12px;
  background: #1f2937;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ixic-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary, #6b7280);
}
.ixic-range-current {
  color: var(--text-primary, #1f2937);
  font-weight: 600;
}

.ixic-news {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
}
.ixic-news-item {
  padding: 12px 14px;
  background: var(--bg-tertiary, #f9fafb);
  border-radius: 10px;
  border-left: 3px solid #7c3aed;
}
.ixic-news-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin-bottom: 4px;
  line-height: 1.4;
}
.ixic-news-brief {
  font-size: 12px;
  color: var(--text-secondary, #4b5563);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ixic-news-meta {
  font-size: 11px;
  color: var(--text-tertiary, #9ca3af);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ixic-news-source {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10px;
}
.ixic-news-link {
  color: #2563eb;
  text-decoration: none;
  margin-left: 6px;
}
.ixic-news-link:hover { text-decoration: underline; }

.ixic-compound-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.ixic-compound-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary, #4b5563);
}
.ixic-compound-form input {
  padding: 8px 10px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ixic-compound-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ixic-preset-label {
  font-size: 12px;
  color: var(--text-tertiary, #6b7280);
}
.ixic-compound-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ixic-compound-card {
  background: var(--bg-tertiary, #f9fafb);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.1s;
}
.ixic-compound-card:hover { transform: translateY(-1px); }
.ixic-compound-card.active {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
}
.ixic-compound-year {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #1f2937);
  min-width: 70px;
  font-variant-numeric: tabular-nums;
}
.ixic-compound-total {
  font-size: 24px;
  font-weight: 800;
  color: #7c3aed;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  min-width: 140px;
}
.ixic-compound-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--text-secondary, #4b5563);
  font-variant-numeric: tabular-nums;
  flex: 1;
}
.ixic-compound-ratio {
  color: #16a34a;
  font-weight: 700;
}
.ixic-compound-table {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
}
.ixic-compound-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr 1.5fr;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color, #f3f4f6);
  font-variant-numeric: tabular-nums;
}
.ixic-compound-row:last-child { border-bottom: none; }
.ixic-compound-header {
  background: var(--bg-tertiary, #f9fafb);
  font-weight: 600;
  color: var(--text-secondary, #4b5563);
}
.ixic-compound-profit { color: #16a34a; font-weight: 600; }
.ixic-compound-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary, #9ca3af);
  margin-top: 4px;
}

/* ===== 荐股（投资笔记·荐股类目）===== */
.pick-rec-block {
  background: var(--bg-secondary, #FAF6FE);
  border: 1px solid var(--border-color, #EADDF4);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.pick-rec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent, #8B5CF6);
  margin-bottom: 4px;
}
.pick-rec-sub {
  font-size: 12px;
  color: var(--text-secondary, #6b7280);
  line-height: 1.5;
  margin-bottom: 10px;
}
.pick-rec-list { display: flex; flex-direction: column; gap: 10px; }
.pick-rec {
  background: #ffffff;
  border: 1px solid var(--border-color, #EADDF4);
  border-left: 3px solid var(--accent, #8B5CF6);
  border-radius: 10px;
  padding: 10px 12px;
}
.pick-rec:hover { box-shadow: 0 2px 10px rgba(139, 92, 246, 0.12); }
.pick-rec-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pick-rec-name { font-size: 14px; font-weight: 700; color: var(--text-primary, #111827); }
.pick-rec-code { font-size: 12px; color: var(--text-tertiary, #9ca3af); font-variant-numeric: tabular-nums; }
.pick-rec-ind {
  font-size: 11px; color: var(--accent, #8B5CF6);
  background: var(--accent-light, #EDE3F9); border-radius: 6px; padding: 1px 8px;
}
.pick-rec-signal { font-size: 12px; color: var(--accent-hover, #7C3AED); margin: 4px 0 6px; font-weight: 600; }
.pick-rec-metrics { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary, #6b7280); }
.pick-rec-metric b { color: var(--text-primary, #111827); font-weight: 600; }
.pick-rec-metric b.up { color: var(--color-up, #dc2626); }
.pick-rec-metric b.down { color: var(--color-down, #16a34a); }
.pick-rec-note { font-size: 11px; color: var(--text-tertiary, #9ca3af); margin-top: 10px; line-height: 1.4; }
.pick-rec-empty {
  font-size: 13px; color: var(--text-secondary, #6b7280); line-height: 1.6;
  background: #ffffff; border: 1px dashed var(--border-color, #EADDF4); border-radius: 10px;
  padding: 12px 14px; margin-top: 4px;
}
