:root {
  color-scheme: light dark;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-green: #248a3d;
  --apple-orange: #c93400;
  --apple-red: #d70015;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #fbfbfd;
  --surface: rgba(255, 255, 255, .88);
  --surface-solid: #ffffff;
  --surface-raised: #ffffff;
  --label-primary: #1d1d1f;
  --label-secondary: #6e6e73;
  --label-tertiary: #86868b;
  --separator: rgba(0, 0, 0, .12);
  --separator-soft: rgba(0, 0, 0, .07);
  --fill: rgba(118, 118, 128, .12);
  --fill-hover: rgba(118, 118, 128, .18);
  --blue-tint: rgba(0, 113, 227, .11);
  --green-tint: rgba(36, 138, 61, .11);
  --orange-tint: rgba(201, 52, 0, .1);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .06);
  --shadow-float: 0 18px 60px rgba(0, 0, 0, .12);
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --margin-page: 16px;
  --gap-card: 12px;
  --padding-card: 16px;
  --radius-sm: 12px;
  --radius-card: 20px;
  --radius-lg: 28px;
  --ink: var(--label-primary);
  --muted: var(--label-secondary);
  --line: var(--separator);
  --paper: var(--bg-secondary);
  --white: var(--surface-solid);
  --mint: var(--blue-tint);
  --green: var(--apple-blue);
  --green-soft: var(--blue-tint);
  --orange: var(--apple-orange);
  --red-soft: var(--orange-tint);
  --maintenance-surface: var(--surface);
  --maintenance-text: var(--label-primary);
  --maintenance-muted: var(--label-secondary);
  --maintenance-border: var(--separator-soft);
  --maintenance-chip: var(--orange-tint);
  --maintenance-shadow: var(--shadow-card);
}

@media (prefers-color-scheme: dark) {
  :root {
    --apple-blue: #2997ff;
    --apple-blue-hover: #40a1ff;
    --apple-green: #30d158;
    --apple-orange: #ff9f0a;
    --apple-red: #ff453a;
    --bg-primary: #000000;
    --bg-secondary: #101010;
    --bg-tertiary: #1c1c1e;
    --surface: rgba(28, 28, 30, .82);
    --surface-solid: #1c1c1e;
    --surface-raised: #242426;
    --label-primary: #f5f5f7;
    --label-secondary: #a1a1a6;
    --label-tertiary: #86868b;
    --separator: rgba(255, 255, 255, .16);
    --separator-soft: rgba(255, 255, 255, .09);
    --fill: rgba(118, 118, 128, .24);
    --fill-hover: rgba(118, 118, 128, .32);
    --blue-tint: rgba(41, 151, 255, .16);
    --green-tint: rgba(48, 209, 88, .15);
    --orange-tint: rgba(255, 159, 10, .15);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 46px rgba(0, 0, 0, .34);
    --shadow-float: 0 20px 70px rgba(0, 0, 0, .5);
  }
}

html {
  scroll-behavior: smooth;
  background: var(--bg-secondary);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg-secondary);
  color: var(--label-primary);
  font-family: var(--font-system);
  font-size: 16px;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select { font-family: inherit; }

button,
a,
label { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 113, 227, .28);
  outline-offset: 2px;
}

.shell,
.admin-shell {
  width: min(100% - calc(var(--margin-page) * 2), 1120px);
  margin: 0 auto;
}

.shell { padding: 0 0 80px; }
.admin-shell { width: min(100% - calc(var(--margin-page) * 2), 1280px); padding: 0 0 80px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100vw;
  height: 52px;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 0 max(var(--margin-page), calc((100vw - 1120px) / 2));
  border-bottom: .5px solid var(--separator-soft);
  background: color-mix(in srgb, var(--bg-tertiary) 82%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.site-header,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--label-primary);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.03em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.text-link,
.ghost,
.hero-link,
.text-button {
  color: var(--apple-blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
}

.text-link:hover,
.hero-link:hover,
.text-button:hover { text-decoration: underline; }
.text-link.is-current { color: var(--label-primary); }

.eyebrow,
.step {
  color: var(--apple-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap-card);
  margin: 0 calc(-1 * var(--margin-page));
  padding: 32px var(--margin-page) 12px;
  background: var(--bg-secondary);
}

.home-overview-main,
.brand-visual {
  min-width: 0;
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  box-shadow: var(--shadow-card);
}

.home-overview-main { padding: var(--padding-card); }

.brand-visual {
  position: absolute;
  top: 40px;
  right: 28px;
  width: 92px;
  height: 92px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.brand-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.maintenance-pending .home-overview,
.maintenance-mode .home-overview,
.maintenance-pending .print-page-header,
.maintenance-mode .print-page-header,
.maintenance-pending .pickup-guide,
.maintenance-mode .pickup-guide { display: none; }

.hero {
  max-width: none;
  margin: 0;
  padding: 4px 104px 20px 0;
  text-align: left;
}

.hero-copy {
  max-width: 860px;
  margin: 0;
  padding: 0;
}

.hero .eyebrow { margin: 0 0 14px; }

.hero h1,
.status-hero h1 {
  margin: 0;
  color: var(--label-primary);
  font-size: clamp(46px, 12vw, 72px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.hero h1 { font-size: clamp(46px, 12vw, 68px); }

.hero h1 span,
.status-hero h1 span {
  color: var(--label-secondary);
}

.hero p,
.status-hero p {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--label-secondary);
  font-size: clamp(17px, 4.5vw, 21px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.hero-actions .primary {
  min-height: 44px;
  padding: 10px 20px;
}

.hero-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
}

.service-shelf {
  display: flex;
  gap: 24px;
  margin: 0 calc(-1 * var(--margin-page));
  overflow-x: auto;
  padding: 18px var(--margin-page) 52px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.service-shelf::-webkit-scrollbar,
.price-menu-list::-webkit-scrollbar { display: none; }

.service-tile {
  width: 112px;
  flex: 0 0 112px;
  scroll-snap-align: start;
  color: var(--label-primary);
  text-align: center;
  text-decoration: none;
}

.service-tile-image {
  width: 104px;
  height: 104px;
  display: block;
  overflow: hidden;
  margin: 0 auto 12px;
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  box-shadow: var(--shadow-card);
}

.service-tile img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-card);
  object-fit: cover;
  transition: transform 350ms cubic-bezier(.34, 1.56, .64, 1);
}

.service-tile:hover img { transform: scale(1.035); }
.service-tile strong { font-size: 14px; font-weight: 600; }

.hero-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 620px;
  margin: 0;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
  object-position: center 46%;
}

@media (prefers-color-scheme: dark) {
  .hero-visual img { filter: brightness(.72) contrast(1.06); }
}

.price-menu {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.price-menu-list {
  width: 100%;
  display: block;
  overflow: hidden;
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  box-shadow: var(--shadow-card);
}

.price-table-head,
.price-row {
  display: grid;
  grid-template-columns: minmax(88px, .7fr) minmax(0, 1.8fr);
  gap: 16px;
  align-items: center;
  border: 0;
  border-bottom: .5px solid var(--separator-soft);
  border-radius: 0;
  background: transparent;
  color: var(--label-primary);
  padding: 16px;
  text-decoration: none;
}

.price-table-head {
  min-height: 42px;
  background: var(--fill);
  color: var(--label-secondary);
  font-size: 12px;
  font-weight: 600;
}
.price-row:last-child { border-bottom: 0; }
.price-row strong { color: var(--label-primary); font-size: 15px; font-weight: 600; }
.price-row > span { color: var(--label-secondary); font-size: 14px; line-height: 1.45; }
.price-row:hover { background: var(--fill); }
.price-note { margin: 10px 4px 0; color: var(--label-secondary); font-size: 12px; line-height: 1.5; }
.pickup-guide-link { color: var(--apple-blue); font-weight: 600; text-underline-offset: 2px; }

.pickup-guide {
  scroll-margin-top: 64px;
  margin: 0 calc(-1 * var(--margin-page));
  padding: 0 var(--margin-page) var(--gap-card);
  background: var(--bg-secondary);
}

.pickup-guide-card {
  display: grid;
  gap: 24px;
  overflow: hidden;
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  padding: var(--padding-card);
  box-shadow: var(--shadow-card);
}

.pickup-guide-copy .eyebrow { margin: 0 0 10px; }

.pickup-guide-copy h2 {
  margin: 0;
  color: var(--label-primary);
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.pickup-guide-copy > p:not(.pickup-warning) {
  margin: 14px 0 0;
  color: var(--label-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.pickup-guide-copy > p strong { color: var(--label-primary); }

.pickup-steps {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  counter-reset: pickup-step;
  list-style: none;
}

.pickup-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--label-primary);
  font-size: 14px;
  line-height: 1.5;
  counter-increment: pickup-step;
}

.pickup-steps li::before {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--apple-blue);
  content: counter(pickup-step);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.pickup-warning {
  width: fit-content;
  margin: 20px 0 0;
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--apple-orange);
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.pickup-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.pickup-photo {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--bg-secondary);
}

.pickup-photo a {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
  aspect-ratio: 3 / 4;
}

.pickup-photo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  transition: transform 350ms cubic-bezier(.34, 1.56, .64, 1);
}

.pickup-photo a:hover img { transform: scale(1.025); }

.pickup-photo figcaption {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--label-secondary);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap-card);
  margin: 0 calc(-1 * var(--margin-page));
  padding: 0 var(--margin-page) 56px;
  border: 0;
  background: var(--bg-secondary);
}

.workbench > form,
.side-note,
.lookup-section,
.payment-result,
.login-view,
.settings-section,
.queue {
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  box-shadow: var(--shadow-card);
}

.workbench > form { padding: var(--padding-card); }

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.section-head.compact { margin-top: 36px; }
.section-head h2,
.queue-head h2 { margin: 0; color: var(--label-primary); font-size: 22px; letter-spacing: -.025em; }
.section-head p,
.queue-head span { margin: 5px 0 0; color: var(--label-secondary); font-size: 13px; line-height: 1.5; }
.step { min-width: 42px; padding-top: 5px; }

.choice-group { margin: 20px 0 0; }
.choice-group legend,
.field { color: var(--label-secondary); font-size: 13px; font-weight: 500; }

input,
select {
  min-height: 48px;
  margin-top: 8px;
  border: .5px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--fill);
  color: var(--label-primary);
  padding: 12px 14px;
  font-size: 16px;
}

input::placeholder { color: var(--label-tertiary); }
input:focus,
select:focus { border-color: var(--apple-blue); outline: 3px solid var(--blue-tint); }

.segmented {
  display: grid;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--fill);
  padding: 3px;
  gap: 3px;
}

.segmented span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--label-secondary);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 550;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.segmented input:checked + span {
  background: var(--surface-raised);
  color: var(--label-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.dropzone {
  min-height: 220px;
  margin-top: 20px;
  border: 1.5px dashed var(--separator);
  border-radius: var(--radius-card);
  background: var(--bg-secondary);
  transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1), border-color 180ms ease, background 180ms ease;
}

.dropzone:hover,
.dropzone.drag {
  border-color: var(--apple-blue);
  background: var(--blue-tint);
  transform: scale(1.005);
}

.upload-icon { display: none; }
.dropzone strong { font-size: 18px; letter-spacing: -.02em; }
.dropzone small { margin-top: 8px; color: var(--label-secondary); font-size: 13px; }

.wechat-upload-help { margin-top: 8px; }
.wechat-upload-help > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-left: auto;
  padding: 8px 4px;
  border-radius: 8px;
  color: var(--apple-blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.wechat-upload-help > summary::-webkit-details-marker { display: none; }
.wechat-upload-help > summary:hover { background: var(--blue-tint); }
.wechat-upload-help > summary:focus-visible { outline: 2px solid var(--apple-blue); outline-offset: 2px; }
.wechat-upload-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}
.wechat-upload-help-chevron {
  width: 7px;
  height: 7px;
  margin: 0 4px 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.wechat-upload-help[open] .wechat-upload-help-chevron { margin-bottom: -3px; transform: rotate(225deg); }
.wechat-upload-help-content {
  margin-top: 8px;
  border: .5px solid var(--separator-soft);
  border-radius: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  color: var(--label-primary);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.wechat-upload-help-content p { margin: 0; }
.wechat-upload-help-content section { margin-top: 24px; }
.wechat-upload-help-content h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.wechat-upload-help-content ol { margin: 0; padding-left: 24px; }
.wechat-upload-help-content li + li { margin-top: 8px; }
.wechat-upload-help-intro { color: var(--label-secondary); }
.wechat-upload-help-content .wechat-upload-help-tip {
  margin-top: 24px;
  border-top: .5px solid var(--separator);
  padding-top: 16px;
  color: var(--label-secondary);
  font-size: 13px;
}

.file-list { gap: 0; margin-top: 12px; }
.file-item { min-height: 48px; border-bottom: .5px solid var(--separator-soft); padding: 10px 4px; }
.file-item strong { font-size: 13px; }
.file-item small { color: var(--label-secondary); }

.upload-progress,
.quote-box {
  margin-top: 16px;
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--bg-secondary);
  padding: var(--padding-card);
}

.quote-box { border-top: .5px solid var(--separator-soft); border-bottom: .5px solid var(--separator-soft); }
.upload-progress-track { background: var(--fill); }
.upload-progress-bar { background: var(--apple-blue); }
.quote-grid strong { font-family: var(--font-mono); }

.primary,
.secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1), background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.primary { border: 0; background: var(--apple-blue); color: #fff; }
.primary:hover { background: var(--apple-blue-hover); transform: translateY(-1px); }
.secondary { border: 0; background: var(--fill); color: var(--label-primary); }
.secondary:hover { border-color: transparent; background: var(--fill-hover); color: var(--label-primary); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .48; transform: none !important; }

.form-actions { gap: 10px; }
.form-message { color: var(--label-secondary); font-size: 13px; }
.form-message.loading { color: var(--apple-blue); }
.form-message.success,
.quiet.success,
.settings-hint.success { color: var(--apple-green); }
.form-message.error,
.error,
.quiet.error,
.settings-hint.error { color: var(--apple-orange); }
.notice,
.quiet,
.settings-hint { color: var(--label-secondary); }

.side-note {
  height: max-content;
  margin: 0;
  border-left: .5px solid var(--separator-soft);
  padding: 22px;
}

.status-dot { background: var(--apple-green); }
.mini-rule { background: var(--separator-soft); }

.result {
  max-width: 760px;
  margin: 56px auto 0;
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.result-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--apple-green);
  box-shadow: 0 0 0 7px var(--green-tint);
}

.result h2 { font-size: 30px; letter-spacing: -.035em; }
.result p { color: var(--label-secondary); }
.result-details { gap: 16px; }
.result-details dt { color: var(--label-secondary); }
.result-details dd { color: var(--label-primary); font-family: var(--font-mono); }
.result-actions { gap: 16px; }
.result .ghost,
.result-actions .ghost { min-height: 44px; display: inline-flex; align-items: center; margin: 0; border: 0; padding: 0; }
.result-actions .primary { min-height: 44px; padding: 10px 20px; color: #fff; }

.maintenance-notice {
  max-width: 900px;
  min-height: 420px;
  margin: 64px auto;
  border: .5px solid var(--maintenance-border);
  border-radius: var(--radius-lg);
  background: var(--maintenance-surface);
  padding: clamp(28px, 7vw, 68px);
  box-shadow: var(--maintenance-shadow);
}

.maintenance-notice::after { background: radial-gradient(circle, var(--blue-tint), transparent 68%); }
.maintenance-notice h1 { font-size: clamp(42px, 10vw, 68px); font-weight: 700; letter-spacing: -.055em; }
.maintenance-notice h1 span { color: var(--label-secondary); }
.maintenance-notice p { color: var(--label-secondary); font-size: 16px; }
.maintenance-status { color: var(--apple-orange); background: var(--orange-tint); }
.maintenance-status-dot { background: var(--apple-orange); }
.maintenance-action { border-radius: 999px; background: var(--apple-blue); padding: 12px 20px; }
.maintenance-action:hover { background: var(--apple-blue-hover); }

/* 独立状态页 */
.status-shell { max-width: 900px; }
.status-hero { padding: 64px 0 36px; text-align: center; }
.status-hero .eyebrow { margin-bottom: 14px; }
.status-hero h1 { font-size: clamp(42px, 11vw, 68px); }
.status-hero p { max-width: 600px; font-size: 17px; }

.status-lookup {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--padding-card);
  border-top: .5px solid var(--separator-soft);
}

.status-lookup .section-head.compact { margin-top: 0; }
.lookup-form { grid-template-columns: 1fr; gap: 10px; }
.lookup-form .primary { width: 100%; }
.status-result { margin-top: 18px; border: 0; border-radius: var(--radius-card); background: var(--bg-secondary); padding: 20px; }

.status-current {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: .5px solid var(--separator-soft);
}

.status-current small,
.status-summary small { display: block; color: var(--label-secondary); font-size: 12px; }
.status-current strong { display: block; margin-top: 7px; font-size: 28px; letter-spacing: -.035em; }
.status-refresh-time { color: var(--label-tertiary); font-size: 12px; }
.status-summary { grid-template-columns: 1fr; gap: 14px; padding: 20px 0; border-bottom: .5px solid var(--separator-soft); }
.status-summary strong { font-family: var(--font-mono); font-size: 14px; }

.status-timeline { margin: 24px 0 10px; }
.status-step { min-height: 58px; gap: 14px; color: var(--label-tertiary); font-size: 14px; }
.status-step-dot { width: 12px; height: 12px; margin-top: 3px; border-color: var(--separator); background: var(--surface-solid); }
.status-step:not(:last-child) .status-step-dot::after { height: 47px; margin: 11px 0 0 5px; background: var(--separator); }
.status-step.done,
.status-step.active { color: var(--label-primary); }
.status-step.done .status-step-dot,
.status-step.active .status-step-dot { border-color: var(--apple-blue); background: var(--apple-blue); }
.status-step strong { display: block; font-size: 15px; }
.status-step small { display: block; margin-top: 4px; color: var(--label-secondary); font-size: 12px; }
.status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.status-actions .ghost { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }
.simple-footer { padding: 32px 0 8px; color: var(--label-tertiary); font-size: 12px; text-align: center; }

/* 支付结果页 */
.payment-result-page { max-width: 900px; }
.payment-result {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 28px;
  border-top: .5px solid var(--separator-soft);
}

.payment-result h1 { font-size: clamp(40px, 10vw, 60px); font-weight: 700; letter-spacing: -.05em; }
.payment-result > p { color: var(--label-secondary); font-size: 16px; }
.payment-result-details { margin-top: 28px; }
.payment-result.has-error { border-color: var(--apple-orange); }

/* 管理后台 */
.admin-body { background: var(--bg-secondary); }
.admin-shell { padding-top: 24px; }
.login-view { width: min(100%, 430px); margin: 10vh auto 0; padding: 28px; border-top: .5px solid var(--separator-soft); }
.login-view h1 { margin: 0 0 10px; font-size: 38px; letter-spacing: -.045em; }
.login-view > p { color: var(--label-secondary); font-size: 14px; }
.login-view .primary { width: 100%; }

.admin-header {
  align-items: flex-end;
  padding: 24px 0;
  border-bottom: .5px solid var(--separator-soft);
}
.admin-header h1 { font-size: 40px; letter-spacing: -.045em; }
.header-actions { gap: 16px; }
.header-actions .ghost { min-height: 44px; display: inline-flex; align-items: center; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-card);
  margin: 20px 0;
  border: 0;
}
.stats div { min-height: 104px; border-radius: var(--radius-card); background: var(--surface-solid); padding: 18px; box-shadow: var(--shadow-card); }
.stats small { color: var(--label-secondary); }
.stats strong { color: var(--label-primary); font-family: var(--font-mono); font-size: 30px; }

.settings-section,
.queue { margin-top: var(--gap-card); padding: var(--padding-card); border-bottom: .5px solid var(--separator-soft); }
.performance-section { margin-bottom: 0; }
.payment-settings-section,
.notification-settings-section { background: var(--surface-solid); }
.printer-status-section,
.printer-status-section.is-fault { background: var(--surface-solid); }
.printer-status-panel { max-width: none; border: .5px solid var(--separator-soft); border-radius: var(--radius-card); background: var(--bg-secondary); box-shadow: none; }
.printer-state-pill { background: var(--green-tint); color: var(--apple-green); }
.printer-status-section.is-fault .printer-state-pill { background: var(--orange-tint); color: var(--apple-orange); }
.printer-status-section.is-fault .printer-status-panel { border-color: color-mix(in srgb, var(--apple-orange) 30%, transparent); }

.toggle-control { background: var(--fill-hover); }
.toggle-control::after { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .24); }
.toggle-field > input:checked + .toggle-control { background: var(--apple-green); }

.rate-table,
.callback-urls,
.jobs { border-color: var(--separator-soft); }
.rate-head,
.rate-row { border-color: var(--separator-soft); }
.payment-method-row input { background: var(--fill); }
.callback-urls code { color: var(--label-primary); }
.notification-event {
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--bg-secondary);
}

.icon-button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label-primary);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
}
.icon-button:hover { border-color: transparent; background: var(--fill-hover); color: var(--label-primary); }
.remove-method { color: var(--apple-red); }

.performance-grid { grid-template-columns: 1fr; }
.performance-card { border: .5px solid var(--separator-soft); border-radius: var(--radius-card); background: var(--bg-secondary); }

.job {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: var(--gap-card);
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--bg-secondary);
  padding: 18px;
}
.job:first-child { margin-top: 0; }
.job-title-row { flex-wrap: wrap; gap: 8px; }
.job-name { font-family: var(--font-mono); }
.job-meta { color: var(--label-secondary); }
.job-amount { font-family: var(--font-mono); font-size: 20px; }
.job-actions { justify-content: flex-start; }
.admin-file-list li { color: var(--label-primary); }
.admin-file-list a,
.text-button { color: var(--apple-blue); }
.file-delete-button,
.file-deleted { color: var(--apple-red); }

.badge,
.payment-badge { border-radius: 999px; padding: 5px 9px; }
.badge { background: var(--fill); color: var(--label-secondary); }
.badge.downloaded { background: rgba(10, 132, 255, .12); color: var(--apple-blue); }
.badge.printing,
.badge.awaiting_payment,
.payment-badge.pending { background: var(--orange-tint); color: var(--apple-orange); }
.badge.completed,
.badge.collected,
.payment-badge.paid { background: var(--green-tint); color: var(--apple-green); }
.badge.failed,
.badge.canceled,
.payment-badge.payment-warning { background: rgba(215, 0, 21, .1); color: var(--apple-red); }

@media (min-width: 600px) {
  :root { --margin-page: 24px; --padding-card: 24px; }
  .service-shelf { gap: 32px; }
  .service-tile { width: 132px; flex-basis: 132px; }
  .service-tile-image { width: 120px; height: 120px; }
  .lookup-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .lookup-form .primary { width: auto; min-width: 140px; }
  .status-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { grid-template-columns: minmax(0, 1fr) 110px; }
  .job-amount { text-align: right; }
  .job-actions { grid-column: 1 / -1; }
}

@media (min-width: 860px) {
  :root { --margin-page: 28px; --padding-card: 28px; }
  .home-overview {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
    padding: 56px 56px 12px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .home-overview-main { padding: 32px; }
  .brand-visual {
    position: static;
    width: auto;
    height: auto;
    min-height: 100%;
    border: .5px solid var(--separator-soft);
    background: var(--surface-solid);
    box-shadow: var(--shadow-card);
    pointer-events: auto;
  }
  .brand-visual img { width: min(88%, 248px); height: auto; }
  .hero { padding: 0 0 24px; }
  .hero-copy { padding-bottom: 0; }
  .service-shelf { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .hero-visual { aspect-ratio: 16 / 7; border-radius: var(--radius-lg); }
  .hero-visual img { border-radius: var(--radius-lg); }
  .price-menu,
  .pickup-guide,
  .workbench { margin-left: 0; margin-right: 0; border-radius: var(--radius-lg); }
  .price-menu { max-width: none; margin: 0; }
  .pickup-guide { padding: 0 56px var(--gap-card); }
  .pickup-guide-card {
    grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
    align-items: start;
    padding: 32px;
  }
  .workbench {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 0 56px 56px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .workbench > form { padding: 32px; }
  .performance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .job { grid-template-columns: minmax(0, 1fr) 110px minmax(190px, 280px); }
  .job-actions { grid-column: auto; justify-content: flex-end; }
}

@media (max-width: 520px) {
  .site-nav { gap: 12px; }
  .site-nav .text-link { font-size: 12px; }
  .site-nav .text-link:last-child { display: none; }
  .hero h1 { font-size: 46px; }
  .service-choice .service-options { grid-template-columns: 1fr; }
  .options,
  .form-actions,
  .result-details,
  .payment-result-details,
  .special-rate-grid { grid-template-columns: 1fr; }
  .result { gap: 18px; }
  .result-details div:last-child { grid-column: auto; }
  .payment-method-row { grid-template-columns: 1fr 1fr; }
  .payment-method-row .method-enabled,
  .payment-method-row .remove-method { grid-column: auto; }
  .printer-status-panel { align-items: stretch; flex-direction: column; }
  .printer-toggle { border-top: .5px solid var(--separator-soft); border-left: 0; padding: 20px 0 0; }
  .rate-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rate-head,
  .rate-row { grid-template-columns: 88px repeat(3, 120px); min-width: 480px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .header-actions { width: 100%; justify-content: space-between; }
  .pickup-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 管理后台：独立页面导航 */
.admin-page-description {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--label-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: var(--gap-card);
  padding-top: var(--gap-card);
}

.admin-navigation {
  position: sticky;
  top: var(--gap-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
  padding: 8px;
  box-shadow: var(--shadow-card);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.admin-navigation-title {
  padding: 12px 12px 8px;
  color: var(--label-tertiary);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-nav-item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--label-secondary);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, transform 300ms cubic-bezier(.34, 1.56, .64, 1);
}

.admin-nav-item:hover { background: var(--fill); color: var(--label-primary); }
.admin-nav-item:active { transform: scale(.98); }
.admin-nav-item.is-active { background: var(--blue-tint); color: var(--apple-blue); }

.admin-nav-index {
  color: var(--label-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
}

.admin-nav-item.is-active .admin-nav-index { color: var(--apple-blue); }

.admin-nav-badge {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--apple-red);
  color: #fff;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.admin-pages { min-width: 0; }
.admin-page-block[hidden] { display: none !important; }
.admin-pages > .settings-section:first-child,
.admin-pages > .queue:first-child { margin-top: 0; }
.admin-pages > .settings-section,
.admin-pages > .queue { border-radius: var(--radius-card); background: var(--surface-solid); box-shadow: var(--shadow-card); }
.admin-pages > .stats { margin-top: 0; }

@media (max-width: 820px) {
  .admin-shell { width: min(100% - calc(var(--margin-page) * 2), 1280px); }
  .admin-workspace { display: block; padding-top: 0; }
  .admin-navigation {
    position: sticky;
    top: 0;
    z-index: 45;
    width: 100vw;
    margin: 0 0 var(--gap-card) calc(50% - 50vw);
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    border-width: 0 0 .5px;
    border-radius: 0;
    padding: 8px var(--margin-page);
    box-shadow: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .admin-navigation::-webkit-scrollbar { display: none; }
  .admin-navigation-title { display: none; }
  .admin-nav-item {
    min-width: max-content;
    min-height: 44px;
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    padding: 0 14px;
  }
  .admin-nav-index { display: none; }
}

@media (max-width: 520px) {
  .admin-header { padding: 16px 0; }
  .admin-header h1 { font-size: 34px; }
  .admin-page-description { font-size: 13px; }
  .admin-pages > .settings-section,
  .admin-pages > .queue { padding: var(--padding-card); }
}

/* 用户端：四个独立服务页面 */
.site-meta {
  color: var(--label-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.customer-navigation {
  position: sticky;
  top: 52px;
  z-index: 44;
  width: 100vw;
  min-height: 56px;
  margin-left: calc(50% - 50vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  border-bottom: .5px solid var(--separator-soft);
  background: color-mix(in srgb, var(--bg-tertiary) 82%, transparent);
  padding: 6px var(--margin-page);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.customer-navigation::-webkit-scrollbar { display: none; }

.customer-nav-item {
  min-width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 12px;
  color: var(--label-secondary);
  padding: 0 15px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, transform 300ms cubic-bezier(.34, 1.56, .64, 1);
}

.customer-nav-item > span {
  color: var(--label-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
}

.customer-nav-item:hover { background: var(--fill); color: var(--label-primary); }
.customer-nav-item:active { transform: scale(.98); }
.customer-nav-item.is-active { background: var(--blue-tint); color: var(--apple-blue); }
.customer-nav-item.is-active > span { color: var(--apple-blue); }

.customer-page-header {
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 44px 0 32px;
}

.customer-page-header h1 {
  margin: 10px 0 0;
  color: var(--label-primary);
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .98;
}

.customer-page-header h1 span { color: var(--label-secondary); }

.customer-page-header p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--label-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.customer-page-header img {
  width: clamp(116px, 17vw, 210px);
  height: auto;
  display: block;
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  object-fit: contain;
  box-shadow: var(--shadow-card);
}

.print-page-header + .workbench {
  margin: 0;
  border-radius: var(--radius-card);
  padding: 0 0 56px;
}

.price-page-card,
.customer-action-card {
  border: .5px solid var(--separator-soft);
  border-radius: var(--radius-card);
  background: var(--surface-solid);
  padding: var(--padding-card);
  box-shadow: var(--shadow-card);
}

.price-page-card .section-head { margin-bottom: var(--gap-card); }
.price-row-loading { cursor: default; }
.price-row-loading:hover { background: transparent; }
.price-note.error { color: var(--apple-red); }

.customer-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: var(--gap-card);
}

.customer-action-card strong {
  display: block;
  color: var(--label-primary);
  font-size: 18px;
}

.customer-action-card p {
  margin: 6px 0 0;
  color: var(--label-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.customer-action-card .primary {
  min-width: 128px;
  text-align: center;
  text-decoration: none;
}

.pickup-page-guide {
  margin: 0;
  padding: 0;
  background: transparent;
}

.pickup-page-guide .pickup-guide-card { padding: var(--padding-card); }

.pickup-status-action {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  text-decoration: none;
}

.customer-shell .simple-footer { padding-bottom: 32px; }

@media (max-width: 720px) {
  .customer-navigation { justify-content: flex-start; }
  .customer-nav-item { padding: 0 13px; font-size: 13px; }
  .customer-nav-item > span { display: none; }
  .customer-page-header {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 16px;
    padding: 34px 0 24px;
  }
  .customer-page-header h1 { font-size: clamp(40px, 13vw, 56px); }
  .customer-page-header p { margin-top: 16px; font-size: 15px; }
  .customer-page-header img { width: 88px; }
  .customer-action-card { align-items: stretch; flex-direction: column; }
  .customer-action-card .primary { width: 100%; }
}

@media (max-width: 420px) {
  .site-meta { font-size: 10px; }
  .customer-page-header:not(.print-page-header) { grid-template-columns: 1fr; }
  .print-page-header h1 { font-size: 44px; }
}
