/* 智脉蓝图 v8 SaaS 仪表盘 */
:root {
  --bg-0: #0a0e1a;
  --bg-1: #0d1224;
  --bg-2: #141a2e;
  --bg-3: #1a2138;
  --line: rgba(94, 234, 212, 0.15);
  --line-2: rgba(94, 234, 212, 0.08);
  --text: #e6edf3;
  --text-2: rgba(230, 237, 243, 0.7);
  --text-3: rgba(230, 237, 243, 0.4);
  --teal: #5eead4;
  --teal-2: #2dd4bf;
  --teal-glow: rgba(94, 234, 212, 0.4);
  --blue: #60a5fa;
  --violet: #a78bfa;
  --pink: #f472b6;
  --amber: #fbbf24;
  --red: #f87171;
  --green: #34d399;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-0);
  color: var(--text);
  font-size: 14px;
  overflow-x: hidden;
  background-image:
    radial-gradient(at 20% 0%, rgba(94,234,212,0.05) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(96,165,250,0.05) 0px, transparent 50%);
}

/* === 顶部导航 === */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(13, 18, 36, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.logo-mark {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(94,234,212,0.15), rgba(94,234,212,0.05));
  border: 1px solid var(--line);
  border-radius: 10px;
}
.logo-text {
  font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-v { font-size: 11px; padding: 2px 6px; background: rgba(94,234,212,0.15); color: var(--teal); border-radius: 4px; -webkit-text-fill-color: var(--teal); margin-left: 6px; }
.logo-sub { font-size: 11px; color: var(--text-3); }

.nav-mid { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px; font-size: 13px; color: var(--text-2);
  border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.nav-link:hover { background: rgba(94,234,212,0.08); color: var(--text); }
.nav-link.active { background: rgba(94,234,212,0.15); color: var(--teal); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative;
  width: 36px; height: 36px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--bg-3); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
}
.avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; cursor: pointer;
}

/* === 侧边栏 === */
.sidebar {
  position: fixed;
  top: 64px; left: 0;
  width: 240px;
  height: calc(100vh - 64px);
  background: rgba(13, 18, 36, 0.6);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  overflow-y: auto;
  z-index: 90;
}
.sb-section { margin-bottom: 20px; }
.sb-title { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.sb-select {
  width: 100%; padding: 8px 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; font-size: 13px;
  outline: none;
}
.sb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sb-tab {
  padding: 8px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-2); border-radius: 6px; cursor: pointer; font-size: 12px;
}
.sb-tab.active { background: rgba(94,234,212,0.15); color: var(--teal); border-color: var(--teal); }
.sb-range { display: flex; gap: 4px; }
.rb {
  flex: 1; padding: 6px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-2); border-radius: 6px; cursor: pointer; font-size: 11px;
}
.rb.active { background: rgba(94,234,212,0.15); color: var(--teal); border-color: var(--teal); }
.sb-footer { margin-top: 30px; display: flex; flex-direction: column; gap: 8px; }
.upload-btn, .ai-btn {
  padding: 10px; border-radius: 8px; cursor: pointer; font-size: 13px;
  border: 1px solid var(--line);
}
.upload-btn { background: var(--bg-2); color: var(--text); }
.ai-btn { background: linear-gradient(135deg, rgba(94,234,212,0.2), rgba(94,234,212,0.05)); color: var(--teal); border-color: var(--teal); }

/* === 主内容 === */
.main {
  margin-left: 240px;
  margin-top: 64px;
  padding: 28px 32px;
  max-width: calc(100vw - 240px);
}

/* 报告头部 */
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.rh-tag { font-size: 11px; color: var(--teal); letter-spacing: 1px; margin-bottom: 6px; }
.rh-title { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.rh-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.status-ok { color: var(--green); }
.rh-actions { display: flex; gap: 8px; }
.btn-ghost, .btn-primary {
  padding: 10px 16px; border-radius: 8px; cursor: pointer; font-size: 13px;
  border: 1px solid var(--line);
}
.btn-ghost { background: var(--bg-2); color: var(--text); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #0a0e1a; border-color: var(--teal); font-weight: 700; }
.btn-primary:hover { box-shadow: 0 0 20px rgba(94,234,212,0.4); }

/* === KPI 网格 === */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.kpi-card {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
}
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0.5;
  border-radius: 16px 16px 0 0;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 12px 40px rgba(94, 234, 212, 0.15);
}
.kpi-card.highlight { border-color: var(--teal); }
.kpi-card.highlight::before { background: linear-gradient(90deg, var(--teal), var(--green)); opacity: 1; }
.kpi-card.warn { border-color: rgba(248, 113, 113, 0.4); }
.kpi-card.warn::before { background: linear-gradient(90deg, var(--red), var(--amber)); opacity: 1; }

.kpi-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kpi-label { font-size: 12px; color: var(--text-2); }
.kpi-rank {
  font-size: 10px; padding: 2px 8px;
  background: rgba(94,234,212,0.1); color: var(--teal);
  border-radius: 10px;
}
.kpi-rank.top { background: rgba(52,211,153,0.15); color: var(--green); }
.kpi-rank.weak { background: rgba(248,113,113,0.15); color: var(--red); }

.kpi-value {
  font-size: 36px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #fff, var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.kpi-value .unit { font-size: 18px; margin-left: 4px; opacity: 0.7; }
.kpi-value .sub { font-size: 16px; color: var(--teal); -webkit-text-fill-color: var(--teal); margin-left: 8px; font-weight: 600; }
.kpi-name { font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 12px; }

.kpi-trend { margin-bottom: 12px; }
.trend-bar { width: 100%; height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.trend-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); }
.trend-num { font-size: 11px; color: var(--green); margin-top: 4px; display: inline-block; }

.kpi-foot { font-size: 11px; color: var(--text-3); margin-bottom: 8px; }
.kpi-click {
  font-size: 11px; color: var(--teal);
  border-top: 1px solid var(--line-2);
  padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between;
}

/* === 图表卡片 === */
.chart-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.chart-row:has(.full) { grid-template-columns: 1fr; }
.chart-card {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.chart-card.large { grid-column: span 2; }
.chart-card.full { grid-column: 1 / -1; }

.ch-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ch-head h3 { font-size: 15px; font-weight: 700; }
.ch-tag { font-size: 11px; padding: 2px 8px; background: rgba(94,234,212,0.1); color: var(--teal); border-radius: 10px; }
.ch-tag.warn-tag { background: rgba(248,113,113,0.15); color: var(--red); }
.ch-tags { display: flex; gap: 6px; }
.tag { font-size: 10px; padding: 2px 8px; background: rgba(94,234,212,0.08); color: var(--text-2); border-radius: 10px; border: 1px solid var(--line); }
.tag.strong { color: var(--green); border-color: rgba(52,211,153,0.3); }
.tag.mid { color: var(--teal); }
.tag.warn { color: var(--red); border-color: rgba(248,113,113,0.3); }
.ch-more {
  margin-left: auto; padding: 4px 10px; font-size: 11px;
  background: transparent; border: 1px solid var(--line);
  color: var(--teal); border-radius: 6px; cursor: pointer;
}
.ch-more:hover { background: rgba(94,234,212,0.1); }

.ch-body { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ch-body svg { max-width: 100%; height: auto; }
.ch-legend { display: flex; gap: 16px; margin-top: 12px; }
.lg-item { font-size: 11px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.lg-item i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }

/* === L 等级带 === */
.level-body { width: 100%; padding: 0; }
.level-strip {
  position: relative;
  display: flex;
  width: 100%;
  height: 50px;
  background: linear-gradient(90deg,
    rgba(248,113,113,0.3) 0%,
    rgba(251,191,36,0.3) 30%,
    rgba(94,234,212,0.3) 50%,
    rgba(96,165,250,0.3) 70%,
    rgba(167,139,250,0.3) 100%);
  border-radius: 8px;
  margin-bottom: 16px;
}
.lvl {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}
.lvl:last-child { border-right: none; }
.lvl span { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 600; }
.lvl:hover span { color: #fff; }
.lvl.current {
  background: rgba(94,234,212,0.4);
  box-shadow: inset 0 0 20px rgba(94,234,212,0.6);
}
.lvl.current span { color: #fff; font-size: 13px; font-weight: 800; }
.lvl-arrow {
  position: absolute; bottom: -22px;
  color: var(--teal); font-size: 16px;
  transform: translateX(-50%);
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(4px); }
}
.level-phases { display: flex; margin-top: 30px; gap: 8px; margin-bottom: 20px; }
.phase {
  padding: 8px;
  background: rgba(94,234,212,0.05);
  border-radius: 6px;
  border: 1px solid var(--line-2);
  text-align: center;
}
.phase.active { background: rgba(94,234,212,0.15); border-color: var(--teal); }
.phase strong { font-size: 12px; display: block; color: var(--teal); margin-bottom: 2px; }
.phase p { font-size: 11px; color: var(--text-3); }
.level-meaning {
  background: linear-gradient(135deg, rgba(94,234,212,0.05), transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.level-meaning h4 { font-size: 13px; margin-bottom: 8px; color: var(--teal); }
.level-meaning p { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-bottom: 10px; }
.level-tips { display: flex; flex-direction: column; gap: 4px; }
.tip { font-size: 11px; color: var(--text-2); padding: 6px 10px; background: var(--bg-3); border-radius: 6px; }

/* === 百分位表格 === */
.pct-body { width: 100%; }
.pct-table { width: 100%; border-collapse: collapse; }
.pct-table th {
  text-align: left; padding: 8px; font-size: 11px;
  color: var(--text-3); border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pct-table td { padding: 10px 8px; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.pct-bar {
  position: relative;
  height: 22px;
  background: linear-gradient(90deg,
    rgba(248,113,113,0.15) 0%,
    rgba(251,191,36,0.15) 25%,
    rgba(94,234,212,0.15) 50%,
    rgba(96,165,250,0.15) 75%,
    rgba(167,139,250,0.15) 100%);
  border-radius: 4px;
  overflow: hidden;
}
.pct-bar::before {
  content: '';
  position: absolute; top: 0; bottom: 0;
  left: 0; width: 25%;
  background: linear-gradient(90deg, transparent, rgba(248,113,113,0.05) 50%, transparent);
}
.pct-bar::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  right: 0; width: 25%;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.05) 50%, transparent);
}
.pct-marker {
  position: absolute;
  top: -2px; bottom: -2px;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  border-radius: 2px;
  transform: translateX(-50%);
}
.pct-marker .pt-dot {
  position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,1);
}
.pct-z { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--teal); }
.pct-pct { font-family: 'JetBrains Mono', monospace; color: var(--text-2); }
.pct-level { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.pct-level.top { background: rgba(52,211,153,0.15); color: var(--green); }
.pct-level.high { background: rgba(94,234,212,0.15); color: var(--teal); }
.pct-level.mid { background: rgba(96,165,250,0.15); color: var(--blue); }
.pct-level.low { background: rgba(251,191,36,0.15); color: var(--amber); }
.pct-level.weak { background: rgba(248,113,113,0.15); color: var(--red); }

/* === 风险卡片 === */
.risk-body { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.risk-card {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px;
  border-left: 3px solid var(--amber);
}
.risk-card.warn { border-left-color: var(--red); }
.risk-card.ok { border-left-color: var(--green); }
.rc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rc-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.rc-dot.warn { background: var(--red); box-shadow: 0 0 8px var(--red); }
.rc-dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.rc-tag { margin-left: auto; font-size: 10px; padding: 2px 8px; background: rgba(248,113,113,0.15); color: var(--red); border-radius: 10px; }
.rc-tag.ok { background: rgba(52,211,153,0.15); color: var(--green); }
.rc-body { font-size: 12px; color: var(--text-2); margin-bottom: 8px; line-height: 1.6; }
.rc-actions { display: flex; gap: 6px; }
.rc-act { font-size: 10px; padding: 4px 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--teal); border-radius: 4px; cursor: pointer; }

/* === 生涯方向 === */
.career-body { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.career-item {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px;
}
.ci-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ci-num {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #0a0e1a; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.ci-head strong { font-size: 13px; }
.ci-pct { margin-left: auto; font-size: 11px; color: var(--teal); font-family: 'JetBrains Mono', monospace; }
.career-item p { font-size: 11px; color: var(--text-2); line-height: 1.6; margin-bottom: 8px; }
.ci-bar { height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.ci-bar div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); }

/* === 视频区 === */
.video-body { width: 100%; }
.video-placeholder {
  display: flex;
  gap: 24px;
  width: 100%;
}
.vp-bg {
  flex: 0 0 360px;
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0c1a2c, #1a1f3a);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.vp-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(94,234,212,0.4), transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: glow 3s infinite;
}
@keyframes glow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.vp-play {
  position: relative;
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.vp-play:hover { background: rgba(255,255,255,0.25); }
.vp-info { flex: 1; }
.vp-info h4 { font-size: 16px; margin-bottom: 14px; }
.vp-chapters { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.chapter { font-size: 12px; color: var(--text-2); padding: 6px 10px; background: var(--bg-3); border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.chapter:hover { background: rgba(94,234,212,0.1); color: var(--teal); }
.vp-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: #0a0e1a; border: none; border-radius: 6px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}

/* === AI 弹窗 === */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal {
  width: 720px; max-width: 90vw;
  max-height: 85vh;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--teal);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px rgba(94,234,212,0.2);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 50%; cursor: pointer;
  color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(94,234,212,0.05), transparent);
}
.mh-tag {
  display: inline-block;
  font-size: 10px; padding: 3px 10px;
  background: linear-gradient(135deg, rgba(94,234,212,0.2), rgba(94,234,212,0.05));
  color: var(--teal); border-radius: 12px;
  letter-spacing: 1px; margin-bottom: 10px;
}
.modal-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.mh-meta { font-size: 12px; color: var(--text-2); display: flex; gap: 12px; }

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}
.modal-body h4 {
  font-size: 13px; color: var(--teal);
  margin: 16px 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { font-size: 13px; color: var(--text); line-height: 1.85; margin-bottom: 8px; }
.modal-body p strong { color: var(--teal); }
.modal-body ul { margin-left: 20px; }
.modal-body li { font-size: 13px; line-height: 1.85; color: var(--text); margin-bottom: 4px; }
.modal-body .tip-box {
  background: linear-gradient(135deg, rgba(94,234,212,0.08), rgba(94,234,212,0.02));
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}
.modal-body .tip-box strong { color: var(--teal); }

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  background: rgba(0,0,0,0.2);
}

/* 响应式 */
@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr 1fr; }
  .chart-row:has(.full) { grid-template-columns: 1fr; }
  .chart-card.large { grid-column: span 1; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main { margin-left: 0; max-width: 100vw; padding: 16px; }
  .kpi-grid, .chart-row { grid-template-columns: 1fr; }
  .video-placeholder { flex-direction: column; }
  .vp-bg { flex: 0 0 200px; }
}

/* === 三段式数据分类 === */
.data-categories {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 20px;
}
.cat-block {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.cat-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
}
.cat-block.advantage::before { background: linear-gradient(180deg, #34d399, #5eead4); }
.cat-block.neutral::before { background: linear-gradient(180deg, #60a5fa, #a78bfa); }
.cat-block.weak::before { background: linear-gradient(180deg, #f87171, #fbbf24); }

.cat-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
}
.cat-icon {
  width: 44px; height: 44px;
  background: var(--bg-3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.cat-block.advantage .cat-icon { background: rgba(52,211,153,0.15); }
.cat-block.neutral .cat-icon { background: rgba(96,165,250,0.15); }
.cat-block.weak .cat-icon { background: rgba(248,113,113,0.15); }
.cat-head h3 { font-size: 16px; margin-bottom: 4px; }
.cat-head p { font-size: 12px; color: var(--text-3); }
.cat-stat {
  margin-left: auto;
  font-size: 12px; color: var(--text-2);
  text-align: right;
}
.cat-stat strong {
  display: block; font-size: 20px;
  margin-top: 4px;
}
.cat-block.advantage .cat-stat strong { color: var(--green); }
.cat-block.neutral .cat-stat strong { color: var(--blue); }
.cat-block.weak .cat-stat strong { color: var(--red); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.data-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.data-item:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.data-item-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.data-item-z {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.cat-block.advantage .data-item-z { color: var(--green); }
.cat-block.neutral .data-item-z { color: var(--blue); }
.cat-block.weak .data-item-z { color: var(--red); }
.data-item-pct {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.data-item-cat {
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; padding: 2px 6px;
  background: rgba(94,234,212,0.15); color: var(--teal);
  border-radius: 8px;
}

/* === 单测评入口列表 === */
.test-list { display: flex; flex-direction: column; gap: 14px; }
.test-group {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.tg-title {
  font-size: 13px; font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}
.tg-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.test-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.test-item:hover:not(.locked) {
  border-color: var(--teal);
  background: rgba(94,234,212,0.05);
}
.test-item.locked {
  cursor: pointer;
  background: rgba(94,234,212,0.02);
}
.test-item-icon {
  width: 32px; height: 32px;
  background: rgba(94,234,212,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.test-item.locked .test-item-icon {
  background: rgba(255,255,255,0.05);
  color: var(--text-3);
}
.test-item-info { flex: 1; min-width: 0; }
.test-item-info strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.test-item-info span {
  font-size: 10px;
  color: var(--text-3);
}
.test-status {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
  flex-shrink: 0;
}
.test-status.unlocked { background: rgba(52,211,153,0.15); color: var(--green); }
.test-status.pending { background: rgba(251,191,36,0.15); color: var(--amber); }
.test-status.locked { background: rgba(255,255,255,0.05); color: var(--text-3); }
.test-status .lock-icon { margin-right: 2px; }

/* 单测评详情弹窗样式 */
.single-test-section { margin-bottom: 20px; }
.single-test-section h4 {
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.subtest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.subtest-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.subtest-item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.subtest-item .z-val {
  font-family: monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--teal);
}
.subtest-item .level-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 6px;
}
.level-tag.top { background: rgba(52,211,153,0.15); color: var(--green); }
.level-tag.high { background: rgba(94,234,212,0.15); color: var(--teal); }
.level-tag.mid { background: rgba(96,165,250,0.15); color: var(--blue); }
.level-tag.weak { background: rgba(248,113,113,0.15); color: var(--red); }