:root {
  --bg: #fffdf8;
  --bg-soft: #fff7ee;
  --card: rgba(255, 249, 241, 0.92);
  --line: #eadfce;
  --text: #4e4843;
  --muted: #7d756d;
  --shadow: 0 18px 45px rgba(128, 109, 92, 0.12);
  --green: #cee3d0;
  --pink: #f3d7d9;
  --yellow: #f6e5b8;
  --blue: #d7e4f4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, #fff7ea, transparent 28%),
    radial-gradient(circle at right 15% top 20%, #eef7ef, transparent 22%),
    linear-gradient(180deg, #fffdf8 0%, #fff8f0 100%);
  color: var(--text);
  font-family:
    "Microsoft YaHei UI",
    "PingFang SC",
    "Segoe UI",
    sans-serif;
}

button {
  font: inherit;
}

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

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

.bg-orb {
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.75;
}

.bg-orb-a {
  top: -40px;
  left: -50px;
  width: 220px;
  height: 220px;
  background: rgba(243, 215, 217, 0.55);
}

.bg-orb-b {
  right: -60px;
  bottom: 90px;
  width: 240px;
  height: 240px;
  background: rgba(207, 232, 214, 0.62);
}

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 85%, transparent 100%);
  opacity: 0.22;
}

.app-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  min-height: 820px;
  margin: 0 auto;
  border: 1px solid rgba(231, 222, 211, 0.9);
  border-radius: 36px;
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(12px);
  box-shadow:
    0 24px 60px rgba(132, 112, 95, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.screen {
  display: none;
  min-height: 820px;
  padding: 20px;
}

.screen-active {
  display: block;
  animation: fadeUp 0.45s ease;
}

.card {
  border: 1px solid rgba(233, 225, 214, 0.95);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.topline {
  color: #92887d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-height: 780px;
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(244, 215, 217, 0.55), transparent 32%),
    radial-gradient(circle at bottom left, rgba(207, 227, 208, 0.48), transparent 28%),
    rgba(255, 249, 241, 0.95);
}

.hero-copy-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-copy-panel h1 {
  margin: 14px 0 14px;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  max-width: 8.4em;
}

.hero-copy-panel-full {
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 6px;
  text-align: center;
}

.hero-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 42em;
}

.hero-note {
  margin-bottom: 24px;
  color: #645c56;
  font-size: 15px;
  line-height: 1.65;
}

.hero-footnote {
  margin: 14px 0 0;
  color: #90867d;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-actions .button {
  width: min(420px, calc(100% - 40px));
  height: 72px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(145, 176, 149, 0.34);
}

.hero-status {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.hero-copy-panel-full .info-pills {
  justify-content: center;
}

.hero-copy-panel-full .topline {
  text-align: center;
}

.hero-copy-panel-full .hero-copy,
.hero-copy-panel-full .hero-note,
.hero-copy-panel-full .hero-footnote {
  margin-left: auto;
  margin-right: auto;
}

.hero-gallery-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(233, 225, 214, 0.95);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 240, 230, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-gallery-head span {
  color: #8d847b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-gallery-head-flat {
  margin-bottom: 14px;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.hero-gallery-flat {
  gap: 18px;
}

.result-teaser {
  position: relative;
  overflow: hidden;
  padding: 12px 12px 10px;
  border: 1px solid rgba(233, 225, 214, 0.95);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 241, 0.92));
  box-shadow: 0 12px 28px rgba(129, 110, 93, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.result-teaser:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(129, 110, 93, 0.12);
}

.teaser-swatch {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.75);
}

.swatch-green {
  background: #cee3d0;
}

.swatch-blue {
  background: #d7e4f4;
}

.swatch-pink {
  background: #f3d7d9;
}

.swatch-yellow {
  background: #f6e5b8;
}

.swatch-lilac {
  background: #eadcf1;
}

.swatch-coral {
  background: #f0d2c7;
}

.swatch-butter {
  background: #f4dec2;
}

.result-teaser img,
.result-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.teaser-meta {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.teaser-meta strong {
  font-size: 14px;
  line-height: 1.35;
}

.teaser-meta span {
  color: #857b72;
  font-size: 12px;
}

.hero-badge {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(233, 225, 214, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #756c65;
  font-size: 12px;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.info-pills span,
.question-tag,
.result-tags span {
  padding: 9px 14px;
  border: 1px solid rgba(233, 225, 214, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #716861;
  font-size: 13px;
}

.button {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: linear-gradient(180deg, #d8ebd9 0%, #c8dfcb 100%);
  color: #465248;
  box-shadow: 0 12px 22px rgba(145, 176, 149, 0.28);
  font-weight: 700;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: #6f665e;
  border: 1px solid rgba(233, 225, 214, 0.95);
}

.quiz-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 620px;
  margin: 0 auto;
}

.quiz-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 6px;
}

.icon-button {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(233, 225, 214, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: #6f665e;
  cursor: pointer;
}

.progress-meta {
  flex: 1;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 10px;
}

.progress-header strong {
  font-size: 21px;
}

.progress-header span {
  color: #8a8178;
  font-size: 13px;
}

.progress-track {
  overflow: hidden;
  width: 100%;
  height: 13px;
  border-radius: 999px;
  background: rgba(244, 232, 220, 0.9);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f5d8d8 0%, #d2e7d3 100%);
  transition: width 0.3s ease;
}

.question-card {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 20px;
}

.question-tag {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.82);
}

.question-card h2 {
  margin: 18px 0 22px;
  font-size: clamp(23px, 5.8vw, 27px);
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.options {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 6px;
}

.option {
  padding: 20px 18px;
  border: 1px solid rgba(233, 225, 214, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  color: #5d5650;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.option:hover {
  transform: translateY(-2px);
  border-color: #ddd0bf;
  background: rgba(255, 250, 245, 0.92);
  box-shadow: 0 10px 24px rgba(136, 118, 101, 0.08);
}

.result-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.result-card {
  padding: 22px 20px 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 28%),
    rgba(255, 248, 241, 0.95);
}

.result-head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 14px 0 16px;
}

.result-head > div:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.result-label {
  margin: 0 0 8px;
  color: #8a8178;
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 800;
  line-height: 1.35;
}

.result-head h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 56px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.01em;
  max-width: none;
  text-align: center;
}

.result-slogan {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 800;
  line-height: 1.55;
  max-width: 22em;
  text-align: center;
}

.accent-dot {
  width: 18px;
  height: 18px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.72);
}

.result-visual-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 12px 12px 6px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(251, 240, 230, 0.94)),
    #fff;
}

.result-cloud {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.9;
}

.result-cloud-a {
  top: 28px;
  left: 26px;
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.75);
}

.result-cloud-b {
  right: 16px;
  bottom: 44px;
  width: 82px;
  height: 82px;
  background: rgba(243, 215, 217, 0.38);
}

.result-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(135, 118, 101, 0.32);
  border-radius: 50%;
  color: rgba(122, 108, 95, 0.82);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  transform: rotate(12deg);
  background: rgba(255, 253, 248, 0.7);
}

.result-meta-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.meta-column {
  padding: 14px 14px 12px;
  border: 1px solid rgba(233, 225, 214, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.meta-kicker {
  display: block;
  margin-bottom: 10px;
  color: #7b7268;
  font-size: 12px;
  font-weight: 700;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-column-quote {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 247, 239, 0.72));
}

.result-quote {
  margin: 0;
  color: #635c56;
  font-size: 15px;
  line-height: 1.72;
}

.dimension-panel,
.insight-block {
  padding: 16px;
  border: 1px solid rgba(233, 225, 214, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.panel-title {
  margin-bottom: 12px;
  color: #776f67;
  font-size: 13px;
  font-weight: 700;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.panel-head .panel-title {
  margin-bottom: 0;
}

.panel-note {
  color: #91867a;
  font-size: 11px;
  text-align: right;
}

.dimension-bars {
  display: grid;
  gap: 14px;
}

.radar-shell {
  display: grid;
  gap: 14px;
}

.radar-svg {
  width: 100%;
  max-width: 360px;
  height: 360px;
  margin: 0 auto;
  display: block;
}

.radar-grid-line {
  fill: none;
  stroke: rgba(210, 196, 181, 0.7);
  stroke-width: 1;
}

.radar-axis-line {
  stroke: rgba(216, 203, 189, 0.85);
  stroke-width: 1;
}

.radar-area {
  fill: rgba(206, 227, 208, 0.38);
  stroke: rgba(132, 175, 138, 0.95);
  stroke-width: 2;
}

.radar-point {
  fill: rgba(132, 175, 138, 1);
}

.radar-label {
  fill: #7c7269;
  font-size: 12px;
}

.radar-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(233, 225, 214, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.radar-legend-item span,
.radar-legend-item strong {
  font-size: 13px;
}

.radar-legend-item strong {
  color: #5d5650;
}

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

.insight-block p {
  margin: 0;
  color: #645d57;
  line-height: 1.75;
}

.result-actions {
  display: grid;
  gap: 10px;
}

.result-footer-note {
  margin-top: 14px;
  color: #91867b;
  font-size: 12px;
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding: 12px;
  }

  .screen {
    min-height: 780px;
    padding: 16px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
    gap: 18px;
  }

  .hero-copy-panel h1 {
    font-size: 28px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-copy-panel-full {
    align-items: center;
    margin: 0;
    text-align: center;
  }

  .hero-copy-panel-full .info-pills,
  .hero-actions {
    justify-content: center;
  }

  .hero-status {
    justify-content: center;
  }

  .hero-actions .button {
    width: calc(100% - 8px);
    height: 60px;
    font-size: 20px;
    letter-spacing: 0.05em;
    border-radius: 20px;
  }

  .hero-copy-panel-full .hero-copy,
  .hero-copy-panel-full .hero-note,
  .hero-copy-panel-full .hero-footnote {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy-panel-full .topline,
  .hero-copy-panel-full h1,
  .hero-copy-panel-full .hero-copy,
  .hero-copy-panel-full .hero-note {
    text-align: center;
  }

  .hero-copy-panel h1 {
    max-width: 9em;
  }

  .hero-gallery-panel {
    padding: 14px;
    border-radius: 24px;
  }

  .hero-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .question-card {
    min-height: 590px;
  }

  .options {
    gap: 12px;
    justify-content: flex-start;
    padding-top: 6px;
  }

  .question-card h2 {
    font-size: 22px;
  }

  .result-head h2 {
    font-size: 25px;
  }

  .result-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .result-label,
  .result-slogan {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .result-head h2,
  .result-slogan {
    max-width: none;
  }

  .accent-dot {
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .app-frame {
    width: min(100%, 760px);
  }

  .hero-copy-panel {
    max-width: 560px;
  }
}

@media (min-width: 981px) {
  .hero-copy-panel-full {
    max-width: 820px;
  }
}
