/* ============================================================
   components.css v2 — Premium Financial Component Library
   ============================================================ */

/* ════════════════════════════════════════
   1. TYPOGRAPHY COMPONENTS
   ════════════════════════════════════════ */

/* Chapter number label: 01 ─────────── */
.chapter-label {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.ch-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  color: var(--gold);
  flex-shrink: 0;
}
.ch-rule {
  flex: 1; max-width: 72px; height: 1px;
  background: var(--border-strong);
}

/* Section title */
.slide-title-text {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: var(--fw-normal);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
/* Allow italic variant for hero moments */
.slide-title-text.italic { font-style: italic; }
.slide-title-text .hi { color: var(--gold-dk); font-style: italic; }

/* Subtitle / slide-sub */
.slide-sub {
  margin-top: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: var(--fw-normal);
}

/* ════════════════════════════════════════
   2. PULL QUOTE
   深海蓝背景 · 衬线体斜体 · 哑金文字
   ════════════════════════════════════════ */
.pull-quote {
  position: relative;
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8) var(--sp-6) var(--sp-10);
  overflow: hidden;
  transition: padding-left 0.35s var(--ease-out);
}
.pull-quote:hover { padding-left: calc(var(--sp-10) + 10px); }

/* Oversized decorative quotation mark */
.pull-quote::before {
  content: '\201C'; /* " */
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 88px;
  color: rgba(201, 169, 110, 0.12);
  position: absolute;
  top: -10px; left: 16px;
  line-height: 1;
  pointer-events: none;
}

.pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--gold-lt);
  line-height: 1.75;
  position: relative; z-index: 1;
}
.pull-quote p strong {
  color: var(--gold);
  font-style: italic;
}
.pull-quote-attr {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  position: relative; z-index: 1;
}

/* ════════════════════════════════════════
   3. INSIGHT CARDS
   白底 · 2px 色条顶部 · 三层信息密度
   ════════════════════════════════════════ */
.insight-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: stretch;
}
.insight-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.insight-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.insight-grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.insight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-5);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* 2px color bar at top */
.insight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ins-gold); /* overridden per variant */
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.insight-card.blue::before  { background: var(--ins-blue); }
.insight-card.green::before { background: var(--ins-green); }
.insight-card.red::before   { background: var(--ins-red); }
/* gold is default */

.ins-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ins-icon { font-size: 1.3rem; }
.ins-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--text-primary);
  line-height: 1.4;
}
.ins-body {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.ins-footer { margin-top: auto; padding-top: var(--sp-3); }

/* ════════════════════════════════════════
   4. METRIC / STAT DISPLAYS
   ════════════════════════════════════════ */

/* Inline metric row (for tables) */
.metric-row {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.metric-row:last-child { border-bottom: none; }

.metric-dot {
  width: 5px; height: 5px; flex-shrink: 0;
  border-radius: var(--r-full);
  background: var(--gold);
}
.metric-label {
  flex: 1;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric-value.c-gold  { color: var(--gold-dk); }
.metric-value.c-green { color: var(--ins-green); }
.metric-value.c-blue  { color: var(--ins-blue); }

/* Large stat number */
.stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-number .unit {
  font-size: var(--text-sm);
  font-weight: var(--fw-normal);
  margin-left: 2px;
  color: var(--text-muted);
}
.stat-number.c-gold  { color: var(--gold-dk); }
.stat-number.c-blue  { color: var(--ins-blue); }

/* ════════════════════════════════════════
   5. ROI TRIPTYCH · DARK PANEL
   ════════════════════════════════════════ */
.roi-triptych {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  background: var(--navy);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-dk-subtle);
}
.roi-panel {
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
}
.roi-sep {
  background: var(--border-dk-default);
  height: 52px; align-self: center;
}
.roi-tier {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.10em; text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.roi-tier.t-short { color: var(--ins-green); }
.roi-tier.t-mid   { color: var(--ins-blue); }
.roi-tier.t-long  { color: var(--gold); }
.roi-num {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  line-height: 1.1; margin-bottom: var(--sp-1);
}
.roi-num.t-short { color: #5dbb9a; }
.roi-num.t-mid   { color: #7aaae8; }
.roi-num.t-long  { color: var(--gold-lt); }
.roi-num .roi-unit {
  font-size: var(--text-base);
  font-weight: var(--fw-normal);
  margin-left: 1px;
}
.roi-desc {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

/* ════════════════════════════════════════
   6. ARCHITECTURE LAYERS
   ════════════════════════════════════════ */
.arch-stack { display: flex; flex-direction: column; gap: 3px; }
.arch-connector {
  display: flex; align-items: center; justify-content: center;
  height: 12px; color: var(--text-muted); font-size: var(--text-xs);
}
.arch-layer {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border-left: 3px solid var(--border-default);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}
.arch-layer.l1 { border-left: 3px solid var(--gold); }
.arch-layer.l2 { border-left: 3px solid var(--ins-blue); }
.arch-layer.l3 { border-left: 3px solid var(--ins-green); }
.arch-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: var(--fw-medium);
  flex: 0 0 68px; white-space: nowrap;
}
.arch-layer.l1 .arch-label { color: var(--gold-dk); }
.arch-layer.l2 .arch-label { color: var(--ins-blue); }
.arch-layer.l3 .arch-label { color: var(--ins-green); }
.arch-desc {
  font-family: var(--font-sans);
  font-size: var(--text-xs); color: var(--text-secondary);
  flex: 1; line-height: 1.5;
}

/* ════════════════════════════════════════
   7. TAGS / BADGES
   ════════════════════════════════════════ */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: var(--fw-normal);
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.tag-gold  { background: var(--gold-dim);  color: var(--gold-dk);  border-color: var(--gold-border); }
.tag-blue  { background: rgba(68,114,184,.10); color: var(--ins-blue); border-color: rgba(68,114,184,.28); }
.tag-green { background: rgba(58,154,114,.10); color: var(--ins-green); border-color: rgba(58,154,114,.28); }
.tag-navy  { background: var(--navy); color: var(--text-on-dark); border-color: var(--border-dk-default); }

/* ════════════════════════════════════════
   8. CARDS
   ════════════════════════════════════════ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.card-navy {
  background: var(--navy);
  border-color: var(--border-dk-subtle);
  box-shadow: none;
}

/* ════════════════════════════════════════
   9. GOLD HORIZONTAL RULE (cover separator)
   ════════════════════════════════════════ */
.gold-rule {
  width: 120px; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: var(--sp-5) auto;
}
.gold-rule.left { margin-left: 0; margin-right: 0; }

/* ════════════════════════════════════════
   10. STUB PLACEHOLDERS
   ════════════════════════════════════════ */
.stub-badge {
  display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: var(--r-full);
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: var(--gold-dk);
  font-family: var(--font-mono); font-size: var(--text-xs);
  font-weight: var(--fw-medium); letter-spacing: 0.10em;
  text-transform: uppercase; margin-bottom: var(--sp-4);
}
.stub-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--fw-normal);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}
.stub-hint {
  font-family: var(--font-sans);
  font-size: var(--text-sm); color: var(--text-muted);
  line-height: 1.7;
}

/* ════════════════════════════════════════
   GLOBAL HOVER STATES (v3)
   ════════════════════════════════════════ */

/* Cards lift on hover */
.card:not(.card-navy) {
  transition: transform .22s var(--ease-out), box-shadow .22s;
}
.card:not(.card-navy):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Insight cards already have hover in their own style */

/* Pull quote door-open hover */
.pull-quote {
  transition: padding-left .32s var(--ease-out);
}
.pull-quote:hover {
  padding-left: calc(var(--sp-10) + 10px);
}

/* Metric rows highlight on hover */
.metric-row {
  transition: background .15s;
  border-radius: var(--r-sm);
}
.metric-row:hover {
  background: var(--cream);
}

/* Tags scale on hover */
.tag {
  transition: transform .15s var(--ease-out), opacity .15s;
  display: inline-flex;
}
.tag:hover { transform: scale(1.05); }

/* Architecture layers lift */
.arch-layer {
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.arch-layer:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* ROI triptych panel glow on hover */
.roi-panel {
  transition: background .2s;
  border-radius: var(--r-sm);
}
.roi-panel:hover { background: rgba(255,255,255,.04); }

/* Nav buttons already styled; ensure smooth */
.nav-btn { transition: all .18s; }

/* Progress dots: already have width transition */
