/* ============================================================
   去留测评 · Leave or Stay
   iOS 26 液态玻璃 (Liquid Glass) 设计语言
   严格竖屏移动优先，禁止横向滚动
   ============================================================ */

:root {
  /* 动态主题色 —— JS 会随答题进程更新这两个变量 */
  --hue: 265;
  --hue2: 190;

  --bg-1: hsl(var(--hue) 80% 62%);
  --bg-2: hsl(var(--hue2) 75% 55%);
  --bg-3: hsl(calc(var(--hue) + 40) 70% 45%);

  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-bg-strong: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(20, 10, 60, 0.18);
  --glass-blur: blur(28px) saturate(1.6);

  --text-1: rgba(255, 255, 255, 0.98);
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.55);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "HarmonyOS Sans SC", "MiSans", "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important; /* 严格禁止横向滚动 */
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font);
  color: var(--text-1);
  background: #16102e;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- 流动色彩背景 ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(160deg,
      hsl(var(--hue) 75% 40%) 0%,
      hsl(var(--hue2) 70% 35%) 55%,
      hsl(calc(var(--hue) + 50) 60% 25%) 100%);
  transition: background 1.2s ease;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
  transition: background 1.2s ease;
}
.bg-blob.b1 {
  width: 75vmax; height: 75vmax;
  top: -25vmax; left: -25vmax;
  background: hsl(var(--hue) 90% 65%);
  animation: drift1 18s ease-in-out infinite alternate;
}
.bg-blob.b2 {
  width: 60vmax; height: 60vmax;
  bottom: -20vmax; right: -22vmax;
  background: hsl(var(--hue2) 90% 60%);
  animation: drift2 22s ease-in-out infinite alternate;
}
.bg-blob.b3 {
  width: 45vmax; height: 45vmax;
  top: 35%; left: 55%;
  background: hsl(calc(var(--hue) + 60) 85% 60%);
  opacity: 0.35;
  animation: drift3 26s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-15vw, -10vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-25vw, 15vh) scale(0.9); } }

/* 玻璃颗粒质感 */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 液态玻璃卡片 ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.25);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(34px) saturate(1.8);
  -webkit-backdrop-filter: blur(34px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.35);
}

/* ---------- 页面容器 ---------- */
.screen {
  display: none;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(24px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));
  min-height: 100dvh;
  animation: screenIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.screen.active { display: block; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 通用元素 ---------- */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-2);
}

h1.title {
  font-size: clamp(26px, 7.5vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.subtitle {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s, opacity 0.18s;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg,
      hsl(var(--hue) 90% 68%), hsl(var(--hue2) 85% 60%));
  color: #fff;
  box-shadow: 0 8px 24px hsl(var(--hue) 80% 50% / 0.45), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--text-1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 12px;
  font-weight: 500;
}

.input-glass {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-1);
  font-size: 16px;
  font-family: var(--font);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.input-glass::placeholder { color: var(--text-3); }
.input-glass:focus {
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 3px hsl(var(--hue) 90% 70% / 0.3);
}

.error-text {
  color: #ffd7d7;
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
  text-align: center;
  text-shadow: 0 1px 6px rgba(180,0,0,0.3);
}

/* ---------- 密钥页 ---------- */
.key-hero { text-align: center; margin-top: 8vh; }
.key-hero .logo-ring {
  width: 92px; height: 92px;
  margin: 0 auto 26px;
  border-radius: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 12px 40px rgba(30,10,80,0.3), inset 0 2px 0 rgba(255,255,255,0.5);
  animation: floaty 4.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
.key-card { margin-top: 34px; padding: 26px 22px; }
.key-card label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.feat-row {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.feat-item {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}
.feat-item .fi-icon { font-size: 22px; }
.feat-item .fi-text { font-size: 11px; color: var(--text-2); margin-top: 6px; line-height: 1.4; }

/* ---------- 答题页 ---------- */
.quiz-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, hsl(var(--hue) 95% 72%), hsl(var(--hue2) 90% 65%));
  box-shadow: 0 0 12px hsl(var(--hue) 90% 70% / 0.7);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-num {
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.q-card {
  padding: 34px 24px 28px;
  min-height: 62dvh;
  display: flex;
  flex-direction: column;
  animation: qIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes qIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.q-card.exit {
  animation: qOut 0.25s ease forwards;
}
@keyframes qOut {
  to { opacity: 0; transform: translateX(-40px); }
}

.q-dim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 12px;
  color: var(--text-2);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 18px;
}
.q-text {
  font-size: clamp(20px, 5.6vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 28px;
}

.opt-list { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.opt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-1);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  line-height: 1.45;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border 0.2s;
}
.opt-btn:active { transform: scale(0.97); }
.opt-btn.picked {
  background: linear-gradient(135deg, hsl(var(--hue) 90% 65% / 0.55), hsl(var(--hue2) 85% 60% / 0.45));
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 4px 20px hsl(var(--hue) 85% 60% / 0.4);
}
.opt-emoji {
  font-size: 24px;
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ---------- 加载页 ---------- */
.loading-wrap { text-align: center; padding-top: 26vh; }
.orb {
  width: 110px; height: 110px;
  margin: 0 auto 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.85), transparent 42%),
    linear-gradient(140deg, hsl(var(--hue) 90% 65%), hsl(var(--hue2) 85% 55%));
  box-shadow: 0 16px 60px hsl(var(--hue) 85% 55% / 0.55), inset 0 -6px 20px rgba(0,0,0,0.15);
  animation: orbPulse 2.2s ease-in-out infinite, orbSpin 8s linear infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes orbSpin { to { filter: hue-rotate(360deg); } }
.loading-text { font-size: 16px; color: var(--text-2); letter-spacing: 2px; }
.loading-sub { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ---------- 结果页 ---------- */
.result-hero { text-align: center; padding: 36px 22px 30px; position: relative; overflow: hidden; }
.result-hero::before {
  content: "";
  position: absolute;
  top: -40%; left: -30%;
  width: 160%; height: 100%;
  background: radial-gradient(ellipse, hsl(var(--hue) 95% 70% / 0.4), transparent 60%);
  pointer-events: none;
}
.rh-label { font-size: 13px; color: var(--text-2); letter-spacing: 3px; position: relative; }
.match-ring {
  position: relative;
  width: 150px; height: 150px;
  margin: 18px auto;
}
.match-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 8; }
.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-num b { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-num span { font-size: 12px; color: var(--text-2); }

.city-name {
  font-size: clamp(32px, 9vw, 42px);
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.2);
  position: relative;
}
.city-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  position: relative;
}
.chip {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-2);
  white-space: nowrap;
}
.persona-line {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-1);
  position: relative;
}
.persona-line b { color: #ffe9a8; font-weight: 700; }

.section { margin-top: 18px; padding: 22px 20px; }
.sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-1);
}
.reason-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  padding: 7px 0;
}
.reason-item::before {
  content: "✦";
  color: hsl(var(--hue) 90% 75%);
  flex-shrink: 0;
}

/* LLM 文案区 */
.llm-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-2);
  white-space: pre-wrap;
}
.llm-text.typing::after {
  content: "▍";
  color: var(--text-1);
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.llm-skeleton {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin: 8px 0;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* 雷达图 */
.radar-wrap { display: flex; justify-content: center; padding: 6px 0; }
.radar-wrap svg { width: 100%; max-width: 300px; height: auto; }
.radar-grid { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 1; }
.radar-axis { stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.radar-user {
  fill: hsl(var(--hue) 90% 65% / 0.3);
  stroke: hsl(var(--hue) 95% 72%);
  stroke-width: 2;
}
.radar-city {
  fill: hsl(var(--hue2) 90% 60% / 0.22);
  stroke: hsl(var(--hue2) 95% 70%);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.radar-label { fill: rgba(255,255,255,0.75); font-size: 11px; }
.radar-legend { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* 备选城市 */
.alt-list { display: flex; flex-direction: column; gap: 10px; }
.alt-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
}
.alt-rank {
  width: 34px; height: 34px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  background: linear-gradient(140deg, hsl(var(--hue) 85% 65% / 0.6), hsl(var(--hue2) 80% 60% / 0.5));
  border: 1px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.alt-info { flex: 1; min-width: 0; }
.alt-info b { font-size: 15px; display: block; }
.alt-info span { font-size: 12px; color: var(--text-3); }
.alt-pct { font-size: 17px; font-weight: 800; color: hsl(var(--hue) 95% 78%); font-variant-numeric: tabular-nums; }

/* 城市群 chip 强调 */
.chip-cluster {
  background: linear-gradient(135deg, hsl(var(--hue) 90% 65% / 0.45), hsl(var(--hue2) 85% 60% / 0.4));
  border-color: rgba(255,255,255,0.55);
  color: var(--text-1);
  font-weight: 600;
}

/* ---------- 辐射圈板块 ---------- */
.cluster-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, hsl(var(--hue) 80% 60% / 0.16), hsl(var(--hue2) 75% 55% / 0.12));
  border: 1px solid rgba(255,255,255,0.22);
  margin-bottom: 14px;
}
.cluster-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 10px;
}
.cluster-text { font-size: 13.5px; line-height: 1.75; color: var(--text-2); }

/* 周末充电城市卡片（核心亮点） */
.weekend-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--hue) 92% 62% / 0.28), hsl(var(--hue2) 88% 58% / 0.22));
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 6px 24px hsl(var(--hue) 80% 50% / 0.25), inset 0 1px 0 rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.weekend-card::after {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.22), transparent 65%);
  pointer-events: none;
}
.weekend-head { margin-bottom: 12px; position: relative; }
.weekend-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.4);
}
.weekend-body { position: relative; text-align: center; }
.weekend-route {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}
.route-city {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-2);
}
.route-city.hl {
  font-size: 32px;
  color: var(--text-1);
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.route-arrow {
  font-size: 20px;
  color: rgba(255,255,255,0.65);
}
.weekend-time {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 8px;
}
.weekend-why {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* 邻近城市列表 */
.radial-list { display: flex; flex-direction: column; gap: 8px; }
.nb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
}
.nb-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.nb-dot.same {
  background: hsl(var(--hue) 95% 70%);
  box-shadow: 0 0 0 3px hsl(var(--hue) 90% 70% / 0.25), 0 0 10px hsl(var(--hue) 90% 65% / 0.6);
}
.nb-info { flex: 1; min-width: 0; }
.nb-info b { font-size: 14px; display: block; }
.nb-info span { font-size: 11.5px; color: var(--text-3); }
.nb-time {
  font-size: 13px;
  font-weight: 700;
  color: hsl(var(--hue2) 90% 78%);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nb-empty {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  padding: 14px;
}

/* 行动按钮组 */
.action-row { display: flex; gap: 12px; margin-top: 20px; }
.action-row .btn { flex: 1; }

/* ---------- 分享页 ---------- */
.share-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 38px 26px 30px;
  text-align: center;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, hsl(var(--hue) 95% 68% / 0.55), transparent 60%),
    radial-gradient(ellipse 100% 50% at 90% 110%, hsl(var(--hue2) 90% 60% / 0.4), transparent 55%),
    rgba(255,255,255,0.1);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 20px 60px rgba(20,8,60,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
.sc-top-label { font-size: 11px; letter-spacing: 4px; color: var(--text-2); }
.sc-city { font-size: clamp(38px, 11vw, 50px); font-weight: 900; margin: 14px 0 4px; letter-spacing: 3px; text-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.sc-pct { font-size: 18px; font-weight: 800; color: #ffe9a8; }
.sc-persona {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
}
.sc-quote { margin-top: 20px; font-size: 13px; line-height: 1.8; color: var(--text-2); font-style: italic; }
.sc-divider {
  margin: 24px auto 16px;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}
.sc-xhs { display: flex; align-items: center; justify-content: center; gap: 8px; }
.xhs-badge {
  background: #ff2442;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(255,36,66,0.4);
}
.sc-xhs span { font-size: 13px; color: var(--text-2); letter-spacing: 1px; }
.sc-hint { margin-top: 14px; font-size: 11px; color: var(--text-3); }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + var(--safe-bottom));
  transform: translateX(-50%) translateY(20px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(30, 20, 50, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 99;
  max-width: 88vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* footer */
.page-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.8;
}
.page-footer a { color: var(--text-2); text-decoration: none; }

/* 桌面端也居中显示为手机比例 */
@media (min-width: 560px) {
  .screen { padding-top: 48px; }
}

/* ---------- 购买引导横幅（密钥页） ---------- */
.buy-banner {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding: 14px 16px;
}
.buy-icon { font-size: 24px; flex-shrink: 0; }
.buy-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.buy-text b { font-size: 13px; color: var(--text-1); }
.buy-text span { font-size: 11.5px; color: var(--text-2); line-height: 1.5; }
.buy-text em { font-style: normal; color: #ffb3c0; font-weight: 600; }
.buy-link {
  flex-shrink: 0; font-size: 13px; font-weight: 700;
  color: #ffe9a8; text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
}

/* ---------- 密钥剩余次数（结果页） ---------- */
.key-quota {
  margin-top: 18px; text-align: center;
  font-size: 12.5px; color: var(--text-3);
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
}
.key-quota b { color: var(--text-1); font-size: 14px; }

/* ---------- 好评有礼卡片 ---------- */
.reward-card { padding: 16px 18px; }
.reward-title { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.reward-text { font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.reward-text b { color: #ffe9a8; }

/* ---------- 分享卡扩展：雷达 + 推荐城市 + 二维码区 ---------- */
.sc-radar { margin: 18px auto 0; width: 190px; }
.sc-radar svg { width: 100%; height: auto; display: block; }
.sc-recos { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.sc-reco {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 12.5px; color: var(--text-2); text-align: left;
}
.sc-reco .reco-tag { flex-shrink: 0; font-size: 11px; }
.sc-reco b { color: var(--text-1); font-size: 13.5px; }
.sc-bottom { display: flex; align-items: center; gap: 14px; margin-top: 6px; text-align: left; }
.sc-qr {
  flex-shrink: 0; width: 84px; height: 84px;
  background: #fff; border-radius: 10px; padding: 5px;
}
.sc-qr img, .sc-qr canvas, .sc-qr table { width: 100% !important; height: 100% !important; display: block; }
.sc-qr table td { width: auto !important; height: auto !important; }
.sc-qr-text { flex: 1; min-width: 0; }
.sc-qr-title { font-size: 13.5px; font-weight: 800; color: var(--text-1); margin-bottom: 8px; }
.sc-bottom .sc-xhs { justify-content: flex-start; margin-bottom: 6px; }
.sc-bottom .sc-hint { margin-top: 0; text-align: left; }

/* ---------- 保存兜底弹层 ---------- */
.save-sheet {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 6, 26, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.save-sheet[hidden] { display: none; }
.ss-inner {
  width: 100%; max-width: 420px; max-height: 90dvh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ss-hint { font-size: 14px; color: var(--text-2); text-align: center; }
.ss-inner img {
  width: 100%; max-height: 62dvh; object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #16102e;
}
.ss-actions { display: flex; gap: 12px; width: 100%; }
.ss-actions .btn { flex: 1; text-align: center; }

/* 雷达图数值标注（你的期望/城市气质） */
.radar-val { font-size: 8.5px; fill: rgba(255,255,255,0.5); font-weight: 600; }
.radar-note { margin-top: 8px; font-size: 10.5px; color: var(--text-3); text-align: center; line-height: 1.6; }
