/* Monk 预约：在 Monk UI 之上的页面样式（预约页、预约状态页、后台共用） */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#themeBtn .t-sun { display: none; }
:root[data-theme="dark"] #themeBtn .t-sun { display: block; }
:root[data-theme="dark"] #themeBtn .t-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeBtn .t-sun { display: block; }
  :root:not([data-theme="light"]) #themeBtn .t-moon { display: none; }
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mk-accent); outline-offset: 2px; }

/* ---------------- 预约页布局 ---------------- */
.book { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; padding-top: 28px; padding-bottom: 72px; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; } }
.intro { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 960px) { .intro { position: static; } }
.who { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--mk-accent), var(--mk-accent-2)); color: #fff; font-weight: 900; font-size: 19px; box-shadow: var(--mk-shadow-glow); }
.intro h1 { margin: 0; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.15; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.bio { margin: 0; color: var(--mk-muted); font-size: 16px; line-height: 1.75; white-space: pre-line; max-width: 34em; }
.how { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: how; }
.how li { position: relative; display: grid; align-content: start; gap: 2px; padding-left: 42px; counter-increment: how; }
.how li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--mk-accent-ink); background: var(--mk-accent-soft); }
.how li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: -12px; width: 1px; background: var(--mk-border-strong); }
.how b { font-size: 15px; }
.how span { font-size: 13.5px; color: var(--mk-muted); line-height: 1.6; }
@media (max-width: 960px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; } .how li:not(:last-child)::after { display: none; } }

/* ---------------- 预约卡片 ---------------- */
.panel { padding: 8px 26px 26px; }
@media (max-width: 560px) { .panel { padding: 4px 16px 20px; margin: 0 -4px; } }
.step { border: 0; margin: 0; padding: 22px 0 0; min-width: 0; }
.step + .step { margin-top: 22px; border-top: 1px solid var(--mk-border); }
.step legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-size: 15px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; }
.step legend + * { clear: both; }
.tz { font-size: 12.5px; font-weight: 500; color: var(--mk-muted); }

.durations { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dur, .method, .topic, .day, .time {
  border: 1px solid var(--mk-border); background: var(--mk-surface-2); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--mk-ease), box-shadow .2s;
}
.dur:hover:not(:disabled), .method:hover, .topic:hover, .day:hover:not(:disabled), .time:hover { border-color: var(--mk-border-strong); }
.dur[aria-checked="true"], .method[aria-checked="true"], .topic[aria-checked="true"], .day[aria-checked="true"], .time[aria-checked="true"] {
  border-color: var(--mk-accent); background: var(--mk-accent-soft); box-shadow: 0 0 0 1px var(--mk-accent) inset;
}
.dur { display: grid; gap: 4px; justify-items: start; padding: 14px 16px; border-radius: var(--mk-r-md); text-align: left; }
.dur b { font-size: 18px; font-weight: 800; }
.dur span { font-size: 13.5px; color: var(--mk-muted); font-variant-numeric: tabular-nums; }
.dur[aria-checked="true"] span { color: var(--mk-accent-ink); font-weight: 700; }
.dur:disabled { opacity: .5; cursor: not-allowed; }

.days-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.days-nav { width: 34px; height: 34px; padding: 0; }
@media (max-width: 560px) { .days-wrap { grid-template-columns: minmax(0, 1fr); } .days-nav { display: none; } }
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.days::-webkit-scrollbar { display: none; }
.days.loading { opacity: .4; }
.day { flex: none; width: 66px; display: grid; justify-items: center; gap: 2px; padding: 9px 0 8px; border-radius: var(--mk-r-md); scroll-snap-align: start; }
.day .wk { font-size: 12px; color: var(--mk-muted); }
.day b { font-size: 16px; font-variant-numeric: tabular-nums; }
.day .n { font-size: 11px; color: var(--mk-accent-ink); font-weight: 700; }
.day.none { opacity: .45; cursor: not-allowed; background: transparent; }
.day.none .n { color: var(--mk-subtle); font-weight: 500; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 14px; }
.time { display: grid; justify-items: center; gap: 1px; padding: 10px 6px; border-radius: var(--mk-r-md); }
.time b { font-size: 15.5px; font-variant-numeric: tabular-nums; }
.time span { font-size: 11px; color: var(--mk-muted); }
.empty { margin: 12px 0 0; padding: 18px; border-radius: var(--mk-r-md); background: var(--mk-surface-2); color: var(--mk-muted); font-size: 14px; text-align: center; }

.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.topic { height: 36px; padding: 0 14px; border-radius: var(--mk-r-full); font-size: 14px; font-weight: 600; }
.field { position: relative; display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13.5px; font-weight: 700; }
.field em { font-style: normal; font-weight: 400; color: var(--mk-muted); margin-left: 8px; font-size: 12.5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border-radius: var(--mk-r-md); border: 1px solid var(--mk-border); background: var(--mk-surface-2);
  font: inherit; font-size: 15px; color: var(--mk-text); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--mk-accent-line); box-shadow: 0 0 0 4px var(--mk-accent-soft); }
.count { position: absolute; right: 12px; bottom: 9px; font-size: 11.5px; color: var(--mk-subtle); pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

.methods { display: grid; gap: 8px; }
.method { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--mk-r-md); text-align: left; }
.method svg { width: 28px; height: 28px; }
.method .mt { display: grid; gap: 1px; }
.method b { font-size: 15px; }
.method small { font-size: 12px; color: var(--mk-muted); }
.method .mp { font-weight: 800; font-variant-numeric: tabular-nums; }
.summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 0; }
.summary:empty { display: none; }
.summary b { font-size: 15.5px; }
.summary span { font-size: 13px; color: var(--mk-muted); }
.summary em { margin-left: auto; font-style: normal; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.go { width: 100%; margin-top: 16px; }
.go:disabled { opacity: .55; cursor: not-allowed; filter: saturate(.6); }
.err { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--mk-r-md); background: rgba(220, 38, 38, .08); color: #DC2626; font-size: 14px; }
.fine { margin: 12px 0 0; font-size: 12.5px; color: var(--mk-muted); line-height: 1.6; text-align: center; }
.closed { padding: 48px 8px; text-align: center; }
.closed h2 { margin: 0 0 8px; }
.closed p { margin: 0; color: var(--mk-muted); }

/* ---------------- 预约状态页 ---------------- */
.status-page { max-width: 640px; padding-top: 28px; padding-bottom: 72px; }
.st-card { padding: 26px; }
@media (max-width: 560px) { .st-card { padding: 20px 16px; } }
.st-state { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--mk-r-full); font-size: 13px; font-weight: 700; background: var(--mk-surface-2); color: var(--mk-muted); }
.st-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-state.wait { color: var(--mk-accent-ink); background: var(--mk-accent-soft); }
.st-state.ok { color: var(--mk-ok); background: var(--mk-ok-soft); }
.st-state.bad { color: #DC2626; background: rgba(220, 38, 38, .08); }
.st-card h1 { margin: 14px 0 6px; font-size: clamp(24px, 4vw, 32px); line-height: 1.25; font-weight: 900; letter-spacing: -.015em; }
.st-lede { margin: 0; color: var(--mk-muted); line-height: 1.7; }
.track { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 0; padding: 0; }
.track li { position: relative; padding-top: 14px; font-size: 13px; color: var(--mk-subtle); }
.track li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 2px; background: var(--mk-surface-3); }
.track li.done { color: var(--mk-text); }
.track li.done::before { background: var(--mk-accent); }
.track li.now::before { background: linear-gradient(90deg, var(--mk-accent) 40%, var(--mk-surface-3) 40%); animation: track 1.6s ease-in-out infinite alternate; }
@keyframes track { to { background-position: 0 0; opacity: .6; } }
.facts { margin: 22px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; font-size: 14.5px; }
.facts dt { color: var(--mk-muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.st-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.st-acts .mk-btn--primary { flex: 1 1 220px; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------------- 测试收银台 ---------------- */
.test-pay main { min-height: 80vh; display: grid; place-items: center; }
.test-card { padding: 30px; display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 420px; }
.test-card h1 { margin: 0; font-size: 22px; }
.test-card .price { margin: 0; font-size: 36px; font-weight: 900; }
.test-card form { width: 100%; }
.test-card .mk-btn--primary { width: 100%; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
