:root {
  --bg: #160a2e;
  --bg-soft: #1f1140;
  --panel: #261650;
  --text: #ffffff;
  --muted: #c4b0e6;
  --accent: #ff4f9e;
  --accent2: #ffd23f;
  --accent3: #7a4ee0;
  --radius: 16px;
  --shadow-soft: 0 20px 60px rgba(0,0,0,.45);
  --shadow-glow: 0 0 40px rgba(255,79,158,.28);
  --font: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   全局视觉层：极光 / 颗粒 / 暗角 / 光标辉光
   ========================================================= */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* 缓慢漂移的彩色极光光斑，screen 混合提亮画面 */
.fx-aurora { mix-blend-mode: screen; opacity: .85; }
.fx-aurora::before, .fx-aurora::after {
  content: ""; position: absolute; width: 72vw; height: 72vw; border-radius: 50%;
  filter: blur(90px); will-change: transform;
}
.fx-aurora::before {
  top: -22vw; left: -14vw;
  background: radial-gradient(circle at 40% 40%, rgba(255,79,158,.98), rgba(255,79,158,0) 66%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.fx-aurora::after {
  bottom: -26vw; right: -16vw;
  background: radial-gradient(circle at 60% 60%, rgba(122,78,224,1), rgba(122,78,224,0) 64%);
  animation: drift2 32s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(14vw,10vw,0) scale(1.25); }
}
@keyframes drift2 {
  from { transform: translate3d(0,0,0) scale(1.1); }
  to   { transform: translate3d(-12vw,-8vw,0) scale(.85); }
}

/* 细颗粒胶片噪点 */
.fx-grain {
  z-index: 51; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* 暗角 + 影院边框 */
.fx-vignette {
  z-index: 52;
  background:
    radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,0) 58%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0, rgba(0,0,0,0) 9%, rgba(0,0,0,0) 92%, rgba(0,0,0,.35) 100%);
}

/* 跟随鼠标的辉光 */
.fx-cursor {
  z-index: 53; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(220px 220px at var(--mx,50%) var(--my,50%),
    rgba(255,210,63,.12), rgba(255,79,158,.06) 40%, rgba(0,0,0,0) 70%);
  mix-blend-mode: screen;
}
body.cursor-on .fx-cursor { opacity: 1; }

/* 全局品牌字标（下移避开结果页顶部滚动字幕） */
.brand-mark {
  position: fixed; top: 50px; left: 22px; z-index: 60; pointer-events: none;
  font-size: 12px; letter-spacing: 5px; font-weight: 800; color: var(--muted);
  text-shadow: 0 0 12px rgba(0,0,0,.8); opacity: .8;
}
.brand-mark b { color: var(--accent2); }

/* ---------- 屏幕切换 ---------- */
/* 失活屏加 visibility:hidden，彻底从命中测试移除（含 pointer-events:auto 的子按钮），
   避免叠在下层屏之上的隐形按钮拦截点击（如结果屏的「重新测」穿透到答题屏触发重来） */
.screen { position: fixed; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s ease, visibility .4s; z-index: 10; }
.screen.active { opacity: 1; visibility: visible; pointer-events: auto; }
#quiz, #result { background: radial-gradient(1200px 640px at 72% -12%, var(--accent3), var(--bg) 70%); overflow-y: auto; }

/* =========================================================
   海报墙首屏
   ========================================================= */
#wall { overflow: hidden; background: linear-gradient(180deg, #0a0518 0%, #160a2e 50%, #0a0518 100%); z-index: 10; }
.wall-rows {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 48px 0;
}
.wall-row { display: flex; gap: 18px; width: max-content; will-change: transform; }
.wall-row.r1 { animation: scrollL 1500s linear infinite; }
.wall-row.r2 { animation: scrollR 2000s linear infinite; }
.wall-row.r3 { animation: scrollL 1200s linear infinite; }
.wall-row.r4 { animation: scrollR 1750s linear infinite; }
.wall-row:hover, #wall:hover .wall-row { animation-play-state: paused; }
@keyframes scrollL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.poster {
  width: 150px; height: 225px; flex: 0 0 auto; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, var(--accent3), var(--panel));
  box-shadow: 0 8px 24px rgba(0,0,0,.45); position: relative; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.poster:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(255,79,158,.45), 0 0 0 1px rgba(255,79,158,.3); z-index: 2; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px; background: linear-gradient(160deg, var(--c1, #261650), var(--c2, #160a2e));
}
.poster .ph .t { font-size: 13px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.poster .ph .y { font-size: 11px; color: var(--muted); margin-top: 3px; }

.wall-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    radial-gradient(640px 380px at 50% 50%, rgba(0,0,0,.55), rgba(0,0,0,0) 72%),
    linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.85) 100%),
    radial-gradient(900px 500px at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%);
}
.hero {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; pointer-events: none;
}
.hero-cta-zone {
  position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 10px;
}
.hero-logo {
  display: block; width: 300px; height: auto; opacity: .95;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, #000 74%, rgba(0,0,0,0) 100%);
  filter: drop-shadow(0 0 18px rgba(0,0,0,.9)) drop-shadow(0 0 40px rgba(0,0,0,.5)) drop-shadow(0 0 20px rgba(255,79,158,.2));
  pointer-events: none; user-select: none; position: relative; z-index: 1; margin-bottom: -46px;
}
.hero-title-wrap { position: relative; display: inline-block; }
.hero h1 {
  font-size: clamp(34px, 7vw, 70px); letter-spacing: 4px; font-weight: 800;
  background: linear-gradient(100deg, #fff 0%, var(--accent2) 35%, var(--accent) 65%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: titleShimmer 7s ease-in-out infinite;
  text-shadow: 0 0 60px rgba(255,79,158,.25);
}
@keyframes titleShimmer {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.tagline {
  color: #f0f2f8; margin: 16px 0 28px; font-size: 17px; opacity: .95; letter-spacing: .5px;
  text-shadow: 0 0 12px rgba(0,0,0,.95), 0 0 26px rgba(0,0,0,.8), 0 2px 8px rgba(0,0,0,.9);
}
.hero-step {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 12px; letter-spacing: 4px; color: var(--accent2); opacity: .85;
  padding: 6px 14px; border: 1px solid rgba(255,210,63,.3); border-radius: 999px;
  background: rgba(255,210,63,.06); text-shadow: 0 0 10px rgba(0,0,0,.8);
}
.hero-step .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 10px var(--accent2); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.cta {
  pointer-events: auto; border: none; cursor: pointer; font-size: 18px; font-weight: 800;
  color: #1a0a2e; background: linear-gradient(135deg, var(--accent2), var(--accent));
  padding: 14px 42px; border-radius: 999px; letter-spacing: 1px; position: relative; z-index: 3;
  box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 0 30px 6px rgba(255,79,158,.35), 0 8px 28px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(0,0,0,.4), 0 0 36px 10px rgba(255,79,158,.5), 0 14px 38px rgba(0,0,0,.5); }
.cta:active { transform: translateY(0) scale(.98); }
.hint { margin-top: 22px; color: var(--muted); font-size: 13px; text-shadow: 0 0 10px rgba(0,0,0,.95), 0 1px 4px rgba(0,0,0,.9); }

/* =========================================================
   答题屏
   ========================================================= */
.quiz-wrap { max-width: 720px; margin: 0 auto; padding: 36px 20px 60px; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
.quiz-top {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(22,10,46,.96) 60%, rgba(22,10,46,0));
  padding: 12px 4px 12px; backdrop-filter: blur(6px); border-radius: 12px;
}
.progress { flex: 1; height: 7px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; position: relative; }
#progressBar {
  height: 100%; width: 20%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  position: relative; transition: width .6s cubic-bezier(.4,0,.2,1);
}
#progressBar::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  background-size: 50% 100%; animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.q-count { color: var(--muted); font-size: 14px; min-width: 40px; text-align: right; letter-spacing: 1px; }
.ghost {
  pointer-events: auto; background: transparent; border: 1px solid rgba(196,176,230,.3); color: var(--text);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; transition: background .2s, border-color .2s, transform .2s;
}
.ghost:hover { background: rgba(122,78,224,.25); border-color: rgba(196,176,230,.55); transform: translateX(-2px); }

.quiz-card {
  position: relative; background: linear-gradient(180deg, rgba(38,22,80,.92), rgba(31,17,64,.92));
  border: 1px solid rgba(196,176,230,.18); border-radius: var(--radius);
  padding: 32px 28px 30px; box-shadow: var(--shadow-soft); min-height: 300px;
  backdrop-filter: blur(10px);
}
.quiz-card::before {
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: .9;
}
.q-index {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: 2px; color: var(--muted);
  margin-bottom: 12px;
}
.q-index b { color: var(--accent2); font-size: 13px; }
.q-cat { color: var(--accent2); font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }
#qText { font-size: 24px; line-height: 1.45; margin-bottom: 24px; font-weight: 700; }
.options { display: flex; flex-direction: column; gap: 12px; }
.opt {
  pointer-events: auto; text-align: left; background: rgba(255,255,255,.04); border: 1px solid rgba(196,176,230,.2); color: var(--text);
  padding: 15px 18px 15px 44px; border-radius: 12px; cursor: pointer; font-size: 16px; position: relative;
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1), background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.opt::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(196,176,230,.5); transition: all .18s ease;
}
.opt.in { opacity: 1; transform: none; }
.opt:hover { border-color: var(--accent); background: rgba(255,79,158,.12); transform: translateX(6px); box-shadow: 0 4px 20px rgba(255,79,158,.18); transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.opt:hover::before { border-color: var(--accent); box-shadow: 0 0 12px rgba(255,79,158,.6); }
.opt:active { transform: translateX(6px) scale(.99); }

/* ---------- 回复流 + 溶解/淡入动画 ---------- */
#quiz { overflow-y: auto; }
.reply-stream {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-height: 34vh; overflow-y: auto; scroll-behavior: smooth;
  margin: 4px 0 18px; padding: 6px 4px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 6px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 6px), transparent 100%);
}
.reply-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: #f3e9ff; line-height: 1.55;
  padding: 11px 15px; border-radius: 16px 16px 16px 5px;
  background: linear-gradient(135deg, rgba(122,78,224,.22), rgba(255,79,158,.12));
  border: 1px solid rgba(196,176,230,.16);
  border-left: 3px solid var(--accent);
  align-self: flex-start; max-width: 92%;
  opacity: 0; transform: translateY(14px) scale(.98); filter: blur(4px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .9s ease;
}
.reply-item .rd {
  flex: 0 0 auto; margin-top: 2px; font-size: 12px; color: var(--accent2);
  width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,210,63,.12); border: 1px solid rgba(255,210,63,.4);
}
.reply-item.in { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.quiz-card { transition: opacity .85s ease, transform .85s ease, filter .85s ease; }
.quiz-card.dissolve { opacity: 0; transform: translateY(-38px) scale(.96); filter: blur(9px); pointer-events: none; }
.quiz-card.enter { animation: cardIn 1.05s cubic-bezier(.16,.84,.3,1) both; }
/* 新问题从屏幕底部、由外向内上浮（带模糊→清晰），与回复气泡上浮的视觉要素统一 */
@keyframes cardIn { from { opacity: 0; transform: translateY(74vh) scale(.94); filter: blur(13px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }

/* ---------- 回复「幽灵」浮现层（四阶段过渡） ---------- */
/* 独立固定层覆盖视口中央，pointer-events:none，仅 quiz 屏激活时可见（受 #quiz stacking 约束） */
.ghost-layer {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 40; padding: 0 24px;
}
.reply-ghost {
  max-width: 560px; text-align: center;
  font-size: 21px; line-height: 1.55; font-weight: 600; color: #f6ecff;
  padding: 18px 28px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(122,78,224,.30), rgba(255,79,158,.18));
  border: 1px solid rgba(255,79,158,.45);
  box-shadow: 0 12px 44px rgba(255,79,158,.30);
  opacity: 0; filter: blur(16px); transform: translateY(12px) scale(.94);
}
/* 阶段②：由模糊逐渐清晰形成（在问题消散的模糊中浮现） */
.reply-ghost.form { animation: ghostForm .95s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes ghostForm { to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
/* 阶段③：回复上浮、淡出，同时顶部回复流中真正落位 */
.reply-ghost.lift { animation: ghostLift .8s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes ghostLift { to { opacity: 0; transform: translateY(-80px) scale(.97); filter: blur(8px); } }

/* ---------- 二维码关注卡（解读完成后显示） ---------- */
.qr-cta {
  margin-top: 22px; padding: 22px 22px 20px;
  background: linear-gradient(165deg, rgba(122,78,224,.10), rgba(255,79,158,.06)), #140a26;
  border: 1px solid rgba(196,176,230,.18); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.40), 0 0 0 1px rgba(255,255,255,.02) inset;
  opacity: 0; transform: translateY(14px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1);
}
.qr-cta.show { opacity: 1; transform: translateY(0); }
.qr-text {
  color: #ece4ff; font-size: 15px; line-height: 1.7; letter-spacing: .5px; text-align: center;
}
.qr-hl { color: var(--accent); font-weight: 700; }
.qr-img-wrap {
  position: relative; padding: 6px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255,79,158,.25), 0 12px 36px rgba(255,79,158,.20), 0 0 60px rgba(255,79,158,.15);
}
.qr-img-wrap::after {
  content: ""; position: absolute; inset: -8px; border-radius: 18px; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, rgba(255,79,158,.18), rgba(255,79,158,0) 70%);
  filter: blur(8px);
}
.qr-img { display: block; width: 168px; height: 168px; object-fit: contain; border-radius: 6px; }
@media (max-width: 620px) {
  .qr-img { width: 150px; height: 150px; }
}

/* ---------- 总结过渡屏 ---------- */
.summary { text-align: center; padding: 8px 2px 4px; }
.summary-kicker { color: var(--accent2); letter-spacing: 3px; font-size: 13px; margin-bottom: 16px; }
.summary-replies { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 26px; }
.summary-replies .sr {
  font-size: 14px; color: #f3e9ff; padding: 8px 14px; border-radius: 999px;
  background: rgba(122,78,224,.16); border: 1px solid rgba(196,176,230,.18);
  opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.summary-replies .sr.in { opacity: 1; transform: translateY(0) scale(1); }
.summary-line {
  font-size: 22px; line-height: 1.8; margin: 8px 0 26px; font-weight: 700;
  background: linear-gradient(135deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reveal-btn {
  position: relative; font-size: 18px; font-weight: 800; border: none; cursor: pointer;
  color: #1a0a2e; background: linear-gradient(135deg, var(--accent2), var(--accent));
  padding: 15px 46px; border-radius: 999px; letter-spacing: 1px;
  box-shadow: 0 0 0 4px rgba(0,0,0,.3), 0 0 30px 6px rgba(255,79,158,.4);
  animation: revealPulse 2.4s ease-in-out infinite;
  transition: transform .2s ease;
}
.reveal-btn:hover { transform: translateY(-2px) scale(1.02); }
.reveal-btn:active { transform: scale(.98); }
@keyframes revealPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(0,0,0,.3), 0 0 24px 4px rgba(255,79,158,.32); }
  50% { box-shadow: 0 0 0 4px rgba(0,0,0,.3), 0 0 40px 12px rgba(255,79,158,.55); }
}

/* =========================================================
   结果屏
   ========================================================= */
.marquee {
  position: relative; width: 100%; overflow: hidden; height: 34px; flex: 0 0 100%;
  display: flex; align-items: center; border-bottom: 1px solid rgba(196,176,230,.14);
  background: linear-gradient(90deg, rgba(255,79,158,.08), rgba(122,78,224,.08));
  margin-bottom: 22px;
}
.marquee-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee 22s linear infinite; }
.marquee-track span { font-size: 13px; letter-spacing: 3px; color: var(--muted); padding: 0 26px; }
.marquee-track span b { color: var(--accent2); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.result-wrap { max-width: 900px; margin: 0 auto; padding: 40px 22px 70px; display: flex; gap: 38px; flex-wrap: wrap; justify-content: center; }
.result-poster {
  position: relative; width: 264px; height: 396px; flex: 0 0 auto; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,79,158,.15); background: #1c1f2b;
  animation: posterFloat 6s ease-in-out infinite;
}
@keyframes posterFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.result-poster::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 62%);
  background-size: 250% 100%; animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen { 0% { background-position: 140% 0; } 60%,100% { background-position: -40% 0; } }
.result-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-fallback { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: flex-end; padding: 18px; background: linear-gradient(160deg, var(--accent3), var(--bg)); }
.poster-fallback.show { display: flex; }
.poster-fallback .t { font-size: 22px; font-weight: 800; color: var(--text); }
.poster-fallback .y { color: var(--muted); margin-top: 4px; }
.result-info { flex: 1; min-width: 300px; max-width: 470px; }
.r-kicker { color: var(--accent2); letter-spacing: 3px; font-size: 13px; }
#rTitle { font-size: 34px; margin: 8px 0 10px; font-weight: 800; background: linear-gradient(135deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.r-meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; letter-spacing: .5px; }
.r-ratings { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.r-ratings .rt { font-size: 13px; padding: 5px 13px; border-radius: 999px; font-weight: 700; letter-spacing: .3px; }
.rt-tmdb { background: rgba(1,180,225,.14); border: 1px solid rgba(1,180,225,.45); color: #5fd2f6; }
.rt-douban { background: rgba(0,168,104,.14); border: 1px solid rgba(0,168,104,.45); color: #43d6a0; }
.rt-imdb { background: rgba(245,197,24,.14); border: 1px solid rgba(245,197,24,.45); color: #ffd23f; }
.rt-imdb a { color: #ffd23f; text-decoration: none; }
.rt-imdb a:hover { text-decoration: underline; }
.r-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.r-tags span { background: rgba(255,79,158,.1); border: 1px solid rgba(255,79,158,.35); color: #ffc6e0; font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.r-overview { color: #d7dae6; line-height: 1.85; font-size: 15.5px; margin-bottom: 20px; }
.r-reason { background: rgba(255,210,63,.08); border-left: 3px solid var(--accent2); padding: 14px 16px; border-radius: 0 10px 10px 0; margin-bottom: 24px; }
.r-reason-label { font-size: 12px; color: var(--accent2); letter-spacing: 1px; }
.r-reason p { margin-top: 6px; line-height: 1.85; color: #e7e9f0; }
.r-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
/* 引导用户点击「不良有话说」：作为结果页唯一主按钮 + 呼吸光环 */
.r-actions .ai-cta { animation: revealPulse 2.6s ease-in-out infinite; }
.ai-prompt {
  margin-top: 22px; position: relative;
  background: linear-gradient(165deg, rgba(122,78,224,.12), rgba(255,79,158,.05)), #140a26;
  border: 1px solid rgba(196,176,230,.18); border-radius: 16px; padding: 22px 26px 24px;
  color: #ece4ff; font-size: 15.5px; line-height: 1.85; white-space: pre-wrap;
  max-height: 340px; overflow: auto;
  box-shadow: 0 18px 50px rgba(0,0,0,.40), 0 0 0 1px rgba(255,255,255,.02) inset;
  scrollbar-width: thin; scrollbar-color: rgba(196,176,230,.28) transparent;
  opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease;
}
.ai-prompt.show { opacity: 1; transform: translateY(0); }
.ai-prompt::-webkit-scrollbar { width: 8px; }
.ai-prompt::-webkit-scrollbar-track { background: transparent; }
.ai-prompt::-webkit-scrollbar-thumb { background: rgba(196,176,230,.28); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.ai-prompt::-webkit-scrollbar-thumb:hover { background: rgba(196,176,230,.45); background-clip: padding-box; }
.ai-prompt::before {
  content: "✦ 不良有话说"; display: block; font-size: 12px; letter-spacing: 4px; font-weight: 700;
  color: var(--accent2); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(196,176,230,.14);
}
.ai-prompt.loading { color: #b9a8e6; font-style: italic; }
.ai-prompt.typing::after {
  content: "▌"; display: inline; margin-left: 1px; color: var(--accent);
  font-style: normal; animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 结果屏错落入场（节奏放缓） */
.result-wrap.anim .result-poster { animation: posterFloat 6s ease-in-out infinite, fadeUp .9s ease both; }
.result-wrap.anim .result-info > * { opacity: 0; transform: translateY(18px); animation: fadeUp .8s ease forwards; }
.result-wrap.anim .result-info > *:nth-child(1) { animation-delay: .08s; }
.result-wrap.anim .result-info > *:nth-child(2) { animation-delay: .18s; }
.result-wrap.anim .result-info > *:nth-child(3) { animation-delay: .28s; }
.result-wrap.anim .result-info > *:nth-child(4) { animation-delay: .38s; }
.result-wrap.anim .result-info > *:nth-child(5) { animation-delay: .48s; }
.result-wrap.anim .result-info > *:nth-child(6) { animation-delay: .58s; }
.result-wrap.anim .result-info > *:nth-child(7) { animation-delay: .68s; }
.result-wrap.anim .result-info > *:nth-child(8) { animation-delay: .78s; }
.result-wrap.anim .result-info > *:nth-child(9) { animation-delay: .88s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 620px) {
  .result-wrap { padding-top: 26px; }
  .result-poster { width: 200px; height: 300px; }
  #qText { font-size: 21px; }
  .quiz-card { min-height: 264px; padding: 26px 20px 24px; }
  .hero-cta-zone { margin-top: 6px; }
  .hero-logo { width: 200px; height: auto; opacity: 0.9; margin-bottom: -38px; }
  .brand-mark { font-size: 10px; letter-spacing: 3px; }
  .summary-line { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-aurora::before, .fx-aurora::after, .hero h1, .marquee-track, .result-poster, .result-poster::after,
  #progressBar::after, .reveal-btn, .hero-step .dot { animation: none !important; }
}
