:root {
  --bg: #f5eee1;
  --bg-deep: #efe4d3;
  --panel: rgba(255, 251, 245, 0.92);
  --panel-strong: #fffaf2;
  --ink: #1e1814;
  --muted: #6a5e56;
  --line: rgba(30, 24, 20, 0.1);
  --accent: #7d2d2d;
  --accent-strong: #511717;
  --accent-soft: rgba(125, 45, 45, 0.08);
  --green: #24453f;
  --green-soft: rgba(36, 69, 63, 0.08);
  --shadow: 0 22px 60px rgba(57, 37, 19, 0.11);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(125, 45, 45, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(36, 69, 63, 0.12), transparent 30%),
    linear-gradient(180deg, #faf5ec, var(--bg) 52%, var(--bg-deep));
  font-family: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 64px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.hero-card,
.intro-panel,
.teaser-card,
.quiz-shell,
.result-copy-card,
.result-poster,
.detail-card,
.dimension-card,
.share-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: var(--radius-xl);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(125, 45, 45, 0.12), rgba(125, 45, 45, 0));
}

.hero-topline,
.panel-label,
.question-tag,
.question-index,
.result-pill,
.poster-code,
.stamp {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-topline,
.panel-label {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.hero-kicker {
  margin-top: 12px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

.hero-card h1,
.result-copy-card h3,
.dimension-head h3,
.share-card blockquote,
.result-poster h3 {
  font-family: "Source Han Serif SC", "Songti SC", "STSong", serif;
}

.hero-card h1 {
  margin-top: 16px;
  max-width: 880px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.02;
}

.hero-sub {
  margin-top: 18px;
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.hero-actions {
  margin-top: 26px;
}

.hero-footnotes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.hero-footnotes span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.btn {
  padding: 14px 20px;
  border-radius: 999px;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #fff8f0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 30px rgba(81, 23, 23, 0.22);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.intro-grid,
.detail-grid,
.result-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.intro-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.intro-grid.is-single {
  grid-template-columns: 1fr;
}

.intro-panel,
.teaser-card,
.detail-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.intro-panel h2 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.25;
}

.intro-panel p,
.detail-card p,
.dimension-item p,
.copy-feedback,
.result-copy-card p {
  color: var(--muted);
  line-height: 1.85;
}

.bullet-list {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.teaser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.teaser-card h3 {
  margin-top: 8px;
  font-size: 22px;
}

.teaser-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.quiz-shell,
.result-shell {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.quiz-header,
.result-topbar,
.dimension-head,
.question-meta,
.dimension-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.quiz-header h2,
.result-topbar h2 {
  margin-top: 8px;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.15;
}

.progress-track {
  margin-top: 18px;
  height: 12px;
  border-radius: 999px;
  background: rgba(30, 24, 20, 0.08);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--accent));
  transition: width 0.24s ease;
}

.progress-copy,
.result-pill {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(125, 45, 45, 0.15);
  font-size: 13px;
  font-weight: 700;
}

.question-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.question-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.question-card h3 {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.7;
}

.question-index,
.question-tag {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.option-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.option-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 24, 20, 0.1);
  background: rgba(255, 255, 255, 0.84);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 69, 63, 0.35);
}

.option-card.is-selected {
  border-color: rgba(125, 45, 45, 0.38);
  background: rgba(125, 45, 45, 0.07);
}

.option-card input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.option-code {
  display: inline-flex;
  justify-content: center;
  width: 22px;
  color: var(--accent-strong);
  font-weight: 700;
}

.quiz-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.quiz-footer p {
  flex: 1;
  min-width: 280px;
  color: var(--muted);
  line-height: 1.8;
}

.result-poster,
.result-copy-card,
.dimension-card,
.share-card {
  border-radius: var(--radius-xl);
}

.verdict-sheet {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(243, 232, 216, 0.94)),
    repeating-linear-gradient(
      0deg,
      rgba(30, 24, 20, 0.02) 0,
      rgba(30, 24, 20, 0.02) 1px,
      transparent 1px,
      transparent 34px
    );
  box-shadow: var(--shadow);
}

.verdict-sheet-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
}

.result-poster {
  position: relative;
  min-height: 340px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 232, 214, 0.94)),
    repeating-linear-gradient(
      0deg,
      rgba(30, 24, 20, 0.02) 0,
      rgba(30, 24, 20, 0.02) 1px,
      transparent 1px,
      transparent 36px
    );
}

.poster-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(52, 34, 21, 0.14);
  animation: posterFloat 7s ease-in-out infinite;
}

.sheet-copy {
  padding: 8px 4px 8px 6px;
}

.sheet-code-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 10px;
}

.sheet-code {
  color: var(--accent-strong);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.sheet-copy h3 {
  margin-top: 10px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.06;
  font-family: "Source Han Serif SC", "Songti SC", "STSong", serif;
}

.sheet-badge {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(125, 45, 45, 0.08);
  border: 1px solid rgba(125, 45, 45, 0.16);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sheet-short {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.sheet-verdict {
  margin-top: 18px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.26;
  color: var(--ink);
  font-family: "Source Han Serif SC", "Songti SC", "STSong", serif;
}

.sheet-body {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.sheet-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.summary-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.summary-card p {
  color: var(--muted);
  line-height: 1.8;
}

.stamp {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 10px 16px;
  border: 2px solid rgba(125, 45, 45, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  transform: rotate(-9deg);
}

@keyframes posterFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.result-copy-card {
  padding: 26px;
}

.result-copy-card h3 {
  margin-top: 10px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.15;
}

.result-copy-card p {
  margin-top: 18px;
}

.dimension-card,
.share-card {
  margin-top: 18px;
  padding: 24px;
}

.dimension-intro {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dimension-item {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.dimension-title span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dimension-meter {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(30, 24, 20, 0.08);
  overflow: hidden;
}

.dimension-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.dimension-tone {
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.dimension-item p {
  margin-top: 10px;
}

.share-card blockquote {
  margin-top: 12px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.35;
}

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

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

@media (max-width: 980px) {
  .intro-grid,
  .verdict-sheet-grid,
  .sheet-summary,
  .dimension-grid,
  .teaser {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding: 14px 0 40px;
  }

  .hero-card,
  .quiz-shell,
  .result-shell,
  .dimension-card,
  .share-card,
  .result-copy-card,
  .result-poster {
    padding: 18px;
  }

  .hero-card h1 {
    font-size: 36px;
  }

  .question-card h3 {
    font-size: 16px;
  }

  .share-card blockquote {
    font-size: 24px;
  }
}
