@charset "UTF-8";

:root {
  --red-900: #6f171d;
  --red-800: #851f25;
  --red-700: #9e262d;
  --red-600: #b33238;
  --gold-600: #ad8648;
  --gold-400: #d2b77d;
  --gold-200: #eadcbf;
  --paper: #f6f3ed;
  --paper-deep: #eee8dd;
  --white: #fff;
  --ink: #292724;
  --muted: #716c65;
  --line: #e4ded3;
  --success: #287052;
  --danger: #a3262c;
  --shadow: 0 12px 38px rgba(69, 45, 28, .07);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.site-header { background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1180px, calc(100% - 48px)); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.organizer { display: flex; align-items: center; gap: 14px; }
.organizer-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: var(--red-800); border: 2px solid var(--red-800); border-radius: 4px; font: 700 28px/1 var(--serif); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4px var(--gold-400); }
.organizer strong { display: block; font: 700 20px/1.35 var(--serif); letter-spacing: .12em; }
.organizer small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.2; letter-spacing: .08em; }
.header-edition { color: var(--red-800); font-family: var(--serif); font-size: 15px; letter-spacing: .12em; }
.header-rule { height: 3px; background: linear-gradient(90deg, var(--red-800) 0 72%, var(--gold-400) 72% 100%); }

.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(circle at 88% 16%, rgba(222, 190, 125, .17), transparent 30%), linear-gradient(118deg, var(--red-900), var(--red-700) 68%, #a52a30); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before { inset: 0; opacity: .14; background-image: repeating-linear-gradient(135deg, transparent 0 23px, rgba(255, 255, 255, .12) 24px, transparent 25px 48px); }
.hero::after { width: 560px; height: 220px; right: -70px; bottom: -145px; border: 1px solid rgba(234, 220, 191, .35); border-radius: 50%; box-shadow: 0 -22px 0 -21px rgba(234, 220, 191, .25), 0 -44px 0 -43px rgba(234, 220, 191, .2), 0 -66px 0 -65px rgba(234, 220, 191, .15); }
.hero-watermark { position: absolute; right: 5%; top: -96px; color: rgba(255, 255, 255, .035); font: 700 390px/1 var(--serif); user-select: none; }
.hero-inner { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); min-height: 365px; margin: 0 auto; padding: 58px 0 54px; display: flex; align-items: center; justify-content: space-between; gap: 70px; }
.hero-copy { max-width: 790px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--gold-400); font-size: 14px; font-weight: 700; letter-spacing: .24em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 28px; height: 1px; background: var(--gold-400); }
.hero h1 { margin: 0; font: 700 clamp(32px, 4vw, 48px)/1.35 var(--serif); letter-spacing: .06em; }
.hero h1 span { color: #f5e6c5; }
.hero-year { margin: 5px 0 16px; color: rgba(255, 255, 255, .16); font: 700 44px/1 Georgia, serif; letter-spacing: .22em; }
.hero-description { max-width: 680px; margin: 0; color: rgba(255, 255, 255, .82); font-family: var(--serif); font-size: 16px; line-height: 2; }
.hero-motto { min-width: 190px; padding: 24px 0 24px 32px; border-left: 1px solid rgba(234, 220, 191, .42); text-align: center; }
.hero-motto p { margin: 0; color: #f4e7cb; font: 700 27px/1.7 var(--serif); letter-spacing: .16em; }
.hero-motto small { display: block; margin-top: 12px; color: rgba(255, 255, 255, .55); font-size: 11px; letter-spacing: .15em; }
.motto-line { display: block; width: 30px; height: 3px; margin: 0 auto 14px; background: var(--gold-400); }

.notice-band { background: #fffdfa; border-bottom: 1px solid var(--line); }
.notice-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.notice-item { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 92px; padding: 18px 30px; border-right: 1px solid var(--line); }
.notice-item:first-child { border-left: 1px solid var(--line); }
.notice-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; color: var(--red-800); background: #f7eee8; border: 1px solid #ead7ca; border-radius: 50%; font: 700 16px/1 var(--serif); }
.notice-item strong, .notice-item small { display: block; }
.notice-item strong { font-size: 15px; }
.notice-item small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.page-container { width: min(1180px, calc(100% - 48px)); margin: 34px auto 56px; }
.intro-card { display: grid; grid-template-columns: 240px 1fr; gap: 36px; margin-bottom: 28px; padding: 30px 36px; background: #fffdfa; border: 1px solid var(--line); border-top: 3px solid var(--gold-400); box-shadow: var(--shadow); }
.section-kicker { color: var(--gold-600); font-size: 12px; }
.intro-heading h2 { margin: 0; font: 700 21px/1.6 var(--serif); }
.intro-text { color: #56514a; font-family: var(--serif); font-size: 16px; }
.intro-text p { margin: 0 0 8px; }
.intro-text p:last-child { margin-bottom: 0; }

.survey-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 28px; }
.survey-sidebar { position: sticky; top: 24px; padding: 26px 22px; background: #fffdfa; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.sidebar-heading strong { color: var(--red-800); font-size: 12px; }
.progress-track { overflow: hidden; height: 4px; margin: 14px 0 24px; background: var(--paper-deep); border-radius: 4px; }
.progress-track span { display: block; width: 20%; height: 100%; background: linear-gradient(90deg, var(--red-800), var(--gold-400)); transition: width .25s ease; }
.section-nav { margin: 0; padding: 0; list-style: none; }
.section-nav li { position: relative; }
.section-nav li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 43px; bottom: -5px; width: 1px; background: var(--line); }
.section-nav button { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--muted); background: none; border: 0; text-align: left; }
.nav-number { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; color: #8b8378; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; font: 700 13px/1 Georgia, serif; transition: .2s; }
.nav-copy { min-width: 0; }
.nav-copy strong, .nav-copy small { display: block; }
.nav-copy strong { font-size: 14px; }
.nav-copy small { margin-top: 1px; font-size: 10px; letter-spacing: .08em; }
.section-nav button.active { color: var(--red-800); }
.section-nav button.active .nav-number { color: var(--white); background: var(--red-800); border-color: var(--red-800); box-shadow: 0 0 0 4px #f4e7e4; }
.section-nav button.complete .nav-number { color: var(--success); background: #edf6f1; border-color: #bcd8ca; }
.survey-main { min-width: 0; padding: 34px 40px 26px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-progress { display: none; }
.question-section-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.question-section-header .section-index { color: var(--red-800); font: 700 12px/1 var(--sans); letter-spacing: .18em; }
.question-section-header h2 { margin: 10px 0 4px; font: 700 27px/1.5 var(--serif); letter-spacing: .06em; }
.question-section-header p { margin: 0; color: var(--muted); font-size: 14px; }
.question-card { min-width: 0; margin: 0 0 24px; padding: 25px 26px; background: #fffefd; border: 1px solid var(--line); border-radius: 3px; transition: border-color .2s, box-shadow .2s; }
.question-card:focus-within { border-color: #cdbb9c; box-shadow: 0 5px 18px rgba(83, 58, 28, .05); }
.question-card.has-error { border-color: #c65b60; background: #fffafa; }
.question-card legend { width: 100%; padding: 0; }
.question-title-row { display: flex; align-items: flex-start; gap: 12px; }
.question-number { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; margin-top: 1px; color: var(--white); background: var(--red-800); border-radius: 2px; font: 700 14px/1 Georgia, serif; }
.question-title { flex: 1; font: 700 17px/1.8 var(--sans); }
.question-badges { display: flex; flex: 0 0 auto; gap: 6px; margin-top: 4px; }
.question-badge { padding: 1px 7px; color: var(--muted); background: var(--paper); border-radius: 2px; font-size: 11px; font-weight: 400; white-space: nowrap; }
.question-badge.required { color: var(--red-800); background: #f8eaea; }
.question-note { margin: 8px 0 0 46px; color: var(--muted); font-size: 13px; }
.options-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0 0 46px; }
.options-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-label { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 50px; padding: 13px 14px; color: #403c37; background: var(--paper); border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-size: 16px; font-weight: 600; line-height: 1.7; transition: background .15s, border-color .15s; }
.option-label:hover { background: #f3eee5; border-color: #ded2bf; }
.option-label:has(input:checked) { color: var(--red-900); background: #f8efeb; border-color: #caa5a0; }
.option-label input { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: var(--red-800); cursor: pointer; }
.option-code { color: var(--red-800); font: 700 13px/1.8 Georgia, serif; }
.option-text { flex: 1; }
.other-field { margin: 12px 0 0 46px; }
.text-input, .text-area, .login-panel input, .qr-controls input { width: 100%; color: var(--ink); background: var(--white); border: 1px solid #d8d0c4; border-radius: 3px; outline: none; transition: border-color .2s, box-shadow .2s; }
.text-input { height: 46px; padding: 0 13px; }
.text-area { min-height: 130px; padding: 12px 13px; resize: vertical; line-height: 1.75; }
.text-input:focus, .text-area:focus, .login-panel input:focus, .qr-controls input:focus { border-color: var(--red-700); box-shadow: 0 0 0 3px rgba(158, 38, 45, .09); }
.text-field { margin: 18px 0 0 46px; }
.char-count { display: block; margin-top: 4px; color: #979087; font-size: 11px; text-align: right; }
.field-error { margin: 10px 0 0 46px; color: var(--danger); font-size: 13px; }
.error-summary { margin-bottom: 20px; padding: 12px 16px; color: var(--danger); background: #fff1f0; border: 1px solid #ecc7c5; border-left: 4px solid var(--danger); font-size: 14px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.button { min-height: 44px; padding: 10px 23px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 700; letter-spacing: .04em; transition: background .2s, transform .1s, box-shadow .2s; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-primary { color: var(--white); background: var(--red-800); border-color: var(--red-800); box-shadow: 0 4px 12px rgba(133, 31, 37, .14); }
.button-primary:hover:not(:disabled) { background: var(--red-900); box-shadow: 0 6px 16px rgba(133, 31, 37, .2); }
.button-secondary { color: var(--red-800); background: var(--white); border-color: #cdbcb0; }
.button-secondary:hover:not(:disabled) { background: #faf4ef; border-color: var(--red-700); }
.submit-button { min-width: 132px; }
.form-actions #next-button, .form-actions #submit-button { margin-left: auto; }

.completion-card { max-width: 720px; margin: 60px auto; padding: 56px 60px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold-400); box-shadow: var(--shadow); text-align: center; }
.completion-symbol { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 24px; color: var(--white); background: var(--success); border-radius: 50%; font-size: 34px; box-shadow: 0 0 0 8px #eaf3ee; }
.completion-card h2 { margin: 8px 0 16px; font: 700 30px/1.5 var(--serif); }
.completion-card > p:not(.section-kicker) { color: var(--muted); font-family: var(--serif); }
.receipt-box { margin: 28px auto 20px; padding: 16px; background: var(--paper); border: 1px dashed #c9b99f; }
.receipt-box span, .receipt-box strong { display: block; }
.receipt-box span { color: var(--muted); font-size: 12px; }
.receipt-box strong { margin-top: 5px; color: var(--red-800); font: 700 18px/1.5 monospace; letter-spacing: .06em; }
.completion-card .completion-note { font: 12px/1.7 var(--sans) !important; }

.site-footer { padding: 26px max(24px, calc((100% - 1180px) / 2)); color: #ddd2c1; background: #312b28; border-top: 3px solid var(--gold-600); font-size: 12px; }
.site-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer strong { color: #f2e8d8; font-family: var(--serif); font-size: 14px; }
.site-footer p { margin: 6px 0 0; color: #a99f93; }
.site-footer p span { margin: 0 8px; }
.noscript { position: fixed; inset: auto 20px 20px; padding: 16px; color: var(--white); background: var(--danger); text-align: center; }

:focus-visible { outline: 3px solid #d3a44f; outline-offset: 3px; }

@media (min-width: 1100px) {
  .survey-main { min-height: 700px; }
}

@media (max-width: 900px) {
  .hero-motto { display: none; }
  .notice-item { padding: 16px 14px; }
  .notice-item small { max-width: 180px; }
  .intro-card { grid-template-columns: 190px 1fr; gap: 24px; }
  .survey-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
  .survey-main { padding: 28px 24px 22px; }
  .survey-sidebar { padding: 22px 16px; }
  .options-grid.is-compact { grid-template-columns: 1fr; }
  .question-badges { flex-direction: column; }
}

@media (max-width: 680px) {
  body { font-size: 16px; background: #f7f4ee; }
  .header-inner { width: calc(100% - 32px); min-height: 70px; }
  .organizer { gap: 10px; }
  .organizer-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 23px; }
  .organizer strong { font-size: 19px; letter-spacing: .08em; }
  .organizer small { font-size: 9px; }
  .header-edition { display: none; }
  .hero-inner { width: calc(100% - 36px); min-height: 0; padding: 40px 0 38px; }
  .hero-watermark { right: -24px; top: -15px; font-size: 220px; }
  .eyebrow { margin-bottom: 14px; font-size: 12px; }
  .hero h1 { max-width: 330px; font-size: 31px; line-height: 1.45; letter-spacing: .03em; }
  .hero h1 span { display: block; font-size: 38px; }
  .hero-year { margin: 8px 0 14px; font-size: 30px; }
  .hero-description { font-size: 15px; line-height: 1.9; }
  .notice-inner { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .notice-item { min-height: 80px; padding: 14px 5px; gap: 0; text-align: center; border: 0; }
  .notice-item:first-child { border: 0; }
  .notice-item:not(:last-child) { border-right: 1px solid var(--line); }
  .notice-icon { display: none; }
  .notice-item strong { font-size: 13px; }
  .notice-item small { max-width: 108px; margin: 3px auto 0; font-size: 11px; line-height: 1.55; }
  .page-container { width: 100%; margin: 18px auto 36px; }
  .intro-card { display: block; margin: 0 14px 18px; padding: 22px 20px; box-shadow: none; }
  .intro-heading { margin-bottom: 12px; }
  .intro-heading h2 { font-size: 18px; }
  .intro-text { font-size: 14px; line-height: 1.9; }
  .survey-shell { display: block; }
  .survey-sidebar { display: none; }
  .survey-main { padding: 20px 14px calc(22px + env(safe-area-inset-bottom)); border-left: 0; border-right: 0; box-shadow: none; }
  .mobile-progress { display: block; margin: 0 4px 20px; }
  .mobile-progress > div:first-child { display: flex; justify-content: space-between; color: var(--red-800); font-size: 12px; }
  .mobile-progress .progress-track { margin: 9px 0 0; }
  .question-section-header { margin: 0 4px 20px; padding-bottom: 16px; }
  .question-section-header h2 { font-size: 24px; }
  .question-card { margin-bottom: 15px; padding: 20px 16px; }
  .question-title-row { gap: 10px; flex-wrap: wrap; }
  .question-number { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px; }
  .question-title { min-width: calc(100% - 42px); font-size: 16px; line-height: 1.8; }
  .question-badges { flex-direction: row; margin: -3px 0 4px 40px; }
  .question-badge { font-size: 11px; }
  .question-note { margin-left: 40px; font-size: 13px; }
  .options-grid, .other-field, .text-field { margin-left: 0; }
  .options-grid { gap: 9px; margin-top: 16px; }
  .option-label { min-height: 54px; padding: 14px 12px; font-size: 16px; line-height: 1.7; }
  .option-label input { width: 20px; height: 20px; flex-basis: 20px; margin-top: 2px; }
  .text-input { height: 48px; font-size: 16px; }
  .text-area { min-height: 150px; font-size: 16px; }
  .field-error { margin-left: 0; }
  .form-actions { position: sticky; z-index: 5; bottom: 0; margin: 24px -14px -22px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(60, 45, 30, .06); backdrop-filter: blur(10px); }
  .form-actions .button { flex: 0 0 auto; min-height: 46px; padding: 10px 18px; }
  .form-actions .submit-button { flex: 1; }
  .completion-card { margin: 20px 14px; padding: 38px 22px; }
  .completion-card h2 { font-size: 25px; }
  .site-footer { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
  .site-footer > div { display: block; }
  .site-footer > div span { display: block; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
