:root {
  --bg: #f3efe5;
  --paper: rgba(255, 250, 242, 0.84);
  --panel: rgba(255, 247, 234, 0.92);
  --text: #22170f;
  --muted: #6c5748;
  --line: rgba(86, 54, 31, 0.14);
  --accent: #d55d2e;
  --accent-deep: #8f2f17;
  --accent-soft: #f2b36e;
  --safe: #287457;
  --mid: #b67b1d;
  --danger: #a32c2c;
  --shadow: 0 18px 50px rgba(79, 43, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(223, 145, 74, 0.26), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(186, 81, 36, 0.18), transparent 20%),
    linear-gradient(135deg, #efe4d0 0%, #f6f1e7 45%, #efe7d8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(80, 45, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 45, 25, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 70%);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-card,
.quiz-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.eyebrow,
.section-kicker,
.signal-label {
  margin: 0 0 10px;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero h1,
.section-heading h2,
.result-summary h3,
.verdict-box h4 {
  font-family: "ZCOOL XiaoWei", serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.04;
}

.hero-text {
  margin: 18px 0 20px;
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--muted);
}

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

.hero-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(143, 47, 23, 0.16);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.93rem;
}

.hero-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(155deg, rgba(213, 93, 46, 0.92), rgba(110, 28, 16, 0.96)),
    var(--panel);
  color: #fff6ef;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -28px;
  top: -24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.signal strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.hero-card p {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  line-height: 1.75;
  color: rgba(255, 246, 239, 0.9);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.quiz-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.question-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.question-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.question-card p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.option-item {
  display: block;
}

.option-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-item span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(107, 73, 49, 0.12);
  background: rgba(255, 253, 249, 0.92);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
  line-height: 1.6;
}

.option-item span:hover {
  transform: translateY(-1px);
  border-color: rgba(213, 93, 46, 0.5);
}

.option-item input:checked + span {
  border-color: rgba(213, 93, 46, 0.9);
  background: rgba(255, 233, 214, 0.95);
  box-shadow: 0 10px 24px rgba(188, 92, 32, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

.primary-btn,
.ghost-btn {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), #e58d3b);
  color: #fff;
  box-shadow: 0 16px 28px rgba(213, 93, 46, 0.22);
}

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

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

.result-panel {
  position: sticky;
  top: 18px;
  align-self: start;
}

.result-placeholder,
.verdict-box,
.dimension-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.result-placeholder {
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  line-height: 1.8;
  color: var(--muted);
}

.hidden {
  display: none;
}

.score-ring {
  width: 170px;
  height: 170px;
  margin: 24px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 249, 240, 0.92) 0 56%, transparent 57%),
    conic-gradient(var(--danger) 0deg, rgba(163, 44, 44, 0.1) 0deg);
  box-shadow: inset 0 0 0 1px rgba(82, 45, 24, 0.12);
}

.score-ring span {
  display: block;
  font-size: 2.7rem;
  font-weight: 800;
}

.score-ring small {
  display: block;
  margin-top: -10px;
  color: var(--muted);
}

.result-summary {
  text-align: center;
}

.risk-label {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.result-summary h3 {
  margin: 8px 0 12px;
  font-size: 1.9rem;
}

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

.dimension-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.dimension-item {
  padding: 14px;
  border-radius: 18px;
}

.dimension-item strong,
.dimension-item span {
  display: block;
}

.dimension-item strong {
  font-size: 0.98rem;
}

.dimension-item span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.93rem;
}

.verdict-box {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
}

.verdict-box h4 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.verdict-box p {
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }
}

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

  .hero-copy,
  .hero-card,
  .quiz-panel,
  .result-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
