:root {
  --ink: #29415c;
  --muted: #6f7e8e;
  --paper: #fffdf8;
  --mint: #83d7b6;
  --mint-dark: #318d73;
  --yellow: #ffd96a;
  --coral: #ff8c82;
  --sky: #dff4ff;
  --line: #dfe9e5;
  font-family: Inter, ui-rounded, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky), #f4fbf0 70%);
}
.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.sky::after { content: ""; position: absolute; inset: auto 0 0; height: 23vh; background: #d8efc8; border-radius: 55% 55% 0 0 / 25% 25% 0 0; }
.cloud { position: absolute; width: 120px; height: 36px; background: rgba(255,255,255,.75); border-radius: 40px; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 52px; height: 52px; left: 19px; bottom: 0; }
.cloud::after { width: 65px; height: 65px; right: 12px; bottom: 0; }
.cloud-one { top: 11%; left: 7%; }.cloud-two { top: 19%; right: 9%; transform: scale(.75); }
.page-shell { position: relative; z-index: 1; width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 24px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; }
.brand-icon { display: grid; place-items: center; width: 62px; height: 62px; font-size: 30px; background: var(--yellow); border-radius: 22px 22px 14px 22px; transform: rotate(-3deg); box-shadow: 0 7px 0 rgba(164,118,19,.13); }
.brand h1 { margin: 2px 0 0; font-size: clamp(23px, 5vw, 34px); letter-spacing: .03em; }
.account-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: -10px 4px 14px; color: var(--muted); font-size: 13px; font-weight: 800; }.account-bar form { margin: 0; }.account-bar button { padding: 7px 12px; color: var(--ink); background: rgba(255,255,255,.75); box-shadow: 0 3px 0 rgba(41,65,92,.1); font-size: 12px; }
.eyebrow, .step { margin: 0; color: var(--mint-dark); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.card { background: rgba(255,253,248,.96); border: 3px solid white; border-radius: 28px; padding: clamp(24px, 6vw, 44px); box-shadow: 0 22px 55px rgba(51,91,101,.16); }
h2 { margin: 7px 0 10px; font-size: clamp(24px, 5vw, 34px); } p { line-height: 1.65; }.lead { color: var(--muted); }
.hero-copy { display: flex; gap: 18px; align-items: center; margin-bottom: 25px; }.mascot { font-size: 64px; filter: drop-shadow(0 5px 0 rgba(0,0,0,.08)); }
.login-panel { width: min(430px, 100%); margin: 0 auto; }.login-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }.login-heading > span { font-size: 52px; }.login-heading h2, .login-heading p { margin-bottom: 0; }.login-form button { margin-top: 10px; }
.stack-form { display: grid; gap: 13px; }.stack-form label, legend { font-weight: 800; font-size: 14px; }
input, select { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; background: white; color: var(--ink); font: inherit; font-size: 17px; outline: none; }
input:focus, select:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(131,215,182,.24); }
button, .button { border: 0; border-radius: 14px; padding: 14px 19px; font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s; }
button:hover, .button:hover { transform: translateY(-2px); }.primary { color: #173f34; background: var(--mint); box-shadow: 0 5px 0 #58b393; }.secondary { color: var(--ink); background: #edf2f0; box-shadow: 0 4px 0 #d9e1de; }
fieldset { border: 0; padding: 0; margin: 4px 0; }.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }.choice input { position: absolute; opacity: 0; }.choice span { display: block; padding: 16px; border: 2px solid var(--line); border-radius: 15px; background: white; text-align: center; font-weight: 900; cursor: pointer; }.choice small { display: block; color: var(--muted); }.choice input:checked + span { border-color: var(--mint); background: #effcf6; box-shadow: 0 0 0 3px rgba(131,215,182,.18); }
.button-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 10px; align-items: stretch; }.split-actions form, .split-actions button { width: 100%; height: 100%; }
.alert { margin: -8px 0 20px; padding: 12px 15px; border-radius: 13px; color: #8b3531; background: #ffe6e1; font-weight: 700; }
.status-badge { display: inline-block; padding: 8px 12px; color: #276f5c; background: #ddf7eb; border-radius: 999px; font-weight: 900; }
.attendance-preview { display: flex; gap: 13px; align-items: center; margin: 18px 0 12px; padding: 14px 17px; border: 2px solid #d9eee5; border-radius: 15px; background: #f2fbf7; transition: opacity .15s; }.attendance-preview.loading { opacity: .55; }.attendance-preview p { margin: 0; }.preview-icon { font-size: 30px; }button:disabled { cursor: not-allowed; opacity: .58; transform: none; box-shadow: none; }
.info-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }.info-strip span { padding: 13px; background: #f4f8f6; border-radius: 13px; color: var(--muted); font-size: 13px; }.info-strip strong { display: block; color: var(--ink); font-size: 17px; margin-top: 3px; }.hint { color: var(--muted); font-size: 14px; border-left: 4px solid var(--yellow); padding-left: 12px; }
.number-ticket { margin: 20px auto; padding: 22px; max-width: 370px; text-align: center; border: 2px dashed #d9ad37; border-radius: 18px; background: #fff8d9; }.number-ticket span, .number-ticket small { display: block; color: var(--muted); }.number-ticket strong { display: block; margin: 5px 0; font-size: 54px; color: #b47417; }
.questionnaire-note { display: flex; gap: 13px; align-items: center; padding: 14px 17px; border-radius: 15px; background: #edf8ff; }.questionnaire-note > span { font-size: 30px; }.questionnaire-note p { margin: 0; font-size: 14px; }
.service-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.service-module { display: flex; min-height: 210px; padding: 22px 16px; flex-direction: column; justify-content: center; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 18px; color: var(--ink); background: white; text-align: center; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }.service-module:hover { transform: translateY(-3px); border-color: var(--mint); box-shadow: 0 8px 20px rgba(49,141,115,.14); }.service-module:focus-visible { outline: 4px solid rgba(131,215,182,.35); outline-offset: 2px; }.service-module strong { font-size: 19px; }.service-module small { color: var(--muted); line-height: 1.55; }.service-icon { font-size: 38px; }
.service-module.unavailable { border-color: #eadfca; color: #806e5c; background: #f7f3ec; cursor: not-allowed; }.service-module.unavailable:hover { transform: none; border-color: #eadfca; box-shadow: none; }.closed-return { margin-top: 12px; }
.venue-dashboard { margin: 26px 0 0; padding: 18px; border: 2px solid #d9eee5; border-radius: 20px; background: linear-gradient(145deg, #f7fdf9, #eef9f4); }.dashboard-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 14px; }.dashboard-heading h3 { margin: 4px 0 0; font-size: 20px; }.dashboard-updated { flex: 0 0 auto; color: var(--muted); font-size: 12px; }.venue-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.venue-stats-card { padding: 14px; border: 2px solid white; border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 5px 14px rgba(49,141,115,.08); }.venue-stats-card h4 { margin: 0 0 11px; font-size: 17px; }.venue-stats-card h4 small { color: var(--muted); }.venue-stats-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }.venue-stats-card dl div { padding: 9px; border-radius: 11px; background: #f3f8f5; }.venue-stats-card dt { color: var(--muted); font-size: 11px; }.venue-stats-card dd { margin: 3px 0 0; color: var(--mint-dark); font-size: 24px; font-weight: 900; }.checkout-week-stats { margin-top: 12px; padding-top: 11px; border-top: 1px dashed #c8dfd5; }.checkout-week-stats > p { margin: 0 0 8px; color: var(--ink); font-size: 12px; font-weight: 800; }.venue-stats-card .checkout-week-stats dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }.checkout-week-stats dd { font-size: 21px; }.dashboard-status { margin: 12px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }.dashboard-status.refresh-error { color: #8b3531; }
.reader-summary { margin: 22px 0; }.reader-history { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }.reader-history th, .reader-history td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }.reader-history th { color: var(--muted); font-size: 12px; }.checkout-ok { color: #276f5c; font-weight: 900; }.checkout-pending { color: #a35f19; font-weight: 900; }.table-wrap { overflow-x: auto; }
.celebration, .center { text-align: center; }.celebration { font-size: 35px; }.success-heading { margin: 7px 0 14px; text-align: center; }.success-heading h2 { margin: 0; }.family-number-callout { display: inline-flex; justify-content: center; align-items: baseline; gap: 7px; margin-top: 16px; padding: 12px 22px; border: 2px solid #b9e5d4; border-radius: 16px; color: var(--muted); background: linear-gradient(135deg, #f2fcf7, #e3f7ee); box-shadow: 0 5px 0 rgba(49,141,115,.13); font-size: 16px; font-weight: 800; white-space: nowrap; }.family-number-callout strong { color: var(--mint-dark); font-size: 30px; line-height: 1; letter-spacing: .05em; }.registration-day-type { margin: 12px 0 0; color: var(--muted); font-size: 13px; }.registration-day-type strong { color: var(--ink); }.receipt { margin: 24px 0; background: #f4f8f6; border-radius: 17px; overflow: hidden; }.receipt div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 16px; border-bottom: 1px solid white; }.receipt dt { color: var(--muted); }.receipt dd { margin: 0; font-weight: 900; }.full { display: block; width: 100%; }
.camera-panel { position: relative; display: grid; place-items: center; min-height: 300px; margin: 18px 0 12px; overflow: hidden; border: 3px solid white; border-radius: 20px; background: #18302d; box-shadow: 0 10px 28px rgba(41,65,92,.18); }.camera-panel video { display: block; width: 100%; max-height: 480px; object-fit: contain; }.camera-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: white; background: linear-gradient(145deg, #29415c, #24584c); text-align: center; }.camera-placeholder[hidden] { display: none; }.camera-placeholder span { font-size: 58px; }.camera-placeholder p { margin: 8px 0 0; }.scan-status { min-height: 48px; margin: 12px 0; padding: 11px 14px; border-radius: 13px; color: var(--muted); background: #f4f8f6; font-size: 14px; }.scan-status.ready, .scan-status.success { color: #276f5c; background: #ddf7eb; }.scan-status.working { color: #6b5415; background: #fff5ce; }.scan-status.error { color: #8b3531; background: #ffe6e1; }.scan-actions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 11px; }.scan-actions .upload-button { grid-column: 1 / -1; }.scan-result { margin-top: 22px; padding: 18px; border: 2px solid #b9e5d4; border-radius: 18px; background: #f2fbf7; }.scan-result[hidden] { display: none; }.result-heading { display: flex; align-items: center; gap: 12px; }.result-heading > span { font-size: 32px; }.result-heading strong, .result-heading small { display: block; }.result-heading small { margin-top: 3px; color: var(--muted); }.scan-result ol { margin: 16px 0 20px; padding-left: 28px; }.scan-result li { margin: 8px 0; padding-left: 5px; font-weight: 800; }
.book-editor { display: grid; gap: 10px; margin: 18px 0; }.book-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; }.book-editor-row input { min-width: 0; }.remove-book-button { padding: 12px 14px; color: #8b3531; background: #ffe6e1; box-shadow: none; }.review-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 11px; }.review-panel { border-color: #ead486; background: #fffaf0; }
.alternate-entry { margin-top: 18px; padding: 16px; border: 2px dashed #d7e2de; border-radius: 16px; background: rgba(255,255,255,.7); }.alternate-entry > strong, .alternate-entry > small { display: block; }.alternate-entry > small { margin-top: 10px; color: var(--muted); line-height: 1.55; }.alternate-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 11px; margin-top: 11px; }.alternate-actions form, .alternate-actions button { width: 100%; height: 100%; }.skip-button { color: #805326; background: #fff0d8; box-shadow: 0 4px 0 #ead2ac; }
.photo-archive { margin-top: 18px; }.saved-photo-list { display: grid; gap: 9px; margin: 16px 0; padding: 0; list-style: none; }.saved-photo-list:empty::after { content: "尚未保存照片"; display: block; padding: 13px; border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.75); text-align: center; }.saved-photo-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 11px 13px; border-radius: 12px; background: white; font-weight: 400; }.saved-photo-list li strong { min-width: 0; overflow-wrap: anywhere; }.saved-photo-list li span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }.photo-download { flex: 0 0 auto; color: var(--mint-dark); font-size: 13px; font-weight: 900; }.photo-storage-note { margin: 12px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
footer { position: relative; z-index: 2; text-align: center; padding: 20px 0; color: #61786c; font-size: 13px; }
@media (max-width: 700px) { .service-modules { grid-template-columns: 1fr; }.service-module { min-height: 150px; } }
@media (max-width: 560px) { .page-shell { padding-top: 22px; }.card { border-radius: 22px; }.brand { justify-content: flex-start; }.hero-copy { align-items: flex-start; }.mascot { font-size: 48px; }.button-row, .info-strip, .scan-actions, .review-actions, .alternate-actions, .venue-stats-grid { grid-template-columns: 1fr; }.dashboard-heading { align-items: flex-start; flex-direction: column; gap: 7px; }.venue-stats-card dl { grid-template-columns: 1fr 1fr; }.scan-actions .upload-button { grid-column: auto; }.split-actions { display: flex; flex-direction: column-reverse; }.choice-grid { grid-template-columns: 1fr; }.reader-history { min-width: 620px; }.camera-panel { min-height: 240px; } }
