:root {
  color-scheme: light;
  --bg: #efe3d5;
  --paper: #fffaf2;
  --paper-soft: #f8efe4;
  --ink: #292724;
  --soft-ink: #655d55;
  --muted: #998b7d;
  --line: #e3d2c2;
  --rose: #ad5961;
  --rose-deep: #8f444d;
  --teal: #367a73;
  --gold: #b98345;
  --blue: #607d99;
  --sage: #75815d;
  --shadow: 0 24px 70px rgba(76, 55, 35, 0.12);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Microsoft YaHei", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 85% 24%, rgba(255, 245, 232, 0.82), transparent 30%),
    var(--bg);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.34;
  background-image: url("./assets/noise.svg");
  background-size: 220px 220px;
}

body.quiz-only .topnav,
body.quiz-only .footer {
  display: none;
}

body.quiz-only .topbar {
  display: flex;
  justify-content: center;
  padding: 20px 24px 8px;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

body.quiz-only .brand {
  gap: 12px;
}

body.quiz-only .brand-mark {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

body.quiz-only .brand-copy strong {
  font-size: 24px;
}

body.quiz-only .brand-copy small {
  display: none;
}

body.quiz-only .page-shell {
  min-height: 100vh;
  margin-top: 0;
  border-radius: 0;
  border-right: 0;
  border-left: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100% - 32px, 1480px);
  min-height: calc(100vh - 32px);
  margin: 16px auto 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.97), rgba(255, 250, 242, 0.91)),
    radial-gradient(circle at 79% 38%, rgba(221, 183, 155, 0.28), transparent 30%);
  border: 1px solid rgba(228, 214, 199, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 38px;
  background: rgba(255, 250, 242, 0.88);
  border-bottom: 1px solid rgba(228, 214, 199, 0.78);
  box-shadow: 0 14px 35px rgba(88, 64, 39, 0.07);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  background: linear-gradient(145deg, #1f1e1d, #3b3935);
  color: #fff;
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(33, 31, 28, 0.18);
  font-family: Inter, Arial, sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 1.5vw, 20px);
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
}

.topnav a {
  position: relative;
  padding: 10px 0 13px;
  color: var(--ink);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 800;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--rose);
  border-radius: 999px;
}

main {
  position: relative;
  padding: 0 clamp(32px, 6vw, 92px) 72px;
}

main::after {
  position: absolute;
  right: 0;
  bottom: -86px;
  left: 0;
  height: 175px;
  content: "";
  background: rgba(255, 255, 255, 0.36);
  border-radius: 50% 50% 0 0 / 68% 68% 0 0;
  pointer-events: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(330px, 0.66fr);
  gap: clamp(28px, 5vw, 76px);
  min-height: 720px;
  align-items: center;
  padding: clamp(48px, 8vw, 88px) 0 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 32px;
  color: var(--rose);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 900;
  letter-spacing: 0.06em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(54px, 7.3vw, 112px);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: 0;
}

.title-rule {
  display: block;
  width: 78px;
  height: 5px;
  margin: 0 0 30px;
  background: var(--rose);
  border-radius: 999px;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--soft-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-width: 172px;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 26px;
  border: 1px solid rgba(156, 122, 92, 0.34);
  border-radius: 10px;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 900;
}

.button.primary {
  background: linear-gradient(135deg, #bd6970, #a64f59);
  color: #fff;
  box-shadow: 0 16px 35px rgba(174, 90, 96, 0.22);
}

.button.secondary {
  background: rgba(255, 250, 242, 0.68);
  color: var(--ink);
}

.button.dark {
  background: #2a2722;
  color: #fff;
}

.hero-art {
  position: relative;
  min-height: 570px;
}

.arch {
  position: absolute;
  right: 0;
  bottom: 86px;
  width: 74%;
  height: 74%;
  background: rgba(222, 193, 162, 0.45);
  border-radius: 48% 48% 0 0;
}

.sun {
  position: absolute;
  right: 26%;
  bottom: 0;
  width: 62%;
  aspect-ratio: 1;
  background: rgba(220, 163, 142, 0.34);
  border-radius: 50%;
}

.dot-grid {
  position: absolute;
  top: 44%;
  left: 2%;
  width: 150px;
  height: 150px;
  opacity: 0.58;
  background-image: radial-gradient(rgba(170, 123, 91, 0.5) 2px, transparent 2px);
  background-size: 18px 18px;
}

.hero-art img {
  position: absolute;
  right: 5%;
  bottom: 2%;
  width: 55%;
  min-width: 220px;
  opacity: 0.58;
}

.values {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin: -8px auto 70px;
  color: var(--soft-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.2em;
}

.values::before,
.values::after {
  width: min(15vw, 140px);
  height: 1px;
  content: "";
  background: var(--line);
}

.shield {
  color: var(--rose);
  font-size: 30px;
  letter-spacing: 0;
}

.quiz-panel,
.notice-panel,
.route-panel,
.submission-panel,
.plain-page {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.quiz-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  min-height: calc(100vh - 94px);
  align-items: start;
  justify-items: center;
  margin-bottom: 54px;
  padding: clamp(24px, 5vw, 46px) clamp(18px, 4vw, 58px) 48px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(248, 239, 228, 0.82)),
    radial-gradient(circle at 90% 12%, rgba(173, 89, 97, 0.13), transparent 34%);
}

.quiz-intro {
  width: min(100%, 760px);
  text-align: center;
}

.quiz-intro h1 {
  max-width: 760px;
  margin: 0 auto 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
}

.quiz-intro p {
  margin-bottom: 0;
  color: var(--soft-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

.quiz-subtitle {
  font-size: 16px;
}

.browse-link {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 14px;
  background: transparent;
  color: var(--rose-deep);
  border: 1px solid rgba(173, 89, 97, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-weight: 900;
}

.browse-link:hover {
  background: rgba(173, 89, 97, 0.1);
}

.quiz-shell {
  width: min(100%, 760px);
  min-height: 0;
  padding: 26px;
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.quiz-kicker {
  margin-bottom: 10px;
  color: var(--rose);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.quiz-picker h3,
.question-block h3,
.quiz-result h3 {
  margin-bottom: 18px;
  font-size: clamp(25px, 2.8vw, 36px);
}

.quiz-version-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quiz-version-card {
  min-height: 190px;
  padding: 18px;
  text-align: left;
  background: rgba(248, 239, 228, 0.74);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.quiz-version-card:hover,
.answer-option:hover {
  border-color: rgba(173, 89, 97, 0.5);
  box-shadow: 0 16px 32px rgba(76, 55, 35, 0.09);
  transform: translateY(-1px);
}

.quiz-version-card span,
.quiz-version-card strong,
.quiz-version-card small {
  display: block;
}

.quiz-version-card span {
  margin-bottom: 16px;
  color: var(--rose);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.quiz-version-card strong {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.quiz-version-card small {
  color: var(--soft-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.version-list {
  gap: 12px;
}

.version-option {
  width: 100%;
  text-align: left;
}

.version-option strong,
.version-option small {
  display: block;
}

.version-option strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
}

.version-option small {
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.5;
}

.quiz-topline,
.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-topline {
  margin-bottom: 16px;
  color: var(--muted);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.progress-track {
  height: 9px;
  margin-bottom: 28px;
  overflow: hidden;
  background: rgba(227, 210, 194, 0.72);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  border-radius: inherit;
  transition: width 0.2s ease;
}

.question-hint {
  margin: -6px 0 18px;
  color: var(--soft-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

.answer-option {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.48;
}

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

.answer-letter {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: rgba(173, 89, 97, 0.1);
  color: var(--rose-deep);
  border-radius: 50%;
  font-family: Inter, Arial, sans-serif;
  font-weight: 900;
}

.answer-option:has(input:checked) {
  background: rgba(173, 89, 97, 0.11);
  border-color: var(--rose);
}

.answer-option:has(input:checked) .answer-letter {
  background: var(--rose);
  color: #fff;
}

.quiz-actions {
  margin-top: 24px;
}

.ghost-button {
  min-height: 46px;
  padding: 0 16px;
  background: rgba(255, 250, 242, 0.58);
  color: var(--soft-ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-weight: 900;
}

.ghost-button:disabled,
.quiz-next:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.quiz-result p {
  color: var(--soft-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

.result-list {
  margin-top: 20px;
  padding: 20px;
  background: rgba(248, 239, 228, 0.74);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.result-list ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: var(--soft-ink);
}

.result-goal {
  margin-top: 18px;
  margin-bottom: 0;
}

.notice-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.66fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 68px;
  padding: 30px;
  background: rgba(255, 250, 242, 0.74);
}

.notice-panel .eyebrow,
.section-head .eyebrow,
.route-panel .eyebrow,
.submission-panel .eyebrow,
.plain-page .eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.notice-copy p,
.route-copy p,
.submission-panel p,
.plain-page p,
.section-note {
  color: var(--soft-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-actions a {
  padding: 9px 12px;
  background: rgba(173, 89, 97, 0.1);
  color: var(--rose-deep);
  border-radius: 999px;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-weight: 900;
}

.section-head {
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
}

.section-note {
  max-width: 720px;
  margin-top: 12px;
  margin-bottom: 0;
}

.section-grid,
.article-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.section-card,
.article-card {
  position: relative;
  min-height: 230px;
  padding: 22px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.86);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.section-card::before,
.article-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  content: "";
  background: var(--rose);
}

.section-card:hover,
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(76, 55, 35, 0.1);
}

.section-index {
  margin-bottom: 24px;
  color: rgba(41, 39, 36, 0.2);
  font-family: Inter, Arial, sans-serif;
  font-size: 42px;
  font-weight: 900;
}

.card-label {
  margin-bottom: 8px;
  color: var(--rose);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-card p,
.article-card p {
  color: var(--soft-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.72;
}

.coming-soon {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 10px;
  background: rgba(239, 229, 216, 0.78);
  color: var(--muted);
  border-radius: 999px;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.accent-rose::before {
  background: var(--rose);
}

.accent-teal::before {
  background: var(--teal);
}

.accent-gold::before {
  background: var(--gold);
}

.accent-blue::before {
  background: var(--blue);
}

.accent-sage::before {
  background: var(--sage);
}

.accent-ink::before {
  background: var(--ink);
}

.route-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 32px;
  margin: 56px 0 66px;
  padding: 34px;
  background: #282520;
  color: #fff;
}

.route-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.route-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

.route-list span {
  color: #e8c0b8;
  font-family: Inter, Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.article-card {
  min-height: 248px;
}

.article-card button {
  margin-top: 12px;
  padding: 10px 14px;
  background: #292724;
  color: #fff;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-weight: 900;
}

.submission-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 56px 0;
  padding: 34px;
  background: rgba(255, 250, 242, 0.82);
}

.submission-panel h2 {
  margin-bottom: 14px;
}

.submission-panel p {
  max-width: 780px;
  margin-bottom: 0;
}

.plain-page {
  margin-top: 24px;
  padding: 32px;
  background: rgba(255, 250, 242, 0.72);
}

.plain-page h2 {
  margin-bottom: 18px;
}

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

.plain-grid article {
  padding: 20px;
  background: rgba(248, 239, 228, 0.68);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.plain-grid p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 32px, 1480px);
  margin: 0 auto;
  padding: 24px 8px 34px;
  color: var(--muted);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.article-dialog {
  width: min(900px, calc(100% - 28px));
  max-height: min(82vh, 900px);
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 26px 90px rgba(41, 39, 36, 0.26);
}

.article-dialog::backdrop {
  background: rgba(41, 39, 36, 0.34);
  backdrop-filter: blur(3px);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: #292724;
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.article-view {
  max-height: min(82vh, 900px);
  padding: 48px clamp(24px, 5vw, 66px);
  overflow: auto;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.article-view h1 {
  margin-bottom: 24px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(34px, 5vw, 58px);
}

.article-view h2 {
  margin: 30px 0 12px;
  font-size: 24px;
}

.article-view p,
.article-view li {
  color: var(--soft-ink);
  font-size: 17px;
  line-height: 1.9;
}

.article-view ul {
  padding-left: 1.2em;
}

.article-view strong {
  color: var(--ink);
}

.loading {
  color: var(--muted);
}

/* Visual refresh: quiz-first home */
body {
  background:
    radial-gradient(circle at 10% 22%, rgba(255, 255, 255, 0.96), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(244, 229, 214, 0.9), transparent 34%),
    #f3ebdf;
}

body.quiz-only .topbar,
body.quiz-only .topnav {
  display: none;
}

body.browse-mode .quiz-shell,
body.quiz-only .resume-test {
  display: none;
}

body.browse-mode .resume-test {
  display: inline-flex;
}

body.browse-mode .topbar {
  display: grid;
}

body.browse-mode .page-shell {
  overflow: visible;
}

body.browse-mode .quiz-panel {
  min-height: auto;
  padding-top: 56px;
  padding-bottom: 46px;
  overflow: visible;
}

body.browse-mode .quiz-intro {
  padding-top: 8px;
  text-align: center;
}

body.browse-mode .quiz-intro h1 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 1.18;
}

body.browse-mode .quiz-subtitle {
  margin-bottom: 22px;
}

body.browse-mode .browse-link {
  display: none;
}

body.quiz-only .route-preview {
  display: none;
}

body.browse-mode .route-preview {
  display: grid;
}

.route-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 920px);
  margin: 30px auto 0;
}

.route-preview article {
  min-height: 132px;
  padding: 18px;
  text-align: left;
  background: rgba(255, 252, 246, 0.72);
  border: 1px solid rgba(221, 198, 178, 0.82);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(92, 69, 47, 0.07);
}

.route-preview span,
.route-preview strong,
.route-preview p {
  display: block;
}

.route-preview span {
  margin-bottom: 18px;
  color: rgba(143, 68, 77, 0.55);
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
}

.route-preview strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.route-preview p {
  margin: 0;
  color: var(--soft-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

body.quiz-only .topbar {
  display: none;
}

body.quiz-only .page-shell {
  width: 100%;
  min-height: 100vh;
  margin-top: 0;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(247, 238, 226, 0.94)),
    radial-gradient(circle at 0% 34%, rgba(214, 194, 174, 0.34), transparent 24%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.quiz-only main {
  padding: 0;
}

body.quiz-only .brand {
  gap: 14px;
}

body.quiz-only .brand-mark,
.brand-mark {
  position: relative;
  width: 38px;
  height: 34px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: 4px;
  width: 17px;
  height: 25px;
  content: "";
  background: linear-gradient(145deg, #9f4b55, #b96568);
  border-radius: 4px 2px 2px 4px;
  box-shadow: 0 5px 12px rgba(159, 75, 85, 0.18);
}

.brand-mark::before {
  left: 1px;
  transform: skewY(4deg);
}

.brand-mark::after {
  right: 1px;
  border-radius: 2px 4px 4px 2px;
  transform: skewY(-4deg);
}

body.quiz-only .brand-copy strong,
.brand-copy strong {
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 30px);
}

body.quiz-only .brand-copy small,
.brand-copy small {
  display: block;
  color: var(--soft-ink);
  font-size: 13px;
}

.topnav {
  gap: clamp(22px, 4vw, 58px);
}

.topnav a {
  color: #3c332f;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.topnav a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--rose);
  border-radius: 999px;
}

.topnav .nav-cta {
  min-width: 106px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ad5961, #8f444d);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(143, 68, 77, 0.18);
}

.topnav .nav-cta::after {
  display: none;
}

.quiz-panel {
  position: relative;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 100vh;
  gap: 20px;
  align-items: start;
  justify-items: center;
  margin: 0;
  padding: clamp(42px, 7vw, 74px) clamp(18px, 4vw, 40px) 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 42%, rgba(255, 255, 255, 0.8), transparent 28%),
    radial-gradient(circle at 68% 20%, rgba(255, 255, 255, 0.72), transparent 31%),
    linear-gradient(112deg, rgba(250, 242, 231, 0.95), rgba(242, 229, 215, 0.72));
  border: 0;
  border-radius: 0;
}

.quiz-intro {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  text-align: center;
}

.quiz-intro .eyebrow {
  display: none;
}

.quiz-intro h1 {
  max-width: 620px;
  margin: 0 auto 10px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15;
}

.quiz-subtitle {
  max-width: 620px;
  margin: 0 auto;
  color: #4c4540;
  font-size: 16px;
  line-height: 1.6;
}

.browse-link {
  margin-top: 14px;
}

.quiz-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  justify-self: center;
  padding: clamp(26px, 3.2vw, 38px);
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid rgba(212, 190, 170, 0.9);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(92, 69, 47, 0.14);
  backdrop-filter: blur(14px);
}

.quiz-picker h3,
.question-block h3 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
}

.quiz-kicker {
  color: var(--rose-deep);
  letter-spacing: 0.08em;
}

.answer-list {
  gap: 14px;
}

.answer-option {
  position: relative;
  min-height: 76px;
  grid-template-columns: 48px 1fr;
  padding: 16px 52px 16px 18px;
  background: rgba(255, 251, 245, 0.82);
  border-color: #ddc6b2;
  border-radius: 11px;
  color: var(--ink);
}

.answer-option::after {
  position: absolute;
  top: 50%;
  right: 20px;
  content: "›";
  color: var(--soft-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  transform: translateY(-50%);
}

.answer-letter {
  width: 38px;
  height: 38px;
  background: #f4e4df;
  color: var(--rose-deep);
  font-size: 18px;
}

.version-option strong {
  color: var(--ink);
  font-size: 20px;
}

.version-option small {
  margin-top: 2px;
  color: var(--soft-ink);
}

.answer-option:has(input:checked),
.answer-option:hover {
  background: rgba(255, 247, 241, 0.94);
  border-color: var(--rose);
}

.answer-option:has(input:checked) .answer-letter,
.answer-option:hover .answer-letter {
  background: var(--rose);
  color: #fff;
}

.progress-track {
  background: rgba(221, 198, 178, 0.65);
}

.content-area {
  padding: 0 clamp(32px, 6vw, 92px) 72px;
}

@media (max-width: 1180px) {
  body.quiz-only .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.quiz-only .brand {
    justify-content: center;
  }

  body.quiz-only .topnav {
    justify-content: center;
  }

  .quiz-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

  .quiz-intro {
    text-align: center;
  }

  .quiz-intro h1,
  .quiz-subtitle {
    margin-right: auto;
    margin-left: auto;
  }

  .intro-actions,
  .trust-row {
    justify-content: center;
  }

  .quiz-shell {
    justify-self: center;
  }

  .topbar,
  .hero,
  .quiz-panel,
  .notice-panel,
  .route-panel,
  .submission-panel {
    grid-template-columns: 1fr;
  }

  .topnav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 420px;
  }

  .section-grid,
  .article-grid,
  .plain-grid,
  .quiz-version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.quiz-only .topbar {
    padding: 14px 14px 6px;
  }

  body.quiz-only .topnav {
    display: none;
  }

  body.quiz-only .brand-copy strong {
    font-size: 22px;
  }

  .quiz-panel {
    min-height: calc(100vh - 72px);
    padding: 24px 16px 36px;
  }

  .quiz-intro h1 {
    font-size: 46px;
  }

  .quiz-subtitle {
    font-size: 16px;
  }

  .intro-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .route-preview {
    grid-template-columns: 1fr;
  }

  .answer-option {
    min-height: 68px;
    grid-template-columns: 42px 1fr;
    padding-right: 44px;
  }

  .answer-letter {
    width: 34px;
    height: 34px;
  }

  .page-shell {
    width: min(100% - 18px, 1480px);
    margin-top: 9px;
  }

  .topbar {
    padding: 18px;
  }

  .brand {
    gap: 14px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    font-size: 21px;
  }

  .topnav {
    gap: 22px;
    overflow-x: auto;
  }

  .topnav a {
    white-space: nowrap;
    font-size: 16px;
  }

  main {
    padding: 0 20px 44px;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-actions {
    gap: 12px;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .hero-art {
    min-height: 300px;
  }

  .section-grid,
  .article-grid,
  .plain-grid,
  .quiz-version-grid {
    grid-template-columns: 1fr;
  }

  .quiz-panel {
    padding: 22px;
  }

  .quiz-shell {
    padding: 18px;
  }

  .quiz-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-actions .button,
  .quiz-actions .ghost-button {
    width: 100%;
  }

  .values {
    flex-wrap: wrap;
    letter-spacing: 0.12em;
  }

  .values::before,
  .values::after {
    display: none;
  }

  .route-list li {
    grid-template-columns: 44px 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
