/* ============================================================
 * 心道阳光 · 心理测评系统 — 样式（移动端优先 · 专业严谨风）
 * ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #f5f4f0;
  color: #2c2c2a;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ---------- 品牌头 ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 16px;
  background: #fff;
}
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #534AB7;
  color: #fff;
  font-size: 22px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.brand-text h1 { font-size: 18px; font-weight: 500; color: #26215C; }
.brand-text p { font-size: 12px; color: #888780; }

main { padding: 12px 16px 24px; }

/* ---------- 大厅 ---------- */
.home-intro { font-size: 13px; color: #5F5E5A; margin-bottom: 16px; }
.scale-list { display: flex; flex-direction: column; gap: 12px; }
.scale-card {
  background: #fff;
  border: 1px solid #E3E1D8;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s;
}
.scale-card:active { border-color: #534AB7; }
.scale-badge {
  display: inline-block;
  font-size: 11px;
  color: #0F6E56;
  background: #E1F5EE;
  border-radius: 10px;
  padding: 2px 10px;
  margin-bottom: 8px;
}
.scale-title { font-size: 16px; font-weight: 500; color: #26215C; }
.scale-sub { font-size: 13px; color: #5F5E5A; margin-top: 2px; }
.scale-meta { font-size: 12px; color: #888780; margin-top: 8px; }

.scale-card.placeholder {
  border: 1px dashed #B4B2A9;
  background: transparent;
  cursor: default;
  text-align: center;
}
.ph-inner { padding: 8px 0; }
.ph-plus { font-size: 22px; color: #B4B2A9; }
.scale-card.placeholder p { font-size: 13px; color: #888780; margin-top: 4px; }

/* ---------- 作答 ---------- */
.quiz-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.btn-back {
  border: none; background: none;
  font-size: 13px; color: #534AB7;
  padding: 6px 0; white-space: nowrap;
}
.quiz-progress-wrap {
  flex: 1; height: 4px;
  background: #E3E1D8; border-radius: 2px;
  overflow: hidden;
}
.quiz-progress {
  height: 100%;
  background: #534AB7;
  border-radius: 2px;
  transition: width .2s;
}
.quiz-count { font-size: 12px; color: #888780; white-space: nowrap; }

.quiz-title { font-size: 15px; font-weight: 500; color: #26215C; margin-bottom: 4px; }
.quiz-question { font-size: 16px; font-weight: 500; color: #2c2c2a; margin: 10px 0 20px; line-height: 1.5; }

/* 二选一 */
.choice-box { display: flex; flex-direction: column; gap: 12px; }
.choice-btn {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid #E3E1D8;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px; color: #2c2c2a;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s;
}
.choice-btn .choice-key {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid #B4B2A9;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #5F5E5A;
  flex-shrink: 0;
}
.choice-btn.selected { border-color: #534AB7; background: #EEEDFE; }
.choice-btn.selected .choice-key { background: #534AB7; border-color: #534AB7; color: #fff; }

/* 五点量表 */
.likert-box { background: #fff; border: 1px solid #E3E1D8; border-radius: 12px; padding: 12px; }
.likert-row { display: flex; justify-content: space-between; }
.likert-btn {
  flex: 1;
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 4px 0;
  cursor: pointer;
}
.likert-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #D3D1C7;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #5F5E5A;
  transition: all .15s;
}
.likert-btn.selected .likert-num { background: #534AB7; border-color: #534AB7; color: #fff; }
.likert-lab { font-size: 10px; color: #888780; text-align: center; }

/* 导航 */
.quiz-nav { display: flex; gap: 12px; margin-top: 24px; }
.btn {
  border: none; border-radius: 10px;
  padding: 12px 0; font-size: 14px;
  cursor: pointer;
  flex: 1;
  transition: opacity .15s;
}
.btn:disabled { opacity: .35; }
.btn-primary { background: #534AB7; color: #fff; }
.btn-ghost { background: #fff; color: #534AB7; border: 1px solid #D3D1C7; }
.btn-block { display: block; width: 100%; margin-top: 10px; }
.flash-tip { text-align: center; font-size: 12px; color: #A32D2D; margin-top: 10px; }

/* ---------- 报告 ---------- */
.report-badge {
  display: inline-block;
  font-size: 12px; color: #534AB7;
  background: #EEEDFE;
  border-radius: 10px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.report-type { font-size: 28px; font-weight: 500; color: #26215C; letter-spacing: 2px; }
.report-type-name { font-size: 15px; color: #534AB7; margin-top: 2px; }
.report-lead { font-size: 14px; color: #2c2c2a; margin-top: 10px; }

.report-block {
  background: #fff;
  border: 1px solid #E3E1D8;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}
.report-block.highlight { border-color: #534AB7; background: #F4F3FC; }
.block-title { font-size: 13px; font-weight: 500; color: #26215C; margin-bottom: 10px; }

.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bar-label { width: 68px; font-size: 12px; color: #5F5E5A; flex-shrink: 0; }
.bar-track { flex: 1; height: 8px; background: #EFEEE9; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: #534AB7; border-radius: 4px; }
.bar-val { width: 64px; font-size: 12px; color: #26215C; text-align: right; flex-shrink: 0; }

.adv-item, .dim-desc, .dim-hint { font-size: 13px; color: #2c2c2a; margin-bottom: 8px; }
.dim-hint { font-size: 12px; color: #888780; border-left: 2px solid #CECBF6; padding-left: 8px; }

.course-card {
  background: #fff;
  border: 1px solid #534AB7;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}
.course-item { font-size: 14px; color: #26215C; margin-bottom: 6px; }
.course-desc { font-size: 13px; color: #5F5E5A; margin-bottom: 6px; }
.course-action { font-size: 12px; color: #0F6E56; margin-bottom: 4px; }

.disclaimer { font-size: 11px; color: #B4B2A9; margin-top: 16px; line-height: 1.7; }

.foot { text-align: center; font-size: 11px; color: #B4B2A9; padding: 16px 0 28px; }
