@charset "UTF-8";
:root {
  --paper: #fff;
  --card: #fff;
  --ink: #242724;
  --muted: #666d66;
  --line: #e1e4df;
  --green: #37533e;
  --green-soft: #f0f4ef;
  --error: #aa3030;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.6; }
p { margin-bottom: 1em; }
h1 { font-size: 27px; font-weight: 600; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
::selection { background: #e0e9de; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.error { color: var(--error); font-size: 13px; }
.error:empty { display: none; }
.success-text { color: var(--green); font-size: 13px; }
.eyebrow { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.site-header, .site-footer { max-width: 960px; padding: 22px 32px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-header { border-bottom: 1px solid var(--line); }
.brand { font-size: 19px; font-weight: 600; display: flex; align-items: baseline; gap: 14px; }
.brand > span { font-size: 12px; color: var(--muted); font-weight: 400; }
.header-link { font-size: 13px; white-space: nowrap; }
a:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.skip { position: fixed; top: -100px; left: 10px; padding: 10px; background: var(--green); color: white; z-index: 100; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 告知说明 */
.document { max-width: 800px; margin: auto; padding: 44px 32px 64px; }
.document-heading { margin-bottom: 28px; }
.document-label { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.document-heading h1 { margin-bottom: 14px; }
.document-subtitle { font-size: 17px; line-height: 1.8; }
.reading-note { font-size: 13px; color: var(--muted); margin-top: 20px; }
.contents { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.contents summary { font-size: 13px; cursor: pointer; color: var(--muted); }
.contents nav { display: grid; gap: 8px; padding: 14px 0 4px 18px; }
.contents a { font-size: 13px; }
.prose { font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.prose h2 { margin: 34px 0 15px; }
.prose h3 { margin: 25px 0 12px; }
.prose p { margin-bottom: 18px; }
.bullet-paragraph { padding-left: 17px; position: relative; }
.bullet-paragraph::before { content: "•"; position: absolute; left: 0; }
.process-line { padding-left: 16px; border-left: 2px solid #aebca9; }
.join-section { margin-top: 42px; padding-top: 28px; border-top: 1px solid #bfc8ba; }
.join-section > p { color: var(--muted); font-size: 14px; }
.join-card { margin-top: 22px; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.9; margin: 20px 0; }
.check-line input { margin: 6px 0 0; flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--green); }
.privacy-note { padding: 16px 18px; background: #f6f7f5; color: #586055; font-size: 13px; line-height: 1.85; }
.privacy-note strong { color: var(--ink); font-weight: 500; }
.privacy-note p { margin: 9px 0; }
.privacy-note p:last-child { margin-bottom: 0; }
.submission-note { margin-top: 12px; }

/* 表单 */
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: white; border: 1px solid var(--green); border-radius: 3px; padding: 11px 22px; font-size: 14px; line-height: 1.6; }
.button:hover { background: #2c4432; text-decoration: none; }
.button.secondary { background: white; border-color: #c8cfc4; color: var(--ink); }
.button.secondary:hover { background: #f5f7f3; }
.full { width: 100%; }
.text-button { border: 0; background: none; color: var(--green); padding: 4px 0; font-size: 13px; text-align: left; }
input[type=text], input[type=password], input[type=search], textarea, select { display: block; width: 100%; min-width: 0; padding: 10px 12px; background: white; border: 1px solid #bfc8ba; border-radius: 3px; color: var(--ink); font-size: 15px; line-height: 1.7; }
textarea { resize: vertical; min-height: 85px; }
input::placeholder, textarea::placeholder { color: #899080; }
input:focus, textarea:focus, select:focus { border-color: var(--green); }
.survey-shell { max-width: 960px; margin: auto; padding: 25px 32px 64px; }
.survey-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 30px; }
.survey-layout { display: grid; grid-template-columns: 185px minmax(0,1fr); gap: 30px; }
.survey-aside { position: sticky; top: 28px; align-self: start; }
.survey-aside h2 { font-size: 14px; margin-bottom: 16px; }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { color: #858a80; font-size: 12px; margin-bottom: 13px; }
.step-list li button { color: inherit; background: none; border: 0; font-size: 12px; padding: 3px 0; text-align: left; display: flex; align-items: baseline; gap: 8px; }
.step-list li button:disabled { opacity: 1; }
.step-list .active { color: var(--green); font-weight: 600; }
.step-list .done { color: #596451; }
.review-label { margin-left: 17px; }
.survey-card { min-width: 0; padding-left: 28px; border-left: 1px solid var(--line); }
.survey-card-head h1 { font-size: 24px; margin-bottom: 15px; }
.survey-card-head h1:focus { outline: 0; }
.survey-card-head progress { display: block; width: 100%; height: 3px; margin-bottom: 25px; appearance: none; border: 0; background: #edf0eb; accent-color: var(--green); }
.survey-card-head progress::-webkit-progress-bar { background: #edf0eb; }
.survey-card-head progress::-webkit-progress-value { background: var(--green); }
.survey-card-head progress::-moz-progress-bar { background: var(--green); }
.question { border: 0; padding: 0; margin: 28px 0 36px; min-width: 0; }
.question legend { display: flex; gap: 7px; width: 100%; padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 500; line-height: 1.85; }
.question-number { min-width: 20px; }
.required, .optional { font-size: 11px; font-weight: 400; white-space: nowrap; margin-left: 4px; }
.required { color: #8d5353; }
.optional { color: var(--muted); }
.field-hint { font-size: 13px; color: var(--muted); margin: -3px 0 12px; }
.char-count { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 4px; }
.options { display: grid; gap: 2px; }
.option { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; font-size: 14px; line-height: 1.8; cursor: pointer; }
.option input { flex-shrink: 0; margin: 5px 0 0; width: 16px; height: 16px; accent-color: var(--green); }
.extra-field { margin-top: 13px; }
.extra-field label { display: block; font-size: 13px; margin-bottom: 7px; }
.field-error { margin: 7px 0 0; }
.question.invalid input, .question.invalid textarea { border-color: #b65c5c; }
.form-actions { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 30px; }
.draft-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); margin: 24px 0 8px; }
.draft-tools label { display: flex; align-items: center; gap: 7px; }
.draft-tools input { accent-color: var(--green); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.review-head { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; }
.review-head h2 { font-size: 18px; }
.review-answer { margin: 18px 0; }
.review-answer h3, .review-answer h4 { font-size: 13px; font-weight: 400; color: var(--muted); margin-bottom: 8px; }
.review-answer p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; margin-bottom: 0; }
.success-shell { max-width: 760px; padding: 48px 32px 80px; margin: auto; min-height: 70vh; }
.success-shell h1:focus { outline: 0; }
.success-next { margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.success-next h2 { font-size: 18px; }
.success-next ol { padding-left: 22px; font-size: 14px; }
.success-next li { padding-bottom: 10px; }
.receipt { overflow-wrap: anywhere; }
.success-shell .text-button { margin-left: 20px; }

/* 管理后台 */
.admin-body .site-header, .admin-body .site-footer { max-width: 1240px; }
.admin-main { max-width: 1240px; padding: 36px 32px 60px; margin: auto; min-height: calc(100vh - 150px); }
.login-card { max-width: 380px; margin: 30px auto 70px; }
.login-card h1 { font-size: 24px; }
.login-card p { font-size: 13px; }
.login-card form { margin: 25px 0; }
.login-card form label, .password-dialog form label { display: block; font-size: 13px; margin: 16px 0 8px; }
.login-card form .button { margin-top: 18px; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.admin-heading h1 { font-size: 26px; margin-bottom: 0; }
.admin-user { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.summary-cards { display: grid; grid-template-columns: repeat(5,1fr); padding: 18px 0; margin-bottom: 27px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-cards > div { padding: 0 20px; border-left: 1px solid var(--line); }
.summary-cards > div:first-child { border-left: 0; padding-left: 0; }
.summary-cards span { display: block; font-size: 12px; color: var(--muted); }
.summary-cards strong { font-size: 27px; font-weight: 500; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; border-bottom: 2px solid transparent; padding: 9px 0; color: var(--muted); font-size: 14px; }
.tabs button.active { color: var(--green); border-bottom-color: var(--green); }
.small-button { font-size: 12px; padding: 8px 12px; white-space: nowrap; }
.admin-card { border: 1px solid var(--line); min-width: 0; }
.filter-toolbar { display: flex; justify-content: space-between; gap: 20px; padding: 17px; }
.filter-toolbar form { display: flex; align-items: center; gap: 9px; flex: 1; }
.filter-toolbar input { max-width: 320px; font-size: 13px; padding: 8px 11px; }
.filter-toolbar select { width: 125px; font-size: 13px; padding: 8px 11px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
th, td { padding: 14px 17px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--muted); background: #f7f8f5; }
td { vertical-align: middle; }
td strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
td small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
.badge { font-size: 12px; white-space: nowrap; color: var(--muted); }
.badge.pending { color: #8b6b28; }
.badge.accepted { color: #3b6a3d; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 17px; border-top: 1px solid var(--line); }
.pagination > div { display: flex; gap: 8px; }
.empty-state { text-align: center; color: var(--muted); padding: 55px 25px; }
.empty-state h2 { font-size: 18px; font-weight: 500; }
.empty-state p { font-size: 13px; }
.admin-alert { margin: 12px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.stat-card { padding: 22px; }
.stat-card h2 { font-size: 15px; font-weight: 500; margin-bottom: 22px; }
.stat-row { margin: 16px 0; }
.stat-row > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.stat-row strong { font-size: 12px; font-weight: 500; white-space: nowrap; }
.stat-row small { font-size: 11px; color: var(--muted); font-weight: 400; }
.stat-row meter { display: block; width: 100%; height: 5px; margin-top: 7px; appearance: none; border: 0; background: #edf0ea; }
.stat-row meter::-webkit-meter-bar { background: #edf0ea; border: 0; border-radius: 0; }
.stat-row meter::-webkit-meter-optimum-value { background: #83977a; border-radius: 0; }
.stat-row meter::-moz-meter-bar { background: #83977a; }
.recent-days { padding: 22px; margin-top: 20px; }
.recent-days h2 { font-size: 18px; }
.day-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.day-list > div { font-size: 12px; display: flex; justify-content: space-between; gap: 10px; }
.day-list strong { font-weight: 500; }
.answer-filter { padding: 20px; border-bottom: 1px solid var(--line); }
.answer-filter label { display: block; font-size: 13px; margin-bottom: 9px; }
.question-responses article { padding: 24px; border-bottom: 1px solid var(--line); }
.question-responses article:last-child { border-bottom: 0; }
.question-responses article > div { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.question-responses article strong { font-size: 13px; font-weight: 500; }
.question-responses article p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.detail-dialog, .password-dialog { width: 720px; max-width: calc(100vw - 32px); max-height: 88vh; padding: 30px; background: white; color: var(--ink); border: 1px solid #bac4b3; border-radius: 4px; }
.password-dialog { width: 440px; }
dialog::backdrop { background: #20282080; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.dialog-heading h2 { font-size: 22px; margin-bottom: 10px; overflow-wrap: anywhere; }
.dialog-heading p { margin-bottom: 12px; }
.icon-button { border: 1px solid var(--line); background: white; color: var(--muted); width: 32px; height: 32px; font-size: 24px; line-height: 1; flex-shrink: 0; }
.detail-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; padding: 14px 0 24px; }
.detail-meta strong { overflow-wrap: anywhere; }
.review-form { padding: 18px; border: 1px solid var(--line); }
.review-form label { display: block; font-size: 13px; margin-bottom: 7px; }
.review-form select { max-width: 200px; margin-bottom: 15px; }
.review-form textarea { font-size: 13px; }
.review-form button { margin-top: 12px; }
.detail-dialog .review-section > h3 { font-size: 18px; }
.password-dialog .button { margin-top: 14px; }
.password-dialog p { font-size: 13px; }

@media (max-width: 760px) {
  h1 { font-size: 23px; }
  .site-header, .site-footer { padding: 18px 21px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand > span { font-size: 11px; }
  .header-link { font-size: 12px; }
  .document { padding: 30px 22px 45px; }
  .document-subtitle { font-size: 16px; }
  .document-label { font-size: 12px; }
  .reading-note { font-size: 12px; }
  .prose { font-size: 15px; line-height: 1.95; }
  .prose h2 { font-size: 19px; margin-top: 28px; }
  .prose h3 { font-size: 16px; }
  .privacy-note { padding: 14px; font-size: 12px; }
  .check-line { font-size: 13px; }
  .join-section { margin-top: 32px; }
  .site-footer { font-size: 11px; }
  .survey-shell { padding: 19px 22px 42px; }
  .survey-top { margin-bottom: 26px; }
  .survey-top .small { font-size: 11px; }
  .survey-layout { display: block; }
  .survey-aside { display: none; }
  .survey-card { border-left: 0; padding-left: 0; }
  .survey-card-head h1 { font-size: 23px; }
  .question { margin: 25px 0 32px; }
  .question legend { font-size: 15px; }
  .option { padding: 10px 0; font-size: 14px; }
  .draft-tools { gap: 10px; font-size: 11px; }
  .draft-tools .text-button { font-size: 11px; }
  .success-shell { padding: 35px 22px 60px; }
  .success-shell .text-button { display: block; margin: 18px 0; }
  .admin-main { padding: 26px 18px 45px; }
  .admin-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .admin-heading h1 { font-size: 23px; }
  .admin-user { gap: 18px; }
  .summary-cards { grid-template-columns: repeat(3,1fr); gap: 17px 0; }
  .summary-cards > div { padding: 0 15px; }
  .summary-cards > div:nth-child(4) { padding-left: 0; border: 0; }
  .summary-cards span { font-size: 11px; }
  .summary-cards strong { font-size: 24px; }
  .admin-toolbar { gap: 12px; }
  .tabs { gap: 16px; }
  .tabs button { font-size: 12px; }
  .small-button { padding: 7px 9px; font-size: 11px; }
  .filter-toolbar { padding: 14px; flex-wrap: wrap; gap: 12px; }
  .filter-toolbar form { flex-wrap: wrap; width: 100%; }
  .filter-toolbar input { max-width: none; width: 100%; }
  .filter-toolbar select { flex: 1; }
  .filter-toolbar > #export-csv { margin-left: auto; }
  th, td { padding: 13px 15px; }
  td { min-width: 85px; }
  td:first-child, td:nth-child(4) { min-width: 140px; }
  .pagination { padding: 14px 12px; gap: 9px; }
  .pagination .small { font-size: 10px; }
  .pagination > div { gap: 5px; }
  .stats-grid { grid-template-columns: 1fr; gap: 15px; }
  .stat-card { padding: 19px; }
  .day-list { grid-template-columns: repeat(2,1fr); }
  .question-responses article { padding: 19px; }
  .question-responses article > div { flex-direction: column; gap: 3px; }
  .answer-filter { padding: 17px; }
  .answer-filter select { font-size: 12px; }
  .detail-dialog, .password-dialog { padding: 21px; max-width: calc(100vw - 22px); max-height: 92vh; }
  .dialog-heading h2 { font-size: 20px; }
  .review-form { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
