/* =========================================================
   约爱社区 · 暗黑紫霓虹主题
   ========================================================= */
:root {
  --ink: #050611;
  --ink-2: #0a0a1a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --line: rgba(155, 97, 237, 0.28);
  --line-soft: rgba(255, 255, 255, 0.09);
  --accent: #9b61ed;
  --accent-2: #b98cff;
  --pink: #ff5ea8;
  --text: #f3f1fb;
  --muted: rgba(233, 229, 248, 0.62);
  --muted-2: rgba(233, 229, 248, 0.42);
  --grad: linear-gradient(135deg, #9b61ed 0%, #c25cf0 48%, #ff5ea8 100%);
  --glow: 0 0 0 1px rgba(185, 140, 255, 0.22), 0 18px 40px -18px rgba(155, 97, 237, 0.75);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --font: "MiSans", "HarmonyOS Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

html {
  color-scheme: dark;
  background: #000;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(0.9rem, 3.6vw, 1rem);
  line-height: 1.62;
  letter-spacing: 0.01em;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- 背景光效 ---------- */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 17, 0.62) 0%, rgba(5, 6, 17, 0.42) 42%, rgba(5, 6, 17, 0.82) 100%),
    radial-gradient(120% 70% at 50% -10%, rgba(26, 16, 53, 0.85) 0%, transparent 62%),
    url("../img/bg_mobile.jpg") center top / cover no-repeat,
    var(--ink);
}
@media (min-width: 720px) {
  .aurora {
    background:
      linear-gradient(180deg, rgba(5, 6, 17, 0.55) 0%, rgba(5, 6, 17, 0.34) 45%, rgba(5, 6, 17, 0.72) 100%),
      url("../img/bg_desktop.jpg") center center / cover no-repeat,
      var(--ink);
  }
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 18% 40%, rgba(155, 97, 237, 0.18) 0%, transparent 70%),
    radial-gradient(60% 50% at 88% 76%, rgba(255, 94, 168, 0.16) 0%, transparent 72%);
  mix-blend-mode: screen;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 16s ease-in-out infinite alternate;
}
.orb-1 { width: 62vw; height: 62vw; top: -12vw; left: -18vw; background: radial-gradient(circle, rgba(155, 97, 237, 0.55), transparent 68%); }
.orb-2 { width: 54vw; height: 54vw; top: 32vh; right: -20vw; background: radial-gradient(circle, rgba(255, 94, 168, 0.38), transparent 68%); animation-delay: -6s; }
.orb-3 { width: 46vw; height: 46vw; bottom: -14vw; left: 12vw; background: radial-gradient(circle, rgba(87, 210, 255, 0.22), transparent 68%); animation-delay: -11s; }
.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(185, 140, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 140, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 78%);
}
@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -4vh, 0) scale(1.08); }
}

/* ---------- 外壳 ---------- */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-inline: clamp(16px, 4.5vw, 28px);
  padding-block: clamp(14px, 3.5vw, 28px) clamp(12px, 3vw, 22px);
}

.phone {
  width: min(100%, 460px);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(16px, 4.5vw, 22px) clamp(16px, 4.5vw, 22px) clamp(18px, 5vw, 24px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(24, 17, 44, 0.86) 0%, rgba(9, 8, 22, 0.9) 100%);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(155, 97, 237, 0.14);
  border: 1px solid rgba(185, 140, 255, 0.3);
  box-shadow: 0 0 18px -6px rgba(155, 97, 237, 0.9);
}
.logo svg { width: 20px; height: 20px; }
.brand-name {
  font-size: clamp(0.98rem, 4vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(100deg, #fff 10%, #d9c4ff 60%, #ff9ecb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.badge-18 {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  color: #ffd0e6;
  border: 1px solid rgba(255, 94, 168, 0.42);
  background: rgba(255, 94, 168, 0.1);
}

/* ---------- 进度点 ---------- */
.progress {
  display: flex;
  gap: 7px;
  justify-content: center;
  padding-inline: 2px;
}
.progress[hidden] { display: none; }
.progress i {
  width: 100%;
  max-width: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.progress i.on {
  background: var(--grad);
  box-shadow: 0 0 14px -4px rgba(185, 140, 255, 0.95);
}

/* ---------- 人像卡片 ---------- */
.hero-photo {
  position: relative;
  flex: none;
  margin: 0 auto;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  max-height: clamp(200px, 44vh, 470px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}
.hero-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 76%;
  height: 62%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(163, 102, 248, 0.56), rgba(255, 94, 168, 0.22) 54%, rgba(255, 94, 168, 0) 78%);
  filter: blur(38px);
  pointer-events: none;
  z-index: 0;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: clamp(200px, 44vh, 470px);
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: none;
  mask-image: none;
  filter: none;
}
.hero-photo::after { display: none; }
.hero-photo figcaption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 999px;
  color: #f2ecff;
  background: rgba(6, 5, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-photo .dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ee08b;
  box-shadow: 0 0 9px rgba(62, 224, 139, 0.95);
}

/* ---------- 舞台 ---------- */
.stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  animation: rise 0.42s var(--ease) both;
}
.panel[data-anim="slide"] { animation: slideIn 0.34s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translate3d(16px, 0, 0); }
  to { opacity: 1; transform: none; }
}

/* ---------- 通用文案 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(185, 140, 255, 0.32);
  background: rgba(155, 97, 237, 0.1);
}
.h-title {
  font-size: clamp(1.34rem, 6vw, 1.72rem);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.h-title .hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  font-size: clamp(0.84rem, 3.4vw, 0.94rem);
  color: var(--muted);
}

/* ---------- 卡片 ---------- */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: clamp(14px, 4vw, 18px);
  min-width: 0;
}

/* ---------- 隐私提醒 ---------- */
.privacy-list { display: flex; flex-direction: column; gap: 12px; }
.privacy-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.privacy-item:last-child { border-bottom: none; padding-bottom: 0; }
.privacy-item .ic {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(155, 97, 237, 0.14);
  border: 1px solid rgba(185, 140, 255, 0.24);
}
.privacy-item .ic svg { width: 16px; height: 16px; stroke: #c9aaff; }
.privacy-item h3 {
  font-size: clamp(0.88rem, 3.6vw, 0.96rem);
  font-weight: 700;
  margin-bottom: 2px;
}
.privacy-item p {
  font-size: clamp(0.79rem, 3.2vw, 0.87rem);
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: clamp(13px, 3.8vw, 15px) 18px;
  border-radius: var(--radius-sm);
  font-size: clamp(0.92rem, 3.8vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.18s var(--ease), box-shadow 0.24s var(--ease), opacity 0.2s;
  will-change: transform;
}
.btn:active { transform: scale(0.975); }
.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 30px -14px rgba(155, 97, 237, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 62% { transform: translateX(-120%); }
  86%, 100% { transform: translateX(120%); }
}
.btn-ghost {
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
}
.btn-dark {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-weight: 600;
}

/* ---------- 选项（文字题） ---------- */
.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: clamp(13px, 3.6vw, 15px) 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  font-size: clamp(0.9rem, 3.7vw, 0.98rem);
  font-weight: 600;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.16s var(--ease);
}
.choice:active { transform: scale(0.985); }
.choice.is-on {
  border-color: rgba(185, 140, 255, 0.72);
  background: rgba(155, 97, 237, 0.16);
  box-shadow: 0 0 0 1px rgba(185, 140, 255, 0.26), 0 10px 26px -18px rgba(155, 97, 237, 1);
}
.choice .dot {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
}
.choice.is-on .dot { border-color: transparent; background: var(--grad); }
.choice.is-on .dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* ---------- 图片选择 ---------- */
.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pick {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 3 / 4;
  background: #121022;
  transition: border-color 0.2s var(--ease), transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
}
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick:active { transform: scale(0.98); }
.pick.is-on {
  border-color: #c9aaff;
  box-shadow: 0 0 0 2px rgba(155, 97, 237, 0.5), 0 16px 30px -18px rgba(185, 140, 255, 1);
}
.pick .tag {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: clamp(0.72rem, 3vw, 0.8rem);
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: rgba(8, 6, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pick.is-on .tag { background: rgba(155, 97, 237, 0.82); border-color: rgba(255, 255, 255, 0.32); }
.pick .check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 6, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.pick.is-on .check { opacity: 1; transform: none; background: var(--grad); border-color: transparent; }
.pick .check::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ---------- 加载 ---------- */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding-block: clamp(26px, 10vw, 52px);
}
.spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #c9aaff;
  border-right-color: #ff5ea8;
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 26px -8px rgba(185, 140, 255, 0.9);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-t1 {
  font-size: clamp(1rem, 4.2vw, 1.1rem);
  font-weight: 700;
}
.loading-t2 { font-size: clamp(0.8rem, 3.2vw, 0.88rem); color: var(--muted); }
.track {
  width: min(100%, 300px);
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 16px -2px rgba(185, 140, 255, 0.9);
}
.pct { font-size: 0.76rem; color: var(--muted-2); letter-spacing: 0.08em; }

/* ---------- 结果页 ---------- */
.result { text-align: left; }
.result-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(0.72rem, 3vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  color: #e7d8ff;
  background: rgba(155, 97, 237, 0.16);
  border: 1px solid rgba(185, 140, 255, 0.4);
}
.result-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48e0a0;
  box-shadow: 0 0 0 0 rgba(72, 224, 160, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(72, 224, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(72, 224, 160, 0); }
}
.result-hero h2 {
  font-size: clamp(1.3rem, 6vw, 1.62rem);
  font-weight: 800;
  line-height: 1.34;
}
.result-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: clamp(0.82rem, 3.4vw, 0.92rem);
  color: var(--muted);
}
.result-count b {
  font-size: clamp(1.5rem, 7.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 2px;
}
.rules li {
  position: relative;
  padding-left: 20px;
  font-size: clamp(0.79rem, 3.2vw, 0.86rem);
  color: var(--muted);
  line-height: 1.62;
  overflow-wrap: break-word;
}
.rules li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}
.cta-wrap { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.cta-note {
  text-align: center;
  font-size: clamp(0.71rem, 2.9vw, 0.78rem);
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ---------- 暂停提示 ---------- */
.pause {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-block: clamp(22px, 8vw, 40px);
}
.pause .ic-x {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 94, 168, 0.4);
  background: rgba(255, 94, 168, 0.1);
}
.pause .ic-x svg { width: 26px; height: 26px; stroke: #ff9ecb; }

/* ---------- 页脚 ---------- */
.legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding-inline: clamp(16px, 4vw, 24px);
  font-size: 0.68rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  text-align: center;
}
.legal i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.legal-18 {
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-size: 0.62rem;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 9vh;
  transform: translate(-50%, 18px);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #fff;
  background: rgba(20, 14, 36, 0.94);
  border: 1px solid rgba(185, 140, 255, 0.36);
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  z-index: 40;
  max-width: min(86vw, 360px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- PC 整屏适配（无手机壳，铺满整个屏幕） ---------- */
@media (min-width: 900px) {
  html { scrollbar-gutter: stable; }
  .shell {
    padding: 0;
    gap: 0;
    justify-content: flex-start;
  }
  .phone {
    width: 100%;
    max-width: none;
    min-height: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.6vh, 22px);
    padding: clamp(20px, 2.6vh, 34px) clamp(28px, 6vw, 120px) clamp(14px, 1.8vh, 24px);
    border: none;
    border-radius: 0;
    background:
      linear-gradient(100deg, rgba(5, 6, 17, 0.95) 0%, rgba(5, 6, 17, 0.9) 38%, rgba(5, 6, 17, 0.66) 72%, rgba(5, 6, 17, 0.5) 100%);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .phone > .topbar,
  .phone > .progress,
  .phone > .stage { width: 100%; max-width: 1040px; }
  .phone > .stage { flex: 0 1 auto; }

  /* 左人像 + 右内容 两栏 */
  .phone {
    display: grid;
    grid-template-columns: minmax(240px, 27vw) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 72px);
    align-content: stretch;
    align-items: start;
    max-width: 1360px;
    margin-inline: auto;
    justify-content: normal;
  }
  .phone > .topbar { grid-column: 1 / -1; grid-row: 1; }
  .phone > .progress { grid-column: 1 / -1; grid-row: 2; }
  .phone > .hero-photo {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
    max-height: none;
    min-height: 0;
    height: auto;
    border-radius: 22px;
    display: block;
  }
  .phone > .hero-photo img {
    width: 100%;
    height: auto;
    max-height: 74vh;
    object-fit: contain;
    object-position: center center;
    -webkit-mask-image: none;
    mask-image: none;
    filter: none;
  }
  .phone > .hero-photo figcaption { bottom: 14px; }
  .phone > .stage {
    grid-column: 2;
    grid-row: 3;
    min-height: 0;
    max-width: none;
    justify-content: center;
  }

  /* 顶栏 */
  .topbar { padding-inline: 2px; }
  .logo { width: 42px; height: 42px; border-radius: 13px; }
  .logo svg { width: 24px; height: 24px; }
  .brand-name { font-size: 1.2rem; letter-spacing: 0.08em; }
  .badge-18 { font-size: 0.78rem; padding: 4px 12px; }

  /* 进度 */
  .progress { justify-content: flex-start; gap: 9px; }
  .progress i { max-width: 108px; height: 5px; }

  /* 舞台与文字 */
  .stage { gap: 16px; }
  .panel { gap: 16px; }
  .eyebrow { font-size: 0.76rem; padding: 5px 12px; }
  .h-title { font-size: clamp(1.75rem, 2.2vw, 2.45rem); line-height: 1.26; }
  .sub { font-size: clamp(0.94rem, 1.05vw, 1.06rem); }
  .card { padding: 20px 24px; }

  /* 隐私四条排两列 */
  .privacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 34px; }
  .privacy-item { padding-bottom: 14px; }
  .privacy-item h3 { font-size: 1rem; }
  .privacy-item p { font-size: 0.9rem; line-height: 1.66; }

  /* 按钮 / 文字选项 */
  .btn { max-width: 460px; padding: 15px 24px; font-size: 1rem; }
  .choice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .choice { font-size: 0.98rem; padding: 17px 20px; }
  .cta-wrap { max-width: 460px; margin-inline: auto; width: 100%; }

  /* 图片选项：按屏高自动收，整屏不出滚动条 */
  .img-grid {
    width: 100%;
    max-width: min(920px, calc((100dvh - 370px) * 1.5 + 18px));
    margin-inline: auto;
    gap: 18px;
  }
  .pick { border-radius: 20px; }
  .pick .tag { font-size: 0.82rem; padding: 6px 10px; }

  /* 加载页 */
  .loading { padding-block: 0; }
  .spinner { width: 62px; height: 62px; }

  /* 结果页 */
  .result-hero h2 { font-size: clamp(1.65rem, 2.1vw, 2.15rem); }
  .rules li { font-size: 0.92rem; }
  .pause { padding-block: 0; }

  /* 页脚 / toast */
  .legal { width: 100%; max-width: 1040px; }
  .toast { bottom: 11vh; max-width: 440px; }

  /* 交互 */
  .btn:hover.btn-primary { box-shadow: 0 18px 40px -16px rgba(155, 97, 237, 1), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
  .choice:hover { border-color: rgba(185, 140, 255, 0.5); background: rgba(155, 97, 237, 0.1); }
  .pick { transition: border-color 0.2s var(--ease), transform 0.18s var(--ease), box-shadow 0.25s var(--ease); }
  .pick:hover { border-color: rgba(185, 140, 255, 0.55); }
  .pick:hover img { transform: scale(1.05); }
  .pick img { transition: transform 0.6s var(--ease); }
}

/* 超宽屏（≥1600）：内容居中、两侧留出背景 */
@media (min-width: 1600px) {
  .phone > .topbar,
  .phone > .progress,
  .phone > .stage,
  .legal { max-width: 1180px; }
  .img-grid { max-width: min(940px, calc((100dvh - 370px) * 1.5 + 18px)); }
}

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

/* ================= 图片题（v4 新增） ================= */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}
.choice-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #0b0918;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 26px -22px rgba(0, 0, 0, 1);
}
.choice-photo:active { transform: scale(0.985); }
.choice-photo .ph {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0b0918;
}
.choice-photo .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.5s var(--ease);
}
.choice-photo .lb {
  display: block;
  padding: 6px 4px 7px;
  text-align: center;
  font-size: clamp(0.72rem, 3.2vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e9e2ff;
  background: linear-gradient(180deg, rgba(12, 9, 26, 0.86), rgba(8, 6, 18, 0.98));
}
.choice-photo.is-on {
  border-color: rgba(196, 140, 255, 0.9);
  background: rgba(155, 97, 237, 0.16);
  box-shadow: 0 0 0 1px rgba(196, 140, 255, 0.55), 0 16px 32px -18px rgba(180, 97, 255, 0.95);
}
.choice-photo.is-on .ph img { transform: scale(1.05); }
.choice-photo .tick {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(6, 5, 18, 0.55);
  display: grid;
  place-items: center;
  transition: 0.2s var(--ease);
}
.choice-photo.is-on .tick {
  border-color: transparent;
  background: linear-gradient(135deg, #b98cff, #ff5ea8);
  box-shadow: 0 0 0 3px rgba(155, 97, 237, 0.22);
}
.choice-photo.is-on .tick::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* 图片题时收起人像，给题目腾空间 */
body.is-photo-q .hero-photo { display: none; }

@media (min-width: 900px) {
  .choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 860px; }
  .choice-photo .lb { font-size: 0.85rem; padding: 9px 4px 10px; }
}

/* ---------- 图片题：手机垂直居中，少留白 ---------- */
body.is-photo-q .phone > .stage { justify-content: center; }
body.is-photo-q .choice-grid { margin-bottom: 2px; }
body.is-photo-q .choice-photo .ph { aspect-ratio: 1 / 1; }

@media (min-width: 900px) {
  /* PC 图片题：内容横跨全宽，四张大图铺开 */
  body.is-photo-q .phone > .stage { grid-column: 1 / -1; max-width: none; }
  body.is-photo-q .phone > .stage .panel { max-width: min(1360px, 100%); margin-inline: auto; width: 100%; }
  body.is-photo-q .phone > .stage .panel .h-title,
  body.is-photo-q .phone > .stage .panel .sub,
  body.is-photo-q .phone > .stage .panel .eyebrow { text-align: center; align-self: center; margin-inline: auto; }
  body.is-photo-q .choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: min(1320px, calc((100dvh - 330px) * 4 + 52px));
    margin-inline: auto;
    width: 100%;
  }
  body.is-photo-q .choice-photo .ph { aspect-ratio: 1 / 1; }
  body.is-photo-q .choice-photo .lb { font-size: 0.95rem; padding: 10px 4px 11px; }
  body.is-photo-q .cta-wrap { max-width: 520px; margin-inline: auto; align-self: center; width: 100%; }
  body.is-photo-q .phone > .stage > .btn,
  body.is-photo-q .phone > .stage .panel > .btn { max-width: 460px; width: 100%; margin-inline: auto; align-self: center; }
  body.is-photo-q .phone > .stage { align-self: center; }
  body.is-photo-q .h-title { font-size: clamp(1.8rem, 2.4vw, 2.6rem); }
}

/* 小屏老机型（宽<900 且 高<720）：收紧图片题，保证一屏 */
@media (max-width: 899px) and (max-height: 720px) {
  body.is-photo-q .choice-grid { gap: 6px; }
  body.is-photo-q .choice-photo { border-radius: 11px; }
  body.is-photo-q .choice-photo .lb { font-size: 0.7rem; padding: 4px 2px 5px; }
  body.is-photo-q .choice-photo .ph { aspect-ratio: 1 / 0.84; }
  body.is-photo-q .phone > .stage { gap: 7px; }
  body.is-photo-q .cta-wrap { margin-top: 2px; }
  body.is-photo-q .legal { padding-block: 2px; }
  body.is-photo-q .h-title { font-size: 1.08rem; line-height: 1.28; }
  body.is-photo-q .sub { font-size: 0.76rem; margin-top: 4px; }
  body.is-photo-q .eyebrow { font-size: 0.62rem; }
  body.is-photo-q .cta-wrap .btn, body.is-photo-q .btn { padding: 12px 18px; font-size: 0.92rem; }
}

/* ============ v8：手机首屏收口（按钮进屏） ============ */
@media (max-width: 899px) {
  .hero-photo,
  .hero-photo img { max-height: clamp(132px, 24vh, 214px); }
  .hero-photo { max-height: clamp(132px, 24vh, 214px); }
  .phone { gap: 12px; }
  .panel { gap: 12px; }
  .privacy-list { gap: 10px; }
  .card { padding: clamp(12px, 3.6vw, 16px); }

  /* 隐私说明：默认只露前两条，其余收起 */
  .privacy-item.is-extra { display: none; }
  .panel.is-open .privacy-item.is-extra { display: grid; }
}

/* 展开/收起按钮（PC 端不需要） */
.privacy-more {
  display: none;
  width: 100%;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px dashed rgba(185, 140, 255, 0.38);
  border-radius: 11px;
  background: rgba(155, 97, 237, 0.08);
  color: #cdb4ff;
  font-size: 0.8rem;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
@media (max-width: 899px) {
  .privacy-more { display: inline-flex; }
}
@media (min-width: 900px) {
  .privacy-item.is-extra { display: grid; }
}
.privacy-more .ar {
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s var(--ease);
}
.panel.is-open .privacy-more .ar { transform: rotate(-135deg) translateY(-1px); }

/* ============ v8：图片兜底（webp 动图 / 加载失败占位） ============ */
.choice-photo .ph picture {
  display: block;
  width: 100%;
  height: 100%;
}
.choice-photo .ph.ph-fail {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(155, 97, 237, 0.28), rgba(9, 7, 22, 0.95) 72%);
}
.choice-photo .ph.ph-fail img { display: none; }
.choice-photo .ph.ph-fail::after {
  content: "图片加载中";
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(226, 215, 255, 0.66);
}

/* ============ v8：矮屏老机型（<720 高）首屏再收紧 ============ */
@media (max-width: 899px) and (max-height: 720px) {
  .hero-photo,
  .hero-photo img { max-height: 18vh; }
  /* 矮屏隐私页把顶部小标签收掉，给人物和按钮腾地方 */
  body.is-privacy .eyebrow { display: none; }
  .shell { padding-block: 6px; gap: 6px; }
  .phone { gap: 7px; padding: 10px 12px 11px; border-radius: 18px; }
  .panel { gap: 7px; }
  .privacy-list { gap: 8px; }
  .privacy-item { padding-bottom: 7px; gap: 8px; grid-template-columns: 26px 1fr; }
  .privacy-item .ic { width: 24px; height: 24px; border-radius: 8px; }
  .privacy-item .ic svg { width: 14px; height: 14px; }
  .privacy-item h3 { font-size: 0.82rem; }
  .privacy-item p { font-size: 0.71rem; line-height: 1.42; }
  .privacy-more { margin-top: 8px; padding: 7px 10px; font-size: 0.72rem; border-radius: 9px; }
  .card { padding: 10px; }
  .h-title { font-size: 1.08rem; line-height: 1.26; }
  .sub { font-size: 0.74rem; }
  .btn { padding: 10px 14px; font-size: 0.88rem; }
  .cta-note { font-size: 0.66rem; }
  .legal { padding-block: 0; font-size: 0.6rem; gap: 4px; }
  .legal i { width: 2px; height: 2px; }
  .legal-18 { padding: 0 4px; }
}
