@import url("assets/tokens.css");
/* 顾客首页生产样式：按已确认的 ui/preview/home.html 设计稿逐项对齐。 */
/* ============================================================
   社区家政 · preview.css
   顾客 H5 高保真页共享样式。基础层来自 ui/base.css 的同源拷贝，
   下方追加 preview 页面共用组件；页面只写结构，不重复发明皮肤。
   方向 A「工时刻度 / Slot Ledger」
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
p,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-ink);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -64px;
  z-index: calc(var(--z-toast) + 1);
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.mono,
.tnum {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.01em;
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.small {
  font-size: var(--text-sm);
}

.tiny {
  font-size: var(--text-xs);
}

.strong {
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  color: var(--brand-ink);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.kicker {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------------- 图标 ---------------- */
.ico {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  color: currentColor;
  vertical-align: -0.18em;
}

.ico > svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-sm {
  width: 15px;
  height: 15px;
}

.ico-lg {
  width: 22px;
  height: 22px;
}

.ico-xl {
  width: 28px;
  height: 28px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  background: var(--panel);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard),
    opacity var(--dur-fast) var(--ease-standard);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.btn-soft {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-ink);
}

.btn-soft:hover {
  background: #d5ebe4;
  color: var(--brand-ink);
}

.btn-ok {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.btn-ok:hover {
  background: #196a46;
  border-color: #196a46;
  color: #fff;
}

.btn-danger {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}

.btn-danger:hover {
  background: #98372f;
  border-color: #98372f;
  color: #fff;
}

.btn-danger-ghost {
  background: var(--panel);
  border-color: var(--bad-line);
  color: var(--bad);
}

.btn-danger-ghost:hover {
  background: var(--bad-soft);
  border-color: var(--bad);
  color: var(--bad);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 30px;
  padding: 0 9px;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  min-height: 46px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-icon {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: var(--text-sm);
  font-weight: 600;
}

.btn-link:hover {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn[disabled],
.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.btn[aria-busy="true"] {
  opacity: 0.9;
  cursor: progress;
}

.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pc79-spin 0.7s linear infinite;
  flex: none;
}

.btn-ghost .spinner,
.btn-soft .spinner,
.btn-danger-ghost .spinner {
  border-color: var(--brand-line);
  border-top-color: var(--brand);
}

@keyframes pc79-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------- 标签 / 状态 ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: var(--panel-3);
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.tag--plain::before {
  display: none;
}

.tag-ok {
  background: var(--ok-soft);
  border-color: var(--ok-line);
  color: var(--ok);
}

.tag-warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn);
}

.tag-bad {
  background: var(--bad-soft);
  border-color: var(--bad-line);
  color: var(--bad);
}

.tag-info {
  background: var(--info-soft);
  border-color: var(--info-line);
  color: var(--info);
}

.tag-brand {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-ink);
}

.tag-muted {
  background: var(--panel-3);
  border-color: var(--line);
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  font-size: var(--text-2xs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.st-pending {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn);
}

.st-confirmed {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-ink);
}

.st-completed {
  background: var(--ok-soft);
  border-color: var(--ok-line);
  color: var(--ok);
}

.st-rejected {
  background: var(--bad-soft);
  border-color: var(--bad-line);
  color: var(--bad);
}

.st-canceled {
  background: var(--panel-3);
  border-color: var(--line);
  color: var(--muted);
}

.st-overdue {
  background: var(--bad-soft);
  border-color: var(--bad-line);
  color: var(--bad);
}

/* ---------------- 名额点阵 ---------------- */
.cap-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
}

.cap-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--slot-free);
  background: transparent;
  display: block;
}

.cap-dots i.is-on {
  border-color: var(--brand);
  background: var(--brand);
}

.cap-dots i.is-full {
  border-color: var(--bad);
  background: var(--bad);
}

.cap-dots i.is-warn {
  border-color: var(--warn);
  background: var(--warn);
}

.cap-dots--lg {
  gap: 4px;
}

.cap-dots--lg i {
  width: 8px;
  height: 8px;
}

.cap-meter {
  display: flex;
  gap: 3px;
  align-items: center;
}

.cap-meter i {
  width: 18px;
  height: 5px;
  border-radius: 1px;
  background: var(--line);
}

.cap-meter i.is-on {
  background: var(--brand);
}

.cap-meter i.is-full {
  background: var(--bad);
}

/* ---------------- 表单 ---------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  margin-bottom: 14px;
}

.field > label,
.field-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
}

.field .req {
  color: var(--bad);
  margin-left: 2px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: var(--panel);
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.5;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--faint);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #aebfb7;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.textarea {
  min-height: 82px;
  resize: vertical;
}

.input[readonly] {
  background: var(--panel-3);
  color: var(--muted);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--bad);
  background: #fffafa;
}

.field-hint {
  font-size: var(--text-2xs);
  color: var(--muted);
  line-height: 1.55;
}

.field-error {
  font-size: var(--text-2xs);
  color: var(--bad);
  font-weight: 600;
  line-height: 1.5;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--bad);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.65;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 30px;
  color: var(--ink-2);
  font-size: var(--text-xs);
  line-height: 1.6;
}

.checkline input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  flex: none;
}

.checkline a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.code-row .input {
  flex: 1;
  min-width: 0;
}

.code-row .btn {
  flex: none;
  min-width: 104px;
}

.alert {
  display: none;
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid var(--bad-line);
  border-radius: var(--radius-sm);
  background: var(--bad-soft);
  color: var(--bad);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.6;
}

.alert.is-on,
.alert[data-on="true"] {
  display: block;
}

.alert--warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn);
}

.alert--info {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-ink);
}

/* ---------------- 弹层 / 抽屉 / Toast ---------------- */
dialog {
  padding: 0;
  border: 0;
  background: var(--panel);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(15, 28, 24, 0.44);
  backdrop-filter: blur(2px);
}

.dlg {
  width: min(460px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-2);
}

.dlg[open] {
  animation: pc79-dialog-in var(--dur-base) var(--ease-out);
}

@keyframes pc79-dialog-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dlg-head {
  padding: 18px 20px 6px;
}

.dlg-head h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.dlg-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.65;
}

.dlg-body {
  padding: 10px 20px 4px;
}

.dlg-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
}

.dlg-foot .btn {
  min-width: 84px;
}

.dlg-close {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.dlg-close:hover {
  background: var(--panel-3);
  color: var(--ink);
}

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(22, 33, 30, 0.96);
  color: #fff;
  font-size: var(--text-xs);
  line-height: 1.55;
  text-align: center;
  box-shadow: var(--shadow-2);
  animation: pc79-toast-in var(--dur-base) var(--ease-out);
}

.toast--ok {
  background: rgba(33, 122, 82, 0.97);
}

.toast--bad {
  background: rgba(180, 69, 60, 0.97);
}

@keyframes pc79-toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------- 空 / 错 / 载入 / 无权限 ---------------- */
.state-box {
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  text-align: center;
}

.state-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.state-box h3 {
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.4;
}

.state-box p {
  max-width: 36em;
  margin: 4px auto 16px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.7;
}

.state-box--error .state-icon {
  background: var(--bad-soft);
  color: var(--bad);
}

.state-box--denied .state-icon {
  background: var(--panel-3);
  color: var(--muted);
}

.state-box--full .state-icon {
  background: var(--warn-soft);
  color: var(--warn);
}

.skeleton {
  background: linear-gradient(
    90deg,
    #e9efeb 25%,
    #f7faf7 37%,
    #e9efeb 63%
  );
  background-size: 400% 100%;
  border-radius: 4px;
  animation: pc79-skeleton 1.2s ease infinite;
}

@keyframes pc79-skeleton {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

[data-state-only] {
  display: none;
}

body[data-state="loading"] .live-content,
body[data-state="empty"] .live-content,
body[data-state="error"] .live-content,
body[data-state="denied"] .live-content,
body[data-state="full"] .live-content {
  display: none !important;
}

body[data-state="loading"] [data-state-only="loading"],
body[data-state="empty"] [data-state-only="empty"],
body[data-state="error"] [data-state-only="error"],
body[data-state="denied"] [data-state-only="denied"],
body[data-state="full"] [data-state-only="full"] {
  display: block;
}

/* ---------------- 图片占位 ---------------- */
.media-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--panel-3);
  background-image: repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 9px,
      rgba(100, 115, 110, 0.06) 9px,
      rgba(100, 115, 110, 0.06) 10px
    );
  color: var(--muted);
  text-align: center;
}

.media-ph::before,
.media-ph::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--line-strong);
  border-style: solid;
}

.media-ph::before {
  left: 8px;
  top: 8px;
  border-width: 1px 0 0 1px;
}

.media-ph::after {
  right: 8px;
  bottom: 8px;
  border-width: 0 1px 1px 0;
}

.media-ph .ico {
  width: 20px;
  height: 20px;
}

.media-ph b {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-2);
}

.media-ph small {
  font-size: var(--text-2xs);
  color: var(--muted);
}

.media-16x9 {
  aspect-ratio: 16 / 9;
}

.media-4x3 {
  aspect-ratio: 4 / 3;
}

/* ---------------- 可见性 / 打印 ---------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .pc-side,
  .pc-status,
  .pc-top,
  .toast-wrap,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
  }
}

/* ============================================================
   顾客 H5 壳与业务组件（方向 A · 工时刻度）
   3 个关键预览页与后续顾客端页面共用；小程序复用令牌，
   不直接复用浏览器顶栏、hover 与固定定位。
   ============================================================ */

.app-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-2);
}

.app-shell {
  width: 100%;
  max-width: var(--mobile-max);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  border-inline: 1px solid transparent;
}

@media (min-width: 520px) {
  .app-shell {
    border-inline-color: var(--line);
  }
}

.app-top {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 244, 0.96);
  backdrop-filter: blur(8px);
}

.app-top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--app-header-h);
  padding: 0 var(--mobile-gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--brand-ink);
  border-radius: 9px;
  background: var(--brand-ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 5px;
  left: 7px;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.open-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
}

.app-top .btn {
  min-width: 44px;
  min-height: 44px;
}

.back-btn,
.top-icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  margin-left: -11px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.back-btn:hover,
.top-icon-btn:hover {
  background: var(--panel-3);
  color: var(--ink);
}

.top-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-spacer {
  width: 44px;
  flex: none;
}

.notice {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--app-notice-h);
  padding: 0 var(--mobile-gutter);
  border-top: 1px solid rgba(191, 220, 211, 0.72);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 11.5px;
  line-height: 1.45;
}

.notice .ico {
  width: 13px;
  height: 13px;
}

.notice-text {
  min-width: 0;
  flex: 1;
}

.admin-quick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 var(--mobile-gutter);
  border-top: 1px dashed rgba(191, 220, 211, 0.72);
  background: #fff;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
  overflow-x: auto;
}

.admin-quick-label {
  flex: none;
  color: var(--muted);
}

.admin-quick a {
  flex: none;
  color: var(--brand-ink);
  font-weight: 600;
  white-space: nowrap;
}

.admin-quick a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-quick-all {
  margin-left: auto;
  color: var(--muted) !important;
  font-weight: 400 !important;
}

.notice a,
.notice button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-main {
  padding: 16px var(--mobile-gutter);
}

body.has-tabbar .app-main {
  padding-bottom: calc(var(--app-tabbar-h) + 22px + env(safe-area-inset-bottom));
}

body.has-cta .app-main {
  padding-bottom: calc(var(--app-cta-h) + 26px + env(safe-area-inset-bottom));
}

/* ---- 门店身份 / 今日名额 ---------------------------------------- */
.store-card {
  position: relative;
  overflow: hidden;
  padding: 15px 15px 14px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.store-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--brand);
}

.store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.store-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.store-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-tight);
}

.store-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.store-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.store-facts span,
.store-facts a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  color: var(--ink-2);
  text-decoration: none;
}

.store-facts a {
  color: var(--brand-ink);
  font-weight: 600;
}

.store-facts .ico {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.avail-card {
  margin-top: 12px;
  padding: 14px 15px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.avail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.avail-head h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.avail-date {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.avail-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex: none;
  color: var(--brand-ink);
}

.avail-total b {
  font-family: var(--font-mono);
  font-size: 31px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
}

.avail-total span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.avail-table {
  margin-top: 11px;
  border-top: 1px solid var(--line);
}

.avail-row {
  display: grid;
  grid-template-columns: 96px 60px minmax(0, 1fr);
  align-items: center;
  min-height: 35px;
  border-bottom: 1px dashed var(--line);
  gap: 8px;
}

.avail-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.avail-time::before {
  content: "";
  width: 5px;
  height: 1px;
  flex: none;
  background: var(--line-strong);
}

.avail-state {
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

.avail-state.is-full {
  color: var(--bad);
}

.avail-state.is-low {
  color: var(--accent-ink);
}

.avail-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* ---- 分区 / 分类 ------------------------------------------------ */
.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.section-head h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.section-head p,
.section-head span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.section-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.chip {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  transition: background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}

.chip[aria-pressed="true"] {
  border-color: var(--brand-ink);
  background: var(--brand-ink);
  color: #fff;
}

.chip small {
  margin-left: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}

/* ---- 服务台账列表 ---------------------------------------------- */
.service-ledger {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.service-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  min-height: 94px;
  padding: 14px 13px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-standard);
}

.service-row:first-child {
  border-top: 0;
}

.service-row:hover {
  background: var(--panel-2);
  color: var(--ink);
}

.service-row.is-full {
  background: var(--panel-2);
}

.svc-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid transparent;
  border-radius: 10px;
}

.svc-ico .ico {
  width: 21px;
  height: 21px;
}

.svc-ico.tone-1 {
  border-color: #cfe6dc;
  background: #e8f4ee;
  color: #1e6b50;
}

.svc-ico.tone-2 {
  border-color: #cbdde2;
  background: #eaf2f4;
  color: #2c6473;
}

.svc-ico.tone-3 {
  border-color: #dfd9c8;
  background: #f4f1e8;
  color: #685b38;
}

.svc-ico.tone-4 {
  border-color: #e5d3c3;
  background: #f8eee5;
  color: #85502a;
}

.svc-main {
  min-width: 0;
}

.svc-name {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svc-meta {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svc-state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.svc-state.is-full {
  color: var(--bad);
}

.svc-state.is-low {
  color: var(--accent-ink);
}

.svc-state .cap-dots i {
  width: 5px;
  height: 5px;
}

.svc-price {
  flex: none;
  padding-top: 1px;
  text-align: right;
  white-space: nowrap;
}

.svc-price b {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.svc-price b small {
  margin-left: 1px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.svc-price span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

/* ---- 规则 / 说明 ------------------------------------------------ */
.rule-card {
  margin-top: 10px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.rule-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
}

.rule-row:first-child {
  border-top: 0;
}

.rule-row .ico {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--brand);
}

.rule-row b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.rule-row span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-btn);
  background: var(--brand-wash);
  color: var(--brand-ink);
  font-size: 11px;
  line-height: 1.65;
}

.notice-card .ico {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  flex: none;
}

/* ---- 商家 / 平台入口 -------------------------------------------- */
.entry-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  overflow: hidden;
}

.entry-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px dashed var(--line);
  color: var(--ink);
}

.entry-row:first-child {
  border-top: 0;
}

.entry-row:hover,
.entry-row:focus-visible {
  background: var(--brand-wash);
  color: var(--ink);
}

.entry-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.entry-ico svg {
  width: 17px;
  height: 17px;
}

.entry-copy {
  display: block;
  min-width: 0;
}

.entry-copy b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.entry-copy span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.entry-go {
  color: var(--brand);
  font-size: 15px;
  text-align: right;
}

.entry-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.entry-foot a {
  flex: none;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-foot {
  margin: 22px 0 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.site-foot a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- 底部导航 / 固定操作 --------------------------------------- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: var(--z-nav);
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: var(--mobile-max);
  padding: 0 8px env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  transform: translateX(-50%);
}

.tabbar--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--app-tabbar-h);
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.tab-item .ico {
  width: 20px;
  height: 20px;
}

.tab-item:hover {
  color: var(--brand-ink);
}

.tab-item[aria-current="page"] {
  color: var(--brand-ink);
  font-weight: 600;
}

.tab-item[aria-current="page"] .ico {
  color: var(--brand);
}

.app-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: var(--z-nav);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: var(--mobile-max);
  min-height: var(--app-cta-h);
  padding: 10px var(--mobile-gutter)
    calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%);
}

.cta-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.cta-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.cta-price small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0;
}

.cta-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-cta .btn {
  min-width: 148px;
  min-height: 48px;
  padding: 0 16px;
  font-size: 13.5px;
}

/* ---- 时段选择 / 日期条 ----------------------------------------- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.slot-btn {
  position: relative;
  display: block;
  min-height: 64px;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  border-radius: var(--radius-btn);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  transition: background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}

.slot-btn:hover {
  border-color: var(--brand);
}

.slot-btn .t {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.slot-btn .r {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.slot-btn.is-low .r {
  color: var(--accent-ink);
  font-weight: 600;
}

.slot-btn[aria-pressed="true"] {
  border-color: var(--brand-ink);
  background: var(--brand-ink);
  color: #fff;
}

.slot-btn[aria-pressed="true"] .r {
  color: rgba(255, 255, 255, 0.76);
}

.slot-btn.is-full,
.slot-btn:disabled {
  border-color: var(--line);
  background: var(--panel-3);
  color: var(--faint);
  cursor: not-allowed;
}

.slot-btn.is-full .r,
.slot-btn:disabled .r {
  color: var(--bad);
  font-weight: 600;
}

.slot-btn.is-full:hover,
.slot-btn:disabled:hover {
  border-color: var(--line);
}

.slot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.slot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.slot-legend i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
}

.slot-legend .lg-sel {
  border-color: var(--brand-ink);
  background: var(--brand-ink);
}

.slot-legend .lg-full {
  border-color: #e3b7b2;
  background: var(--bad-soft);
}

.date-strip {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  padding: 2px 0 5px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 62px;
  min-height: 72px;
  padding: 6px 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: var(--panel);
  color: var(--ink);
  line-height: 1.25;
  scroll-snap-align: start;
  transition: background-color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}

.date-btn:hover {
  border-color: var(--brand);
}

.date-btn .dow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.date-btn .day {
  margin: 2px 0 1px;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.date-btn .mon {
  color: var(--muted);
  font-size: 10px;
}

.date-btn[aria-pressed="true"] {
  border-color: var(--brand-ink);
  background: var(--brand-ink);
  color: #fff;
}

.date-btn[aria-pressed="true"] .dow,
.date-btn[aria-pressed="true"] .mon {
  color: rgba(255, 255, 255, 0.72);
}

/* ---- 表单 / 预约摘要 ------------------------------------------- */
.form-card {
  margin-top: 10px;
  padding: 14px 14px 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.form-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.section-index {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.app-form .input,
.app-form .select,
.app-form .textarea {
  min-height: 44px;
  border-radius: var(--radius-btn);
  font-size: 14px;
}

.app-form .textarea {
  min-height: 76px;
}

.app-form .field {
  margin-bottom: 13px;
}

.app-form .field > label,
.app-form .field-label {
  font-size: 11.5px;
}

.app-form .field-hint {
  font-size: 11px;
}

.form-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.form-section-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.form-section-head span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.summary-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.summary-strip .svc-ico {
  width: 42px;
  height: 42px;
}

.summary-main {
  min-width: 0;
  flex: 1;
}

.summary-main b {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-main span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-price {
  flex: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.summary-price small {
  margin-left: 1px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---- 详情页 ---------------------------------------------------- */
.detail-main {
  padding: 0 0 calc(var(--app-cta-h) + 26px + env(safe-area-inset-bottom));
}

.detail-hero {
  padding: 18px var(--mobile-gutter) 17px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.detail-hero .svc-ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.detail-hero .svc-ico .ico {
  width: 25px;
  height: 25px;
}

.detail-title {
  margin-top: 1px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 7px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.detail-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-price small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.detail-body {
  padding: 0 var(--mobile-gutter);
}

.detail-section {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.detail-copy {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--panel-2);
}

.fact-grid div {
  min-height: 57px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}

.fact-grid div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.fact-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.fact-grid dt {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.fact-grid dd {
  margin-top: 2px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.split-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 11px;
}

.split-list h3 {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
}

.split-list ul {
  margin-top: 5px;
}

.split-list li {
  position: relative;
  padding-left: 13px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.65;
}

.split-list li + li {
  margin-top: 3px;
}

.split-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.split-list .not-included li::before {
  background: var(--line-strong);
}

.detail-section .slot-grid {
  margin-top: 10px;
}

.rule-list {
  margin-top: 7px;
}

.rule-list li {
  position: relative;
  padding-left: 13px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.7;
}

.rule-list li + li {
  margin-top: 3px;
}

.rule-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.provider-row a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--brand-ink);
  font-weight: 600;
}

.provider-row .ico {
  width: 14px;
  height: 14px;
}

/* ---- 半屏 / 弹层 / 票据 ---------------------------------------- */
.sheet {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: var(--mobile-max);
  max-height: calc(100dvh - 20px);
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-3);
}

.sheet[open] {
  animation: pc79-sheet-in var(--dur-sheet) var(--ease-out);
}

.sheet::backdrop {
  background: rgba(15, 28, 24, 0.44);
  backdrop-filter: blur(2px);
}

.sheet-body {
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
}

.sheet-handle {
  width: 34px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 2px;
  background: var(--line-strong);
}

.sheet-head {
  position: relative;
  padding-right: 40px;
}

.sheet-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.sheet-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.sheet-close {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.sheet-close:hover {
  background: var(--panel-3);
  color: var(--ink);
}

.sheet-legal {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
  text-align: center;
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.sheet-actions .btn {
  min-height: 46px;
}

.text-action {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-action:hover {
  color: var(--ink);
}

.auth-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.auth-badge .ico {
  width: 21px;
  height: 21px;
}

.auth-form {
  margin-top: 14px;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

.code-row .btn {
  min-height: 44px;
  padding: 0 8px;
  font-size: 11.5px;
}

.ticket {
  position: relative;
  margin-top: 14px;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-btn);
  background: var(--panel-2);
}

.ticket-label {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.ticket-no {
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}

.ticket-grid dt {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.ticket-grid dd {
  margin-top: 1px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
}

@keyframes pc79-sheet-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 379px) {
  .avail-row {
    grid-template-columns: 91px 54px minmax(0, 1fr);
  }

  .app-form .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .app-cta .btn {
    min-width: 132px;
    padding: 0 12px;
    font-size: 13px;
  }

  .detail-title {
    font-size: 22px;
  }
}

@media (min-width: 768px) {
  .app-body {
    padding: 0;
  }
}

[hidden] {
  display: none !important;
}

/* ============================================================
   preview 顾客 H5 页面共用组件
   登录、预约、我的预约、成功凭证、状态画廊、总入口。
   这些类只补页面级排版，不新增业务语义。
   ============================================================ */

.app-main--flush {
  padding-right: 0;
  padding-left: 0;
}

.page-head {
  padding: 18px var(--mobile-gutter) 15px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.page-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.page-kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.page-title {
  margin-top: 7px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.page-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.inline-error,
.inline-warn,
.inline-ok {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--bad-line);
  border-radius: var(--radius-sm);
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}

.inline-warn {
  border-color: var(--warn-line);
  background: var(--warn-soft);
  color: var(--warn);
}

.inline-ok {
  border-color: var(--ok-line);
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 500;
}

.inline-error .ico,
.inline-warn .ico,
.inline-ok .ico {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.tip-line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-btn);
  background: var(--brand-wash);
  color: var(--brand-ink);
  font-size: 11px;
  line-height: 1.65;
}

.tip-line .ico {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex: none;
}

.tip-line strong {
  font-weight: 600;
}

/* ---- 顾客登录 -------------------------------------------------- */
.login-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-2);
}

.login-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--mobile-max);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  border-inline: 1px solid transparent;
  background: var(--bg);
}

@media (min-width: 520px) {
  .login-shell {
    border-inline-color: var(--line);
  }
}

.login-hero {
  position: relative;
  overflow: hidden;
  padding: calc(18px + env(safe-area-inset-top)) 20px 46px;
  background: var(--brand-ink);
  color: #fff;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 47px,
    rgba(255, 255, 255, 0.5) 47px,
    rgba(255, 255, 255, 0.5) 48px
  );
  pointer-events: none;
}

.login-hero::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -76px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.035),
    0 0 0 56px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.login-hero-in {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
}

.login-brand .brand-mark {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.login-brand b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.login-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}

.login-browse:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.login-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin-top: 30px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.login-hero p {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.7;
}

.login-hero-facts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
  line-height: 1.5;
}

.login-hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.login-hero-facts .ico {
  width: 13px;
  height: 13px;
}

.login-main {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding: 0 var(--mobile-gutter) 24px;
}

.login-card {
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow-1);
}

.login-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.login-card h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.login-card .sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.login-step {
  flex: none;
  padding: 2px 6px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-xs);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.login-next {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.55;
}

.login-next .ico {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--brand);
}

.login-form {
  margin-top: 14px;
}

.login-form .field {
  margin-bottom: 12px;
}

.login-form .btn-lg {
  min-height: 48px;
  margin-top: 3px;
}

.login-form .btn[aria-busy="true"] {
  cursor: progress;
}

.login-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

.login-legal {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
  text-align: center;
}

.login-legal button {
  min-height: 32px;
  padding: 0 1px;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-foot {
  margin-top: auto;
  padding: 14px var(--mobile-gutter) calc(16px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

.login-foot a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- 预约填写 -------------------------------------------------- */
.booking-main {
  padding-top: 14px;
}

.booking-sheet {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.booking-section {
  padding: 15px;
  border-top: 1px solid var(--line);
}

.booking-section:first-child {
  border-top: 0;
}

.booking-section .form-section-head {
  margin-bottom: 2px;
}

.booking-section .date-strip {
  margin-top: 10px;
}

.booking-section .slot-grid {
  margin-top: 8px;
}

.booking-section .form-note {
  margin-top: 12px;
}

.booking-section .field:last-of-type {
  margin-bottom: 6px;
}

.booking-select-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.booking-select-note.is-picked {
  color: var(--brand-ink);
  font-weight: 600;
}

.booking-select-note .mono {
  font-size: 10.5px;
}

.booking-foot {
  margin-top: 16px;
}

.auth-hint {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.auth-hint.is-on {
  color: var(--brand-ink);
}

.success-icon {
  background: var(--ok-soft);
  border-color: var(--ok-line);
  color: var(--ok);
}

/* ---- 我的预约 -------------------------------------------------- */
.bookings-main {
  padding-top: 12px;
}

.acct-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.acct-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 15px;
  font-weight: 600;
}

.acct-main {
  min-width: 0;
  flex: 1;
}

.acct-main b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.acct-main span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.acct-strip .btn-link {
  min-width: 44px;
  justify-content: flex-end;
  font-size: 11.5px;
}

.seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
}

.seg button {
  position: relative;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}

.seg button:hover {
  color: var(--brand-ink);
}

.seg button[aria-selected="true"] {
  color: var(--brand-ink);
  font-weight: 600;
}

.seg button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: var(--brand);
}

.bookings-list {
  margin-top: 10px;
}

.booking-card {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.booking-card:first-child {
  margin-top: 0;
}

.booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px 11px;
  border-bottom: 1px dashed var(--line);
}

.booking-head h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.booking-no {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.booking-head .badge {
  flex: none;
  margin-top: 1px;
}

.booking-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2px 14px;
}

.booking-meta div {
  min-width: 0;
  padding: 9px 10px 9px 0;
  border-bottom: 1px dashed var(--line);
}

.booking-meta div:nth-child(even) {
  padding-left: 10px;
  border-left: 1px dashed var(--line);
}

.booking-meta div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.booking-meta dt {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.booking-meta dd {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.55;
}

.booking-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 11px;
}

.booking-actions .btn {
  min-height: 44px;
  font-size: 12px;
}

.booking-actions .reviewed-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.booking-actions .reviewed-note .ico {
  width: 13px;
  height: 13px;
  color: var(--ok);
}

.cancel-rule {
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.cancel-rule b {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-weight: 600;
}

.cancel-rule.is-closed {
  color: var(--bad);
  background: var(--bad-soft);
}

.reject-reason {
  margin: 0 14px 2px;
  padding: 8px 10px;
  border-left: 2px solid var(--bad);
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 10.5px;
  line-height: 1.6;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-stars .star {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--panel);
  color: var(--muted);
}

.review-stars .star[aria-pressed="true"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.review-stars .star .ico {
  width: 19px;
  height: 19px;
}

/* ---- 预约成功 / 凭证 ------------------------------------------ */
.success-main {
  padding-top: 16px;
}

.success-hero {
  padding: 2px 8px 16px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border: 1px solid var(--ok-line);
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
}

.success-mark .ico {
  width: 24px;
  height: 24px;
}

.success-title {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.success-sub {
  max-width: 320px;
  margin: 5px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.receipt {
  position: relative;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.receipt-head {
  position: relative;
  padding: 14px 15px 13px;
  border-bottom: 1px dashed var(--line-strong);
  background: var(--panel-2);
}

.receipt-head::before,
.receipt-head::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
}

.receipt-head::before {
  left: -7px;
}

.receipt-head::after {
  right: -7px;
}

.receipt-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.receipt-label {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.receipt-no {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.receipt-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.receipt-copy:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}

.receipt-copy .ico {
  width: 13px;
  height: 13px;
}

.receipt-body {
  padding: 4px 15px 8px;
}

.receipt-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.receipt-row:last-child {
  border-bottom: 0;
}

.receipt-row dt,
.receipt-row .k {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.receipt-row dd,
.receipt-row .v {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.55;
  text-align: right;
}

.receipt-row dd.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.receipt-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}

.receipt-status span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.receipt-status b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 600;
}

.receipt-status b::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warn);
}

.next-card {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.next-card h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.next-card h2 .ico {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.next-list {
  margin-top: 8px;
}

.next-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.65;
}

.next-list li:first-child {
  border-top: 0;
  padding-top: 2px;
}

.next-list .step-no {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--brand-line);
  border-radius: 3px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.success-actions .btn {
  min-height: 46px;
}

.success-foot {
  margin-top: 14px;
}

/* ---- 状态画廊 -------------------------------------------------- */
.states-main {
  padding-top: 0;
}

.states-intro {
  padding: 18px var(--mobile-gutter) 15px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.states-intro h1 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.states-intro .sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.states-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.states-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.states-legend i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.states-legend .is-live {
  border-color: var(--brand);
  background: var(--brand);
}

.states-legend .is-wait {
  border-color: var(--warn);
  background: var(--warn);
}

.states-gallery {
  padding: 0 var(--mobile-gutter) 10px;
}

.state-demo {
  padding: 17px 0 18px;
  border-bottom: 1px solid var(--line);
}

.state-demo:last-child {
  border-bottom: 0;
}

.state-demo-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.state-label {
  flex: none;
  padding: 2px 6px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-xs);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.state-demo h2 {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.state-demo .cap {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.state-surface {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.state-surface .state-box {
  padding: 20px 14px;
  border: 0;
  background: transparent;
}

.state-surface .state-box p {
  margin-bottom: 12px;
}

.state-surface .state-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}

.sk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.sk-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.sk-ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 8px;
}

.sk-copy {
  flex: 1;
}

.sk-title {
  width: 46%;
  height: 12px;
}

.sk-line {
  width: 78%;
  height: 8px;
  margin-top: 6px;
}

.sk-line.w60 {
  width: 60%;
}

.sk-line.w40 {
  width: 40%;
}

.sk-price {
  width: 42px;
  height: 14px;
  flex: none;
}

.sk-slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sk-slot {
  height: 64px;
  border-radius: var(--radius-btn);
}

.state-loading-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.state-loading-note .spinner {
  border-color: var(--brand-line);
  border-top-color: var(--brand);
}

.state-kv {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 7px 10px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.6;
}

.state-kv dt {
  color: var(--muted);
}

.state-kv dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* ---- 原型总入口 ------------------------------------------------ */
.hub-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}

.hub-top {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.hub-top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, 1180px);
  min-height: 58px;
  margin: 0 auto;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.hub-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 15px;
}

.hub-brand b {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-brand span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.hub-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.hub-top-meta .mono {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: 9.5px;
}

.hub-wrap {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 30px 0 36px;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.hub-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.hub-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hub-hero h1 {
  max-width: 720px;
  margin-top: 10px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.hub-hero p {
  max-width: 660px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}

.hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hub-hero-side {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.hub-hero-side h2 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.hub-hero-side p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.hub-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 11px;
  border-top: 1px solid var(--line);
}

.hub-facts div {
  padding: 8px 8px 0 0;
  border-bottom: 1px dashed var(--line);
}

.hub-facts div:nth-child(even) {
  padding-left: 8px;
  border-left: 1px dashed var(--line);
}

.hub-facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.hub-facts dt {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.hub-facts dd {
  margin: 1px 0 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.hub-facts dd small {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0;
}

.hub-section {
  margin-top: 26px;
}

.hub-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-strong);
}

.hub-section-head h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hub-section-head h2 .kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.hub-section-head p {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: right;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.hub-page {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 13px 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.hub-page:hover {
  color: var(--ink);
}

.hub-page:hover .hub-page-title {
  color: var(--brand-ink);
}

.hub-page-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

.hub-page-main {
  min-width: 0;
}

.hub-page-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  transition: color var(--dur-fast) var(--ease-standard);
}

.hub-page-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.hub-page-path {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
}

.hub-page-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-top: 1px;
}

.hub-page-side .tag {
  min-height: 20px;
  padding: 0 6px;
  font-size: 9.5px;
}

.hub-page-side .req {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
}

.hub-page--pending {
  color: var(--muted);
}

.hub-page--pending .hub-page-title {
  color: var(--ink-2);
}

.hub-page--pending .hub-page-index {
  background: var(--panel-2);
  color: var(--faint);
}

.hub-reference {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.hub-ref-card {
  display: block;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}

.hub-ref-card:hover {
  border-color: var(--brand-line);
  background: var(--panel-2);
  color: var(--ink);
}

.hub-ref-card b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.hub-ref-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.hub-ref-card code {
  display: inline-block;
  margin-top: 7px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.hub-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.hub-step {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.hub-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hub-step-top b {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.hub-step-top span {
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.hub-step p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.hub-step a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  color: var(--brand-ink);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
}

.hub-step a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hub-foot {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.hub-foot b {
  color: var(--ink-2);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hub-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .hub-hero h1 {
    font-size: 34px;
  }

  .hub-hero-side {
    max-width: 520px;
  }

  .hub-reference,
  .hub-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hub-top-in {
    width: calc(100% - 24px);
    min-height: 54px;
  }

  .hub-top-meta .mono {
    display: none;
  }

  .hub-wrap {
    width: calc(100% - 24px);
    padding-top: 22px;
  }

  .hub-hero {
    padding-bottom: 18px;
  }

  .hub-hero h1 {
    font-size: 27px;
    line-height: 1.22;
  }

  .hub-hero p {
    font-size: 12px;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .hub-section-head p {
    text-align: left;
  }

  .hub-reference,
  .hub-steps {
    grid-template-columns: 1fr;
  }

  .hub-page {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
}

@media (max-width: 379px) {
  .login-hero h1 {
    font-size: 24px;
  }

  .booking-meta {
    grid-template-columns: 1fr;
  }

  .booking-meta div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .booking-meta div:nth-last-child(-n + 2) {
    border-bottom: 1px dashed var(--line);
  }

  .booking-meta div:last-child {
    border-bottom: 0;
  }

  .success-title {
    font-size: 21px;
  }

  .receipt-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

  .home-main { padding-top: 14px; }
  .store-head .tag { flex: none; margin-top: 2px; }
  .service-row .svc-state::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
  }
  .service-row .svc-state.is-full::before { background: var(--bad); }
  .service-row .svc-state.is-low::before { background: var(--accent); }
  .service-row .svc-state { gap: 5px; }
  .store-media-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
  }
  .store-media-thumb {
    width: 88px;
    aspect-ratio: 16 / 9;
    flex: none;
    gap: 1px;
    border-radius: 6px;
  }
  .store-media-thumb .ico { width: 14px; height: 14px; }
  .store-media-thumb small { font-size: 10px; line-height: 1.2; }
  .store-media-copy { min-width: 0; }
  .store-media-copy b {
    display: block;
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.45;
  }
  .store-media-copy span {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
  }
  .filter-empty { margin-top: 10px; }
  .filter-empty p { margin-bottom: 12px; }
  .home-rules .rule-card { margin-top: 9px; }
  .home-foot { padding-bottom: 2px; }
  .auth-hint { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
  .auth-hint.is-on { color: var(--brand-ink); }
  .sheet .field-error { min-height: 0; }
