:root {
  --bg: #F2ECE3;
  --paper: #FFFDF9;
  --paper-2: #FBF7F0;
  --ink: #211D19;
  --ink-2: #3A332C;
  --muted: #8A7F73;
  --line: #E7DBCA;
  --accent: #B8573C;
  --accent-deep: #9A4530;
  --olive: #5E6B5A;
  --gold: #B48A2E;
  --rose: #B06A8A;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(58, 44, 30, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 15% 0%, #E6D7C3 0%, transparent 60%),
    radial-gradient(800px 600px at 90% 100%, #DCC9B6 0%, transparent 55%),
    #EDE6DB;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.phone {
  width: min(430px, 100vw);
  max-width: 100vw;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
@media (min-width: 700px) {
  body { padding: 22px 0; }
  .phone {
    height: min(900px, calc(100dvh - 44px));
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 80px rgba(45, 34, 22, 0.22), 0 2px 0 #fff inset;
  }
}
.screen {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-bottom: 16px;
}
.screen::-webkit-scrollbar { display: none; }
.screen.no-tab { padding-bottom: 24px; }
.page { min-height: 100%; width: 100%; min-width: 0; }

/* ---------- 通用 ---------- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 16px 12px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 15px; letter-spacing: .02em; }
.card-head .muted { font-size: 11px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 20px 10px;
}
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 20px; letter-spacing: .02em; }
.section-head h2 span { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: 4px; }
.section-head .muted { font-size: 12px; }
.link { color: var(--accent); font-size: 12px; display: inline-flex; align-items: center; gap: 2px; }
.text-btn { color: var(--accent); font-size: 13px; padding: 6px 2px; }
.text-btn.danger { color: #A33B2E; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 46px; padding: 0 18px; border-radius: 14px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent; transition: transform .12s ease, opacity .12s;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .42; pointer-events: none; }
.btn.primary { background: var(--ink); color: #FFF9F1; }
.btn.primary:hover { background: #332B24; }
.btn.ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn.danger-ghost { background: #FBEDE8; color: #A33B2E; border-color: #EBCFC5; }
.btn.wide { width: 100%; margin-top: 12px; }
.btn.grow { flex: 1; }
.link-btn { color: var(--accent); font-weight: 600; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--ink); color: #F6EBDD;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(33, 29, 25, .18);
}
.brand-lockup strong { display: block; font-family: var(--serif); font-size: 21px; letter-spacing: .12em; line-height: 1.1; }
.brand-lockup small { display: block; font-size: 8px; letter-spacing: .28em; color: var(--muted); margin-top: 2px; }
.shift-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 11px; color: var(--ink-2);
}
.shift-pill i { width: 6px; height: 6px; border-radius: 50%; background: #4E9B67; box-shadow: 0 0 0 3px rgba(78,155,103,.14); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  display: inline-grid; place-items: center;
  color: var(--ink-2); border: 1px solid transparent;
}
.icon-btn:hover { background: rgba(255,255,255,.7); border-color: var(--line); }
.subhead {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 14px 12px;
  position: sticky; top: 0; z-index: 8;
  background: linear-gradient(var(--bg) 76%, rgba(242,236,227,0));
}
.subhead-title { flex: 1; min-width: 0; }
.subhead-title h1 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.subhead-title small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subhead-action { display: flex; align-items: center; gap: 4px; }

/* ---------- 收银台 ---------- */
.pos-hero {
  margin: 6px 16px 14px;
  border-radius: 26px;
  padding: 18px 18px 16px;
  color: #F8EEE2;
  background:
    radial-gradient(120% 90% at 90% 0%, rgba(184, 87, 60, .72) 0%, rgba(184, 87, 60, 0) 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(180, 138, 46, .18) 0%, transparent 60%),
    linear-gradient(140deg, #241F1B 0%, #352A23 58%, #2A231E 100%);
  box-shadow: 0 18px 36px rgba(35, 26, 18, .22);
  position: relative;
  overflow: hidden;
}
.pos-hero::after {
  content: ""; position: absolute; right: -30px; bottom: -60px;
  width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}
.hero-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .08em; }
.hero-date { color: rgba(248,238,226,.72); }
.hero-badge { color: rgba(248,238,226,.85); border: 1px solid rgba(248,238,226,.22); border-radius: 999px; padding: 4px 9px; }
.pos-hero h1 {
  margin: 16px 0 14px; font-family: var(--serif);
  font-size: 33px; line-height: 1.18; font-weight: 700; letter-spacing: .04em;
}
.pos-hero h1 em { font-style: normal; color: #E4B69A; }
.hero-stats { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid rgba(248,238,226,.14); }
.hero-stats div { display: flex; flex-direction: column; gap: 3px; }
.hero-stats span { font-size: 10px; color: rgba(248,238,226,.6); letter-spacing: .06em; }
.hero-stats strong { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .02em; }

.search-row { display: flex; gap: 8px; padding: 0 16px 10px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 13px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  color: var(--muted);
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search input::placeholder { color: #B3A696; }
.scan-btn {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2);
}
.chips { display: flex; gap: 7px; padding: 2px 16px 12px; min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chips.scroll-x { overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 31px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: 12px; white-space: nowrap;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #FBF4E9; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px 8px; }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: 0 6px 18px rgba(60, 45, 30, .05);
  transition: transform .14s ease;
}
.product-card:active { transform: scale(.985); }
.pc-media { position: relative; aspect-ratio: 4 / 4.6; background: #EFE7DB; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-tag {
  position: absolute; left: 9px; top: 9px;
  background: rgba(33, 29, 25, .78); color: #FFF6EA;
  font-size: 9px; letter-spacing: .08em; padding: 4px 7px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.pc-tag.low { background: rgba(184, 87, 60, .9); }
.pc-stock {
  position: absolute; right: 9px; bottom: 9px;
  background: rgba(255, 253, 249, .9); color: var(--ink-2);
  font-size: 9px; padding: 3px 7px; border-radius: 999px;
}
.pc-body { padding: 10px 11px 12px; }
.pc-body h3 { margin: 0 0 7px; font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: .01em; min-height: 35px; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--accent); font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.price.big { font-size: 24px; }
.quick-add {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #FFF8EE; display: grid; place-items: center;
}
.cart-dock {
  position: sticky; bottom: 10px; z-index: 12;
  margin: 10px 16px 4px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 253, 249, .94);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 8px 9px 8px 12px;
  box-shadow: 0 14px 32px rgba(50, 36, 22, .16);
  backdrop-filter: blur(10px);
}
.dock-cart { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; }
.dock-icon { position: relative; width: 34px; height: 34px; border-radius: 11px; background: #F3E7DB; color: var(--accent); display: grid; place-items: center; }
.dock-icon i {
  position: absolute; right: -4px; top: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 9px; font-style: normal;
  display: none; place-items: center;
}
.dock-icon i.show { display: grid; }
.dock-text { display: flex; flex-direction: column; gap: 1px; }
.dock-text small { font-size: 9px; color: var(--muted); letter-spacing: .04em; }
.dock-text strong { font-size: 15px; font-family: var(--serif); }
.dock-checkout { height: 42px; border-radius: 13px; padding: 0 18px; }

/* ---------- 商品库 ---------- */
.action-row { display: flex; gap: 9px; padding: 4px 16px 12px; }
.action-row.compact { padding: 10px 16px 12px; }
.stat-strip {
  display: flex; margin: 0 16px 14px; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat-strip > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.stat-strip small { font-size: 10px; color: var(--muted); letter-spacing: .05em; }
.stat-strip strong { font-family: var(--serif); font-size: 19px; }
.stat-strip strong.warn { color: var(--accent); }
.list-stack { display: flex; flex-direction: column; gap: 9px; padding: 0 16px; }
.row {
  display: flex; align-items: center; gap: 11px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 11px; box-shadow: 0 4px 12px rgba(60, 45, 30, .04);
}
.row-thumb { width: 62px; height: 72px; border-radius: 12px; object-fit: cover; background: #EFE7DB; }
.row-main { flex: 1; min-width: 0; }
.row-title { display: flex; align-items: center; gap: 7px; }
.row-title strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--muted); font-size: 11px; margin-top: 3px; }
.row-meta { display: flex; align-items: baseline; gap: 9px; margin-top: 6px; }
.row-meta .price { font-size: 15px; }
.row-meta .muted { font-size: 10px; }
.row-arrow { color: #BCAF9F; }
.stock-badge { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: #F0EEE7; color: var(--olive); }
.stock-badge.low { background: #FBEAE4; color: #A33B2E; }
.size-note { text-align: center; color: var(--muted); font-size: 10px; padding: 16px 0 6px; letter-spacing: .04em; }

/* ---------- 表单 ---------- */
.form-stack { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field label { font-size: 11px; color: var(--muted); letter-spacing: .04em; padding-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper);
  border-radius: 12px; padding: 11px 12px; font-size: 13px; outline: 0;
  color: var(--ink); min-height: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #C9A98C; box-shadow: 0 0 0 3px rgba(184, 87, 60, .08); }
.field textarea { min-height: 64px; resize: vertical; }
.field-row { display: flex; gap: 10px; }
.input-with-btn { display: flex; gap: 6px; }
.input-with-btn input { flex: 1; min-width: 0; }
.mini-btn {
  height: 44px; padding: 0 12px; border-radius: 11px;
  background: #F3E9DD; color: var(--ink-2); font-size: 11px; font-weight: 600;
}
.mini-btn.light { background: rgba(255,255,255,.2); color: #fff; }
.mini-btn.disabled { opacity: .4; pointer-events: none; }
.photo-box {
  position: relative; height: 190px; border-radius: 18px;
  border: 1.5px dashed #D8C8B4; background: var(--paper-2);
  display: grid; place-items: center; overflow: hidden; margin-bottom: 2px;
}
.photo-box.has { border-style: solid; border-color: var(--line); }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.photo-empty strong { font-size: 13px; color: var(--ink-2); }
.photo-empty span { font-size: 10px; }
.photo-change {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(33,29,25,.72); color: #fff; font-size: 10px;
  padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.size-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.size-chip {
  min-width: 42px; height: 34px; padding: 0 11px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); font-size: 12px; color: var(--ink-2);
}
.size-chip.on { background: var(--ink); color: #FFF7EC; border-color: var(--ink); }
.form-actions { display: flex; gap: 9px; margin-top: 4px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F1E9DD; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row span { display: flex; flex-direction: column; gap: 2px; }
.toggle-row strong { font-size: 13px; font-weight: 600; }
.toggle-row small { font-size: 10px; color: var(--muted); }
.toggle-row input { display: none; }
.toggle-row i { width: 40px; height: 24px; border-radius: 999px; background: #DCD2C4; position: relative; transition: background .16s; flex: 0 0 auto; }
.toggle-row i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .16s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.toggle-row input:checked + i { background: var(--accent); }
.toggle-row input:checked + i::after { transform: translateX(16px); }
.form-card { padding-bottom: 6px; }

/* ---------- 结算 ---------- */
.checkout-page { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
.checkout-cart { padding: 8px 14px; }
.co-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F3EBE0; }
.co-line:last-child { border-bottom: 0; }
.co-line img { width: 46px; height: 54px; border-radius: 10px; object-fit: cover; background: #EFE7DB; }
.co-line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.co-line-main strong { font-size: 13px; font-weight: 600; }
.co-line-main small { color: var(--muted); font-size: 10px; }
.co-line > span { font-family: var(--serif); font-size: 14px; }
.member-card {
  display: flex; align-items: center; gap: 11px; width: calc(100% - 32px);
  margin: 0 16px 12px; padding: 13px; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.member-card.has { background: linear-gradient(120deg, #FFFDF9, #FAF3E8); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 600;
}
.avatar.big { width: 54px; height: 54px; font-size: 20px; }
.avatar.tiny { width: 26px; height: 26px; font-size: 11px; }
.avatar.guest { background: #EFE7DB; color: var(--muted); }
.mc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mc-main strong { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.mc-main small { color: var(--muted); font-size: 10px; }
.mc-discount { color: var(--accent); font-size: 11px; font-weight: 600; }
.mc-arrow { color: #BCAF9F; }
.tier { font-style: normal; font-size: 9px; padding: 2px 6px; border-radius: 999px; letter-spacing: .04em; }
.tier-regular { background: #EFEAE2; color: #7A6E60; }
.tier-silver { background: #E6EAEE; color: #5E6B78; }
.tier-gold { background: #F5E8C9; color: #8C6A1F; }
.tier-black { background: #2B2622; color: #E9D9BF; }
.tier.light { background: rgba(255,255,255,.2); color: #fff; }
.discount-card .kv { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; color: var(--ink-2); }
.discount-card .kv.accent strong { color: var(--accent); }
.discount-card .kv.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; font-size: 14px; }
.discount-card .kv.total strong { font-family: var(--serif); font-size: 18px; }
.points-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 4px; border-top: 1px solid #F3EBE0; margin-top: 6px; }
.points-row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.points-row strong { font-size: 12px; }
.points-row small { font-size: 10px; color: var(--muted); }
.points-input { display: flex; align-items: center; gap: 4px; background: #F7F1E8; border-radius: 10px; padding: 0 9px; height: 36px; }
.points-input input { width: 72px; border: 0; background: transparent; outline: 0; text-align: right; font-size: 13px; }
.points-input span { font-size: 10px; color: var(--muted); }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.pay-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  border: 1px solid var(--line); border-radius: 14px; padding: 11px; background: var(--paper-2); text-align: left;
}
.pay-tile.on { border-color: var(--accent); background: #FBF0E9; box-shadow: 0 0 0 2px rgba(184,87,60,.1); }
.pay-ico { width: 30px; height: 30px; border-radius: 9px; background: #F1E7DA; color: var(--accent); display: grid; place-items: center; }
.pay-tile strong { font-size: 12px; }
.pay-tile small { font-size: 9px; color: var(--muted); }
.cash-box { margin-top: 12px; }
.cash-quick { display: flex; gap: 7px; flex-wrap: wrap; }
.cash-chip { border: 1px solid var(--line); background: var(--paper); border-radius: 9px; padding: 7px 11px; font-size: 12px; }
.cash-input { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.cash-input input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 14px; background: var(--paper); }
.cash-input strong { color: var(--accent); font-size: 14px; }
.hint-line { margin-top: 10px; font-size: 11px; color: var(--muted); background: #F7F1E8; border-radius: 10px; padding: 9px 11px; }
.checkout-summary {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: min(430px, 100%); z-index: 20;
  background: rgba(255,253,249,.96); border-top: 1px solid var(--line);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
}
@media (min-width: 700px) {
  .checkout-summary { position: absolute; bottom: 0; border-radius: 0 0 32px 32px; }
}
.sum-line { display: flex; align-items: baseline; justify-content: space-between; }
.sum-line span { font-size: 12px; color: var(--muted); }
.sum-line .big { font-family: var(--serif); font-size: 28px; color: var(--ink); }
.sum-sub { font-size: 10px; color: var(--muted); margin: 2px 0 10px; }
.pay-btn { width: 100%; height: 48px; }

/* ---------- 会员 ---------- */
.member-hero {
  display: flex; margin: 4px 16px 14px; padding: 16px;
  border-radius: 22px; color: #F7EDE0;
  background: linear-gradient(135deg, #2A241F, #4B382B 70%, #6B4A36);
  box-shadow: 0 16px 30px rgba(42, 33, 24, .2);
}
.member-hero > div { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.member-hero small { font-size: 10px; color: rgba(247,237,224,.6); }
.member-hero strong { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.member-row .avatar { width: 44px; height: 44px; }
.points { color: var(--gold); font-size: 11px; font-weight: 600; }
.member-hero-card {
  margin: 4px 16px 12px; padding: 18px; border-radius: 24px; color: #FBF3E7;
  background: linear-gradient(135deg, #2B2622, #4A3A2C 65%, #6B4A34);
  box-shadow: 0 18px 34px rgba(35, 26, 18, .22);
}
.member-hero-card.tier-silver { background: linear-gradient(135deg, #3B4046, #5E6B78 70%, #7C8794); }
.member-hero-card.tier-gold { background: linear-gradient(135deg, #3A2E1D, #6B5326 60%, #A9832F); }
.member-hero-card.tier-black { background: linear-gradient(135deg, #1A1816, #2B2622 60%, #4A3A2C); }
.mh-top { display: flex; align-items: center; gap: 12px; }
.mh-top h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 24px; letter-spacing: .04em; }
.mh-stats { display: flex; gap: 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
.mh-stats div { display: flex; flex-direction: column; gap: 3px; }
.mh-stats small { font-size: 10px; color: rgba(255,255,255,.6); }
.mh-stats strong { font-family: var(--serif); font-size: 18px; }
.mh-progress { margin-top: 14px; font-size: 10px; color: rgba(255,255,255,.7); }
.mh-progress .bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; margin-bottom: 6px; }
.mh-progress .bar i { display: block; height: 100%; background: #E7C48E; border-radius: 999px; }
.segmented { display: flex; margin: 4px 16px 10px; background: #E9E1D5; border-radius: 12px; padding: 3px; }
.segmented button { flex: 1; height: 34px; border-radius: 9px; font-size: 12px; color: var(--muted); }
.segmented button.on { background: var(--paper); color: var(--ink); box-shadow: 0 2px 6px rgba(50,35,20,.08); font-weight: 600; }
.segmented.pills { background: transparent; padding: 0; gap: 7px; margin-bottom: 12px; }
.segmented.pills button { flex: 0 0 auto; height: 31px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.segmented.pills button.on { background: var(--ink); color: #FBF3E7; border-color: var(--ink); box-shadow: none; }
.log-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; }
.log-row div { display: flex; flex-direction: column; gap: 3px; }
.log-row strong { font-size: 12px; font-weight: 600; }
.log-row small { color: var(--muted); font-size: 10px; }
.log-row .plus { color: #4E7A52; font-family: var(--serif); font-size: 15px; }
.log-row .minus { color: var(--accent); font-family: var(--serif); font-size: 15px; }
.order-row .order-total { font-family: var(--serif); font-size: 15px; }
.status { font-size: 9px; padding: 2px 7px; border-radius: 999px; }
.status.paid { background: #E7F0E5; color: #4E7A52; }
.status.refunded { background: #F4E6E1; color: #A33B2E; }

/* ---------- 积分 ---------- */
.points-hero {
  margin: 4px 16px 14px; padding: 18px; border-radius: 24px; color: #FBF2E4;
  background:
    radial-gradient(100% 90% at 100% 0%, rgba(180,138,46,.55), transparent 60%),
    linear-gradient(135deg, #2B2622, #3D3127 60%, #2A241F);
  box-shadow: 0 18px 34px rgba(35,26,18,.2);
}
.ph-top { display: flex; align-items: center; gap: 12px; }
.ph-top > div { flex: 1; }
.ph-top small { font-size: 10px; color: rgba(251,242,228,.65); }
.ph-top h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 32px; }
.ph-top h2 em { font-style: normal; font-size: 11px; color: rgba(251,242,228,.6); margin-left: 4px; }
.ph-rule { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); font-size: 10px; color: rgba(251,242,228,.65); letter-spacing: .04em; }
.gift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 0 16px; }
.gift-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gift-card img { width: 100%; aspect-ratio: 1.25; object-fit: cover; background: #EFE7DB; }
.gift-body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.gift-body strong { font-size: 12px; }
.gift-body small { color: var(--muted); font-size: 9px; line-height: 1.4; min-height: 25px; }
.gift-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; }
.gift-foot > span { color: var(--gold); font-family: var(--serif); font-size: 13px; font-weight: 600; }
.gift-foot .mini-btn { height: 28px; padding: 0 10px; font-size: 10px; background: var(--ink); color: #FFF6EA; }
.rules-card { margin-top: 14px; }
.rules-card h3 { margin: 0 0 8px; font-size: 14px; }

/* ---------- 订单 ---------- */
.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 13px; }
.oc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.oc-no { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.oc-mid { display: flex; align-items: center; gap: 9px; }
.oc-thumbs { display: flex; }
.oc-thumbs img { width: 42px; height: 50px; border-radius: 8px; object-fit: cover; border: 2px solid var(--paper); margin-right: -10px; background: #EFE7DB; }
.oc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-left: 4px; }
.oc-info strong { font-size: 13px; }
.oc-info small { color: var(--muted); font-size: 10px; }
.oc-total { font-family: var(--serif); font-size: 18px; }
.oc-foot { display: flex; justify-content: space-between; margin-top: 9px; padding-top: 8px; border-top: 1px solid #F3EBE0; font-size: 10px; color: var(--muted); }
.status-banner { margin: 0 0 10px; padding: 10px 12px; border-radius: 11px; font-size: 12px; background: #E7F0E5; color: #3F6B45; }
.status-banner.refunded { background: #F4E6E1; color: #8E3627; }
.order-actions { display: flex; gap: 9px; margin-top: 12px; }
.receipt-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); text-align: center; color: var(--muted); font-size: 10px; }

/* ---------- 报表 ---------- */
.report-hero {
  margin: 4px 16px 12px; padding: 18px; border-radius: 24px; color: #F7EDE0;
  background:
    radial-gradient(120% 100% at 90% 0%, rgba(184,87,60,.6), transparent 55%),
    linear-gradient(135deg, #26221E, #382E26 65%, #2A241F);
  box-shadow: 0 18px 34px rgba(35,26,18,.2);
}
.report-hero > small { font-size: 10px; color: rgba(247,237,224,.6); letter-spacing: .08em; }
.report-hero > strong { display: block; font-family: var(--serif); font-size: 36px; margin: 4px 0 14px; letter-spacing: .02em; }
.rh-grid { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.rh-grid div { display: flex; flex-direction: column; gap: 2px; }
.rh-grid span { font-size: 10px; color: rgba(247,237,224,.55); }
.rh-grid strong { font-family: var(--serif); font-size: 17px; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 0 16px 12px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 12px 13px; display: flex; flex-direction: column; gap: 3px; }
.kpi small { font-size: 10px; color: var(--muted); }
.kpi strong { font-family: var(--serif); font-size: 21px; }
.kpi strong.warn { color: var(--accent); }
.kpi em { font-style: normal; font-size: 9px; color: #A99B8B; }
.chart-card { padding-bottom: 14px; }
.bar-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.bar-rank { width: 17px; height: 17px; border-radius: 50%; background: #F2E9DC; color: var(--accent); font-size: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.bar-main { flex: 1; min-width: 0; }
.bar-label { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; margin-bottom: 4px; }
.bar-label strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label span { color: var(--muted); font-size: 9px; flex: 0 0 auto; }
.bar { height: 5px; border-radius: 999px; background: #F1E8DC; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #C98063, #B8573C); }
.stack-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #F1E8DC; }
.stack-bar i { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.low-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid #F3EBE0; }
.low-row:last-child { border-bottom: 0; }
.low-row img { width: 36px; height: 42px; border-radius: 8px; object-fit: cover; }
.low-row > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.low-row strong { font-size: 12px; }
.low-row small { color: var(--muted); font-size: 9px; }

/* ---------- 设置 ---------- */
.settings-card h3 { margin: 0 0 6px; font-size: 14px; }
.about-line { display: flex; justify-content: space-between; font-size: 11px; padding: 7px 0; border-top: 1px solid #F3EBE0; }
.about-line strong { font-weight: 600; }
.footer-note { text-align: center; color: #B5A796; font-size: 9px; letter-spacing: .16em; padding: 14px 0 8px; }

/* ---------- 自检 ---------- */
.selftest-result { padding: 0 16px; }
.test-summary { display: flex; align-items: baseline; gap: 9px; background: #EAF1E7; border: 1px solid #CFE0CB; border-radius: 14px; padding: 13px; margin-bottom: 12px; }
.test-summary.bad { background: #FBEAE4; border-color: #EBCFC5; }
.test-summary strong { font-family: var(--serif); font-size: 22px; color: #3F6B45; }
.test-summary.bad strong { color: #A33B2E; }
.test-summary span { font-size: 11px; color: var(--muted); }
.test-group { margin-bottom: 10px; }
.test-group h3 { font-size: 12px; margin: 8px 0 5px; color: var(--muted); letter-spacing: .06em; }
.test-case { display: flex; gap: 8px; font-size: 11px; padding: 4px 0; color: var(--ink-2); }
.test-case span:first-child { color: #4E7A52; width: 12px; }
.test-case.bad span:first-child { color: #A33B2E; }

/* ---------- 空状态 ---------- */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 24px; text-align: center; grid-column: 1 / -1; }
.empty.big-empty { min-height: 60vh; }
.empty-mark { width: 54px; height: 54px; border-radius: 50%; background: #F1E8DC; color: #B5A18A; display: grid; place-items: center; margin-bottom: 4px; }
.empty strong { font-family: var(--serif); font-size: 16px; }
.empty p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

/* ---------- 底部导航 ---------- */
.tabbar {
  height: 62px; flex: 0 0 auto;
  display: flex; align-items: stretch;
  background: rgba(255, 253, 249, .96);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(14px);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #A99A88; }
.tab span { font-size: 9px; letter-spacing: .06em; }
.tab.on { color: var(--accent); }
.tab.on svg { stroke-width: 2; }

/* ---------- 弹层 ---------- */
body.sheet-open { overflow: hidden; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(28, 22, 17, .42); z-index: 60; backdrop-filter: blur(2px); }
.sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: min(430px, 100%); max-height: 90dvh; overflow-y: auto;
  background: var(--paper); border-radius: 24px 24px 0 0;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  z-index: 61; box-shadow: 0 -18px 50px rgba(30, 22, 15, .24);
  animation: sheet-in .22s ease;
}
@keyframes sheet-in { from { transform: translate(-50%, 18px); } to { transform: translate(-50%, 0); } }
.sheet-grip { width: 38px; height: 4px; border-radius: 999px; background: #E0D4C4; margin: 2px auto 10px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sheet-head small { font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.sheet-head h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 21px; letter-spacing: .03em; }
.sheet-head-actions { display: flex; align-items: center; gap: 2px; }
.sheet-search { margin-bottom: 10px; }
.sheet-form { padding: 0; }
.picker-list { display: flex; flex-direction: column; gap: 7px; max-height: 50dvh; overflow-y: auto; }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; text-align: left; background: var(--paper-2); }
.picker-row > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.picker-row strong { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.picker-row small { color: var(--muted); font-size: 10px; }
.sku-hero { display: flex; gap: 13px; align-items: center; margin-bottom: 12px; }
.sku-hero img { width: 108px; height: 124px; border-radius: 15px; object-fit: cover; background: #EFE7DB; }
.sku-hero > div { display: flex; flex-direction: column; gap: 5px; }
.sku-block { margin-bottom: 12px; }
.sku-block label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 14px; border-top: 1px solid #F3EBE0; }
.qty-row > span { font-size: 12px; }
.stepper { display: flex; align-items: center; gap: 12px; background: #F6EFE5; border-radius: 10px; padding: 4px 6px; }
.stepper button { width: 26px; height: 26px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; color: var(--ink-2); }
.stepper strong { min-width: 18px; text-align: center; font-size: 13px; }
.stepper.small { gap: 8px; padding: 3px 4px; }
.stepper.small button { width: 22px; height: 22px; }
.cart-lines { display: flex; flex-direction: column; gap: 2px; }
.cart-line { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #F3EBE0; }
.cart-line img { width: 50px; height: 60px; border-radius: 10px; object-fit: cover; background: #EFE7DB; }
.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-main strong { font-size: 12px; }
.cl-main small { color: var(--muted); font-size: 10px; }
.cl-price { color: var(--accent); font-family: var(--serif); font-size: 13px; }
.cl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.remove-btn { color: #B8A99A; padding: 3px; }
.member-mini { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 10px; padding: 11px; border-radius: 12px; background: #F7F1E8; text-align: left; font-size: 12px; }
.member-mini span:nth-child(2) { flex: 1; }
.member-mini em { font-style: normal; color: var(--accent); font-size: 11px; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sheet-total strong { font-family: var(--serif); font-size: 23px; color: var(--ink); }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0 6px; }
.qr-box { position: relative; width: 188px; height: 188px; background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 8px; }
.qr-box i { position: absolute; width: 4.2%; height: 4.2%; background: #211D19; border-radius: 1px; }
.qr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; letter-spacing: .08em; border: 3px solid #fff; }
.qr-amount { font-family: var(--serif); font-size: 30px; }
.qr-card small { color: var(--muted); font-size: 10px; }
.pay-detail { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 10px 2px; border-top: 1px solid #F3EBE0; }
.success-box { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 2px; }
.success-check { width: 62px; height: 62px; border-radius: 50%; background: #E7F0E5; color: #3F6B45; display: grid; place-items: center; margin-bottom: 8px; }
.success-box small { color: var(--muted); font-size: 11px; }
.success-box h2 { margin: 4px 0 6px; font-family: var(--serif); font-size: 34px; }
.success-meta { display: flex; gap: 9px; font-size: 10px; color: var(--muted); }
.success-line { margin-top: 10px; font-size: 11px; color: var(--ink-2); }
.success-actions { display: flex; gap: 9px; width: 100%; margin-top: 16px; }
.shift-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #F7F1E8; margin-bottom: 10px; }
.shift-card > div { display: flex; flex-direction: column; gap: 3px; }
.shift-card strong { font-size: 14px; }
.shift-card small { color: var(--muted); font-size: 10px; }
.cat-row { display: flex; align-items: center; gap: 8px; padding: 10px 2px; border-bottom: 1px solid #F3EBE0; }
.cat-row strong { font-size: 13px; }
.cat-row small { color: var(--muted); font-size: 10px; flex: 1; }
.cat-dot { width: 9px; height: 9px; border-radius: 50%; }
.cat-add { display: flex; gap: 7px; margin-top: 12px; }
.cat-add input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--paper); font-size: 13px; }
.cat-add .btn { height: 40px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 10px);
  background: rgba(33, 29, 25, .94); color: #FFF7EC;
  font-size: 12px; padding: 10px 16px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 80;
  max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 小屏适配 ---------- */
@media (max-width: 370px) {
  .pos-hero h1 { font-size: 28px; }
  .hero-stats strong { font-size: 16px; }
  .product-grid { gap: 9px; }
  .pc-body h3 { font-size: 12px; }
}

/* 通用键值行 / 报表补货按钮 */
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 12px; color: var(--ink-2); }
.kv strong { font-weight: 600; }
.kv.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; font-size: 14px; }
.kv.total strong { font-family: var(--serif); font-size: 18px; }
.low-row .mini-btn { height: 28px; padding: 0 9px; font-size: 10px; flex: 0 0 auto; }
/* ---------- 登录 / 启动 ---------- */
.login-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 48px 26px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(184,87,60,.18), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(180,138,46,.14), transparent 60%),
    var(--bg);
}
.login-brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand-mark.big { width: 64px; height: 64px; border-radius: 20px; box-shadow: 0 14px 30px rgba(33,29,25,.22); }
.login-brand small { font-size: 9px; letter-spacing: .3em; color: var(--muted); }
.login-brand h1 { margin: 4px 0 0; font-family: var(--serif); font-size: 34px; letter-spacing: .16em; }
.login-brand p { margin: 0; font-size: 12px; color: var(--muted); }
.login-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
}
.login-card label { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.login-card input {
  height: 50px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--paper-2); padding: 0 15px; font-size: 20px; letter-spacing: .3em;
  text-align: center; outline: 0;
}
.login-card input:focus { border-color: #C9A98C; box-shadow: 0 0 0 3px rgba(184,87,60,.08); }
.login-card .btn { height: 48px; margin-top: 4px; }
.login-error { background: #FBEAE4; color: #A33B2E; font-size: 11px; padding: 9px 11px; border-radius: 10px; }
.login-hint { text-align: center; font-size: 10px; color: var(--muted); }
.login-foot { text-align: center; font-size: 10px; color: var(--muted); line-height: 1.7; }
.login-foot code { background: rgba(0,0,0,.05); padding: 2px 5px; border-radius: 5px; font-size: 10px; }
.boot-dots { display: flex; justify-content: center; gap: 7px; }
.boot-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .35; animation: boot 1.1s infinite; }
.boot-dots i:nth-child(2) { animation-delay: .18s; }
.boot-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes boot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.login-card input { letter-spacing: .2em; }
.login-card input::placeholder { font-size: 13px; letter-spacing: .04em; color: #B3A696; }

/* ---------- 微信支付 Native 扫码 ---------- */
.wx-pay-card { display: flex; flex-direction: column; align-items: center; padding: 10px 0 4px; }
.wx-qr {
  width: 232px; height: 232px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 10px; display: flex; align-items: center; justify-content: center;
}
.wx-qr img { width: 100%; height: 100%; }
.wx-qr-loading { color: var(--muted); font-size: 11px; text-align: center; line-height: 1.7; }
.wx-amount { font-family: var(--serif); font-size: 30px; margin-top: 12px; }
.wx-status { color: var(--muted); font-size: 10px; margin-top: 4px; }
.verify-ok, .verify-bad { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0; gap: 4px; }
.verify-ok svg { color: #3F6B45; }
.verify-ok strong { font-family: var(--serif); font-size: 18px; }
.verify-bad strong { color: #A33B2E; font-size: 15px; }
.verify-ok p, .verify-bad p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.wx-env { font-family: Menlo, Consolas, monospace; font-size: 10px; color: #A33B2E; background: #FBEAE4; border-radius: 6px; padding: 4px 8px; margin-bottom: 4px; }
.ok-text { color: #3F6B45; }
.warn-text { color: #A33B2E; }
.status.pending { background: #FBF3E2; color: #8C6A1F; }
.status.cancelled { background: #EFEAE2; color: #7A6E60; }
.status-banner.pending { background: #FBF3E2; color: #8C6A1F; }
.status-banner.cancelled { background: #EFEAE2; color: #7A6E60; }
/* ---------- 小屏手机适配 ---------- */
@media (max-width: 380px) {
  .topbar { padding: 14px 14px 8px; }
  .pos-hero { margin: 4px 12px 12px; padding: 15px 14px 14px; }
  .pos-hero h1 { font-size: 29px; margin: 12px 0 10px; }
  .hero-stats { gap: 12px; }
  .search-row { padding: 0 12px 8px; }
  .chips { padding: 2px 12px 10px; }
  .product-grid { gap: 9px; padding: 0 12px 8px; }
  .card { margin-left: 12px; margin-right: 12px; }
  .member-card { width: calc(100% - 24px); margin-left: 12px; margin-right: 12px; }
  .checkout-cart { padding: 6px 12px; }
  .section-head { padding-left: 14px; padding-right: 14px; }
}

@media (max-height: 700px) {
  .checkout-page { padding-bottom: calc(162px + env(safe-area-inset-bottom)); }
  .checkout-summary { padding-top: 9px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .sum-line .big { font-size: 24px; }
  .sum-sub { margin-bottom: 7px; }
  .pay-btn { height: 44px; }
}