/* BIE 品牌智能引擎演示系统 — 完整样式 */

/* ── 1. CSS 变量 ── */
:root {
  /* 冷光科技风 · Cold-Light AI Platform */
  --bg-base:        #0a0812;
  --bg-card:        #13101e;
  --bg-card-hover:  #1c1930;
  --bg-overlay:     rgba(10, 8, 18, 0.92);

  --border-default: rgba(255, 255, 255, 0.10);
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-strong:  rgba(0, 212, 255, 0.45);

  --text-primary:   #f4f7ff;
  --text-secondary: #c0c8e0;
  --text-muted:     #8892b8;
  --text-code:      #00d4ff;

  --color-success:    #00e5a0;
  --color-warning:    #f5c542;
  --color-error:      #ff5c6c;
  --color-processing: #00d4ff;
  --color-idle:       #4a5280;

  --knowledge-brand:    #7dd3fc;
  --knowledge-rule:     #ff7b72;
  --knowledge-platform: #00e5a0;
  --knowledge-memory:   #c4b5fd;
  --knowledge-trend:    #fbbf24;

  --layer-ui:    #00d4ff;
  --layer-meta:  #c4b5fd;
  --layer-biz:   #f7853e;
  --layer-infra: #00e5a0;

  --phase-0: #d946ef;
  --phase-1: #388bfd;
  --phase-2: #39d3c3;
  --phase-3: #c4b5fd;
  --phase-4: #f7853e;
  --phase-5: #00e5a0;
  --phase-6: #ff6b9d;
  --phase-7: #f5c542;
  --phase-8: #58c4dc;
  --phase-9: #a5b4fc;

  --accent-primary:   #00d4ff;
  --accent-secondary: #7b5ea7;
  --gradient-accent:  linear-gradient(135deg, #00d4ff 0%, #7b5ea7 100%);
  --gradient-text:    linear-gradient(135deg, #eef2ff 0%, #00d4ff 50%, #c4b5fd 100%);

  --t-fast:   150ms;
  --t-base:   250ms;
  --t-slow:   400ms;
  --t-spring: 500ms cubic-bezier(0.34,1.56,0.64,1);

  --z-activity:  100;
  --z-navbar:    200;
  --z-waterfall: 300;
  --z-spotlight: 850;
  --z-cmdpal:    900;
  --z-toast:     950;
  --z-demo-ctrl: 960;
  --z-demo-picker:970;
  --z-fullscreen:999;
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

code, .monospace, .path-tag, .score-num, .token-chip, .log-line, pre {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Code', monospace;
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }

/* ── 2b. Premium Animations ── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-rotate {
  0%   { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@keyframes dashboard-breathe {
  0%, 100% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.08), 0 0 60px rgba(0, 212, 255, 0.04);
    border-color: rgba(0, 212, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.15), 0 0 80px rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.35);
  }
}

/* ── 3. 背景层 ── */
#bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  animation: particleDrift linear infinite;
}
@keyframes particleDrift {
  0%   { opacity: 0;    transform: translateY(0)      scale(0.5); }
  12%  { opacity: 0.75; }
  80%  { opacity: 0.2;  }
  100% { opacity: 0;    transform: translateY(-160px)  scale(1.1); }
}

#bg-grid {
  position: fixed;
  inset: -20px;
  background-image: radial-gradient(rgba(0, 212, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

#bg-nebula {
  position: fixed;
  inset: -40px;
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 65%, rgba(123, 94, 167, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 212, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  animation: nebula-breathe 8s ease-in-out infinite;
}

@keyframes nebula-breathe {
  0%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
  50%      { opacity: 0.7; transform: translate(-5px, -3px) scale(1.02); }
}

#bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: background 2s ease;
  background: radial-gradient(ellipse at 50% 20%, rgba(0, 212, 255, 0.07) 0%, transparent 60%);
}

/* ── 4. 顶部导航 ── */
#global-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 56px;
  background: rgba(10, 8, 18, 0.85);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 212, 255, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-logo {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.brand-subtitle { font-size: 13px; color: var(--text-secondary); }

.brand-version {
  font-size: 12px;
  color: var(--color-success);
  background: rgba(0,229,160,0.10);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'SF Mono', monospace;
}

.nav-phases {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-phases::-webkit-scrollbar { display: none; }

.nav-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--t-base), background var(--t-base), border-color var(--t-base);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-btn:hover { color: var(--text-primary); background: rgba(0,212,255,0.06); }

.nav-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--phase-color, var(--color-processing));
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.green { background: var(--color-success); box-shadow: 0 0 6px var(--color-success); }

.nav-divider { color: var(--border-strong); }

.nav-actions { display: flex; gap: 6px; flex-shrink: 0; }

.nav-icon-btn {
  width: auto; min-width: 30px; height: 30px;
  padding: 0 6px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: color var(--t-base), background var(--t-base);
}
.nav-icon-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.nav-icon-btn.is-speaking {
  animation: speaking-pulse 1.2s ease-in-out infinite;
  color: rgba(0, 212, 255, 1) !important;
}
@keyframes speaking-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 rgba(0, 212, 255, 0); }
  50%       { opacity: 0.8; box-shadow: 0 0 8px rgba(0, 212, 255, 0.5); border-color: rgba(0,212,255,0.7); }
}

/* ── 5. 主内容区 ── */
.screen {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 56px);
  padding: 24px 24px 40px;
  overflow: hidden;
}

/* ── 6. Screen 0: 入场叙事页（投资人与品牌方版） ── */
#screen-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  position: relative;
  z-index: 1;
  overflow-y: auto;
}

#screen-landing > section + section {
  position: relative;
}
#screen-landing > section + section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
}

/* === Hero Section === */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px 80px;
  width: 100%;
}

.hero-left { display: flex; flex-direction: column; gap: 20px; }
.hero-right { position: relative; }

.hero-section h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #eef2ff 0%, #00d4ff 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 600;
  width: fit-content;
}

.hero-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-angle), transparent 25%, rgba(0, 212, 255, 0.5) 50%, rgba(123, 94, 167, 0.5) 75%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.kpi-card:hover::before {
  opacity: 1;
}
.kpi-card:hover {
  background: rgba(0, 212, 255, 0.05);
}

.kpi-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.kpi-value { font-size: 40px; font-weight: 800; color: var(--color-success); margin-bottom: 4px; text-shadow: 0 0 20px rgba(0, 229, 160, 0.4), 0 0 40px rgba(0, 229, 160, 0.15); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: center; height: 52px; overflow: hidden; }
.kpi-detail { font-size: 12px; color: var(--text-secondary); }

.odometer-digit {
  display: inline-block;
  height: 52px;
  overflow: hidden;
  position: relative;
}
.odometer-digit-inner {
  display: flex;
  flex-direction: column;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.odometer-digit-inner span {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: var(--color-success);
  text-shadow: 0 0 20px rgba(0, 229, 160, 0.4);
}
.odometer-static {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-success);
}
.odometer-suffix {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-success);
  opacity: 0.8;
  margin-left: 2px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* Buttons */
.btn-primary-lg {
  padding: 16px 48px;
  font-size: 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--t-base);
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 94, 167, 0.25) 100%);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: var(--accent-primary);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-primary-lg:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(123, 94, 167, 0.35) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
}

.btn-primary {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--t-base);
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 94, 167, 0.25) 100%);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: var(--accent-primary);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(123, 94, 167, 0.35) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--t-base);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-primary);
}

.btn-primary-lg:active,
.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 212, 255, 0.1);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

/* Hero Dashboard Card */
.hero-dashboard-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.08), 0 0 60px rgba(0, 212, 255, 0.04);
  animation: dashboard-breathe 4s ease-in-out infinite;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
}

.dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: dash-pulse 2s ease-in-out infinite;
}
@keyframes dash-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.dash-version {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'SF Mono', monospace;
}

.dash-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.dash-label { font-size: 13px; color: var(--text-secondary); }
.dash-val { font-size: 14px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }

.dash-activity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-default);
}

.dash-act-item {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-act-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-act-dot.green { background: var(--color-success); }
.dash-act-dot.blue { background: var(--accent-primary); }

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #f4f7ff 0%, #c0c8e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
}

/* === Logo Wall === */
.logo-wall {
  padding: 140px 0 100px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.logo-wall-content {
  padding: 0 60px;
  margin-bottom: 48px;
}

.logo-wall-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #f4f7ff 0%, #c0c8e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.5;
}

.logo-wall-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 0 60px;
  border: 1px solid var(--border-subtle);
}

.logo-wall-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 18, 0.3) 0%, transparent 20%, transparent 80%, rgba(10, 8, 18, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.logo-wall-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.logo-wall-img-wrap:hover .logo-wall-img {
  opacity: 1;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 36px 32px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  width: 132px;
  height: 52px;
  padding: 8px 14px;
  transition: background var(--t-base) ease, border-color var(--t-base) ease;
  box-sizing: border-box;
}

.logo-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.logo-img {
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
  display: block;
}

.logo-img.si {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity var(--t-base) ease;
}

.logo-item:hover .logo-img.si {
  opacity: 1;
}

.logo-img.colored {
  opacity: 0.85;
  transition: opacity var(--t-base) ease;
}

.logo-item:hover .logo-img.colored {
  opacity: 1;
}

.logo-text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--t-base) ease;
}

.logo-item:hover .logo-text {
  color: rgba(255, 255, 255, 0.9);
}

/* === Pain Section === */
.pain-section {
  padding: 140px 60px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.pain-card:hover {
  border-color: var(--color-error);
  background: rgba(255, 92, 108, 0.04);
}

.pain-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 92, 108, 0.08);
  border: 1px solid rgba(255, 92, 108, 0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pain-card:hover .pain-icon {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(255, 92, 108, 0.15);
  box-shadow: 0 0 20px rgba(255, 92, 108, 0.2);
}
.pain-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.pain-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.pain-text b { color: var(--color-error); }

.pain-solution {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-primary);
  padding: 16px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 8px;
}

/* === Power Section (Phases Grid) === */
.power-section {
  padding: 140px 60px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.phase-item {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.phase-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc);
  opacity: 0;
  transition: opacity var(--t-base);
}
.phase-item:hover {
  border-color: var(--pc);
  transform: translateY(-4px);
}
.phase-item:hover::before { opacity: 1; }

.phase-num { font-size: 22px; font-weight: 700; color: var(--pc); margin-bottom: 8px; }
.phase-name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.phase-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

.phases-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 16px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 8px;
}
.phases-summary span { font-weight: 500; }
.phases-summary span:first-child { color: var(--accent-primary); font-weight: 700; }
.phases-dot { color: var(--text-muted); }

.section-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 16px;
  margin-top: 32px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 8px;
}
.section-summary span { font-weight: 500; }
.section-summary span:first-child { color: var(--accent-primary); font-weight: 700; }

/* === Moat Section === */
.moat-section {
  padding: 140px 60px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.moat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.moat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.moat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-angle), transparent 25%, rgba(0, 212, 255, 0.5) 50%, rgba(123, 94, 167, 0.5) 75%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.moat-card:hover::before {
  opacity: 1;
}
.moat-card:hover {
  background: rgba(0, 212, 255, 0.04);
}

.moat-icon { font-size: 32px; margin-bottom: 12px; }
.moat-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.moat-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.moat-text b { color: var(--text-primary); }

.moat-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 600;
}

/* === ROI Section === */
.roi-section {
  padding: 140px 60px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.roi-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 40px;
}

.roi-col {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 32px 28px;
}
.roi-col.before { border-top: 3px solid var(--color-error); }
.roi-col.after { border-top: 3px solid var(--color-success); }

.roi-col-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.roi-col.before .roi-col-title { color: var(--color-error); }
.roi-col.after .roi-col-title { color: var(--color-success); }

.roi-metric-row { display: flex; flex-direction: column; gap: 16px; }

.roi-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.roi-m-label { font-size: 14px; color: var(--text-secondary); }
.roi-m-val { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.roi-m-val.bad { color: var(--color-error); }
.roi-m-val.good { color: var(--color-success); }

.roi-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-primary);
}

.roi-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.roi-kpi-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
}

.roi-kpi-val { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.roi-kpi-label { font-size: 13px; color: var(--text-secondary); }

/* === Architecture Section === */
.arch-section {
  padding: 140px 60px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.arch-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-angle), transparent 25%, rgba(0, 212, 255, 0.5) 50%, rgba(123, 94, 167, 0.5) 75%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.arch-card:hover::before {
  opacity: 1;
}
.arch-card:hover {
  background: rgba(0, 212, 255, 0.04);
}

.arch-icon { font-size: 36px; margin-bottom: 12px; }
.arch-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.arch-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* === Final CTA === */
.final-cta {
  text-align: center;
  padding: 160px 60px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: 36px;
  font-weight: 600;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.final-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* === Card Spotlight === */
.card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* === Hero Text Reveal === */
.text-reveal-active {
  animation: h1-wipe 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

@keyframes h1-wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0% 0 0);
  }
}

/* === Scroll Progress Bar === */
.scroll-progress-bar {
  position: sticky;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* === Preloader === */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  font-size: 48px;
  font-weight: 200;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #eef2ff, #00d4ff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: preloader-pulse 1.5s ease-in-out infinite;
}

.preloader-sub {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

@keyframes preloader-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.97); }
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--accent-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

/* === Custom Cursor === */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.4);
  pointer-events: none;
  z-index: 99997;
  transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease;
  transform: translate(-50%, -50%);
}

.cursor-ring.hovering {
  width: 50px;
  height: 50px;
  border-color: rgba(0, 212, 255, 0.7);
  background: rgba(0, 212, 255, 0.05);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* === ① Logo Marquee === */
.logo-wall-img-wrap--marquee::before { display: none; }
.logo-wall-img-wrap--marquee { padding: 20px 0; overflow: hidden; }

.logo-marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  position: relative;
  z-index: 2;
}
.logo-marquee-row {
  display: flex;
  margin-bottom: 10px;
}
.logo-marquee-row:last-child { margin-bottom: 0; }
.logo-marquee-track {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 10px;
  animation: marquee-scroll 52s linear infinite;
}
.logo-marquee-row--reverse .logo-marquee-track {
  animation-direction: reverse;
  animation-duration: 58s;
}
.logo-marquee-wrap:hover .logo-marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* === ③ ROI Progress Bars === */
.roi-metric { flex-wrap: wrap; }
.roi-m-bar {
  flex: 0 0 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
  position: relative;
}
.roi-m-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.roi-col.before .roi-m-bar::after { background: rgba(248, 81, 73, 0.7); }
.roi-col.after  .roi-m-bar::after { background: linear-gradient(to right, #3fb950, #58c4dc); }
.roi-m-bar.bar-on::after { width: var(--bar-pct, 50%); }

/* === ④ Phase Beacon + Flow Line === */
@keyframes phase-beacon {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
  35%            { box-shadow: 0 0 18px 5px var(--pc, rgba(0,212,255,.2)); }
}
.phases-grid .phase-item {
  animation: phase-beacon 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.7s);
}
.phases-flow-line {
  height: 2px;
  margin: 0 0 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.phases-flow-dot {
  position: absolute;
  top: -3px;
  left: -8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.9);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
  animation: phase-flow-move 3.2s ease-in-out infinite;
}
@keyframes phase-flow-move {
  0%   { left: -8px;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%;   opacity: 0; }
}

/* === ⑤ CTA Breathing Ring === */
@keyframes cta-ring-pulse {
  0%   { transform: scale(1);    opacity: 0.65; }
  100% { transform: scale(1.14); opacity: 0; }
}
.final-cta .btn-primary-lg { position: relative; }
.final-cta .btn-primary-lg::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 2px solid rgba(0, 212, 255, 0.5);
  animation: cta-ring-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

/* === Section Decorative Divider (upgrade from simple line) === */
#screen-landing > section + section::after {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2) 20%, rgba(123, 94, 167, 0.3) 50%, rgba(0, 212, 255, 0.2) 80%, transparent);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.1);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; gap: 40px; padding: 60px 40px; }
  .hero-kpi-row { grid-template-columns: repeat(3, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .phases-grid { grid-template-columns: repeat(3, 1fr); }
  .moat-grid { grid-template-columns: repeat(2, 1fr); }
  .roi-compare { grid-template-columns: 1fr; }
  .roi-arrow { transform: rotate(90deg); }
  .roi-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-section { padding: 40px 24px; }
  .hero-cta-group { flex-direction: column; }
  .hero-kpi-row { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .phases-grid { grid-template-columns: repeat(2, 1fr); }
  .moat-grid { grid-template-columns: 1fr; }
  .roi-kpi-strip { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .pain-section, .power-section, .moat-section, .roi-section, .arch-section { padding: 40px 24px; }
  .section-header h2 { font-size: 24px; }
  .final-cta { padding: 60px 24px; }
  .final-cta h2 { font-size: 28px; }
}

/* ── 7. Screen 1: 系统总览页 ── */
#screen-overview {
  position: relative;
  z-index: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: calc(100vh - 56px);
  overflow-y: auto;
}

.overview-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1.2fr;
  gap: 28px;
  max-width: 1600px;
  margin: 0 auto;
  align-items: start;
}

.overview-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(25, 20, 40, 0.3) 0%, rgba(15, 10, 30, 0.4) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ov-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ov-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.ov-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ov-kpi-cell {
  background: linear-gradient(135deg, rgba(13, 12, 25, 0.6) 0%, rgba(8, 6, 18, 0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border-default);
  border-top: 2px solid var(--phase-1);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
}
.ov-kpi-cell:nth-child(2) { border-top-color: var(--phase-2); }
.ov-kpi-cell:nth-child(3) { border-top-color: var(--phase-3); }

.ov-kpi-cell:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.ov-kpi-cell::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ov-kpi-cell > div:first-child {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.ov-kpi-cell > div:first-child::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.ov-kpi-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.ov-mini-activity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ov-act-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.08);
  transition: all var(--t-base);
  border-left: 2px solid var(--text-muted);
}
.ov-act-row:hover {
  background: rgba(0, 212, 255, 0.08);
  border-left-color: var(--accent-primary);
}

.ov-act-row-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  background: rgba(255, 255, 255, 0.1);
}

.overview-flywheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 飞轮 SVG */
#flywheel {
  width: 100%;
  max-width: 100%;
  cursor: pointer;
}

.flywheel-node { cursor: pointer; }
.flywheel-node circle.node-bg {
  transition: r var(--t-base);
  filter: none;
}
.flywheel-node:hover circle.node-bg { r: 26; }
.flywheel-node text { pointer-events: none; user-select: none; }

.flywheel-center-content {
  text-align: center;
  pointer-events: none;
}

/* 阶段卡片网格 */
.phase-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
}

/* 紧凑阶段列表（右侧） */
.phase-list-compact {
  display: flex !important;
  flex-direction: column;
  gap: 6px !important;
  grid-template-columns: unset !important;
}

.phase-card {
  --phase-color: var(--phase-1);
  border: 1px solid rgba(123, 94, 167, 0.2);
  border-radius: 12px;
  padding: 0;
  background: linear-gradient(135deg, rgba(25, 20, 40, 0.6) 0%, rgba(15, 10, 30, 0.7) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all var(--t-base) cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-top: 2px solid var(--phase-color);
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--phase-color), transparent);
  opacity: 0.6;
}

.phase-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--phase-color), transparent);
  opacity: 0.4;
}

.phase-card:hover {
  border-color: var(--phase-color);
  border-top-color: var(--phase-color);
  background: linear-gradient(135deg, rgba(40, 30, 65, 0.8) 0%, rgba(25, 15, 45, 0.8) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5),
              0 0 20px rgba(var(--phase-color), 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phase-card.state-active {
  border-color: var(--phase-color);
  border-top-color: var(--phase-color);
  box-shadow: 0 0 0 2px var(--phase-color),
              0 0 24px rgba(var(--phase-color), 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(45, 30, 70, 0.9) 0%, rgba(25, 15, 45, 0.9) 100%);
}

/* 紧凑卡片行 */
.phase-compact-row {
  --phase-color: var(--phase-1);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border-left: 3px solid var(--phase-color);
  background: var(--bg-card);
  cursor: pointer;
  transition: background var(--t-base), transform var(--t-fast);
  border: none;
  border-left: 3px solid var(--phase-color);
}

.phase-compact-row:hover {
  background: var(--bg-card-hover);
  transform: translateX(2px);
}

.phase-compact-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.phase-compact-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.phase-compact-row-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.phase-compact-row-metric {
  text-align: right;
  flex-shrink: 0;
}

.phase-compact-row-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--phase-color);
  font-variant-numeric: tabular-nums;
}

.phase-compact-row-label {
  font-size: 12px;
  color: var(--text-muted);
}

.phase-compact-row-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

.pc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.pc-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--phase-color), transparent);
  opacity: 0.4;
}

.pc-num {
  font-size: 20px;
  font-weight: 800;
  min-width: 32px;
  text-align: center;
  color: var(--phase-color);
  background: rgba(var(--phase-color), 0.08);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(var(--phase-color), 0.2);
}

.pc-name {
  font-size: 13px;
  font-weight: 700;
  flex: 1;
  color: var(--text-primary);
}

.pc-status {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.02);
}
.pc-status.running {
  background: rgba(0, 229, 160, 0.15);
  color: var(--color-success);
  border-color: var(--color-success);
}

.pc-capabilities {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  margin-left: 6px;
  padding: 12px 14px 5px;
  line-height: 1.5;
}

.pc-model {
  font-size: 12px;
  color: var(--text-code);
  font-family: 'SF Mono', monospace;
  margin-bottom: 10px;
  margin-left: 14px;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 5px;
  display: inline-block;
  font-weight: 500;
}

.pc-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 0;
  background: rgba(0, 212, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pcm-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--t-fast);
}
.pcm-item:hover {
  background: rgba(var(--phase-color), 0.06);
  color: var(--text-primary);
}

.pcm-item b {
  color: var(--phase-color);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@keyframes metric-tick {
  0% {
    opacity: 0;
    transform: translateY(8px);
    color: var(--text-secondary);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--phase-color, var(--color-processing));
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    color: var(--phase-color, var(--color-processing));
  }
}
.metric-tick { animation: metric-tick 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }

.pc-footer {
  margin-top: auto;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--phase-color);
  text-align: right;
  opacity: 0;
  transition: opacity var(--t-base), background var(--t-base);
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(var(--phase-color), 0.03);
}
.phase-card:hover .pc-footer {
  opacity: 1;
  background: rgba(var(--phase-color), 0.08);
}

/* 数据流向图 */
.data-flow-section {
  margin-top: 32px;
  padding: 0 16px;
}

.data-flow-title {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.data-flow-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.data-flow-svg {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, rgba(13, 12, 25, 0.3) 0%, rgba(8, 6, 18, 0.4) 100%);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

/* 总览页底部 */
.overview-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.overview-entry-card {
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(20, 15, 35, 0.6) 0%, rgba(15, 10, 30, 0.8) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.overview-entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}
.overview-entry-card:first-child::before { background: linear-gradient(90deg, var(--phase-6), transparent); }
.overview-entry-card:last-child::before { background: linear-gradient(90deg, var(--phase-8), transparent); }

.overview-entry-card:hover {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(30, 20, 50, 0.8) 0%, rgba(20, 10, 40, 0.9) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,212,255,0.12), 0 0 16px rgba(0,212,255,0.08);
}
.overview-entry-card:hover::before {
  opacity: 1;
}

/* ── 7b. Screen 1: Bento Grid 总览页 ── */
.ov-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(60px, auto);
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Bento Cell 基础样式 */
.ov-bento-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ov-bento-cell::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--cell-glow, rgba(0,212,255,0.08)) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.ov-bento-cell:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

/* 淡入动画 */
.bento-fade-in {
  opacity: 0;
  transform: translateY(20px);
}
.bento-fade-in.visible {
  animation: bento-fade-in 0.5s ease forwards;
}
@keyframes bento-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Cell 定位 */
.ov-cell-header   { grid-column: 1 / 9;  grid-row: span 2; }
.ov-cell-actions  { grid-column: 9 / -1; grid-row: span 1; }
.ov-cell-metrics  { grid-column: 1 / -1; grid-row: span 1; }
.ov-cell-pipeline { grid-column: 1 / 9;  grid-row: span 2; }
.ov-cell-roi      { grid-column: 9 / -1; grid-row: span 2; }
.ov-cell-phases   { grid-column: 1 / -1; grid-row: span 4; }
.ov-cell-dataflow { grid-column: 1 / 9;  grid-row: span 2; }
.ov-cell-bottom   { grid-column: 9 / -1; grid-row: span 2; }

/* Cell 标题 */
.ov-cell-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ov-cell-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent-primary);
  border-radius: 1px;
}

/* Header Cell 特殊样式 */
.ov-cell-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0 8px;
}
.ov-cell-header::before { display: none; }
.ov-cell-header:hover { transform: none; box-shadow: none; }
.ov-cell-header .ov-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.ov-cell-header .ov-desc {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Actions Cell */
.ov-cell-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ov-cell-actions::before { display: none; }
.ov-cell-actions:hover { transform: none; box-shadow: none; }
.ov-actions-inner {
  display: flex;
  gap: 10px;
}

/* Metrics Cell */
.ov-cell-metrics { padding: 20px 24px; }
.ov-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ov-metric {
  text-align: center;
  padding: 16px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
}
.ov-metric:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}
.ov-metric::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0.6;
}
.ov-metric:nth-child(1)::after { background: linear-gradient(90deg, var(--phase-1), var(--phase-4), var(--phase-7)); }
.ov-metric:nth-child(2)::after { background: linear-gradient(90deg, var(--phase-2), var(--phase-5), var(--phase-8)); }
.ov-metric:nth-child(3)::after { background: linear-gradient(90deg, var(--phase-3), var(--phase-6), var(--phase-9)); }
.ov-metric:nth-child(4)::after { background: linear-gradient(90deg, var(--phase-4), var(--phase-7), var(--phase-1)); }
.ov-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 4px;
}
.ov-metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.ov-metric-unit {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Pipeline Cell */
.ov-cell-pipeline { padding: 24px; }
.ov-pipeline-inner {
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 12px;
  padding: 20px 16px;
  border: 1px solid rgba(255,255,255,0.04);
}
.ov-flow-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ov-flow-pipeline::-webkit-scrollbar { height: 3px; }
.ov-flow-pipeline::-webkit-scrollbar-track { background: transparent; }
.ov-flow-pipeline::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.ov-flow-node {
  flex-shrink: 0;
  width: 88px;
  padding: 14px 8px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(25, 20, 40, 0.9), rgba(15, 10, 30, 0.95));
  border: 1.5px solid var(--node-color, var(--border-default));
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
  position: relative;
}
.ov-flow-node:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px var(--node-glow, rgba(0, 212, 255, 0.2));
  border-color: var(--node-color, var(--accent-primary));
}
.ov-flow-node-num {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--node-color, var(--text-primary));
}
.ov-flow-node-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.ov-flow-node-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}
.ov-flow-arrow {
  flex-shrink: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-flow-loop-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-success);
  opacity: 0.7;
}
.ov-loop-icon {
  font-size: 14px;
  display: inline-block;
  animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ROI Cell */
.ov-cell-roi { padding: 24px; }
.ov-roi-strip {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ov-roi-item {
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--t-base);
}
.ov-roi-item:hover {
  background: rgba(255,255,255,0.04);
  transform: scale(1.02);
}
.ov-roi-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.ov-roi-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; display: block; }
.ov-roi-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Phase Cards Cell */
.ov-cell-phases { padding: 24px; }
.phase-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* DataFlow Cell */
.ov-cell-dataflow { padding: 24px; }
.ov-dataflow-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}
.ov-dataflow-scroll::-webkit-scrollbar { height: 3px; }
.ov-dataflow-scroll::-webkit-scrollbar-track { background: transparent; }
.ov-dataflow-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* Bottom Cell */
.ov-cell-bottom { padding: 24px; }
.ov-bottom-entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.ov-entry-card {
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(20, 15, 35, 0.6) 0%, rgba(15, 10, 30, 0.8) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  flex: 1;
}
.ov-entry-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}
.ov-entry-card:first-child::before { background: linear-gradient(90deg, var(--phase-6), transparent); }
.ov-entry-card:last-child::before { background: linear-gradient(90deg, var(--phase-8), transparent); }
.ov-entry-card:hover {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(30, 20, 50, 0.8) 0%, rgba(20, 10, 40, 0.9) 100%);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.12), 0 0 12px rgba(0,212,255,0.08);
}
.ov-entry-card:hover::before { opacity: 1; }
.ov-entry-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.ov-entry-desc { font-size: 12px; color: var(--text-muted); }
.ov-entry-arrow { font-size: 16px; color: var(--text-muted); transition: all var(--t-base); }
.ov-entry-card:hover .ov-entry-arrow { color: var(--accent-primary); transform: translateX(4px); }

/* Responsive: 1024px */
@media (max-width: 1024px) {
  .ov-bento-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 32px 20px 60px;
  }
  .ov-cell-header   { grid-column: 1 / -1; }
  .ov-cell-actions  { grid-column: 1 / -1; }
  .ov-cell-metrics  { grid-column: 1 / -1; }
  .ov-cell-pipeline { grid-column: 1 / -1; }
  .ov-cell-roi      { grid-column: 1 / -1; }
  .ov-cell-phases   { grid-column: 1 / -1; }
  .ov-cell-dataflow { grid-column: 1 / -1; }
  .ov-cell-bottom   { grid-column: 1 / -1; }
  .ov-cell-header .ov-title { font-size: 28px; }
  .ov-metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .ov-roi-strip { flex-direction: row; flex-wrap: wrap; }
  .ov-roi-item { flex: 1; min-width: calc(50% - 8px); }
  .phase-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .ov-flow-node { width: 80px; padding: 10px 6px; }
  .ov-flow-node-name { font-size: 12px; }
  .ov-flow-node-desc { font-size: 12px; }
}

/* Responsive: 768px */
@media (max-width: 768px) {
  .ov-bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 16px 48px;
  }
  .ov-cell-header, .ov-cell-actions, .ov-cell-metrics,
  .ov-cell-pipeline, .ov-cell-roi, .ov-cell-phases,
  .ov-cell-dataflow, .ov-cell-bottom {
    grid-column: 1 / -1;
  }
  .ov-cell-header .ov-title { font-size: 24px; }
  .ov-metrics-bar { grid-template-columns: 1fr 1fr; }
  .ov-roi-strip { flex-direction: column; }
  .ov-roi-item { min-width: 100%; }
  .phase-cards-grid { grid-template-columns: 1fr; }
  .ov-flow-pipeline { flex-direction: column; align-items: stretch; overflow-x: visible; }
  .ov-flow-node { width: 100%; }
  .ov-flow-arrow { transform: rotate(90deg); width: auto; height: 20px; justify-content: center; }
}

/* ── 8. Screen 2: 阶段详情页 ── */
#screen-phase { position: relative; z-index: 1; padding: 0; height: calc(100vh - 56px); display: flex; flex-direction: column; overflow: hidden; }
#screen-planner { position: relative; z-index: 1; padding: 0; height: calc(100vh - 56px); display: flex; flex-direction: column; overflow: hidden; }

.phase-header {
  --phase-color: var(--phase-1);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(120deg,
    rgba(10, 8, 18, 0.4) 0%,
    rgba(var(--phase-rgb), 0.03) 50%,
    rgba(10, 8, 18, 0.2) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.phase-header .back-btn {
  padding: 6px 12px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-base);
}
.phase-header .back-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }

.ph-num { font-size: 22px; }
.ph-name { font-size: 17px; font-weight: 600; color: var(--phase-color); }
#planner-name { color: #d946ef; }
.ph-desc { font-size: 13px; color: var(--text-secondary); }

/* 进度徽章 */
.phase-progress-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Menlo', monospace;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 分段进度条 */
.seg-progress {
  display: flex;
  gap: 3px;
  align-items: center;
}

.seg-progress .seg {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  transition: background 0.3s ease, transform 0.2s ease;
}

.seg-progress .seg.filled {
  background: var(--phase-color, #388bfd);
  box-shadow: 0 0 6px rgba(var(--phase-rgb, 56,139,253), 0.5);
}

.seg-progress .seg.active {
  background: var(--phase-color, #388bfd);
  transform: scaleY(1.5);
  box-shadow: 0 0 8px var(--phase-color, #388bfd);
}

.seg-pct {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  font-family: 'Menlo', monospace;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* 步进控制器 */
#step-controller {
  /*display: flex;*/
  display:none;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-card);
}

#step-controller button {
  padding: 6px 14px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--t-base);
}
#step-controller button:hover { border-color: var(--border-strong); color: var(--text-primary); }
#step-controller button:disabled { opacity: 0.3; pointer-events: none; }

#step-controller button.active {
  background: var(--color-processing);
  border-color: var(--color-processing);
  color: #fff;
}

#step-progress {
  display: flex;
  gap: 12px;
  flex: 1;
  align-items: center;
  justify-content: center;
}

#planner-progress {
  display: flex;
  gap: 12px;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: all var(--t-base);
  cursor: pointer;
}
.step-dot:hover { background: var(--border-strong); transform: scale(1.2); }
.step-dot.active { background: var(--phase-color, var(--color-processing)); transform: scale(1.4); }
.step-dot.completed { background: var(--color-success); }

/* 阶段内容体 */
.phase-body {
  display: grid;
  grid-template-columns: 215px 1fr;
  grid-template-rows: 1fr !important;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  height: 100% !important;
}

/* 左侧时间轴 - 卡片化升级 */
#step-timeline {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 8px;
  background: rgba(10, 8, 18, 0.3);
  backdrop-filter: blur(10px);
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto !important;
  overflow-x: hidden;
  height: 100% !important;
  max-height: 100% !important;
}

#planner-timeline {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 8px;
  background: rgba(10, 8, 18, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.tl-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  width: calc(100% - 16px);
  margin: 0 8px;
  box-sizing: border-box;
  border-radius: 8px;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  color: inherit;
  flex-shrink: 0;
}

button.tl-step {
  padding: 12px 14px;
}

.tl-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.tl-step.state-active {
  background: rgba(var(--phase-rgb, 0, 212, 255), 0.08);
  border-color: rgba(var(--phase-rgb, 0, 212, 255), 0.25);
  box-shadow: 0 0 12px rgba(var(--phase-rgb, 0, 212, 255), 0.15);
}

.tl-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  margin-top: 6px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.tl-step.state-active .tl-dot {
  background: var(--phase-color, var(--color-processing));
  box-shadow: 0 0 8px var(--phase-color, var(--color-processing));
  transform: scale(1.3);
}

.tl-step.state-completed .tl-dot {
  background: var(--color-success);
  box-shadow: 0 0 6px rgba(63, 185, 80, 0.5);
}

/* 移除竖线，改用卡片设计 */
.tl-step::before {
  display: none;
}

.tl-step-name { font-size: 13px; color: var(--text-primary); line-height: 1.5; display: block; }
.tl-step.state-active .tl-step-name { color: var(--text-primary); font-weight: 600; }
.tl-step.state-completed .tl-step-name { color: var(--text-secondary); }

.tl-check {
  font-size: 12px;
  color: var(--color-success);
  margin-left: auto;
  flex-shrink: 0;
  display: none;
  height: fit-content;
}
.tl-step.state-active .tl-check {
  display: block !important;
}
.tl-step.state-completed .tl-check {
  display: block !important;
}

/* 步骤内容区 - 毛玻璃升级 */
#step-content {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: linear-gradient(135deg,
    rgba(10, 8, 18, 0.4) 0%,
    rgba(10, 8, 18, 0.35) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
}

/* 步骤 wrapper 状态 */
.step-wrapper { transition: opacity var(--t-base); }
.step-wrapper.state-pending { opacity: 0.25; pointer-events: none; }
.step-wrapper.state-active { opacity: 1; }
.step-wrapper.state-completed { opacity: 0.75; }

/* ── 9. 内容卡片通用组件 - 毛玻璃升级 ── */
.content-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.content-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.card-title {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

.card-title-accent { color: var(--phase-color, var(--text-secondary)); }

/* 代码块 */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'SF Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-code);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.code-block .comment { color: #6e7681; }
.code-block .key { color: #ff7b72; }
.code-block .string { color: #a5d6ff; }
.code-block .number { color: var(--color-warning); }
.code-block .bool { color: var(--knowledge-platform); }

/* 进度条行 */
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.bar-label { min-width: 140px; color: var(--text-secondary); }
.bar-label.wide { min-width: 200px; }

.bar-track {
  flex: 1;
  height: 6px;
  background: var(--border-default);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--phase-color, var(--color-processing));
  transition: width 0.8s ease-out;
}

.bar-fill.success { background: var(--color-success); }
.bar-fill.warning { background: var(--color-warning); }
.bar-fill.error   { background: var(--color-error); }

.bar-value { min-width: 40px; text-align: right; color: var(--text-secondary); font-size: 14px; }

/* 分组标题 */
.group-label {
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 6px;
  margin: 16px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 两栏布局 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* 气泡消息 */
.bubble-row { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.bubble-user, .bubble-ai {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 80%;
}
.bubble-user {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--text-primary);
  margin-left: auto;
  border-top-right-radius: 2px;
}
.bubble-ai {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  border-top-left-radius: 2px;
}

/* Diff 视图 */
.diff-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'SF Mono', monospace;
  font-size: 13px;
}
.diff-header {
  background: var(--bg-card);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
}
.diff-line {
  display: flex;
  gap: 0;
  line-height: 1.7;
  padding: 0 12px;
}
.diff-line-num { min-width: 36px; color: var(--text-muted); user-select: none; }
.diff-line-sign { width: 16px; flex-shrink: 0; }
.diff-line.del { background: rgba(248,81,73,0.1); color: var(--color-error); }
.diff-line.add { background: rgba(0,229,160,0.08); color: var(--color-success); }
.diff-line.del .diff-line-sign { color: var(--color-error); }
.diff-line.add .diff-line-sign { color: var(--color-success); }
.diff-line-content { flex: 1; white-space: pre-wrap; word-break: break-all; color: var(--text-secondary); }
.diff-line.del .diff-line-content { color: var(--color-error); text-decoration: line-through; }
.diff-line.add .diff-line-content { color: var(--color-success); }
.diff-note {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-default);
  background: var(--bg-card);
}

/* 评分雷达标签 */
.radar-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.radar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.radar-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-default);
  text-align: left;
}
.data-table th { color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.data-table td { color: var(--text-secondary); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .highlight td { color: var(--text-primary); }
.data-table .warn-row td { color: var(--color-warning); }

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-success { background: rgba(0,229,160,0.12); color: var(--color-success); }
.badge-error   { background: rgba(248,81,73,0.15); color: var(--color-error); }
.badge-warning { background: rgba(227,179,65,0.15); color: var(--color-warning); }
.badge-info    { background: rgba(0,212,255,0.12); color: var(--color-processing); }

/* 知识类型色标签 */
.ktag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 12px; }
.ktag-brand    { background: rgba(0,212,255,0.12); color: var(--knowledge-brand); }
.ktag-rule     { background: rgba(255,123,114,0.12); color: var(--knowledge-rule); }
.ktag-platform { background: rgba(86,211,100,0.12); color: var(--knowledge-platform); }
.ktag-memory   { background: rgba(210,168,255,0.12); color: var(--knowledge-memory); }
.ktag-trend    { background: rgba(255,166,87,0.12); color: var(--knowledge-trend); }

/* 打字机输出区 */
#ai-output {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  min-height: 80px;
  padding: 14px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Token 流 */
.token-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 10px;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  min-height: 40px;
  font-family: 'SF Mono', monospace;
  font-size: 13px;
}

.token-char {
  color: var(--text-code);
  opacity: 0;
  animation: tokenFade 0.1s ease forwards;
}
@keyframes tokenFade { to { opacity: 1; } }

/* SVG DAG 节点 */
.dag-box {
  fill: var(--bg-card);
  stroke: var(--border-default);
  stroke-width: 1;
  rx: 6;
}
.dag-box.active {
  stroke: var(--phase-color, var(--color-processing));
  filter: drop-shadow(0 0 6px var(--phase-color, var(--color-processing)));
}
.dag-text { fill: var(--text-secondary); font-size: 12px; font-family: 'SF Mono', monospace; }
.dag-arrow { stroke: var(--border-strong); stroke-width: 1.5; fill: none; marker-end: url(#arrowhead); }

/* 快捷操作按钮 */
.action-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.action-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-base);
}
.action-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(0,212,255,0.05);
  transform: translateY(-1px);
}
.action-btn.primary { background: var(--color-success); border-color: var(--color-success); color: #0a0812; font-weight: 600; }
.action-btn.primary:hover { background: var(--color-success); filter: brightness(1.1); }

/* 发布状态卡 */
.publish-status { display: flex; flex-direction: column; gap: 8px; }
.pub-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 12px; border: 1px solid var(--border-default); border-radius: 6px; }
.pub-item.done { border-color: rgba(0,229,160,0.25); }
.pub-icon { font-size: 14px; }
.pub-name { flex: 1; }
.pub-tag { font-size: 12px; }
.pub-tag.done { color: var(--color-success); }
.pub-tag.pending { color: var(--text-muted); }

/* ── 10. 右侧活动流面板 ── */
#activity-panel {
  position: fixed;
  top: 56px;
  right: 0;
  width: 280px;
  height: calc(100vh - 56px);
  background: rgba(10, 8, 18, 0.9);
  border-left: 1px solid rgba(0, 212, 255, 0.1);
  z-index: var(--z-activity);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-slow) ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#activity-panel #activity-feed {
  flex: 1;
  overflow-y: auto;
}

#activity-panel.collapsed {
  transform: translateX(100%);
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.activity-header button {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  transition: all var(--t-base);
}
.activity-header button:hover { color: var(--text-primary); }

#activity-feed {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}
#activity-feed::-webkit-scrollbar { width: 4px; }
#activity-feed::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 2px; }

.activity-item {
  padding: 8px 14px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 6px;
  align-items: start;
  font-size: 13px;
  border-bottom: 1px solid rgba(33,38,45,0.5);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.activity-item.ai-visible { opacity: 1; transform: translateX(0); }

.ai-phase { font-size: 13px; }
.ai-text { color: var(--text-secondary); line-height: 1.4; }
.ai-time { color: var(--text-muted); white-space: nowrap; font-size: 12px; }

.activity-item.activity-success .ai-text { color: var(--color-success); }
.activity-item.activity-error   .ai-text { color: var(--color-error); }
.activity-item.activity-warning .ai-text { color: var(--color-warning); }

.activity-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-default);
  font-size: 13px;
  color: var(--text-secondary);
}

/* 收起时的展开按钮 */
#activity-toggle-btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 8px 6px;
  font-size: 12px;
  color: var(--text-secondary);
  z-index: var(--z-activity);
  writing-mode: vertical-lr;
  cursor: pointer;
  transition: all var(--t-base) ease;
  display: none;
}

#activity-panel.collapsed ~ #activity-toggle-btn {
  display: block;
}

#activity-toggle-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ── 11. 命令面板 ── */
#cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  z-index: var(--z-cmdpal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

#cmd-panel {
  width: 560px;
  max-width: 90vw;
  background: rgba(10, 8, 18, 0.92);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 212, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

#cmd-input {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  font-family: inherit;
}
#cmd-input::placeholder { color: var(--text-muted); }

#cmd-results { max-height: 400px; overflow-y: auto; padding: 8px 0; }

.cmd-group-label {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.cmd-item {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmd-item:hover, .cmd-item.selected {
  background: rgba(0,212,255,0.08);
  color: var(--text-primary);
}

/* ── 12. Toast 通知 ── */
#toast-container {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid transparent;
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  pointer-events: auto;
}
.toast.toast-visible { opacity: 1; transform: translateY(0); }

.toast-success { border-color: rgba(0,229,160,0.35); }
.toast-error   { border-color: rgba(248,81,73,0.4); }
.toast-warning { border-color: rgba(227,179,65,0.4); }
.toast-info    { border-color: rgba(0,212,255,0.35); }

.toast-icon { font-size: 14px; }
.toast-success .toast-icon { color: var(--color-success); }
.toast-error   .toast-icon { color: var(--color-error); }
.toast-warning .toast-icon { color: var(--color-warning); }
.toast-info    .toast-icon { color: var(--color-processing); }

/* ── 13. 管线瀑布图 ── */
#waterfall-overlay {
  position: fixed;
  top: 56px;
  right: 0;
  width: 600px;
  max-width: 95vw;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-top: none;
  border-right: none;
  border-bottom-left-radius: 12px;
  z-index: var(--z-waterfall);
  padding: 20px;
  box-shadow: -8px 8px 32px rgba(0,0,0,0.5);
}

.waterfall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.waterfall-close {
  padding: 4px 8px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  font-size: 12px;
}

.wf-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.wf-skill { min-width: 160px; color: var(--text-secondary); font-family: 'SF Mono', monospace; }
.wf-track {
  flex: 1;
  height: 20px;
  background: var(--border-default);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.wf-bar {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--color-processing);
  border-radius: 3px;
  width: 0;
  transition: width 0.6s ease-out, left 0s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.wf-bar.parallel { background: rgba(0,212,255,0.5); }
.wf-check { color: var(--color-success); font-size: 13px; }

/* ── 14. 快捷键帮助 ── */
#shortcut-help {
  position: fixed;
  bottom: 20px;
  right: 296px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  z-index: 400;
  font-size: 13px;
  width: 240px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
}
.shortcut-row:last-child { border-bottom: none; }

kbd {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12px;
  font-family: 'SF Mono', monospace;
  color: var(--text-secondary);
}

/* ── 15. 全屏演示模式 ── */
body.fullscreen #activity-panel { display: none; }
body.fullscreen .phase-body { grid-template-columns: 180px 1fr; }
body.fullscreen #step-content { font-size: 1.1em; }

/* ── 16. 特殊视图 ── */
.special-view {
  position: relative;
  z-index: 1;
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.view-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.view-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* 演示结束页对比 */
.compare-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.compare-table th, .compare-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-default);
  text-align: left;
  font-size: 13px;
}
.compare-table th { color: var(--text-secondary); font-size: 12px; text-transform: uppercase; }
.compare-table .val-before { color: var(--color-error); }
.compare-table .val-after  { color: var(--color-success); }
.compare-table .val-change { font-weight: 600; }

/* 竞品对比视图 */
.competition-table { width: 100%; border-collapse: collapse; }
.competition-table th, .competition-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-default);
  font-size: 13px;
  text-align: center;
}
.competition-table th { background: var(--bg-card-hover); color: var(--text-secondary); }
.competition-table .col-bie { color: var(--color-success); font-weight: 600; }
.competition-table .check { color: var(--color-success); }
.competition-table .cross { color: var(--color-error); }
.competition-table .half  { color: var(--color-warning); }

/* 管理者看板 */
.manager-table th, .manager-table td { text-align: left; padding: 10px 14px; }
.manager-warn { color: var(--color-warning); }
.ai-suggestion {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* 日历 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-default);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
}
.cal-day-header {
  background: var(--bg-card);
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.cal-cell {
  background: var(--bg-card);
  padding: 8px;
  min-height: 80px;
  font-size: 12px;
}
.cal-num { color: var(--text-muted); margin-bottom: 4px; }
.cal-num.today { color: var(--color-processing); font-weight: 600; }
.cal-event {
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
  margin-bottom: 2px;
}
.cal-event.scheduled { background: rgba(0,212,255,0.12); color: var(--color-processing); }
.cal-event.ai-suggest { background: rgba(210,168,255,0.2); color: var(--knowledge-memory); }
.cal-event.draft { background: rgba(33,38,45,0.8); color: var(--text-muted); }
.cal-event.hotspot { background: rgba(247,133,62,0.2); color: var(--phase-4); }

/* 品牌健康仪表盘 */
.health-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}
.health-score {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-success);
  line-height: 1;
}
.health-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* ── 17. Skeleton Loading ── */
.skeleton-loading > * { visibility: hidden; }
.skeleton-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--bg-card-hover) 50%,
    var(--bg-card) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: inherit;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 18. 动画关键帧 ── */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes flow-dash {
  to { stroke-dashoffset: -20; }
}

@keyframes fw-node-beacon {
  0%   { r: 32; opacity: 0.4; }
  70%  { r: 48; opacity: 0; }
  100% { r: 48; opacity: 0; }
}

@keyframes fw-center-pulse {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  50%      { opacity: 0.15; transform: scale(1.05); }
}

.flow-animate {
  stroke-dasharray: 4 4;
  animation: flow-dash 1s linear infinite;
}

/* 脉冲圆 */
.pulse-circle {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* 旋转加载 */
.spin { animation: spin 1s linear infinite; display: inline-block; }

/* ── 19. 滚动条美化 ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 2px; transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
*:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

/* Firefox */
* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
*:hover { scrollbar-color: rgba(255,255,255,0.15) transparent; }

/* ── 20. 响应式 ── */
@media (max-width: 1200px) {
  .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  #activity-panel { display: none; }
  .phase-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 1024px) {
  .phase-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 768px) {
  .phase-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .phase-body { grid-template-columns: 1fr; }
  #step-timeline { display: none; }
  #planner-timeline { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .ov-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 21. 上下文窗口进度条 ── */
.ctx-bar-row { margin-bottom: 6px; }
.ctx-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
}
.ctx-bar-track { height: 5px; background: var(--border-default); border-radius: 3px; overflow: hidden; }
.ctx-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 0.8s ease-out;
}
.ctx-bar-fill.sys  { background: #388bfd; }
.ctx-bar-fill.ctx  { background: #d2a8ff; }
.ctx-bar-fill.mem  { background: #ffa657; }
.ctx-total {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-default);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── 22. RAG 检索结果 ── */
.rag-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
}
.rag-result:last-child { border-bottom: none; }
.rag-rank { color: var(--text-muted); min-width: 20px; }
.rag-label { flex: 1; color: var(--text-secondary); }
.rag-score { color: var(--text-code); font-family: 'SF Mono', monospace; min-width: 50px; }
.rag-bar-mini { width: 80px; height: 4px; background: var(--border-default); border-radius: 2px; overflow: hidden; }
.rag-bar-fill { height: 100%; background: var(--color-processing); width: 0; transition: width 0.6s ease-out; }
.rag-rejected { opacity: 0.35; }
.rag-cut { border-top: 1px dashed var(--border-subtle); padding-top: 8px; color: var(--text-muted); font-size: 12px; font-style: italic; }

/* ── 23. MemOS 卡片 ── */
.memos-item {
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: rgba(210,168,255,0.04);
  border-left: 3px solid var(--knowledge-memory);
}
.memos-header { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.memos-text { font-size: 13px; color: var(--text-secondary); }
.memos-meta { margin-top: 4px; font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; }

/* ── 24. 步骤标题 ── */
.step-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-section-title .step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--phase-color, var(--color-processing));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

/* ── 25. 日志行 ── */
.log-line {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 1px 0;
}
.log-line .log-time { color: var(--text-muted); }
.log-line .log-ok   { color: var(--color-success); }
.log-line .log-warn { color: var(--color-warning); }
.log-line .log-err  { color: var(--color-error); }

/* ── 26. Prompt Inspector ── */
.prompt-section { margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.prompt-section-name { font-size: 12px; color: var(--text-secondary); font-family: 'SF Mono', monospace; }
.prompt-section-bar { flex: 1; margin: 0 10px; height: 4px; background: var(--border-default); border-radius: 2px; overflow: hidden; }
.prompt-section-fill { height: 100%; border-radius: 2px; width: 0; transition: width 0.6s ease-out; }
.prompt-section-tokens { font-size: 12px; color: var(--text-muted); font-family: 'SF Mono', monospace; min-width: 80px; text-align: right; }

/* ── 27. 溯源面板 ── */
.trace-panel {
  border: 1px solid rgba(247,133,62,0.3);
  border-radius: 8px;
  padding: 14px;
  background: rgba(247,133,62,0.04);
  margin-top: 12px;
}
.trace-title { font-size: 12px; color: var(--phase-4); margin-bottom: 10px; }
.trace-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.trace-source { flex: 1; color: var(--text-secondary); }
.trace-weight { min-width: 40px; text-align: right; color: var(--text-muted); font-family: 'SF Mono', monospace; }
.trace-bar-mini { width: 80px; height: 4px; background: var(--border-default); border-radius: 2px; overflow: hidden; }
.trace-fill { height: 100%; border-radius: 2px; background: var(--phase-4); width: 0; transition: width 0.6s ease-out; }

/* ── 28. DPO 卡片 ── */
.dpo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.dpo-chosen, .dpo-rejected {
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}
.dpo-chosen  { border: 1px solid rgba(0,229,160,0.25); background: rgba(0,229,160,0.05); }
.dpo-rejected{ border: 1px solid rgba(248,81,73,0.3); background: rgba(248,81,73,0.05); }
.dpo-label { font-size: 12px; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.dpo-chosen  .dpo-label { color: var(--color-success); }
.dpo-rejected .dpo-label { color: var(--color-error); }
.dpo-text { color: var(--text-secondary); line-height: 1.5; }
.dpo-reward { margin-top: 6px; font-size: 12px; color: var(--text-muted); font-family: 'SF Mono', monospace; }

/* ── 29. 雷达图 SVG ── */
.radar-polygon { fill: rgba(0,212,255,0.08); stroke: var(--color-processing); stroke-width: 1.5; }
.radar-grid-line { stroke: var(--border-default); stroke-width: 0.5; fill: none; }
.radar-axis { stroke: var(--border-subtle); stroke-width: 0.5; }
.radar-label { fill: var(--text-secondary); font-size: 12px; text-anchor: middle; }
.radar-dot { fill: var(--color-processing); }

/* ── 30. 进化飞轮 SVG ── */
.evo-ring { fill: none; stroke: var(--border-default); stroke-width: 1.5; }
.evo-dot { fill: var(--phase-7); animation: pulse-glow 2s ease-in-out infinite; }
.evo-node-circle { transition: r 0.2s; }
.evo-center { fill: var(--phase-7); font-size: 12px; text-anchor: middle; dominant-baseline: middle; }

/* ═══════════════════════════════════════
   31. ANIMATION UPGRADE SYSTEM
═══════════════════════════════════════ */

/* 屏幕入场动效 */
@keyframes screenEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.screen-enter { animation: screenEnter 0.38s cubic-bezier(0.2, 0, 0.2, 1); }

/* 步骤内容滑入 */
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: 1; transform: translateX(0); }
}
#step-content.slide-in { animation: stepSlideIn 0.3s cubic-bezier(0.2, 0, 0.2, 1); }

/* 内容卡片弹入 */
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.card-entering {
  animation: cardFadeUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 总览阶段卡片弹入 */
@keyframes overviewCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.93); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.phase-card.card-in {
  animation: overviewCardIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 阶段标题入场 */
@keyframes numBounceIn {
  0%   { opacity: 0; transform: scale(0.35) rotate(-10deg); }
  55%  { opacity: 1; transform: scale(1.15) rotate(2deg); }
  100% { opacity: 1; transform: scale(1)    rotate(0deg); }
}
@keyframes nameSlideIn {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ph-num.phase-entering  { animation: numBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.ph-name.phase-entering { animation: nameSlideIn 0.32s ease both; animation-delay: 0.07s; }

/* 步进进度轨道 */
#step-progress { position: relative; }
#step-progress::before {
  content: '';
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: var(--border-default);
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 1px;
}
#step-progress::after {
  content: '';
  position: absolute;
  left: 4px;
  height: 2px;
  background: var(--phase-color, var(--color-processing));
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  width: var(--progress-pct, 0%);
  transition: width 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}
.step-dot { position: relative; z-index: 1; }

/* 时间轴激活左侧光条 */
.tl-step {
  border-left: 2px solid transparent;
  padding-left: 14px !important;
  transition: background var(--t-base), border-color var(--t-base),
              box-shadow var(--t-base);
}
.tl-step.state-active {
  border-left-color: var(--phase-color, var(--color-processing));
  box-shadow: inset 3px 0 8px color-mix(in srgb, var(--phase-color, var(--color-processing)) 20%, transparent);
}

/* Nav 相位按钮悬停光晕 */
.nav-btn[data-phase]:hover {
  border-bottom-color: color-mix(in srgb, var(--phase-color, var(--color-processing)) 60%, transparent);
}

/* 阶段卡片悬停增强 */
.phase-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.45),
              0 0 0 1px color-mix(in srgb, var(--phase-color) 35%, transparent);
}

/* 背景光晕切换加速 */
#bg-glow { transition: background 0.65s ease; }

/* 光标跟随聚光灯 */
#cursor-spotlight {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: background 0.8s ease;
  will-change: left, top;
}

/* ═══════════════════════════════════════
   32. 竞品分析 7维度 Tab UI
═══════════════════════════════════════ */
.analysis-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 14px;
  flex-wrap: nowrap;
}
.analysis-tabs::-webkit-scrollbar { display: none; }

.atab {
  padding: 6px 11px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 5px 5px 0 0;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--t-base), background var(--t-base), border-color var(--t-base);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  flex-shrink: 0;
}
.atab:hover  { color: var(--text-secondary); background: var(--bg-card-hover); }
.atab.active {
  color: var(--phase-color, var(--color-processing));
  border-bottom-color: var(--phase-color, var(--color-processing));
  background: color-mix(in srgb, var(--phase-color, var(--color-processing)) 5%, transparent);
}

.atab-panel { display: none; }
.atab-panel.active {
  display: block;
  animation: tabFadeIn 0.22s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 竞品快览指标卡 */
.cmp-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.cmp-stat {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
}
.cmp-stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; }
.cmp-stat-value { font-size: 18px; font-weight: 700; line-height: 1.2; }
.cmp-stat-sub   { font-size: 12px; margin-top: 2px; }

/* profile 信息行 */
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 5px;
  border: 1px solid var(--border-default);
  background: var(--bg-card-hover);
}
.profile-row.highlight { border-color: rgba(248,81,73,0.3); background: rgba(248,81,73,0.05); }
.profile-row.good      { border-color: rgba(0,229,160,0.20); background: rgba(0,229,160,0.05); }
.profile-row.warn      { border-color: rgba(227,179,65,0.25); background: rgba(227,179,65,0.05); }

/* SWOT 2x2 */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.swot-cell {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
}
.swot-cell.strength { border-color: rgba(0,229,160,0.25);  background: rgba(0,229,160,0.05);  }
.swot-cell.weakness { border-color: rgba(248,81,73,0.25); background: rgba(248,81,73,0.05);  }
.swot-cell.opport   { border-color: rgba(0,212,255,0.2); background: rgba(0,212,255,0.05); }
.swot-cell.threat   { border-color: rgba(227,179,65,0.25);background: rgba(227,179,65,0.05); }
.swot-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.swot-cell.strength .swot-label { color: var(--color-success); }
.swot-cell.weakness .swot-label { color: var(--color-error); }
.swot-cell.opport   .swot-label { color: var(--color-processing); }
.swot-cell.threat   .swot-label { color: var(--color-warning); }
.swot-item { font-size: 12px; color: var(--text-secondary); line-height: 1.7; }

/* 热词云标签 */
.hot-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hot-tag  {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: default;
}
.hot-tag.lg { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.hot-tag.md { font-size: 12px; }
.hot-tag.phase { border-color: var(--phase-color); color: var(--phase-color); background: color-mix(in srgb, var(--phase-color) 8%, transparent); }

/* ── Section 34: Phase 8 分析期 专属动效 ── */
@keyframes p8WordPop {
  from { opacity: 0; transform: scale(0.25) translateY(6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.p8-word { animation: p8WordPop 0.45s cubic-bezier(0.34,1.56,0.64,1) both; }
.p8-word:hover { filter: brightness(1.3); cursor: default; transition: filter 0.2s; }

@keyframes p8CommentSlide {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.p8-comment { animation: p8CommentSlide 0.38s ease both; }

@keyframes p8BubbleIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 0.9; }
}

@keyframes p8RecoIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.p8-reco-card { animation: p8RecoIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }

@keyframes p8PathIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.p8-path-row { animation: p8PathIn 0.3s ease both; }

/* ── Section 33: Phase 6 投放期 专属动效 ── */
@keyframes p6HorsePulse {
  0%,100% { box-shadow: 0 0 5px var(--phase-6), inset 0 0 5px rgba(255,107,157,0.15); }
  50%      { box-shadow: 0 0 18px var(--phase-6), 0 0 32px color-mix(in srgb,var(--phase-6) 45%,transparent), inset 0 0 10px rgba(255,107,157,0.2); }
}
.p6-leader-glow { animation: p6HorsePulse 1.8s ease-in-out infinite; border-radius: 0 4px 4px 0; }

@keyframes p6LiveBlink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.2; transform: scale(0.75); }
}
.p6-live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-success); vertical-align: middle; margin-right: 5px;
  animation: p6LiveBlink 1.3s ease-in-out infinite;
}

@keyframes p6RuleFlash {
  0%   { background: rgba(0,229,160,0);    border-color: var(--border-default); }
  20%  { background: rgba(0,229,160,0.15); border-color: rgba(0,229,160,0.6);  }
  100% { background: rgba(0,229,160,0.06); border-color: rgba(0,229,160,0.30); }
}
.p6-rule-win { animation: p6RuleFlash 1.4s cubic-bezier(0.4,0,0.2,1) forwards; }

@keyframes p6LogSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.p6-log-row { animation: p6LogSlideIn 0.3s ease both; }

@keyframes p6KpiPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.p6-kpi-pop { animation: p6KpiPop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }

@keyframes p6FunnelIn {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
.p6-funnel-bar { animation: p6FunnelIn 0.9s cubic-bezier(0.4,0,0.2,1) both; }

/* ── 执行路径 7 步流程 (xflow) ── */
.xflow-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 24px;
}

.xflow-step {
  border-radius: 14px;
  border: 1px solid rgba(123, 94, 167, 0.2);
  padding: 20px 24px;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.xstep-num {
  position: absolute;
  top: -13px;
  left: 24px;
  background: #0a0812;
  border: 1px solid rgba(123, 94, 167, 0.35);
  border-radius: 20px;
  padding: 2px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-family: 'SF Mono', monospace;
}

.xstep-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.xstep-icon { font-size: 20px; }

.xstep-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
}

.xstep-layer {
  font-size: 12px;
  border-radius: 10px;
  padding: 3px 10px;
  border: 1px solid;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0.9;
}

.xstep-body {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.xinfo-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(123, 94, 167, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  flex: 1;
  min-width: 180px;
}

.xinfo-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.xinfo-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 5px;
}
.xinfo-row:last-child { margin-bottom: 0; }

.xdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  background: currentColor;
}

.xexample-bubble {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.75;
  flex: 2;
  min-width: 240px;
}

.xbubble-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.9;
}

.xpath-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: 'SF Mono', monospace;
  color: var(--text-code);
  margin: 2px 0;
}

.xdiff-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(123, 94, 167, 0.2);
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 13px;
  font-family: 'SF Mono', monospace;
  line-height: 1.8;
}
.xdiff-del { color: var(--color-error); }
.xdiff-add { color: var(--color-success); }
.xdiff-note { color: var(--color-warning); font-size: 12px; margin-top: 4px; }

.xscore-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.xscore-badge {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.xscore-badge .xsb-val { font-weight: 700; }
.xscore-ok   { border-color: rgba(0, 229, 160, 0.3); color: var(--color-success); }
.xscore-ok .xsb-val { color: var(--color-success); }
.xscore-warn { border-color: rgba(245, 197, 66, 0.3); color: var(--color-warning); }
.xscore-warn .xsb-val { color: var(--color-warning); }
.xscore-fail { border-color: rgba(255, 92, 108, 0.3); color: var(--color-error); }
.xscore-fail .xsb-val { color: var(--color-error); }

/* 步骤间箭头 */
.xflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  position: relative;
}
.xarrow-line {
  position: absolute;
  left: 50%;
  width: 1px;
  top: 0; bottom: 0;
  transform: translateX(-50%);
}
.xarrow-label {
  position: relative;
  z-index: 2;
  background: rgba(10, 8, 18, 0.9);
  border: 1px solid rgba(123, 94, 167, 0.3);
  border-radius: 16px;
  padding: 5px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.xarrow-label strong { font-weight: 700; margin-right: 4px; }

/* 主题色 */
.xtheme-blue  .xflow-step { background: linear-gradient(135deg, rgba(15,21,32,0.7), rgba(19,29,46,0.7)); border-color: rgba(31,61,107,0.8); }
.xtheme-blue  .xstep-num  { color: #58a6ff; border-color: rgba(31,61,107,0.8); }
.xtheme-blue  .xstep-title { color: #79c0ff; }
.xtheme-blue  .xstep-layer { color: #58a6ff; border-color: rgba(31,61,107,0.6); }
.xtheme-blue  .xdot        { background: #58a6ff; }
.xtheme-blue  .xexample-bubble { border-color: rgba(31,61,107,0.7); }
.xtheme-blue  .xbubble-label   { color: #58a6ff; }
.xtheme-blue  .xarrow-line { background: linear-gradient(#388bfd55, #a371f755); }
.xtheme-blue  .xarrow-label strong { color: #58a6ff; }

.xtheme-purple .xflow-step { background: linear-gradient(135deg, rgba(17,15,30,0.7), rgba(22,17,42,0.7)); border-color: rgba(61,36,112,0.8); }
.xtheme-purple .xstep-num  { color: #c4b5fd; border-color: rgba(61,36,112,0.8); }
.xtheme-purple .xstep-title { color: #c4b5fd; }
.xtheme-purple .xstep-layer { color: #bc8cff; border-color: rgba(61,36,112,0.6); }
.xtheme-purple .xdot        { background: #bc8cff; }
.xtheme-purple .xexample-bubble { border-color: rgba(61,36,112,0.7); }
.xtheme-purple .xbubble-label   { color: #bc8cff; }
.xtheme-purple .xarrow-line { background: linear-gradient(#a371f755, #3fb95055); }
.xtheme-purple .xarrow-label strong { color: #bc8cff; }

.xtheme-indigo .xflow-step { background: linear-gradient(135deg, rgba(10,21,37,0.7), rgba(13,21,32,0.7)); border-color: rgba(29,53,88,0.8); }
.xtheme-indigo .xstep-num  { color: #79c0ff; border-color: rgba(29,53,88,0.8); }
.xtheme-indigo .xstep-title { color: #00d4ff; }
.xtheme-indigo .xstep-layer { color: #58a6ff; border-color: rgba(29,53,88,0.6); }
.xtheme-indigo .xdot        { background: #58a6ff; }
.xtheme-indigo .xexample-bubble { border-color: rgba(29,53,88,0.7); }
.xtheme-indigo .xbubble-label   { color: #79c0ff; }
.xtheme-indigo .xarrow-line { background: linear-gradient(#79c0ff55, #f7853e55); }
.xtheme-indigo .xarrow-label strong { color: #79c0ff; }

.xtheme-orange .xflow-step { background: linear-gradient(135deg, rgba(26,8,6,0.7), rgba(30,13,20,0.7)); border-color: rgba(192,83,24,0.55); border-width: 1.5px; }
.xtheme-orange .xstep-num  { color: #f7853e; border-color: rgba(192,83,24,0.6); }
.xtheme-orange .xstep-title { color: #f7853e; }
.xtheme-orange .xstep-layer { color: #f7853e; border-color: rgba(192,83,24,0.5); }
.xtheme-orange .xdot        { background: #f7853e; }
.xtheme-orange .xexample-bubble { border-color: rgba(192,83,24,0.5); }
.xtheme-orange .xbubble-label   { color: #f7853e; }
.xtheme-orange .xarrow-line { background: linear-gradient(#f7853e55, #00e5a055); }
.xtheme-orange .xarrow-label strong { color: #f7853e; }

.xtheme-green .xflow-step { background: linear-gradient(135deg, rgba(12,26,15,0.7), rgba(15,30,22,0.7)); border-color: rgba(0,229,160,0.25); }
.xtheme-green .xstep-num  { color: #00e5a0; border-color: rgba(0,229,160,0.3); }
.xtheme-green .xstep-title { color: #00e5a0; }
.xtheme-green .xstep-layer { color: #00e5a0; border-color: rgba(0,229,160,0.25); }
.xtheme-green .xdot        { background: #00e5a0; }
.xtheme-green .xexample-bubble { border-color: rgba(0,229,160,0.2); }
.xtheme-green .xbubble-label   { color: #00e5a0; }
.xtheme-green .xarrow-line { background: linear-gradient(#00e5a055, #00e5a055); }
.xtheme-green .xarrow-label strong { color: #00e5a0; }

.xtheme-human .xflow-step { background: linear-gradient(135deg, rgba(14,26,10,0.7), rgba(18,30,15,0.7)); border: 1.5px dashed rgba(0,229,160,0.3); }
.xtheme-human .xstep-num  { color: #00e5a0; border-color: rgba(0,229,160,0.4); }
.xtheme-human .xstep-title { color: #00e5a0; }
.xtheme-human .xstep-layer { color: #00e5a0; border-color: rgba(0,229,160,0.3); }
.xtheme-human .xdot        { background: #00e5a0; }
.xtheme-human .xexample-bubble { border-color: rgba(0,229,160,0.25); }
.xtheme-human .xbubble-label   { color: #00e5a0; }
.xtheme-human .xarrow-line { background: linear-gradient(#00e5a055, #f5c54255); }
.xtheme-human .xarrow-label strong { color: #f5c542; }

.xtheme-yellow .xflow-step { background: linear-gradient(135deg, rgba(19,16,7,0.7), rgba(26,21,8,0.7)); border-color: rgba(90,62,15,0.8); }
.xtheme-yellow .xstep-num  { color: #f5c542; border-color: rgba(90,62,15,0.8); }
.xtheme-yellow .xstep-title { color: #f5c542; }
.xtheme-yellow .xstep-layer { color: #d29922; border-color: rgba(90,62,15,0.6); }
.xtheme-yellow .xdot        { background: #f5c542; }
.xtheme-yellow .xexample-bubble { border-color: rgba(90,62,15,0.6); }
.xtheme-yellow .xbubble-label   { color: #f5c542; }
.xtheme-yellow .xarrow-line { background: linear-gradient(#f5c54255, #388bfd55); }
.xtheme-yellow .xarrow-label strong { color: #f7853e; }

/* 底部进化飞轮 */
.xflywheel-bar {
  margin-top: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 12px;
  padding: 14px 20px;
  backdrop-filter: blur(12px);
}
.xflywheel-title {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.xflywheel-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.xfw-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(123,94,167,0.25);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
}
.xfw-arrow { color: var(--color-success); font-weight: 700; font-size: 14px; }
.xfw-highlight { background: rgba(247,133,62,0.1); border-color: rgba(247,133,62,0.4); color: #f7853e; }

/* ══════════════════════════════════════════════════════════════
   §35  DEEP-REDESIGN SPECIAL VIEWS  (renderCalendar / renderManager /
        renderClient / renderCompare / renderAfter)
══════════════════════════════════════════════════════════════ */

/* ── Back button shared ── */
.sv-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-base);
  margin-bottom: 24px;
}
.sv-back:hover { border-color: var(--border-strong); color: var(--text-primary); background: rgba(0,212,255,0.05); }

/* ── Stat strip ── */
.sv-stat-strip {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px;
}
.sv-stat-chip {
  flex: 1; min-width: 140px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
}
.sv-stat-chip-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.sv-stat-chip-val   { font-size: 20px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.sv-stat-chip-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.sv-stat-chip.accent { border-color: rgba(0,212,255,0.25); background: rgba(0,212,255,0.04); }
.sv-stat-chip.success { border-color: rgba(0,229,160,0.2); background: rgba(0,229,160,0.04); }
.sv-stat-chip.warning { border-color: rgba(245,197,66,0.2); background: rgba(245,197,66,0.04); }
.sv-stat-chip.purple  { border-color: rgba(196,181,253,0.2); background: rgba(196,181,253,0.04); }

/* ── Section header within special view ── */
.sv-section-hd {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
  display: flex; align-items: center; gap: 8px;
}
.sv-section-hd::after { content: ''; flex: 1; height: 1px; background: var(--border-default); }

/* ════════ CALENDAR ════════ */
.sv-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-default);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sv-cal-dh {
  background: rgba(19,16,30,0.95);
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sv-cal-cell {
  background: var(--bg-card);
  padding: 7px 7px 8px;
  min-height: 90px;
  position: relative;
  vertical-align: top;
}
.sv-cal-cell.out-month { background: rgba(10,8,18,0.5); opacity: .5; }
.sv-cal-cell.is-today  { background: rgba(0,212,255,0.06); box-shadow: inset 0 0 0 1.5px rgba(0,212,255,0.3); }
.sv-cal-cell.is-weekend { background: rgba(255,255,255,0.015); }
.sv-cal-num {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex; align-items: center; gap: 4px;
}
.sv-cal-num.today { color: var(--color-processing); }
.sv-cal-num.today .sv-today-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--color-processing);
  color: #0a0812;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
}
.sv-cal-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 5px 2px 3px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 2px;
  line-height: 1.4;
  cursor: default;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sv-cal-chip.published  { background: rgba(63,185,80,0.18);  color: #3fb950; }
.sv-cal-chip.draft      { background: rgba(136,146,184,0.14); color: var(--text-muted); }
.sv-cal-chip.scheduled  { background: rgba(0,212,255,0.14);  color: var(--color-processing); }
.sv-cal-chip.ai-suggest { background: rgba(196,181,253,0.15); color: var(--knowledge-memory); }
.sv-cal-chip.today-post { background: rgba(0,212,255,0.20);  color: #fff; font-weight: 600; border: 1px solid rgba(0,212,255,0.4); }
.sv-cal-chip .pf-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}

/* cal legend */
.sv-cal-legend {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; font-size: 12px;
}
.sv-cal-legend-item { display: flex; align-items: center; gap: 5px; color: var(--text-muted); }
.sv-cal-legend-dot  { width: 8px; height: 8px; border-radius: 2px; }

/* hotspot panel */
.sv-hotspot-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border-default);
  font-size: 12px;
}
.sv-hotspot-row:last-child { border-bottom: none; }
.sv-hotspot-name { flex: 1; color: var(--text-secondary); }
.sv-hotspot-date { color: var(--text-muted); font-size: 12px; min-width: 80px; }
.sv-hotspot-conf { min-width: 36px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sv-hotspot-bar-track { width: 80px; height: 5px; background: var(--border-default); border-radius: 3px; overflow: hidden; }
.sv-hotspot-bar-fill  { height: 100%; border-radius: 3px; background: var(--knowledge-memory); width: 0; transition: width .8s ease-out; }

/* rhythm panel */
.sv-rhythm-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border-default); font-size: 12px;
}
.sv-rhythm-row:last-child { border-bottom: none; }
.sv-rhythm-name { min-width: 50px; font-weight: 600; }
.sv-rhythm-bar-track { flex: 1; height: 8px; background: var(--border-default); border-radius: 4px; overflow: hidden; }
.sv-rhythm-bar-fill  { height: 100%; border-radius: 4px; width: 0; transition: width .8s ease-out; }
.sv-rhythm-val       { min-width: 60px; text-align: right; color: var(--text-muted); font-size: 12px; }

/* ════════ MANAGER ════════ */
.sv-kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px;
}
@media (max-width: 700px) { .sv-kpi-grid { grid-template-columns: 1fr 1fr; } }
.sv-kpi-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  position: relative; overflow: hidden;
}
.sv-kpi-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
}
.sv-kpi-card.kpi-up::after    { background: var(--color-success); }
.sv-kpi-card.kpi-info::after  { background: var(--color-processing); }
.sv-kpi-card.kpi-warn::after  { background: var(--color-warning); }
.sv-kpi-card.kpi-green::after { background: var(--color-success); }
.sv-kpi-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.sv-kpi-val   { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.sv-kpi-delta { font-size: 12px; margin-top: 5px; }
.sv-kpi-delta.up   { color: var(--color-success); }
.sv-kpi-delta.warn { color: var(--color-warning); }
.sv-kpi-delta.info { color: var(--color-processing); }

/* manager table enhanced */
.sv-mgr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sv-mgr-table th {
  padding: 8px 12px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  text-align: left; white-space: nowrap;
}
.sv-mgr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle; color: var(--text-secondary);
}
.sv-mgr-table tr:last-child td { border-bottom: none; }
.sv-mgr-table tr.sv-avg-row td { background: rgba(255,255,255,0.02); color: var(--text-muted); font-style: italic; }

.sv-member-cell { display: flex; align-items: center; gap: 8px; }
.sv-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #0a0812; flex-shrink: 0;
}
.sv-avatar.blue   { background: #388bfd; }
.sv-avatar.orange { background: #f7853e; }
.sv-avatar.green  { background: #3fb950; }
.sv-avatar.purple { background: #c4b5fd; }
.sv-avatar.gray   { background: #8892b8; color: #0a0812; }

.sv-member-name  { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.sv-member-role  { font-size: 12px; color: var(--text-muted); }

.sv-inline-bar { display: flex; align-items: center; gap: 8px; }
.sv-inline-track { flex: 1; min-width: 60px; height: 6px; background: var(--border-default); border-radius: 3px; overflow: hidden; }
.sv-inline-fill  { height: 100%; border-radius: 3px; width: 0; transition: width .8s ease-out; background: var(--color-processing); }
.sv-inline-fill.ok   { background: var(--color-success); }
.sv-inline-fill.warn { background: var(--color-warning); }
.sv-inline-val       { font-size: 12px; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.sv-inline-val.warn  { color: var(--color-warning); }

.sv-status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.sv-status-badge.ok   { background: rgba(0,229,160,0.12); color: var(--color-success); }
.sv-status-badge.warn { background: rgba(245,197,66,0.15); color: var(--color-warning); }
.sv-status-badge.dot  { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* alert cards */
.sv-alert-card {
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid;
  background: var(--bg-card);
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.sv-alert-card.warn { border-left-color: var(--color-warning); background: rgba(245,197,66,0.04); }
.sv-alert-card.info { border-left-color: var(--color-processing); background: rgba(0,212,255,0.04); }
.sv-alert-title { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.sv-alert-card.warn .sv-alert-title { color: var(--color-warning); }
.sv-alert-card.info .sv-alert-title { color: var(--color-processing); }

/* highlight trio */
.sv-highlight-trio { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.sv-hl-cell {
  text-align: center; padding: 14px 10px;
  border-radius: 10px; border: 1px solid var(--border-default);
  background: var(--bg-card);
}
.sv-hl-val   { font-size: 22px; font-weight: 700; color: var(--color-processing); font-variant-numeric: tabular-nums; }
.sv-hl-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ════════ CLIENT REPORT ════════ */
.sv-report-header {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0,212,255,0.2);
  background: linear-gradient(135deg, rgba(0,212,255,0.05) 0%, rgba(123,94,167,0.08) 100%);
  margin-bottom: 20px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.sv-report-brand { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.sv-report-period { font-size: 12px; color: var(--text-secondary); }
.sv-report-meta-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.sv-report-meta-item { font-size: 12px; color: var(--text-secondary); }
.sv-report-meta-item strong { color: var(--text-primary); }

/* gauge */
.sv-gauge-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
}
.sv-gauge-score { font-size: 48px; font-weight: 700; color: var(--color-success); line-height: 1; font-variant-numeric: tabular-nums; }
.sv-gauge-max   { font-size: 18px; color: var(--text-muted); }
.sv-gauge-label { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.sv-gauge-sub   { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* platform card */
.sv-platform-card {
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  overflow: hidden;
}
.sv-platform-header {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  border-bottom: 1px solid var(--border-default);
}
.sv-platform-dot { width: 8px; height: 8px; border-radius: 50%; }
.sv-platform-body { padding: 12px 16px; }
.sv-platform-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 10px; }
.sv-pm-item { }
.sv-pm-label { font-size: 12px; color: var(--text-muted); }
.sv-pm-val   { font-size: 15px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.sv-pm-delta { font-size: 12px; }
.sv-pm-delta.up   { color: var(--color-success); }
.sv-pm-delta.neutral { color: var(--text-muted); }

/* sparkline */
.sv-sparkline { width: 100%; height: 30px; }

/* top content table */
.sv-top-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sv-top-table th {
  padding: 7px 10px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
  border-bottom: 1px solid var(--border-default); text-align: left;
}
.sv-top-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.sv-top-table tr:last-child td { border-bottom: none; }
.sv-top-table .sv-top-rank { font-weight: 700; font-size: 13px; }

/* sentiment bars */
.sv-sentiment-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px;
}
.sv-sentiment-label { min-width: 28px; color: var(--text-secondary); }
.sv-sentiment-track { flex: 1; height: 10px; background: var(--border-default); border-radius: 5px; overflow: hidden; }
.sv-sentiment-fill  { height: 100%; border-radius: 5px; width: 0; transition: width .8s ease-out; }
.sv-sentiment-fill.pos { background: var(--color-success); }
.sv-sentiment-fill.neu { background: var(--text-muted); }
.sv-sentiment-fill.neg { background: var(--color-error); }
.sv-sentiment-val   { min-width: 36px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* recommendation cards */
.sv-reco-card {
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--color-processing);
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.12);
  border-left-width: 3px;
  font-size: 12px; line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.sv-reco-tag {
  display: inline-flex; align-items: center;
  padding: 1px 7px; border-radius: 4px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 6px; margin-right: 4px;
}
.sv-reco-tag.growth  { background: rgba(0,229,160,0.12); color: var(--color-success); }
.sv-reco-tag.content { background: rgba(0,212,255,0.12); color: var(--color-processing); }
.sv-reco-tag.ad      { background: rgba(245,197,66,0.12); color: var(--color-warning); }

/* ════════ COMPARE ════════ */
.sv-hero-quote {
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid rgba(196,181,253,0.2);
  background: linear-gradient(135deg, rgba(56,139,253,0.06) 0%, rgba(196,181,253,0.08) 100%);
  margin-bottom: 24px;
  font-size: 15px; font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
}
.sv-hero-quote::before {
  content: '"';
  position: absolute; top: 10px; left: 18px;
  font-size: 48px; color: rgba(196,181,253,0.3);
  font-style: normal; line-height: 1;
}
.sv-hero-quote-text { padding-left: 24px; }
.sv-hero-quote-attr { font-size: 12px; color: var(--text-muted); margin-top: 8px; font-style: normal; }

/* comparison 3-col cards */
.sv-cmp-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 700px) { .sv-cmp-cards { grid-template-columns: 1fr; } }
.sv-cmp-card {
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  overflow: hidden;
}
.sv-cmp-card.is-bie {
  border-color: rgba(0,212,255,0.3);
  background: linear-gradient(160deg, rgba(0,212,255,0.05) 0%, rgba(196,181,253,0.06) 100%);
}
.sv-cmp-card-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-default);
}
.sv-cmp-card-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.sv-cmp-card.is-bie .sv-cmp-card-name { color: var(--color-processing); }
.sv-cmp-card-desc { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }
.sv-cmp-card-body { padding: 12px 16px; }

/* mini radar */
.sv-radar-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
.sv-radar-svg  { overflow: visible; }

/* axis score bars */
.sv-axis-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 12px; }
.sv-axis-name  { min-width: 76px; color: var(--text-muted); }
.sv-axis-track { flex: 1; height: 5px; background: var(--border-default); border-radius: 3px; overflow: hidden; }
.sv-axis-fill  { height: 100%; border-radius: 3px; width: 0; transition: width .8s ease-out; }
.sv-axis-val   { min-width: 28px; text-align: right; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }

/* capability table */
.sv-cap-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 24px; }
.sv-cap-table th {
  padding: 8px 12px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  text-align: center;
}
.sv-cap-table th:first-child { text-align: left; }
.sv-cap-table td {
  padding: 9px 12px; border-bottom: 1px solid var(--border-subtle);
  text-align: center; color: var(--text-muted);
}
.sv-cap-table td:first-child { text-align: left; color: var(--text-secondary); font-weight: 500; }
.sv-cap-table tr:last-child td { border-bottom: none; }
.sv-cap-table .col-bie { color: var(--color-success); font-weight: 600; text-align: left; font-size: 12px; }
.sv-cap-table .cap-check { color: var(--color-success); }
.sv-cap-table .cap-cross { color: var(--color-error); }
.sv-cap-table .cap-half  { color: var(--color-warning); }
.sv-cap-table .col-bie-hd { color: var(--color-processing) !important; }

/* roi proof strip */
.sv-roi-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 600px) { .sv-roi-strip { grid-template-columns: 1fr; } }
.sv-roi-cell {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--border-default); background: var(--bg-card);
  text-align: center;
}
.sv-roi-label  { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.sv-roi-before { font-size: 13px; color: var(--color-error); text-decoration: line-through; margin-bottom: 2px; }
.sv-roi-after  { font-size: 22px; font-weight: 700; color: var(--color-success); font-variant-numeric: tabular-nums; }
.sv-roi-delta  { font-size: 12px; color: var(--color-success); margin-top: 4px; }

/* ════════ AFTER ════════ */
/* timeline */
.sv-timeline {
  display: flex; align-items: flex-start;
  padding: 24px 0 20px; position: relative;
  margin-bottom: 28px;
}
.sv-timeline::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 36px; height: 2px;
  background: linear-gradient(90deg, var(--color-error) 0%, var(--color-warning) 33%, var(--color-processing) 66%, var(--color-success) 100%);
  border-radius: 1px;
}
.sv-tl-node { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.sv-tl-dot  {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--bg-base);
  z-index: 1; margin-bottom: 10px;
}
.sv-tl-label { font-size: 12px; font-weight: 700; color: var(--text-primary); text-align: center; }
.sv-tl-sub   { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 3px; line-height: 1.4; max-width: 90px; }

/* before/after metric cards */
.sv-ba-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 700px) { .sv-ba-grid { grid-template-columns: 1fr 1fr; } }
.sv-ba-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  position: relative;
}
.sv-ba-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  border-radius: 12px 12px 0 0;
  background: var(--color-success);
}
.sv-ba-name   { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.sv-ba-before { font-size: 13px; color: var(--color-error); text-decoration: line-through; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.sv-ba-after  { font-size: 26px; font-weight: 700; color: var(--color-success); line-height: 1; font-variant-numeric: tabular-nums; }
.sv-ba-after-unit { font-size: 14px; font-weight: 400; }
.sv-ba-delta {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 6px; padding: 2px 7px; border-radius: 4px;
  font-size: 12px; font-weight: 700;
}
.sv-ba-delta.up   { background: rgba(0,229,160,0.12); color: var(--color-success); }
.sv-ba-delta.down { background: rgba(245,197,66,0.12); color: var(--color-warning); }

/* roi card */
.sv-roi-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0,212,255,0.2);
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, rgba(123,94,167,0.06) 100%);
  margin-bottom: 16px;
}
.sv-roi-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--border-default);
  font-size: 12px;
}
.sv-roi-row:last-child { border-bottom: none; }
.sv-roi-row-label { flex: 1; color: var(--text-secondary); }
.sv-roi-row-val   { font-weight: 700; color: var(--color-success); font-size: 14px; font-variant-numeric: tabular-nums; }
.sv-roi-total {
  margin-top: 12px; padding-top: 12px;
  border-top: 2px solid rgba(0,212,255,0.2);
  display: flex; justify-content: space-between; align-items: center;
}
.sv-roi-total-label { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.sv-roi-total-val   { font-size: 24px; font-weight: 700; color: var(--color-success); font-variant-numeric: tabular-nums; }

/* flywheel insight */
.sv-flywheel-insight {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(196,181,253,0.2);
  background: rgba(196,181,253,0.04);
  font-size: 13px; line-height: 1.75;
  color: var(--text-secondary);
}
.sv-flywheel-insight-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--knowledge-memory);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.sv-flywheel-chain {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border-default);
  font-size: 12px;
}
.sv-chain-node {
  padding: 3px 10px; border-radius: 12px;
  border: 1px solid rgba(196,181,253,0.25);
  background: rgba(196,181,253,0.07);
  color: var(--knowledge-memory);
  white-space: nowrap;
}
.sv-chain-arrow { color: var(--color-success); font-weight: 700; }

/* ══════════════════════════════════════
     自动演示系统：聚光灯 + 控制栏 + 模式选择
══════════════════════════════════════ */

/* ── 聚光灯遮罩 ── */
#demo-spotlight {
  position: fixed;
  z-index: var(--z-spotlight);
  border-radius: 10px;
  box-shadow: 0 0 0 4000px rgba(10, 8, 18, 0.82);
  pointer-events: none;
  opacity: 0;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}
#demo-spotlight.active { opacity: 1; }
#demo-spotlight::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--spot-color, var(--color-processing));
  border-radius: 12px;
  animation: demo-spotlight-pulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes demo-spotlight-pulse {
  0%, 100% { box-shadow: 0 0 8px color-mix(in srgb, var(--spot-color, var(--color-processing)) 30%, transparent); }
  50%      { box-shadow: 0 0 24px color-mix(in srgb, var(--spot-color, var(--color-processing)) 60%, transparent),
                        inset 0 0 16px color-mix(in srgb, var(--spot-color, var(--color-processing)) 10%, transparent); }
}

.demo-focus {
  position: relative !important;
  z-index: 860 !important;
}

/* ── 控制栏 ── */
#demo-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-demo-ctrl);
  background: rgba(13, 10, 22, 0.92);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 14px;
  padding: 10px 18px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,212,255,0.08);
  min-width: 480px;
  max-width: 90vw;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#demo-controls.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.demo-ctrl-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-ctrl-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}
.demo-ctrl-btn:hover { color: var(--text-primary); border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.demo-ctrl-btn:active { transform: scale(0.95); }
.demo-progress {
  flex: 1;
  height: 4px;
  background: var(--border-default);
  border-radius: 2px;
  overflow: hidden;
}
.demo-progress-fill {
  height: 100%;
  background: var(--color-processing);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.demo-step-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'SF Mono', monospace;
  min-width: 48px;
  text-align: center;
}
#demo-speed {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 3px 6px;
  cursor: pointer;
  outline: none;
}
#demo-speed:focus { border-color: var(--color-processing); }
.demo-narration-text {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 48px;
  overflow: hidden;
}

/* ── 模式选择弹窗 ── */
#demo-mode-picker {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  z-index: var(--z-demo-picker);
  display: flex;
  align-items: center;
  justify-content: center;
}
#demo-mode-picker.hidden {
  display: none;
}
.demo-picker-panel {
  background: rgba(10, 8, 18, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  min-width: 280px;
}
.demo-picker-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.demo-picker-panel button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 10px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--t-base);
}
.demo-picker-panel button:hover {
  border-color: var(--color-processing);
  background: rgba(0,212,255,0.06);
}
.demo-picker-panel button:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════
   自动演示 — 高亮 & 控制条
══════════════════════════════════════ */
.narrate-highlight {
  outline: 2px solid rgba(0, 212, 255, 0.85) !important;
  outline-offset: 5px;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15), 0 0 24px rgba(0, 212, 255, 0.25) !important;
  border-radius: 6px !important;
  transition: outline 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 2;
  animation: narrate-pulse 2s ease-in-out infinite;
}
@keyframes narrate-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,212,255,0.15), 0 0 24px rgba(0,212,255,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(0,212,255,0.25), 0 0 36px rgba(0,212,255,0.40); }
}

/* ── 浮动控制条 ── */
#auto-demo-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 960;
  background: rgba(8, 10, 20, 0.94);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 44px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.08);
  white-space: nowrap;
  transition: opacity var(--t-base), transform var(--t-base);
}
#auto-demo-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

/* 收起态：隐藏除 label 和 toggle-btn 之外的所有直接子元素 */
#auto-demo-bar.bar-collapsed > *:not(.tts-label):not(.tts-toggle-btn) {
  display: none;
}
#auto-demo-bar.bar-collapsed {
  gap: 8px;
  padding: 8px 14px;
}

/* 收起/展开切换按钮 */
.tts-toggle-btn {
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  transition: transform var(--t-base), color var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
}
.tts-toggle-btn:hover {
  color: var(--text-primary);
  border-color: rgba(0,212,255,0.4);
}
#auto-demo-bar.bar-collapsed .tts-toggle-btn {
  transform: rotate(180deg);
}

.tts-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.tts-phase-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 60px;
}
.tts-phase-info span {
  font-size: 12px;
  color: rgba(0,212,255,0.8);
  font-variant-numeric: tabular-nums;
  font-family: SF Mono, Menlo, monospace;
}

.tts-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tts-progress-track {
  width: 120px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
#tts-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(0,212,255,0.8), rgba(0,229,160,0.8));
  border-radius: 2px;
  transition: width 0.5s ease;
}
#tts-progress-text {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
}

.tts-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.tts-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}
.tts-btn:hover {
  background: rgba(0,212,255,0.18);
  border-color: rgba(0,212,255,0.5);
  transform: scale(1.08);
}
.tts-btn.primary {
  width: 38px;
  height: 38px;
  font-size: 15px;
  background: rgba(0,212,255,0.18);
  border-color: rgba(0,212,255,0.45);
}
.tts-btn.stop-btn:hover {
  background: rgba(255,80,80,0.2);
  border-color: rgba(255,80,80,0.5);
}

.tts-voice-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
#tts-voice-select,
#tts-phase-jump {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-primary);
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}
#tts-voice-select { max-width: 160px; }
#tts-phase-jump   { max-width: 120px; }
#tts-voice-select:focus,
#tts-phase-jump:focus {
  border-color: rgba(0,212,255,0.5);
}
#tts-voice-select option,
#tts-phase-jump option {
  background: #0d0f1e;
  color: var(--text-primary);
}
#tts-status-dot {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.3s;
  flex-shrink: 0;
}
#tts-status-dot.ok    { color: var(--color-success); }
#tts-status-dot.fail  { color: var(--color-error); }
#tts-status-dot.busy  { color: var(--color-warning); animation: narrate-pulse 1s infinite; }

.tts-speed-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
#tts-speed-slider {
  width: 64px;
  accent-color: rgba(0,212,255,0.8);
  cursor: pointer;
}
#tts-speed-label {
  font-size: 12px;
  color: rgba(0,212,255,0.8);
  font-variant-numeric: tabular-nums;
  font-family: SF Mono, Menlo, monospace;
  min-width: 28px;
}

/* ── AI 讲解框组件 ── */
.ai-explanation-box {
  background: color-mix(in srgb, var(--accent-primary) 3%, transparent);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  margin: 16px 0;
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.ai-explanation-box:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.1);
}

.ai-explanation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 212, 255, 0.06);
  cursor: pointer;
  user-select: none;
  transition: background var(--t-base);
}

.ai-explanation-box:hover .ai-explanation-header {
  background: rgba(0, 212, 255, 0.09);
}

.ai-explanation-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  color: var(--accent-primary);
  transition: transform var(--t-base) cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.ai-explanation-box.collapsed .ai-explanation-toggle-icon {
  transform: rotate(-90deg);
}

.ai-explanation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 13px;
  flex-shrink: 0;
}

.ai-explanation-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-explanation-label {
  display: inline-block;
  font-size: 12px;
  padding: 2px 6px;
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-primary);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.ai-explanation-content {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height var(--t-slow) cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity var(--t-base),
              padding var(--t-base);
  opacity: 1;
  padding: 14px;
  border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.ai-explanation-box.collapsed .ai-explanation-content {
  max-height: 0;
  opacity: 0;
  padding: 0 14px;
  border-top: none;
}

.ai-explanation-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.ai-explanation-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.ai-explanation-text p {
  margin: 0 0 8px 0;
}

.ai-explanation-text p:last-child {
  margin-bottom: 0;
}

.ai-explanation-list {
  margin: 8px 0;
  padding-left: 20px;
}

.ai-explanation-list li {
  margin: 6px 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ai-explanation-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* 讲解框内的代码块样式 */
.ai-explanation-box .code-block {
  background: rgba(10, 8, 18, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-code);
  overflow-x: auto;
  font-family: SF Mono, Menlo, monospace;
  max-height: 200px;
  overflow-y: auto;
}

/* 讲解框内的提示框 */
.ai-explanation-tip {
  background: rgba(0, 212, 255, 0.06);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 4px 4px 0;
  padding: 10px 12px;
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-explanation-tip strong {
  color: var(--text-primary);
}

.ai-explanation-tip.success {
  background: rgba(0, 229, 160, 0.06);
  border-left-color: var(--color-success);
  color: rgba(0, 229, 160, 0.9);
}

.ai-explanation-tip.warning {
  background: rgba(245, 197, 66, 0.06);
  border-left-color: var(--color-warning);
  color: rgba(245, 197, 66, 0.9);
}

.ai-explanation-tip.error {
  background: rgba(255, 92, 108, 0.06);
  border-left-color: var(--color-error);
  color: rgba(255, 92, 108, 0.9);
}

/* ── 讲解框浮动控制按钮 ── */
.explanation-control-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 60px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  color: var(--text-code);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 800;
  transition: all var(--t-base);
  font-family: inherit;
  backdrop-filter: blur(10px);
}

.explanation-control-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: scale(1.1);
}

.explanation-control-btn:active {
  transform: scale(0.95);
}

/* 当讲解框收缩时改变按钮样式 */
.explanation-control-btn.collapsed {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .explanation-control-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 55px;
    font-size: 12px;
  }
}

/* ========================= S0 规划应用样式 ========================= */

.planner-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  color: #e0e0e0;
  overflow: hidden;
}

.planner-header {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.planner-header h1 {
  margin: 0 0 5px 0;
  font-size: 24px;
  font-weight: 600;
}

.planner-header .version {
  margin: 0;
  font-size: 12px;
  color: #888;
}

.planner-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

.planner-sidebar {
  border-right: 1px solid var(--border-default);
  padding: 20px 0;
  background: rgba(10, 8, 18, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-btn {
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  color: #b0b0b0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-size: 14px;
}

.module-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.module-btn.active {
  background: rgba(100, 200, 255, 0.2);
  border-color: #64c8ff;
  color: #64c8ff;
}

.planner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.planner-actions .btn {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.planner-actions .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.planner-content {
  padding: 24px;
}

.module-content {
  animation: fadeIn 0.3s ease;
}

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

.module-panel {
  max-width: 100%;
}

.module-panel h2 {
  margin-bottom: 30px;
  font-size: 20px;
  color: var(--text-primary);
}

.module-panel h3 {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.module-panel h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.section {
  margin-bottom: 24px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.analysis-item {
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all var(--t-base);
}
.analysis-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 212, 255, 0.15);
}

.analysis-item .label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.analysis-item .value {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: var(--phase-1);
  margin-bottom: 4px;
}

.analysis-item .rating {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.persona-card {
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all var(--t-base);
}
.persona-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 212, 255, 0.15);
}

.persona-card h4 {
  margin: 0 0 8px 0;
  color: #fff;
}

.persona-card .percentage {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #64c8ff;
  font-weight: bold;
}

.persona-info p {
  margin: 6px 0;
  font-size: 12px;
  color: #b0b0b0;
}

.positioning-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(100, 200, 255, 0.3);
  border-radius: 8px;
  padding: 20px;
}

.unique-value {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #fff;
  font-style: italic;
}

.diff-index {
  margin: 0;
  font-size: 12px;
  color: #888;
}

.budget-allocations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.allocation-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
}

.allocation-card h4 {
  margin: 0 0 12px 0;
  color: #fff;
}

.allocation-details p {
  margin: 6px 0;
  font-size: 12px;
  color: #b0b0b0;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.scenario-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.scenario-card h4 {
  margin: 0 0 8px 0;
  color: #fff;
}

.scenario-card .prob {
  margin: 0 0 12px 0;
  font-size: 12px;
  color: #888;
}

.scenario-data p {
  margin: 6px 0;
  font-size: 12px;
  color: #64c8ff;
  font-weight: bold;
}

.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-item {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.pillar-item > :first-child {
  font-size: 12px;
  color: #b0b0b0;
}

.weight-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.weight-fill {
  height: 100%;
  background: #64c8ff;
}

.pillar-item .weight {
  font-size: 12px;
  color: #64c8ff;
  text-align: right;
}

.experiments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.experiment-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
}

.experiment-card h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #fff;
}

.experiment-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #888;
}

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

.compliance-list li {
  padding: 8px 0;
  font-size: 12px;
  color: #b0b0b0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.competitors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.competitor-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
}

.competitor-card h4 {
  margin: 0 0 12px 0;
  color: #fff;
}

.competitor-metrics p {
  margin: 6px 0;
  font-size: 12px;
  color: #b0b0b0;
}

.sentiment-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
}

.sentiment-overall {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #64c8ff;
  font-weight: bold;
}

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

.alert-badge {
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
}

.alert-badge.alert-high {
  background: rgba(255, 100, 100, 0.2);
  border-left: 3px solid #ff6464;
  color: #ff9999;
}

.alert-badge.alert-medium {
  background: rgba(255, 165, 0, 0.2);
  border-left: 3px solid #ffa500;
  color: #ffb84d;
}

.alert-badge strong {
  display: block;
  margin-bottom: 6px;
}

.alert-badge p {
  margin: 4px 0;
}

.alert-badge small {
  display: block;
  margin-top: 6px;
  color: #888;
}

/* ========================= 演示卡片样式 ========================= */

.prediction-card {
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.result-card .label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.result-card .value {
  font-size: 24px;
  font-weight: bold;
  color: #64c8ff;
  margin-bottom: 4px;
}

.alert-system {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.alert-item {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid;
  background: rgba(255, 255, 255, 0.02);
}

.alert-item.high {
  border-left-color: #ff6464;
  background: rgba(255, 100, 100, 0.1);
}

.alert-item.medium {
  border-left-color: #ffa500;
  background: rgba(255, 165, 0, 0.1);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.kpi-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 28px;
  font-weight: bold;
  color: #64c8ff;
}

.closed-loop-panel {
  background: rgba(100, 200, 255, 0.1);
  border: 2px solid rgba(100, 200, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.loop-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.metric {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.metric .label {
  font-size: 12px;
  color: #888;
}

.metric .value {
  font-size: 13px;
  color: #64c8ff;
  font-weight: bold;
}

/* ========================= S0 规划应用样式 ========================= */

.planner-container {
  display: grid;
  grid-template-columns: 295px 1fr;
  gap: 20px;
  height: 100vh;
  padding: 20px;
  background: var(--bg-dark);
  color: var(--text-primary);
}

.planner-sidebar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.planner-header {
  position: relative;
}

.planner-header h1 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.planner-version {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: rgba(255, 100, 100, 0.2);
  color: #ff6464;
}

.module-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tab-btn {
  padding: 12px 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--t-base);
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.tab-btn.active {
  background: rgba(100, 200, 255, 0.15);
  color: #64c8ff;
  border-left: 3px solid #64c8ff;
  border-radius: 6px;
}

.planner-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.stat-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #64c8ff, #388bfd);
  border-radius: 3px;
  transition: width var(--t-slow);
}

.stat-value {
  font-size: 14px;
  color: #64c8ff;
  font-weight: 600;
}

.planner-main {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 12px;
  padding: 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 200, 255, 0.3) transparent;
}

.module-content {
  animation: fadeIn var(--t-base);
}

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

.planner-actions {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 200, 255, 0.3) transparent;
}

.actions-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.btn-action {
  padding: 12px 16px;
  border: 1px solid rgba(100, 200, 255, 0.3);
  background: rgba(100, 200, 255, 0.1);
  color: #64c8ff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--t-base);
  width: 100%;
  text-align: center;
}

.btn-action:hover {
  background: rgba(100, 200, 255, 0.15);
  border-color: rgba(100, 200, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 200, 255, 0.15);
}

.btn-action.btn-primary {
  background: linear-gradient(135deg, #64c8ff, #388bfd);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

.btn-action.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(100, 200, 255, 0.25);
}

.actions-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.actions-hint {
  background: rgba(100, 200, 255, 0.08);
  border-left: 3px solid #64c8ff;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.actions-hint strong {
  color: #64c8ff;
  display: block;
  margin-bottom: 4px;
}

.actions-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}


/* ========================= S0 规划模块UI样式 ========================= */

.module-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.module-panel h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  border-bottom: 2px solid rgba(100, 200, 255, 0.3);
  padding-bottom: 12px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 10px;
}

.section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.section-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: -8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-input,
.form-group input[type="range"],
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid rgba(100, 200, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  transition: all var(--t-base);
}

.form-input:focus,
.form-group input[type="range"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #64c8ff;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 8px rgba(100, 200, 255, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 12px;
  align-items: center;
}

.range-input {
  cursor: pointer;
}

.input-value {
  text-align: right;
  font-weight: 600;
  color: #64c8ff;
}

/* 用户画像卡片 */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.persona-card {
  background: rgba(100, 200, 255, 0.08);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(100, 200, 255, 0.1);
  border-bottom: 1px solid rgba(100, 200, 255, 0.2);
}

.persona-name {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}

.persona-percentage {
  font-size: 12px;
  font-weight: 600;
  color: #64c8ff;
  background: rgba(100, 200, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.persona-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.persona-row .label {
  color: var(--text-secondary);
}

.persona-row .value {
  color: var(--text-primary);
  font-weight: 500;
}

.card-footer {
  padding: 0 12px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  padding-top: 8px;
}

/* 定位指数 */
.positioning-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.positioning-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.item-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.item-fill {
  height: 100%;
  background: linear-gradient(90deg, #64c8ff, #388bfd);
  border-radius: 4px;
  transition: width var(--t-slow);
}

.item-value {
  font-size: 12px;
  font-weight: 600;
  color: #64c8ff;
}

/* 投资规划 */
.allocations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.allocation-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  font-weight: 600;
  color: #64c8ff;
  font-size: 14px;
}

.allocation-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.metric-label {
  color: var(--text-secondary);
  min-width: 40px;
}

.metric-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, #39d3c3, #64c8ff);
  border-radius: 3px;
}

.metric-value {
  color: #64c8ff;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

.allocation-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.allocation-row .row-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* 情景分析 */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.scenario-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.scenario-prob {
  font-size: 12px;
  color: var(--text-secondary);
}

.scenario-metric {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.scenario-metric .label {
  color: var(--text-secondary);
}

.scenario-metric .value {
  color: #64c8ff;
  font-weight: 600;
}

.scenario-desc {
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  padding-top: 8px;
}

/* 内容支柱 */
.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pillar-header h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.pillar-weight {
  background: rgba(100, 200, 255, 0.2);
  color: #64c8ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.pillar-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.pillar-types {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  flex-wrap: wrap;
}

.type-label {
  color: var(--text-secondary);
}

.type-tag {
  background: rgba(100, 200, 255, 0.15);
  color: #64c8ff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.pillar-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  padding-top: 8px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.metric-item span:first-child {
  color: var(--text-secondary);
}

.metric-item strong {
  color: #64c8ff;
  font-weight: 600;
}

/* A/B测试 */
.experiments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.experiment-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

.exp-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.exp-label {
  color: var(--text-secondary);
  min-width: 60px;
}

.exp-value,
.exp-variants {
  color: var(--text-primary);
}

/* 合规规则 */
.compliance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compliance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(100, 200, 255, 0.1);
}

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

.compliance-check {
  color: #3fb950;
  font-weight: 600;
  flex-shrink: 0;
}

.compliance-text {
  flex: 1;
  line-height: 1.5;
}

/* 竞品卡片 */
.competitors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.competitor-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-header {
  border-bottom: 1px solid rgba(100, 200, 255, 0.15);
  padding-bottom: 8px;
}

.comp-header h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.comp-segment {
  font-size: 12px;
  color: var(--text-secondary);
}

.comp-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 12px;
}

.comp-metrics .metric-item {
  flex-direction: column;
  gap: 2px;
}

.comp-metrics .metric-label {
  color: var(--text-secondary);
}

.comp-metrics .metric-value {
  color: #64c8ff;
  font-weight: 600;
}

.comp-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.comp-row strong {
  color: var(--text-primary);
}

.comp-trends {
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trend-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.trend-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.trend-tag {
  background: rgba(100, 200, 255, 0.15);
  color: #64c8ff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.comp-share {
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  padding-top: 8px;
}

/* 舆情监测 */
.sentiment-overview {
  background: rgba(100, 200, 255, 0.08);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.sentiment-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.score-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.score-value {
  font-size: 24px;
  font-weight: 700;
  color: #64c8ff;
}

.score-trend {
  font-size: 12px;
  color: var(--text-secondary);
}

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

.alerts-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.alert-item {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-item.high {
  border-left-color: #ff4757;
  background: rgba(255, 71, 87, 0.05);
}

.alert-item.medium {
  border-left-color: #ffa502;
  background: rgba(255, 165, 2, 0.05);
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.alert-header strong {
  font-size: 12px;
  color: var(--text-primary);
  flex: 1;
}

.alert-severity {
  font-size: 12px;
  font-weight: 600;
  background: rgba(100, 200, 255, 0.2);
  color: #64c8ff;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.alert-detail {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.alert-action {
  font-size: 12px;
  color: var(--text-primary);
  padding-top: 4px;
  border-top: 1px solid rgba(100, 200, 255, 0.1);
}

.keyword-tracking {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  margin-top: 12px;
  padding-top: 12px;
}

.keywords-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.keywords-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.keywords-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.keyword {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.keyword.positive {
  background: rgba(63, 185, 80, 0.2);
  color: #3fb950;
}

.keyword.negative {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
}

/* 表单操作按钮 */
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
}

.btn-save {
  padding: 10px 20px;
  border: 1px solid rgba(100, 200, 255, 0.3);
  background: rgba(100, 200, 255, 0.1);
  color: #64c8ff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--t-base);
}

.btn-save:hover {
  background: rgba(100, 200, 255, 0.15);
  border-color: rgba(100, 200, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 200, 255, 0.15);
}

/* ========================= S5-S9 阶段增强样式 ========================= */

/* S5 发布预测卡片 */
.prediction-section,
.recommendation-section,
.alert-section,
.dashboard-section,
.bestpractices-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 12px;
}

.prediction-section h3,
.recommendation-section h3,
.alert-section h3,
.dashboard-section h3,
.bestpractices-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  border-bottom: 2px solid rgba(100, 200, 255, 0.2);
  padding-bottom: 12px;
}

/* 发布时间分析 */
.time-analysis-card {
  background: rgba(100, 200, 255, 0.08);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
}

.card-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.time-slot {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
}

.time-slot:hover {
  background: rgba(100, 200, 255, 0.1);
  border-color: rgba(100, 200, 255, 0.4);
}

.time-slot.active {
  background: rgba(100, 200, 255, 0.2);
  border-color: #64c8ff;
  box-shadow: 0 0 8px rgba(100, 200, 255, 0.3);
}

.time-slot .time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.time-slot .lift {
  font-size: 12px;
  font-weight: 600;
  color: #64c8ff;
}

.time-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(100, 200, 255, 0.1);
}

/* 结果网格 */
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.result-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.result-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.result-rate,
.result-range,
.result-tip {
  font-size: 12px;
  color: var(--text-secondary);
}

.result-confidence {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 付费投放预估 */
.paid-estimation {
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 8px;
  padding: 16px;
}

.paid-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paid-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 165, 0, 0.1);
}

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

.metric-label {
  color: var(--text-secondary);
}

.metric-value {
  color: var(--text-primary);
  font-weight: 600;
}

.paid-row.highlight .metric-value {
  color: #ffa502;
  font-weight: 700;
  font-size: 14px;
}

/* 推荐卡片 */
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommendation-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rec-action {
  background: rgba(100, 200, 255, 0.2);
  color: #64c8ff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.rec-content-id {
  font-size: 12px;
  color: var(--text-secondary);
}

.rec-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-item .label {
  font-size: 12px;
  color: var(--text-secondary);
}

.metric-item .value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.rec-budget {
  background: rgba(100, 200, 255, 0.08);
  border-left: 3px solid #64c8ff;
  border-radius: 4px;
  padding: 8px 12px;
}

.budget-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.budget-value {
  font-size: 14px;
  font-weight: 700;
  color: #64c8ff;
}

.btn-approve {
  padding: 8px 16px;
  background: linear-gradient(135deg, #64c8ff, #388bfd);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--t-base);
}

.btn-approve:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 200, 255, 0.3);
}

/* 优化规则 */
.optimization-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
}

.optimization-section h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.optimization-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
}

.status-indicator.active {
  background: #3fb950;
  box-shadow: 0 0 8px rgba(63, 185, 80, 0.5);
}

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

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.rule-card {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(100, 200, 255, 0.3);
  border-radius: 4px;
  padding: 10px;
}

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

.rule-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.rule-status {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(100, 200, 255, 0.15);
  color: #64c8ff;
}

.rule-status.inactive {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.rule-condition,
.rule-action {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0;
}

/* 操作日志 */
.operation-log {
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  padding-top: 12px;
}

.log-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(100, 200, 255, 0.05);
}

.log-time {
  color: var(--text-secondary);
  min-width: 50px;
}

.log-action {
  flex: 1;
  color: var(--text-primary);
  margin: 0 12px;
}

.log-status {
  color: #3fb950;
  font-weight: 600;
}

/* 告警卡片 */
.alerts-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-card {
  border-left: 4px solid;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-card.alert-critical {
  border-left-color: #ff4757;
  background: rgba(255, 71, 87, 0.05);
}

.alert-card.alert-high {
  border-left-color: #ff4757;
  background: rgba(255, 71, 87, 0.05);
}

.alert-card.alert-medium {
  border-left-color: #ffa502;
  background: rgba(255, 165, 2, 0.05);
}

.alert-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-icon {
  font-size: 20px;
}

.alert-info {
  flex: 1;
}

.alert-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.alert-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.alert-severity {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(100, 200, 255, 0.2);
  color: #64c8ff;
  border-radius: 3px;
}

.alert-details {
  display: flex;
  gap: 16px;
  font-size: 12px;
  padding: 8px 0;
  border: 1px solid rgba(100, 200, 255, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
}

.detail-item {
  display: flex;
  gap: 4px;
}

.detail-label {
  color: var(--text-secondary);
}

.detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

.alert-rootcause {
  background: rgba(100, 200, 255, 0.08);
  border-left: 3px solid #64c8ff;
  border-radius: 4px;
  padding: 10px 12px;
}

.rootcause-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.rootcause-value {
  font-size: 12px;
  color: var(--text-primary);
}

.alert-actions {
  display: flex;
  gap: 8px;
}

.btn-action {
  padding: 6px 12px;
  background: rgba(100, 200, 255, 0.1);
  border: 1px solid rgba(100, 200, 255, 0.2);
  color: #64c8ff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--t-base);
}

.btn-action:hover {
  background: rgba(100, 200, 255, 0.15);
  border-color: rgba(100, 200, 255, 0.4);
}

/* KPI看板 */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.kpi-value {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.kpi-trend {
  font-size: 12px;
  font-weight: 600;
}

.kpi-trend.up {
  color: #3fb950;
}

.kpi-trend.down {
  color: #ff4757;
}

.kpi-label-small {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 诊断卡片 */
.diagnosis-section {
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  padding-top: 20px;
}

.diagnosis-section h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.diagnosis-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.diagnosis-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.diagnosis-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.rootcauses-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.rootcause-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cause-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.cause-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.cause-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #64c8ff, #388bfd);
  border-radius: 4px;
}

.cause-weight {
  font-size: 12px;
  font-weight: 600;
  color: #64c8ff;
}

.cause-detail {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 建议 */
.suggestions {
  background: rgba(100, 200, 255, 0.08);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 6px;
  padding: 12px;
}

.suggestions-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.suggestion-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(100, 200, 255, 0.1);
}

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

.sugg-action {
  color: var(--text-secondary);
}

.sugg-impact {
  color: #64c8ff;
  font-weight: 600;
}

/* 最佳实践 */
.practices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.practice-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
}

.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(100, 200, 255, 0.1);
}

.practice-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.practice-rating {
  font-size: 14px;
}

.practice-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.practice-metrics .metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.metric-name {
  font-size: 12px;
  color: var(--text-secondary);
}

.metric-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.practice-examples {
  background: rgba(100, 200, 255, 0.08);
  border-radius: 6px;
  padding: 10px;
}

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

.example-tag {
  display: inline-block;
  background: rgba(100, 200, 255, 0.15);
  color: #64c8ff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  margin: 2px 4px 2px 0;
}

/* 学习反馈 */
.feedback-section {
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  padding-top: 20px;
}

.feedback-section h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.feedback-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.feedback-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feedback-label {
  min-width: 100px;
  font-size: 12px;
  color: var(--text-secondary);
}

.feedback-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.feedback-fill {
  height: 100%;
  background: linear-gradient(90deg, #64c8ff, #388bfd);
  border-radius: 4px;
  transition: width var(--t-slow);
}

.feedback-value {
  min-width: 50px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: #64c8ff;
}

.feedback-summary {
  background: rgba(100, 200, 255, 0.08);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feedback-summary p {
  margin: 0;
}

.feedback-summary strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════════════
   S0规划可视化组件样式
════════════════════════════════════════════════════════════════════════════ */

/* ── S0 面板容器 ── */
.panel {
  background: linear-gradient(135deg, rgba(13, 10, 20, 0.95) 0%, rgba(15, 12, 28, 0.95) 100%);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.panel h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 16px 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 12px 0 8px 0;
}

/* ── 市场分析面板 ── */
.market-analysis-panel .analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.score-card {
  background: rgba(56, 139, 253, 0.08);
  border: 1px solid rgba(56, 139, 253, 0.2);
  border-radius: 6px;
  padding: 16px;
}

.score-display {
  text-align: center;
  margin: 12px 0;
}

.score-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--phase-1);
  font-variant-numeric: tabular-nums;
}

.score-tier {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.score-breakdown {
  margin-top: 12px;
  border-top: 1px solid rgba(56, 139, 253, 0.1);
  padding-top: 12px;
}

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

.mini-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--phase-1), var(--phase-5));
  border-radius: 2px;
  flex: 1;
}

.details-card {
  background: rgba(100, 200, 255, 0.06);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 6px;
  padding: 16px;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.detail-row .label {
  color: var(--text-muted);
}

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

/* ── 机会窗口 ── */
.opportunities-section {
  margin-top: 20px;
}

.opportunity-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.tab-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 200ms ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: rgba(56, 139, 253, 0.2);
  border-color: var(--phase-1);
  color: var(--phase-1);
}

.opportunity-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.opportunity-content.hidden {
  display: none;
}

.opportunity-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
  transition: all 200ms ease;
}

.opportunity-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.opp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.opp-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.opp-leverage,
.opp-period,
.opp-rank {
  font-size: 12px;
  color: var(--text-code);
  background: rgba(100, 200, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.opp-details,
.opp-metrics {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.opp-details span,
.opp-metrics .metric {
  display: flex;
  align-items: center;
  gap: 4px;
}

.priority-critical {
  color: #ff5c6c;
}

.priority-high {
  color: #f5c542;
}

.priority-medium {
  color: #00e5a0;
}

/* ── 用户分群面板 ── */
.segmentation-panel .segmentation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.segment-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 6px;
  padding: 12px;
  transition: all 250ms ease;
}

.segment-card:hover {
  background: linear-gradient(135deg, rgba(100, 200, 255, 0.08) 0%, rgba(100, 200, 255, 0.04) 100%);
  border-color: rgba(100, 200, 255, 0.4);
  transform: translateY(-4px);
}

.segment-rank {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-code);
  margin-bottom: 4px;
}

.segment-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.segment-size {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px;
  background: rgba(100, 200, 255, 0.06);
  border-radius: 4px;
}

.size-label {
  font-size: 12px;
  color: var(--text-muted);
}

.size-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-code);
  font-variant-numeric: tabular-nums;
}

.segment-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.metric-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.metric-mini .label {
  color: var(--text-muted);
}

.metric-mini .value {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.segment-revenue {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 12px;
}

.contribution-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.contribution-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--phase-1), var(--phase-6));
}

.segment-strategy {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  border-left: 2px solid var(--phase-1);
}

/* ── 心理画像分布 ── */
.psychographic-section {
  margin-top: 20px;
}

.psychographic-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.psycho-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.psycho-bar-container {
  flex: 0 0 180px;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.psycho-bar {
  height: 100%;
}

.psycho-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.psycho-name {
  color: var(--text-primary);
  font-weight: 600;
}

.psycho-percentage {
  color: var(--text-code);
  font-variant-numeric: tabular-nums;
}

.psycho-values {
  color: var(--text-muted);
  font-size: 12px;
}

.psycho-clv {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── CLV计算器 ── */
.clv-projection {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.1);
  border-radius: 6px;
  padding: 16px;
}

.clv-inputs {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin: 12px 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.input-group label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.clv-input {
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
}

.btn-calculate {
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--phase-1), var(--phase-5));
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-calculate:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(56, 139, 253, 0.3);
}

.clv-result {
  margin-top: 12px;
  padding: 12px;
  background: rgba(100, 200, 255, 0.05);
  border-radius: 4px;
  border-left: 3px solid var(--phase-1);
}

.clv-result-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-main {
  text-align: center;
}

.result-label {
  font-size: 12px;
  color: var(--text-muted);
}

.result-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-code);
  font-variant-numeric: tabular-nums;
}

.yearly-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.year-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.year-item .year {
  color: var(--text-muted);
  width: 30px;
}

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

.year-item .retention {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: auto;
}

/* ── 品牌定位面板 ── */
.positioning-panel .differentiation-section {
  margin-bottom: 20px;
}

.dimension-item {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dimension-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.dimension-advantage {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dimension-advantage.positive {
  color: var(--color-success);
}

.dimension-advantage.negative {
  color: var(--color-error);
}

.dimension-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.dimension-our,
.dimension-competitor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.dimension-bar {
  height: 4px;
  border-radius: 2px;
  flex: 0 0 100px;
}

.dimension-label {
  color: var(--text-muted);
  font-size: 12px;
  flex: 1;
}

.dimension-action {
  font-size: 12px;
  color: var(--text-code);
  margin-top: 4px;
}

.strengths-opportunities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.strengths-opportunities .box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
}

.strengths-opportunities h4 {
  margin: 0 0 8px 0;
}

.strengths-opportunities .item {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0;
}

/* ── 信任路径 ── */
.trust-roadmap {
  margin-top: 20px;
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0;
}

.roadmap-phase {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--phase-1);
  border-radius: 4px;
}

.phase-marker {
  flex: 0 0 60px;
  text-align: center;
}

.phase-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--phase-1);
}

.phase-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.phase-content {
  flex: 1;
}

.phase-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.phase-duration,
.phase-target {
  font-size: 12px;
  color: var(--text-secondary);
}

.phase-actions {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-item {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── 内容规划面板 ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.pillar-card {
  background: linear-gradient(135deg, rgba(247, 133, 62, 0.08) 0%, rgba(247, 133, 62, 0.02) 100%);
  border: 1px solid rgba(247, 133, 62, 0.2);
  border-radius: 6px;
  padding: 12px;
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.pillar-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.pillar-weight {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-code);
  background: rgba(100, 200, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

.pillar-output,
.pillar-engagement {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pillar-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.platform-tag {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-ideas {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}

.ideas-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.idea-item {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 1px;
}

/* ── 平台适配 ── */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.platform-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 200, 255, 0.1);
  border-radius: 6px;
  padding: 12px;
}

.platform-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.platform-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── 月度日历 ── */
.month-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin: 12px 0;
}

.month-card {
  background: rgba(100, 200, 255, 0.06);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 4px;
  padding: 8px;
  text-align: center;
  font-size: 12px;
}

.month-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.month-theme {
  color: var(--text-code);
  font-size: 12px;
  margin-bottom: 2px;
}

.month-focus {
  color: var(--text-muted);
  font-size: 12px;
}

/* ── 投放规划面板 ── */
.score-badge {
  background: linear-gradient(135deg, var(--phase-1), var(--phase-6));
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* ── 预算优化 ── */
.optimization-summary {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  padding: 12px;
  background: rgba(100, 200, 255, 0.05);
  border-radius: 6px;
}

.summary-item {
  font-size: 12px;
  color: var(--text-secondary);
}

.summary-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.budget-allocation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.budget-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.budget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.channel-name {
  color: var(--text-primary);
  font-weight: 600;
}

.allocation-percent {
  color: var(--text-code);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.budget-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.budget-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--phase-1), var(--phase-6));
  border-radius: 4px;
}

.budget-details {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.seasonal-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.seasonal-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
}

.seasonal-month {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.seasonal-demand,
.seasonal-budget,
.seasonal-roi {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.seasonal-budget strong,
.seasonal-roi {
  color: var(--text-code);
  font-weight: 600;
}

/* ── KPI管理面板 ── */
.kpi-decomposition {
  margin: 12px 0;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.1);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

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

.kpi-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.kpi-target {
  font-size: 12px;
  color: var(--text-secondary);
}

.kpi-trajectory {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 40px;
  gap: 2px;
  margin: 8px 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.trajectory-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  opacity: 0.8;
  cursor: pointer;
}

.trajectory-bar:hover {
  opacity: 1;
}

.kpi-milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.milestone {
  background: rgba(100, 200, 255, 0.08);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 4px;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.milestone strong {
  color: var(--text-primary);
}

/* ── 预警规则 ── */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.rule-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
}

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

.rule-metric {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.rule-severity {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rule-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── 综合仪表板 ── */
.comprehensive-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
}

.dashboard-section {
  width: 100%;
}


/* ════════════════════════════════════════════════════════════════════════════
   规划器UI增强 - 高端设计
════════════════════════════════════════════════════════════════════════════ */

.planner-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 16px 12px 10px;
  font-weight: 700;
  padding-left: 4px;
  border-left: 2px solid var(--phase-1);
}

.module-tabs.s0-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(100,200,255,0.1);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(56,139,253,0.05) 0%, rgba(56,139,253,0) 100%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.tab-btn:hover {
  background: rgba(100,200,255,0.08);
  border-color: rgba(100,200,255,0.3);
  transform: translateY(-2px);
}

.tab-btn:hover::before {
  opacity: 1;
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(56,139,253,0.2) 0%, rgba(56,139,253,0.08) 100%);
  border-color: var(--phase-1);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(56,139,253,0.2);
}

.tab-btn.active::before {
  opacity: 1;
}

.tab-icon {
  font-size: 14px;
  display: block;
}

.tab-title {
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.tab-stat {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

.tab-btn.active .tab-stat {
  color: var(--text-code);
}

.planner-stats-section {
  margin-top: 20px;
  padding: 12px;
  background: rgba(100,200,255,0.06);
  border: 1px solid rgba(100,200,255,0.15);
  border-radius: 6px;
}

.stats-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.planner-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-code);
  font-variant-numeric: tabular-nums;
}

.stat-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--phase-1), var(--phase-5));
  border-radius: 2px;
}

/* ════════════════════════════════════════════════════════════════════════════
   S0分析面板内容增强
════════════════════════════════════════════════════════════════════════════ */

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-box {
  background: linear-gradient(135deg, rgba(100,200,255,0.08) 0%, rgba(100,200,255,0.02) 100%);
  border: 1px solid rgba(100,200,255,0.15);
  border-radius: 6px;
  padding: 14px;
  transition: all 200ms ease;
}

.metric-box:hover {
  background: linear-gradient(135deg, rgba(100,200,255,0.12) 0%, rgba(100,200,255,0.05) 100%);
  border-color: rgba(100,200,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100,200,255,0.1);
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-code);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.metric-trend {
  font-size: 12px;
  color: var(--color-success);
}

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

.data-table thead {
  background: rgba(100,200,255,0.08);
  border-bottom: 1px solid rgba(100,200,255,0.2);
}

.data-table th {
  padding: 10px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
}

.data-table tr:hover {
  background: rgba(100,200,255,0.05);
}

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

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.success {
  background: rgba(0,229,160,0.2);
  color: var(--color-success);
  border: 1px solid rgba(0,229,160,0.3);
}

.status-badge.warning {
  background: rgba(245,197,66,0.2);
  color: var(--color-warning);
  border: 1px solid rgba(245,197,66,0.3);
}

.status-badge.danger {
  background: rgba(255,92,108,0.2);
  color: var(--color-error);
  border: 1px solid rgba(255,92,108,0.3);
}

.insight-box {
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--phase-1);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.insight-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}


/* ════════════════════════════════════════════════════════════════════════════
   规划器左侧导航 - 高端设计
════════════════════════════════════════════════════════════════════════════ */

.planner-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 12px;
  background: linear-gradient(135deg, rgba(56,139,253,0.1) 0%, rgba(56,139,253,0.05) 100%);
  border-bottom: 1px solid rgba(56,139,253,0.2);
  margin-bottom: 20px;
}

.planner-brand h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 200ms ease;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: rgba(255,100,100,0.2);
  border-color: rgba(255,100,100,0.4);
  color: var(--color-error);
}

/* 侧栏分组 */
.sidebar-section {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
}

.section-header {
  display: none;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.section-label::before {
  display: none;
}

.section-count {
  font-size: 12px;
  background: rgba(100,200,255,0.15);
  color: var(--text-code);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}

/* 模块列表 */
.nav-module-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-module {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--t-base);
  position: relative;
  overflow: visible;
  font-size: 13px;
  font-weight: 500;
}

.nav-module::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 18px;
  bottom: -10px;
  width: 1px;
  background: var(--border-default);
  transition: all var(--t-base);
}
.nav-module:last-child::before {
  display: none;
}

.nav-module:hover {
  background: transparent;
  border-color: transparent;
  color: var(--text-primary);
  transform: none;
  box-shadow: none;
}
.nav-module:hover {
  background: var(--bg-card-hover);
}

.nav-module.active {
  background: rgba(0,212,255,0.05);
  border-color: transparent;
  color: var(--text-primary);
  box-shadow: none;
}
.nav-module.active::before {
  display: block;
  width: 1px;
}

.module-icon {
  width: 8px;
  height: 8px;
  font-size: 0;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
  margin-top: 5px;
  transition: all var(--t-base);
  position: relative;
  z-index: 1;
}
.nav-module.active .module-icon {
  background: var(--phase-color, var(--color-processing));
  box-shadow: 0 0 8px var(--phase-color, var(--color-processing));
}
.nav-module.state-completed .module-icon {
  background: var(--color-success);
}

.module-name {
  flex: 1;
  text-align: left;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}
.nav-module.active .module-name {
  color: var(--text-primary);
  font-weight: 600;
}
.nav-module.state-completed .module-name {
  color: var(--text-secondary);
}

.module-arrow {
  display: none;
}

/* S0模块列表 - 特殊样式 */
.nav-module-list.s0-list .nav-module {
  background: rgba(56,139,253,0.05);
  border-color: rgba(56,139,253,0.15);
}

.nav-module-list.s0-list .nav-module:hover {
  background: rgba(56,139,253,0.12);
  border-color: rgba(56,139,253,0.3);
}

.nav-module-list.s0-list .nav-module.active {
  background: linear-gradient(90deg, rgba(56,139,253,0.3) 0%, rgba(56,139,253,0.12) 100%);
  border-color: var(--phase-1);
  box-shadow: 0 4px 12px rgba(56,139,253,0.2);
}

/* 侧栏底部统计 */
.sidebar-footer {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(56,139,253,0.1) 0%, rgba(56,139,253,0.05) 100%);
  border: 1px solid rgba(56,139,253,0.15);
  border-radius: 6px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.stat-key {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.stat-val {
  font-weight: 700;
  color: var(--text-code);
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  height: 3px;
  background: rgba(100,200,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--phase-1), var(--phase-5));
  border-radius: 2px;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/* 规划模块高端样式 - Premium Module Styling */
/* ═════════════════════════════════════════════════════════════════════════════ */

.module-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
}

.module-panel.premium {
  background: linear-gradient(135deg, rgba(13, 13, 30, 0.9) 0%, rgba(20, 15, 40, 0.9) 100%);
  border: 1px solid rgba(56, 139, 253, 0.15);
}

.panel-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 139, 253, 0.1);
}

.panel-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-header h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

.header-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─ Metrics Grid ─ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.08) 0%, rgba(100, 200, 255, 0.04) 100%);
  border: 1px solid rgba(56, 139, 253, 0.12);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: all var(--t-base) ease;
  cursor: default;
}

.metric-card:hover {
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.12) 0%, rgba(100, 200, 255, 0.08) 100%);
  border-color: rgba(56, 139, 253, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 139, 253, 0.15);
}

.metric-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.metric-content {
  flex: 1;
  min-width: 0;
}

.metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.metric-detail {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.metric-status.success {
  background: rgba(0, 229, 160, 0.15);
  color: #00e5a0;
}

.metric-status.warning {
  background: rgba(245, 197, 66, 0.15);
  color: #f5c542;
}

/* ─ Data Tables ─ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 16px 0;
}

.data-table thead {
  background: rgba(56, 139, 253, 0.06);
  border-top: 1px solid rgba(56, 139, 253, 0.1);
  border-bottom: 2px solid rgba(56, 139, 253, 0.15);
}

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(56, 139, 253, 0.08);
  transition: background var(--t-fast) ease;
}

.data-table tbody tr:hover {
  background: rgba(56, 139, 253, 0.08);
}

.data-table td {
  padding: 12px;
  color: var(--text-primary);
}

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

/* ─ Badge & Status Styles ─ */
.badge-success {
  display: inline-block;
  background: rgba(0, 229, 160, 0.15);
  color: #00e5a0;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.badge-warning {
  display: inline-block;
  background: rgba(245, 197, 66, 0.15);
  color: #f5c542;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.badge-danger {
  display: inline-block;
  background: rgba(255, 92, 108, 0.15);
  color: #ff5c6c;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.badge-info {
  display: inline-block;
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.weight-badge, .progress-badge, .share-badge, .badge-segment {
  display: inline-block;
  background: rgba(56, 139, 253, 0.15);
  color: #64c8ff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* ─ Threat Badge ─ */
.threat-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.threat-badge.threat-high {
  background: rgba(255, 92, 108, 0.15);
  color: #ff5c6c;
}

.threat-badge.threat-medium {
  background: rgba(245, 197, 66, 0.15);
  color: #f5c542;
}

/* ─ Severity Badge ─ */
.severity-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.severity-badge.severity-low {
  background: rgba(0, 229, 160, 0.15);
  color: #00e5a0;
}

.severity-badge.severity-medium {
  background: rgba(245, 197, 66, 0.15);
  color: #f5c542;
}

.severity-badge.severity-high {
  background: rgba(255, 92, 108, 0.15);
  color: #ff5c6c;
}

/* ─ Positioning Matrix ─ */
.positioning-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0;
  background: rgba(56, 139, 253, 0.05);
  border: 1px solid rgba(56, 139, 253, 0.1);
  border-radius: 6px;
  padding: 16px;
}

.matrix-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.matrix-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

.info-item .value {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.matrix-right {
  display: flex;
  align-items: center;
}

.positioning-dimensions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dimension-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dim-label {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: right;
}

.dim-bar {
  flex: 1;
  height: 4px;
  background: rgba(56, 139, 253, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.dim-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--phase-1), var(--phase-2));
  border-radius: 2px;
}

.dim-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-code);
  min-width: 35px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ─ Pillars Grid ─ */
.pillars-detail {
  margin-top: 16px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pillar-card {
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.08) 0%, rgba(100, 200, 255, 0.04) 100%);
  border: 1px solid rgba(56, 139, 253, 0.12);
  border-radius: 6px;
  padding: 12px;
  transition: all var(--t-base) ease;
}

.pillar-card:hover {
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.12) 0%, rgba(100, 200, 255, 0.08) 100%);
  border-color: rgba(56, 139, 253, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 139, 253, 0.15);
}

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

.pillar-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pillar-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.pillar-info .info-item {
  display: flex;
  justify-content: space-between;
}

.pillar-info .label {
  color: var(--text-muted);
}

.pillar-info .value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ─ Compliance Framework ─ */
.compliance-framework {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.compliance-section {
  background: rgba(56, 139, 253, 0.05);
  border: 1px solid rgba(56, 139, 253, 0.1);
  border-radius: 6px;
  padding: 12px;
}

.compliance-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

.compliance-item {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  align-items: flex-start;
}

.compliance-icon, .compliance-check {
  flex-shrink: 0;
  color: #00e5a0;
  font-weight: 600;
}

/* ─ Compliance Risk Matrix ─ */
.compliance-risk-matrix {
  margin-top: 16px;
}

/* ─ Budget Breakdown ─ */
.budget-breakdown {
  background: rgba(56, 139, 253, 0.05);
  border: 1px solid rgba(56, 139, 253, 0.1);
  border-radius: 6px;
  padding: 14px;
  margin: 16px 0;
}

.breakdown-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.breakdown-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-item {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 8px;
  align-items: center;
}

.breakdown-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.breakdown-bar {
  height: 6px;
  background: rgba(56, 139, 253, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--phase-1), var(--phase-2));
  border-radius: 3px;
}

.breakdown-percent {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-code);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ─ Competitor Detail Cards ─ */
.competitor-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.competitor-detail-card {
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.08) 0%, rgba(100, 200, 255, 0.04) 100%);
  border: 1px solid rgba(56, 139, 253, 0.12);
  border-radius: 6px;
  padding: 12px;
  transition: all var(--t-base) ease;
}

.competitor-detail-card:hover {
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.12) 0%, rgba(100, 200, 255, 0.08) 100%);
  border-color: rgba(56, 139, 253, 0.25);
  transform: translateY(-2px);
}

.detail-header {
  margin-bottom: 10px;
}

.detail-header h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.detail-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.badge-segment {
  background: rgba(56, 139, 253, 0.15);
  color: #64c8ff;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
}

.badge-share {
  background: rgba(245, 197, 66, 0.15);
  color: #f5c542;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-item .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

.detail-item .value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-trends {
  font-size: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(56, 139, 253, 0.1);
}

.trends-label {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.trend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.trend-tag {
  display: inline-block;
  background: rgba(56, 139, 253, 0.15);
  color: #64c8ff;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
}

/* ─ Sentiment & Alerts ─ */
.sentiment-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sentiment-card {
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.08) 0%, rgba(100, 200, 255, 0.04) 100%);
  border: 1px solid rgba(56, 139, 253, 0.12);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.sentiment-metric {
  margin-bottom: 8px;
}

.metric-value-large {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.sentiment-trend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.trend-indicator {
  font-weight: 600;
  color: var(--text-primary);
}

.trend-indicator.stable {
  color: #f5c542;
}

.trend-indicator.declining {
  color: #ff5c6c;
}

.alerts-section {
  margin: 16px 0;
}

.alerts-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.alerts-table tbody tr.alert-row-warning {
  background: rgba(245, 197, 66, 0.05);
}

.alerts-table tbody tr.alert-row-high {
  background: rgba(255, 92, 108, 0.05);
}

/* ─ Keyword Analysis ─ */
.keyword-analysis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.keyword-section {
  background: rgba(56, 139, 253, 0.05);
  border: 1px solid rgba(56, 139, 253, 0.1);
  border-radius: 6px;
  padding: 12px;
}

.keyword-section.positive {
  border-color: rgba(0, 229, 160, 0.15);
  background: rgba(0, 229, 160, 0.03);
}

.keyword-section.negative {
  border-color: rgba(255, 92, 108, 0.15);
  background: rgba(255, 92, 108, 0.03);
}

.keyword-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.keyword.positive {
  background: rgba(0, 229, 160, 0.2);
  color: #00e5a0;
  border: 1px solid rgba(0, 229, 160, 0.3);
}

.keyword.negative {
  background: rgba(255, 92, 108, 0.2);
  color: #ff5c6c;
  border: 1px solid rgba(255, 92, 108, 0.3);
}

.keyword-size-1 {
  font-size: 12px;
  opacity: 0.7;
}

.keyword-size-2 {
  font-size: 12px;
  opacity: 0.85;
}

.keyword-size-3 {
  font-size: 12px;
  opacity: 1;
}

/* ─ Insight Box ─ */
.insight-box {
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.08) 0%, rgba(0, 229, 160, 0.04) 100%);
  border: 1px solid rgba(56, 139, 253, 0.15);
  border-left: 3px solid var(--phase-1);
  border-radius: 6px;
  padding: 14px;
  margin: 16px 0;
}

.insight-box h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.insight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insight-list li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 6px;
}

.insight-list li::marker {
  color: var(--phase-1);
}

/* ─ Section & Typography ─ */
.section {
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.section h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.section-description {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ─ Form Actions ─ */
.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(56, 139, 253, 0.1);
  justify-content: flex-end;
}

.btn-save {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.2) 0%, rgba(56, 139, 253, 0.1) 100%);
  border: 1px solid rgba(56, 139, 253, 0.25);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base) ease;
}

.btn-save:hover {
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.3) 0%, rgba(56, 139, 253, 0.2) 100%);
  border-color: var(--phase-1);
  box-shadow: 0 4px 12px rgba(56, 139, 253, 0.2);
  transform: translateY(-1px);
}

.btn-save:active {
  transform: translateY(0);
}


/* ════════════════════════════════════════════════════
   S0 战略规划模块样式 (BIE风格)
════════════════════════════════════════════════════ */

.s0-panel .panel-header { margin-bottom: 24px; }
.s0-panel .panel-header h2 { font-size: 20px; margin: 0 0 6px; background: linear-gradient(135deg, #00d4ff, #7b5ea7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.s0-panel .header-subtitle { font-size: 13px; color: rgba(255,255,255,0.5); }

.pest-detail-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.pest-detail-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(100,200,255,0.12); border-radius: 10px; padding: 16px; }
.pest-detail-header { font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.pest-detail-items { display: flex; flex-direction: column; gap: 8px; }
.pest-item { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.7); }
.badge-ok { background: rgba(63,185,80,0.15); color: #3fb950; border: 1px solid rgba(63,185,80,0.3); border-radius: 4px; padding: 2px 7px; font-size: 12px; }
.badge-warn { background: rgba(227,179,65,0.15); color: #e3b341; border: 1px solid rgba(227,179,65,0.3); border-radius: 4px; padding: 2px 7px; font-size: 12px; }

.insights-row { display: flex; gap: 24px; align-items: flex-start; }
.score-big { display: flex; flex-direction: column; align-items: center; background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(123,94,167,0.1)); border: 1px solid rgba(0,212,255,0.3); border-radius: 12px; padding: 20px 28px; min-width: 100px; }
.score-num { font-size: 40px; font-weight: 800; background: linear-gradient(135deg, #00d4ff, #7b5ea7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.score-tag { font-size: 12px; color: #3fb950; margin-top: 4px; white-space: nowrap; }
.insights-list-inline { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.insight-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.insight-item.opportunity { background: rgba(63,185,80,0.06); border-left: 3px solid #3fb950; }
.insight-item.warning { background: rgba(227,179,65,0.06); border-left: 3px solid #e3b341; }
.insight-item span { font-size: 16px; flex-shrink: 0; }
.insight-item p { margin: 0; color: rgba(255,255,255,0.8); line-height: 1.5; }

.pyramid-layer { padding: 16px 20px; border-radius: 8px; margin-bottom: 12px; }
.layer-header { font-weight: 700; font-size: 13px; margin-bottom: 10px; color: rgba(255,255,255,0.9); }
.layer-header em { font-weight: 400; color: rgba(255,255,255,0.4); font-style: normal; }
.layer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.need-tag { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25); color: #00d4ff; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.need-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.need-table th { text-align: left; padding: 8px 12px; color: rgba(255,255,255,0.5); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }
.need-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }
.solutions-row { display: flex; gap: 12px; }
.solution-card { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 14px; font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.solution-card--opportunity { background: rgba(57,211,195,0.06); border-color: rgba(57,211,195,0.3); color: #39d3c3; }
.solution-card strong { display: block; margin-bottom: 4px; color: rgba(255,255,255,0.9); }
.solution-card--opportunity strong { color: #39d3c3; }

.segments-row { display: flex; gap: 16px; }
.segment-panel { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(100,200,255,0.15); border-radius: 12px; padding: 20px; }
.segment-panel:nth-child(1) { border-top: 3px solid #ff6b9d; }
.segment-panel:nth-child(2) { border-top: 3px solid #39d3c3; }
.segment-panel:nth-child(3) { border-top: 3px solid #f7853e; }
.segment-icon { font-size: 28px; margin-bottom: 8px; }
.segment-title { font-weight: 700; font-size: 15px; color: #fff; }
.segment-size { font-size: 12px; color: rgba(255,255,255,0.5); margin: 4px 0 14px; }
.segment-attrs { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 2; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 12px; margin-bottom: 12px; }
.segment-needs { font-size: 12px; color: #00d4ff; }
.comparison-table-inline { width: 100%; border-collapse: collapse; font-size: 13px; }
.comparison-table-inline th { text-align: left; padding: 10px 14px; background: rgba(0,212,255,0.08); color: rgba(255,255,255,0.6); font-weight: 600; }
.comparison-table-inline td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }

.competitors-panels { display: flex; gap: 16px; }
.competitor-panel { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(100,200,255,0.12); border-radius: 10px; padding: 18px; }
.comp-header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.comp-icon { font-size: 22px; flex-shrink: 0; }
.comp-name { font-weight: 700; font-size: 13px; color: #fff; }
.comp-share { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.threat-high { margin-left: auto; background: rgba(255,80,80,0.15); color: #ff5050; border: 1px solid rgba(255,80,80,0.3); border-radius: 4px; padding: 2px 8px; font-size: 12px; white-space: nowrap; }
.comp-price { font-size: 18px; font-weight: 700; color: #00d4ff; margin-bottom: 14px; }
.comp-section { margin-bottom: 10px; }
.comp-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 6px; font-weight: 600; }
.comp-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.comp-tags span { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2); color: rgba(255,255,255,0.7); padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.comp-tags.warn span { background: rgba(255,107,157,0.08); border-color: rgba(255,107,157,0.2); color: rgba(255,255,255,0.6); }

.opportunities-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.opp-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 16px; position: relative; }
.opp-card.opp-high { border-color: rgba(63,185,80,0.3); background: rgba(63,185,80,0.04); }
.opp-card.opp-medium { border-color: rgba(227,179,65,0.3); background: rgba(227,179,65,0.04); }
.opp-card.opp-low { border-color: rgba(100,200,255,0.2); }
.opp-tag { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.4); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.opp-card h4 { font-size: 13px; margin: 0 0 8px; color: #fff; }
.opp-card p { font-size: 12px; color: rgba(255,255,255,0.6); margin: 0; line-height: 1.6; }
.strategy-recommendation { background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(123,94,167,0.08)); border: 1px solid rgba(0,212,255,0.25); border-radius: 10px; padding: 20px; }
.strategy-title { font-size: 16px; font-weight: 700; color: #00d4ff; margin-bottom: 14px; }
.strategy-points { display: flex; flex-direction: column; gap: 10px; }
.strategy-point { font-size: 13px; color: rgba(255,255,255,0.8); padding-left: 4px; }

.hypothesis-list { display: flex; flex-direction: column; gap: 10px; }
.hypo-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 14px 18px; }
.hypo-item.hypo-high-risk { border-color: rgba(255,80,80,0.25); background: rgba(255,80,80,0.04); }
.hypo-header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.hypo-id { background: rgba(0,212,255,0.12); color: #00d4ff; border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hypo-text { flex: 1; font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 500; }
.certainty { font-size: 12px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.certainty-high { background: rgba(63,185,80,0.12); color: #3fb950; border: 1px solid rgba(63,185,80,0.3); }
.certainty-mid { background: rgba(227,179,65,0.12); color: #e3b341; border: 1px solid rgba(227,179,65,0.3); }
.risk-low { background: rgba(63,185,80,0.08); color: #3fb950; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.risk-mid { background: rgba(227,179,65,0.08); color: #e3b341; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.risk-high { background: rgba(255,80,80,0.1); color: #ff5050; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.hypo-data { font-size: 12px; color: rgba(255,255,255,0.45); padding-left: 4px; }
.scenarios-row { display: flex; gap: 16px; }
.scenario-card { flex: 1; border-radius: 10px; padding: 20px; text-align: center; }
.scenario-base { background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.25); }
.scenario-up { background: rgba(63,185,80,0.06); border: 1px solid rgba(63,185,80,0.25); }
.scenario-down { background: rgba(255,80,80,0.06); border: 1px solid rgba(255,80,80,0.2); }
.scenario-label { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.scenario-prob { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.scenario-rev { font-size: 14px; color: #00d4ff; margin-bottom: 4px; }
.scenario-profit { font-size: 12px; color: rgba(255,255,255,0.5); }

.module-group-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.8px; padding: 6px 0 4px; }

/* ════════════════════════════════════════
   效果对比卡 & 决策可视化面板 (投资人升级)
════════════════════════════════════════ */
.effect-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 20px; }
@media (max-width: 700px) { .effect-card-grid { grid-template-columns: repeat(2, 1fr); } }
.effect-card {
  padding: 16px; border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  position: relative; overflow: hidden;
  transition: all var(--t-base);
}
.effect-card::before {
  content: ''; position: absolute;
  inset: 0; border-radius: 12px;
  background: radial-gradient(ellipse at top-right, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
}
.effect-card-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.effect-card-before { font-size: 12px; color: var(--text-muted); text-decoration: line-through; margin-bottom: 4px; }
.effect-card-after { font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.effect-card-delta {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 700;
  background: rgba(0,229,160,0.12); color: var(--color-success);
}
.effect-card-delta.down { background: rgba(245,197,66,0.12); color: var(--color-warning); }

.effect-card.phase-4 { border-color: rgba(247,133,62,0.25); }
.effect-card.phase-4::after { box-shadow: 0 0 16px rgba(247,133,62,0.12); }
.effect-card.phase-6 { border-color: rgba(255,107,157,0.25); }
.effect-card.phase-6::after { box-shadow: 0 0 16px rgba(255,107,157,0.12); }
.effect-card.phase-7 { border-color: rgba(227,179,65,0.25); }
.effect-card.phase-7::after { box-shadow: 0 0 16px rgba(227,179,65,0.12); }

/* 决策可视化面板 */
.decision-panel {
  padding: 16px; border-radius: 12px;
  border: 1px solid rgba(0,212,255,0.2);
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, rgba(123,94,167,0.06) 100%);
  margin: 16px 0 20px;
}
.decision-panel-title { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }

/* Shapley贡献条形图 */
.shapley-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.shapley-label { min-width: 80px; color: var(--text-secondary); }
.shapley-track { flex: 1; height: 8px; background: var(--border-default); border-radius: 4px; overflow: hidden; }
.shapley-fill { height: 100%; border-radius: 4px; width: 0; transition: width 0.8s ease-out; }
.shapley-pct { min-width: 50px; text-align: right; color: var(--text-muted); }

/* DPO对比面板 */
.dpo-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 16px 0 20px;
}
.dpo-option {
  padding: 12px 14px; border-radius: 8px;
  border-left: 3px solid var(--color-success);
  background: rgba(0,229,160,0.04);
  border: 1px solid rgba(0,229,160,0.12);
  border-left-width: 3px;
  font-size: 12px; line-height: 1.65;
  color: var(--text-secondary);
}
.dpo-option.rejected {
  border-left-color: var(--color-error);
  background: rgba(248,81,73,0.04);
  border-color: rgba(248,81,73,0.12);
}
.dpo-option-label { font-weight: 700; font-size: 12px; color: var(--text-primary); margin-bottom: 6px; }

.roi-summary-strip {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,212,255,0.2);
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, rgba(123,94,167,0.06) 100%);
  margin: 16px 0 20px;
  align-items: center;
}
.roi-summary-chip {
  display: flex; flex-direction: column; gap: 2px;
}
.roi-summary-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.roi-summary-value { font-size: 16px; font-weight: 700; color: var(--color-success); font-variant-numeric: tabular-nums; }
.roi-summary-value.down { color: var(--color-warning); }


/* ════════════════════════════════════════════════════════════════
   Overview v2 — 全链路闭环飞轮总览页
════════════════════════════════════════════════════════════════ */

/* ── Top Header ── */
.ov2-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  height: 58px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(13,9,32,0.97) 0%, rgba(10,8,18,0.90) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ov2-brand { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }

.ov2-brand-bie {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #00d4ff 0%, #c4b5fd 55%, #00d4ff 100%);
  background-size: 200% 200%;
  animation: ov2-shimmer 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
@keyframes ov2-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
.ov2-brand-full {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ov2-live-strip {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0 16px;
  height: 40px;
  max-width: 580px;
}
.ov2-live-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 18px;
}
.ov2-live-label { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.ov2-live-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Menlo', monospace;
  line-height: 1;
}
.ov2-live-unit { font-size: 12px; color: var(--text-muted); }
.ov2-live-sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.ov2-header-btns { display: flex; gap: 8px; flex-shrink: 0; }
.ov2-hbtn {
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  font-family: inherit;
}
.ov2-hbtn:hover {
  background: rgba(0,212,255,0.10);
  border-color: rgba(0,212,255,0.35);
  color: #00d4ff;
}

/* ── Main 3-col Body ── */
.ov2-body {
  display: flex;
  flex: none;
  flex-shrink: 0;
  min-height: 600px;
  overflow: visible;
}

/* ── Side Panels ── */
.ov2-panel {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  gap: 0;
}
.ov2-panel-l {
  border-right: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, rgba(14,10,34,0.70) 0%, rgba(10,8,18,0.50) 100%);
}
.ov2-panel-r {
  border-left: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, rgba(14,10,34,0.70) 0%, rgba(10,8,18,0.50) 100%);
}
.ov2-panel-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ov2-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 10px 0;
  flex-shrink: 0;
}

/* ROI Grid */
.ov2-roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 0;
}
.ov2-roi-cell {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 8px 8px;
  text-align: center;
  transition: border-color var(--t-base), background var(--t-base);
}
.ov2-roi-cell:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.13);
}
.ov2-roi-num {
  font-size: 26px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Menlo', monospace;
  line-height: 1;
  margin-bottom: 3px;
}
.ov2-roi-lbl { font-size: 12px; color: var(--text-muted); letter-spacing: 0.3px; }
.ov2-roi-tag { font-size: 12px; font-weight: 600; margin-top: 2px; opacity: 0.72; }

/* Features */
.ov2-feat-list { display: flex; flex-direction: column; gap: 7px; }
.ov2-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.ov2-feat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c, #fff);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--c, #fff);
}

/* Loop badge */
.ov2-loop-badge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(196,181,253,0.06));
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}
.ov2-loop-arrow {
  color: #00d4ff;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: -1px;
  display: inline-block;
  animation: ov2-spin-loop 4s linear infinite;
}
@keyframes ov2-spin-loop { to { transform: rotate(360deg); } }

/* Status list */
.ov2-status-list { display: flex; flex-direction: column; gap: 8px; }
.ov2-srow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.ov2-sdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ov2-sdot--green  { background: #00e5a0; box-shadow: 0 0 6px rgba(0,229,160,0.55); }
.ov2-sdot--yellow { background: #f5c542; box-shadow: 0 0 6px rgba(245,197,66,0.55); }
.ov2-sname { flex: 1; }
.ov2-stag {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.ov2-stag--green  { color: #00e5a0; background: rgba(0,229,160,0.10); }
.ov2-stag--yellow { color: #f5c542; background: rgba(245,197,66,0.10); }

/* Quick entries */
.ov2-entries { display: flex; flex-direction: column; gap: 6px; }
.ov2-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--t-base);
}
.ov2-entry:hover {
  background: rgba(0,212,255,0.07);
  border-color: rgba(0,212,255,0.25);
  transform: translateX(2px);
}
.ov2-entry-ico { font-size: 16px; flex-shrink: 0; }
.ov2-entry-info { flex: 1; min-width: 0; }
.ov2-entry-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.ov2-entry-sub  { font-size: 12px; color: var(--text-muted); }
.ov2-entry-arr  {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--t-base);
}
.ov2-entry:hover .ov2-entry-arr { color: #00d4ff; }

/* Activity */
.ov2-act-list { display: flex; flex-direction: column; gap: 7px; }
.ov2-act-row  { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.ov2-act-dot  { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
.ov2-act-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Flywheel Center ── */
.ov2-flywheel-zone {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 6px;
  position: relative;
  overflow: hidden;
}
.ov2-flywheel-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 65% at 40% 50%,
    rgba(0,212,255,0.04) 0%,
    rgba(196,181,253,0.025) 40%,
    transparent 70%);
  pointer-events: none;
}
.ov2-fw-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 100%;
  position: relative;
}
#bie-flywheel-svg {
  width: auto;
  height: 100%;
  max-height: 540px;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  display: block;
  filter: drop-shadow(0 0 48px rgba(0,212,255,0.07));
  flex-shrink: 0;
}
.ov2-small-gear-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: -10px;
  align-self: center;
  gap: 6px;
}
.ov2-sg-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
}
.ov2-sg-container {
  position: relative;
  width: 320px;
  height: 320px;
}
#bie-small-gear-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 16px rgba(245,197,66,0.06));
}
/* Center overlay - fixed, does not rotate */
.ov2-sg-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  transition: all 0.3s ease;
}
.ov2-sg-step-icon {
  font-size: 22px;
  margin-bottom: 2px;
  transition: all 0.3s ease;
}
.ov2-sg-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(245,197,66,0.7);
  font-family: 'SF Mono', monospace;
}
.ov2-sg-step-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  transition: all 0.3s ease;
}
/* Legend below gear — live metrics */
.ov2-sg-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 10px;
  width: fit-content;
  margin: 0 auto;
}
.ov2-sg-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}
.ov2-sg-legend-item b {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  margin-left: auto;
  transition: color 0.3s;
}
.ov2-sg-legend-item:hover {
  background: rgba(255,255,255,0.04);
}
.ov2-sg-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Gear teeth rotation - only the outer cog ring rotates */
.sg-teeth-ring {
  transform-origin: 160px 160px;
  animation: sg-spin 30s linear infinite;
}
@keyframes sg-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Inner dashed ring counter-rotates */
.sg-dash-ring {
  transform-origin: 160px 160px;
  animation: sg-spin-rev 20s linear infinite;
}
@keyframes sg-spin-rev {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
/* Breathing glow on small gear segments */
.sg-breath {
  animation: sg-breathe 2.8s ease-in-out infinite;
  animation-delay: var(--sg-delay, 0s);
}
@keyframes sg-breathe {
  0%, 100% { opacity: 0.35; filter: brightness(0.8); }
  50%      { opacity: 1; filter: brightness(1.4) drop-shadow(0 0 6px var(--seg-color, rgba(0,212,255,0.5))); }
}
.ov2-fw-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.4px;
  flex-shrink: 0;
}
.ov2-fw-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5a0;
  flex-shrink: 0;
  animation: ov2-fw-pulse 2.2s ease-in-out infinite;
}
@keyframes ov2-fw-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #00e5a0; }
  50%       { opacity: 0.25; box-shadow: none; }
}

/* ── Bottom Phase Cards Strip ── */
.ov2-phases-strip {
  flex-shrink: 0;
  padding: 10px 20px 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(10,8,18,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ov2-phases-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.22);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ov2-phases-strip #phase-cards-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
/* 底部条内卡片精简样式 */
.ov2-phases-strip .phase-card { padding: 0; }
.ov2-phases-strip .pc-footer { display: none; }
.ov2-phases-strip .pc-capabilities {
  font-size: 12px;
  padding: 10px 9px 5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ov2-phases-strip .pc-model {
  font-size: 12px;
  padding: 0 9px 4px;
}
.ov2-phases-strip .pc-header {
  padding: 9px 9px 6px;
  border-bottom: none;
}
.ov2-phases-strip .pc-num  { font-size: 15px; }
.ov2-phases-strip .pc-name { font-size: 12px; }
.ov2-phases-strip .pc-metrics {
  padding: 0 9px 9px;
  gap: 3px;
}
.ov2-phases-strip .pcm-item {
  font-size: 12px;
}

/* ── pcm-item compact fix (bottom strip) ── */
.ov2-phases-strip .pcm-item {
  padding: 3px 6px;
  font-size: 12px;
}
.ov2-phases-strip .pcm-item b {
  font-size: 12px;
}
/* Increase strip height + allow scroll */
.ov2-phases-strip {
  overflow: visible !important;
  max-height: none !important;
}

/* ── Tech Chips ── */
.ov2-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ov2-chip {
  font-size: 12px;
  font-weight: 700;
  font-family: 'SF Mono', 'Menlo', monospace;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--cc, var(--text-muted));
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: background var(--t-base), border-color var(--t-base);
}
.ov2-chip:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.20);
}

/* ── Data Stats ── */
.ov2-data-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ov2-ds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.ov2-ds-label { color: var(--text-muted); }
.ov2-ds-val {
  font-weight: 700;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* ── Performance Bars ── */
.ov2-perf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ov2-perf-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ov2-perf-row > span:first-child {
  width: 52px;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ov2-perf-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.ov2-perf-bar {
  height: 100%;
  border-radius: 2px;
  opacity: 0.78;
}
.ov2-perf-val {
  width: 36px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', monospace;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   Overview v2 — Mid Band (5-card section)
════════════════════════════════════════════════════════════════ */

.ov2-mid-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 10px 14px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.12);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ov2-mid-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.ov2-mid-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.ov2-live-badge {
  font-size: 12px;
  color: #00e5a0;
  animation: ov2-blink 1.4s ease-in-out infinite;
}
@keyframes ov2-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ── Card 1: Funnel ── */
.ov2-funnel-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.ov2-funnel-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.ov2-funnel-label {
  width: 52px;
  flex-shrink: 0;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov2-funnel-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.ov2-funnel-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ov2-funnel-cnt {
  width: 34px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', monospace;
  flex-shrink: 0;
}
.ov2-funnel-footer {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 6px;
  margin-top: auto;
}
.ov2-funnel-footer b {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', monospace;
  color: var(--text-primary);
}

/* ── Card 2: Agent Log ── */
.ov2-alog-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}
.ov2-alog-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ov2-alog-row:last-child { border-bottom: none; }
.ov2-alog-time {
  width: 30px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-family: 'SF Mono', monospace;
  font-size: 12px;
  padding-top: 1px;
}
.ov2-alog-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.ov2-alog-text {
  flex: 1;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Card 3: Distribution ── */
.ov2-dist-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.ov2-dist-platform {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ov2-dist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.ov2-dist-name {
  color: var(--text-secondary);
  font-weight: 600;
}
.ov2-dist-stats {
  display: flex;
  gap: 8px;
  font-size: 12px;
  font-family: 'SF Mono', monospace;
  color: var(--text-muted);
}
.ov2-dist-bar-wrap {
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.ov2-dist-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

/* ── Card 4: Evolution ── */
.ov2-evo-dpo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ov2-evo-dpo-label {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ov2-evo-dpo-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.ov2-evo-dpo-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #a5b4fc, #d946ef);
  transition: width 1.2s ease;
}
.ov2-evo-dpo-pct {
  font-size: 12px;
  font-weight: 700;
  color: #a5b4fc;
  font-family: 'SF Mono', monospace;
  flex-shrink: 0;
}
.ov2-evo-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  flex-shrink: 0;
}
.ov2-evo-kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ov2-evo-kpi-val {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ov2-evo-kpi-lbl {
  font-size: 12px;
  color: var(--text-muted);
}
.ov2-evo-chart {
  flex: 1;
  width: 100%;
}

/* ── Card 5: Quality ── */
.ov2-qual-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.ov2-qual-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.ov2-qual-label {
  width: 50px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.ov2-qual-bar-wrap {
  flex: 1;
  height: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.ov2-qual-bar {
  height: 100%;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.7);
  transition: width 1.2s ease;
  font-family: 'SF Mono', monospace;
}
.ov2-qual-pct {
  width: 28px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  font-family: 'SF Mono', monospace;
  flex-shrink: 0;
}
.ov2-qual-footer {
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.ov2-qual-footer b {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════
   阶段入场全屏仪式动效 - Phase Entry Cinematic
   ══════════════════════════════════════ */

#phase-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 997;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

#phase-entry-overlay.active {
  display: flex;
}

#peo-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    var(--entry-color, #00d4ff) 0%,
    color-mix(in srgb, var(--entry-color, #00d4ff) 40%, rgba(10, 8, 18, 0.9)) 50%,
    rgba(10, 8, 18, 0.98) 70%
  );
  clip-path: circle(0% at 50% 50%);
  border-radius: 50%;
}

#peo-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 2;
}

#peo-num {
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  color: var(--entry-color, #00d4ff);
  text-shadow: 0 0 40px var(--entry-color, #00d4ff),
               0 0 80px color-mix(in srgb, var(--entry-color, #00d4ff) 50%, transparent);
  letter-spacing: -3px;
  margin-bottom: 12px;
}

#peo-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

@keyframes peoExpand {
  0% {
    clip-path: circle(0% at 50% 50%);
  }
  60% {
    clip-path: circle(120% at 50% 50%);
  }
  100% {
    clip-path: circle(140% at 50% 50%);
  }
}

@keyframes peoContentShow {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes peoFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#phase-entry-overlay.peo-active #peo-bg {
  animation: peoExpand 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#phase-entry-overlay.peo-active #peo-content {
  animation: peoContentShow 0.65s ease-out forwards;
}

#phase-entry-overlay.peo-fade #peo-bg {
  animation: peoFadeOut 0.35s ease-out forwards;
}

#phase-entry-overlay.peo-fade #peo-content {
  animation: peoFadeOut 0.35s ease-out forwards;
}

/* ══════════════════════════════════════
   内容卡片玻璃拟态升级
   ══════════════════════════════════════ */

.content-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px;
  background: rgba(19, 16, 30, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin-bottom: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t-base);
}

/* 顶部高光线 */
.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--phase-color, #00d4ff) 60%, white),
    transparent
  );
  opacity: 0.6;
  pointer-events: none;
}

.content-card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 20px color-mix(in srgb, var(--phase-color, #00d4ff) 20%, transparent);
}

/* ══════════════════════════════════════
   阶段标题栏升级
   ══════════════════════════════════════ */

.phase-header {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(
    90deg,
    var(--phase-color, #00d4ff),
    color-mix(in srgb, var(--phase-color, #00d4ff) 20%, transparent) 80%,
    transparent
  ) 1;
}

#ph-num {
  background: color-mix(in srgb, var(--phase-color, #00d4ff) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--phase-color, #00d4ff) 50%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--phase-color, #00d4ff) 40%, transparent);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow var(--t-base);
}

#ph-num:hover {
  box-shadow: 0 0 24px var(--phase-color, #00d4ff);
}

#ph-name {
  background: linear-gradient(135deg, var(--phase-color, #00d4ff), var(--text-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════
   时间轴高亮升级
   ══════════════════════════════════════ */

.tl-step.state-active {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--phase-color, #00d4ff) 12%, transparent),
    transparent 80%
  );
  border-left-color: var(--phase-color, #00d4ff);
  box-shadow: inset 4px 0 12px color-mix(in srgb, var(--phase-color, #00d4ff) 25%, transparent);
}

.tl-step.state-active .tl-dot {
  width: 10px;
  height: 10px;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--phase-color, #00d4ff) 20%, transparent),
    0 0 12px var(--phase-color, #00d4ff);
  animation: pulse-glow 2s ease-in-out infinite;
}

.tl-step.state-completed .tl-dot {
  animation: none;
}


/* ══════════════════════════════════════
   决策页卡片玻璃拟态升级
   ══════════════════════════════════════ */

.stat-card,
.issue-card,
.segment-card,
.option-card,
.scenario-card,
.insight-card,
.opportunity-card,
.demand-score-card {
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: rgba(19, 16, 30, 0.55) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  transition: box-shadow var(--t-base);
}

.stat-card:hover,
.issue-card:hover,
.segment-card:hover,
.option-card:hover,
.scenario-card:hover,
.insight-card:hover,
.opportunity-card:hover,
.demand-score-card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 20px color-mix(in srgb, var(--phase-color, #00d4ff) 20%, transparent) !important;
}


/* 决策页卡片顶部高光线 */
.stat-card::before,
.issue-card::before,
.segment-card::before,
.option-card::before,
.scenario-card::before,
.insight-card::before,
.opportunity-card::before,
.demand-score-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--phase-color, #d946ef) 60%, white),
    transparent
  );
  opacity: 0.6;
  pointer-events: none;
  border-radius: inherit;
}

.stat-card,
.issue-card,
.segment-card,
.option-card,
.scenario-card,
.insight-card,
.opportunity-card,
.demand-score-card {
  position: relative !important;
  overflow: hidden !important;
}


/* ══════════════════════════════════════
   🎨 超酷 CSS 风格升级包
   ══════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1️⃣ 卡片边框发光动画 - Animated Border Glow
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.content-card,
.stat-card,
.issue-card,
.segment-card,
.option-card,
.scenario-card,
.insight-card,
.opportunity-card,
.demand-score-card {
  --border-angle: 0deg;
  position: relative;
}

.content-card::after,
.stat-card::after,
.issue-card::after,
.segment-card::after,
.option-card::after,
.scenario-card::after,
.insight-card::after,
.opportunity-card::after,
.demand-score-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    var(--phase-color, #00d4ff),
    color-mix(in srgb, var(--phase-color, #00d4ff) 40%, transparent),
    var(--phase-color, #00d4ff)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.content-card:hover::after,
.stat-card:hover::after,
.issue-card:hover::after,
.segment-card:hover::after,
.option-card:hover::after,
.scenario-card:hover::after,
.insight-card:hover::after,
.opportunity-card:hover::after,
.demand-score-card:hover::after {
  opacity: 1;
  animation: border-rotate 3s linear infinite;
}

@keyframes border-rotate {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2️⃣ 按钮和交互增强 - Button Enhancements
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn-primary-lg,
.btn-secondary,
.back-btn,
.tl-step,
button[onclick] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary-lg {
  background: linear-gradient(135deg, 
    rgba(0, 212, 255, 0.25),
    rgba(123, 94, 167, 0.25));
  border: 1.5px solid rgba(0, 212, 255, 0.6);
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary-lg:hover {
  background: linear-gradient(135deg,
    rgba(0, 212, 255, 0.4),
    rgba(123, 94, 167, 0.4));
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.5),
    0 8px 24px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-primary-lg:active {
  transform: translateY(0);
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.3),
    inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  transform: translateX(-2px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3️⃣ 文字和数字发光 - Text Glow Effects
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#ph-name {
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--phase-color, #00d4ff) 50%, transparent));
}

.card-title {
  color: var(--text-primary);
  text-shadow: 
    0 0 20px color-mix(in srgb, var(--phase-color, #00d4ff) 30%, transparent),
    0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.kpi-value,
[data-target],
.ov2-roi-num,
.ov2-perf-val {
  background: linear-gradient(135deg, 
    var(--phase-color, #00d4ff),
    color-mix(in srgb, var(--phase-color, #00d4ff) 70%, var(--text-primary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--phase-color, #00d4ff) 40%, transparent));
  text-shadow: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4️⃣ 卡片 Hover 悬停效果 - Card Hover Magic
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.content-card,
.stat-card,
.issue-card,
.segment-card,
.option-card,
.scenario-card,
.insight-card,
.opportunity-card,
.demand-score-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-card:hover,
.stat-card:hover,
.issue-card:hover,
.segment-card:hover,
.option-card:hover,
.scenario-card:hover,
.insight-card:hover,
.opportunity-card:hover,
.demand-score-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px color-mix(in srgb, var(--phase-color, #00d4ff) 30%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.08) inset !important;
}

/* 卡片内元素在 hover 时的连锁反应 */
.content-card:hover .card-title,
.stat-card:hover .card-title {
  color: var(--phase-color, #00d4ff);
  text-shadow: 
    0 0 16px var(--phase-color, #00d4ff),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   额外彩蛋：卡片进场呼吸动画
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@keyframes card-breathe {
  0%, 100% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.45),
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 0 20px color-mix(in srgb, var(--phase-color, #00d4ff) 10%, transparent);
  }
  50% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.45),
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 0 40px color-mix(in srgb, var(--phase-color, #00d4ff) 25%, transparent);
  }
}



/* 禁用卡片 Hover 悬停效果 */
.content-card:hover,
.stat-card:hover,
.issue-card:hover,
.segment-card:hover,
.option-card:hover,
.scenario-card:hover,
.insight-card:hover,
.opportunity-card:hover,
.demand-score-card:hover {
  transform: none !important;
}

.content-card:hover .card-title,
.stat-card:hover .card-title {
  color: inherit !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}


/* ══════════════════════════════════════
   🎯 精致排版升级 - Premium Typography
   ══════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. 全局排版优化
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

body {
  font-family: -apple-system, 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

/* 数字使用等宽显示 */
body {
  font-variant-numeric: tabular-nums slashed-zero;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. 阶段标题栏排版
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#ph-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.2;
}

#ph-desc {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. 卡片内容排版
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.card-title,
.stat-card h3,
.issue-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.4;
}

/* 卡片副标题 */
.card-subtitle,
.tl-step-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
}

/* 卡片描述文本 */
.card-desc,
.card-text {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.1px;
  color: var(--text-muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. 数据和 KPI 排版
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.kpi-value,
[data-target],
.ov2-roi-num,
.metric-value,
.bar-value {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.kpi-label,
.bar-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. 按钮排版
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn-primary-lg,
.btn-secondary,
button {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

.btn-primary-lg {
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. 列表和表格排版
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.data-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.data-table tbody td {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
  line-height: 1.6;
  padding: 12px 8px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. 标签和徽章排版
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.badge,
.hot-tag,
.status-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. 提升卡片内部排版层次
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.content-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-card > *:first-child {
  margin-top: 0;
}

.content-card > *:last-child {
  margin-bottom: 0;
}

/* 卡片内的段落间距 */
.content-card p {
  margin: 0;
  line-height: 1.7;
}

.content-card p + p {
  margin-top: 12px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. 强调文本排版
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.highlight,
em,
strong {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.highlight {
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. 时间轴排版
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.tl-step-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. 视觉层次对比 - 大标题 vs 小标题
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

h1 {
  font-size: 32px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 24px;
  letter-spacing: -0.4px;
}

h3 {
  font-size: 18px;
  letter-spacing: -0.2px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. 副文本的精致处理
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

small,
.text-small,
.help-text {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.2px;
  font-weight: 400;
}

.text-muted {
  font-weight: 400;
  letter-spacing: 0.1px;
}


/* ══════════════════════════════════════
   🔥 全面视觉升级 - Premium Design Overhaul
   ══════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1️⃣ 卡片间距和大小升级
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.content-card,
.stat-card,
.issue-card,
.segment-card,
.option-card,
.scenario-card,
.insight-card,
.opportunity-card,
.demand-score-card {
  padding: 28px !important;
  margin-bottom: 20px !important;
  border-radius: 16px !important;
  min-height: 120px;
}

/* 卡片间距 - 给呼吸感 */
#step-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 让卡片宽度更充分 */
.phase-body #step-content {
  padding-right: 20px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2️⃣ 加强色彩对比
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 标题栏背景加深 */
.phase-header {
  background: rgba(10, 8, 18, 0.95) !important;
  padding: 18px 28px !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08) !important;
}

/* 卡片背景加强对比 */
.content-card,
.stat-card,
.issue-card,
.segment-card,
.option-card,
.scenario-card,
.insight-card,
.opportunity-card,
.demand-score-card {
  background: rgba(19, 16, 30, 0.7) !important;
}

/* 卡片标题色彩加强 */
.card-title {
  color: var(--text-primary) !important;
  font-weight: 800 !important;
  font-size: 17px !important;
}

/* 文本对比加强 */
.card-desc,
.card-text {
  color: var(--text-secondary) !important;
}

/* 时间轴背景对比 */
#step-timeline,
#planner-timeline {
  background: rgba(10, 8, 18, 0.5);
  padding: 16px 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3️⃣ 装饰细节 - 分割线、角线、网格
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 卡片顶部装饰线 */
.content-card::before,
.stat-card::before,
.issue-card::before,
.segment-card::before,
.option-card::before,
.scenario-card::before,
.insight-card::before,
.opportunity-card::before,
.demand-score-card::before {
  height: 2px !important;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--phase-color, #00d4ff) 80%, white),
    transparent) !important;
  opacity: 0.8 !important;
}

/* 卡片左侧装饰条 */
.content-card,
.stat-card,
.issue-card,
.segment-card,
.option-card,
.scenario-card,
.insight-card,
.opportunity-card,
.demand-score-card {
  border-left: 3px solid var(--phase-color, #00d4ff) !important;
}

/* 卡片内部分割线 */
.content-card .divider,
.card-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  margin-top: 16px;
}

/* 标题栏右侧装饰元素 */
.phase-header::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    var(--phase-color, #00d4ff),
    transparent);
  opacity: 0.3;
}

.phase-header {
  position: relative;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4️⃣ 关键数字和标题放大
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 阶段标题显著增大 */
#ph-name {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
}

#ph-num {
  font-size: 28px !important;
  width: 44px !important;
  height: 44px !important;
}

/* 卡片大标题放大 */
.card-title {
  font-size: 18px !important;
}

/* KPI 数字显著放大 */
.kpi-value,
[data-target],
.ov2-roi-num,
.metric-value,
.bar-value {
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -1px !important;
}

.kpi-label,
.bar-label {
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* 时间轴步骤标题放大 */
.tl-step-name {
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* 表格标题放大 */
.data-table thead th {
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 14px 10px !important;
}

/* 按钮文字放大 */
.btn-primary-lg {
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5️⃣ 综合优化 - 视觉层次加强
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 段落间距加强 */
.content-card p {
  line-height: 1.8 !important;
}

.content-card p + p {
  margin-top: 14px !important;
}

/* 列表间距加强 */
.content-card ul,
.content-card ol {
  padding-left: 20px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.content-card li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* 卡片内网格布局间距 */
.two-col {
  gap: 18px !important;
}

/* 强调文本更突出 */
.highlight,
.badge {
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
}

/* 数据表格行高 */
.data-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tbody td {
  font-size: 14px !important;
  padding: 14px 10px !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6️⃣ 按钮和交互视觉升级
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn-primary-lg {
  background: linear-gradient(135deg,
    rgba(0, 212, 255, 0.3),
    rgba(123, 94, 167, 0.3)) !important;
  border: 1.5px solid rgba(0, 212, 255, 0.7) !important;
  box-shadow:
    0 0 24px rgba(0, 212, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px;
}

.btn-primary-lg:hover {
  background: linear-gradient(135deg,
    rgba(0, 212, 255, 0.4),
    rgba(123, 94, 167, 0.4)) !important;
  border-color: rgba(0, 212, 255, 0.9) !important;
  box-shadow:
    0 0 32px rgba(0, 212, 255, 0.5),
    0 8px 24px rgba(0, 212, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}


/* 移除卡片左侧竖条装饰 - 太刺眼了 */
.content-card,
.stat-card,
.issue-card,
.segment-card,
.option-card,
.scenario-card,
.insight-card,
.opportunity-card,
.demand-score-card {
  border-left: none !important;
}


/* 修复滚动问题 - 恢复正常流布局 */
#step-content {
  display: block !important;
  flex-direction: unset !important;
  gap: unset !important;
}

/* 卡片间距通过 margin 而非 flex gap */
.content-card,
.stat-card,
.issue-card,
.segment-card,
.option-card,
.scenario-card,
.insight-card,
.opportunity-card,
.demand-score-card {
  margin-bottom: 20px !important;
}

/* 卡片最后一个移除 margin */
.content-card:last-child,
.stat-card:last-child,
.issue-card:last-child,
.segment-card:last-child,
.option-card:last-child,
.scenario-card:last-child,
.insight-card:last-child,
.opportunity-card:last-child,
.demand-score-card:last-child {
  margin-bottom: 0 !important;
}

/* 确保 phase-body 能正确计算高度 */
#screen-phase {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.phase-header {
  flex-shrink: 0;
}

#step-controller {
  flex-shrink: 0;
}

.phase-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  height: 100% !important;
}

#step-timeline {
  overflow-y: auto !important;
  overflow-x: hidden;
  height: 100% !important;
  max-height: 100% !important;
}

#step-content {
  overflow-y: auto;
  overflow-x: hidden;
}


/* 统一导航按钮间距 */
.nav-btn {
  padding: 8px 14px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}


/* 撤销导航按钮改动 - 恢复原样 */
.nav-btn {
  padding: 6px 12px !important;
  height: auto !important;
  display: inline-block !important;
  align-items: unset !important;
  justify-content: unset !important;
  font-weight: 400 !important;
}


/* 调整决策按钮右间距 */
.nav-btn[data-view="planner"] {
  margin-right: 6px !important;
}


/* 强制增加决策按钮右间距 */
button[data-view="planner"],
.nav-btn[data-view="planner"] {
  margin-right: 8px !important;
}


/* 为策划按钮增加左间距 */
.nav-btn[data-phase="2"] {
  margin-left: 8px !important;
}


/* 移除 button[onclick] 特殊样式 */
button[onclick] {
  position: static !important;
  overflow: visible !important;
  transition: color var(--t-base), background var(--t-base) !important;
}

/* 重新实现导航按钮统一样式 */
.nav-btn {
  padding: 6px 12px !important;
  margin: 0 !important;
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  transition: color var(--t-base), background var(--t-base), border-color var(--t-base) !important;
}

/* 移除之前的特殊间距规则 */
.nav-btn[data-view="planner"] {
  margin-right: 0 !important;
}

.nav-btn[data-phase="2"] {
  margin-left: 0 !important;
}


/* 减小导航按钮间距 */
.nav-phases {
  gap: 0px !important;
}

.nav-btn {
  padding: 6px 10px !important;
}


/* 增加1px间距 */
.nav-phases {
  gap: 1px !important;
}


/* 提升 content-card 内文本质感 */
.content-card {
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  letter-spacing: 0.3px;
}

/* 卡片标题 */
.content-card .card-title {
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  color: #f4f7ff !important;
}

/* 卡片正文 */
.content-card p,
.content-card li,
.content-card div:not(.card-title):not([class*="badge"]):not([class*="tag"]) {
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.7 !important;
  color: #d0d8f0 !important;
}

/* 卡片副标题/描述 */
.content-card .card-desc,
.content-card .card-subtitle {
  color: #a8b5d0 !important;
  font-size: 13px !important;
  letter-spacing: 0.1px !important;
  line-height: 1.6 !important;
}

/* 表格内文字 */
.content-card .data-table td {
  color: #d0d8f0 !important;
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
}

.content-card .data-table th {
  color: #f4f7ff !important;
  font-weight: 700 !important;
}


/* 提升决策页卡片文本质感 */
.stat-card,
.issue-card,
.segment-card,
.option-card,
.scenario-card,
.insight-card,
.opportunity-card,
.demand-score-card {
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  letter-spacing: 0.3px;
}

/* 决策页卡片标题 */
.stat-card h3,
.issue-card h3,
.segment-card h3,
.option-card h3,
.scenario-card h3,
.insight-card h3,
.opportunity-card h3,
.demand-score-card h3 {
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  color: #f4f7ff !important;
}

/* 决策页卡片正文 */
.stat-card p,
.issue-card p,
.segment-card p,
.option-card p,
.scenario-card p,
.insight-card p,
.opportunity-card p,
.demand-score-card p,
.stat-card span,
.issue-card span,
.segment-card span,
.option-card span,
.scenario-card span,
.insight-card span,
.opportunity-card span,
.demand-score-card span {
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.7 !important;
  color: #d0d8f0 !important;
}

/* 决策页卡片副标题/描述 */
.stat-card .subtitle,
.issue-card .subtitle,
.segment-card .subtitle,
.option-card .subtitle,
.scenario-card .subtitle,
.insight-card .subtitle,
.opportunity-card .subtitle,
.demand-score-card .subtitle {
  color: #a8b5d0 !important;
  font-size: 13px !important;
  letter-spacing: 0.1px !important;
  line-height: 1.6 !important;
}


/* 强制更新表格字体和颜色 */
.data-table {
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
}

.data-table thead th {
  color: #f4f7ff !important;
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
}

.data-table tbody td {
  color: #d0d8f0 !important;
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.6 !important;
}

.data-table tbody tr {
  color: #d0d8f0 !important;
}

/* 表格内所有文本 */
table {
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  color: #d0d8f0 !important;
}

table * {
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  color: #d0d8f0 !important;
}


/* 表格字体改为14px */
.data-table thead th {
  font-size: 14px !important;
}

.data-table tbody td {
  font-size: 14px !important;
}

table {
  font-size: 14px !important;
}

table * {
  font-size: 14px !important;
}


/* ══════════════════════════════════════
   🎨 表格酷炫样式升级
   ══════════════════════════════════════ */

.data-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  background: rgba(10, 8, 18, 0.3);
  border-radius: 10px !important;
  overflow: hidden;
}

/* 表头样式 */
.data-table thead {
  background: linear-gradient(135deg,
    rgba(0, 212, 255, 0.1),
    rgba(123, 94, 167, 0.1)) !important;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3) !important;
}

.data-table thead th {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #f4f7ff !important;
  padding: 16px 12px !important;
  text-align: left !important;
  letter-spacing: 0.3px !important;
  position: relative;
  background: transparent !important;
}

/* 表头底部高光线 */
.data-table thead th::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 212, 255, 0.5),
    transparent);
}

/* 表体行 - 交替颜色 */
.data-table tbody tr {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.data-table tbody tr:nth-child(odd) {
  background: rgba(19, 16, 30, 0.3) !important;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(10, 8, 18, 0.2) !important;
}

/* 表格行 Hover 效果 */
.data-table tbody tr:hover {
  background: rgba(0, 212, 255, 0.12) !important;
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1) !important;
}

/* 表格单元格 */
.data-table td {
  color: #d0d8f0 !important;
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding: 14px 12px !important;
  letter-spacing: 0.2px !important;
  transition: all 0.3s !important;
}

/* 表格单元格 Hover 凸显 */
.data-table tbody tr:hover td {
  color: #f4f7ff !important;
}

/* 第一列和最后一列特殊处理 */
.data-table td:first-child {
  border-left: 3px solid transparent !important;
  transition: border-color 0.3s !important;
}

.data-table tbody tr:hover td:first-child {
  border-left-color: var(--phase-color, #00d4ff) !important;
}

/* 数字单元格右对齐 */
.data-table td.number,
.data-table th.number {
  text-align: right !important;
  font-family: 'SF Mono', 'Menlo', monospace !important;
}

/* 强调单元格 */
.data-table td.highlight,
.data-table th.highlight {
  background: rgba(0, 212, 255, 0.1) !important;
  font-weight: 600 !important;
}

/* 成功/失败状态 */
.data-table .status-success {
  color: #00e5a0 !important;
  font-weight: 600 !important;
}

.data-table .status-error {
  color: #ff5c6c !important;
  font-weight: 600 !important;
}

.data-table .status-warning {
  color: #f5c542 !important;
  font-weight: 600 !important;
}

/* 表格底部装饰 */
.data-table tbody tr:last-child {
  border-bottom: 2px solid rgba(0, 212, 255, 0.2) !important;
}


/* ══════════════════════════════════════
   决策页表格酷炫升级 - ch-table
   ══════════════════════════════════════ */

.ch-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  background: rgba(10, 8, 18, 0.3) !important;
  border-radius: 10px !important;
  overflow: hidden;
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
}

/* 表头 */
.ch-table th {
  background: linear-gradient(135deg,
    rgba(0, 212, 255, 0.1),
    rgba(123, 94, 167, 0.1)) !important;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3) !important;
  color: #f4f7ff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 16px 12px !important;
  text-align: left !important;
  letter-spacing: 0.3px !important;
  position: relative;
}

/* 表头高光 */
.ch-table th::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 212, 255, 0.5),
    transparent);
}

/* 表格行 */
.ch-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.ch-table tbody tr:nth-child(odd) {
  background: rgba(19, 16, 30, 0.3) !important;
}

.ch-table tbody tr:nth-child(even) {
  background: rgba(10, 8, 18, 0.2) !important;
}

/* 行 Hover */
.ch-table tbody tr:hover {
  background: rgba(0, 212, 255, 0.12) !important;
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1) !important;
}

/* 单元格 */
.ch-table td {
  color: #d0d8f0 !important;
  font-family: 'SF Pro Display', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  padding: 14px 12px !important;
  letter-spacing: 0.2px !important;
  transition: all 0.3s !important;
}

.ch-table tbody tr:hover td {
  color: #f4f7ff !important;
}

/* 数值单元格 */
.ch-table .val {
  color: var(--accent-primary) !important;
  font-weight: 700 !important;
  font-family: 'SF Mono', 'Menlo', monospace !important;
}

/* 表格底部 */
.ch-table tbody tr:last-child {
  border-bottom: 2px solid rgba(0, 212, 255, 0.2) !important;
}


/* 强制覆盖 JS 中的 ch-table 样式 */
body .ch-table,
.stat-card .ch-table,
.opportunity-card .ch-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  background: rgba(10, 8, 18, 0.3) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  font-size: 14px !important;
  margin: 16px 0 !important;
}

body .ch-table th,
.stat-card .ch-table th,
.opportunity-card .ch-table th {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 94, 167, 0.1)) !important;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3) !important;
  color: #f4f7ff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 16px 12px !important;
  text-align: left !important;
  letter-spacing: 0.3px !important;
}

body .ch-table tbody tr,
.stat-card .ch-table tbody tr,
.opportunity-card .ch-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: all 0.3s !important;
}

body .ch-table tbody tr:nth-child(odd),
.stat-card .ch-table tbody tr:nth-child(odd),
.opportunity-card .ch-table tbody tr:nth-child(odd) {
  background: rgba(19, 16, 30, 0.3) !important;
}

body .ch-table tbody tr:nth-child(even),
.stat-card .ch-table tbody tr:nth-child(even),
.opportunity-card .ch-table tbody tr:nth-child(even) {
  background: rgba(10, 8, 18, 0.2) !important;
}

body .ch-table tbody tr:hover,
.stat-card .ch-table tbody tr:hover,
.opportunity-card .ch-table tbody tr:hover {
  background: rgba(0, 212, 255, 0.12) !important;
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1) !important;
}

body .ch-table td,
.stat-card .ch-table td,
.opportunity-card .ch-table td {
  color: #d0d8f0 !important;
  font-size: 14px !important;
  padding: 14px 12px !important;
}

body .ch-table tbody tr:hover td,
.stat-card .ch-table tbody tr:hover td,
.opportunity-card .ch-table tbody tr:hover td {
  color: #f4f7ff !important;
}


/* 所有决策页表格酷炫升级 */
.ch-table,
.risk-table,
.benchmark-table,
table[class*="table"] {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  background: rgba(10, 8, 18, 0.3) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  font-size: 14px !important;
  margin: 16px 0 !important;
}

.ch-table th,
.risk-table th,
.benchmark-table th,
table[class*="table"] th {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 94, 167, 0.1)) !important;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3) !important;
  color: #f4f7ff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 16px 12px !important;
  letter-spacing: 0.3px !important;
}

.ch-table tr,
.risk-table tr,
.benchmark-table tr,
table[class*="table"] tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: all 0.3s !important;
}

.ch-table tbody tr:nth-child(odd),
.risk-table tbody tr:nth-child(odd),
.benchmark-table tbody tr:nth-child(odd),
table[class*="table"] tbody tr:nth-child(odd) {
  background: rgba(19, 16, 30, 0.3) !important;
}

.ch-table tbody tr:nth-child(even),
.risk-table tbody tr:nth-child(even),
.benchmark-table tbody tr:nth-child(even),
table[class*="table"] tbody tr:nth-child(even) {
  background: rgba(10, 8, 18, 0.2) !important;
}

.ch-table tbody tr:hover,
.risk-table tbody tr:hover,
.benchmark-table tbody tr:hover,
table[class*="table"] tbody tr:hover {
  background: rgba(0, 212, 255, 0.12) !important;
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1) !important;
}

.ch-table td,
.risk-table td,
.benchmark-table td,
table[class*="table"] td {
  color: #d0d8f0 !important;
  font-size: 14px !important;
  padding: 14px 12px !important;
}

.ch-table tbody tr:hover td,
.risk-table tbody tr:hover td,
.benchmark-table tbody tr:hover td,
table[class*="table"] tbody tr:hover td {
  color: #f4f7ff !important;
}

/* === Boot Splash (1.2s 超科技感启动序列) === */
.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #0a0812 0%, #0f0620 50%, #050308 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
  cursor: pointer;
}

/* 背景粒子效果 */
.boot-splash::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 1px at 20% 30%, rgba(0,212,255,.4), transparent 1%),
    radial-gradient(circle 1px at 60% 70%, rgba(196,181,253,.3), transparent 1%),
    radial-gradient(circle 1px at 80% 10%, rgba(0,212,255,.2), transparent 1%),
    radial-gradient(circle 1px at 10% 80%, rgba(196,181,253,.25), transparent 1%),
    radial-gradient(circle 2px at 40% 50%, rgba(0,212,255,.15), transparent 1%);
  background-size: 200% 200%, 300% 300%, 250% 250%, 280% 280%, 150% 150%;
  animation: boot-particles 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
}

/* 高级扫描线效果 */
.boot-splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0,212,255,.015) 1px,
    rgba(0,212,255,.015) 2px
  );
  animation: boot-scanlines-enhanced 0.18s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes boot-scanlines-enhanced {
  0% { transform: translateY(0); }
  100% { transform: translateY(3px); }
}

@keyframes boot-particles {
  0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  50% { background-position: 100% 100%, 100% 100%, 50% 50%, 50% 50%, 100% 0%; }
  100% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
}

.boot-splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: boot-fade-out 0.6s ease-out forwards;
}

@keyframes boot-fade-out {
  to {
    opacity: 0;
    filter: blur(4px);
  }
}

.boot-logo {
  font-size: 72px;
  font-weight: 300;
  letter-spacing: 0.35em;
  margin-bottom: 6px;
  position: relative;
  z-index: 3;
  display: flex;
  gap: 12px;
  text-transform: uppercase;
}

.boot-logo span {
  opacity: 0;
  animation: boot-letter-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  will-change: transform, opacity, filter;
}

.bl-b { animation-delay: 0.05s; color: #388bfd; }
.bl-i { animation-delay: 0.2s; color: #00d4ff; }
.bl-e { animation-delay: 0.35s; color: #c4b5fd; }

@keyframes boot-letter-in {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.7) rotateX(90deg);
    filter: blur(8px);
  }
  40% {
    filter: drop-shadow(0 0 12px currentColor);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: drop-shadow(0 0 20px currentColor);
  }
}

.boot-fullname {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: boot-text-in 0.5s ease 0.7s forwards;
  position: relative;
  z-index: 2;
}

.boot-tagline {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(0, 212, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: boot-text-in 0.5s ease 0.8s forwards;
  position: relative;
  z-index: 2;
}
@keyframes boot-text-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.boot-log {
  width: 420px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  position: relative;
  z-index: 2;
}

.boot-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  transform: translateX(-8px);
  animation: boot-line-in 0.3s ease forwards;
  transition: all 0.2s ease;
}
.boot-line .bl-prompt {
  color: var(--accent-primary);
  font-weight: 600;
  margin-right: 8px;
  animation: boot-cursor-pulse 1s ease-in-out infinite;
}
@keyframes boot-cursor-pulse {
  0%, 100% { opacity: 0.4; text-shadow: 0 0 4px rgba(0,212,255,0.5); }
  50% { opacity: 1; text-shadow: 0 0 12px rgba(0,212,255,0.8); }
}
.boot-line .bl-name { color: rgba(255,255,255,0.7); flex: 1; }
.boot-line .bl-status {
  font-weight: 600;
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
}
.boot-line.bl-ok .bl-status {
  color: #3fb950;
  background: rgba(63,185,80,0.15);
  box-shadow: inset 0 0 8px rgba(63,185,80,0.2);
}

.boot-line.bl-ok .bl-status::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #3fb950;
  border-radius: 50%;
  margin-left: 4px;
  animation: boot-ok-pulse 0.6s ease-in-out infinite;
}

.boot-line.bl-ready .bl-status {
  color: #58c4dc;
  background: rgba(88,196,220,0.15);
  font-weight: 700;
  box-shadow: inset 0 0 12px rgba(88,196,220,0.3);
}

.boot-line.bl-loading .bl-status {
  color: #fbbf24;
  background: rgba(251,191,36,0.15);
  animation: boot-loading-pulse 0.8s ease-in-out infinite;
  box-shadow: inset 0 0 8px rgba(251,191,36,0.2);
}

.boot-line.bl-loading .bl-status::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #fbbf24;
  border-radius: 50%;
  margin-left: 4px;
  animation: boot-spin 1.2s linear infinite;
}

@keyframes boot-ok-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes boot-loading-pulse {
  0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 4px #fbbf24); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px #fbbf24); }
}

@keyframes boot-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.boot-line:hover { background: rgba(0,212,255,0.05); }
@keyframes boot-line-in { to { opacity: 1; transform: translateX(0); } }

.boot-bar {
  width: 420px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: visible;
  margin-top: 12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* 分段进度条 */
.boot-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(56, 139, 253, 0.6) 12%,
    rgba(57, 211, 195, 0.6) 25%,
    rgba(210, 168, 255, 0.6) 37%,
    rgba(247, 133, 62, 0.6) 50%,
    rgba(63, 185, 80, 0.6) 62%,
    rgba(255, 107, 157, 0.6) 75%,
    rgba(227, 179, 65, 0.6) 87%,
    rgba(88, 196, 220, 0.6) 100%,
    transparent 100%);
  transform: translateX(-100%);
  animation: boot-bar-fill 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: inset 0 0 8px rgba(0, 212, 255, 0.3);
  border-radius: 2px;
}

/* 波纹高光 */
.boot-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent);
  animation: boot-wave 1s ease-in-out infinite;
  filter: blur(1px);
  border-radius: 2px;
}

@keyframes boot-bar-fill {
  to { transform: translateX(0); }
}

@keyframes boot-wave {
  0%, 100% { transform: translateX(-420px); }
  50% { transform: translateX(420px); }
}

.boot-skip-hint {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(0, 212, 255, 0.4);
  text-transform: uppercase;
  margin-top: 16px;
  position: relative;
  z-index: 3;
  animation: boot-hint-fade 0.8s ease 0.6s forwards;
  opacity: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.boot-skip-hint:hover {
  color: rgba(0, 212, 255, 0.8);
}

@keyframes boot-hint-fade {
  to {
    opacity: 1;
  }
}

body.booting #global-nav,
body.booting .back-to-top { opacity: 0; pointer-events: none; }

/* ════════════════════════════════════════════════════
   🎨 首页创意升级 (5项)
   ════════════════════════════════════════════════════ */

/* 1️⃣ Hero Parallax 已移除 */
.hero-parallax-layer { display: none !important; }
.parallax-dot { display: none !important; }

/* 2️⃣ Pain Points: 入场 flip-in + hover 3D 翻牌（外层稳定 / 内层翻转） */
.pain-card {
  position: relative;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  overflow: visible !important;
  perspective: 1200px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pain-card.pain-flipped {
  opacity: 1;
  transform: translateY(0);
}
.pain-card:hover { background: transparent !important; border-color: transparent !important; }

.pain-flipper {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.pain-card.pain-flipped:hover .pain-flipper {
  transform: rotateY(180deg);
}

/* Front face: 包裹 icon/title/text */
.pain-front {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color var(--t-base), background var(--t-base);
}
.pain-card.pain-flipped:hover .pain-front {
  border-color: rgba(255, 92, 108, 0.4);
}

/* Back face: solution overlay 预旋转 180deg */
.pain-solution-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,30,24,0.98), rgba(15,30,25,0.98));
  border: 1px solid rgba(63,185,80,0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1.5;
  color: #3fb950;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(63,185,80,0.25), inset 0 0 30px rgba(63,185,80,0.08);
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 3️⃣ Moat 护城河 Glassmorphism + 渐变 Border */
.moat-card {
  background: rgba(14, 12, 24, 0.4) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  border: 1px solid transparent !important;
  background-image: 
    linear-gradient(rgba(14, 12, 24, 0.4), rgba(14, 12, 24, 0.4)),
    linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(196, 181, 253, 0.2));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 40px rgba(0, 212, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.moat-card:hover {
  background: rgba(14, 12, 24, 0.5) !important;
  box-shadow: 
    0 12px 48px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 60px rgba(0, 212, 255, 0.15) !important;
  transform: translateY(-4px);
}
.moat-icon {
  font-size: 32px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
  transition: filter 0.4s ease;
}
.moat-card:hover .moat-icon {
  filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.6));
}

/* 4️⃣ ROI 数字滚动 + 柱状图动画 */
.roi-m-bar {
  position: relative;
  overflow: hidden;
}
.roi-m-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0.15) 80%,
    transparent);
  animation: roi-shimmer 2.5s ease-in-out infinite;
}
@keyframes roi-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.roi-m-bar.bar-on::after {
  animation: roi-bar-pop 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes roi-bar-pop {
  0%   { width: 0; box-shadow: 0 0 0 rgba(0,212,255,0.5); }
  60%  { box-shadow: 0 0 8px rgba(0,212,255,0.8); }
  100% { box-shadow: 0 0 0 rgba(0,212,255,0); }
}

.roi-m-val {
  position: relative;
  z-index: 1;
}

/* 5️⃣ Final CTA 呼吸环 + Shimmer */
.final-cta .btn-primary-lg {
  position: relative;
  overflow: hidden;
}
.final-cta .btn-primary-lg::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 2px solid rgba(0, 212, 255, 0.5);
  animation: cta-breath 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-breath {
  0%, 100% { transform: scale(1);    opacity: 0.65; }
  50%      { transform: scale(1.08); opacity: 0; }
}
.final-cta .btn-primary-lg::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent);
  animation: btn-shimmer 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shimmer {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Phase 2 升级：数据可视化 + 微交互
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 增强 bar-fill 渐变效果 */
.bar-fill {
  background: linear-gradient(90deg,
    var(--phase-color, #388bfd) 0%,
    color-mix(in srgb, var(--phase-color, #388bfd) 70%, #fff) 100%);
  box-shadow: 0 0 8px rgba(var(--phase-rgb, 56,139,253), 0.4);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bar-track {
  overflow: hidden;
  border-radius: 3px;
}

/* KPI 格子网格 */
.card-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.card-kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.card-kpi:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.card-kpi-value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--phase-color, #388bfd);
  line-height: 1.2;
}

.card-kpi-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-kpi-delta {
  font-size: 10px;
  color: var(--color-success);
  margin-top: 2px;
}

/* 环形进度指示器 */
.ring-progress {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.ring-progress svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.ring-progress .ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 4;
}

.ring-progress .ring-fill {
  fill: none;
  stroke: var(--phase-color, #388bfd);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  transition: stroke-dashoffset 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 4px var(--phase-color, #388bfd));
}

.ring-progress .ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  font-variant-numeric: tabular-nums;
}

/* 内容卡片错排入场动画 */
#step-content.step-transition .content-card,
#step-content.step-transition .stat-card {
  opacity: 0;
  transform: translateY(12px);
  animation: card-stagger-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#step-content.step-transition .content-card:nth-child(1),
#step-content.step-transition .stat-card:nth-child(1) { animation-delay: 0ms; }
#step-content.step-transition .content-card:nth-child(2),
#step-content.step-transition .stat-card:nth-child(2) { animation-delay: 60ms; }
#step-content.step-transition .content-card:nth-child(3),
#step-content.step-transition .stat-card:nth-child(3) { animation-delay: 120ms; }
#step-content.step-transition .content-card:nth-child(4),
#step-content.step-transition .stat-card:nth-child(4) { animation-delay: 180ms; }
#step-content.step-transition .content-card:nth-child(5),
#step-content.step-transition .stat-card:nth-child(5) { animation-delay: 240ms; }

@keyframes card-stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
