:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #1f2330;
  --sub: #6b7280;
  --line: #e7e9f0;
  --brand: #5b5bd6;
  --brand2: #8b5cf6;
  --brand-soft: #eef0ff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(31, 35, 48, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部 ---------- */
.hero {
  background: linear-gradient(135deg, #5b5bd6 0%, #8b5cf6 55%, #c084fc 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.hero .kicker { font-size: 14px; letter-spacing: 2px; opacity: .9; }
.hero h1 { font-size: 36px; margin: 14px 0 10px; font-weight: 800; }
.hero p.lead { font-size: 17px; max-width: 620px; margin: 0 auto; opacity: .95; }
.hero .cta {
  display: inline-block; margin-top: 28px; background: #fff; color: var(--brand);
  padding: 14px 34px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.hero .cta:hover { transform: translateY(-1px); }
.hero .note { margin-top: 14px; font-size: 13px; opacity: .85; }

/* ---------- 区块 ---------- */
section { padding: 54px 0; }
.section-title { text-align: center; font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--sub); margin: 0 0 32px; }

/* 维度网格 */
.dim-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.dim-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.dim-card .emoji { font-size: 28px; }
.dim-card h3 { margin: 10px 0 4px; font-size: 16px; }
.dim-card p { margin: 0; color: var(--sub); font-size: 13px; }

/* 类型卡 */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.type-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.type-card h3 { margin: 0 0 6px; font-size: 18px; }
.type-card .tag { color: var(--brand); font-size: 13px; font-weight: 600; }
.type-card p { color: var(--sub); font-size: 14px; margin: 8px 0 0; }

/* ---------- 测试页 ---------- */
.test-main { padding: 40px 0 80px; min-height: 100vh; }
.gate-msg {
  max-width: 460px; margin: 120px auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow);
}
.gate-msg h2 { margin: 0 0 10px; }
.gate-msg p { color: var(--sub); margin: 0; }

.progress-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.progress-track { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .25s; }
.progress-num { font-size: 13px; color: var(--sub); white-space: nowrap; }

.q-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.q-card .q-index { color: var(--brand); font-weight: 700; font-size: 14px; }
.q-card .q-text { font-size: 20px; font-weight: 700; margin: 8px 0 22px; }
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; background: #fff; transition: .15s; font-size: 15px;
}
.option:hover { border-color: var(--brand); background: var(--brand-soft); }
.option.selected { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.option .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.option.selected .dot { background: var(--brand); border-color: var(--brand); }

.nav-row { display: flex; justify-content: space-between; margin-top: 22px; }
.btn {
  padding: 12px 26px; border-radius: 999px; border: none; font-size: 15px; font-weight: 700;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:disabled { background: #c7c9e0; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--sub); }

/* ---------- 结果页 ---------- */
.result { max-width: 720px; margin: 0 auto; }
.result .badge {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.result h2 { font-size: 30px; margin: 14px 0 6px; }
.result .tag { color: var(--brand); font-weight: 600; }
.result .summary { color: var(--ink); margin: 16px 0 26px; }
.result .note { color: var(--sub); font-size: 13px; margin: -10px 0 18px; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.block h3 { margin: 0 0 12px; font-size: 17px; }
.block.blindspots { background: #fff7ed; border-color: #fed7aa; }
.block.blindspots h3 { color: #c2410c; }
.blind-list { margin: 0; padding-left: 18px; }
.blind-list li { margin: 6px 0; font-size: 14px; color: var(--ink); }
.block.not-suit { background: #fef2f2; border-color: #fecaca; }
.block.not-suit h3 { color: #dc2626; }
.chip-warn { background: #fee2e2; color: #dc2626; }

/* 雷达图 */
.radar-wrap { display: flex; justify-content: center; padding: 6px 0 2px; }
.radar-wrap svg { width: 100%; max-width: 320px; height: auto; }
.radar-hint { text-align: center; color: var(--sub); font-size: 12px; margin: 4px 0 0; }

/* 推荐原因 / 风险 */
.reason, .risk { font-size: 14px; color: var(--ink); margin: 12px 0 0; line-height: 1.7; }
.reason b, .risk b { color: var(--brand); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--brand-soft); color: var(--brand); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.dim-bar { margin: 10px 0; }
.dim-bar .lab { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); margin-bottom: 4px; }
.dim-bar .track { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.dim-bar .fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.advice { color: var(--ink); }
.disclaimer { color: var(--sub); font-size: 12px; text-align: center; margin-top: 18px; }

/* 保存报告按钮 */
.report-actions { margin-top: 10px; text-align: center; }

/* 烘焙进图片的水印（截图内可见） */
.report-wm {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eceef3;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: #aeb4c0;
}

.share-card {
  margin: 22px 0; background: linear-gradient(135deg, #5b5bd6, #8b5cf6);
  color: #fff; border-radius: var(--radius); padding: 26px; text-align: center;
}
.share-card h3 { margin: 0 0 6px; font-size: 24px; }
.share-card p { opacity: .92; margin: 0 0 16px; }
.share-card .btn-share {
  background: #fff; color: var(--brand); padding: 10px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; display: inline-block; border: none; cursor: pointer; font-size: 14px;
}

/* ---------- 水印 ---------- */
.watermark {
  position: fixed; right: 12px; bottom: 12px; z-index: 50;
  background: rgba(31,35,48,.72); color: #fff; font-size: 11px; padding: 5px 10px;
  border-radius: 999px; letter-spacing: .3px; pointer-events: none; opacity: .9;
}

/* 测试入口引导（落地页底部） */
.entry { text-align: center; }
.entry .pill {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.entry .start-btn {
  display: inline-block; background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; padding: 14px 40px; border-radius: 999px; font-weight: 700; font-size: 17px;
  text-decoration: none; box-shadow: 0 10px 24px rgba(91,91,214,.3);
}
.foot { text-align: center; color: var(--sub); font-size: 13px; padding: 30px 0 60px; }
.foot a { color: var(--brand); text-decoration: none; font-weight: 600; }
.gate-msg a { color: var(--brand); font-weight: 600; }

/* ---------- 结果页 · 加厚版新增样式 ---------- */
/* 维度分数条状态标签 */
.dim-tier { font-weight: 700; }
.dim-tier.t1 { color: var(--brand); }
.dim-tier.t2 { color: var(--ok); }
.dim-tier.t3 { color: var(--warn); }
.dim-tier.t4 { color: #9aa1ad; }

/* 有这项天赋的你 / 成长空间 通用条目 */
.voice { margin: 10px 0; padding: 12px 14px; background: var(--brand-soft); border-radius: 12px; }
.voice-name { font-weight: 700; font-size: 14px; color: var(--brand); margin-bottom: 4px; }
.voice-text { font-size: 14px; color: var(--ink); line-height: 1.7; }
.growth .voice { background: #fff7ed; }
.growth .voice-name { color: #c2410c; }

/* 核心优势深度解读 */
.deep-dive { background: linear-gradient(135deg, #f5f3ff, #eef0ff); border-color: #ddd6fe; }
.dd-quote { font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--brand); margin: 0 0 14px; }
.dd-row { display: flex; gap: 12px; margin: 10px 0; align-items: flex-start; }
.dd-k { flex: none; width: 92px; color: var(--sub); font-size: 13px; font-weight: 600; padding-top: 2px; }
.dd-v { flex: 1; font-size: 14px; color: var(--ink); line-height: 1.7; }
.dd-row .chip-row { flex: 1; }

/* 适合的方向（careers 对象） */
.career { padding: 12px 0; border-bottom: 1px solid var(--line); }
.career:last-of-type { border-bottom: none; }
.career-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.career-name { font-weight: 700; font-size: 15px; }
.career-match { color: var(--brand); font-weight: 700; font-size: 13px; white-space: nowrap; }
.career-tags { margin: 8px 0 0; }
.career-starter { font-size: 13px; color: var(--sub); margin-top: 6px; line-height: 1.6; }
.role-models { margin-top: 4px; }

/* 页脚时间戳 + 版本号 */
.report-foot { text-align: center; color: #aeb4c0; font-size: 11px; letter-spacing: .5px; margin-top: 14px; }

/* ---------- 深度思考版 · 题型 UI ---------- */
.q-section { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .5px; margin-bottom: 2px; }
.q-card .q-index { color: var(--brand); font-weight: 700; font-size: 14px; }
.q-card .q-index:empty { display: none; }

/* 排序题 */
.rank-options { gap: 10px; }
.rank-item .rank-num {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--sub); background: #fff;
}
.rank-item.selected .rank-num { background: var(--brand); border-color: var(--brand); color: #fff; }
.rank-hint { grid-column: 1 / -1; font-size: 12px; color: var(--sub); margin-top: 2px; text-align: center; }
