/* ==========================================================================
   见山 MVP · 顾客端样式（青柚方向：白底浅灰 + 青柚绿 + 大圆角白卡）
   依赖：/shared/tokens.css（:root token 与基础组件）
   结构：壳 → 菜单 → 购物车条 → tabbar → 弹层 → 确认下单 → 下单成功/订单详情
        → 订单列表 → 我的 → 骨架屏/动效/桌面适配
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 壳与通用
   -------------------------------------------------------------------------- */
/* 本地演示不加载外部字体：显式补 Windows/macOS 等宽字体，
   避免 ui-monospace 在中文环境回退到宋体导致数字变衬线 */
:root {
  --num: "Archivo", "SF Mono", "Cascadia Mono", "Consolas", "Liberation Mono", "Menlo", ui-monospace,
    monospace;
}

.customer-app {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0; /* 覆盖 tokens 的 .mobile-page 底部留白，由 .app-view 管理 */
  overflow-x: hidden;
}

.app-view {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 112px; /* 悬浮 tabbar + 购物车条的空间 */
}
.app-view--plain { padding-bottom: 56px; }

.page { padding: 0 16px; }

/* 顶部安全区（浏览器内一般无刘海，保留 PWA/真机余量） */
.menu-head { padding-top: calc(14px + env(safe-area-inset-top)); }

.hide { display: none !important; }
.no-scroll { overflow: hidden; }

/* 轻量文字按钮 */
.text-btn {
  font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  padding: 6px 4px; border-radius: 8px;
}
.text-btn:active { color: var(--warn); }

/* 滚动条隐藏（chips / 横向列表） */
.no-bar { scrollbar-width: none; -ms-overflow-style: none; }
.no-bar::-webkit-scrollbar { display: none; }

/* 小提示行 */
.hint-line {
  font-size: 11px; color: var(--ink-3); line-height: 1.6;
  padding-top: 8px;
}
.inline-warn {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 8px 10px; border-radius: 10px;
  background: var(--warn-soft); color: var(--warn);
  font-size: 11.5px; font-weight: 700;
}

/* --------------------------------------------------------------------------
   1. 启动加载 / 启动失败
   -------------------------------------------------------------------------- */
.boot-loading {
  min-height: 70dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.boot-loading-mark {
  width: 62px; height: 62px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: 20px; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: 0 16px 30px -18px rgba(11, 138, 110, 0.9);
  animation: boot-breathe 1.6s var(--ease) infinite;
}
.boot-loading-text { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.04em; }

.boot-error {
  min-height: 76dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 24px;
}
.boot-ico {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--warn-soft); color: var(--warn); margin-bottom: 4px;
}
.boot-error h2 { margin: 0; font-size: 19px; font-weight: 800; }
.boot-error .sub { max-width: 300px; }
.boot-error .btn { margin-top: 12px; min-width: 150px; }
.boot-error .mini { margin-top: 10px; max-width: 300px; }

/* --------------------------------------------------------------------------
   2. 点单页
   -------------------------------------------------------------------------- */
.menu-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--ink-3); text-transform: uppercase;
}
.store-name {
  margin: 6px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.015em;
  line-height: 1.25;
}
.store-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 11.5px; color: var(--ink-2);
}
.store-meta .mono { color: var(--ink-2); }
.open-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.meta-sep { color: var(--line-strong); }
.meta-addr {
  flex-basis: 100%;
  color: var(--ink-3);
  font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.announce {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 12px; padding: 9px 12px;
  border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 11.5px; font-weight: 600; line-height: 1.5;
}
.announce svg { flex: none; margin-top: 1px; }

/* 自取 / 外卖 */
.mode-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px;
}
.segmented {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 3px; border-radius: var(--r-chip);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.seg-btn {
  height: 34px; padding: 0 20px; border-radius: var(--r-chip);
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  transition: background 0.18s var(--ease), color 0.18s, transform 0.12s;
}
.seg-btn:active { transform: scale(0.96); }
.seg-btn.is-on {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 14px -10px rgba(11, 138, 110, 0.9);
}
.seg-btn.is-off { color: var(--ink-3); opacity: 0.6; }
.mode-hint {
  flex: 1; min-width: 0; text-align: right;
  font-size: 10.5px; color: var(--ink-3); line-height: 1.5;
}

/* 分类 chips（吸顶） */
.chips-wrap {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  margin: 14px -16px 0; padding: 10px 16px;
  overflow-x: auto;
  background: linear-gradient(to bottom, var(--bg) 62%, rgba(245, 246, 247, 0));
  scrollbar-width: none;
}
.chips-wrap::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 14px;
  border-radius: var(--r-chip);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  color: var(--ink-2); font-size: 12.5px; font-weight: 700;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.12s;
}
.chip:active { transform: scale(0.96); }
.chip.is-on {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 10px 18px -14px rgba(26, 29, 33, 0.9);
}
.chip-no { font-size: 9.5px; font-weight: 700; opacity: 0.45; letter-spacing: 0.02em; }
.chip.is-on .chip-no { opacity: 0.55; }
.chip-count {
  font-style: normal; font-size: 10px; font-weight: 800;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-2); color: var(--ink-2);
}
.chip.is-on .chip-count { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* 商品列表 */
.menu-list { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }

.item-card {
  display: flex; align-items: stretch; gap: 12px;
  padding: 12px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s var(--ease), border-color 0.16s;
}
.item-card:active { transform: scale(0.994); border-color: var(--line); }

.thumb-wrap {
  position: relative; flex: none;
  width: 86px; height: 86px;
  border-radius: 14px; overflow: hidden;
  background: var(--surface-2);
}
.thumb { width: 100%; height: 100%; object-fit: cover; }
.thumb-tag {
  position: absolute; left: 6px; top: 6px;
  padding: 1px 6px; border-radius: 6px;
  background: rgba(11, 138, 110, 0.94); color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
}
.thumb-soldout {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(245, 246, 247, 0.55);
}
.thumb-soldout span,
.thumb-soldout {
  font-size: 11px; font-weight: 800; color: var(--ink-2);
}
.thumb-soldout::after {
  content: "售罄";
  padding: 3px 9px; border-radius: 999px;
  background: rgba(26, 29, 33, 0.82); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
}

.item-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1px 0;
}
.item-title { min-width: 0; }
.item-name {
  margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-desc {
  margin: 3px 0 0;
  font-size: 11.5px; color: var(--ink-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  margin-top: 6px;
}
.item-price-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; min-width: 0; }
.price {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 20px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
}
.price i { font-style: normal; font-size: 11.5px; font-weight: 700; margin-right: 1px; }
.price.is-off { color: var(--ink-3); }
.stock-low {
  font-size: 10px; font-weight: 700; color: var(--warn);
  padding: 1px 6px; border-radius: 6px; background: var(--warn-soft);
  white-space: nowrap;
}
.add-btn {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 16px -8px rgba(11, 138, 110, 0.8);
  transition: transform 0.12s var(--ease), background 0.16s;
}
.add-btn:active { transform: scale(0.88); background: var(--accent-2); }
.add-btn[disabled] { background: var(--surface-2); color: var(--ink-3); box-shadow: none; }

.item-card.is-soldout .thumb { filter: grayscale(1); opacity: 0.55; }
.item-card.is-soldout .item-name,
.item-card.is-soldout .item-desc { opacity: 0.55; }
.item-card.is-soldout { cursor: default; }

.menu-foot {
  margin: 22px 0 6px; text-align: center;
  font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.03em;
}

/* 空态 */
.empty-box {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 44px 24px; text-align: center;
}
.empty-box .empty-ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink-3);
  box-shadow: var(--shadow-card); margin-bottom: 2px;
}
.empty-box .empty-title { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.empty-box .empty-sub { font-size: 11.5px; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   3. 悬浮购物车条
   -------------------------------------------------------------------------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom));
  margin: 0 auto; max-width: 430px; z-index: 60;
  padding: 0 12px;
  animation: cartbar-in 0.26s var(--ease);
}
.cartbar-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(12px);
}
.cartbar-main {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 11px;
  text-align: left;
}
.cart-ico {
  position: relative; flex: none;
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2);
}
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--accent); color: #fff;
  font-family: var(--num); font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--surface);
  box-sizing: content-box;
}
.cart-badge.is-pop { animation: pop 0.34s var(--ease); }
.cart-sum { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cart-sum b {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
}
.cart-sum small {
  font-size: 10px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-go {
  flex: none; height: 40px; padding: 0 18px;
  border-radius: 14px;
  background: var(--accent); color: #fff;
  font-size: 13.5px; font-weight: 800; letter-spacing: 0.01em;
  transition: transform 0.12s var(--ease), background 0.16s;
}
.cart-go:active { transform: scale(0.95); background: var(--accent-2); }

/* --------------------------------------------------------------------------
   4. 底部 tabbar（浮动圆角）
   -------------------------------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom));
  margin: 0 auto; max-width: 430px; width: calc(100% - 24px);
  height: 62px; z-index: 50;
  display: flex; align-items: stretch;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.tab {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  transition: color 0.16s;
}
.tab-ico { position: relative; display: grid; place-items: center; height: 22px; }
.tab.is-on { color: var(--accent); }
.tab.is-on::before {
  content: ""; position: absolute; top: 6px;
  width: 26px; height: 3px; border-radius: 3px;
  background: var(--accent); opacity: 0.9;
}
.tab-badge {
  position: absolute; top: -5px; right: -10px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px;
  background: var(--warn); color: #fff;
  font-size: 9px; font-weight: 800;
  display: grid; place-items: center;
}

/* --------------------------------------------------------------------------
   5. 弹层通用
   -------------------------------------------------------------------------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18, 21, 24, 0.42);
  animation: fade-in 0.2s var(--ease);
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
  margin: 0 auto; max-width: 430px;
  background: var(--surface);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: 0 -24px 60px -30px rgba(18, 21, 24, 0.55);
  display: flex; flex-direction: column;
  max-height: 90vh; max-height: 90dvh;
  animation: sheet-up 0.3s var(--ease);
}
.sheet-grab {
  flex: none; width: 38px; height: 4px; border-radius: 2px;
  background: var(--line-strong); margin: 8px auto 0;
}
.sheet-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px 10px;
}
.sheet-head h2 { font-size: 17px; font-weight: 800; margin: 0; }
.sheet-head-actions { display: flex; align-items: center; gap: 6px; }
.sheet-close {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2);
}
.sheet-close:active { background: var(--line); }
.sheet-body {
  overflow-y: auto; overscroll-behavior: contain;
  padding: 0 18px 16px;
  -webkit-overflow-scrolling: touch;
}
.sheet-foot {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.sheet-tip {
  font-size: 10.5px; color: var(--ink-3); line-height: 1.65;
  padding: 14px 2px 2px;
}

/* 规格弹层 */
.sheet--spec .sheet-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface-2); z-index: 2;
}
.spec-hero { display: flex; gap: 14px; padding: 6px 0 16px; }
.spec-img {
  flex: none; width: 104px; height: 104px;
  border-radius: 18px; object-fit: cover;
  background: var(--surface-2);
}
.spec-info { flex: 1; min-width: 0; padding-top: 2px; }
.spec-name { margin: 6px 0 1px; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.spec-en {
  font-size: 9px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--ink-3); text-transform: uppercase;
}
.spec-desc { margin: 7px 0 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }
.spec-stock { margin-top: 6px; font-size: 10.5px; font-weight: 700; color: var(--ink-3); }

.opt-group { padding: 14px 0; border-top: 1px solid var(--line); }
.opt-group:first-of-type { border-top: 0; padding-top: 4px; }
.opt-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.opt-head h3 { margin: 0; font-size: 13.5px; font-weight: 800; }
.opt-req { font-size: 10px; color: var(--ink-3); font-weight: 600; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 14px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2); font-size: 12.5px; font-weight: 600;
  transition: all 0.14s var(--ease);
}
.opt-chip:active { transform: scale(0.96); }
.opt-chip.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
  font-weight: 800;
}
.opt-d {
  font-family: var(--num); font-size: 10px; font-weight: 700;
  color: var(--accent-2); opacity: 0.85;
}
.opt-more {
  display: inline-flex; align-items: center; height: 36px;
  font-size: 10.5px; color: var(--ink-3);
}

.spec-note { padding: 14px 0 4px; border-top: 1px solid var(--line); }
.spec-note-label {
  display: block; margin-bottom: 7px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-2);
}

.spec-foot { gap: 10px; }
.spec-total { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.spec-total b {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
.spec-total small {
  font-size: 10px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spec-add { flex: none; min-width: 116px; padding: 0 16px; }

/* 数量步进器 */
.stepper {
  display: inline-flex; align-items: center; gap: 1px; flex: none;
  padding: 3px; border-radius: var(--r-chip);
  background: var(--surface-2);
}
.step-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(26, 29, 33, 0.08);
  transition: transform 0.1s, opacity 0.16s;
}
.step-btn:active { transform: scale(0.9); }
.step-btn[disabled] { opacity: 0.35; box-shadow: none; pointer-events: none; }
.step-qty {
  min-width: 26px; text-align: center;
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 14px; font-weight: 800;
}
.stepper--sm { padding: 2px; }
.stepper--sm .step-btn { width: 26px; height: 26px; }
.stepper--sm .step-qty { min-width: 22px; font-size: 13px; }

/* 购物车弹层 */
.cart-body { padding-top: 2px; }
.cart-line {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cart-line:first-child { border-top: 0; }
.cart-thumb {
  flex: none; width: 64px; height: 64px;
  border-radius: 13px; object-fit: cover;
  background: var(--surface-2);
}
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-name {
  margin: 0; font-size: 14px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-line-amt {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 13.5px; font-weight: 800;
}
.cart-line-spec { margin-top: 2px; font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
.cart-line-note { margin-top: 2px; font-size: 10.5px; color: var(--ink-2); }
.cart-line-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 8px;
}
.cart-line-unit {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.line-del {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; color: var(--ink-3);
  padding: 4px 2px;
}
.line-del:active { color: var(--warn); }
.cart-foot { justify-content: space-between; }
.cart-foot-total { display: flex; flex-direction: column; gap: 1px; }
.cart-foot-total small { font-size: 10px; color: var(--ink-3); }
.cart-foot-total b {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.cart-foot-go { flex: none; min-width: 132px; height: 48px; }

/* 时段弹层 */
.quick-slot {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 56px; padding: 0 16px; margin: 4px 0 18px;
  border-radius: 16px;
  background: var(--surface-2); color: var(--ink);
  font-size: 15px; font-weight: 800;
  transition: background 0.16s, color 0.16s;
}
.quick-slot .quick-hint { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.quick-slot.is-on { background: var(--accent); color: #fff; }
.quick-slot.is-on .quick-hint { color: rgba(255, 255, 255, 0.82); }
.quick-slot:active { transform: scale(0.99); }

.time-tabs {
  display: flex; align-items: flex-end; gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.time-tab {
  position: relative;
  padding: 4px 2px 10px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-3);
}
.time-tab.is-on { color: var(--ink); }
.time-tab.is-on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.slot-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.slot {
  height: 40px; border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 12.5px; font-weight: 600;
  transition: all 0.14s var(--ease);
}
.slot:active { transform: scale(0.96); }
.slot.is-on {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 800;
}
.slot-empty {
  grid-column: 1 / -1;
  padding: 26px 10px; text-align: center;
  font-size: 12px; color: var(--ink-3);
}

/* 地址弹层 */
.addr-opt {
  width: 100%; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; margin-bottom: 10px;
  text-align: left;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.16s, background 0.16s;
}
.addr-opt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.addr-radio {
  flex: none; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  transition: all 0.16s;
}
.addr-opt.is-on .addr-radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.addr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.addr-line1 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13.5px; font-weight: 800;
}
.addr-phone { font-family: var(--num); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.addr-line2 { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }

/* 二次确认 */
.modal-center {
  position: fixed; inset: 0; z-index: 101;
  display: grid; place-items: center;
  padding: 32px;
  pointer-events: none;
}
.confirm-card {
  pointer-events: auto;
  width: 100%; max-width: 330px;
  padding: 22px 20px 16px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  animation: pop-in 0.22s var(--ease);
}
.confirm-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.confirm-card .sub { font-size: 12px; }
.confirm-actions { display: flex; gap: 10px; margin-top: 18px; }
.confirm-actions .btn { flex: 1; }

/* --------------------------------------------------------------------------
   6. 确认下单页
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  height: calc(52px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: 8px; padding-right: 8px;
  background: rgba(245, 246, 247, 0.92);
  backdrop-filter: blur(14px);
}
.topbar-back {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
}
.topbar-back:active { background: var(--surface-2); }
.topbar-title {
  margin: 0; text-align: center;
  font-size: 16px; font-weight: 800; letter-spacing: 0.01em;
}
.topbar-spacer { width: 38px; }

.checkout-mode {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 0 14px;
}
.checkout-mode .mode-hint { text-align: right; }

.info-card { padding: 14px 16px; }
.icon-soft {
  flex: none; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2);
}
.info-store { display: flex; align-items: center; gap: 12px; }
.info-store-name { font-size: 14.5px; font-weight: 800; line-height: 1.4; }
.info-store-addr { font-size: 11px; color: var(--ink-3); line-height: 1.5; margin-top: 1px; }
.info-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 12px 0;
  text-align: left;
}
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.info-row-label svg { color: var(--ink-3); }
.info-row-value {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 800; color: var(--ink);
}
.info-row-value svg { color: var(--ink-3); }
.info-row-value.is-muted { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.info-row-value.is-warn { color: var(--warn); }

.addr-pick {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 2px 0 12px; text-align: left;
}
.addr-pick-main { flex: 1; min-width: 0; }
.addr-pick-line1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14.5px; font-weight: 800; }
.addr-pick-line2 { margin-top: 3px; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.addr-pick .chev { color: var(--ink-3); margin-top: 10px; }

.section-card { padding: 14px 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-title { font-size: 13px; font-weight: 800; }
.section-meta { font-size: 10.5px; color: var(--ink-3); }

.co-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.co-item:first-of-type { border-top: 0; padding-top: 8px; }
.co-thumb {
  flex: none; width: 46px; height: 46px;
  border-radius: 11px; object-fit: cover;
  background: var(--surface-2);
}
.co-main { flex: 1; min-width: 0; }
.co-name { font-size: 13px; font-weight: 800; line-height: 1.4; }
.co-spec { margin-top: 2px; font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
.co-amt {
  flex: none; text-align: right;
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 800;
}
.co-qty { display: block; font-size: 10px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }

.amount-card { padding: 14px 16px; }
.amount-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 0; font-size: 12.5px; color: var(--ink-2);
}
.amount-row .mono { font-weight: 700; color: var(--ink); }
.amount-row.is-total {
  margin-top: 8px; padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 15px; font-weight: 800; color: var(--ink);
}
.amount-row.is-total .mono { font-size: 20px; letter-spacing: -0.02em; }

.note-card { padding: 8px 16px 14px; }
.note-card .field > label { margin-top: 6px; }
.note-card .textarea {
  min-height: 62px;
  background: var(--surface-2);
  border-color: transparent;
}
.note-card .textarea:focus { background: var(--surface); border-color: transparent; }
.char-count {
  align-self: flex-end; font-size: 9.5px; color: var(--ink-3);
  font-family: var(--num);
}

.checkout-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  margin: 0 auto; max-width: 430px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.checkout-total { display: flex; flex-direction: column; gap: 0; }
.checkout-total small { font-size: 10px; color: var(--ink-3); }
.checkout-amt {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 23px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
}
.checkout-submit { flex: none; min-width: 158px; height: 48px; font-size: 14.5px; }
.checkout-submit .btn-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

/* --------------------------------------------------------------------------
   7. 下单成功 / 订单详情
   -------------------------------------------------------------------------- */
.success-hero { text-align: center; padding: 22px 12px 18px; }
.success-ico {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 12px;
  background: var(--accent-soft); color: var(--accent);
}
.success-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.success-sub { margin: 7px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.success-hero.is-canceled .success-ico { background: var(--warn-soft); color: var(--warn); }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800;
  background: var(--surface-2); color: var(--ink-2);
  margin-bottom: 10px;
}.status-pill.is-pending { background: rgba(255, 211, 78, 0.24); color: #7a5a00; }
.status-pill.is-making { background: var(--accent-soft); color: var(--accent-2); }
.status-pill.is-ready { background: var(--accent); color: #fff; }
.status-pill.is-done { background: var(--surface-2); color: var(--ink-2); }
.status-pill.is-canceled { background: var(--warn-soft); color: var(--warn); }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.status-pill.is-making .status-dot,
.status-pill.is-ready .status-dot { animation: dot-pulse 1.4s ease-in-out infinite; }

.code-card { text-align: center; padding: 20px 16px 16px; }
.code-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--ink-3);
}
.code-big {
  margin: 8px 0 4px;
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 66px; font-weight: 800; letter-spacing: 0.04em; line-height: 1;
  color: var(--ink);
}
.code-big--eta {
  font-family: var(--font);
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 6px 0 2px;
}
.code-sub { font-size: 11.5px; color: var(--ink-2); }
.code-divider { border: 0; border-top: 1px dashed var(--line-strong); margin: 16px 0 10px; }
.code-store { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.code-store-name { font-size: 12px; font-weight: 800; }
.code-store-addr { font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }

.sched-line {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--accent-2);
}
.sched-line svg { flex: none; }
.sched-line.is-plain { color: var(--ink-2); }

.steps-card { padding: 16px; }
.steps {
  display: flex; align-items: flex-start;
  margin: 16px 0 2px;
}
.step {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600; color: var(--ink-3);
  text-align: center;
}
.step:not(:first-child)::before {
  content: ""; position: absolute; right: 50%; top: 5px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--line);
  transform: translateY(0);
}
.step-dot {
  position: relative; z-index: 1;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  box-sizing: border-box;
}
.step.is-done { color: var(--ink-2); }
.step.is-done .step-dot { background: var(--accent); border-color: var(--accent); }
.step.is-done:not(:first-child)::before { background: var(--accent); }
.step.is-on { color: var(--accent-2); font-weight: 800; }
.step.is-on .step-dot {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: dot-pulse 1.4s ease-in-out infinite;
}
.step.is-on:not(:first-child)::before { background: linear-gradient(to right, var(--accent), var(--line)); }
.step-label { white-space: nowrap; }

.steps-foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px; color: var(--ink-3);
}
.pulse-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1.4s ease-in-out infinite;
}

.canceled-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--warn-soft); color: var(--warn);
}
.canceled-banner b { font-size: 13px; }
.canceled-banner .sub { color: var(--warn); opacity: 0.8; font-size: 11px; margin-top: 2px; }

.push-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px;
}
.push-main { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.push-main svg { color: var(--ink-3); }
.push-right { font-size: 10px; color: var(--ink-3); font-family: var(--num); }
.mock-note {
  padding: 0 16px 13px;
  font-size: 10px; color: var(--ink-3); line-height: 1.6;
}

.kv { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 7px 0; }
.kv-k { flex: none; font-size: 12px; color: var(--ink-2); }
.kv-v {
  font-size: 12px; font-weight: 700; color: var(--ink);
  text-align: right; word-break: break-all;
}
.kv-v.mono { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.kv-v.is-accent { color: var(--accent-2); }
.kv-v.is-warn { color: var(--warn); }

.detail-items { padding: 14px 16px; }
.detail-note {
  margin-top: 10px; padding: 10px 12px;
  border-radius: 12px; background: var(--surface-2);
  font-size: 11.5px; color: var(--ink-2); line-height: 1.55;
}

.detail-actions { display: flex; gap: 10px; margin: 18px 0 4px; }
.detail-actions .btn { flex: 1; height: 48px; }
.detail-actions .btn--primary { flex: 1.25; }

/* 补充：flush 卡片 / 信息行间距 / 状态徽标配色 */
.card.is-flush { padding: 0; }
.info-card > .hr { margin: 12px 0 0; }
.info-store-main { flex: 1; min-width: 0; }
.addr-pick-line1.is-warn { color: var(--warn); font-size: 13px; }
.kv + .kv { border-top: 1px solid var(--line); }
.sheet .empty { padding: 28px 12px; }
.me-row { color: var(--ink); }
.me-row > svg { color: var(--line-strong); }

.status-badge.badge--pending { background: rgba(255, 211, 78, 0.24); color: #7a5a00; }
.status-badge.badge--making { background: var(--accent-soft); color: var(--accent-2); }
.status-badge.badge--ready { background: var(--accent); color: #fff; }
.status-badge.badge--done { background: var(--surface-2); color: var(--ink-2); }
.status-badge.badge--canceled { background: var(--warn-soft); color: var(--warn); }

/* --------------------------------------------------------------------------
   8. 订单列表
   -------------------------------------------------------------------------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: calc(20px + env(safe-area-inset-top)) 16px 12px;
}
.page-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.page-sub { margin: 3px 0 0; font-size: 11px; color: var(--ink-3); }
.page-head-btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink-2);
  box-shadow: var(--shadow-card);
}
.page-head-btn:active { transform: scale(0.94); }
.page-head-btn.is-spin svg { animation: spin 0.8s linear infinite; }

.filters-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 16px 14px;
  overflow-x: auto;
}
.filters-wrap .chip { height: 32px; font-size: 12px; }

.order-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }

.order-card {
  display: flex; flex-direction: column; gap: 9px;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s var(--ease), border-color 0.16s;
}
.order-card:active { transform: scale(0.994); border-color: var(--line); }
.order-head { display: flex; align-items: center; gap: 8px; }
.order-mode { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.order-time { margin-left: auto; font-size: 10px; color: var(--ink-3); }

.status-badge { height: 22px; padding: 0 9px; font-size: 10.5px; }
.status-badge.is-ready {
  background: var(--accent); color: #fff;
}
.status-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; margin-right: 5px;
  display: inline-block;
}

.order-thumbs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.order-thumb {
  flex: none; width: 44px; height: 44px;
  border-radius: 10px; object-fit: cover;
  background: var(--surface-2);
}
.order-thumb-more {
  flex: none; height: 44px; min-width: 30px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--surface-2);
  font-size: 10.5px; font-weight: 700; color: var(--ink-3);
  font-family: var(--num);
}
.order-summary {
  margin-left: 4px; min-width: 0;
  font-size: 11px; color: var(--ink-3); line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.order-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-top: 9px; border-top: 1px solid var(--line);
}
.order-foot .mini { font-size: 10.5px; }
.order-amt {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
}
.order-pay {
  align-self: flex-start;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
}
.order-pay.is-paid { background: var(--accent-soft); color: var(--accent-2); }
.order-pay.is-unpaid { background: var(--surface-2); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   9. 我的
   -------------------------------------------------------------------------- */
.member-card { padding: 18px 16px; }
.member-top { display: flex; align-items: center; gap: 13px; }
.avatar {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 21px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(11, 138, 110, 0.16);
}
.member-id { flex: 1; min-width: 0; }
.member-name { font-size: 18px; font-weight: 800; line-height: 1.35; }
.member-meta { margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.balance-box {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1px;
}
.balance-label { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.balance-num {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15;
}
.balance-num i { font-style: normal; font-size: 15px; font-weight: 700; margin-right: 1px; }
.balance-hint { font-size: 10px; color: var(--ink-3); margin-top: 2px; }

.me-list { padding: 4px 16px; }
.me-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 0;
  text-align: left;
}
.me-row + .me-row { border-top: 1px solid var(--line); }
.me-row-ico {
  flex: none; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2);
}
.me-row-label { flex: 1; font-size: 13px; font-weight: 700; }
.me-row-value { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.me-row .chev { color: var(--line-strong); }

.addr-card { padding: 14px 16px; }
.addr-list { display: flex; flex-direction: column; }
.addr-item { padding: 11px 0; }
.addr-item + .addr-item { border-top: 1px solid var(--line); }
.addr-item-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.addr-item-name { font-size: 12.5px; font-weight: 800; }
.addr-item-phone { font-family: var(--num); font-size: 10.5px; color: var(--ink-2); }
.addr-item-text { margin-top: 3px; font-size: 11px; color: var(--ink-2); line-height: 1.55; }

.store-card { padding: 14px 16px; }
.store-card-name { font-size: 13.5px; font-weight: 800; }
.store-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 7px; font-size: 11px; color: var(--ink-2); line-height: 1.55; }
.store-row svg { flex: none; margin-top: 1px; color: var(--ink-3); }
.store-card a { color: var(--accent-2); font-weight: 700; }

.demo-foot {
  margin: 22px 0 8px;
  text-align: center;
  font-size: 10px; color: var(--ink-3); line-height: 1.7;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   10. 骨架屏
   -------------------------------------------------------------------------- */
.skeleton {
  border-radius: 12px;
  background: linear-gradient(100deg, var(--surface-2) 28%, #f8f9fa 48%, var(--surface-2) 68%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
.sk-line { height: 12px; }
.sk-line + .sk-line { margin-top: 10px; }
.sk-w30 { width: 30%; }
.sk-w45 { width: 45%; }
.sk-w60 { width: 60%; }
.sk-w80 { width: 80%; }
.sk-title { height: 24px; width: 62%; margin-top: 12px; }
.sk-chips { height: 34px; border-radius: 999px; margin-top: 16px; }
.sk-card { height: 112px; border-radius: var(--r-card); margin-top: 10px; }
.sk-card--line { height: 88px; }
.sk-head { display: flex; align-items: center; gap: 12px; }
.sk-avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; }
.sk-steps { height: 56px; margin-top: 16px; }

/* --------------------------------------------------------------------------
   11. 动效
   -------------------------------------------------------------------------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes sheet-up {
  from { transform: translateY(34px); opacity: 0.55; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pop-in {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes cartbar-in {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pop {
  0% { transform: scale(0.7); }
  55% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

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

@keyframes boot-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

/* 页面切换的轻微入场上浮 */
.app-view > .page,
.app-view > .boot-error { animation: view-in 0.22s var(--ease); }
@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* --------------------------------------------------------------------------
   12. 桌面浏览器：430px 卡片居中，两侧露灰底
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  body {
    background: #e9ebee;
    background-image: radial-gradient(1200px 600px at 50% -10%, #f2f3f4 0%, #e9ebee 60%);
  }
  .customer-app {
    box-shadow:
      0 0 0 1px rgba(26, 29, 33, 0.05),
      0 40px 90px -60px rgba(26, 29, 33, 0.5);
    background: var(--bg);
  }
  .sheet {
    border-radius: var(--r-sheet) var(--r-sheet) 0 0;
    box-shadow: 0 -30px 70px -30px rgba(18, 21, 24, 0.45);
  }
  .modal-center { padding: 32px calc(50vw - 183px); }
}

/* 极窄屏兜底 */
@media (max-width: 359px) {
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .code-big { font-size: 56px; }
}
