@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600;700&family=Share+Tech+Mono&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --modal-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg-deep: #01040a;
  --bg-mid: #030812;
  --bg-glass: rgba(2, 8, 20, 0.45);
  --bg-glass-strong: rgba(2, 8, 20, 0.65);
  --cyan: #00f0ff;
  --cyan-bright: #33f5ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --purple: #a855f7;
  --purple-bright: #c084fc;
  --purple-dim: rgba(168, 85, 247, 0.15);
  --magenta: #ff2de5;
  --magenta-bright: #ff61ed;
  --magenta-dim: rgba(255, 45, 229, 0.15);
  --amber: #fbbf24;
  --amber-bright: #fcd34d;
  --amber-dim: rgba(251, 191, 36, 0.15);
  --green: #22ff88;
  --green-bright: #4affa0;
  --green-dim: rgba(34, 255, 136, 0.15);
  --red: #ff3366;
  --red-bright: #ff5580;
  --red-dim: rgba(255, 51, 102, 0.15);
  --gold: #ffd700;
  --gold-bright: #ffe44d;
  --gold-dim: rgba(255, 215, 0, 0.15);
  --text: #e0f4ff;
  --text-bright: #ffffff;
  --text-dim: rgba(224, 244, 255, 0.5);
  --text-muted: rgba(224, 244, 255, 0.3);
  --glass-blur: blur(50px) saturate(1.8);
  --glass-border: 1px solid rgba(0, 240, 255, 0.12);
  --glass-border-strong: 1px solid rgba(0, 240, 255, 0.25);
  --shadow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
  --shadow-cyan-strong: 0 0 40px rgba(0, 240, 255, 0.5), 0 0 80px rgba(0, 240, 255, 0.2);
  --shadow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
  --shadow-purple-strong: 0 0 40px rgba(168, 85, 247, 0.5), 0 0 80px rgba(168, 85, 247, 0.2);
  --shadow-magenta: 0 0 20px rgba(255, 45, 229, 0.3);
  --shadow-multi: 0 0 20px rgba(0, 240, 255, 0.2), 0 0 40px rgba(168, 85, 247, 0.15), 0 0 60px rgba(255, 45, 229, 0.1);
  --shadow-multi-strong: 0 0 30px rgba(0, 240, 255, 0.4), 0 0 60px rgba(168, 85, 247, 0.25), 0 0 90px rgba(255, 45, 229, 0.15);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-glow-strong: 0 0 30px currentColor, 0 0 60px currentColor;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-title: 'Orbitron', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;
  --font-terminal: 'Share Tech Mono', monospace;
  --font-body: 'Noto Sans SC', sans-serif;
  --clip-corner: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --clip-corner-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  --clip-corner-lg: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  --clip-terminal: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--cyan-dim);
  color: var(--cyan-bright);
  text-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--magenta));
  border-radius: 4px;
  box-shadow: 0 0 10px var(--cyan);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--cyan-bright), var(--purple-bright), var(--magenta-bright));
  box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--purple);
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.015) 2px,
    rgba(0, 240, 255, 0.015) 4px
  );
  animation: scanlineMove 8s linear infinite;
}

.scanlines::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.03), transparent);
  animation: scanSweep 6s ease-in-out infinite;
}

@keyframes scanlineMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

@keyframes scanSweep {
  0% { top: -200px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(1, 4, 10, 0.7) 100%);
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.glass-strong {
  background: var(--bg-glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border-strong);
  box-shadow: var(--shadow-glass), var(--shadow-multi);
}

.neon-border {
  position: relative;
}

.neon-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(var(--angle), var(--cyan), var(--purple), var(--magenta), var(--cyan));
  border-radius: inherit;
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}

.neon-border::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-deep);
  border-radius: inherit;
  z-index: -1;
}

@keyframes borderRotate {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

.holo-border {
  position: relative;
}

.holo-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from var(--angle), var(--cyan), var(--purple), var(--magenta), var(--amber), var(--green), var(--cyan));
  border-radius: inherit;
  z-index: -1;
  animation: conicSpin 3s linear infinite;
}

.holo-border::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-deep);
  border-radius: inherit;
  z-index: -1;
}

@keyframes conicSpin {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

/* —— 终端栏装饰（composer输入区顶部）—— */
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}

.terminal-dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.terminal-dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.terminal-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }

.terminal-bar:hover .terminal-dot.red { box-shadow: 0 0 14px var(--red); }
.terminal-bar:hover .terminal-dot.amber { box-shadow: 0 0 14px var(--amber); }
.terminal-bar:hover .terminal-dot.green { box-shadow: 0 0 14px var(--green); }

.terminal-title {
  margin-left: 8px;
  color: rgba(0, 240, 255, 0.5);
  font-size: 10px;
  text-transform: uppercase;
}

.terminal-prompt {
  margin-left: auto;
  color: var(--cyan);
  font-weight: bold;
  font-size: 14px;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.glitch::before {
  color: var(--red);
  text-shadow: 2px 0 var(--red);
}

.glitch::after {
  color: var(--cyan);
  text-shadow: -2px 0 var(--cyan);
}

.glitch:hover::before {
  opacity: 0.8;
  animation: glitchR 0.4s infinite linear alternate-reverse;
}

.glitch:hover::after {
  opacity: 0.8;
  animation: glitchB 0.4s infinite linear alternate-reverse;
}

@keyframes glitchR {
  0% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  20% { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
  40% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 0); }
  60% { clip-path: inset(80% 0 10% 0); transform: translate(2px, 0); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(50% 0 30% 0); transform: translate(3px, 0); }
}

@keyframes glitchB {
  0% { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  40% { clip-path: inset(80% 0 10% 0); transform: translate(2px, 0); }
  60% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 0); }
  80% { clip-path: inset(50% 0 30% 0); transform: translate(3px, 0); }
  100% { clip-path: inset(10% 0 80% 0); transform: translate(-3px, 0); }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  clip-path: var(--clip-corner);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan-dim));
  color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright));
  color: var(--bg-deep);
  box-shadow: var(--shadow-cyan-strong), inset 0 0 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple-dim), var(--purple-dim));
  color: var(--purple-bright);
  border: 1px solid var(--purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3), inset 0 0 15px rgba(168, 85, 247, 0.05);
}

.btn-purple:hover {
  background: linear-gradient(135deg, var(--purple), var(--purple-bright));
  color: var(--bg-deep);
  box-shadow: var(--shadow-purple-strong), inset 0 0 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-magenta {
  background: linear-gradient(135deg, var(--magenta-dim), var(--magenta-dim));
  color: var(--magenta);
  border: 1px solid var(--magenta);
  box-shadow: 0 0 15px rgba(255, 45, 229, 0.3), inset 0 0 15px rgba(255, 45, 229, 0.05);
}

.btn-magenta:hover {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-bright));
  color: var(--bg-deep);
  box-shadow: 0 0 40px rgba(255, 45, 229, 0.5), 0 0 80px rgba(255, 45, 229, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold-dim));
  color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), inset 0 0 15px rgba(255, 215, 0, 0.05);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg-deep);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 0 80px rgba(255, 215, 0, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--red-dim), var(--red-dim));
  color: var(--red);
  border: 1px solid var(--red);
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.3), inset 0 0 15px rgba(255, 51, 102, 0.05);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  color: var(--bg-deep);
  box-shadow: 0 0 40px rgba(255, 51, 102, 0.5), 0 0 80px rgba(255, 51, 102, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  box-shadow: none;
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan-dim));
  color: var(--cyan);
}

.app-layout {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  min-height: 100vh;
  padding: 24px 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  border-right: var(--glass-border);
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: var(--glass-border);
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: var(--font-title);
  font-weight: 900;
  color: var(--bg-deep);
  box-shadow: var(--shadow-cyan);
  clip-path: var(--clip-corner-sm);
}

.logo-text {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 4px;
  border-radius: var(--radius);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  clip-path: var(--clip-corner-sm);
}

.nav-item:hover {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateX(4px);
}

.nav-item.active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

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

.sidebar-user {
  padding: 16px 24px;
  border-top: var(--glass-border);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-tier {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.tier-free { color: var(--text-dim); background: rgba(255,255,255,0.05); }
.tier-monthly { color: var(--amber); background: var(--amber-dim); }
.tier-lifetime { color: var(--gold); background: var(--gold-dim); box-shadow: 0 0 10px rgba(255,215,0,0.3); }

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 24px 32px 80px;
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: var(--glass-border);
}

.page-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  clip-path: var(--clip-corner);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.card.visible-left {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.card.visible-right {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.card.visible-scale {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.card[data-anim="left"] {
  transform: translateX(-30px);
}

.card[data-anim="right"] {
  transform: translateX(30px);
}

.card[data-anim="scale"] {
  transform: scale(0.95);
}

.card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: var(--shadow-multi), var(--shadow-glass);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: var(--glass-border);
}

.card-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: all var(--transition);
  outline: none;
  clip-path: var(--clip-corner-sm);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.05);
  background: rgba(0, 240, 255, 0.05);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300f0ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.tier-card {
  padding: 16px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  clip-path: var(--clip-corner-sm);
}

.tier-card:hover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-2px);
}

.tier-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: var(--shadow-cyan);
}

.tier-card.tier-standard { border-color: rgba(0, 240, 255, 0.3); }
.tier-card.tier-standard.selected { box-shadow: var(--shadow-cyan); background: var(--cyan-dim); }

.tier-card.tier-deep { border-color: rgba(168, 85, 247, 0.3); }
.tier-card.tier-deep:hover, .tier-card.tier-deep.selected { border-color: var(--purple); background: var(--purple-dim); box-shadow: var(--shadow-purple); }

.tier-card.tier-top { border-color: rgba(255, 215, 0, 0.3); }
.tier-card.tier-top:hover, .tier-card.tier-top.selected { border-color: var(--gold); background: var(--gold-dim); box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }

.tier-card .tier-name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tier-card.tier-standard .tier-name { color: var(--cyan); }
.tier-card.tier-deep .tier-name { color: var(--purple); }
.tier-card.tier-top .tier-name { color: var(--gold); }

.tier-card .tier-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tier-card .tier-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.tier-badge-pro {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid var(--purple);
}

.tier-badge-max {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.usage-bar {
  margin: 8px 0;
}

.usage-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.usage-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.usage-fill.cyan { background: linear-gradient(90deg, var(--cyan), var(--cyan-bright)); box-shadow: 0 0 10px var(--cyan); }
.usage-fill.purple { background: linear-gradient(90deg, var(--purple), var(--purple-bright)); box-shadow: 0 0 10px var(--purple); }
.usage-fill.gold { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); box-shadow: 0 0 10px var(--gold); }

.usage-text {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 4px;
}

.result-area {
  margin-top: 24px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  min-height: 200px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  clip-path: var(--clip-corner);
}

.result-area h3 {
  font-family: var(--font-title);
  color: var(--cyan);
  margin: 20px 0 12px;
  font-size: 16px;
  letter-spacing: 1px;
}

.result-area h3:first-child {
  margin-top: 0;
}

.result-area ul, .result-area ol {
  padding-left: 20px;
  margin: 8px 0;
}

.result-area li {
  margin: 6px 0;
}

.result-area strong {
  color: var(--cyan-bright);
}

.result-area code {
  font-family: var(--font-mono);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--cyan);
  font-size: 13px;
}

.thinking-block {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--purple-bright);
}

.thinking-block summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

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

.history-item {
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  clip-path: var(--clip-corner-sm);
}

.history-item:hover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateX(4px);
  box-shadow: var(--shadow-cyan);
}

.history-topic {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.history-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.history-tier {
  padding: 2px 8px;
  border-radius: 3px;
}

.history-tier.standard { background: var(--cyan-dim); color: var(--cyan); }
.history-tier.deep { background: var(--purple-dim); color: var(--purple); }
.history-tier.top { background: var(--gold-dim); color: var(--gold); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-glass-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  padding: 32px;
  clip-path: var(--clip-corner-lg);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-slow);
}

.modal-overlay.show .modal-card {
  transform: scale(1) translateY(0);
}

.modal-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: conic-gradient(from var(--modal-angle), var(--cyan), var(--purple), var(--magenta), var(--amber), var(--green), var(--cyan));
  border-radius: inherit;
  z-index: -1;
  animation: conicSpinModal 4s linear infinite;
  clip-path: var(--clip-corner-lg);
}

.modal-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-deep);
  border-radius: calc(var(--radius-xl) - 2px);
  z-index: -1;
  clip-path: var(--clip-corner-lg);
}

@keyframes conicSpinModal {
  from { --modal-angle: 0deg; }
  to { --modal-angle: 360deg; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: var(--glass-border);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-dim);
  box-shadow: 0 0 15px var(--red);
}

.payment-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.plan-card {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(0, 0, 0, 0.2);
  clip-path: var(--clip-corner);
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: var(--shadow-cyan-strong);
}

.plan-card.popular {
  border-color: var(--purple);
  background: var(--purple-dim);
}

.plan-card.popular.selected {
  box-shadow: var(--shadow-purple-strong);
}

.plan-card.premium {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.plan-card.premium.selected {
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
}

.plan-badge.hot { background: var(--magenta); color: var(--bg-deep); box-shadow: 0 0 15px var(--magenta); }
.plan-badge.vip { background: var(--gold); color: var(--bg-deep); box-shadow: 0 0 15px var(--gold); }

.plan-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0;
}

.plan-price {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 900;
  margin: 12px 0;
}

.plan-price .currency {
  font-size: 18px;
  font-weight: 600;
}

.plan-card.free .plan-name, .plan-card.free .plan-price { color: var(--text-dim); }
.plan-card.monthly .plan-name, .plan-card.monthly .plan-price { color: var(--amber); }
.plan-card.popular .plan-name, .plan-card.popular .plan-price { color: var(--purple-bright); }
.plan-card.premium .plan-name, .plan-card.premium .plan-price { color: var(--gold); }

.plan-features {
  list-style: none;
  text-align: left;
  margin: 16px 0;
  font-size: 13px;
}

.plan-features li {
  padding: 6px 0;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 8px var(--green);
}

.compliance-notice {
  padding: 16px;
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--amber-bright);
  line-height: 1.6;
}

.compliance-notice strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.qr-section {
  text-align: center;
  margin: 20px 0;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: var(--bg-glass);
  border: 2px dashed var(--cyan);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
}

.qr-icon {
  font-size: 48px;
}

.order-info {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
}

.order-number {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  text-align: center;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--cyan);
  padding: 12px;
  background: var(--cyan-dim);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--cyan);
}

.order-amount {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  text-align: center;
  margin: 12px 0;
}

.upload-area {
  border: 2px dashed rgba(0, 240, 255, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin: 16px 0;
}

.upload-area:hover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.upload-area.dragover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: var(--shadow-cyan);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.upload-text {
  color: var(--text-dim);
  font-size: 14px;
}

.preview-img {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius);
  margin: 12px auto;
  display: block;
  border: 1px solid var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.order-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 1px;
}

.order-status.pending { background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber); }
.order-status.paid { background: var(--purple-dim); color: var(--purple); border: 1px solid var(--purple); }
.order-status.approved { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); box-shadow: 0 0 10px var(--green); }
.order-status.rejected { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }

.team-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.team-stat {
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  border: var(--glass-border);
}

.team-stat-value {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.team-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.invite-link-box {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.invite-link-box .form-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
}

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

.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  border: var(--glass-border);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--cyan);
}

.member-name {
  font-weight: 600;
  font-size: 14px;
}

.member-role {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.member-role.owner { color: var(--gold); }
.member-role.admin { color: var(--purple); }

.invite-section {
  margin: 20px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  border: var(--glass-border);
}

.invite-code-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.invite-code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--purple);
  text-align: center;
  padding: 12px;
  background: var(--purple-dim);
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  text-shadow: 0 0 10px var(--purple);
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.referral-stat {
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}

.referral-stat-value {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--magenta);
  text-shadow: 0 0 10px var(--magenta);
}

.referral-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.points-history {
  max-height: 200px;
  overflow-y: auto;
}

.points-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.05);
  font-size: 13px;
}

.points-item.positive .points-change { color: var(--green); }
.points-item.negative .points-change { color: var(--red); }

.settings-section {
  margin-bottom: 24px;
}

.settings-section h3 {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--cyan);
  margin-bottom: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-input-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  border: var(--glass-border);
}

.key-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}

.key-status.active {
  background: var(--green-dim);
  border: 1px solid var(--green);
  color: var(--green-bright);
}

.key-status.inactive {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.key-status.active .status-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.key-status.inactive .status-dot { background: var(--text-muted); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.key-guide {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 12px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.key-guide ol {
  padding-left: 20px;
}

.key-guide li {
  margin: 4px 0;
}

.key-guide a {
  color: var(--cyan);
  text-decoration: underline;
}

.help-content {
  font-size: 14px;
  line-height: 1.8;
}

.help-content h4 {
  font-family: var(--font-title);
  color: var(--cyan);
  margin: 20px 0 10px;
  font-size: 15px;
}

.help-content h4:first-child {
  margin-top: 0;
}

.help-content p {
  margin: 8px 0;
  color: var(--text-dim);
}

.help-content ul {
  padding-left: 20px;
  margin: 8px 0;
}

.help-content li {
  margin: 4px 0;
  color: var(--text-dim);
}

.faq-item {
  margin: 12px 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.faq-question {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  font-size: 13px;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid rgba(0, 240, 255, 0.05);
}

.auth-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  position: relative;
  border-radius: var(--radius-xl);
  clip-path: var(--clip-corner-lg);
}

.auth-card .card {
  opacity: 1;
  transform: none;
  filter: none;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(0, 240, 255, 0.5);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 3px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: none;
  background: none;
}

.auth-tab.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--cyan);
  text-decoration: none;
  cursor: pointer;
}

.auth-footer a:hover {
  text-shadow: 0 0 10px var(--cyan);
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  clip-path: var(--clip-corner);
}

.toast.success {
  background: var(--green-dim);
  border: 1px solid var(--green);
  color: var(--green-bright);
  box-shadow: 0 0 20px rgba(34, 255, 136, 0.3);
}

.toast.error {
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red-bright);
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

.toast.info {
  background: var(--cyan-dim);
  border: 1px solid var(--cyan);
  color: var(--cyan-bright);
  box-shadow: var(--shadow-cyan);
}

.toast.warning {
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  color: var(--amber-bright);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

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

.toast.fade-out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(100px); }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-text {
  font-size: 14px;
  margin-bottom: 8px;
}

.empty-hint {
  font-size: 12px;
  font-family: var(--font-mono);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  color: var(--bg-deep);
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 4px;
  animation: proPulse 2s ease-in-out infinite;
}

@keyframes proPulse {
  0%, 100% { box-shadow: 0 0 10px var(--purple); }
  50% { box-shadow: 0 0 20px var(--magenta), 0 0 40px var(--purple); }
}

.app-footer {
  position: fixed;
  bottom: 0;
  left: 280px;
  right: 0;
  padding: 12px 32px;
  text-align: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: var(--glass-border);
  z-index: 50;
}

.footer-brand {
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  letter-spacing: 1px;
}

.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-magenta { color: var(--magenta); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-8 { gap: 8px; }
.flex-gap-12 { gap: 12px; }
.flex-gap-16 { gap: 16px; }
.flex-1 { flex: 1; }

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

.w-full { width: 100%; }

.hidden { display: none !important; }

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: var(--radius);
}

.tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: none;
  background: none;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

.tab:hover {
  color: var(--cyan);
}

.tab.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.badge-cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid var(--purple); }
.badge-magenta { background: var(--magenta-dim); color: var(--magenta); border: 1px solid var(--magenta); }
.badge-green { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.badge-red { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.badge-amber { background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber); }
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
  margin: 24px 0;
}

.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: var(--glass-border);
}

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

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.05);
  color: var(--text-dim);
}

.data-table tr:hover td {
  background: rgba(0, 240, 255, 0.03);
  color: var(--text);
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-mono);
}

.page-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.page-btn.active {
  background: var(--cyan);
  color: var(--bg-deep);
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

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

.action-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-mono);
}

.action-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.action-btn.danger:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-dim);
}

.admin-section {
  border: 1px solid var(--amber);
  background: var(--amber-dim);
}

.admin-section .card-title {
  color: var(--amber);
}

.credits-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
}

.credits-value {
  color: var(--cyan);
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 0 10px var(--cyan);
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: 16px;
  }
  .tier-selector {
    grid-template-columns: 1fr;
  }
  .payment-plans {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .referral-stats {
    grid-template-columns: 1fr;
  }
  .team-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .page-title {
    font-size: 22px;
  }
  .modal-card {
    padding: 20px;
    max-height: 95vh;
  }
  .modal-title {
    font-size: 16px;
  }
  .auth-logo {
    font-size: 32px;
  }
  .invite-link-box {
    flex-direction: column;
  }
  .toast-container {
    left: 16px;
    right: 16px;
    top: 16px;
  }
  .toast {
    min-width: auto;
  }
  .team-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   v7.0 HTML 兼容性补丁 —— 匹配实际HTML结构
   ============================================ */

/* 修复粒子canvas ID */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 修复扫描线类名 */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.012) 2px,
    rgba(0, 240, 255, 0.012) 4px
  );
}

/* app 布局（兼容 .app-layout） */
.app {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
}

/* === 侧栏 === */
.sidebar {
  width: 260px;
  min-height: 100vh;
  padding: 20px 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  border-right: var(--glass-border);
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}

/* 品牌标志 */
.brand {
  padding: 0 20px 20px;
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,240,255,0.3), 0 0 40px rgba(168,85,247,0.2);
  clip-path: var(--clip-corner-sm);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.brand-text strong {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.brand-text span {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-label {
  padding: 16px 20px 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.history-list {
  flex: 1;
  padding: 0 8px;
  overflow-y: auto;
  list-style: none;
}

.history-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.history-list li {
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-list li:hover {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: rgba(0,240,255,0.15);
}

.sidebar-foot {
  padding: 16px 20px;
  border-top: var(--glass-border);
}

/* === 主内容区 === */
.main {
  flex: 1;
  margin-left: 260px;
  padding: 0 32px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === 顶栏 === */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(1,4,10,0.95) 0%, rgba(1,4,10,0.7) 80%, transparent 100%);
  backdrop-filter: blur(12px);
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,193,7,0.08));
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  box-shadow: 0 0 15px rgba(255,215,0,0.15);
}
.member-badge.monthly {
  background: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(168,85,247,0.08));
  border-color: rgba(0,240,255,0.3);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,240,255,0.15);
}
.member-badge.yearly {
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(139,92,246,0.1));
  border-color: rgba(6,182,212,0.4);
  color: #22d3ee;
  box-shadow: 0 0 15px rgba(6,182,212,0.2);
}
.member-badge.lifetime {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,140,0,0.1));
  border-color: rgba(255,215,0,0.5);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255,215,0,0.2);
}

.member-icon { font-size: 14px; }

.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--purple-dim);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.share-banner-icon { font-size: 16px; }
.share-banner a { color: var(--purple-bright); text-decoration: none; font-weight: 600; }
.share-banner a:hover { text-shadow: 0 0 10px var(--purple); }

/* === Hero区 === */
.hero {
  position: relative;
  text-align: center;
  padding: 48px 20px 40px;
  margin-bottom: 8px;
  overflow: hidden;
}

/* Hero 四角全息装饰线 */
.hero-deco {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
}
.hero-deco::before,
.hero-deco::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.hero-deco-tl { top: 10px; left: 10px; }
.hero-deco-tl::before { top: 0; left: 0; width: 30px; height: 1px; }
.hero-deco-tl::after { top: 0; left: 0; width: 1px; height: 30px; }
.hero-deco-tr { top: 10px; right: 10px; }
.hero-deco-tr::before { top: 0; right: 0; width: 30px; height: 1px; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.hero-deco-tr::after { top: 0; right: 0; width: 1px; height: 30px; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.hero-deco-bl { bottom: 10px; left: 10px; }
.hero-deco-bl::before { bottom: 0; left: 0; width: 30px; height: 1px; background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.hero-deco-bl::after { bottom: 0; left: 0; width: 1px; height: 30px; background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.hero-deco-br { bottom: 10px; right: 10px; }
.hero-deco-br::before { bottom: 0; right: 0; width: 30px; height: 1px; }
.hero-deco-br::after { bottom: 0; right: 0; width: 1px; height: 30px; }

/* Hero 扫描线 */
.hero-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), var(--cyan), transparent);
  opacity: 0.5;
  animation: scanMove 4s ease-in-out infinite;
  box-shadow: 0 0 20px var(--cyan);
}
@keyframes scanMove {
  0%, 100% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(200px); opacity: 0.6; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(168,85,247,0.08));
  border: 1px solid rgba(0,240,255,0.3);
  border-radius: 2px;
  margin-bottom: 24px;
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: badgePulse 2s ease-in-out infinite;
}
.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  animation: badgePulse 2s ease-in-out infinite 1s;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

/* pipeline箭头 */
.pipe-arrow {
  color: var(--cyan);
  opacity: 0.6;
  font-weight: bold;
  margin: 0 2px;
  text-shadow: 0 0 6px var(--cyan);
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--purple-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(0,240,255,0.3));
}

.hero h1.glitch {
  position: relative;
}

.hero h1.glitch::before,
.hero h1.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1.glitch::before {
  color: var(--magenta);
  z-index: -1;
  animation: glitch1 3s infinite linear alternate-reverse;
}

.hero h1.glitch::after {
  color: var(--cyan);
  z-index: -2;
  animation: glitch2 2s infinite linear alternate-reverse;
}

@keyframes glitch1 {
  0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); }
  20% { clip-path: inset(30% 0 40% 0); transform: translate(2px, 0); }
  40% { clip-path: inset(60% 0 20% 0); transform: translate(-1px, 0); }
  60% { clip-path: inset(10% 0 70% 0); transform: translate(1px, 0); }
  80% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 0); }
}

@keyframes glitch2 {
  0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, 0); }
  20% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); }
  40% { clip-path: inset(20% 0 60% 0); transform: translate(1px, 0); }
  60% { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 0); }
  80% { clip-path: inset(5% 0 80% 0); transform: translate(2px, 0); }
}

.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

.pipeline-step {
  display: inline-block;
  padding: 3px 12px;
  margin: 3px 1px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(0,240,255,0.05));
  border: 1px solid rgba(0,240,255,0.25);
  border-radius: 2px;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  transition: all 0.3s;
}
.pipeline-step:hover {
  background: rgba(0,240,255,0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,240,255,0.2);
}

/* === 模板区 === */
.templates {
  margin-bottom: 28px;
}

.templates-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

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

.tpl-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.template-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

/* tpl-card (JS动态渲染的模板卡片) */
.tpl-card {
  padding: 14px 16px;
  background: var(--bg-glass) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  color: var(--text);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tpl-card:hover {
  border-color: var(--cyan);
  background: rgba(0,240,255,0.05) !important;
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
}

.tpl-cat {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  background: var(--cyan-dim);
  color: var(--cyan);
  align-self: flex-start;
}

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

.tpl-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Hero 新增元素：slogan、统计条 === */
.hero-slogan {
  display: block;
  font-size: 16px;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(0,240,255,0.4);
  margin-bottom: 6px;
}
.hero-pipeline {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
  padding: 12px 24px;
  background: rgba(0,240,255,0.04);
  border: 1px solid rgba(0,240,255,0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-num {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}
.stat-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(0,240,255,0.3), transparent);
}
.stats-footnote {
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  opacity: 0.6;
  margin-top: 6px;
}

/* === 决策红队场景包 Scenario Cards === */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}
.scenario-card {
  position: relative;
  padding: 22px 20px;
  background: linear-gradient(160deg, rgba(0,240,255,0.05) 0%, rgba(0,0,0,0.3) 100%);
  border: 1px solid rgba(0,240,255,0.15);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.scenario-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
  transition: var(--transition);
}
.scenario-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,240,255,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,240,255,0.12);
}
.scenario-card:hover::before { opacity: 1; }
.scenario-card.featured {
  background: linear-gradient(160deg, rgba(168,85,247,0.08) 0%, rgba(0,240,255,0.05) 50%, rgba(0,0,0,0.3) 100%);
  border-color: rgba(168,85,247,0.35);
  transform: scale(1.02);
}
.scenario-card.featured:hover {
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(168,85,247,0.2);
  transform: scale(1.02) translateY(-4px);
}
.scenario-card.featured::before {
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--purple-bright));
  opacity: 1;
  height: 3px;
  box-shadow: 0 0 10px rgba(168,85,247,0.5);
}
.scenario-badge {
  display: inline-block;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.scenario-badge.red {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}
.scenario-badge.cyan {
  background: rgba(0,240,255,0.12);
  color: var(--cyan);
  border: 1px solid rgba(0,240,255,0.3);
}
.scenario-badge.gold {
  background: rgba(255,215,0,0.12);
  color: var(--gold);
  border: 1px solid rgba(255,215,0,0.3);
}
.scenario-ribbon {
  position: absolute;
  top: 12px;
  right: -28px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 32px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(244,63,94,0.4);
}
.scenario-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,240,255,0.3));
}
.scenario-card.featured .scenario-icon {
  filter: drop-shadow(0 0 10px rgba(168,85,247,0.4));
}
.scenario-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}
.scenario-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 10px 0;
}
.scenario-get {
  font-size: 11px;
  color: var(--cyan);
  font-family: var(--font-mono);
  padding-top: 10px;
  border-top: 1px solid rgba(0,240,255,0.1);
  letter-spacing: 0.3px;
}
.scenario-card.featured .scenario-get { color: var(--purple-bright); border-color: rgba(168,85,247,0.2); }
.templates-more {
  text-align: center;
  margin-top: 4px;
}

/* === 案例画廊 Decision Cards === */
.showcase-section {
  margin-bottom: 28px;
}
.showcase-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.showcase-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.showcase-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.decision-card {
  position: relative;
  padding: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.3) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.decision-card:hover {
  border-color: rgba(0,240,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 20px rgba(0,240,255,0.08);
}
.dc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.dc-topic {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  padding-right: 10px;
}
.dc-verdict {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dc-verdict.go {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}
.dc-verdict.caution {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.3);
}
.dc-verdict.nogo {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}
.dc-risk {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: rgba(239,68,68,0.06);
  border-left: 2px solid rgba(239,68,68,0.4);
  border-radius: 0 4px 4px 0;
}
.dc-risk strong { color: #f87171; font-weight: 600; }
.dc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dc-confidence {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.dc-conf-bar {
  width: 50px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.dc-conf-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple-bright));
}
.dc-tag {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  padding: 2px 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* === 输入区 Composer === */
.composer {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-glass), 0 0 40px rgba(0,240,255,0.06);
  clip-path: none;
}

.composer-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(0,240,255,0.04) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(168,85,247,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.composer textarea {
  width: 100%;
  min-height: 140px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  border-radius: 0;
}

.composer textarea::placeholder {
  color: var(--text-muted);
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid rgba(0,240,255,0.06);
  background: rgba(0,0,0,0.2);
  flex-wrap: wrap;
}

.quality-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.quality-select {
  padding: 8px 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  outline: none;
  min-width: 280px;
}

.quality-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0,240,255,0.2);
}

.quality-select option {
  background: #0a0f1a;
  color: var(--text);
}

.composer-actions .btn-cyber {
  margin-left: auto;
}

.status {
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.progress {
  padding: 0 24px 16px;
}

.progress-track {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

.progress-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  to { left: 100%; }
}

.progress-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* === 结果区 === */
.result {
  animation: fadeInUp 0.5s ease;
}

/* === 按钮通用 === */
.btn-ghost {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 10px rgba(0,240,255,0.1);
}

.btn-ghost.sm { padding: 6px 12px; font-size: 11px; }
.btn-ghost.xs { padding: 4px 10px; font-size: 11px; }

.btn-pricing {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--gold), #ffaa00);
  border: none;
  border-radius: var(--radius-sm);
  color: #1a0f00;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

.btn-pricing:hover {
  box-shadow: 0 0 25px rgba(255,215,0,0.5);
  transform: translateY(-1px);
}

.btn-cyber {
  position: relative;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(168,85,247,0.15));
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  clip-path: var(--clip-corner-sm);
}

.btn-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.btn-cyber:hover::before { left: 100%; }
.btn-cyber:hover {
  background: linear-gradient(135deg, rgba(0,240,255,0.25), rgba(168,85,247,0.25));
  box-shadow: var(--shadow-cyan);
  transform: translateY(-1px);
}

.btn-cyber:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-cyber.full { width: 100%; justify-content: center; display: flex; }

.btn-cyber-inner {
  position: relative;
  z-index: 1;
}

.btn-cyber-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0,240,255,0.3), 0 0 40px rgba(168,85,247,0.15);
}

.btn-cyber-primary:hover {
  box-shadow: 0 0 30px rgba(0,240,255,0.5), 0 0 60px rgba(168,85,247,0.3);
}

.btn-cyber-gold {
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,170,0,0.15));
  border-color: var(--gold);
  color: var(--gold);
}

.btn-cyber-gold:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(255,170,0,0.25));
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

/* 工具类 */
.hidden { display: none !important; }

/* === 价值锚定条（hero区 传统咨询 vs AI红队）=== */
.value-anchor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px auto 20px;
  max-width: 680px;
  padding: 0 16px;
}
.va-item {
  flex: 1;
  text-align: center;
  padding: 16px 20px;
  border-radius: 12px;
  position: relative;
}
.va-item.va-old {
  background: rgba(255,45,111,0.06);
  border: 1px solid rgba(255,45,111,0.2);
}
.va-item.va-new {
  background: rgba(0,255,159,0.07);
  border: 1px solid rgba(0,255,159,0.3);
  box-shadow: 0 0 30px rgba(0,255,159,0.1);
}
.va-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.va-price {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 800;
  color: var(--pink);
  text-decoration: line-through;
  text-decoration-color: rgba(255,45,111,0.4);
  text-decoration-thickness: 2px;
}
.va-price sup { font-size: 16px; font-weight: 600; }
.va-price.free {
  color: var(--green);
  text-decoration: none;
  text-shadow: 0 0 20px rgba(0,255,159,0.4);
}
.va-unit {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 4px;
}
.va-vs {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 2px;
  padding: 6px 12px;
  border: 1px solid rgba(255,217,61,0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,217,61,0.06);
  flex-shrink: 0;
}
@media(max-width:640px) {
  .value-anchor { gap: 10px; padding: 0 8px; }
  .va-item { padding: 12px 10px; }
  .va-price { font-size: 22px; }
  .va-vs { width: 32px; height: 32px; font-size: 11px; }
}

/* === 免费紧迫感提示 === */
.free-urgency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px auto 0;
  padding: 8px 20px;
  background: rgba(255,217,61,0.08);
  border: 1px solid rgba(255,217,61,0.25);
  border-radius: 50px;
  font-size: 13px;
  color: #ffe58a;
  animation: urgencyPulse 2s ease-in-out infinite;
}
.free-urgency.hidden { display: none; }
.urgency-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  animation: urgencyBlink 1.2s ease-in-out infinite;
}
@keyframes urgencyPulse {
  0%,100% { box-shadow: 0 0 0 rgba(255,217,61,0); }
  50% { box-shadow: 0 0 20px rgba(255,217,61,0.15); }
}
@keyframes urgencyBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* === 分析价值总结条（结果页顶部）=== */
.value-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(255,45,111,0.05));
  border: 1px solid var(--border);
  border-radius: 12px;
}
.vs-item {
  text-align: center;
  padding: 8px;
}
.vs-num {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vs-num.warn { background: linear-gradient(135deg, var(--pink), var(--yellow)); -webkit-background-clip: text; background-clip: text; }
.vs-label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* === 决策卡浮动提示（保存分享）=== */
.card-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--dim);
}

/* === Footer === */
.brand-footer {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: linear-gradient(0deg, rgba(1,4,10,0.9) 0%, transparent 100%);
  backdrop-filter: blur(8px);
}

.brand-footer .brand-mark {
  width: auto;
  height: auto;
  padding: 0;
  background: none;
  box-shadow: none;
  clip-path: none;
  font-weight: 700;
  color: var(--cyan);
  font-size: 11px;
  display: inline;
}

.brand-footer .brand-sep { color: var(--text-muted); opacity: 0.5; }

/* === 入场动画 === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1),
              filter 0.8s cubic-bezier(0.16,1,0.3,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

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

/* === Toast === */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 24px;
  background: var(--bg-glass-strong);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-glass);
  pointer-events: auto;
  animation: toastIn 0.3s ease;
}

.toast.error { border-color: var(--red); color: var(--red-bright); box-shadow: 0 0 15px rgba(255,51,102,0.2); }
.toast.success { border-color: var(--green); color: var(--green-bright); box-shadow: 0 0 15px rgba(34,255,136,0.2); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 定价弹窗专用宽度（覆盖默认modal-card的max-width） === */
#pricingModal .modal-card {
  max-width: 1150px;
  padding: 36px;
}

/* === 定价网格 === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.price-card {
  position: relative;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(0,240,255,0.04) 0%, rgba(0,0,0,0.3) 100%);
  border: 1px solid rgba(0,240,255,0.15);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,240,255,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,240,255,0.1);
}
.price-card.featured {
  background: linear-gradient(180deg, rgba(255,193,7,0.08) 0%, rgba(0,0,0,0.4) 100%);
  border-color: rgba(255,193,7,0.4);
  transform: scale(1.03);
}
.price-card.featured::before {
  background: linear-gradient(90deg, transparent, var(--gold, #ffd700), var(--amber), var(--gold, #ffd700), transparent);
  height: 3px;
  box-shadow: 0 0 15px rgba(255,215,0,0.4);
}
.price-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,215,0,0.2);
}

.price-card.popular {
  background: linear-gradient(180deg, rgba(0,240,255,0.08) 0%, rgba(0,0,0,0.4) 100%);
  border-color: rgba(0,240,255,0.4);
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(0,240,255,0.15);
}
.price-card.popular::before {
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple-bright), var(--cyan), transparent);
  height: 3px;
  box-shadow: 0 0 15px rgba(0,240,255,0.5);
}
.price-card.popular:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,240,255,0.25);
}
.price-card.popular .plan-name { color: var(--cyan); }

.price-tag-popular,
.price-tag-best {
  position: absolute;
  top: -1px;
  right: 16px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 100%);
}
.price-tag-popular {
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  color: #fff;
  padding-bottom: 10px;
  box-shadow: 0 4px 15px rgba(168,85,247,0.4);
}
.price-tag-best {
  background: linear-gradient(135deg, var(--amber), #ffd700);
  color: var(--bg-deep);
  padding-bottom: 10px;
  box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

.price-card-head {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}
.plan-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}
.plan-icon.gold-glow {
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.6));
  animation: iconPulse 3s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255,215,0,0.6)); }
  50% { filter: drop-shadow(0 0 20px rgba(255,215,0,0.9)); }
}

.plan-name {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.price-card[data-plan="free"] .plan-name { color: var(--text-dim); }
.price-card[data-plan="monthly"] .plan-name { color: var(--amber); }
.price-card.featured .plan-name { color: var(--gold, #ffd700); }

.plan-price {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1;
}
.price-num {
  font-size: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--purple-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-num.gold {
  background: linear-gradient(135deg, var(--amber), #ffd700, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.3));
}
.price-period {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}
.price-save {
  font-size: 11px;
  color: var(--gold, #ffd700);
  margin-top: 6px;
  font-family: var(--font-mono);
  opacity: 0.8;
}

.price-card .plan-features {
  list-style: none;
  text-align: left;
  margin: 0 0 20px;
  padding: 0;
}
.price-card .plan-features li {
  padding: 7px 0;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.price-card .plan-features li b {
  color: var(--text);
  font-weight: 600;
}
.price-card .plan-features li .check {
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}
.price-card .plan-features li .cross {
  color: var(--red);
  opacity: 0.5;
  flex-shrink: 0;
}
.price-card .plan-features li.disabled {
  opacity: 0.4;
}
.price-card .plan-features li .gold-check {
  color: var(--gold, #ffd700);
  text-shadow: 0 0 8px rgba(255,215,0,0.6);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.plan-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.plan-btn.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(168,85,247,0.3);
}
.plan-btn.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(168,85,247,0.5);
  transform: translateY(-1px);
}
.plan-btn.btn-gold {
  background: linear-gradient(135deg, var(--amber), #ffd700);
  border-color: transparent;
  color: var(--bg-deep);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}
.plan-btn.btn-gold:hover {
  box-shadow: 0 6px 30px rgba(255,215,0,0.5);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pricing-grid-4 {
    grid-template-columns: 1fr;
  }
  .price-card.featured, .price-card.popular { transform: none; }
  .price-card.featured:hover, .price-card.popular:hover { transform: translateY(-4px); }
}

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,240,255,0.15); }
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-mono);
  outline: none;
  resize: vertical;
  min-height: 80px;
}
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 8px; }
.form-success { font-size: 12px; color: var(--green); margin-top: 8px; }

/* Tab 切换 */
.tab-bar { display: flex; gap: 4px; margin-bottom: 20px; padding: 4px; background: rgba(0,0,0,0.3); border-radius: var(--radius); }
.tab-btn { flex: 1; padding: 10px; background: transparent; border: none; border-radius: var(--radius-sm); color: var(--text-dim); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: var(--transition); }
.tab-btn.active { background: var(--cyan-dim); color: var(--cyan); box-shadow: 0 0 10px rgba(0,240,255,0.1); }

/* 响应式 */
@media (max-width: 768px) {
  .main { padding: 0 16px 80px; margin-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .sidebar.open { transform: translateX(0); }
  .brand-footer { left: 0; }
  .hero h1 { font-size: 24px; }
  .hero-slogan { font-size: 13px; }
  .hero-pipeline { font-size: 10px; line-height: 1.8; }
  .hero-stats { gap: 14px; padding: 10px 16px; flex-wrap: wrap; }
  .stat-num { font-size: 18px; }
  .scenario-grid { grid-template-columns: 1fr; gap: 12px; }
  .scenario-card.featured { transform: none; }
  .scenario-card.featured:hover { transform: translateY(-3px); }
  .scenario-ribbon { display: none; }
  .showcase-grid { grid-template-columns: 1fr; }
  .quality-select { min-width: 200px; }
  .composer-actions { padding: 12px 14px; }
  .composer textarea { padding: 16px; min-height: 100px; }
  .testimonials-track { gap: 12px; }
  .testimonial-card { min-width: 280px; padding: 20px; }
}

/* === 用户好评轮播 === */
.testimonials-section {
  margin: 48px auto;
  max-width: 1100px;
  padding: 0 20px;
}
.testimonials-head {
  text-align: center;
  margin-bottom: 28px;
}
.testimonials-title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}
.tc-demo-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
  vertical-align: middle;
  margin-left: 8px;
  letter-spacing: 0;
}
.testimonials-sub {
  display: block;
  font-size: 13px;
  color: var(--dim);
  margin-top: 6px;
}
.testimonials-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 340px;
  background: rgba(6, 18, 36, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 16px;
  padding: 28px 24px 20px;
  position: relative;
  scroll-snap-align: start;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.1);
  transform: translateY(-4px);
}
.tc-quote {
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 64px;
  line-height: 1;
  color: rgba(0, 229, 255, 0.15);
  font-family: Georgia, serif;
  pointer-events: none;
}
.tc-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}
.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
}
.tc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #03060f;
  flex-shrink: 0;
}
.tc-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tc-info strong {
  font-size: 14px;
  color: var(--text);
}
.tc-info span {
  font-size: 12px;
  color: var(--dim);
}
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.tc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.tc-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  width: 24px;
  border-radius: 4px;
}

/* === 邀请好友弹窗增强 === */
.ref-hero {
  text-align: center;
  padding: 28px 24px 16px;
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(255,0,229,0.05));
  border-radius: 16px 16px 0 0;
  margin: -24px -24px 20px;
  border-bottom: 1px solid rgba(0,229,255,0.1);
}
.ref-hero-icon {
  font-size: 48px;
  margin-bottom: 8px;
  animation: pulse 2s infinite;
}
.ref-subtitle {
  font-size: 13px;
  color: var(--dim);
  margin: 6px 0 0;
}
.ref-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.ref-stat-card {
  background: rgba(6, 18, 36, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  transition: all 0.3s;
}
.ref-stat-card.highlight {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}
.ref-stat-card.gold {
  border-color: rgba(255, 217, 61, 0.4);
  box-shadow: 0 0 20px rgba(255, 217, 61, 0.1);
  background: rgba(255, 217, 61, 0.05);
}
.ref-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
.ref-stat-card.gold .ref-stat-num { color: #ffd93d; }
.ref-stat-label {
  font-size: 11px;
  color: var(--dim);
  margin-top: 6px;
}
.ref-progress-section {
  margin-bottom: 20px;
}
.ref-progress-section h3 {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 12px;
}
.ref-ladder {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ref-ladder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(6, 18, 36, 0.4);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s;
}
.ref-ladder-item:hover {
  border-color: rgba(0, 229, 255, 0.25);
}
.ref-ladder-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.ref-ladder-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ref-ladder-text b {
  font-size: 14px;
  color: var(--text);
}
.ref-ladder-text span {
  font-size: 12px;
  color: var(--dim);
}
.ref-ladder-badge {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}
.ref-ladder-badge.done {
  background: rgba(0, 255, 136, 0.15);
  color: var(--green);
  border-color: rgba(0, 255, 136, 0.3);
}
.ref-link-area { margin-bottom: 16px; }
.ref-link-area h3 {
  font-size: 15px; color: var(--text); margin: 0 0 10px;
}
.ref-link-row {
  display: flex;
  gap: 8px;
}
.ref-link-input {
  flex: 1;
  background: rgba(6, 18, 36, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--cyan);
  font-size: 12px;
  font-family: monospace;
  outline: none;
}
.ref-link-input:focus { border-color: var(--cyan); }
.ref-link-hint {
  font-size: 11px;
  color: var(--dim);
  margin: 8px 0 0;
  line-height: 1.6;
}
.ref-invitees h3 {
  font-size: 15px; color: var(--text); margin: 0 0 10px;
}
.ref-invitee-list {
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ref-invitee-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(6, 18, 36, 0.4);
  border-radius: 8px;
  font-size: 13px;
}
.ref-invitee-name { color: var(--text); }
.ref-invitee-time { color: var(--dim); font-size: 11px; }
.ref-empty {
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  padding: 20px;
}

/* === 尖刀场景CTA横幅 === */
.hot-cta {
  max-width: 780px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px 14px 16px;
  background: linear-gradient(135deg, rgba(255,51,102,0.12), rgba(255,171,0,0.08));
  border: 1px solid rgba(255,51,102,0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.hot-cta::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: hotShine 3s infinite;
}
@keyframes hotShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
.hot-cta:hover {
  border-color: rgba(255,51,102,0.6);
  box-shadow: 0 4px 24px rgba(255,51,102,0.2);
  transform: translateY(-2px);
}
.hot-cta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hot-cta-flame {
  font-size: 28px;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
.hot-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hot-cta-text b {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
}
.hot-cta-text span {
  font-size: 12px;
  color: var(--dim);
}
.hot-cta-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff3366, #ffab00);
  color: #fff;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hot-cta:hover .hot-cta-btn {
  box-shadow: 0 0 16px rgba(255,51,102,0.5);
}

/* === 3步使用指南 === */
.howto-section {
  max-width: 900px;
  margin: 56px auto;
  padding: 0 20px;
}
.howto-head {
  text-align: center;
  margin-bottom: 28px;
}
.howto-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.howto-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.howto-step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 16px;
  background: rgba(6,18,36,0.6);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 14px;
  transition: all 0.3s;
}
.howto-step:hover {
  border-color: rgba(0,229,255,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,229,255,0.08);
}
.hs-num {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 10px;
}
.hs-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}
.hs-body b {
  font-size: 14px;
  color: var(--text);
}
.hs-body span {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}
.hs-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: rgba(0,229,255,0.3);
  padding: 0 6px;
  font-weight: 300;
}
.cases-cta {
  text-align: center;
  padding: 20px;
  background: rgba(6,18,36,0.4);
  border: 1px dashed rgba(0,229,255,0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cases-cta-label {
  font-size: 14px;
  color: var(--text);
}
.cases-cta-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.2s;
}
.cases-cta-link:hover {
  text-shadow: 0 0 12px rgba(0,229,255,0.6);
}
.cases-cta-note {
  font-size: 11px;
  color: var(--dim);
}

/* 响应式 */
@media (max-width: 768px) {
  .hot-cta {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .hot-cta-left { flex-direction: column; text-align: center; }
  .howto-steps { flex-direction: column; align-items: center; }
  .hs-arrow { transform: rotate(90deg); padding: 6px 0; }
  .howto-step { max-width: 100%; width: 100%; }
}

/* === 六维风险雷达图 === */
.radar-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.radar-chart {
  width: 340px;
  height: 320px;
  flex-shrink: 0;
}
.radar-legend {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}
.radar-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,229,255,0.1);
}
.radar-risk-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid;
  width: fit-content;
}
.radar-top-risk {
  font-size: 12px;
  color: var(--dim);
}
.radar-dims {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radar-dim {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rd-name {
  width: 64px;
  font-size: 12px;
  color: var(--dim);
  flex-shrink: 0;
}
.rd-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.rd-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}
.rd-val {
  width: 24px;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .radar-chart { width: 100%; height: 280px; }
  .radar-container { flex-direction: column; }
  .radar-legend { width: 100%; }
}

/* === A/B对比决策模式 === */
.ab-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ab-switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: rgba(0,229,255,0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(0,229,255,0.3);
}
.ab-switch.on {
  background: rgba(0,229,255,0.3);
  border-color: var(--cyan);
}
.ab-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--cyan);
  border-radius: 50%;
  transition: all 0.3s;
}
.ab-switch.on::after {
  left: 26px;
  background: #fff;
}
.ab-label {
  font-size: 13px;
  color: var(--dim);
}
.ab-label.on { color: var(--cyan); }
.ab-inputs {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.ab-inputs.show { display: flex; }
.ab-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ab-option-label {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.ab-option-label.a { background: rgba(0,229,255,0.15); color: var(--cyan); border: 1px solid rgba(0,229,255,0.3); }
.ab-option-label.b { background: rgba(255,0,229,0.15); color: var(--magenta); border: 1px solid rgba(255,0,229,0.3); }
.ab-input-row textarea {
  flex: 1;
  min-height: 50px !important;
  padding: 10px 14px;
  font-size: 13px;
}

/* === 追问深挖 === */
.followup-section {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,229,255,0.03);
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 12px;
}
.followup-head {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 10px;
}
.followup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.followup-chip {
  padding: 6px 14px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.followup-chip:hover {
  background: rgba(0,229,255,0.2);
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.followup-input-row {
  display: flex;
  gap: 8px;
}
.followup-input-row input {
  flex: 1;
  background: rgba(6,18,36,0.8);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.followup-input-row input:focus { border-color: var(--cyan); }
.followup-input-row button {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.followup-input-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.followup-answers {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.followup-answer {
  padding: 12px 14px;
  background: rgba(6,18,36,0.6);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.7;
}
.followup-question {
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 12px;
}

/* === A/B对比结果展示 === */
.compare-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cmp-winner {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.cmp-winner.cmp-a {
  background: rgba(0,229,255,0.15);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.4);
  box-shadow: 0 0 12px rgba(0,229,255,0.3);
}
.cmp-winner.cmp-b {
  background: rgba(255,0,229,0.15);
  color: var(--magenta);
  border: 1px solid rgba(255,0,229,0.4);
  box-shadow: 0 0 12px rgba(255,0,229,0.3);
}
.cmp-winner.cmp-tie {
  background: rgba(255,171,0,0.15);
  color: var(--amber);
  border: 1px solid rgba(255,171,0,0.4);
}
.cmp-summary {
  margin: 16px 0;
  padding: 20px;
  background: rgba(6,18,36,0.5);
  border-radius: 12px;
  border: 1px solid rgba(0,229,255,0.1);
}
.cmp-options {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.cmp-opt {
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}
.cmp-opt-a {
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.2);
}
.cmp-opt-b {
  background: rgba(255,0,229,0.06);
  border: 1px solid rgba(255,0,229,0.2);
}
.cmp-opt-label {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin: 0 auto 10px;
}
.cmp-opt-label.a {
  background: rgba(0,229,255,0.2);
  color: var(--cyan);
}
.cmp-opt-label.b {
  background: rgba(255,0,229,0.2);
  color: var(--magenta);
}
.cmp-opt-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 10px;
}
.cmp-opt-total {
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
}
.cmp-opt-b .cmp-opt-total { color: var(--magenta); }
.cmp-opt-total small {
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
}
.cmp-vs {
  font-size: 20px;
  font-weight: 800;
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255,171,0,0.5);
}
.cmp-conclusion {
  padding: 14px;
  background: rgba(0,229,255,0.05);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
}
.cmp-verdict {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}
.cmp-reason {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-faint);
}
.cmp-h4 {
  font-size: 14px;
  color: var(--text);
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmp-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(0,229,255,0.15);
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cmp-table th {
  background: rgba(0,229,255,0.08);
  color: var(--cyan);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,229,255,0.15);
}
.cmp-table th.a { color: var(--cyan); }
.cmp-table th.b { color: var(--magenta); }
.cmp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,229,255,0.08);
  color: var(--text-faint);
  vertical-align: middle;
}
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .dim-name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.cmp-table .dim-score {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  min-width: 120px;
}
.cmp-table .dim-score.win {
  color: var(--green);
}
.cmp-table .dim-score .score-bar {
  display: block;
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 6px auto 0;
  overflow: hidden;
}
.cmp-table .dim-score .score-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
  border-radius: 2px;
  transition: width 0.5s;
}
.cmp-table .dim-analysis {
  font-size: 12px;
  line-height: 1.6;
  min-width: 200px;
}
.cmp-strengths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.cmp-col {
  padding: 14px;
  border-radius: 10px;
}
.cmp-col:first-child {
  background: rgba(0,229,255,0.04);
  border: 1px solid rgba(0,229,255,0.15);
}
.cmp-col:last-child {
  background: rgba(255,0,229,0.04);
  border: 1px solid rgba(255,0,229,0.15);
}
.cmp-col h5 {
  font-size: 13px;
  margin: 0 0 10px;
  color: var(--text);
}
.cmp-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-faint);
}
.cmp-col ul li { margin-bottom: 4px; }
.cmp-flaw {
  margin-top: 12px;
  padding: 10px;
  background: rgba(255,51,102,0.08);
  border-left: 2px solid var(--red);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  line-height: 1.6;
  color: #ffb3c0;
}
.cmp-framework, .cmp-next {
  margin-top: 16px;
  padding: 14px;
  background: rgba(6,18,36,0.5);
  border-radius: 10px;
  border: 1px solid rgba(0,229,255,0.1);
}
.cmp-framework h5, .cmp-next h5 {
  font-size: 13px;
  margin: 0 0 8px;
  color: var(--text);
}
.cmp-framework p, .cmp-next p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-faint);
}
@media (max-width: 768px) {
  .cmp-options { grid-template-columns: 1fr; gap: 12px; }
  .cmp-vs { padding: 8px 0; }
  .cmp-strengths { grid-template-columns: 1fr; }
}

/* === 追问深挖完整样式 === */
.deep-dive-section, .deep-dive-section-standalone {
  margin-top: 20px;
}
.dive-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.dive-quick-btn {
  padding: 7px 14px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.dive-quick-btn:hover {
  background: rgba(0,229,255,0.2);
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,229,255,0.2);
}
.dive-input-row {
  display: flex;
  gap: 8px;
}
.dive-input {
  flex: 1;
  background: rgba(6,18,36,0.8);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.dive-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.1);
}
.dive-results {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dive-item {
  padding: 16px;
  background: rgba(6,18,36,0.5);
  border-radius: 10px;
  border: 1px solid rgba(0,229,255,0.12);
  animation: fadeInUp 0.3s ease;
}
.dive-item.loading {
  opacity: 0.7;
}
.dive-q {
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dive-direct {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(0,255,136,0.06);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}
.dive-chain {
  margin: 12px 0;
  border-left: 2px solid rgba(0,229,255,0.25);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dive-chain-item {
  font-size: 13px;
  line-height: 1.6;
  position: relative;
}
.dive-chain-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.chain-level {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: rgba(0,229,255,0.15);
  color: var(--cyan);
  border-radius: 50%;
  font-weight: 700;
  font-size: 11px;
  margin-right: 8px;
  flex-shrink: 0;
}
.chain-body {
  display: inline;
}
.chain-body b {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.chain-body span {
  color: var(--text-faint);
  font-size: 12px;
}
.dive-risks {
  margin: 12px 0;
  padding: 12px 14px;
  background: rgba(255,51,102,0.06);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
}
.dive-risks b {
  color: #ff8097;
  font-size: 13px;
}
.dive-risks ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.dive-risks li {
  font-size: 12px;
  line-height: 1.7;
  color: #ffb3c0;
}
.dive-action, .dive-test {
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.7;
  padding: 10px 14px;
  border-radius: 8px;
}
.dive-action {
  background: rgba(255,171,0,0.06);
  border-left: 3px solid var(--amber);
}
.dive-test {
  background: rgba(0,229,255,0.04);
  border-left: 3px solid rgba(0,229,255,0.4);
}
.dive-action b { color: var(--amber); }
.dive-test b { color: var(--cyan); }
.dive-a.err {
  color: var(--red);
}

/* === 假设验证追踪器 + 决策时间线 === */
.assumption-tracker {
  margin-top: 20px;
}
.tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tracker-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tracker-badge {
  padding: 3px 10px;
  background: rgba(255,171,0,0.15);
  color: var(--amber);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.assumption-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.assumption-card {
  padding: 14px;
  background: rgba(6,18,36,0.5);
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 10px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s;
}
.assumption-card:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateX(2px);
}
.assumption-priority {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.assumption-priority.p0 {
  background: rgba(255,51,102,0.15);
  color: var(--red);
  border: 1px solid rgba(255,51,102,0.3);
}
.assumption-priority.p1 {
  background: rgba(255,171,0,0.15);
  color: var(--amber);
  border: 1px solid rgba(255,171,0,0.3);
}
.assumption-priority.p2 {
  background: rgba(0,229,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.2);
}
.assumption-body {
  flex: 1;
  min-width: 0;
}
.assumption-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}
.assumption-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}
.assumption-tag {
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--dim);
}
.assumption-tag.high { background: rgba(255,51,102,0.1); color: #ff8097; }
.assumption-tag.medium { background: rgba(255,171,0,0.1); color: #ffcc66; }
.assumption-test {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 6px;
  line-height: 1.5;
}

/* === 决策时间线 === */
.decision-timeline {
  margin-top: 20px;
}
.timeline-list {
  position: relative;
  padding-left: 30px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, rgba(0,229,255,0.2) 100%);
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  padding-bottom: 20px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0,229,255,0.3);
}
.timeline-dot.now {
  background: var(--cyan);
  color: var(--bg-deep);
  animation: pulse 2s infinite;
}
.timeline-phase {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.timeline-desc {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.6;
  margin-bottom: 6px;
}
.timeline-kpi {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 12px;
  font-size: 11px;
  color: var(--green);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0,229,255,0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 置信度仪表盘 === */
.confidence-gauge-section {
  margin-top: 20px;
}
.gauge-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  background: rgba(6,18,36,0.5);
  border-radius: 12px;
  border: 1px solid rgba(0,229,255,0.1);
}
.gauge-canvas-wrap {
  position: relative;
  width: 240px;
  height: 160px;
}
.gauge-canvas {
  width: 100%;
  height: 100%;
}
.gauge-center-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.gauge-percent {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.gauge-label {
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
}
.gauge-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gauge-decay {
  padding: 12px;
  background: rgba(255,171,0,0.06);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  line-height: 1.6;
}
.gauge-decay b { color: var(--amber); }
.gauge-factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gauge-factor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.gauge-factor-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.gauge-factor-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}
.gauge-factor-fill.high { background: var(--green); }
.gauge-factor-fill.medium { background: var(--amber); }
.gauge-factor-fill.low { background: var(--red); }
@media (max-width: 768px) {
  .gauge-container { grid-template-columns: 1fr; justify-items: center; }
  .gauge-factors { grid-template-columns: 1fr; }
}

/* ============================================================
   v8.4 新增模块样式：红队总分、ROI计算器、置信度仪表盘、
   假设验证追踪器、决策时间线、追问深挖增强
   ============================================================ */

/* === 红队压力测试总分 === */
.red-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  gap: 12px;
}
.red-score-grade {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 30px currentColor;
}
.red-score-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Courier New', monospace;
}
.red-score-num span {
  font-size: 14px;
  color: var(--dim);
  font-weight: 400;
}
.red-score-summary {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.6;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}
.red-score-breakdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.red-score-dim {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.red-score-dim .rd-name {
  width: 80px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.red-score-dim .rd-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.red-score-dim .rd-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}
.red-score-dim .rd-val {
  width: 32px;
  text-align: right;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}
.red-score-flaws {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.grade-A { color: #00ff88; }
.grade-B { color: #00e5ff; }
.grade-C { color: #ffab00; }
.grade-D { color: #ff6b35; }
.grade-F { color: #ff3366; }

/* === 认知偏见检测器 === */
.h-icon.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.h-icon.indigo { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.panel h3 { display: flex; align-items: center; gap: 8px; }
.btn-copy-checklist {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  color: #00ff88;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-copy-checklist:hover {
  background: rgba(0,255,136,0.2);
  box-shadow: 0 0 15px rgba(0,255,136,0.2);
}

/* === 艾森豪威尔行动清单四象限 === */
.checklist-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 0;
}
.checklist-quadrant {
  border-radius: 10px;
  padding: 14px;
}
.checklist-quadrant.do {
  background: rgba(255,51,102,0.08);
  border: 1px solid rgba(255,51,102,0.2);
}
.checklist-quadrant.schedule {
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
}
.checklist-quadrant.delegate {
  background: rgba(255,171,0,0.08);
  border: 1px solid rgba(255,171,0,0.2);
}
.checklist-quadrant.eliminate {
  background: rgba(100,100,100,0.08);
  border: 1px solid rgba(100,100,100,0.2);
}
.checklist-q-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.checklist-quadrant.do .checklist-q-title { color: #ff3366; }
.checklist-quadrant.schedule .checklist-q-title { color: #00e5ff; }
.checklist-quadrant.delegate .checklist-q-title { color: #ffab00; }
.checklist-quadrant.eliminate .checklist-q-title { color: #888; text-decoration: line-through; opacity: 0.7; }
.checklist-item {
  padding: 10px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.6;
}
.checklist-item:last-child { margin-bottom: 0; }
.checklist-action {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.checklist-why {
  color: var(--text-faint);
  font-size: 11.5px;
}
.checklist-meta {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
}
.checklist-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--text-faint);
}
.checklist-quadrant.do .checklist-tag { background: rgba(255,51,102,0.15); color: #ff6b88; }
.checklist-quadrant.schedule .checklist-tag { background: rgba(0,229,255,0.15); color: #00e5ff; }
.checklist-quadrant.delegate .checklist-tag { background: rgba(255,171,0,0.15); color: #ffab00; }

/* === 反事实情景推演 === */
.scenarios-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
}
.scenario-card {
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid;
}
.scenario-card.worst {
  background: rgba(255,51,102,0.06);
  border-left-color: #ff3366;
}
.scenario-card.best {
  background: rgba(0,255,136,0.06);
  border-left-color: #00ff88;
}
.scenario-card.black-swan {
  background: rgba(168,85,247,0.06);
  border-left-color: #a855f7;
}
.scenario-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.scenario-name {
  font-size: 15px;
  font-weight: 700;
}
.scenario-card.worst .scenario-name { color: #ff3366; }
.scenario-card.best .scenario-name { color: #00ff88; }
.scenario-card.black-swan .scenario-name { color: #a855f7; }
.scenario-prob {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.scenario-prob.high { background: rgba(255,51,102,0.2); color: #ff3366; }
.scenario-prob.medium { background: rgba(255,171,0,0.2); color: #ffab00; }
.scenario-prob.low { background: rgba(0,229,255,0.2); color: #00e5ff; }
.scenario-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}
.scenario-section {
  margin-bottom: 10px;
}
.scenario-section-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scenario-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scenario-signal {
  font-size: 11.5px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  color: var(--text-faint);
  border: 1px solid rgba(255,255,255,0.08);
}
.scenario-response {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 8px 10px;
  background: rgba(255,171,0,0.08);
  border-radius: 6px;
  border-left: 2px solid rgba(255,171,0,0.4);
}
.scenario-opportunity {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 8px 10px;
  background: rgba(0,255,136,0.06);
  border-radius: 6px;
  border-left: 2px solid rgba(0,255,136,0.3);
}

/* === h-icon 样式补全 === */
.h-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.h-icon.red { background: rgba(255,51,102,0.15); color: #ff3366; }
.h-icon.green { background: rgba(0,255,136,0.15); color: #00ff88; }
.h-icon.cyan { background: rgba(0,229,255,0.15); color: #00e5ff; }
.h-icon.amber { background: rgba(255,171,0,0.15); color: #ffab00; }
.h-icon.magenta { background: rgba(236,72,153,0.15); color: #ec4899; }

/* === 决策健康分综合仪表盘 === */
.health-dashboard {
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(168,85,247,0.08), rgba(255,51,102,0.05));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.health-dashboard::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.health-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.health-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
}
.health-ring-svg {
  width: 100%;
  height: 100%;
}
#healthRingFill {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px rgba(0,229,255,0.4));
}
.health-score-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.health-score-num {
  font-size: 36px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  line-height: 1;
  text-shadow: 0 0 20px currentColor;
}
.health-score-label {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.health-verdict-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.health-verdict-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
}
.health-verdict-badge.verdict-go {
  background: linear-gradient(135deg, rgba(0,255,136,0.2), rgba(0,229,255,0.2));
  color: #00ff88;
  border: 1px solid rgba(0,255,136,0.4);
  box-shadow: 0 0 25px rgba(0,255,136,0.2);
}
.health-verdict-badge.verdict-caution {
  background: linear-gradient(135deg, rgba(255,171,0,0.2), rgba(255,107,53,0.2));
  color: #ffab00;
  border: 1px solid rgba(255,171,0,0.4);
  box-shadow: 0 0 25px rgba(255,171,0,0.2);
}
.health-verdict-badge.verdict-nogo {
  background: linear-gradient(135deg, rgba(255,51,102,0.25), rgba(255,51,102,0.1));
  color: #ff3366;
  border: 1px solid rgba(255,51,102,0.4);
  box-shadow: 0 0 25px rgba(255,51,102,0.2);
}
.health-verdict-desc {
  font-size: 12px;
  color: var(--text-faint);
  max-width: 220px;
  line-height: 1.5;
}
.health-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
}
.health-metric {
  text-align: center;
  padding: 12px 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}
.health-metric:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.hm-icon {
  font-size: 20px;
  margin-bottom: 4px;
}
.hm-val {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  color: var(--text);
}
.hm-val.good { color: #00ff88; }
.hm-val.warn { color: #ffab00; }
.hm-val.bad { color: #ff3366; }
.hm-label {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 2px;
}
@media (max-width: 768px) {
  .health-dashboard {
    flex-direction: column;
    padding: 20px 16px;
  }
  .health-metrics {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
}
.bias-box {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bias-item {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border-left: 4px solid;
  transition: all 0.3s ease;
}
.bias-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateX(4px);
}
.bias-item.severity-high {
  border-left-color: #ff3366;
  background: rgba(255,51,102,0.06);
}
.bias-item.severity-medium {
  border-left-color: #ffab00;
  background: rgba(255,171,0,0.06);
}
.bias-item.severity-low {
  border-left-color: #00e5ff;
  background: rgba(0,229,255,0.06);
}
.bias-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bias-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.bias-severity-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bias-severity-badge.high {
  background: rgba(255,51,102,0.2);
  color: #ff3366;
}
.bias-severity-badge.medium {
  background: rgba(255,171,0,0.2);
  color: #ffab00;
}
.bias-severity-badge.low {
  background: rgba(0,229,255,0.2);
  color: #00e5ff;
}
.bias-evidence {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 8px;
  line-height: 1.6;
  padding: 8px 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  border-left: 2px solid rgba(255,255,255,0.1);
}
.bias-evidence::before {
  content: "🔍 证据：";
  font-weight: 600;
  color: var(--text-secondary);
}
.bias-impact {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}
.bias-impact::before {
  content: "⚠️ 后果：";
  font-weight: 600;
  color: #ff6b35;
}
.bias-mitigation {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 8px 10px;
  background: rgba(0,255,136,0.06);
  border-radius: 6px;
  border-left: 2px solid rgba(0,255,136,0.3);
}
.bias-mitigation::before {
  content: "✅ 纠偏：";
  font-weight: 600;
  color: #00ff88;
}
.bias-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  background: rgba(168,85,247,0.08);
  border-radius: 10px;
  margin-bottom: 8px;
}
.bias-summary-stat {
  text-align: center;
}
.bias-summary-num {
  font-size: 28px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  line-height: 1;
}
.bias-summary-num.danger { color: #ff3366; text-shadow: 0 0 20px rgba(255,51,102,0.5); }
.bias-summary-num.warn { color: #ffab00; text-shadow: 0 0 20px rgba(255,171,0,0.5); }
.bias-summary-num.safe { color: #00ff88; text-shadow: 0 0 20px rgba(0,255,136,0.5); }
.bias-summary-label {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* === 决策ROI计算器 === */
.roi-box {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.roi-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.roi-cost-card {
  padding: 16px 12px;
  border-radius: 10px;
  text-align: center;
}
.roi-cost-card.wrong {
  background: rgba(255,51,102,0.08);
  border: 1px solid rgba(255,51,102,0.2);
}
.roi-cost-card.validate {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2);
}
.roi-cost-label {
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.roi-cost-value {
  font-size: 20px;
  font-weight: 800;
}
.roi-cost-card.wrong .roi-cost-value { color: #ff3366; }
.roi-cost-card.validate .roi-cost-value { color: #00ff88; }
.roi-vs {
  font-size: 16px;
  font-weight: 800;
  color: var(--dim);
}
.roi-multiplier {
  text-align: center;
  padding: 14px;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(255,0,229,0.1));
  border-radius: 10px;
  border: 1px solid rgba(0,229,255,0.2);
}
.roi-mult-num {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #00e5ff, #ff00e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.roi-mult-label {
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
}
.roi-recommendation {
  padding: 12px;
  background: rgba(0,229,255,0.06);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
}
.roi-recommendation b { color: var(--cyan); }

/* === 置信度仪表盘增强 === */
.conf-dashboard {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.conf-gauge-wrap {
  position: relative;
  width: 200px;
  height: 130px;
  margin: 0 auto;
}
.conf-gauge-svg {
  width: 100%;
  height: 100%;
}
.conf-gauge-center {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.conf-gauge-score {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  font-family: 'Courier New', monospace;
}
.conf-gauge-label {
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.conf-decay {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.conf-decay-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 6px;
}
.conf-decay-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 60px;
  padding: 0 4px;
}
.decay-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.decay-bar {
  width: 100%;
  max-width: 40px;
  border-radius: 4px 4px 0 0;
  transition: height 1s ease;
  position: relative;
}
.decay-bar.now { box-shadow: 0 0 12px currentColor; }
.decay-bar-label {
  font-size: 10px;
  color: var(--dim);
}
.decay-bar-val {
  font-size: 11px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}
.conf-triggers {
  margin-top: 8px;
}
.conf-triggers-title {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.conf-trigger-item {
  font-size: 11px;
  color: var(--text-faint);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.conf-trigger-item::before {
  content: "⚡";
  position: absolute;
  left: 0;
  font-size: 10px;
}
.confidence-box {
  font-size: 13px;
  line-height: 1.7;
}
.confidence-box p { margin: 6px 0; }
.conf-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.conf-badge.conf-高 {
  background: rgba(0,255,136,0.12);
  color: #00ff88;
  border: 1px solid rgba(0,255,136,0.3);
}
.conf-badge.conf-中 {
  background: rgba(255,171,0,0.12);
  color: #ffab00;
  border: 1px solid rgba(255,171,0,0.3);
}
.conf-badge.conf-低 {
  background: rgba(255,51,102,0.12);
  color: #ff3366;
  border: 1px solid rgba(255,51,102,0.3);
}
.conf-reason { color: var(--text-faint); font-size: 12px; }

/* === 假设验证追踪器 === */
.assumption-tracker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.track-item {
  padding: 14px 16px;
  background: rgba(6,18,36,0.4);
  border-radius: 10px;
  border-left: 4px solid;
  transition: all 0.2s;
}
.track-item:hover {
  background: rgba(6,18,36,0.7);
  transform: translateX(2px);
}
.track-item.p0 { border-left-color: #ff3366; }
.track-item.p1 { border-left-color: #ffab00; }
.track-item.p2 { border-left-color: #00e5ff; }
.track-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.track-id {
  font-size: 11px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  padding: 2px 8px;
  border-radius: 4px;
}
.track-item.p0 .track-id { background: rgba(255,51,102,0.15); color: #ff3366; }
.track-item.p1 .track-id { background: rgba(255,171,0,0.15); color: #ffab00; }
.track-item.p2 .track-id { background: rgba(0,229,255,0.15); color: #00e5ff; }
.track-priority {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}
.track-item.p0 .track-priority { background: rgba(255,51,102,0.2); color: #ff3366; }
.track-item.p1 .track-priority { background: rgba(255,171,0,0.2); color: #ffab00; }
.track-item.p2 .track-priority { background: rgba(0,229,255,0.2); color: #00e5ff; }
.track-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
}
.track-status.unverified { background: rgba(255,255,255,0.08); color: var(--dim); }
.track-status.verifying { background: rgba(0,229,255,0.12); color: #00e5ff; }
.track-status.verified { background: rgba(0,255,136,0.12); color: #00ff88; }
.track-status.falsified { background: rgba(255,51,102,0.12); color: #ff3366; }
.track-deadline {
  font-size: 10px;
  color: var(--dim);
  margin-left: auto;
  font-family: 'Courier New', monospace;
}
.track-deadline.urgent { color: #ff3366; font-weight: 700; }
.track-assumption {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}
.track-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 11px;
}
.track-detail {
  display: flex;
  gap: 6px;
  line-height: 1.5;
}
.track-detail .k {
  color: var(--dim);
  flex-shrink: 0;
  min-width: 52px;
}
.track-detail .v { color: var(--text-faint); }
.track-kill {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(255,51,102,0.06);
  border-radius: 6px;
  font-size: 11px;
  color: #ff6b88;
  line-height: 1.5;
  border: 1px dashed rgba(255,51,102,0.2);
}
.track-kill::before { content: "🛑 止损标准："; font-weight: 700; }

/* === 决策时间线 === */
.timeline-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(0,229,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(0,229,255,0.1);
  flex-wrap: wrap;
}
.timeline-meta-item {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.timeline-meta-item .k { color: var(--dim); }
.timeline-meta-item .v { color: var(--cyan); font-weight: 600; }
.decision-timeline {
  position: relative;
  padding-left: 30px;
}
.decision-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--magenta), var(--amber));
  border-radius: 1px;
}
.tl-phase {
  position: relative;
  padding-bottom: 24px;
}
.tl-phase:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -25px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  z-index: 1;
  box-shadow: 0 0 12px currentColor;
}
.tl-phase:nth-child(1) .tl-dot { background: #00ff88; color: #03060f; }
.tl-phase:nth-child(2) .tl-dot { background: #00e5ff; color: #03060f; }
.tl-phase:nth-child(3) .tl-dot { background: #ff00e5; color: #fff; }
.tl-phase:nth-child(n+4) .tl-dot { background: #ffab00; color: #03060f; }
.tl-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.tl-phase-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.tl-duration {
  font-size: 11px;
  color: var(--dim);
  font-family: 'Courier New', monospace;
  padding: 2px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.tl-goal {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 10px;
  line-height: 1.6;
}
.tl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tl-action {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 6px;
  color: var(--text);
  line-height: 1.4;
}
.tl-milestone {
  padding: 8px 12px;
  background: rgba(0,255,136,0.06);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  border-left: 3px solid var(--green);
}
.tl-milestone::before { content: "🎯 里程碑："; font-weight: 700; color: var(--green); }
.tl-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tl-kpi {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255,171,0,0.08);
  border: 1px solid rgba(255,171,0,0.2);
  border-radius: 12px;
  color: var(--amber);
}
.tl-gate {
  padding: 10px 12px;
  background: rgba(255,51,102,0.06);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-faint);
  border-left: 3px solid var(--red);
}
.tl-gate::before { content: "🚦 决策门："; font-weight: 700; color: var(--red); }

/* === 追问深挖增强 === */
.dive-panel {
  background: linear-gradient(135deg, rgba(0,229,255,0.03), rgba(255,0,229,0.03));
}
.dive-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.dive-quick-btn {
  padding: 6px 14px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 20px;
  color: var(--cyan);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.dive-quick-btn:hover {
  background: rgba(0,229,255,0.18);
  border-color: rgba(0,229,255,0.5);
  box-shadow: 0 0 12px rgba(0,229,255,0.2);
  transform: translateY(-1px);
}
.dive-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.dive-input {
  flex: 1;
  padding: 10px 16px;
  background: rgba(6,18,36,0.6);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}
.dive-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0,229,255,0.15);
}
.dive-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dive-item {
  padding: 14px;
  background: rgba(6,18,36,0.5);
  border-radius: 10px;
  border: 1px solid rgba(0,229,255,0.08);
  animation: fadeInUp 0.3s ease;
}
.dive-q {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,229,255,0.1);
}
.dive-direct {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(255,0,229,0.08));
  border-radius: 8px;
  border-left: 3px solid var(--cyan);
  line-height: 1.6;
}
.dive-chain {
  margin-bottom: 12px;
}
.dive-chain-item {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-faint);
}
.dive-chain-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}
.dive-chain-item b {
  color: var(--text);
}
.dive-risks {
  margin-bottom: 10px;
  padding: 10px;
  background: rgba(255,51,102,0.05);
  border-radius: 6px;
  font-size: 12px;
}
.dive-risks ul {
  margin: 4px 0 0 0;
  padding-left: 16px;
}
.dive-risks li {
  color: var(--text-faint);
  line-height: 1.6;
  margin-bottom: 2px;
}
.dive-action, .dive-test {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 6px;
}
.dive-action {
  background: rgba(255,171,0,0.06);
  border-left: 3px solid var(--amber);
}
.dive-test {
  background: rgba(0,229,255,0.06);
  border-left: 3px solid var(--cyan);
}

/* === 响应式适配 === */
@media (max-width: 768px) {
  .conf-dashboard {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .conf-gauge-wrap { margin: 0 auto; }
  .roi-comparison {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .roi-vs { display: none; }
  .track-details {
    grid-template-columns: 1fr;
  }
  .timeline-meta {
    flex-direction: column;
    gap: 8px;
  }
  .red-score-grade { font-size: 56px; }
  .tl-header { flex-direction: column; align-items: flex-start; gap: 4px; }
}
