:root {
  color-scheme: light;
  --bg-1: #fff5fa;
  --bg-2: #ffe4f0;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-2: rgba(255, 237, 246, 0.78);
  --line: rgba(218, 95, 151, 0.2);
  --text: #71324f;
  --text-2: rgba(113, 50, 79, 0.82);
  --muted: rgba(136, 71, 101, 0.68);
  --accent-1: #ff9bc5;
  --accent-2: #f45f9d;
  --radius: 30px;
  --shadow: 0 18px 60px rgba(217, 92, 149, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    Inter,
    'PingFang SC',
    'Hiragino Sans GB',
    'Microsoft YaHei',
    sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 154, 198, 0.38), transparent 38%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 52%, #ffd5e8 100%);
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

.bg-orb,
.grid-mask {
  position: fixed;
  pointer-events: none;
}

.bg-orb {
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.7;
}

.orb-left {
  left: -90px;
  top: -80px;
  background: radial-gradient(circle, rgba(255, 174, 211, 0.85), transparent 68%);
}

.orb-right {
  right: -120px;
  top: 200px;
  background: radial-gradient(circle, rgba(255, 112, 174, 0.46), transparent 68%);
}

.grid-mask {
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 116, 166, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 116, 166, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.86), transparent 74%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hidden {
  display: none;
}

.hero-panel,
.quiz-panel,
.result-panel {
  padding: 24px 18px 22px;
}

.badge,
.mini-kicker,
.mini-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.badge {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #a04a70;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255, 225, 239, 0.92);
}

.mini-kicker {
  margin-top: 16px;
  color: #f05c9b;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-title {
  margin-top: 14px;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero-desc,
.section-copy,
.quiz-note,
.notice-card p,
.result-copy,
.compliance-box p,
.advice-list li {
  color: var(--text-2);
  line-height: 1.78;
}

.hero-desc {
  margin-top: 16px;
  font-size: 1rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.highlight-item,
.notice-card,
.question-card,
.option-item,
.result-box,
.compliance-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel-2);
}

.highlight-item {
  padding: 16px 14px;
  border-radius: 20px;
}

.highlight-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.highlight-item span,
.meta-pill {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.notice-card {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 20px;
}

.notice-card strong,
.compliance-box strong {
  display: inline-flex;
  margin-bottom: 8px;
  color: #ffd57e;
  font-size: 0.92rem;
}

.button-row {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.primary-btn,
.secondary-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px 18px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.primary-btn {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 14px 28px rgba(143, 107, 255, 0.28);
}

.secondary-btn {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.primary-btn:hover,
.secondary-btn:hover,
.option-item:hover {
  transform: translateY(-1px);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.quiz-title {
  margin-top: 10px;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  line-height: 1.18;
}

.meta-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  width: 100%;
  height: 10px;
  margin-top: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 0.22s ease;
}

.question-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
}

.option-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  color: var(--text);
  text-align: left;
}

.option-item.selected {
  background: linear-gradient(135deg, rgba(143, 107, 255, 0.4), rgba(255, 95, 163, 0.28));
  border-color: rgba(255, 255, 255, 0.24);
}

.option-tag {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.option-text {
  flex: 1;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.92);
}

.quiz-note {
  margin-top: 18px;
  font-size: 0.9rem;
}

.result-panel {
  overflow: hidden;
}

.result-hero {
  padding: 28px 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.result-emoji {
  font-size: 3rem;
}

.result-name {
  margin-top: 12px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.result-tagline {
  margin-top: 12px;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.78;
}

.result-grid {
  display: grid;
  gap: 14px;
  padding: 18px 0 0;
}

.result-box,
.compliance-box {
  padding: 18px;
  border-radius: 22px;
}

.result-box h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.92rem;
}

.advice-list {
  padding-left: 1.2rem;
}

.poster-preview {
  margin-top: 14px;
  border-radius: 26px;
  padding: 20px;
  background: linear-gradient(160deg, rgba(12, 16, 33, 0.88), rgba(142, 108, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.poster-preview .poster-line {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.poster-preview .poster-main {
  margin-top: 10px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
}

.poster-preview .poster-footer {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .page-shell {
    padding: 40px 24px 64px;
  }

  .hero-panel,
  .quiz-panel,
  .result-panel {
    padding: 32px 30px 28px;
  }

  .button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-grid .full-span,
  .result-grid .compliance-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .quiz-header {
    flex-direction: column;
  }

  .meta-pill {
    align-self: flex-start;
  }
}

/* 粉嫩主题细节 */
.highlight-item,
.notice-card,
.question-card,
.option-item,
.result-box,
.compliance-box {
  border-color: rgba(218, 95, 151, 0.18);
}

.notice-card strong,
.compliance-box strong {
  color: #d94f8d;
}

.secondary-btn {
  color: #8f3f63;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(218, 95, 151, 0.22);
}

.option-item {
  color: var(--text);
}

.option-item.selected {
  background: linear-gradient(135deg, rgba(255, 175, 210, 0.72), rgba(255, 218, 235, 0.9));
  border-color: rgba(225, 83, 148, 0.38);
}

.option-tag,
.keyword-chip {
  background: rgba(255, 177, 211, 0.38);
}

.option-text,
.result-tagline {
  color: rgba(113, 50, 79, 0.92);
}

.progress-bar {
  background: rgba(218, 95, 151, 0.14);
}

.result-hero {
  border-bottom-color: rgba(218, 95, 151, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 170, 207, 0.4), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 225, 239, 0.45));
}

.poster-preview {
  background: linear-gradient(160deg, #ff8fbe, #f45f9d 52%, #ffd9e9);
  border-color: rgba(255, 255, 255, 0.5);
}
