:root {
  --pink-50: #fff6f9;
  --pink-100: #ffe9f1;
  --pink-200: #ffd3e2;
  --pink-300: #ffb0c9;
  --pink-400: #ff85ab;
  --pink-500: #ff5c8a;
  --pink-600: #f0396c;
  --pink-700: #c92a56;
  --ink: #3a2730;
  --ink-2: #6d5561;
  --ink-3: #9b8590;
  --line: rgba(240, 76, 125, 0.14);
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(240, 76, 125, 0.1);
  --shadow-lg: 0 18px 50px rgba(240, 76, 125, 0.18);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--pink-50);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 110% -10%, #ffe0ec 0%, rgba(255, 224, 236, 0) 60%),
    radial-gradient(700px 380px at -20% 8%, #ffeaf3 0%, rgba(255, 234, 243, 0) 55%),
    linear-gradient(180deg, #fff7fa 0%, #fff1f6 42%, #fffafc 100%);
  background-attachment: fixed;
  padding-bottom: 96px;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(255, 247, 250, 0.86);
  border-bottom: 1px solid rgba(240, 76, 125, 0.08);
}
.topbar-inner {
  max-width: 560px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16.5px; letter-spacing: .2px; white-space: nowrap; }
@media (max-width: 360px) { .brand { font-size: 15px; gap: 8px; } .brand-logo { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; } }
/* ===== 书法品牌字：马善政毛笔楷书子集（仅 6KB，自托管，不依赖 CDN）===== */
@font-face {
  font-family: 'BrandShufa';
  src: url('/fonts/brand.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.brand-logo {
  width: 34px; height: 34px; border-radius: 12px;
  background: linear-gradient(140deg, var(--pink-400), var(--pink-600));
  display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(240, 76, 125, .32);
}
.brand-sub { font-size: 11px; color: var(--ink-3); font-weight: 500; margin-top: 1px; letter-spacing: .2px; }
/* 书法字只用于品牌名与 logo 首字；字重固定 400，避免浏览器合成粗体把笔锋糊掉 */
.brand-logo, #brandName {
  font-family: 'BrandShufa', 'Kaiti SC', 'STKaiti', 'KaiTi', 'Xingkai SC', 'Songti SC', serif;
  font-weight: 400;
}
#brandName { font-size: 20px; letter-spacing: 1.5px; line-height: 1.15; }
.brand-logo { font-size: 22px; letter-spacing: 0; padding-bottom: 1px; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ghost-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: .18s;
}
.ghost-btn:hover { border-color: var(--pink-300); color: var(--pink-600); }

/* ---------- 状态卡 + 套餐入口（2 : 1） ---------- */
.hero { margin: 14px 0 6px; display: flex; gap: 10px; align-items: stretch; }
.hero-card {
  flex: 2 1 0; min-width: 0;
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 13px 14px 12px;
  /* 接单中 = 绿；停单时切回粉色（.closed） */
  background: linear-gradient(135deg, #55d295 0%, #16b26a 55%, #0a9355 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(16, 152, 92, .26);
  transition: background .35s ease, box-shadow .35s ease;
}
.hero-card::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 68%);
}
.hero-card.closed {
  background: linear-gradient(135deg, #f7b8cc 0%, #ee94b3 60%, #e07a9c 100%);
  box-shadow: 0 12px 26px rgba(224, 122, 156, .26);
}
.hero-top { display: flex; align-items: flex-start; gap: 8px; position: relative; z-index: 1; }
.hero-main { flex: 1; min-width: 0; }
.hero-label { font-size: 11px; opacity: .92; letter-spacing: .5px; font-weight: 600; }
.hero-title {
  font-size: 19px; font-weight: 800; margin: 3px 0 2px; letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative; z-index: 1;
}
.hero-hint {
  font-size: 10.5px; opacity: .94; line-height: 1.45; position: relative; z-index: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-clock-wrap { margin-left: auto; text-align: right; line-height: 1.15; flex: 0 0 auto; }
.hero-clock { font-size: 15px; font-weight: 800; letter-spacing: .2px; display: block; font-variant-numeric: tabular-nums; }
.hero-clock-label { font-size: 9px; opacity: .88; display: block; margin-top: 1px; font-variant-numeric: tabular-nums; }

/* 右侧 1/3：套餐区入口 */
.combo-entry {
  flex: 1 1 0; min-width: 0;
  border: none; cursor: pointer; text-align: left; font-family: inherit;
  border-radius: 20px; padding: 12px 11px;
  background: linear-gradient(150deg, #ffb454 0%, #f5852a 58%, #e2701a 100%);
  color: #fff; box-shadow: 0 10px 22px rgba(230, 116, 26, .3);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  position: relative; overflow: hidden; transition: transform .15s;
}
.combo-entry[hidden] { display: none; }
.combo-entry::after {
  content: ""; position: absolute; right: -26px; bottom: -34px; width: 92px; height: 92px;
  border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.combo-entry:active { transform: scale(.97); }
.combo-entry .ce-ico {
  width: 22px; height: 22px; border-radius: 8px; background: rgba(255, 255, 255, .92);
  color: #e2701a; font-size: 13px; font-weight: 800; line-height: 22px; text-align: center;
}
.combo-entry .ce-title { font-size: 15px; font-weight: 800; letter-spacing: .5px; }
.combo-entry .ce-sub {
  font-size: 10px; opacity: .95; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .25);
  display: flex; gap: 14px; font-size: 11.5px; opacity: .95; position: relative; z-index: 1;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; display: inline-block; margin-right: 5px; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 门店 ---------- */
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; color: var(--ink); margin: 22px 2px 10px;
}
.section-title .bar { width: 4px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, var(--pink-400), var(--pink-600)); }
.section-title .sub { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

.store-scroll { overflow: hidden; padding: 2px 2px 10px; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; cursor: grab; }
.store-scroll.dragging { cursor: grabbing; }
.store-track { display: flex; gap: 10px; will-change: transform; transform: translate3d(0, 0, 0); backface-visibility: hidden; }
.store-chip {
  flex: 0 0 auto; min-width: 128px;
  background: #fff; border: 1.5px solid transparent; border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(240, 76, 125, .08); cursor: pointer; transition: .18s;
}
.store-chip:active { transform: scale(.97); }
.store-chip.active { border-color: var(--pink-500); background: linear-gradient(160deg, #fff, #fff1f6); }
.store-chip.closed { opacity: .58; }
.store-name { font-size: 14px; font-weight: 800; }
.store-note { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.store-badge {
  display: inline-block; margin-top: 8px; font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; background: var(--pink-100); color: var(--pink-600);
}
.store-badge.off { background: #f2eef0; color: #9b8590; }
/* 自营店徽标 */
.self-tag {
  display: inline-block; margin-left: 6px; vertical-align: middle;
  font-size: 10px; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: linear-gradient(135deg, #f0396c, #ff8fb1);
  border-radius: 6px; padding: 1.5px 6px;
}

/* ---------- 菜品 ---------- */
.menu { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.menu-head {
  padding: 14px 16px 12px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px dashed var(--line);
}
.menu-head h3 { margin: 0; font-size: 15.5px; font-weight: 800; }
.menu-head .tag { font-size: 11px; color: var(--pink-600); background: var(--pink-100); padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.item { display: flex; gap: 12px; padding: 14px 16px; align-items: center; border-bottom: 1px solid rgba(240, 76, 125, .07); }
.item:last-child { border-bottom: none; }
.item-thumb {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
  background: linear-gradient(150deg, #ffe4ee, #ffd0e0);
  display: grid; place-items: center; font-size: 21px;
  overflow: hidden;
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-main { flex: 1; min-width: 0; }
.item-name { font-size: 14.5px; font-weight: 700; letter-spacing: .2px; }
.item-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.item-price { margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--pink-600); font-variant-numeric: tabular-nums; }
.item-price small { font-size: 11px; font-weight: 600; }
.cat-label { padding: 12px 16px 4px; font-size: 11.5px; font-weight: 800; color: var(--ink-3); letter-spacing: 1px; }

.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--pink-100); color: var(--pink-600); font-size: 17px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; transition: .15s;
}
.qty button.plus { background: linear-gradient(140deg, var(--pink-400), var(--pink-600)); color: #fff; box-shadow: 0 5px 12px rgba(240,76,125,.3); }
.qty button:active { transform: scale(.9); }
.qty .n { min-width: 16px; text-align: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.qty .n.zero { color: #cbb8c1; }

/* ---------- 购物车条 ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 250, 252, 0), rgba(255, 246, 249, .96) 42%);
}
.cartbar-inner {
  max-width: 528px; margin: 0 auto;
  background: linear-gradient(135deg, #ff6f9c, #f0396c);
  border-radius: 20px; padding: 12px 14px 12px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 14px 34px rgba(240, 76, 125, .34); color: #fff;
  transition: .25s; cursor: pointer;
}
.cartbar-inner.disabled { background: #e9dfe4; box-shadow: none; cursor: not-allowed; color: #a8919c; }
.cart-icon { position: relative; font-size: 20px; }
.cart-count {
  position: absolute; top: -6px; right: -10px; min-width: 17px; height: 17px; border-radius: 999px;
  background: #fff; color: var(--pink-600); font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center; padding: 0 4px;
}
.cart-sum { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-sum small { font-size: 11px; font-weight: 600; opacity: .9; }
.cart-go {
  margin-left: auto; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .5);
  padding: 9px 18px; border-radius: 999px; font-weight: 800; font-size: 14px;
}
.cartbar-inner.disabled .cart-go { background: #fff; color: #a8919c; border-color: transparent; }

/* ---------- 弹层 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(58, 39, 48, .42); z-index: 60;
  opacity: 0; pointer-events: none; transition: .25s; backdrop-filter: blur(2px);
}
.mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: 26px 26px 0 0; padding: 8px 18px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform .32s cubic-bezier(.32, .72, 0, 1);
  max-height: 92vh; overflow-y: auto; box-shadow: 0 -14px 40px rgba(58, 39, 48, .18);
}
.sheet.show { transform: translateY(0); }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: #f0dde5; margin: 6px auto 12px; }
.sheet h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.sheet .sub { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--pink-50);
  border-radius: 14px; padding: 12px 14px; font-size: 14.5px; color: var(--ink);
  outline: none; transition: .18s; font-family: inherit;
}
.field input:focus, .field textarea:focus { border-color: var(--pink-400); background: #fff; box-shadow: 0 0 0 4px rgba(255, 92, 138, .1); }
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.loc {
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 11px 10px;
  font-size: 13px; font-weight: 700; color: var(--ink-2); text-align: center; cursor: pointer; transition: .16s;
}
.loc.on { border-color: var(--pink-500); background: linear-gradient(150deg, #fff2f7, #ffe6f0); color: var(--pink-700); box-shadow: 0 6px 16px rgba(240, 76, 125, .12); }

.btn-primary {
  width: 100%; border: none; border-radius: 16px; padding: 15px; cursor: pointer;
  background: linear-gradient(135deg, #ff6f9c, #f0396c); color: #fff;
  font-size: 15.5px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 12px 26px rgba(240, 76, 125, .32); transition: .18s; font-family: inherit;
}
.btn-primary:active { transform: scale(.985); }
.btn-primary:disabled { background: #e9dfe4; box-shadow: none; color: #a8919c; cursor: not-allowed; }

.summary { background: var(--pink-50); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.summary-row { display: flex; font-size: 13px; color: var(--ink-2); padding: 4px 0; }
.summary-row .r { margin-left: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary-row.total { border-top: 1px dashed rgba(240, 76, 125, .2); margin-top: 6px; padding-top: 9px; font-size: 15px; }
.summary-row.total .r { color: var(--pink-600); font-size: 19px; font-weight: 800; }

/* ---------- 套餐区（弹层列表） ---------- */
.combo-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; }
.combo-card {
  border: 1.5px solid #ffe0c2; border-radius: 16px; padding: 12px 13px;
  background: linear-gradient(160deg, #fffaf4, #fff);
}
.combo-card.off { opacity: .58; border-color: var(--line); background: #faf7f8; }
.cc-head { display: flex; align-items: center; gap: 8px; }
.cc-head b { font-size: 14.5px; font-weight: 800; }
.cc-save {
  font-size: 10.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff9a3d, #ee6f18);
  border-radius: 999px; padding: 2px 7px;
}
.cc-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.cc-members { font-size: 12px; color: #8a6a52; margin-top: 6px; line-height: 1.55; }
.cc-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cc-price { display: flex; align-items: baseline; gap: 6px; }
.cc-price b { font-size: 18px; font-weight: 800; color: #e2701a; font-variant-numeric: tabular-nums; }
.cc-price s { font-size: 11.5px; color: #c3adb6; }
.cc-foot .qty { margin-left: auto; }
.cc-add {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(140deg, #ffb454, #ee6f18); color: #fff; font-size: 18px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 5px 12px rgba(238, 111, 24, .32);
}
.cc-add:active { transform: scale(.92); }
.cc-off { margin-left: auto; font-size: 11px; color: #a8919c; }

/* ---------- 支付 ---------- */
.pay-amount { text-align: center; padding: 6px 0 18px; }
.pay-amount .n { font-size: 40px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.pay-amount .n small { font-size: 17px; font-weight: 700; margin-right: 2px; }
.pay-amount .t { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
  border: 1.5px solid var(--pink-300); background: linear-gradient(150deg, #fff, #fff4f8); margin-bottom: 12px;
}
.pay-method .ic { width: 36px; height: 36px; border-radius: 11px; background: #e8f8ee; display: grid; place-items: center; font-size: 18px; }
.pay-method .nm { font-size: 14px; font-weight: 800; }
.pay-method .ds { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.pay-method .ck { margin-left: auto; color: var(--pink-600); font-size: 17px; font-weight: 800; }
.pay-tip { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin: 4px 2px 16px; }
.amt-copy {
  display: inline-block; margin-top: 10px; height: 34px; padding: 0 16px; border-radius: 17px;
  border: 1px solid var(--pink-500, #f0396c); color: var(--pink-600, #d81e5b); background: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.amt-copy.sm { margin-top: 0; height: 26px; padding: 0 10px; font-size: 12px; border-radius: 13px; margin-left: 6px; }
.amt-copy:active { background: var(--pink-50, #fff0f5); }
.steps-box { margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: #fff7fa; border: 1px solid #fbdce6; }
.steps-box .step { display: flex; gap: 10px; padding: 6px 0; font-size: 12.5px; line-height: 1.65; color: #5a4a52; }
.steps-box .step b {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--pink-500, #f0396c);
  color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 1px;
}
.steps-box .pc-amt { color: var(--pink-600, #d81e5b); }
.steps-box .pc-code { color: var(--pink-600, #d81e5b); font-size: 14px; }
.steps-box .pc-dim { font-size: 11px; color: var(--ink-3); }
.claim-box { margin: 6px 0 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: #fffafc; }
.claim-box summary { font-size: 12.5px; font-weight: 700; color: var(--ink-1, #2b2b2b); cursor: pointer; }
.claim-box[open] summary { margin-bottom: 8px; }
.claim-t { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin-bottom: 8px; }
.claim-row { display: flex; gap: 8px; }
.claim-row input { flex: 1 1 auto; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 13px; background: #fff; color: var(--ink-1, #2b2b2b); }
.claim-row button { flex: 0 0 auto; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--pink-500, #f0396c); color: var(--pink-600, #d81e5b); background: #fff; font-size: 13px; font-weight: 700; }
.claim-row button:disabled { opacity: .55; }
.qr-box { text-align: center; padding: 10px 0 16px; }
.qr-box img { width: min(300px, 78vw); height: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.qr-link { word-break: break-all; font-size: 11px; color: var(--ink-3); background: var(--pink-50); border-radius: 10px; padding: 10px; margin-top: 10px; }
.pay-longtip { font-size: 13px; font-weight: 600; color: var(--pink-500, #f0396c); margin-top: 12px; }

/* ---------- 成功 ---------- */
.success { text-align: center; padding: 12px 0 6px; }
.success .ring {
  width: 76px; height: 76px; border-radius: 50%; margin: 6px auto 14px;
  background: linear-gradient(140deg, #ff8db4, #f0396c); color: #fff; font-size: 36px;
  display: grid; place-items: center; box-shadow: 0 16px 34px rgba(240, 76, 125, .34);
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success h2 { margin: 0 0 6px; font-size: 21px; }
.success .p { font-size: 13px; color: var(--ink-3); }
.code-box {
  margin: 16px 0 4px; padding: 16px; border-radius: 18px;
  background: linear-gradient(150deg, #fff2f7, #ffe6f0); border: 1.5px dashed var(--pink-300);
}
.code-box .lb { font-size: 11.5px; color: var(--pink-600); font-weight: 700; letter-spacing: 1px; }
.code-box .cd { font-size: 33px; font-weight: 800; letter-spacing: 6px; color: var(--pink-700); margin-top: 4px; font-variant-numeric: tabular-nums; }
.code-box .cd-tip { font-size: 11.5px; color: var(--pink-600); margin-top: 6px; opacity: .9; }
.kv { text-align: left; margin-top: 14px; background: var(--pink-50); border-radius: 16px; padding: 12px 14px; }
.kv-row { display: flex; font-size: 12.8px; padding: 5px 0; color: var(--ink-2); }
.kv-row b { margin-left: auto; color: var(--ink); font-weight: 700; text-align: right; max-width: 62%; }
/* 订单明细（按店铺分组，方便配送员分餐） */
.sd-list { text-align: left; margin-top: 10px; border-top: 1px dashed rgba(240, 76, 125, .18); padding-top: 10px; }
.sd-cap { font-size: 11.5px; color: var(--ink-3); font-weight: 700; margin-bottom: 8px; }
.sd-row { display: flex; gap: 8px; padding: 7px 10px; background: #fff; border-radius: 12px; margin-bottom: 6px; box-shadow: 0 4px 12px rgba(240, 76, 125, .06); }
.sd-name { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--pink-700); white-space: nowrap; }
.sd-name .sd-qty { font-weight: 700; color: var(--ink-3); font-size: 11.5px; margin-left: 3px; }
.sd-items { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 订单列表 ---------- */
.order-card { border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; margin-bottom: 10px; }
.order-card .top { display: flex; align-items: center; gap: 8px; }
.order-card .no { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.order-card .st { margin-left: auto; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.st.paid { background: #e8f8ee; color: #1a9c5b; }
.st.pending { background: #fff4e0; color: #c98410; }
.st.expired, .st.cancelled, .st.refunded { background: #f2eef0; color: #9b8590; }
.order-card .lines { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }
.order-card .ft { display: flex; align-items: center; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.order-card .ft b { margin-left: auto; color: var(--pink-600); font-size: 16px; }
.order-card .refund-note { margin-top: 8px; font-size: 11.5px; color: #9b8590; background: #f7f3f5; border-radius: 10px; padding: 7px 10px; }
.order-card .card-acts { margin-top: 10px; display: flex; justify-content: flex-end; }
.st.done { background: #efe9ec; color: #8f7d86; }
.mini-good {
  border: 1.5px solid #ffd0dd; background: #fff; color: #d92a52;
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
}
.mini-good:active { background: #fff5f8; }

/* ---------- 订单评价（仅本人与后台可见） ---------- */
.rv-box { margin-top: 10px; border: 1px dashed #ffd3e0; border-radius: 12px; padding: 9px 11px; background: #fffcfe; }
.rv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-stars { color: #ffb400; font-size: 14px; letter-spacing: 2px; }
.rv-tag { font-size: 11px; color: #c02448; background: #ffeef4; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.rv-text { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.rv-note { margin-top: 6px; font-size: 10.5px; color: #c3adb7; }
.rv-pick { display: flex; gap: 8px; justify-content: center; margin: 16px 0 6px; }
.rv-star { font-size: 31px; line-height: 1; color: #ece2e7; background: none; border: 0; padding: 0 2px; transition: transform .12s; }
.rv-star.on { color: #ffb400; text-shadow: 0 2px 8px rgba(255, 180, 0, .35); }
.rv-star:active { transform: scale(.9); }
.rv-pick-tip { text-align: center; font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.rv-tags-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rv-tags-pick .chip {
  border: 1px solid #ffd3e0; background: #fff; color: #a8828f;
  font-size: 12px; padding: 6px 12px; border-radius: 999px; font-weight: 700;
}
.rv-tags-pick .chip.on { background: #ffeef4; border-color: #ff9dbb; color: #c02448; }
.rv-priv { margin-top: 10px; text-align: center; font-size: 11px; color: #c3adb7; }

/* ---------- 取消 / 退款 ---------- */
.mini-danger {
  border: 1.5px solid #ffc9d5; background: #fff5f8; color: #d92a52;
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.mini-danger:active { background: #ffe7ee; }
.mini-danger:disabled { border-color: #ece4e7; background: #f7f4f5; color: #b3a1a9; }
.mini-danger em { font-style: normal; font-variant-numeric: tabular-nums; }

.cancel-strip {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(150deg, #fff6f9, #ffeef4);
  border: 1px solid #ffd9e4; display: flex; align-items: center; gap: 10px; text-align: left;
}
.cancel-strip .txt { flex: 1; min-width: 0; }
.cancel-strip .txt b { display: block; font-size: 12.8px; color: #c02448; }
.cancel-strip .txt span { font-size: 11.5px; color: #a8828f; }
.cancel-strip .txt em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; color: #d92a52; }
.cancel-strip.expired { background: #f7f4f5; border-color: #ece4e7; }
.cancel-strip.expired .txt b { color: #8f7d86; }

.cancel-deadline { margin: 12px 2px 6px; font-size: 12px; color: #a8828f; }
.cancel-deadline em { font-style: normal; font-weight: 800; color: #d92a52; font-variant-numeric: tabular-nums; }

.reason-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.reason {
  font-size: 12.5px; padding: 8px 13px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
}
.reason.on { border-color: var(--pink-500); background: linear-gradient(150deg, #fff2f7, #ffe6f0); color: var(--pink-700); font-weight: 700; }

.btn-text {
  width: 100%; margin-top: 10px; background: none; border: 0;
  color: var(--ink-3); font-size: 13px; padding: 10px;
}
.success .ring.ghost { background: linear-gradient(140deg, #ffb3c7, #f76a8c); }

/* ---------- 空态 / 加载 ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); font-size: 13px; }
.empty .ico { font-size: 40px; margin-bottom: 10px; opacity: .7; }
.skeleton { height: 90px; border-radius: 18px; background: linear-gradient(90deg, #fff0f5 25%, #ffe6ef 37%, #fff0f5 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; margin-bottom: 12px; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }

.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.94);
  background: rgba(58, 39, 48, .9); color: #fff; padding: 12px 20px; border-radius: 14px;
  font-size: 13.5px; font-weight: 600; z-index: 99; opacity: 0; pointer-events: none;
  transition: .22s; max-width: 78vw; text-align: center; line-height: 1.5;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.gate { max-width: 420px; margin: 14vh auto 0; text-align: center; padding: 0 22px; }
.gate .big { font-size: 46px; margin-bottom: 14px; }
.gate h2 { font-size: 20px; margin: 0 0 8px; }
.gate p { font-size: 13px; color: var(--ink-3); line-height: 1.7; margin: 0 0 18px; }

.footer { text-align: center; font-size: 11px; color: #c3adb7; padding: 22px 0 8px; line-height: 1.8; }
.footer .foot-line { margin-bottom: 5px; }
.footer .foot-k { color: #b08c9a; font-weight: 800; margin-right: 6px; }
.footer .foot-now { color: #d92a52; font-weight: 700; }
.footer .foot-note { color: #c8b4be; }
.footer .foot-icp a { color: #c8b4be; text-decoration: none; }
.footer .foot-icp a:active { color: #e8d5de; }

/* ---------- 后台入口（首页底部） ---------- */
.gateways {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  margin: 26px 0 2px; padding-top: 18px; position: relative;
}
.gateways::before {
  content: '后 台 入 口';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: .12em; color: #d3bcc7; background: var(--pink-50);
  padding: 0 10px; white-space: nowrap;
}
.gateways::after {
  content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent); z-index: -1;
}
.gw {
  appearance: none; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: 12.5px; font-weight: 600; font-family: inherit;
  padding: 9px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  transition: .18s; box-shadow: 0 2px 8px rgba(240, 76, 125, .06);
}
.gw:active { transform: scale(.97); border-color: var(--pink-300); color: var(--pink-600); }
.gw-ico { font-size: 13px; opacity: .85; }

/* ---------- 口令弹层 ---------- */
.pin-wrap { margin: 18px 0 6px; }
.pin-input {
  width: 100%; height: 56px; border-radius: 16px; border: 1.5px solid var(--pink-200);
  background: #fffafc; font-size: 22px; letter-spacing: .5em; text-align: center;
  color: var(--ink); font-weight: 700; font-family: inherit; outline: none;
  transition: .18s; padding: 0 10px;
}
.pin-input::placeholder { font-size: 14px; letter-spacing: .1em; font-weight: 500; color: #cbb4bf; }
.pin-input:focus { border-color: var(--pink-400); background: #fff; box-shadow: 0 0 0 4px rgba(255, 92, 138, .1); }
.pin-err { min-height: 18px; margin-top: 8px; font-size: 12px; color: var(--pink-600); text-align: center; }

/* 「我的订单」列表：默认只显示一行摘要，明细点「明细 ▾」展开 */
.order-card .sum { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; }
.mini-link { border: none; background: none; color: var(--pink-600); font-size: 12px; font-weight: 800; padding: 2px 4px; cursor: pointer; margin-left: auto; }
.mini-link:active { opacity: .6; }



/* ===== 首次进店「添加到桌面」引导（一次性底部弹层） ===== */
.hs-sheet-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(44, 26, 34, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
  display: flex; align-items: flex-end; justify-content: center;
}
.hs-sheet-mask.show { opacity: 1; pointer-events: auto; }
.hs-sheet {
  width: 100%; max-width: 420px; background: #fff;
  border-radius: 22px 22px 0 0; padding: 14px 22px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.25,1);
  text-align: center;
}
.hs-sheet-mask.show .hs-sheet { transform: translateY(0); }
.hs-grab { width: 38px; height: 4px; border-radius: 2px; background: #f0d3dd; margin: 0 auto 14px; }
.hs-ico {
  width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 18px;
  background: linear-gradient(140deg, #ff7ba3, #ef3f6e);
  display: grid; place-items: center; font-size: 27px;
  box-shadow: 0 10px 24px rgba(240, 63, 110, .3);
}
.hs-title { font-size: 17px; font-weight: 800; color: #2c1a22; }
.hs-sub { font-size: 12.5px; color: #9b8590; line-height: 1.7; margin: 7px 0 14px; }
.hs-steps { text-align: left; margin: 0 4px 16px; }
.hs-step {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: #5d4550; line-height: 1.6; padding: 7px 0;
}
.hs-step + .hs-step { border-top: 1px dashed #ffe2ea; }
.hs-n {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  background: #ffe3ec; color: #d23f6b; font-size: 11.5px; font-weight: 800;
  display: grid; place-items: center; margin-top: 1px;
}
.hs-step b { color: #d23f6b; }
.hs-btn {
  width: 100%; border: 0; border-radius: 14px; padding: 13px 0;
  background: linear-gradient(140deg, #ff5c8a, #ef3f6e);
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1px;
  cursor: pointer; box-shadow: 0 8px 20px rgba(240, 63, 110, .28);
  -webkit-tap-highlight-color: transparent;
}
.hs-btn:active { transform: scale(.98); }
