/* 大锤理财（projects/wealth）V1 官网珠光旗舰美学 — 珠光白 + 皇家钴蓝/暖珀鎏金 ⇄ 曜石星夜 #0b0f19 1:1 */

.wealth-body {
  --w-bg: #f5f7fb;
  --w-surface: #ffffff;
  --w-surface-soft: #f3f6fc;
  --w-surface-glass: rgba(255, 255, 255, 0.88);
  --w-ink: #0f172a;
  --w-sec: #475569;
  --w-muted: #64748b;
  --w-rule: rgba(15, 23, 42, 0.085);
  --w-rule-strong: rgba(15, 23, 42, 0.15);
  --w-obsidian: #111827;
  --w-obsidian-fg: #ffffff;
  --w-cobalt: #2350dc;
  --w-cobalt-soft: rgba(35, 80, 220, 0.09);
  --w-amber: #d97706;
  --w-amber-soft: rgba(217, 119, 6, 0.11);
  --w-emerald: #059669;
  --w-emerald-soft: rgba(5, 150, 105, 0.10);
  --w-danger: #dc2626;
  --w-danger-soft: rgba(220, 38, 38, 0.10);
  --w-violet: #4f46e5;
  --w-violet-soft: rgba(79, 70, 229, 0.10);
  --w-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.03), 0 10px 24px -14px rgba(15, 23, 42, 0.08);
  --w-shadow-md: 0 8px 24px -10px rgba(15, 23, 42, 0.10), 0 24px 48px -24px rgba(15, 23, 42, 0.12);
  --w-gutter: clamp(0.85rem, 2.8vw, 2rem);
  --w-width: min(82rem, calc(100% - var(--w-gutter) * 2));

  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--w-bg);
  color: var(--w-ink);
  overflow-x: clip;
}

html[data-theme="dark"] .wealth-body {
  --w-bg: #0b0f19;
  --w-surface: #121929;
  --w-surface-soft: #182236;
  --w-surface-glass: rgba(15, 22, 38, 0.88);
  --w-ink: #f8fafc;
  --w-sec: #cbd5e1;
  --w-muted: #94a3b8;
  --w-rule: rgba(148, 163, 184, 0.14);
  --w-rule-strong: rgba(148, 163, 184, 0.24);
  --w-obsidian: #f8fafc;
  --w-obsidian-fg: #0f172a;
  --w-cobalt: #648eff;
  --w-cobalt-soft: rgba(82, 128, 255, 0.17);
  --w-amber: #fbbf24;
  --w-amber-soft: rgba(251, 191, 36, 0.15);
  --w-emerald: #34d399;
  --w-emerald-soft: rgba(52, 211, 153, 0.15);
  --w-danger: #f87171;
  --w-danger-soft: rgba(248, 113, 113, 0.16);
  --w-violet: #818cf8;
  --w-violet-soft: rgba(129, 140, 248, 0.16);
  --w-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(148, 163, 184, 0.08);
  --w-shadow-md: 0 18px 42px -12px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] body.www-page.wealth-body::before {
  background:
    radial-gradient(ellipse 68% 72% at 80% 0%, rgba(82, 128, 255, 0.14), transparent 68%),
    radial-gradient(ellipse 48% 58% at 15% 10%, rgba(251, 191, 36, 0.09), transparent 62%),
    linear-gradient(to right, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #0e1525 0%, #0b0f19 100%);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
}

.wealth-shell {
  width: var(--w-width);
  margin-inline: auto;
}

.wealth-main {
  flex: 1 0 auto;
  padding-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.w-num {
  font-variant-numeric: tabular-nums;
}

.wealth-body input::placeholder {
  font-family: "XinHammer Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: normal;
  color: var(--w-muted);
}

/* ==================== 1. 60px 磨砂顶栏 ==================== */
body.wealth-body > header.site-header.wealth-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 3.75rem;
  padding-inline: max(var(--w-gutter), calc((100% - 82rem) / 2));
  background: var(--w-surface-glass);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--w-rule);
}

html[data-theme="dark"] body.wealth-body > header.wealth-header .brand-name {
  background: linear-gradient(102deg, #f8fafc 16%, #93b4ff 62%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] body.wealth-body > header.wealth-header .wordmark {
  background: linear-gradient(100deg, #cbd5e1 16%, #7da2ff 65%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] body.wealth-body > header.wealth-header nav > a {
  color: var(--w-sec);
}
html[data-theme="dark"] body.wealth-body > header.wealth-header nav > a:hover {
  color: var(--w-ink);
}

.w-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0;
  width: 34px;
  height: 34px;
  line-height: 1;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--w-rule-strong);
  background: var(--w-surface);
  color: var(--w-ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.w-theme-btn:hover {
  border-color: var(--w-cobalt);
  transform: translateY(-1px);
}
html[data-theme="light"] .w-ico-moon { display: none; }
html[data-theme="dark"] .w-ico-sun { display: none; }

/* ==================== 2. 首屏珠光展示带（支持一键折叠） ==================== */
.wealth-hero-band {
  padding-block: clamp(1rem, 2.2vw, 1.8rem) clamp(0.8rem, 1.8vw, 1.3rem);
}

.wealth-hero-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--w-surface);
  border: 1px solid var(--w-rule);
  box-shadow: var(--w-shadow-sm);
}
.w-compact-left, .w-compact-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.w-compact-left strong {
  font-size: 0.92rem;
  white-space: nowrap;
}
.w-compact-pill {
  font-size: 0.76rem;
  color: var(--w-sec);
  padding: 0.14rem 0.56rem;
  border-radius: 999px;
  background: var(--w-cobalt-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wealth-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: center;
}

.w-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.w-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  background: var(--w-cobalt-soft);
  color: var(--w-cobalt);
  font-size: 0.78rem;
  font-weight: 620;
}
.w-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.wealth-hero-copy h1 {
  font-size: clamp(1.75rem, 3.1vw, 2.58rem);
  line-height: 1.14;
  margin: 0 0 0.75rem;
  color: var(--w-ink);
}
.w-gradient-text {
  background: linear-gradient(100deg, var(--w-cobalt) 0%, var(--w-violet) 55%, var(--w-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wealth-hero-lead {
  font-size: 0.95rem;
  line-height: 1.66;
  color: var(--w-sec);
  margin: 0 0 1.05rem;
  max-width: 42rem;
}
.wealth-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.wealth-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}
.wealth-hero-metrics > div {
  padding: 0.68rem 0.8rem;
  border-radius: 0.9rem;
  background: var(--w-surface);
  border: 1px solid var(--w-rule);
  box-shadow: var(--w-shadow-sm);
}
.wealth-hero-metrics dt {
  font-size: 0.73rem;
  color: var(--w-muted);
  margin-bottom: 0.16rem;
}
.wealth-hero-metrics dd {
  margin: 0;
}
.wealth-hero-metrics dd strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 660;
  color: var(--w-ink);
}
.wealth-hero-metrics dd span {
  display: block;
  font-size: 0.75rem;
  color: var(--w-sec);
  margin-top: 0.1rem;
}

.wealth-cover-card {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--w-surface);
  border: 1px solid var(--w-rule);
  box-shadow: var(--w-shadow-md);
}
.wealth-cover-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.wealth-cover-caption {
  padding: 0.56rem 0.9rem;
  font-size: 0.76rem;
  color: var(--w-sec);
  background: var(--w-surface-soft);
  border-top: 1px solid var(--w-rule);
  text-align: center;
}

/* ==================== 3. 通用按钮与控件 ==================== */
.w-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  height: 2.38rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.w-btn:active { transform: scale(0.98); }
.w-btn-primary {
  background: var(--w-obsidian);
  color: var(--w-obsidian-fg);
}
.w-btn-primary:hover { opacity: 0.91; }
.w-btn-cobalt {
  background: var(--w-cobalt);
  color: #ffffff;
}
html[data-theme="dark"] .w-btn-cobalt {
  color: #0b0f19;
}
.w-btn-subtle {
  background: var(--w-surface);
  color: var(--w-ink);
  border-color: var(--w-rule-strong);
}
.w-btn-subtle:hover { border-color: var(--w-cobalt); color: var(--w-cobalt); }
.w-btn-ghost {
  background: transparent;
  color: var(--w-sec);
  border-color: transparent;
}
.w-btn-ghost:hover { background: var(--w-surface-soft); color: var(--w-ink); }
.w-btn-sm { height: 2.05rem; padding: 0 0.85rem; font-size: 0.82rem; }
.w-btn-xs { height: 1.82rem; padding: 0 0.68rem; font-size: 0.77rem; }

/* ==================== 4. 四大模块切换坞 ==================== */
.wealth-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 1.1rem;
  background: var(--w-surface);
  border: 1px solid var(--w-rule);
  box-shadow: var(--w-shadow-sm);
}

.wealth-tabs {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0.35rem;
}
.w-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  height: 2.38rem;
  padding: 0 0.98rem;
  border-radius: 0.82rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--w-sec);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.w-tab:hover {
  color: var(--w-ink);
  background: var(--w-surface-soft);
}
.w-tab.is-active {
  background: var(--w-obsidian);
  color: var(--w-obsidian-fg);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.25);
}

.wealth-dock-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* ==================== 5. 示范快填条与双栏工作台 ==================== */
.w-preset-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}
.w-preset-label {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--w-muted);
}
.w-chip {
  height: 1.88rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--w-rule-strong);
  background: var(--w-surface);
  color: var(--w-sec);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 560;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}
.w-chip:hover {
  border-color: var(--w-cobalt);
  color: var(--w-cobalt);
  background: var(--w-cobalt-soft);
}

.w-submode-bar {
  margin-bottom: 0.9rem;
}

.w-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.1rem;
  align-items: start;
}

.w-panel {
  border-radius: 1.2rem;
  background: var(--w-surface);
  border: 1px solid var(--w-rule);
  box-shadow: var(--w-shadow-sm);
  padding: clamp(1rem, 2vw, 1.4rem);
}

.w-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--w-rule);
}
.w-panel-head h2 {
  font-size: 1.06rem;
  font-weight: 680;
  margin: 0 0 0.2rem;
  color: var(--w-ink);
}
.w-panel-head p {
  font-size: 0.8rem;
  color: var(--w-muted);
  margin: 0;
  line-height: 1.45;
}

/* ==================== 6. 表单与零原生 <select> 胶囊选择组 ==================== */
.w-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-bottom: 0.92rem;
}
.w-field-group:last-child { margin-bottom: 0; }

.w-label, .w-label-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 580;
  color: var(--w-sec);
}
.w-label strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--w-cobalt);
}

.w-input-row {
  display: grid;
  grid-template-columns: minmax(7.2rem, 9.2rem) minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.w-num-input {
  width: 100%;
  height: 2.38rem;
  padding: 0 0.72rem;
  border-radius: 0.72rem;
  border: 1px solid var(--w-rule-strong);
  background: var(--w-surface-soft);
  color: var(--w-ink);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.w-num-input:focus {
  border-color: var(--w-cobalt);
  background: var(--w-surface);
}

.w-range {
  width: 100%;
  accent-color: var(--w-cobalt);
  cursor: pointer;
}

.w-two-col-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.w-seg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 0.8rem;
  background: var(--w-surface-soft);
  border: 1px solid var(--w-rule);
}
.w-seg-wide {
  display: inline-flex;
  max-width: 100%;
}
.w-seg-pill {
  flex: 1 1 auto;
  min-height: 2rem;
  padding: 0.28rem 0.68rem;
  border-radius: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--w-sec);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 580;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.w-seg-pill:hover { color: var(--w-ink); }
.w-seg-pill.is-active {
  background: var(--w-surface);
  color: var(--w-cobalt);
  font-weight: 680;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.10);
}
html[data-theme="dark"] .w-seg-pill.is-active {
  background: #22304a;
  color: #f8fafc;
}

.w-fold-box {
  margin-top: 0.5rem;
  border-radius: 0.85rem;
  border: 1px dashed var(--w-rule-strong);
  background: var(--w-surface-soft);
  padding: 0.58rem 0.8rem;
}
.w-fold-accent {
  margin-top: 0;
  margin-bottom: 0.9rem;
  border-style: solid;
  background: var(--w-cobalt-soft);
  border-color: rgba(35, 80, 220, 0.2);
}
.w-fold-box summary {
  cursor: pointer;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--w-sec);
  user-select: none;
}
.w-fold-body {
  margin-top: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==================== 7. 结果展示面板、可视化图表与星型联动条 ==================== */
.w-result-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.w-kpi-banner {
  padding: 0.95rem 1.05rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--w-cobalt-soft) 0%, var(--w-surface-soft) 100%);
  border: 1px solid rgba(35, 80, 220, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.w-kpi-banner[data-tone="red"] {
  background: linear-gradient(135deg, var(--w-danger-soft) 0%, var(--w-surface-soft) 100%);
  border-color: rgba(220, 38, 38, 0.25);
}
.w-kpi-banner[data-tone="amber"] {
  background: linear-gradient(135deg, var(--w-amber-soft) 0%, var(--w-surface-soft) 100%);
  border-color: rgba(217, 119, 6, 0.25);
}
.w-kpi-banner[data-tone="green"] {
  background: linear-gradient(135deg, var(--w-emerald-soft) 0%, var(--w-surface-soft) 100%);
  border-color: rgba(5, 150, 105, 0.25);
}

.w-kpi-main small {
  display: block;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--w-sec);
  margin-bottom: 0.18rem;
}
.w-kpi-main strong {
  display: block;
  font-size: clamp(1.38rem, 2.4vw, 1.82rem);
  font-weight: 740;
  line-height: 1.15;
  color: var(--w-ink);
  font-variant-numeric: tabular-nums;
}
.w-kpi-main span {
  display: block;
  font-size: 0.8rem;
  color: var(--w-sec);
  margin-top: 0.25rem;
}

.w-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}
.w-status-pill[data-tone="green"] { background: var(--w-emerald-soft); color: var(--w-emerald); }
.w-status-pill[data-tone="amber"] { background: var(--w-amber-soft); color: var(--w-amber); }
.w-status-pill[data-tone="red"] { background: var(--w-danger-soft); color: var(--w-danger); }
.w-status-pill[data-tone="cobalt"] { background: var(--w-cobalt-soft); color: var(--w-cobalt); }

/* 四笔钱横向比例尺与卡片矩阵 */
.w-stack-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.w-stack-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--w-surface-soft);
  gap: 2px;
}
.w-stack-seg {
  height: 100%;
  min-width: 4px;
  transition: width 0.24s ease;
}
.w-stack-seg[data-b="emergency"] { background: var(--w-emerald); }
.w-stack-seg[data-b="stable"] { background: var(--w-cobalt); }
.w-stack-seg[data-b="growth"] { background: var(--w-violet); }
.w-stack-seg[data-b="protection"] { background: var(--w-amber); }

.w-bucket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.w-bucket-card {
  padding: 0.82rem 0.9rem;
  border-radius: 0.95rem;
  background: var(--w-surface-soft);
  border: 1px solid var(--w-rule);
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}
.w-bucket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.w-bucket-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
}
.w-bucket-dot[data-b="emergency"] { background: var(--w-emerald); }
.w-bucket-dot[data-b="stable"] { background: var(--w-cobalt); }
.w-bucket-dot[data-b="growth"] { background: var(--w-violet); }
.w-bucket-dot[data-b="protection"] { background: var(--w-amber); }

.w-bucket-name {
  font-size: 0.86rem;
  font-weight: 680;
  color: var(--w-ink);
}
.w-bucket-share {
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--w-muted);
  font-variant-numeric: tabular-nums;
}
.w-bucket-amt {
  font-size: 1.16rem;
  font-weight: 740;
  color: var(--w-ink);
  font-variant-numeric: tabular-nums;
}
.w-bucket-types {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--w-cobalt);
}
.w-bucket-note {
  font-size: 0.76rem;
  line-height: 1.46;
  color: var(--w-sec);
  margin: 0;
}

/* 回撤压力测试与对比小卡 */
.w-subcard {
  padding: 0.88rem 0.95rem;
  border-radius: 0.95rem;
  background: var(--w-surface-soft);
  border: 1px solid var(--w-rule);
}
.w-subcard-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 680;
  color: var(--w-ink);
  margin: 0 0 0.55rem;
}
.w-stress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.w-stress-cell {
  padding: 0.5rem 0.55rem;
  border-radius: 0.7rem;
  background: var(--w-surface);
  border: 1px solid var(--w-rule);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.w-stress-cell.is-selected {
  border-color: var(--w-cobalt);
  background: var(--w-cobalt-soft);
}
.w-stress-cell small {
  display: block;
  font-size: 0.72rem;
  color: var(--w-muted);
}
.w-stress-cell strong {
  display: block;
  font-size: 0.86rem;
  color: var(--w-danger);
  margin-top: 0.14rem;
}

/* 保障底线防坑核对清单 */
.w-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.w-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
  padding: 0.55rem 0.68rem;
  border-radius: 0.75rem;
  background: var(--w-surface);
  border: 1px solid var(--w-rule);
  cursor: pointer;
}
.w-check-item input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--w-cobalt);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.w-check-copy strong {
  display: block;
  font-size: 0.82rem;
  color: var(--w-ink);
}
.w-check-copy span {
  display: block;
  font-size: 0.74rem;
  color: var(--w-cobalt);
  margin-top: 0.1rem;
}
.w-check-copy small {
  display: block;
  font-size: 0.73rem;
  color: var(--w-muted);
  margin-top: 0.12rem;
  line-height: 1.4;
}

/* 房贷方案对比卡 */
.w-compare-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.w-plan-card {
  padding: 0.88rem 0.95rem;
  border-radius: 0.95rem;
  background: var(--w-surface-soft);
  border: 1px solid var(--w-rule);
  position: relative;
}
.w-plan-card.is-best {
  border-color: var(--w-cobalt);
  background: linear-gradient(180deg, var(--w-cobalt-soft) 0%, var(--w-surface-soft) 100%);
}
.w-plan-tag {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 680;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--w-cobalt);
  color: #ffffff;
  margin-bottom: 0.35rem;
}
html[data-theme="dark"] .w-plan-tag { color: #0b0f19; }
.w-plan-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: var(--w-ink);
}
.w-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}
.w-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--w-sec);
  font-variant-numeric: tabular-nums;
}
.w-kv-row b {
  color: var(--w-ink);
  font-weight: 660;
}
.w-kv-row b.is-save {
  color: var(--w-emerald);
}

/* SVG 响应式曲线图容器 */
.w-chart-box {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  background: var(--w-surface-soft);
  border: 1px solid var(--w-rule);
}
.w-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.w-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--w-sec);
}
.w-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}
.w-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* XIRR 现金流编辑行 */
.w-cashflow-list {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  max-height: 23rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}
.w-cf-row {
  display: grid;
  grid-template-columns: minmax(7.8rem, 1fr) minmax(6.8rem, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}
.w-cf-del {
  width: 2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  border: 1px solid var(--w-rule);
  background: var(--w-surface-soft);
  color: var(--w-muted);
  cursor: pointer;
  font-size: 0.88rem;
}
.w-cf-del:hover {
  border-color: var(--w-danger);
  color: var(--w-danger);
}

/* 攒钱里程碑卡片表 */
.w-milestone-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.w-ms-card {
  padding: 0.72rem 0.82rem;
  border-radius: 0.88rem;
  background: var(--w-surface-soft);
  border: 1px solid var(--w-rule);
  font-variant-numeric: tabular-nums;
}
.w-ms-card.is-done {
  border-color: rgba(5, 150, 105, 0.32);
  background: var(--w-emerald-soft);
}
.w-ms-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--w-sec);
}
.w-ms-date {
  font-size: 1.02rem;
  font-weight: 720;
  color: var(--w-ink);
  margin: 0.2rem 0 0.12rem;
}
.w-ms-sub {
  font-size: 0.73rem;
  color: var(--w-cobalt);
}

/* 跨产品星型联动接力条 */
.w-relay-bar {
  margin-top: auto;
  padding: 0.78rem 0.9rem;
  border-radius: 0.95rem;
  background: var(--w-surface-soft);
  border: 1px solid var(--w-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.w-relay-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--w-sec);
}
.w-relay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* 非阻塞 Toast（仅内部撤回钮可点） */
.w-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(34rem, calc(100vw - 1.5rem));
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.38);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}
html[data-theme="dark"] .w-toast {
  background: rgba(30, 41, 59, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.24);
}
.w-toast a, .w-toast button {
  pointer-events: auto;
  height: 1.65rem;
  padding: 0 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 620;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ==================== 8. 常驻合规页脚 ==================== */
.wealth-footer {
  margin-top: auto;
  padding-block: 1.15rem 1.4rem;
  border-top: 1px solid var(--w-rule);
  background: transparent;
}
.wealth-disclaimer {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.78rem;
  background: var(--w-surface);
  border: 1px solid var(--w-rule);
  font-size: 0.75rem;
  line-height: 1.58;
  color: var(--w-muted);
}
.wealth-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--w-muted);
}
.wealth-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}
.wealth-footer-links a {
  color: var(--w-sec);
  text-decoration: none;
}
.wealth-footer-links a:hover {
  color: var(--w-cobalt);
}

/* ==================== 9. 移动端与小屏（390px / 320px）精修零溢出 ==================== */
@media (max-width: 64rem) {
  .wealth-hero-grid,
  .w-split-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wealth-dock {
    flex-direction: column;
    align-items: stretch;
  }
  .wealth-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wealth-dock-tools {
    justify-content: flex-end;
  }
}

@media (max-width: 42rem) {
  body.www-page.wealth-body > header.site-header.studio-nav.wealth-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 3.4rem;
    padding-block: 0.35rem;
  }
  body.www-page.wealth-body > header.site-header.studio-nav.wealth-header .identity {
    flex-shrink: 0;
    margin-right: auto;
  }
  body.www-page.wealth-body > header.site-header.studio-nav.wealth-header .wordmark {
    display: none;
  }
  body.www-page.wealth-body > header.site-header.studio-nav.wealth-header > nav {
    grid-column: auto;
    margin-inline-start: 0;
    width: auto;
    border-top: 0;
    padding-top: 0;
    gap: 0.45rem;
    flex: 0 0 auto;
  }
  body.www-page.wealth-body > header.site-header.studio-nav.wealth-header nav > a {
    display: none;
  }
  body.www-page.wealth-body > header.site-header.studio-nav.wealth-header [data-site-account-pill] {
    grid-column: auto;
    margin-inline-start: 0.15rem;
    flex-shrink: 0;
  }
  .wealth-hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .w-bucket-grid,
  .w-compare-cols,
  .w-milestone-list,
  .w-two-col-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .w-stress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .w-input-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }
  .w-seg-wide {
    display: flex;
    flex-direction: column;
  }
  .w-compact-pill {
    display: none;
  }
  .w-cf-row {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) auto;
  }
}
