:root {
  --bg-top: #fff5f8;
  --bg-bottom: #ffe6ef;
  --panel: rgba(255, 252, 254, 0.88);
  --panel-strong: rgba(255, 250, 252, 0.95);
  --ink: #5b3148;
  --muted: #8b6678;
  --line: rgba(184, 102, 141, 0.18);
  --accent: #ff6f9f;
  --accent-strong: #f84b89;
  --accent-soft: #ffd1df;
  --accent-pale: #fff1f6;
  --berry: #d05287;
  --lavender: #d9c6ff;
  --peach: #ffd5bf;
  --mint: #d7f2e7;
  --gold: #ffc785;
  --shadow: 0 28px 70px rgba(219, 112, 156, 0.18);
  --shadow-soft: 0 18px 36px rgba(240, 110, 154, 0.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 148, 182, 0.32), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(217, 198, 255, 0.42), transparent 20%),
    radial-gradient(circle at 82% 76%, rgba(255, 199, 133, 0.24), transparent 18%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.46) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 171, 199, 0.24) 1px, transparent 1px);
  background-size: 28px 28px, 42px 42px;
  background-position: 0 0, 12px 18px;
  opacity: 0.55;
}

.ambient {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(26px);
  opacity: 0.82;
}

.ambient-left {
  left: -120px;
  bottom: 8vh;
  background: radial-gradient(circle, rgba(255, 111, 159, 0.32), transparent 70%);
}

.ambient-right {
  right: -90px;
  top: 7vh;
  background: radial-gradient(circle, rgba(217, 198, 255, 0.5), transparent 68%);
}

.float-heart {
  position: fixed;
  z-index: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
  transform: rotate(45deg);
  background: rgba(255, 111, 159, 0.22);
  animation: drift 7s ease-in-out infinite;
}

.float-heart::before,
.float-heart::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: inherit;
}

.float-heart::before {
  left: -9px;
}

.float-heart::after {
  top: -9px;
}

.heart-a {
  top: 14vh;
  left: 10vw;
}

.heart-b {
  top: 32vh;
  right: 13vw;
  width: 14px;
  height: 14px;
  animation-delay: -2.2s;
}

.heart-b::before,
.heart-b::after {
  width: 14px;
  height: 14px;
}

.heart-b::before {
  left: -7px;
}

.heart-b::after {
  top: -7px;
}

.heart-c {
  bottom: 12vh;
  right: 24vw;
  background: rgba(208, 82, 135, 0.18);
  animation-delay: -4.1s;
}

#app {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 20px 16px 54px;
}

.hero-card,
.quiz-card,
.result-card,
.info-card,
.summary-card,
.ranking-card,
.zone-card {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 30px 22px 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 248, 0.88)),
    var(--panel);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 199, 133, 0.26), transparent 16%),
    radial-gradient(circle at 15% 86%, rgba(217, 198, 255, 0.28), transparent 18%);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -26px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 159, 0.18), transparent 72%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 111, 159, 0.16), rgba(255, 199, 133, 0.22));
  color: var(--berry);
  border: 1px solid rgba(255, 111, 159, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-title,
.result-title,
.section-title,
.question-title,
.summary-card h3,
.info-card h3,
.ranking-card h3,
.zone-card h3 {
  margin: 16px 0 0;
  font-family: "Noto Serif SC", "STSong", "Songti SC", serif;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1.04;
}

.hero-copy,
.muted,
.question-copy,
.result-copy,
.ranking-copy {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 39rem;
  margin: 14px 0 0;
  font-size: 15px;
}

.hero-grid,
.meta-grid,
.summary-grid,
.ranking-grid,
.zone-grid,
.result-image-grid {
  display: grid;
  gap: 14px;
}

.hero-grid {
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-stat,
.summary-card,
.zone-card,
.ranking-card,
.info-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.mini-stat {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 240, 246, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.mini-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-strong);
}

.mini-stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.hero-actions,
.quiz-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn:active {
  transform: translateY(0) scale(1);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 55%, #ff8db1 100%);
  box-shadow: 0 16px 34px rgba(248, 75, 137, 0.3);
}

.btn-secondary {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 246, 0.86));
  border: 1px solid rgba(255, 143, 177, 0.16);
}

.btn-ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.btn[disabled] {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
}

.info-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--berry);
  border: 1px solid rgba(255, 111, 159, 0.12);
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(217, 121, 159, 0.1);
}

.section {
  margin-top: 18px;
}

.info-card,
.summary-card,
.ranking-card,
.zone-card,
.quiz-card,
.result-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 248, 0.88));
}

.meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.meta-label {
  color: var(--muted);
  font-size: 13px;
}

.meta-value {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-strong);
}

.quiz-card,
.result-card {
  border-radius: var(--radius-xl);
  padding: 22px 18px;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  position: relative;
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 191, 214, 0.4);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9abf 0%, #ff6f9f 55%, #ffc785 100%);
}

.progress-label {
  min-width: 56px;
  text-align: right;
  font-weight: 700;
  color: var(--accent-strong);
}

.question-head {
  margin-top: 18px;
}

.dimension-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: linear-gradient(135deg, rgba(255, 209, 223, 0.72), rgba(255, 241, 246, 0.9));
  color: var(--berry);
  font-size: 12px;
  font-weight: 700;
}

.question-title {
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.28;
}

.question-copy {
  margin-top: 10px;
  font-size: 14px;
}

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

.option {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 240, 246, 0.9));
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(234, 117, 161, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.option:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 111, 159, 0.32);
  box-shadow: 0 18px 32px rgba(234, 117, 161, 0.14);
}

.option.is-active {
  background:
    linear-gradient(135deg, rgba(255, 223, 234, 0.92), rgba(255, 245, 248, 0.96)),
    white;
  border-color: rgba(248, 75, 137, 0.34);
  box-shadow: 0 18px 34px rgba(248, 75, 137, 0.16);
}

.option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 111, 159, 0.2), rgba(255, 199, 133, 0.28));
  color: var(--accent-strong);
  font-weight: 800;
}

.option-body {
  margin-left: 12px;
  display: inline-block;
  width: calc(100% - 54px);
  vertical-align: top;
}

.option-text {
  display: block;
  line-height: 1.68;
}

.option-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.option-tag {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
}

.quiz-actions {
  justify-content: space-between;
}

.quiz-actions .btn:last-child {
  margin-left: auto;
}

.result-card {
  overflow: hidden;
}

.result-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.result-title {
  font-size: clamp(32px, 8vw, 54px);
  line-height: 1.06;
}

.result-badge {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 999px;
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(255, 209, 223, 0.78), rgba(255, 241, 246, 0.98));
  color: var(--berry);
  font-size: 13px;
  border: 1px solid rgba(255, 143, 177, 0.14);
}

.result-score {
  min-width: 120px;
  text-align: right;
}

.score-orbit {
  width: 112px;
  height: 112px;
  margin-left: auto;
  border-radius: 36px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.88), rgba(255, 244, 248, 0.72)),
    linear-gradient(135deg, rgba(255, 111, 159, 0.14), rgba(255, 199, 133, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 28px rgba(248, 75, 137, 0.14);
}

.score-orbit::before {
  content: "❤";
  position: absolute;
  margin-top: -44px;
  font-size: 16px;
  color: rgba(248, 75, 137, 0.34);
}

.score-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-strong);
}

.score-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.summary-grid,
.zone-grid,
.ranking-grid,
.result-image-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-card p,
.info-card p,
.ranking-card p,
.zone-card p {
  margin: 10px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 209, 223, 0.72), rgba(255, 255, 255, 0.9));
  color: var(--berry);
  font-size: 13px;
}

.zone-row {
  margin-top: 14px;
}

.zone-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.zone-track {
  margin-top: 8px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 211, 229, 0.48);
  overflow: hidden;
}

.zone-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb1ca, #ff6f9f 58%, #ffc785);
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ranking-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 24px rgba(234, 117, 161, 0.08);
}

.ranking-item strong {
  display: block;
  font-size: 16px;
}

.ranking-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.ranking-score {
  font-weight: 800;
  color: var(--accent-strong);
}

.footer-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.persona-gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.persona-card,
.result-image-card {
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 246, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.persona-card-image,
.result-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}

.persona-card-body,
.result-image-meta {
  padding: 12px 12px 14px;
}

.persona-card-body strong,
.result-image-meta strong {
  display: block;
  font-size: 15px;
}

.persona-card-body span,
.result-image-meta span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.result-image-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

@keyframes drift {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(-8px);
  }
}

@media (max-width: 720px) {
  #app {
    padding: 14px 14px 38px;
  }

  .hero-grid,
  .meta-grid,
  .summary-grid,
  .zone-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

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

  .result-hero {
    flex-direction: column;
  }

  .result-score {
    text-align: left;
  }

  .score-orbit {
    margin-left: 0;
  }
}
