/* =========================================================
   个人能力发展全景测评 — 样式表
   主色：深蓝灰 #2c3e50  暖色点缀：#e67e22  背景：#f8f9fa
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #2c3e50;
  --primary-soft: #34495e;
  --primary-light: #5a6c7d;
  --accent: #e67e22;
  --accent-soft: #f39c12;
  --accent-light: #fdf2e9;

  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --border: #e6e9ec;
  --border-strong: #d4d9dd;

  --text: #2c3e50;
  --text-mid: #4a5a6a;
  --text-light: #7a8896;
  --text-faint: #9aa6b2;

  /* 状态色 */
  --green: #27ae60;
  --green-bg: #e8f6ee;
  --yellow: #c89017;
  --yellow-bg: #fdf4dc;
  --red: #e74c3c;
  --red-bg: #fdecea;
  --orange: #e67e22;
  --orange-bg: #fdf0e6;
  --gray: #95a5a6;
  --gray-bg: #eef1f3;
  --lightgreen: #2ecc71;
  --lightgreen-bg: #e7f9ef;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(44, 62, 80, 0.06);
  --shadow: 0 4px 18px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 10px 40px rgba(44, 62, 80, 0.12);

  --maxw: 880px;
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    "Noto Sans CJK SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; color: var(--text); }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }

/* ---------- 顶部品牌条 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}
.step-indicator {
  font-size: 13px;
  color: var(--text-light);
}
.step-indicator .dot { color: var(--border-strong); margin: 0 4px; }

/* ---------- 主容器 ---------- */
.app {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px;
}
.card + .card { margin-top: 22px; }

/* =========================================================
   开场页
   ========================================================= */
.intro {
  text-align: center;
  padding: 56px 28px 48px;
}
.intro .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.intro h1 {
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 14px;
}
.intro .lead {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.85;
}
.intro .meta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 32px;
}
.intro .meta-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-mid);
}
.intro .meta-chip .ico {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.intro .principle {
  max-width: 620px;
  margin: 0 auto 34px;
  text-align: left;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-mid);
}
.intro .principle strong { color: var(--accent); }

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(230, 126, 34, 0.28);
}
.btn-primary:hover { background: #d35400; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: #d6cabd;
  box-shadow: none;
  cursor: not-allowed;
  color: #fff;
}
.btn-secondary {
  background: var(--card-bg);
  color: var(--primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--primary); background: #fafbfc; }
.btn-secondary:disabled { color: var(--text-faint); cursor: not-allowed; border-color: var(--border); }
.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: none;
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-large { padding: 16px 42px; font-size: 16px; }
.btn-block { width: 100%; }

/* 导航按钮区 */
.nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.nav-actions .right { display: flex; gap: 10px; align-items: center; }
.nav-hint { font-size: 13px; color: var(--text-light); }

/* =========================================================
   进度条
   ========================================================= */
.progress-wrap { margin-bottom: 22px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.progress-meta .cur { color: var(--primary); font-weight: 600; }
.progress-bar {
  height: 8px;
  background: var(--gray-bg);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* =========================================================
   维度与题目
   ========================================================= */
.dim-banner {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.dim-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 6px;
}
.dim-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}
.dim-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
  margin-bottom: 18px;
}

.question-card .q-index {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.question-card .q-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.question-card .q-desc {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 20px;
}

/* 分数选项 */
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--card-bg);
  transition: all 0.16s ease;
}
.option:hover { border-color: var(--accent-soft); background: #fffdfb; }
.option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.option .score-badge {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-bg);
  color: var(--text-light);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.16s ease;
}
.option.selected .score-badge {
  background: var(--accent);
  color: #fff;
}
.option .opt-text { font-size: 14.5px; color: var(--text-mid); line-height: 1.65; }

/* 确信度选择 */
.confidence-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
}
.confidence-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.confidence-sub {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.conf-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.conf-pill {
  flex: 1 1 0;
  min-width: 120px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}
.conf-pill:hover { border-color: var(--accent-soft); }
.conf-pill.selected {
  border-color: var(--primary);
  background: #f3f5f7;
  box-shadow: 0 0 0 1px var(--primary) inset;
}
.conf-pill .cp-label { font-weight: 600; font-size: 14px; color: var(--primary); }
.conf-pill .cp-hint { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.conf-pill.selected .cp-label { color: var(--primary); }

/* =========================================================
   职业锚
   ========================================================= */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.section-desc {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 22px;
}

.anchor-ranking {
  background: linear-gradient(135deg, #2c3e50, #3d566e);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.anchor-ranking .ar-title {
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.anchor-ranking .ar-list { display: flex; flex-direction: column; gap: 8px; }
.anchor-ranking .ar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.anchor-ranking .ar-rank {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 26px;
}
.anchor-ranking .ar-empty {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.anchor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.anchor-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  background: var(--card-bg);
  transition: all 0.16s ease;
  position: relative;
}
.anchor-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-sm); }
.anchor-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}
.anchor-card .ac-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.anchor-card .ac-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}
.anchor-card .ac-code {
  font-size: 11px;
  color: var(--text-faint);
  background: var(--gray-bg);
  padding: 2px 7px;
  border-radius: 5px;
}
.anchor-card .ac-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
}
.anchor-card .rank-badge {
  position: absolute;
  top: -10px; right: -10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(230,126,34,0.4);
  border: 2px solid #fff;
}

/* =========================================================
   表单（经历回顾 / 证据层）
   ========================================================= */
.form-row { margin-bottom: 20px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 7px;
}
.form-label .req { color: var(--red); margin-left: 3px; }
.form-label .hint-inline {
  font-weight: 400;
  color: var(--text-light);
  font-size: 12.5px;
  margin-left: 6px;
}
.input, .select, .textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14.5px;
  color: var(--text);
  background: var(--card-bg);
  font-family: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,126,34,0.12);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8896' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field-error { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(231,76,60,0.1) !important; }
.error-msg { color: var(--red); font-size: 12.5px; margin-top: 6px; }
.char-count { text-align: right; font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* 证据层 */
.evidence-dim {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
  background: var(--card-bg);
}
.evidence-dim.high { border-left: 4px solid var(--green); }
.evidence-dim.low { border-left: 4px solid var(--red); }
.evidence-dim.skipped { opacity: 0.55; }
.ev-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 6px;
}
.ev-title { font-size: 16px; font-weight: 600; color: var(--primary); }
.ev-sub { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.ev-skip-btn {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-light);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}
.ev-skip-btn:hover { color: var(--accent); border-color: var(--accent); }
.ev-skipped-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--text-light);
  background: var(--gray-bg);
  padding: 3px 10px;
  border-radius: 5px;
}

/* =========================================================
   加载页
   ========================================================= */
.loading {
  text-align: center;
  padding: 80px 28px;
}
.spinner {
  width: 54px; height: 54px;
  border: 4px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 26px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading h2 {
  font-size: 22px; color: var(--primary); margin-bottom: 10px;
}
.loading .ld-sub { color: var(--text-mid); font-size: 15px; margin-bottom: 6px; }
.loading .ld-meta { color: var(--text-light); font-size: 13px; }
.loading .ld-dots::after {
  content: "";
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "·"; }
  50% { content: "··"; }
  75% { content: "···"; }
}
.error-box {
  margin-top: 24px;
  background: var(--red-bg);
  border: 1px solid #f5c6c0;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: #b03a2e;
  font-size: 14px;
  text-align: left;
}

/* =========================================================
   报告页
   ========================================================= */
.report { padding-bottom: 40px; }
.report-header {
  text-align: center;
  margin-bottom: 36px;
  padding: 44px 20px 36px;
  background: linear-gradient(135deg, #2c3e50, #3d566e);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.report-header .rh-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.report-header h1 { color: #fff; font-size: 26px; letter-spacing: 1px; }
.report-header .rh-date { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 8px; }

.report-section { margin-bottom: 36px; }
.report-section .sec-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.report-section .sec-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(44,62,80,0.2);
}
.report-section .sec-title { font-size: 20px; font-weight: 600; color: var(--primary); }

.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.panel:hover { box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.panel h4::before {
  content: "";
  width: 4px; height: 16px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* 职业锚解读 */
.anchor-read {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin-bottom: 14px;
}
.anchor-read:last-child { margin-bottom: 0; }
.anchor-read .ar-name { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.anchor-read .ar-line { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }
.anchor-read .ar-line .k { color: var(--accent); font-weight: 600; margin-right: 4px; }

/* 轮廓徽章 */
.contour-wrap { text-align: center; padding: 6px 0; }
.contour-badge {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(230,126,34,0.3);
}
.contour-summary {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 雷达图 */
.radar-wrap { display: flex; justify-content: center; padding: 6px 0; }
#radarChart { width: 100%; max-width: 460px; height: 380px; }

/* 状态标签（已验证/假设中/盲区） */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-verified { color: var(--green); background: var(--green-bg); }
.status-assumed { color: var(--yellow); background: var(--yellow-bg); }
.status-blind { color: var(--red); background: var(--red-bg); }

/* 能力项列表 */
.asset-item, .risk-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}
.asset-item:last-child, .risk-item:last-child { border-bottom: none; }
.ai-main { flex: 1; min-width: 0; }
.ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ai-name { font-size: 15px; font-weight: 600; color: var(--primary); }
.ai-meta { font-size: 12px; color: var(--text-light); }
.ai-score {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.score-high { background: var(--green); }
.score-low { background: var(--red); }
.score-mid { background: var(--accent-soft); }
.ai-value { font-size: 14px; color: var(--text-mid); line-height: 1.75; }
.ai-value .k { color: var(--primary); font-weight: 600; }
.ai-action {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--green-bg);
  border-radius: 8px;
  border-left: 3px solid var(--green);
}
.ai-action .k { color: var(--primary); font-weight: 600; }

/* 可折叠详情区 */
.detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-light);
  transition: all 0.15s ease;
}
.detail-toggle:hover { background: rgba(230,126,34,0.18); }
.detail-toggle .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 10px;
}
.detail-toggle.open .arrow { transform: rotate(90deg); }
.detail-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.2s ease;
  opacity: 0;
}
.detail-body.open {
  max-height: 500px;
  margin-top: 8px;
  opacity: 1;
}

.risk-item .ai-strategy {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 9px;
  border-radius: 5px;
  margin-left: 6px;
}
.risk-level {
  font-size: 12px; font-weight: 600; padding: 2px 9px;
  border-radius: 5px; white-space: nowrap;
}
.risk-extreme { color: #fff; background: var(--red); }
.risk-high { color: #fff; background: var(--orange); }
.risk-mid { color: var(--yellow); background: var(--yellow-bg); }
.risk-long { color: var(--text-light); background: var(--gray-bg); }

/* 矛盾分析 */
.contradiction {
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.contradiction:last-child { margin-bottom: 0; }
.contradiction .c-title { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.contradiction .c-desc { font-size: 14px; color: var(--text-mid); line-height: 1.75; }

/* 阶段进度条 */
.stage-bar {
  display: flex;
  position: relative;
  margin: 30px 6px 8px;
}
.stage-node {
  flex: 1;
  text-align: center;
  position: relative;
}
.stage-node .sn-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--border-strong);
  margin: 0 auto 10px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.stage-node.done .sn-dot { background: var(--primary); }
.stage-node.current .sn-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(230,126,34,0.2);
  transform: scale(1.15);
}
.stage-node::before {
  content: "";
  position: absolute;
  top: 8px; left: -50%;
  width: 100%; height: 3px;
  background: var(--border-strong);
  z-index: 1;
}
.stage-node:first-child::before { display: none; }
.stage-node.done::before { background: var(--primary); }
.stage-node .sn-label { font-size: 13px; font-weight: 600; color: var(--text-light); }
.stage-node.current .sn-label { color: var(--accent); }
.stage-node.done .sn-label { color: var(--primary); }
.stage-task {
  margin-top: 20px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.7;
}
.stage-task .st-name { color: var(--accent); font-weight: 600; margin-right: 6px; }

/* 职业方向表格 */
.dir-table-wrap { overflow-x: auto; }
.dir-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.dir-table th {
  text-align: left;
  padding: 11px 12px;
  background: #f3f5f7;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid var(--border);
}
.dir-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-mid);
  line-height: 1.65;
}
.dir-table tr:last-child td { border-bottom: none; }
.dir-name { font-weight: 600; color: var(--primary); }
.match-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.match-strong { color: #fff; background: var(--green); }
.match-recommend { color: #fff; background: var(--lightgreen); }
.match-optional { color: var(--yellow); background: var(--yellow-bg); }
.match-caution { color: #fff; background: var(--orange); }
.match-forbid { color: #fff; background: var(--red); }
.energy-risk { font-size: 12.5px; }
.er-low { color: var(--green); }
.er-mid { color: var(--yellow); }
.er-high { color: var(--red); }

/* 职业方向卡片 */
.dir-card {
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.dir-card:last-child { margin-bottom: 0; }
.dir-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.dir-card-name { font-size: 15px; font-weight: 600; color: var(--primary); }
.dir-card-reason { font-size: 14px; color: var(--text-mid); line-height: 1.75; margin-bottom: 6px; }

/* why 字段通用样式 — 可折叠 */
.ai-why, .c-why, .c-impact, .tl-why,
.dir-card-why, .dir-card-special {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-top: 8px;
  padding: 12px 14px;
  background: #f0f4f8;
  border-radius: 8px;
  border-left: 3px solid var(--primary-light);
}
.c-impact { background: #fef0f0; border-left-color: var(--red); }
.dir-card-special { background: #fff8f0; border-left-color: var(--accent); }
.ai-why .k, .c-why .k, .c-impact .k, .tl-why .k,
.dir-card-why .k, .dir-card-special .k {
  color: var(--primary);
  font-weight: 600;
}

/* 行动路线图时间轴 */
.timeline { position: relative; padding-left: 28px; margin-top: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border-strong));
}
.tl-phase { position: relative; margin-bottom: 26px; }
.tl-phase:last-child { margin-bottom: 0; }
.tl-phase::before {
  content: "";
  position: absolute;
  left: -27px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.tl-phase-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.tl-cards { display: flex; flex-direction: column; gap: 10px; }
.tl-card {
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
}
.tl-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.priority-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  padding: 2px 9px;
  border-radius: 5px;
  letter-spacing: 0.5px;
}
.p-P0 { background: var(--red); }
.p-P1 { background: var(--orange); }
.p-P2 { background: var(--yellow); color: #6b5417; }
.p-P3 { background: var(--gray); }
.tl-action { font-size: 14px; font-weight: 600; color: var(--primary); }
.tl-detail { font-size: 13px; color: var(--text-mid); line-height: 1.65; margin-top: 4px; }
.tl-gap {
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
  display: flex; align-items: flex-start; gap: 4px;
}
.tl-gap::before { content: "▸"; }

/* 结束语 */
.closing {
  background: linear-gradient(135deg, #2c3e50, #3d566e);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  font-size: 15px;
  line-height: 1.95;
  box-shadow: var(--shadow);
}
.closing .cl-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

/* 报告底部操作 */
.report-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.report-actions .btn-secondary { color: var(--primary); }

/* 导出中遮罩 */
.export-mask {
  position: fixed;
  inset: 0;
  background: rgba(44,62,80,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}
.export-mask .em-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.export-mask .em-box .spinner { width: 38px; height: 38px; margin-bottom: 14px; }
.export-mask .em-box p { color: var(--text-mid); font-size: 14px; }

/* =========================================================
   Toast 轻提示
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: rgba(44,62,80,0.95);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  z-index: 900;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* =========================================================
   反馈区
   ========================================================= */
.feedback-section .sec-num {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.feedback-panel {
  text-align: center;
  padding: 32px 28px !important;
}
.feedback-prompt {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 18px;
}
.feedback-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.feedback-stars .star {
  font-size: 32px;
  color: var(--border-strong);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1;
}
.feedback-stars .star:hover {
  transform: scale(1.15);
  color: var(--accent-soft);
}
.feedback-stars .star.active {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(230, 126, 34, 0.3);
}
.feedback-text {
  max-width: 520px;
  margin: 0 auto 18px;
  min-height: 70px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 12px 14px;
  font-size: 14px;
  resize: vertical;
  width: 100%;
  font-family: inherit;
}
.feedback-text:focus {
  outline: none;
  border-color: var(--accent-soft);
}
.feedback-actions {
  display: flex;
  justify-content: center;
}
.feedback-msg {
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}
.feedback-msg.feedback-ok {
  background: var(--green-bg);
  color: var(--green);
}
.feedback-msg.feedback-err {
  background: var(--red-bg);
  color: var(--red);
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 640px) {
  .app { padding: 22px 14px 60px; }
  .card { padding: 20px 16px; }
  .intro { padding: 36px 14px 32px; }
  .intro h1 { font-size: 26px; }
  .intro .lead { font-size: 15px; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .anchor-grid { grid-template-columns: 1fr; }
  .report-section .sec-title { font-size: 17px; }
  .report-header h1 { font-size: 22px; }
  #radarChart { height: 320px; }
  .nav-actions { flex-direction: column-reverse; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
  .nav-actions .right { justify-content: center; }
  .dir-table { font-size: 12.5px; }
  .stage-node .sn-label { font-size: 11px; }
}

@media (max-width: 400px) {
  .conf-pill { min-width: 100%; }
}
