:root {
  color-scheme: dark;
  --bg: #090312;
  --bg-deep: #140623;
  --panel: rgba(17, 9, 29, 0.84);
  --panel-strong: rgba(30, 14, 47, 0.92);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f7ecff;
  --muted: rgba(243, 226, 255, 0.72);
  --soft: rgba(243, 226, 255, 0.5);
  --accent: #ff79d2;
  --accent-2: #9f7bff;
  --accent-3: #76e7ff;
  --danger: #ff6b8f;
  --success: #86f7b6;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: 440px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "SF Pro Display",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(159, 123, 255, 0.22), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(255, 121, 210, 0.18), transparent 24%),
    linear-gradient(180deg, #08020f 0%, #140623 48%, #05010b 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -120px;
  left: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 121, 210, 0.24), transparent 70%);
  filter: blur(10px);
}

body::after {
  right: -110px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 231, 255, 0.16), transparent 72%);
  filter: blur(12px);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

#app:empty {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

#app:empty::before,
.noscript-note {
  width: min(100%, var(--content-width));
  padding: 24px 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(24, 11, 39, 0.94), rgba(12, 5, 22, 0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

#app:empty::before {
  content: "恋爱雷达测试加载中...\A如果页面长时间没有显示，请刷新重试。";
  white-space: pre-line;
}

.noscript-note {
  margin: 24px auto;
  font-size: 14px;
}

.page-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  min-height: 100vh;
  padding: 22px 18px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

.hero-card,
.question-card,
.result-card,
.detail-card,
.share-card,
.unlock-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 11, 39, 0.94), rgba(12, 5, 22, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  padding: 26px 22px 24px;
}

.hero-card::before,
.question-card::before,
.result-card::before,
.detail-card::before,
.share-card::before,
.unlock-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 121, 210, 0.16), transparent 32%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero-title,
.result-main-title {
  margin: 16px 0 10px;
  font-size: clamp(32px, 8vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-subtitle,
.hero-description,
.section-text,
.result-summary,
.detail-copy,
.share-copy,
.page-note,
.question-hint {
  color: var(--muted);
}

.hero-subtitle {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.hero-description {
  margin: 14px 0 20px;
  font-size: 15px;
  line-height: 1.75;
}

.radar-stage {
  position: relative;
  width: 100%;
  padding: 18px 0 12px;
  display: grid;
  place-items: center;
}

.radar-disc {
  position: relative;
  width: min(70vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 121, 210, 0.2), rgba(159, 123, 255, 0.1) 42%, rgba(9, 3, 18, 0.9) 70%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 40px rgba(255, 121, 210, 0.14),
    0 0 60px rgba(159, 123, 255, 0.22);
}

.radar-disc::before,
.radar-disc::after {
  content: "";
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.radar-disc::before {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(255, 255, 255, 0.14) 49.4%, rgba(255, 255, 255, 0.14) 50.6%, transparent 50.6%),
    linear-gradient(0deg, transparent 49.4%, rgba(255, 255, 255, 0.14) 49.4%, rgba(255, 255, 255, 0.14) 50.6%, transparent 50.6%);
}

.radar-disc::after {
  width: 38%;
  height: 38%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 0deg, transparent 295deg, rgba(255, 121, 210, 0.42) 340deg, rgba(118, 231, 255, 0.12) 360deg);
  mix-blend-mode: screen;
  animation: sweep 4.8s linear infinite;
}

.radar-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0f7, #ff79d2);
  box-shadow: 0 0 18px rgba(255, 121, 210, 0.66);
}

.radar-dot.dot-1 {
  top: 26%;
  right: 24%;
}

.radar-dot.dot-2 {
  bottom: 22%;
  left: 24%;
  width: 10px;
  height: 10px;
}

.radar-dot.dot-3 {
  top: 52%;
  left: 16%;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #d6fbff, #76e7ff);
  box-shadow: 0 0 18px rgba(118, 231, 255, 0.5);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.info-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fbe7ff;
  font-size: 13px;
}

.primary-button,
.secondary-button,
.ghost-button,
.option-button {
  width: 100%;
  border: 0;
  border-radius: 20px;
  font: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 58px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
}

.primary-button {
  color: #1a0827;
  background: linear-gradient(135deg, #ffd0ef 0%, #ff79d2 45%, #9f7bff 100%);
  box-shadow: 0 18px 36px rgba(255, 121, 210, 0.28);
}

.secondary-button {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ghost-button {
  color: #ffe8f8;
  background: linear-gradient(180deg, rgba(255, 121, 210, 0.08), rgba(118, 231, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.option-button:active {
  transform: translateY(1px) scale(0.995);
}

.home-actions,
.result-actions {
  display: grid;
  gap: 12px;
}

.mini-note,
.disclaimer-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.question-card,
.result-card,
.detail-card,
.share-card,
.unlock-card {
  padding: 22px 18px;
}

.question-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.progress-label,
.signal-label,
.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--soft);
}

.progress-count {
  font-size: 16px;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #76e7ff 0%, #ff79d2 55%, #ffd0ef 100%);
  box-shadow: 0 0 16px rgba(255, 121, 210, 0.35);
}

.question-title {
  margin: 16px 0 8px;
  font-size: clamp(24px, 6.8vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.question-hint {
  margin: 0 0 18px;
  font-size: 14px;
}

.options-list {
  display: grid;
  gap: 12px;
}

.option-button {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 86px;
  padding: 16px;
  text-align: left;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.option-button:hover,
.option-button:focus-visible {
  outline: none;
  border-color: rgba(255, 121, 210, 0.46);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.option-key {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 121, 210, 0.22), rgba(159, 123, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.option-text {
  font-size: 15px;
  line-height: 1.6;
}

.result-card {
  padding-top: 24px;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.result-summary {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.75;
}

.score-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
}

.score-number {
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.score-total {
  font-size: 16px;
  color: var(--muted);
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.score-caption {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.result-name {
  margin: 14px 0 8px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-title,
.share-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.detail-copy,
.share-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.advice-band {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 121, 210, 0.14), rgba(118, 231, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.advice-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.advice-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.share-card {
  display: grid;
  gap: 16px;
}

.unlock-card {
  display: grid;
  gap: 16px;
}

.unlock-copy,
.unlock-tip {
  margin: 0;
}

.unlock-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.unlock-tip {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

.unlock-actions {
  display: grid;
  gap: 12px;
}

.locked-preview {
  position: relative;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: grid;
  gap: 12px;
}

.locked-preview::after {
  content: "关注后解锁完整分析";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(9, 3, 18, 0.42), rgba(9, 3, 18, 0.68));
  backdrop-filter: blur(8px);
  color: #fff2fb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.locked-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 121, 210, 0.24), rgba(255, 255, 255, 0.08));
}

.locked-line.long {
  width: 100%;
}

.locked-line.medium {
  width: 82%;
}

.locked-line.short {
  width: 66%;
}

.share-box {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-actions {
  margin-top: 16px;
}

.brand-footer {
  margin-top: auto;
  padding: 12px 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.brand-link {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.brand-link:hover,
.brand-link:focus-visible {
  color: rgba(255, 255, 255, 0.82);
}

.brand-signature {
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(18px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(12, 8, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff5fd;
  font-size: 13px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 20;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes sweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 520px) {
  .page-shell {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .hero-card,
  .question-card,
  .result-card,
  .detail-card,
  .share-card,
  .unlock-card {
    padding-left: 24px;
    padding-right: 24px;
  }
}

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