/* ============================================================
   因心·生命矿脉挖掘机 — 全局样式（温暖紫色系 v3）
   参考色系：米白底 #faf5f0 | 主紫 #7c3aed | 深紫黑徽章 #1e1b2e
   ============================================================ */

/* ── CSS 变量 ─────────────────────────────────────────────── */
:root {
  --color-bg:           #faf6f1;
  --color-bg-2:         #f5efe8;
  --color-bg-card:      #ffffff;
  --color-bg-card2:     #fdfbf8;
  --color-purple:       #7c3aed;
  --color-purple-light: #a78bfa;
  --color-purple-dark:  #5b21b6;
  --color-purple-pale:  #ede9fe;
  --color-badge-bg:     #1e1b2e;
  --color-badge-text:   #ffffff;
  --color-text:         #1e1b2e;
  --color-text-sub:     #4c4472;
  --color-text-muted:   #9088a8;
  --color-border:       rgba(124,58,237,0.12);
  --color-border-soft:  rgba(124,58,237,0.07);
  --radius-card:        16px;
  --radius-btn:         40px;
  --radius-tag:         20px;
  --font-serif:         'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans:          'PingFang SC', 'Helvetica Neue', 'Inter', sans-serif;
  --transition-base:    0.28s cubic-bezier(.4,0,.2,1);
  --shadow-card:        0 2px 12px rgba(124,58,237,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-card-hover:  0 8px 28px rgba(124,58,237,0.14), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-btn:         0 4px 16px rgba(124,58,237,0.32);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── 粒子浮动背景（极淡，不抢视觉）───────────────────────── */
.particles-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-purple-light);
  opacity: 0;
  animation: floatParticle var(--dur, 10s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes floatParticle {
  0%   { opacity: 0;    transform: translateY(100vh) scale(0.3); }
  10%  { opacity: 0.15; }
  90%  { opacity: 0.06; }
  100% { opacity: 0;    transform: translateY(-20vh) scale(1); }
}

/* ── 页面容器 ─────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

/* ── 顶部进度条 ───────────────────────────────────────────── */
#progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(124,58,237,0.08);
  z-index: 100;
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-purple-light) 100%);
  transition: width 0.5s ease;
  border-radius: 0 3px 3px 0;
}

.progress-label {
  position: fixed;
  top: 8px;
  right: 16px;
  font-size: 11px;
  font-family: var(--font-sans);
  color: var(--color-purple);
  opacity: 0.75;
  z-index: 101;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ── 卡片通用样式 ─────────────────────────────────────────── */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* ── 引言页（第0步）─────────────────────────────────────── */
#step-0 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px;
  text-align: center;
  animation: fadeInUp 1s ease both;
}

/* LOGO 徽标：紫色圆形 */
.intro-logo-wrap {
  width: 64px;
  height: 64px;
  background: var(--color-purple);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(124,58,237,0.35);
}

.intro-logo-wrap span {
  font-size: 28px;
  line-height: 1;
}

.intro-logo {
  font-size: 52px;
  margin-bottom: 24px;
  animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

.intro-title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.intro-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.22em;
  margin-bottom: 36px;
  font-family: var(--font-sans);
}

.intro-body {
  max-width: 560px;
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-sub);
  text-align: justify;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}

/* ── 按钮 ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-purple);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 32px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--color-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.42);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 20px;
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  color: var(--color-purple);
  border-color: var(--color-purple);
  background: var(--color-purple-pale);
}

/* ── 保存按钮 ──────────────────────────────────────────────── */
.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-purple-pale);
  color: var(--color-purple);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-save:hover {
  background: rgba(124,58,237,0.15);
  border-color: var(--color-purple);
  box-shadow: 0 2px 10px rgba(124,58,237,0.15);
}

.btn-save:active {
  transform: scale(0.96);
}

.btn-save.saved {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
  pointer-events: none;
}

.btn-save:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── 手机号输入框 ─────────────────────────────────────────── */
input[type="tel"] {
  letter-spacing: 2px;
  font-weight: 500;
}

/* ── 字段错误提示 ──────────────────────────────────────────── */
.field-error {
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── 步骤页通用 ───────────────────────────────────────────── */
.step-page {
  display: none;
  padding-top: 56px;
  animation: fadeInUp 0.4s ease both;
}

.step-page.active {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 步骤顶部 Header（参考截图：左侧大标题 + 右侧深色完成度badge）── */
.step-header {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}

.step-header-left {
  min-width: 0;
}

.step-current-label {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

.step-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.step-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* 右侧深色进度徽章 */
.step-progress-badge {
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  min-width: 84px;
  flex-shrink: 0;
}

.step-progress-badge .badge-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.step-progress-badge .badge-pct {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}

.step-progress-badge .badge-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.step-progress-badge .badge-bar-fill {
  height: 100%;
  background: var(--color-purple-light);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ── Tab 步骤指示器（参考截图：多个Tab标签）─────────────── */
.step-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 8px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.step-tabs::-webkit-scrollbar { display: none; }

.step-tab {
  flex: 1;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.step-tab.active {
  background: var(--color-purple-pale);
  color: var(--color-purple);
  border-color: rgba(124,58,237,0.18);
  font-weight: 600;
}

.step-tab.done {
  color: var(--color-purple);
  opacity: 0.5;
}

.step-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--color-purple);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  margin-right: 4px;
}

.step-tab:not(.active) .step-tab-num {
  background: rgba(124,58,237,0.15);
  color: var(--color-purple);
}

/* ── 旧版 step-module-tag（兼容保留）─────────────────────── */
.step-module-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-purple);
  background: var(--color-purple-pale);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-tag);
  padding: 3px 12px;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
}

/* ── 题组容器 ─────────────────────────────────────────────── */
.question-group {
  margin-bottom: 12px;
}

.group-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  opacity: 0.9;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── 单题样式 ─────────────────────────────────────────────── */
.question-item {
  margin-bottom: 18px;
  animation: fadeInUp 0.35s ease both;
}

.question-label {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.65;
  font-family: var(--font-sans);
  font-weight: 500;
}

.question-label .required-hint {
  font-size: 11px;
  color: var(--color-purple-light);
  opacity: 0.9;
  margin-left: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
}

/* ── 输入框 ───────────────────────────────────────────────── */
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: var(--color-bg-card2);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 10px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 11px 14px;
  transition: all var(--transition-base);
  outline: none;
  resize: none;
  -webkit-appearance: none;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: rgba(144,136,168,0.6);
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-purple);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

textarea {
  min-height: 88px;
  max-height: 200px;
  line-height: 1.8;
}

/* ── 单选按钮（性别等）──────────────────────────────────── */
.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-btn {
  flex: 1;
  min-width: 72px;
  text-align: center;
  padding: 9px 8px;
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  user-select: none;
  background: var(--color-bg-card2);
  font-family: var(--font-sans);
}

.radio-btn.selected {
  border-color: var(--color-purple);
  color: var(--color-purple);
  background: var(--color-purple-pale);
  font-weight: 600;
}

.radio-btn:hover:not(.selected) {
  border-color: rgba(124,58,237,0.3);
  color: var(--color-text);
  background: rgba(124,58,237,0.04);
}

/* ── Checkbox 多选 ────────────────────────────────────────── */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 24px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  user-select: none;
  background: var(--color-bg-card2);
  font-family: var(--font-sans);
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--color-purple);
}

.checkbox-item.checked {
  border-color: var(--color-purple);
  color: var(--color-purple);
  background: var(--color-purple-pale);
  font-weight: 600;
}

/* ── 八心映射特殊卡片 ──────────────────────────────────── */
.heart-traits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.heart-trait-card {
  padding: 11px 14px;
  border: 1px solid rgba(124,58,237,0.14);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.5;
  user-select: none;
  background: var(--color-bg-card2);
  font-family: var(--font-sans);
}

.heart-trait-card.selected {
  border-color: var(--color-purple);
  color: var(--color-purple);
  background: var(--color-purple-pale);
  font-weight: 600;
}

.heart-trait-card:hover:not(.selected) {
  border-color: rgba(124,58,237,0.3);
  color: var(--color-text);
  background: rgba(124,58,237,0.04);
}

/* ── 反思之镜（第5步）留白风格 ───────────────────────── */
#step-5 {
  position: relative;
}

.mirror-question-item {
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 2px solid rgba(124,58,237,0.12);
  transition: border-color var(--transition-base);
}

.mirror-question-item:focus-within {
  border-left-color: var(--color-purple);
}

.mirror-question-item.highlight-special .question-label {
  font-size: 15px;
  color: var(--color-purple);
  font-weight: 600;
}

/* ── 导航按钮区 ───────────────────────────────────────────── */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 8px;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-buttons .btn-primary {
  flex: 1;
  justify-content: center;
  min-width: 120px;
}

.nav-buttons .btn-save {
  flex-shrink: 0;
}

/* ── 等待/加载页（第6步）─────────────────────────────────── */
#step-6 {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px 16px;
}

#step-6.active {
  display: flex;
}

.loading-crystal-wrap {
  margin-bottom: 40px;
  position: relative;
}

/* ── SVG 矿石动画 ────────────────────────────────────────── */
.mining-crystal {
  width: 120px;
  height: 120px;
  animation: crystalSpin 7s linear infinite;
  filter: drop-shadow(0 0 18px rgba(124,58,237,0.4));
}

@keyframes crystalSpin {
  from { transform: rotateY(0deg) rotateZ(0deg); }
  to   { transform: rotateY(360deg) rotateZ(8deg); }
}

.mining-particles {
  position: absolute;
  inset: -30px;
  pointer-events: none;
}

.mini-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-purple);
  animation: orbitParticle var(--dur, 3s) linear var(--delay, 0s) infinite;
}

@keyframes orbitParticle {
  from { transform: rotate(var(--start, 0deg)) translateX(50px) scale(0.5); opacity: 0; }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.3; }
  to   { transform: rotate(calc(var(--start, 0deg) + 360deg)) translateX(50px) scale(1); opacity: 0; }
}

.loading-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.loading-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 2;
  max-width: 280px;
}

.loading-dots span {
  animation: dotBlink 1.4s ease-in-out infinite;
  display: inline-block;
  color: var(--color-purple);
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBlink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1.2); }
}

/* ── 错误提示 ─────────────────────────────────────────────── */
.error-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(220,38,38,0.9);
  color: #fff;
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 24px;
  z-index: 200;
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 90vw;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(220,38,38,0.25);
  font-family: var(--font-sans);
}

.error-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════
   报告页 (report.html) 样式
   ══════════════════════════════════════════════════════════ */

/* ── 报告页顶部 ───────────────────────────────────────────── */
.report-header {
  text-align: center;
  padding: 56px 16px 32px;
}

.report-header-title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.report-header-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  font-family: var(--font-sans);
}

/* ── 动态水晶 ─────────────────────────────────────────────── */
.crystal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  position: relative;
}

.crystal-svg {
  width: 160px;
  height: 160px;
  animation: crystalFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--crystal-glow, rgba(124,58,237,0.45)));
}

@keyframes crystalFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.crystal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ringPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.crystal-ring:nth-child(1) { width: 180px; height: 180px; border-color: rgba(124,58,237,0.18); animation-delay: 0s; }
.crystal-ring:nth-child(2) { width: 220px; height: 220px; border-color: rgba(124,58,237,0.1); animation-delay: 0.6s; }
.crystal-ring:nth-child(3) { width: 260px; height: 260px; border-color: rgba(124,58,237,0.05); animation-delay: 1.2s; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.05); opacity: 1; }
}

/* ── 报告加载过渡 ─────────────────────────────────────────── */
#report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 20px;
}

#report-content-wrap {
  display: none;
  animation: fadeInUp 0.8s ease both;
}

#report-content-wrap.visible {
  display: block;
}

/* ── 报告 section 卡片 ────────────────────────────────────── */
.report-section {
  margin-bottom: 12px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.5s ease both;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  position: relative;
}

/* 左侧彩色边条 */
.report-section::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}

.report-section:nth-child(2) { animation-delay: 0.08s; }
.report-section:nth-child(3) { animation-delay: 0.16s; }
.report-section:nth-child(4) { animation-delay: 0.24s; }
.report-section:nth-child(5) { animation-delay: 0.32s; }
.report-section:nth-child(6) { animation-delay: 0.4s; }

.summary-section::after  { background: linear-gradient(180deg, #7c3aed, #a78bfa); }
.roots-section::after    { background: linear-gradient(180deg, #059669, #34d399); }
.dark-section::after     { background: linear-gradient(180deg, #dc2626, #f87171); }
.core-section::after     { background: linear-gradient(180deg, #d97706, #fbbf24); }
.closing-section::after  { background: linear-gradient(180deg, #0891b2, #38bdf8); }
.mirror-section::after   { background: linear-gradient(180deg, #7c3aed, #c084fc); }

.section-title {
  font-size: 14px;
  font-weight: 700;
  padding: 16px 20px 12px 20px;
  border-bottom: 1px solid var(--color-border-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--color-text);
  font-family: var(--font-sans);
}

.section-title .subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.section-body {
  padding: 18px 20px 22px 20px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--color-text-sub);
  font-family: var(--font-sans);
}

.section-body h3 {
  font-size: 11px;
  color: var(--color-purple);
  letter-spacing: 0.1em;
  margin: 14px 0 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.8;
}

.section-body h3:first-child { margin-top: 0; }

.section-body p { margin-bottom: 10px; }

.ability-list {
  list-style: none;
  padding: 0;
}

.ability-list li {
  padding: 9px 14px;
  margin-bottom: 6px;
  background: var(--color-purple-pale);
  border-radius: 8px;
  border-left: 2px solid var(--color-purple);
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-sub);
}

/* ── 公式框 ───────────────────────────────────────────────── */
.formula-box {
  background: linear-gradient(135deg, var(--color-purple-pale) 0%, rgba(167,139,250,0.1) 100%);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  text-align: center;
}

.formula-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-purple);
  letter-spacing: 0.04em;
  line-height: 1.6;
  font-family: var(--font-sans);
}

/* ── 反思问题 ─────────────────────────────────────────────── */
.mirror-intro {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  font-style: italic;
}

.mirror-questions {
  padding-left: 0;
  list-style: none;
  counter-reset: mirror-counter;
}

.mirror-questions li {
  counter-increment: mirror-counter;
  padding: 12px 14px 12px 40px;
  margin-bottom: 6px;
  background: rgba(124,58,237,0.03);
  border-radius: 10px;
  position: relative;
  font-size: 14px;
  line-height: 1.75;
  border: 1px solid rgba(124,58,237,0.08);
  transition: border-color var(--transition-base);
  color: var(--color-text-sub);
}

.mirror-questions li:hover {
  border-color: rgba(124,58,237,0.2);
  background: var(--color-purple-pale);
}

.mirror-questions li::before {
  content: counter(mirror-counter);
  position: absolute;
  left: 10px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-purple-pale);
  color: var(--color-purple);
  font-size: 11px;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ── 分享区 ───────────────────────────────────────────────── */
.share-section {
  text-align: center;
  padding: 32px 16px 60px;
}

.share-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 12px;
  font-family: var(--font-sans);
}

/* ── 通用工具类 ───────────────────────────────────────────── */
.text-gold    { color: var(--color-purple); }
.text-muted   { color: var(--color-text-muted); }
.text-center  { text-align: center; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mt-24        { margin-top: 24px; }

/* ── 响应式微调 ───────────────────────────────────────────── */
@media (max-width: 400px) {
  .card          { padding: 18px 14px; }
  .section-body  { padding: 14px 16px 18px; }
  .section-title { padding: 13px 16px 11px; }
  .heart-traits-grid { grid-template-columns: 1fr; }
  .step-header   { grid-template-columns: 1fr; }
  .step-progress-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
