:root {
  --bg: #0e0a1a;
  --bg2: #171126;
  --card: #1c1630;
  --gold: #e8c37a;
  --gold-dim: #b8924f;
  --text: #ede7f7;
  --muted: #9c90b8;
  --line: rgba(232, 195, 122, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景光晕 */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(88, 60, 150, 0.35), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(232, 195, 122, 0.14), transparent 60%),
    var(--bg);
}

#app { position: relative; z-index: 1; }

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.fadeUp { animation: fadeUp 0.55s ease both; }

/* 落地页 */
.landing {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand {
  color: var(--gold);
  letter-spacing: 0.28em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.landing h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 9vw, 60px);
  line-height: 1.08;
  margin: 0 0 22px;
  color: var(--text);
}
.landing h1 em { color: var(--gold); font-style: italic; }

.tagline {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 40px;
}

/* 按钮 */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #f0d291, #d4a853);
  color: #1a1207;
  box-shadow: 0 8px 30px rgba(232, 195, 122, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 40px rgba(232, 195, 122, 0.5); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); }

.fine {
  color: var(--muted);
  font-size: 12px;
  margin-top: 28px;
  opacity: 0.7;
}

/* 答题 */
.quiz {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 34px;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width 0.35s ease;
}

.q-count {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.quiz h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.3;
  margin: 0 0 32px;
}

.options { display: flex; flex-direction: column; gap: 14px; }

.option {
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.12s ease, background 0.18s ease;
  animation: fadeUp 0.4s ease both;
}
.option:hover {
  border-color: var(--gold);
  background: #221a3a;
  transform: translateX(4px);
}
.option:active { transform: scale(0.99); }

/* 结果 */
#result-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.reveal {
  font-size: 72px;
  line-height: 1;
  animation: floaty 3.5s ease-in-out infinite;
  margin-bottom: 10px;
}
.reveal.small { font-size: 54px; }

.proto-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 7vw, 38px);
  color: var(--gold);
  margin: 6px 0 18px;
}

.essence {
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.hook {
  color: var(--muted);
  font-style: italic;
  font-size: 15px;
  margin-bottom: 30px;
}

/* 付费墙（MVP：点解锁即展示，Phase 2 接 Stripe） */
.locked {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  margin: 8px 0 20px;
  background: rgba(232, 195, 122, 0.04);
}
.lock-icon { font-size: 30px; margin-bottom: 10px; }
.locked-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
}
.locked-sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.btn-unlock { width: 100%; }

/* 完整解读段落 */
.section {
  text-align: left;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }
.section h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--gold);
  font-size: 18px;
  margin: 0 0 10px;
}
.section p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  white-space: pre-line;
}

/* 分享卡 */
.share {
  margin-top: 26px;
  padding: 24px 20px;
  border: 1px dashed var(--gold-dim);
  border-radius: 18px;
}
.share-title { color: var(--muted); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.share-text { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 18px; color: var(--text); line-height: 1.5; margin: 0 0 20px; }
.share-actions { display: flex; gap: 12px; justify-content: center; }
.share-actions .btn { flex: 1; max-width: 180px; }

/* 分享卡图片预览 */
.card-preview {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--bg2);
}

.result-card > .btn-ghost { margin-top: 24px; }

@media (max-width: 480px) {
  .result-card { padding: 30px 18px; }
  .option { padding: 16px; font-size: 15px; }
}

/* 返回按钮 */
.back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 18px;
  letter-spacing: 0.02em;
}
.back:hover { color: var(--gold); }

/* 键盘可达性 */
.option:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
