:root {
  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --text: #1e293b;
  --text-sub: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
}

.hidden { display: none !important; }

/* 落地页 */
.landing { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #eff6ff 0%, #ffffff 42%); }
.landing-top { padding: 52px 28px 28px; text-align: center; }
.landing-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 999px; letter-spacing: 1px; }
.landing-title { font-size: 28px; font-weight: 700; line-height: 1.35; margin: 18px 0 12px; }
.landing-sub { font-size: 15px; color: var(--text-sub); line-height: 1.7; }
.landing-points { padding: 8px 24px 16px; display: flex; flex-direction: column; gap: 12px; }
.landing-point { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.point-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.point-title { font-size: 15px; font-weight: 600; }
.point-desc { font-size: 13px; color: var(--text-sub); margin-top: 1px; }
.landing-cta { padding: 8px 24px 28px; margin-top: auto; }
.landing-note { text-align: center; font-size: 12px; color: var(--text-sub); margin-top: 10px; }

/* 答题 */
.quiz { padding: 20px; min-height: 100vh; display: flex; flex-direction: column; }
.quiz-top { margin-bottom: 24px; }
.progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 3px; transition: width .2s; }
.quiz-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-sub); }
.quiz-body { flex: 1; display: flex; align-items: center; }
.quiz-question { font-size: 20px; font-weight: 600; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.option {
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.option:active { transform: scale(.98); }
.option.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.quiz-nav { display: flex; justify-content: flex-start; }
.btn-back { border: none; background: none; color: var(--text-sub); font-size: 14px; cursor: pointer; padding: 8px; }
.btn-back:disabled { opacity: .4; cursor: default; }

/* 报告通用 */
.report { padding: 28px 20px; }
.report-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.report-sub { text-align: center; color: var(--text-sub); font-size: 14px; margin-bottom: 24px; }
.label-card { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 20px; text-align: center; margin-bottom: 20px; }
.label-card .label-name { font-size: 22px; font-weight: 700; }
.holland-line { text-align: center; font-size: 15px; color: var(--text-sub); margin-bottom: 24px; }
.holland-line b { color: var(--primary); font-size: 18px; }

.section { margin-bottom: 20px; }
.section h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary); }
.section p { font-size: 14px; color: var(--text); }

.warning-banner { background: var(--danger-soft); border: 1.5px solid var(--danger); color: var(--danger); border-radius: var(--radius); padding: 14px; font-size: 14px; margin-bottom: 20px; }

/* 留资表单 */
.lead-box { background: var(--primary-soft); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.lead-box h3 { font-size: 17px; margin-bottom: 6px; }
.lead-box p { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
.lead-input { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; margin-bottom: 8px; }
.lead-input:focus { outline: none; border-color: var(--primary); }
.lead-error { color: var(--danger); font-size: 12px; margin-bottom: 8px; min-height: 16px; }
.btn-primary { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-primary:active { opacity: .9; }

.ending { font-size: 12px; color: var(--text-sub); text-align: center; margin-top: 24px; }

/* 雷达图 */
.radar-wrap { display: flex; justify-content: center; padding: 8px 0 0; }
.radar { width: 100%; max-width: 320px; height: auto; }
.radar-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.radar-axis { stroke: var(--border); stroke-width: 1; }
.radar-data { fill: rgba(37, 99, 235, 0.20); stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; }
.radar-label { fill: var(--text); font-size: 12px; font-weight: 600; }
.radar-rating { font-size: 11px; }
.radar-legend { display: flex; justify-content: center; gap: 16px; padding: 4px 0 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-sub); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }

/* 短板高亮卡 */
.weak-card { background: #fffbeb; border: 1.5px solid #f59e0b; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.weak-head { font-size: 16px; font-weight: 700; color: #b45309; margin-bottom: 6px; }
.weak-pain { font-size: 13px; color: #92400e; margin-bottom: 12px; }
.weak-tips-title { font-size: 13px; font-weight: 600; color: #b45309; margin-bottom: 6px; }
.weak-tips { margin: 0; padding-left: 20px; font-size: 13px; color: #78350f; }
.weak-tips li { margin-bottom: 4px; }

/* 线下解读 CTA */
.cta-card { background: linear-gradient(180deg, #eff6ff 0%, #ffffff 60%); border: 1.5px solid var(--primary); border-radius: var(--radius); padding: 18px 16px; text-align: center; margin-bottom: 20px; }
.cta-title { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.cta-body { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; }
.cta-action { display: inline-block; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; padding: 11px 20px; border-radius: 8px; margin-bottom: 14px; }
.cta-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.cta-points li { font-size: 13px; color: var(--text); position: relative; padding-left: 14px; }
.cta-points li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
