:root {
  --bg: #f4ede3;
  --paper: rgba(255, 249, 240, 0.78);
  --card: rgba(88, 47, 36, 0.92);
  --card-soft: rgba(255, 255, 255, 0.72);
  --line: rgba(88, 47, 36, 0.12);
  --text: #3f241b;
  --text-soft: #6e5247;
  --accent: #b25b30;
  --accent-dark: #7c3517;
  --accent-pale: #efd2bf;
  --ok: #355f4b;
  --shadow: 0 24px 60px rgba(80, 49, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(178, 91, 48, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(83, 120, 94, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f0e7 0%, #efe4d6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.25;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand h1,
.brand h2,
.brand p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.app-shell {
  min-height: calc(100vh - 120px);
}

.screen {
  animation: fade-in 260ms ease;
}

.home-screen {
  display: grid;
  gap: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero__copy,
.hero__card,
.panel,
.question-sidebar,
.question-panel,
.result-card {
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: 42px;
  border-radius: 32px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero__copy h2,
.panel h2,
.result-card h2,
.question-panel h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.12;
}

.hero__text,
.result-summary {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}

.hero__meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero__meta span,
.tag-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(178, 91, 48, 0.14);
}

.hero__cta,
.panel__actions,
.question-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__card,
.question-sidebar,
.result-card {
  padding: 30px;
  border-radius: 28px;
  background: var(--card);
  color: #fff6ef;
}

.hero__card-label,
.question-index {
  margin: 0 0 12px;
  color: rgba(255, 246, 239, 0.72);
}

.hero__card h3,
.panel h3,
.report-panel h3 {
  margin: 0;
  font-size: 28px;
}

.hero__pulse {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero__pulse span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 246, 239, 0.9);
  animation: pulse 1.8s infinite ease-in-out;
}

.hero__pulse span:nth-child(2) {
  animation-delay: 0.15s;
}

.hero__pulse span:nth-child(3) {
  animation-delay: 0.3s;
}

.hero__list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: rgba(255, 246, 239, 0.88);
  line-height: 1.9;
}

.trust-strip,
.story-grid,
.preview-grid {
  display: grid;
  gap: 18px;
}

.trust-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card {
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.trust-card__label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

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

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

.story-card p:last-child,
.preview-card p:last-child,
.faq-list p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.preview-card {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(247, 232, 218, 0.76)),
    var(--paper);
}

.faq-panel {
  background: rgba(255, 248, 240, 0.9);
}

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

.faq-list strong {
  display: block;
  margin-bottom: 10px;
}

.panel-screen,
.result-screen {
  display: grid;
  gap: 24px;
}

.panel {
  padding: 36px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.rule-list {
  margin: 24px 0 0;
  padding-left: 20px;
  line-height: 2;
  color: var(--text-soft);
}

.question-screen {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

.question-panel {
  padding: 36px;
  border-radius: 30px;
  background: rgba(255, 250, 244, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.question-panel__head {
  margin-bottom: 24px;
}

.question-panel__head h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.progress__track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd0b4 0%, #fff1df 100%);
  transition: width 180ms ease;
}

.progress span,
#progress-text {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255, 246, 239, 0.82);
}

.status-card {
  margin-top: 26px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  line-height: 1.7;
}

.answers {
  display: grid;
  gap: 14px;
}

.answer-card {
  padding: 18px 18px 18px 20px;
  border-radius: 22px;
  background: var(--card-soft);
  border: 1px solid transparent;
  color: var(--text);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.answer-card:hover {
  transform: translateY(-1px);
  border-color: rgba(178, 91, 48, 0.34);
}

.answer-card.is-selected {
  border-color: rgba(178, 91, 48, 0.75);
  box-shadow: 0 12px 24px rgba(178, 91, 48, 0.14);
  background: #fff8f1;
}

.answer-card__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  border: 1px solid rgba(178, 91, 48, 0.14);
}

.ghost-button {
  background: transparent;
  border: 1px solid rgba(63, 36, 27, 0.12);
  color: var(--text);
}

.result-screen {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.result-score {
  margin: 18px 0 0;
  font-size: 22px;
  color: rgba(255, 246, 239, 0.82);
}

.report-panel {
  background: rgba(255, 248, 240, 0.88);
}

.module-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.module {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.module h4 {
  margin: 0 0 8px;
}

.module p {
  margin: 0;
  line-height: 1.8;
  color: var(--text-soft);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero,
  .question-screen,
  .result-screen,
  .trust-strip,
  .story-grid,
  .preview-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 16px;
  }

  .hero__copy,
  .hero__card,
  .panel,
  .question-sidebar,
  .question-panel,
  .result-card {
    padding: 24px;
  }
}
