/* ═══════════════════════════════════════════════════
   生命能量扫描™ Life Energy Scan · Premium UI
   ═══════════════════════════════════════════════════ */

:root {
  --bg-0: #0a0d1a;
  --bg-1: #10142a;
  --bg-2: #171c38;
  --gold: #d8b46a;
  --gold-bright: #f0d494;
  --gold-dim: rgba(216, 180, 106, 0.35);
  --ink: #eef0f8;
  --ink-soft: #b8bdd4;
  --ink-faint: #7e849e;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(216, 180, 106, 0.18);
  --c-lost: #7ea6ff;
  --c-trapped: #b58cff;
  --c-drained: #ff9d6e;
  --c-numb: #6ee0c8;
  --c-despair: #ff7d9c;
  --ok: #62d99b;
  --warn: #f2c14e;
  --alert: #ff7d6e;
  --serif: "Noto Serif SC", serif;
  --sans: "Noto Sans SC", sans-serif;
  --en: "Cormorant Garamond", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: radial-gradient(1200px 800px at 70% -10%, #1c2350 0%, transparent 55%),
              radial-gradient(1000px 700px at -10% 100%, #251a3d 0%, transparent 50%),
              linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 55%, #0c0f20 100%);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── 背景光晕 ─────────────────────────── */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; animation: drift 26s ease-in-out infinite alternate; }
.orb-1 { width: 480px; height: 480px; background: #2b3a8f; top: -12%; right: -8%; }
.orb-2 { width: 420px; height: 420px; background: #5b3a8f; bottom: -14%; left: -10%; animation-delay: -8s; }
.orb-3 { width: 300px; height: 300px; background: #8f6a2b; top: 42%; left: 58%; opacity: 0.14; animation-delay: -16s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 40px) scale(1.12); }
}
.stars { position: absolute; inset: 0; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0; animation: twinkle 4.5s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 0; } 50% { opacity: 0.7; } }

/* ── 屏幕切换 ─────────────────────────── */
.screen { display: none; position: relative; z-index: 1; min-height: 100vh; padding: 48px 20px; animation: screenIn 0.6s ease both; }
.screen.active { display: flex; align-items: center; justify-content: center; }
@keyframes screenIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ══════════ 首页 ══════════ */
.landing-inner { max-width: 720px; width: 100%; text-align: center; }

.brand-mark { display: flex; justify-content: center; margin-bottom: 22px; }
.brand-ring {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 35% 30%, rgba(216,180,106,0.16), rgba(216,180,106,0.03));
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 40px rgba(216, 180, 106, 0.18), inset 0 0 24px rgba(216, 180, 106, 0.08);
  animation: breathe 4s ease-in-out infinite;
}
.lotus-svg { width: 56px; height: 56px; }
@keyframes breathe {
  0%,100% { box-shadow: 0 0 30px rgba(216,180,106,0.14), inset 0 0 20px rgba(216,180,106,0.06); transform: scale(1); }
  50%     { box-shadow: 0 0 55px rgba(216,180,106,0.30), inset 0 0 30px rgba(216,180,106,0.12); transform: scale(1.04); }
}

.eyebrow { font-size: 13px; letter-spacing: 0.35em; color: var(--gold); margin-bottom: 14px; font-weight: 500; }
.landing-title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 7vw, 64px);
  letter-spacing: 0.08em; line-height: 1.25;
}
.landing-title sup { font-size: 0.32em; color: var(--gold); font-weight: 400; letter-spacing: 0; }
.gold-text {
  background: linear-gradient(120deg, #b8934a 0%, #f0d494 45%, #b8934a 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.landing-en { font-family: var(--en); font-size: 14px; color: var(--ink-faint); letter-spacing: 0.28em; margin-top: 10px; }

.divider { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 26px auto; max-width: 340px; }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.divider i { color: var(--gold); font-style: normal; font-size: 12px; }

.landing-desc { color: var(--ink-soft); font-size: 16px; margin-bottom: 30px; }
.landing-desc strong { color: var(--gold-bright); font-weight: 500; }

.landing-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 28px 30px; text-align: left;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  margin-bottom: 34px;
}
.card-heading {
  font-family: var(--serif); font-size: 17px; color: var(--gold); font-weight: 700;
  letter-spacing: 0.12em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.card-heading::before { content: ""; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }
.rules { list-style: none; }
.rules li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 8px; }
.rules li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); font-size: 10px; top: 2px; }
.rules strong { color: var(--ink); font-weight: 500; }

.score-legend {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 20px; padding-top: 20px; border-top: 1px dashed rgba(216,180,106,0.2);
}
.legend-item {
  text-align: center; padding: 12px 6px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.legend-num {
  display: flex; justify-content: center; align-items: center;
  color: var(--gold-bright); height: 30px; margin-bottom: 4px;
}
.legend-num svg { width: 26px; height: 26px; }
.legend-label { font-size: 12.5px; color: var(--ink-faint); }

.btn-gold {
  font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: 0.14em;
  color: #201808; cursor: pointer; border: none; border-radius: 999px;
  padding: 17px 54px;
  background: linear-gradient(120deg, #c9a35a 0%, #f0d494 50%, #c9a35a 100%);
  background-size: 200% 100%;
  box-shadow: 0 10px 34px rgba(216, 180, 106, 0.35), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.5s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(216,180,106,0.5); background-position: 100% 0; }
.btn-gold:active { transform: translateY(0); }

.micro-note { margin-top: 18px; font-size: 13px; color: var(--ink-faint); }
.disclaimer-top { margin-top: 8px; font-size: 12px; color: var(--ink-faint); opacity: 0.75; letter-spacing: 0.06em; }

/* ══════════ 答题页 ══════════ */
#screen-quiz.active { align-items: stretch; }
.quiz-inner { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 96px); }

.quiz-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.quiz-brand { font-family: var(--serif); font-weight: 700; color: var(--gold); letter-spacing: 0.14em; font-size: 16px; white-space: nowrap; }
.quiz-brand sup { font-size: 0.55em; }
.progress-wrap { flex: 1; display: flex; align-items: center; gap: 14px; }
.progress-track { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, #b8934a, #f0d494);
  box-shadow: 0 0 12px rgba(240, 212, 148, 0.6);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-text { font-family: var(--en); font-size: 15px; color: var(--ink-faint); white-space: nowrap; }
.progress-text #progress-current { color: var(--gold-bright); font-size: 19px; font-weight: 600; }

.question-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.question-stage.slide-out { animation: qOut 0.22s ease both; }
.question-stage.slide-in { animation: qIn 0.34s ease both; }
@keyframes qOut { to { opacity: 0; transform: translateX(-26px); } }
@keyframes qIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

.q-number { font-family: var(--en); font-size: 15px; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 14px; }
.q-text {
  font-family: var(--serif); font-weight: 700; font-size: clamp(23px, 4vw, 32px);
  line-height: 1.55; margin-bottom: 12px; letter-spacing: 0.02em;
}
.q-hint { color: var(--ink-faint); font-size: 14px; margin-bottom: 32px; }

.options { display: grid; gap: 14px; }
.option {
  display: flex; align-items: center; gap: 18px; text-align: left; cursor: pointer;
  padding: 17px 22px; border-radius: 14px;
  background: var(--glass); border: 1px solid rgba(255,255,255,0.08);
  color: var(--ink); font-family: var(--sans); font-size: 16.5px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.option:hover { border-color: var(--gold-dim); background: rgba(216,180,106,0.07); transform: translateX(5px); }
.option .opt-score {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-bright); border: 1px solid var(--gold-dim);
  background: rgba(216,180,106,0.06);
  transition: all 0.2s;
}
.option .opt-score svg { display: block; }
.option .opt-label { flex: 1; }
.option .opt-freq { font-size: 12.5px; color: var(--ink-faint); }
.option.selected {
  border-color: var(--gold); background: rgba(216,180,106,0.13);
  box-shadow: 0 6px 26px rgba(216,180,106,0.22);
}
.option.selected .opt-score { background: var(--gold); color: #201808; border-color: var(--gold); }

.quiz-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; gap: 20px; }
.btn-ghost {
  background: none; border: 1px solid rgba(255,255,255,0.14); color: var(--ink-soft);
  border-radius: 999px; padding: 10px 24px; font-size: 14px; cursor: pointer;
  font-family: var(--sans); transition: all 0.2s;
}
.btn-ghost:hover:not(:disabled) { border-color: var(--gold-dim); color: var(--gold-bright); }
.btn-ghost:disabled { opacity: 0.25; cursor: not-allowed; }

.dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.14); transition: all 0.25s; }
.dot.done { background: var(--gold); }
.dot.now { background: var(--gold-bright); transform: scale(1.5); box-shadow: 0 0 8px rgba(240,212,148,0.8); }

/* ══════════ 分析动画 ══════════ */
.analyzing-inner { text-align: center; }
.scan-ring { position: relative; width: 150px; height: 150px; margin: 0 auto 34px; }
.scan-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 3; }
.ring-sweep {
  fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 90 237; filter: drop-shadow(0 0 6px rgba(216,180,106,0.8));
  animation: sweep 1.6s linear infinite;
}
@keyframes sweep { to { stroke-dashoffset: -327; } }
.scan-core {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--gold-bright); font-size: 30px;
  animation: corePulse 1.6s ease-in-out infinite;
}
@keyframes corePulse { 0%,100% { transform: scale(1); opacity: 0.75; } 50% { transform: scale(1.25); opacity: 1; } }
.analyzing-title { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 12px; }
.analyzing-step { color: var(--ink-faint); font-size: 14.5px; transition: opacity 0.3s; }

/* ══════════ 结果页 ══════════ */
#screen-result.active { align-items: flex-start; }
.result-inner { max-width: 860px; width: 100%; margin: 0 auto; }

.result-hero { text-align: center; margin-bottom: 46px; }
.result-eyebrow { font-size: 12.5px; letter-spacing: 0.32em; color: var(--gold); margin-bottom: 12px; }
.result-title { font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 5vw, 42px); letter-spacing: 0.06em; margin-bottom: 6px; }
.result-date { font-family: var(--en); color: var(--ink-faint); font-size: 14px; letter-spacing: 0.15em; }

/* 能量指数仪表 */
.gauge-card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 22px;
  padding: 40px 32px; text-align: center; margin-bottom: 26px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.gauge-wrap { position: relative; width: 230px; height: 230px; margin: 0 auto 8px; }
.gauge-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 10; }
.gauge-val {
  fill: none; stroke: url(#gaugeGrad); stroke-width: 10; stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(216,180,106,0.55));
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-score { font-family: var(--en); font-size: 62px; font-weight: 600; line-height: 1; color: var(--gold-bright); }
.gauge-unit { font-size: 13px; color: var(--ink-faint); letter-spacing: 0.2em; margin-top: 6px; }
.energy-level-name { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 10px 0 4px; letter-spacing: 0.1em; }
.energy-level-tag {
  display: inline-block; font-size: 13px; padding: 5px 18px; border-radius: 99px;
  border: 1px solid var(--gold-dim); color: var(--gold-bright); letter-spacing: 0.08em; margin-bottom: 18px;
}
.energy-summary { max-width: 620px; margin: 0 auto; color: var(--ink-soft); font-size: 15.5px; text-align: justify; text-align-last: center; }

/* 雷达图 + 排行 */
.panel {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 22px;
  padding: 34px 32px; margin-bottom: 26px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.panel-title {
  font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.14em; margin-bottom: 6px;
  display: flex; align-items: center; gap: 12px;
}
.panel-title::before { content: ""; width: 4px; height: 18px; background: var(--gold); border-radius: 2px; }
.panel-sub { color: var(--ink-faint); font-size: 13.5px; margin-bottom: 24px; }

.radar-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.radar-box svg { width: 100%; height: auto; }

.dim-bars { display: grid; gap: 16px; }
.dim-bar-row { display: grid; gap: 7px; }
.dim-bar-head { display: flex; justify-content: space-between; align-items: baseline; }
.dim-bar-name { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dim-chip { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dim-bar-score { font-family: var(--en); font-size: 15px; color: var(--ink-faint); }
.dim-bar-score b { color: var(--ink); font-size: 18px; font-weight: 600; }
.dim-bar-track { height: 9px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.dim-bar-fill { height: 100%; border-radius: 99px; width: 0; transition: width 1.4s cubic-bezier(0.22,1,0.36,1); }

/* 主卡点 */
.blocker-card {
  border: 1px solid rgba(240, 212, 148, 0.4);
  background: linear-gradient(135deg, rgba(216,180,106,0.12), rgba(216,180,106,0.03));
  position: relative; overflow: hidden;
}
.blocker-card::after {
  content: "✦"; position: absolute; right: -14px; top: -30px; font-size: 130px;
  color: rgba(216,180,106,0.07); pointer-events: none;
}
.blocker-label { font-size: 12.5px; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 10px; }
.blocker-name { font-family: var(--serif); font-size: 30px; font-weight: 900; letter-spacing: 0.1em; margin-bottom: 4px; }
.blocker-name small { font-family: var(--en); font-size: 15px; color: var(--ink-faint); font-weight: 500; letter-spacing: 0.1em; margin-left: 10px; }
.blocker-desc { color: var(--ink-soft); font-size: 15px; max-width: 640px; }

/* 维度详解卡 */
.dim-card { position: relative; }
.dim-card-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.dim-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; flex-shrink: 0;
}
.dim-title-group { flex: 1; min-width: 160px; }
.dim-card-name { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 0.08em; }
.dim-card-name small { font-family: var(--en); font-size: 13px; color: var(--ink-faint); font-weight: 500; margin-left: 8px; letter-spacing: 0.12em; }
.dim-card-keywords { font-size: 13px; color: var(--ink-faint); }
.dim-level-badge {
  font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 99px;
  border: 1px solid; letter-spacing: 0.06em; white-space: nowrap;
}
.dim-score-line { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; }
.dim-score-big { font-family: var(--en); font-size: 36px; font-weight: 600; line-height: 1; }
.dim-score-max { font-family: var(--en); color: var(--ink-faint); font-size: 16px; }
.dim-pct { margin-left: auto; font-family: var(--en); font-size: 15px; color: var(--ink-faint); }
.dim-card .dim-bar-track { margin-bottom: 20px; }

.dim-section { margin-bottom: 16px; }
.dim-section h4 {
  font-size: 14px; font-weight: 700; color: var(--gold-bright); letter-spacing: 0.14em;
  margin-bottom: 7px; display: flex; align-items: center; gap: 8px;
}
.dim-section h4::before { content: "◆"; font-size: 8px; color: var(--gold); }
.dim-section p { color: var(--ink-soft); font-size: 14.5px; text-align: justify; }
.dim-actions { list-style: none; display: grid; gap: 9px; }
.dim-actions li {
  position: relative; padding: 11px 16px 11px 40px; border-radius: 11px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.06);
  color: var(--ink-soft); font-size: 14px;
}
.dim-actions li::before {
  content: attr(data-i); position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-family: var(--en); font-weight: 600; color: var(--gold); font-size: 15px;
}

/* 整体建议 + 结语 */
.overall-list { list-style: none; display: grid; gap: 12px; }
.overall-list li {
  padding: 15px 18px 15px 48px; position: relative; border-radius: 13px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07);
  color: var(--ink-soft); font-size: 14.5px;
}
.overall-list li::before {
  content: "✦"; position: absolute; left: 18px; top: 16px; color: var(--gold); font-size: 13px;
}
.overall-list li strong { color: var(--ink); font-weight: 600; }

.closing-quote {
  text-align: center; padding: 44px 24px 26px;
}
.closing-quote p {
  font-family: var(--serif); font-size: clamp(18px, 3vw, 23px); font-weight: 600;
  letter-spacing: 0.1em; line-height: 2; color: var(--gold-bright);
}
.closing-quote .quote-sub { font-size: 14px; color: var(--ink-faint); font-family: var(--sans); font-weight: 400; letter-spacing: 0.14em; margin-top: 10px; }

.result-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 12px 0 30px; }
.btn-outline-gold {
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--gold-bright); cursor: pointer; border-radius: 999px;
  padding: 14px 40px; background: none; border: 1px solid var(--gold-dim);
  transition: all 0.25s;
}
.btn-outline-gold:hover { background: rgba(216,180,106,0.1); border-color: var(--gold); }

.result-disclaimer {
  text-align: center; font-size: 12.5px; color: var(--ink-faint); opacity: 0.8;
  padding-bottom: 30px; line-height: 2;
}

/* ── 响应式 ─────────────────────────── */
@media (max-width: 720px) {
  .screen { padding: 32px 16px; }
  .radar-flex { grid-template-columns: 1fr; }
  .score-legend { grid-template-columns: repeat(2, 1fr); }
  .dots { display: none; }
  .quiz-inner { min-height: calc(100vh - 64px); }
  .landing-card { padding: 22px 20px; }
  .panel { padding: 26px 20px; }
  .gauge-wrap { width: 190px; height: 190px; }
  .gauge-score { font-size: 50px; }
}

/* 打印样式（保存报告用） */
@media print {
  body { background: #fff; color: #111; }
  .bg-orbs, .result-actions, .btn-gold { display: none !important; }
  .screen { display: none; }
  #screen-result { display: block !important; padding: 0; }
  .panel, .gauge-card { background: #fff; border: 1px solid #ddd; box-shadow: none; break-inside: avoid; }
  .result-title, .q-text, .dim-card-name, .blocker-name, .energy-level-name { color: #222; }
  .panel-title, .result-eyebrow, .blocker-label { color: #8a6d2f; }
  .energy-summary, .dim-section p, .blocker-desc, .overall-list li, .dim-actions li { color: #333; }
  .gauge-score { color: #8a6d2f; }
  .closing-quote p { color: #8a6d2f; }
}
