*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: radial-gradient(circle at top, #ff4fa8 0, #140015 55%, #050008 100%);
  color: #fef5ff;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 96px;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero-inner {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(0, 0, 0, 0.6));
  border-radius: 18px;
  padding: 20px 16px 18px;
  border: 1px solid rgba(255, 192, 203, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff7ac4, #ffe0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.hero-slogan {
  font-size: 0.98rem;
  color: #ffd6f5;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #fce5ff;
}

.scale-pill {
  display: inline-block;
  margin: 2px 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 182, 222, 0.4);
  font-size: 0.76rem;
}

.main {
  margin-top: 18px;
}

.questions-section {
  background: rgba(3, 0, 12, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(255, 192, 203, 0.35);
  padding: 18px 14px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

.questions-header h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.questions-sub {
  font-size: 0.86rem;
  color: #f9a8d4;
  margin-bottom: 8px;
}

.questions-list {
  /* 全部题目一页展示，不在容器内滚动，交由页面自身滚动 */
}

.question-card {
  background: radial-gradient(circle at top left, rgba(255, 105, 180, 0.28), rgba(10, 0, 20, 0.95));
  border-radius: 12px;
  padding: 12px 10px 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 192, 203, 0.25);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.question-index {
  font-size: 0.8rem;
  color: #fecdd3;
}

.question-badge {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

.question-text {
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 8px;
  font-weight: 700;
}

.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.option-pill {
  flex: 1 1 calc(20% - 6px);
  min-width: 54px;
  padding: 6px 4px;
  text-align: center;
  font-size: 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(252, 165, 165, 0.6);
  color: #ffe4e6;
  background: rgba(24, 0, 25, 0.9);
  cursor: pointer;
  transition: all 0.16s ease-out;
}

.option-pill:hover {
  background: rgba(236, 72, 153, 0.7);
  transform: translateY(-1px);
}

.option-pill.selected {
  background: linear-gradient(135deg, #fb7185, #ec4899);
  border-color: #fecaca;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.7),
    0 6px 16px rgba(248, 113, 113, 0.6);
}

.footer {
  max-width: 900px;
  margin: 18px auto 10px;
  padding: 10px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.score-display {
  font-size: 0.9rem;
  color: #fecaca;
  text-align: center;
}

#current-score {
  font-weight: 700;
  color: #fb7185;
}

.submit-btn {
  flex: 0 0 auto;
  min-width: 220px;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.98rem;
  background: radial-gradient(circle at top left, #fb7185, #ec4899);
  color: #1f0210;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.75);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.85);
}

.submit-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(251, 113, 133, 0.4), rgba(0, 0, 0, 0.95));
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 0 18px;
}

.result-card {
  position: relative;
  background: radial-gradient(circle at top, #2b0010, #020008);
  border-radius: 20px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(254, 202, 202, 0.75);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  transform: scale(0.8);
  opacity: 0;
  animation: pop-in 0.25s ease-out forwards;
}

@keyframes pop-in {
  0% {
    transform: scale(0.8) translateY(12px);
    opacity: 0;
  }
  60% {
    transform: scale(1.03) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  right: 26px;
  top: -6px;
  border: none;
  background: transparent;
  color: #fecaca;
  font-size: 1.5rem;
  cursor: pointer;
}

.result-score-wrapper {
  text-align: center;
  margin-bottom: 4px;
}

.result-score-number {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  color: #fb7185;
  text-shadow: 0 0 24px rgba(248, 113, 113, 0.85);
}

.result-score-unit {
  font-size: 1rem;
  margin-left: 4px;
  color: #fed7e2;
}

.result-level {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fee2e2;
}

.result-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #fee2e2;
  text-align: center;
  margin-bottom: 10px;
}

.result-badge {
  display: inline-block;
  margin: 0 auto 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #facc15;
  background: linear-gradient(135deg, #111827, #000);
  border: 1px solid #fbbf24;
}

.result-badge.hidden {
  display: none;
}

.result-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.primary-btn,
.secondary-btn {
  flex: 1;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, #fb7185, #ec4899);
  color: #1f0210;
  font-weight: 700;
}

.secondary-btn {
  background: rgba(15, 23, 42, 0.9);
  color: #fecaca;
  border: 1px solid rgba(254, 202, 202, 0.6);
}

.result-easter {
  font-size: 0.8rem;
  text-align: center;
  color: #fed7e2;
}

.back-home-btn {
  text-decoration: none;
  text-align: center;
}

/* 黑底金字 / 黑底血红特殊样式 */
.result-card.black-gold {
  background: radial-gradient(circle at top, #111827, #020617);
  border-color: #fbbf24;
}

.result-card.black-gold .result-score-number {
  color: #facc15;
  text-shadow: 0 0 24px rgba(250, 204, 21, 0.85);
}

.result-card.black-gold .result-level {
  color: #fef3c7;
}

.result-card.black-gold .result-text {
  color: #fef9c3;
}

.result-card.black-blood {
  background: radial-gradient(circle at top, #450a0a, #020617);
  border-color: #b91c1c;
}

.result-card.black-blood .result-score-number {
  color: #fca5a5;
  text-shadow: 0 0 26px rgba(248, 113, 113, 0.9);
}

.result-card.black-blood .result-level {
  color: #fecaca;
}

.result-card.black-blood .result-text {
  color: #fee2e2;
}

/* 分享区域 */
.share-section {
  max-width: 900px;
  margin: 12px auto 100px;
  padding: 14px 14px 18px;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 16px;
  border: 1px solid rgba(254, 202, 202, 0.4);
  color: #fee2e2;
}

.share-section h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.share-desc {
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.share-templates {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.share-template {
  flex: 1;
  padding: 6px 4px;
  border-radius: 999px;
  border: 1px solid rgba(252, 165, 165, 0.6);
  background: rgba(24, 0, 25, 0.9);
  color: #fee2e2;
  font-size: 0.86rem;
  cursor: pointer;
}

.share-template.selected {
  background: linear-gradient(135deg, #fb7185, #ec4899);
  color: #1f0210;
  font-weight: 600;
}

.share-generate-btn {
  width: 100%;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.share-channels {
  font-size: 0.8rem;
  color: #fecaca;
}

.share-canvas {
  display: none;
}

.ad-container {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 8px 0 0;
}

.ad-content {
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.4rem;
  }
  .page {
    padding-inline: 12px;
  }
  .submit-btn {
    min-width: 180px;
  }
}


