:root {
  --paper: #f7f2ea;
  --paper-deep: #efe6d8;
  --ink: #202522;
  --muted: #66706b;
  --line: #d9d3c9;
  --green: #1e6a5b;
  --green-dark: #124d43;
  --green-soft: #dcece5;
  --orange: #c66939;
  --orange-soft: #f4ded0;
  --cream: #fffdf8;
  --shadow: 0 18px 50px rgba(52, 49, 40, .08);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 10% 0%, #fffaf2 0, var(--paper) 40rem); }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid rgba(198, 105, 57, .5); outline-offset: 3px; }

.topbar { max-width: 1180px; margin: 0 auto; padding: 24px 28px 10px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.topbar-compact { padding-bottom: 24px; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px 12px 12px 4px; background: var(--green); color: #fff; font-size: 15px; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .03em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.save-status { color: var(--muted); font-size: 12px; }
.shell { max-width: 1180px; margin: 0 auto; padding: 46px 28px 80px; }
.site-footer { max-width: 1180px; margin: 0 auto; padding: 0 28px 28px; display: flex; justify-content: space-between; color: #8a8c85; font-size: 11px; }
.eyebrow, .card-kicker { color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .11em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 790px; margin: 16px 0 20px; font-size: clamp(38px, 6vw, 74px); line-height: 1.1; letter-spacing: -.06em; font-weight: 600; }
h1 em { color: var(--green); font-family: 'Songti SC', 'STSong', 'Noto Serif CJK SC', serif; font-style: normal; font-weight: 600; letter-spacing: -.03em; }
h2 { font-size: 21px; line-height: 1.35; letter-spacing: -.03em; }
h3 { margin: 0; font-size: 14px; }
p { color: var(--muted); line-height: 1.8; }
.hero-lede { max-width: 660px; margin-bottom: 30px; font-size: 16px; }
.microcopy, .nav-help { font-size: 12px; color: #7d8179; }
.hero-actions, .download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.primary-button, .secondary-button, .text-button { border: 0; border-radius: 999px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.primary-button { padding: 13px 19px; color: white; background: var(--green); box-shadow: 0 8px 20px rgba(30, 106, 91, .16); }
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.secondary-button { padding: 12px 17px; color: var(--ink); background: transparent; border: 1px solid var(--line); }
.secondary-button:hover { background: var(--cream); border-color: #bbb5aa; }
.text-button { padding: 8px 0; color: var(--green-dark); background: transparent; }
.text-button:hover { color: var(--orange); }
.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 76px 0 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-strip > div { padding: 25px 24px; border-right: 1px solid var(--line); }
.fact-strip > div:last-child { border-right: 0; }
.fact-strip strong, .fact-strip span, .optional-summary strong, .optional-summary span, .result-grid strong, .result-grid span { display: block; }
.fact-strip strong { color: var(--green); font-size: 26px; letter-spacing: -.04em; }
.fact-strip span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.info-card { min-height: 250px; padding: 28px; background: rgba(255, 253, 248, .55); border: 1px solid var(--line); border-radius: 22px; }
.info-card h2 { max-width: 230px; margin: 28px 0 15px; }
.info-card p { font-size: 13px; }
.accent-card { background: var(--green); border-color: var(--green); color: #fff; }
.accent-card .card-kicker, .accent-card p { color: #bedbd1; }
.accent-card h2 { color: #fff; }
.explain-section { max-width: 780px; margin: 60px auto 0; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 19px 0; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 600; list-style-position: outside; }
.details-copy { padding: 0 0 18px 23px; }
.details-copy p { margin-bottom: 10px; font-size: 13px; }
.notice { margin: 0 0 22px; padding: 14px 17px; border-radius: 14px; font-size: 13px; line-height: 1.7; }
.notice-warning { color: #785032; background: var(--orange-soft); border: 1px solid #e9c1ab; }
.notice-error { color: #7c3425; background: #f9e3dd; border: 1px solid #edb8aa; }
.answering-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 35px; }
.answering-head h1, .optional-head h1, .complete-hero h1 { margin: 12px 0 0; font-size: clamp(32px, 5vw, 56px); }
.progress-wrap { width: min(340px, 100%); }
.progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--muted); font-size: 11px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--paper-deep); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s ease; }
.question-list { display: grid; gap: 15px; }
.question-card { min-width: 0; margin: 0; padding: 23px 24px 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 253, 248, .72); }
.question-card.is-answered { border-color: #c4d8d0; }
.question-card legend { display: flex; gap: 13px; align-items: flex-start; width: 100%; padding: 0; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.6; }
.question-number { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border-radius: 10px; color: var(--green-dark); background: var(--green-soft); font-size: 11px; font-weight: 700; }
.option-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.option { display: flex; min-height: 61px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 8px 5px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: #fffdf9; font-size: 11px; line-height: 1.35; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.option:hover { border-color: #a9c9bd; background: #f4faf7; }
.option.is-selected { color: var(--green-dark); border-color: var(--green); background: var(--green-soft); }
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-key { color: inherit; font-size: 15px; font-weight: 700; }
.question-status { margin: 11px 0 0 42px; color: #a0785e; font-size: 11px; }
.question-status.answered-status { color: var(--green); }
.question-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 28px 0 12px; }
.question-nav .text-button { margin: 0 auto; }
.optional-head { max-width: 720px; margin-bottom: 34px; }
.optional-head p { font-size: 15px; }
.optional-summary, .result-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.optional-summary > div, .result-grid > div { padding: 20px 18px; border-right: 1px solid var(--line); }
.optional-summary > div:last-child, .result-grid > div:last-child { border-right: 0; }
.optional-summary strong, .result-grid strong { color: var(--green); font-size: 24px; letter-spacing: -.04em; }
.optional-summary span, .result-grid span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.optional-note { margin: 24px 0; padding: 14px 16px; color: #635a4c; background: #f4eadb; border-radius: 12px; font-size: 13px; }
.reflection-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.reflection-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 253, 248, .75); }
.reflection-title { display: flex; align-items: center; gap: 9px; }
.reflection-title .question-number { width: 25px; height: 25px; border-radius: 8px; font-size: 10px; }
.optional-tag { margin-left: auto; padding: 4px 7px; border-radius: 99px; color: var(--orange); background: var(--orange-soft); font-size: 10px; }
.reflection-card > p { margin: 17px 0; color: var(--ink); font-size: 13px; line-height: 1.7; }
.reflection-fields { display: grid; gap: 10px; }
label { color: var(--muted); font-size: 12px; }
textarea { display: block; width: 100%; min-height: 82px; margin-top: 7px; padding: 10px 11px; resize: vertical; color: var(--ink); background: #fffdf9; border: 1px solid var(--line); border-radius: 11px; font-size: 12px; line-height: 1.6; }
textarea:focus { border-color: var(--green); outline: 3px solid rgba(30, 106, 91, .12); }
.feedback-section { max-width: 760px; margin: 58px auto 0; }
.feedback-section h2 { margin: 12px 0 9px; }
.section-lede { font-size: 13px; }
.feedback-field { display: block; margin-top: 20px; }
.complete-hero { max-width: 680px; margin-bottom: 35px; }
.success-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 15px 15px 15px 4px; color: white; background: var(--green); font-size: 25px; }
.complete-hero p { font-size: 15px; }
.result-grid { grid-template-columns: repeat(4, 1fr); }
.download-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 28px; background: var(--green); border-radius: 22px; color: #fff; }
.download-card h2 { margin: 12px 0 9px; color: #fff; }
.download-card p { max-width: 630px; margin-bottom: 0; color: #c7ded6; font-size: 13px; }
.download-card code { color: #fff; }
.download-card .secondary-button { color: #fff; border-color: rgba(255,255,255,.4); }
.download-card .secondary-button:hover { background: rgba(255,255,255,.1); }
.completion-details { max-width: 780px; margin: 45px auto 0; }
.completion-details p { margin: 0 0 18px; font-size: 13px; }
.noscript { max-width: 600px; margin: 40px auto; padding: 20px; color: var(--ink); background: var(--orange-soft); border-radius: 14px; }

@media (max-width: 800px) {
  .shell { padding-top: 32px; }
  .intro-grid { grid-template-columns: 1fr; }
  .info-card { min-height: auto; }
  .answering-head, .download-card { align-items: flex-start; flex-direction: column; }
  .progress-wrap { width: 100%; }
  .option-grid { grid-template-columns: repeat(3, 1fr); }
  .reflection-list { grid-template-columns: 1fr; }
  .download-actions { width: 100%; }
}

@media (max-width: 520px) {
  .topbar, .shell, .site-footer { padding-left: 18px; padding-right: 18px; }
  .topbar { align-items: flex-start; }
  .topbar-actions { display: block; text-align: right; }
  .save-status { display: block; margin-bottom: 6px; font-size: 10px; }
  .shell { padding-top: 27px; padding-bottom: 58px; }
  h1 { font-size: 40px; }
  .fact-strip { margin: 48px 0 40px; }
  .fact-strip > div { padding: 17px 10px; }
  .fact-strip strong { font-size: 20px; }
  .fact-strip span { font-size: 10px; }
  .question-card { padding: 19px 15px 15px; border-radius: 16px; }
  .question-card legend { font-size: 14px; }
  .option { min-height: 57px; font-size: 10px; }
  .option-grid { gap: 6px; }
  .question-status { margin-left: 0; }
  .question-nav { flex-wrap: wrap; }
  .question-nav .text-button { order: 3; width: 100%; }
  .optional-summary, .result-grid { grid-template-columns: 1fr 1fr; }
  .optional-summary > div:nth-child(2), .result-grid > div:nth-child(2) { border-right: 0; }
  .optional-summary > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .result-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .site-footer { display: block; }
  .site-footer span { display: block; margin-top: 6px; }
}
