/* ═══════════════════════════════════════════════════════════════
   主题覆盖层：汝窑·天青（C）与 朱砂·单色（E）
   仅在 html[data-theme="ruyao" | "zhusha"] 下生效，不改结构。
   ═══════════════════════════════════════════════════════════════ */

/* ── C：汝窑 · 天青 ─────────────────────────────────────── */
html[data-theme="ruyao"] {
  --paper: #f2f6f5;
  --panel: #ffffff;
  --ink: #1f2e2c;
  --muted: #6d8382;
  --line: rgba(74, 107, 112, .16);
  --teal: #4a6b70;
  --teal-deep: #33555a;
  --gold: #7fa9a6;
}
html[data-theme="ruyao"] body {
  background-color: #f2f6f5;
  background-image: none;
  color: #1f2e2c;
}
html[data-theme="ruyao"] body::before { opacity: .16; }
html[data-theme="ruyao"] body::after {
  background:
    radial-gradient(circle, transparent 0 150px, rgba(74, 107, 112, .08) 150px 151px, transparent 151px),
    radial-gradient(circle, transparent 0 210px, rgba(74, 107, 112, .06) 210px 211px, transparent 211px),
    radial-gradient(circle, rgba(127, 169, 166, .10) 0, transparent 62%);
}
html[data-theme="ruyao"] .sidebar,
html[data-theme="ruyao"] .topbar,
html[data-theme="ruyao"] .main-content { background-color: transparent; }
html[data-theme="ruyao"] .sidebar {
  background: linear-gradient(180deg, #eaf1f0, #e3ecea);
  border-right: 1px solid rgba(74, 107, 112, .14);
}
html[data-theme="ruyao"] .net-worth-panel,
html[data-theme="ruyao"] .metric-card,
html[data-theme="ruyao"] .holding-card,
html[data-theme="ruyao"] .holding-distribution,
html[data-theme="ruyao"] .overview-calendar,
html[data-theme="ruyao"] .planning-panel,
html[data-theme="ruyao"] .table-panel,
html[data-theme="ruyao"] .settings-panel,
html[data-theme="ruyao"] .stat-cell,
html[data-theme="ruyao"] .dca-panel,
html[data-theme="ruyao"] .holding-account-card {
  background: #ffffff;
  border-color: rgba(74, 107, 112, .16);
  box-shadow: 0 1px 2px rgba(31, 46, 44, .045);
}
html[data-theme="ruyao"] .net-worth-panel::before,
html[data-theme="ruyao"] .net-worth-panel::after { display: none; }
html[data-theme="ruyao"] .metric-card::before,
html[data-theme="ruyao"] .net-worth-panel > *::before { box-shadow: none; }
html[data-theme="ruyao"] .sidebar-nav button.is-active,
html[data-theme="ruyao"] .sidebar-nav [aria-current="page"] {
  background: rgba(74, 107, 112, .10);
  color: #33555a;
}
html[data-theme="ruyao"] .primary-button,
html[data-theme="ruyao"] .mobile-fab {
  background: linear-gradient(180deg, #54787d, #3f6167);
  border-color: rgba(51, 85, 90, .35);
  color: #f4faf9;
  box-shadow: 0 6px 16px rgba(51, 85, 90, .22);
}
html[data-theme="ruyao"] .secondary-button {
  border-color: rgba(74, 107, 112, .28);
  color: #33555a;
  background: #f7fbfa;
}
html[data-theme="ruyao"] .section-kicker,
html[data-theme="ruyao"] .section-head h2::after { color: #4a6b70; }
html[data-theme="ruyao"] .section-head::before {
  background: linear-gradient(90deg, transparent, rgba(74, 107, 112, .26) 16%, rgba(74, 107, 112, .26) 84%, transparent);
}
html[data-theme="ruyao"] .brand-mark::after { border-color: rgba(74, 107, 112, .45); }
html[data-theme="ruyao"] .holding-group-row { border-bottom-color: rgba(74, 107, 112, .2); }
html[data-theme="ruyao"] .glass-dock,
html[data-theme="ruyao"] .mobile-dock {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(74, 107, 112, .16);
}

/* ── E：朱砂 · 单色（极简高密度）─────────────────────────── */
html[data-theme="zhusha"] {
  --paper: #ffffff;
  --panel: #fafaf8;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e5e3de;
  --teal: #c0392b;
  --teal-deep: #96271c;
  --gold: #c0392b;
  --radius-card: 10px;
}
html[data-theme="zhusha"] body {
  background-color: #ffffff;
  background-image: none;
  color: #111111;
}
html[data-theme="zhusha"] body::before,
html[data-theme="zhusha"] body::after,
html[data-theme="zhusha"] .main-content::before,
html[data-theme="zhusha"] .main-content::after { display: none !important; }
html[data-theme="zhusha"] .main-content { background-image: none !important; }
html[data-theme="zhusha"] .sidebar {
  background: #fbfbf9;
  border-right: 1px solid #e5e3de;
}
html[data-theme="zhusha"] .sidebar-nav button.is-active,
html[data-theme="zhusha"] .sidebar-nav [aria-current="page"] {
  background: rgba(192, 57, 43, .08);
  color: #96271c;
  border-radius: 8px;
}
html[data-theme="zhusha"] .net-worth-panel,
html[data-theme="zhusha"] .metric-card,
html[data-theme="zhusha"] .holding-card,
html[data-theme="zhusha"] .holding-distribution,
html[data-theme="zhusha"] .overview-calendar,
html[data-theme="zhusha"] .planning-panel,
html[data-theme="zhusha"] .table-panel,
html[data-theme="zhusha"] .settings-panel,
html[data-theme="zhusha"] .stat-cell,
html[data-theme="zhusha"] .dca-panel,
html[data-theme="zhusha"] .holding-account-card {
  background: #fafaf8;
  border: 1px solid #e5e3de;
  border-radius: 10px;
  box-shadow: none;
}
html[data-theme="zhusha"] .net-worth-panel::before,
html[data-theme="zhusha"] .net-worth-panel::after,
html[data-theme="zhusha"] .metric-card::before,
html[data-theme="zhusha"] .metric-card::after { display: none; }
html[data-theme="zhusha"] .stat-cell { box-shadow: none; }
html[data-theme="zhusha"] .primary-button,
html[data-theme="zhusha"] .mobile-fab {
  background: #c0392b;
  border-color: #a52f22;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: none;
}
html[data-theme="zhusha"] .secondary-button {
  background: #ffffff;
  border-color: #d8d5cf;
  color: #111111;
  border-radius: 8px;
}
html[data-theme="zhusha"] .section-head::before {
  background: #e5e3de;
  height: 1px;
}
html[data-theme="zhusha"] .section-head h2::after { color: #c0392b; }
html[data-theme="zhusha"] .section-kicker { color: #6b6b6b; letter-spacing: .12em; }
html[data-theme="zhusha"] .holding-pie-label text { fill: #111111; }
html[data-theme="zhusha"] .brand-mark::after { display: none; }
html[data-theme="zhusha"] * { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif !important; }
html[data-theme="zhusha"] .section-head h2,
html[data-theme="zhusha"] .net-worth-value { letter-spacing: -.01em; }

/* 残留在暖色组件上的收口 */
html[data-theme="ruyao"] .section-head h2::before { background: #4a6b70; }
html[data-theme="ruyao"] .overview-plan-strip button { background: rgba(74, 107, 112, .07); border-color: rgba(74, 107, 112, .18); }
html[data-theme="ruyao"] .comparison-value,
html[data-theme="ruyao"] .change-rate { color: #33555a; }
html[data-theme="ruyao"] .overview-calendar .calendar-day.is-today { background: rgba(74, 107, 112, .12); }
html[data-theme="ruyao"] .secondary-button:hover { background: #eef6f5; }

html[data-theme="zhusha"] .section-head h2::before { background: #c0392b; }
html[data-theme="zhusha"] .overview-plan-strip button { background: #ffffff; border-color: #e5e3de; border-radius: 8px; }
html[data-theme="zhusha"] .comparison-value,
html[data-theme="zhusha"] .change-rate { color: #111111; }
html[data-theme="zhusha"] .calendar-day.is-today { background: rgba(192, 57, 43, .10); }
html[data-theme="zhusha"] .glass-dock,
html[data-theme="zhusha"] .mobile-dock { background: rgba(255, 255, 255, .92); border-color: #e5e3de; border-radius: 12px; }
html[data-theme="zhusha"] .stat-cell strong { font-size: 18px; }
