:root {
  --orange: #ffae5b;
  --orange-deep: #f39a40;
  --orange-pale: #fff1e2;
  --cream: #fffaf5;
  --paper: #ffffff;
  --ink: #37312d;
  --muted: #776f69;
  --line: #eadfd5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
}
button, a, input { font: inherit; }
.quiz-page {
  width: min(820px, calc(100% - 34px));
  margin: 0 auto;
  padding: 54px 0 36px;
}
.hero {
  text-align: center;
  padding: 6px 20px 58px;
}
.logo {
  display: block;
  width: 168px;
  height: auto;
  margin: 0 auto 38px;
}
h1, h2, h3 {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-weight: 500;
  margin: 0;
}
h1 {
  font-size: clamp(32px, 5.7vw, 52px);
  line-height: 1.35;
  letter-spacing: .035em;
}
.hero-lead {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .02em;
}
.hero-copy {
  margin: 0 auto;
  max-width: 650px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.quiz-section, .result-section {
  border-top: 1px solid var(--line);
  padding: 47px 0 18px;
}
.section-label {
  color: var(--orange-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  margin-bottom: 8px;
}
.quiz-section > h2, .result-section > h2 {
  font-size: clamp(22px, 4vw, 29px);
  line-height: 1.55;
  margin-bottom: 38px;
}
.question-block {
  padding: 0 0 40px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.question-title {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  margin: 0 0 18px;
}
.options {
  display: grid;
  gap: 10px;
}
.option-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.75;
  transition: background-color .18s ease, border-color .18s ease;
}
.option-label:hover { background: var(--orange-pale); }
.option-label:has(input:checked) {
  background: var(--orange-pale);
  border-color: #ffd0a3;
}
.option-label input {
  appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  border: 1px solid #c8bab0;
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.option-label input:checked { border-color: var(--orange); }
.option-label input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--orange);
}
.answer-letter {
  color: var(--orange-deep);
  font-weight: 500;
  min-width: 18px;
}
.submit-wrap { text-align: center; padding: 0 0 42px; }
.form-message {
  min-height: 24px;
  margin: 0 0 10px;
  color: var(--orange-deep);
  font-size: 13px;
}
.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border: 0;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 400;
  letter-spacing: .04em;
  transition: background-color .18s ease, transform .18s ease;
}
.main-btn:hover { background: var(--orange-deep); transform: translateY(-1px); }
.result-section { padding-top: 47px; }
.result-card {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 48px 56px;
}
.result-code {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--orange);
  border-radius: 50%;
  color: var(--orange-deep);
  font-family: Georgia, serif;
  font-size: 22px;
}
.result-card h3 {
  font-size: clamp(28px, 5vw, 39px);
  line-height: 1.45;
}
.result-kicker {
  margin: 18px 0 13px;
  font-size: 17px;
  font-weight: 400;
}
.result-copy {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 2;
  font-size: 14px;
}
.result-quote {
  max-width: 590px;
  margin: 26px auto 0;
  padding: 18px 20px;
  background: var(--orange-pale);
  line-height: 1.8;
  font-family: "Noto Serif TC", serif;
  font-size: 14px;
}
.result-tip {
  margin: 18px auto 0;
  color: var(--orange-deep);
  font-size: 13px;
  line-height: 1.8;
}
.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  margin-top: 30px;
}
.text-btn {
  border: 0;
  padding: 5px 12px;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
footer {
  text-align: center;
  color: #a39890;
  font-size: 10px;
  letter-spacing: .08em;
  padding-top: 34px;
}
@media (max-width: 640px) {
  .quiz-page { width: min(100% - 28px, 820px); padding-top: 34px; }
  .hero { padding: 0 4px 44px; }
  .logo { width: 145px; margin-bottom: 30px; }
  .hero-copy { line-height: 1.9; }
  .desktop-break { display: none; }
  .quiz-section, .result-section { padding-top: 36px; }
  .quiz-section > h2, .result-section > h2 { margin-bottom: 30px; }
  .question-block { padding-bottom: 31px; margin-bottom: 31px; }
  .question-title { font-size: 16px; }
  .option-label { padding: 13px 10px; gap: 9px; }
  .result-card { padding: 38px 21px; }
  .main-btn { width: 100%; }
}
