/* 自家线上点餐 H5 — design direction B v2 (h5-design-20261121 §2, §7): white,
   warm grey only as section ground, black for actions, the brand yellow
   (--accent; BO 主题色 when set) only as a touch. Fonts: Plus Jakarta Sans when
   the device has it, else the system font (no web font is loaded: CSP and no
   third-party request); Chinese in the system's (PingFang SC on iPhone). */
:root {
  --accent: #FBC52D; --accent-ink: #141414; --accent-soft: #FFF3CC;
  --bg: #FFFFFF; --surface: #F6F4F0; --surface-2: #EFECE6; --line: #ECE9E3;
  --ink: #141414; --ink-2: #3C3A36; --sub: #76726B; --faint: #A9A49B;
  --red: #D8432B; --green: #2E8B57;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px rgba(20,20,20,.07);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --zh: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
@media (min-width: 520px) { html, body { background: #EAE7E1; } }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: inherit; }
button:disabled { cursor: default; }
input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
#app { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100%; position: relative; }
.loading, .error-page { padding: 64px 24px; text-align: center; color: var(--sub); font-size: 14px; }
.error-page .btn-black { margin-top: 16px; }

/* page frame: one screen tall, its own scroll areas */
.screen { display: flex; flex-direction: column; height: 100vh; height: 100dvh; position: relative; overflow: hidden; background: var(--bg); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.grey { background: var(--surface); }
.pad { padding: 0 18px; }
.scroll.pad { padding-top: 8px; padding-bottom: 120px; }
.ic { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.chev { width: 14px; height: 14px; color: var(--faint); }
.ic.chev svg { stroke-width: 2; }
.ib { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; }
.ib .ic { width: 22px; height: 22px; }
.ib.round { background: rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(20,20,20,.08); }
.hint { font-size: 12px; line-height: 1.5; color: var(--faint); margin-top: 10px; }
.tips { font-size: 12px; line-height: 1.5; color: var(--sub); text-align: center; padding: 14px 24px 24px; }
.lbl { font: 700 13px/1 var(--font); margin: 18px 0 12px; }
.pill { display: inline-block; padding: 5px 9px; border-radius: 999px; background: var(--surface); font: 600 11.5px/1 var(--font); color: var(--ink-2); }
.alert { display: block; width: calc(100% - 24px); margin: 10px 12px 0; padding: 11px 14px; border-radius: 12px; background: #FFF1EC; color: #A33A22; font-size: 13px; line-height: 1.45; text-align: left; }
.warn { margin: 0 14px 8px; padding: 9px 12px; border-radius: 10px; background: #FFF1EC; color: #A33A22; font-size: 13px; flex: none; }

/* buttons */
.btn-black { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 15px/1 var(--font); }
.btn-black.small { width: auto; height: 48px; padding: 0 26px; font-size: 14.5px; display: inline-flex; }
.btn-black:disabled { background: #D9D6D0; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid #D6D2CA; font: 600 14px/1 var(--font); background: #fff; }
.btn-line.block { width: 100%; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1.4px solid #CFCAC1; display: grid; place-items: center; position: relative; }
.stepper button::after { content: ""; position: absolute; inset: -7px; }
.stepper button .ic { width: 16px; height: 16px; }
.stepper button .ic svg { stroke-width: 2; }
.stepper button.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper button:disabled { opacity: .35; }
.stepper b { font: 700 15px/1 var(--font); min-width: 14px; text-align: center; }

/* EN / 中 */
.lang { display: inline-flex; border-radius: 999px; background: var(--surface); padding: 3px; flex: none; }
.lang button { min-width: 34px; height: 28px; padding: 0 9px; border-radius: 999px; font: 700 12px/28px var(--font); color: var(--sub); text-align: center; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,20,20,.1); }

/* bottom tabs: Home · Order · Me */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 0 calc(8px + var(--safe-b)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); position: relative; z-index: 6; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--faint); min-height: 44px; justify-content: center; }
.tab .ic { width: 24px; height: 24px; }
.tab .ic svg { stroke-width: 1.6; }
.tab span:last-child { font: 600 10.5px/1 var(--font); letter-spacing: .02em; }
.tab.on { color: var(--ink); }
.tab.on .ic svg { stroke-width: 2.1; }
.tab.on span:last-child { font-weight: 800; }

/* header bar of inner pages */
.bar { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 4px 6px; background: #fff; border-bottom: 1px solid var(--line); }
.bar b { text-align: center; font: 700 16px/1 var(--font); }
.box { background: #fff; border-radius: 16px; margin: 10px 12px 0; padding: 14px 16px; }
.box h4 { font: 800 14px/1 var(--font); margin-bottom: 12px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; padding: 7px 0; }
.kv > span { color: var(--sub); }
.kv > b { font-weight: 600; text-align: right; }
.kv.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.kv.total > span { color: var(--ink); font-weight: 700; }
.kv.total b { font: 800 17px/1 var(--font); }
.info-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); padding: 6px 0 0; }
.info-row .ic { width: 16px; height: 16px; color: var(--sub); margin-top: 1px; }

/* pickup headline (store row) */
.pickup { font: 600 12.5px/1.3 var(--font); color: var(--green); }
.pickup.closed { color: var(--red); }

/* ===== Home ===== */
.hi { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px 0; }
.hi .logo { height: 20px; width: auto; }
.hi h1 { font: 800 34px/1.05 var(--font); letter-spacing: -.03em; margin-top: 14px; }
.store-card { display: block; width: calc(100% - 40px); margin: 16px 20px 0; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); text-align: left; }
.sc-top { display: flex; align-items: center; gap: 4px; }
.sc-top b { font: 800 17px/1.2 var(--font); letter-spacing: -.01em; }
.sc-state { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 700 12.5px/1.2 var(--font); flex-wrap: wrap; }
.sc-state .pickup { font-weight: 500; color: var(--ink-2); }
.sc-state .pickup.closed { color: var(--red); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.dot.off { background: var(--red); }
.sc-sub { font-size: 12px; color: var(--sub); margin-top: 6px; }
.hero { position: relative; display: block; width: calc(100% - 40px); margin: 16px 20px 0; aspect-ratio: 16 / 11; border-radius: 24px; overflow: hidden; background: var(--surface); text-align: left; }
.hero .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.hero .slide.on { opacity: 1; }
.hero .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.hero .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); }
.hero .dots i.on { width: 18px; background: #fff; }
.hero.plain { background: var(--accent); color: var(--accent-ink); padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.hero.plain .k { font: 700 11px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.hero.plain b { font: 800 38px/1 var(--font); letter-spacing: -.035em; max-width: 260px; }
.hero.plain .k2 { font: 600 12.5px/1.2 var(--font); opacity: .8; }
.home .pad .btn-black { margin-top: 16px; }
.picks { padding: 26px 0 0; }
.picks h3 { font: 800 17px/1 var(--font); padding: 0 20px; }
.picks-row { display: flex; gap: 12px; overflow-x: auto; padding: 14px 20px 4px; scrollbar-width: none; }
.picks-row::-webkit-scrollbar { display: none; }
.pick { flex: none; width: 128px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.pick-img { width: 128px; aspect-ratio: 1 / 1.08; border-radius: 14px; background: var(--surface); overflow: hidden; display: grid; place-items: center; margin-bottom: 4px; }
.pick b { font: 700 12.5px/1.25 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick > span { font: 700 13px/1 var(--font); }
.latest { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 40px); margin: 22px 20px 0; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); text-align: left; }
.latest div { display: flex; flex-direction: column; gap: 5px; }
.latest .k { font-size: 11.5px; color: var(--sub); }
.latest b { font: 800 15px/1.2 var(--font); }
.foot-note { text-align: center; font: 700 10.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 28px 0 24px; }
.home > .alert { margin-top: 12px; }

/* product picture (real photo, or a quiet placeholder) */
.img-in, .p-img, .bs-img, .co-img, .pick-img { display: grid; place-items: center; overflow: hidden; }
.img-in img, .p-img img, .bs-img img, .co-img img, .pick-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ph { font: 500 30px/1 var(--zh); color: #CFC9BE; }

/* ===== Order ===== */
.o-head { flex: none; padding: 6px 16px 10px; }
.o-row { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.o-title { font: 800 15px/1 var(--font); }
.o-tools { display: flex; align-items: center; gap: 4px; }
.o-store { display: flex; align-items: center; gap: 4px; margin-top: 2px; text-align: left; }
.o-store b { font: 800 19px/1.15 var(--font); letter-spacing: -.015em; }
.o-head .pickup { margin-top: 4px; }
.o-notice { flex: none; display: flex; align-items: center; gap: 8px; width: 100%; padding: 2px 16px 10px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--sub); text-align: left; }
.o-notice .chev { width: 14px; height: 14px; color: var(--faint); }
.o-notice span:not(.ic) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-body { flex: 1; min-height: 0; display: flex; }
.rail { flex: none; width: 86px; background: var(--surface); overflow-y: auto; scrollbar-width: none; padding-bottom: 150px; }
.rail::-webkit-scrollbar { display: none; }
.cat { position: relative; display: block; width: 100%; padding: 15px 16px 15px 13px; text-align: left; }
.cat span { font: 500 12px/1.3 var(--zh); color: var(--sub); }
.cat[aria-current="true"] { background: #fff; }
.cat[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 2px 2px 0; background: var(--accent); }
.cat[aria-current="true"] span { color: var(--ink); font-weight: 700; }
.badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ink); color: #fff; font: 800 10px/16px var(--font); text-align: center; }
.list { flex: 1; min-width: 0; overflow-y: auto; scrollbar-width: none; padding: 0 12px 170px; }
.list::-webkit-scrollbar { display: none; }
.sec { padding-top: 16px; }
.sec h3 { font: 700 15px/1.2 var(--zh); margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; }
.card { position: relative; min-width: 0; }
.card-main { display: block; width: 100%; text-align: left; }
.card-img { position: relative; aspect-ratio: 1 / 1.08; border-radius: 14px; background: var(--surface); overflow: hidden; }
.card-img .img-in { position: absolute; inset: 0; }
.veil { position: absolute; inset: 0; background: rgba(255,255,255,.55); }
.tags { position: absolute; left: 6px; top: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tags.inline { position: static; flex-direction: row; margin-bottom: 10px; }
.tag { font: 700 9.5px/1 var(--font); letter-spacing: .04em; padding: 4px 6px; border-radius: 4px; white-space: nowrap; text-transform: uppercase; }
.t-top { background: var(--accent); color: var(--accent-ink); }
.t-few { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1px rgba(216,67,43,.35); }
.t-sold { background: rgba(255,255,255,.95); color: var(--sub); }
.card-name { font: 600 12.5px/1.25 var(--font); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.card-sub { font: 400 10.5px/1.3 var(--zh); color: var(--faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { margin-top: 6px; padding-right: 34px; display: flex; flex-direction: column; gap: 3px; min-height: 30px; }
.card-price b { font: 800 14px/1 var(--font); }
.card-price small { font: 500 10.5px/1.2 var(--font); color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.sold .card-name, .card.sold .card-price b { color: var(--faint); }
.plus { position: absolute; right: 0; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 12px/1 var(--font); }
.plus::after { content: ""; position: absolute; inset: -8px; }
.plus .ic { width: 16px; height: 16px; }
.plus .ic svg { stroke-width: 2.2; }
.plus.has { background: var(--accent); color: var(--accent-ink); }
.end { text-align: center; font: 700 10.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 28px; }
.menu > .alert { flex: none; }

/* bag bar: above the tabs */
.bagbar { position: absolute; left: 12px; right: 12px; bottom: calc(66px + var(--safe-b)); z-index: 5; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 7px 0 16px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(20,20,20,.25); }
.search .bagbar { bottom: calc(14px + var(--safe-b)); }
.bb-left { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; }
.bb-bag { position: relative; display: grid; place-items: center; }
.bb-bag .ic { width: 24px; height: 24px; }
.bb-bag b { position: absolute; top: -7px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 800 11px/18px var(--font); text-align: center; }
.bb-sum { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bb-sum strong { font: 800 17px/1 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-sum small { font: 500 10.5px/1 var(--font); color: rgba(255,255,255,.6); }
.go { height: 46px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 14px/46px var(--font); flex: none; }
.go:disabled { background: #4A4845; color: rgba(255,255,255,.6); font-weight: 600; font-size: 12.5px; padding: 0 16px; }
.bagbar.closed { background: #6E6B66; }
.bagbar.closed .bb-sum strong { font-size: 14px; }

/* sheets */
.mask { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(20,20,20,.45); animation: fade .18s ease-out; }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 86vh; max-height: 86dvh; display: flex; flex-direction: column; background: #fff; border-radius: 24px 24px 0 0; padding-bottom: var(--safe-b); animation: rise .22s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); } }
.sh-head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 16px 12px 22px; }
.sh-head > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sh-head b { font: 800 19px/1.15 var(--font); letter-spacing: -.01em; }
.sh-head span { font-size: 12px; color: var(--sub); }
.sh-x { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex: none; }
.sh-x .ic { width: 16px; height: 16px; }
.sh-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 22px 24px; }
.sh-foot { flex: none; padding: 10px 22px 22px; border-top: 1px solid var(--line); }
.si-name { font: 800 20px/1.2 var(--font); margin-bottom: 6px; }
.hours { margin: 14px 0 0; border-radius: 12px; background: var(--surface); padding: 4px 14px; }
.hours div { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; }
.hours dt { color: var(--sub); }
.hours dd { margin: 0; font-weight: 700; }
.sh-art { width: 120px; height: auto; margin: 0 auto 4px; }
.sh-sub { font-size: 14px; color: var(--ink-2); line-height: 1.5; text-align: center; }
.closed-sheet .btn-black { margin-top: 20px; }
.os-list { overflow-y: auto; padding-bottom: 8px; }
.os-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 54px; text-align: left; padding: 12px 22px; font: 500 14.5px/1.3 var(--font); border-top: 1px solid var(--line); }
.os-item em { font-style: normal; color: var(--sub); font-weight: 500; font-size: 13px; }
.os-item.on { font-weight: 800; }
.os-item:disabled { color: var(--faint); }
.os-side { display: flex; align-items: center; gap: 10px; flex: none; }
.os-side small { font: 600 12.5px/1 var(--font); color: var(--sub); }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #D6D2CA; display: grid; place-items: center; color: var(--accent); }
.tick.on { background: var(--ink); border-color: var(--ink); }
.tick .ic { width: 14px; height: 14px; }
.tick .ic svg { stroke-width: 2.6; }
.tick.sq { border-radius: 6px; }
.os-item:not(.on) .tick:not(.sq) { border-color: transparent; }

/* bag sheet */
.bs-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 16px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.bs-head > b { flex: 1; font: 800 16px/1 var(--font); }
.bs-clear { display: inline-flex; align-items: center; gap: 4px; font: 600 12.5px/1 var(--font); color: var(--sub); padding: 8px; }
.bs-clear .ic { width: 16px; height: 16px; }
.bs-clear.warn { color: var(--red); }
.bs-list { overflow-y: auto; padding: 4px 16px; flex: 1; min-height: 0; }
.bs-item { display: flex; gap: 12px; padding: 14px 0; }
.bs-item + .bs-item { border-top: 1px solid var(--line); }
.bs-img { width: 64px; height: 68px; border-radius: 12px; background: var(--surface); flex: none; }
.bs-img .ph { font-size: 22px; }
.bs-info { flex: 1; min-width: 0; }
.bs-info > b { font: 700 13.5px/1.25 var(--font); }
.bs-opts { margin-top: 6px; background: var(--surface); border-radius: 8px; padding: 6px 8px; font-size: 11.5px; line-height: 1.4; color: var(--sub); }
.bs-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.bs-row .m { font: 800 14px/1 var(--font); }
.bs-foot { flex: none; padding: 10px 0 14px; }
.bs-foot .bagbar { position: static; margin: 0 12px; box-shadow: none; }

/* ===== Search ===== */
.srch { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px 8px 16px; }
.srch-box { flex: 1; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--faint); }
.srch-box .ic { width: 17px; height: 17px; }
.srch-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.srch-cancel { font: 600 14px/1 var(--font); padding: 8px 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 13px; border-radius: 999px; background: var(--surface); font: 500 13px/1.2 var(--font); text-align: left; }
.empty-note { text-align: center; color: var(--sub); font-size: 13px; padding: 40px 0; }
.srch-body .grid { margin-top: 10px; }

/* ===== Product page ===== */
.p-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 8px 8px; transition: background .15s; }
.p-bar-name { text-align: center; font: 700 15px/1 var(--font); opacity: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-bar.scrolled { background: #fff; box-shadow: 0 1px 0 var(--line); }
.p-bar.scrolled .p-bar-name { opacity: 1; }
.p-bar.scrolled .ib.round { box-shadow: none; }
.p-hero { position: relative; aspect-ratio: 1 / 0.92; background: #F4F1EB; }
.p-hero .p-img { position: absolute; inset: 0; }
.p-hero .ph { font-size: 92px; }
.p-hero.noimg { aspect-ratio: 2 / 1; }
.p-hero.noimg .ph { font-size: 64px; }
.p-sold { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); background: rgba(255,255,255,.92); padding: 9px 15px; border-radius: 999px; font: 700 13px/1 var(--font); color: var(--sub); }
.p-head { padding: 20px 20px 4px; }
.p-head h1 { font: 800 25px/1.15 var(--font); letter-spacing: -.02em; word-break: break-word; }
.p-zh { font: 400 13px/1.4 var(--zh); color: var(--sub); margin-top: 4px; }
.p-price { font: 800 28px/1 var(--font); margin-top: 16px; letter-spacing: -.02em; }
.p-sec { padding: 18px 20px 0; margin-top: 18px; border-top: 8px solid var(--surface); }
.opt-row { display: grid; grid-template-columns: 1fr 18px; grid-template-rows: auto auto; column-gap: 8px; row-gap: 3px; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; text-align: left; }
.opt-row.fixed { background: var(--surface); border-color: transparent; }
.or-k { font-size: 11.5px; color: var(--sub); }
.or-k em { font-style: normal; color: var(--faint); }
.or-v { font: 700 14px/1.3 var(--font); grid-row: 2; }
.or-c { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 18px; height: 18px; color: var(--sub); }
.p-space { height: 120px; }
.p-foot { flex: none; display: flex; align-items: center; gap: 14px; padding: 12px 14px calc(14px + var(--safe-b)) 18px; background: #fff; border-top: 1px solid var(--line); }
.p-foot .add { flex: 1; height: 52px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 15px/1 var(--font); white-space: nowrap; text-align: center; }
.p-foot .add:disabled { background: #D9D6D0; }

/* ===== Checkout ===== */
.checkout .scroll { padding-bottom: 12px; }
.cs-name b { font: 800 16px/1.2 var(--font); }
.cs-pills { display: flex; gap: 6px; margin-top: 10px; }
.pt { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; position: relative; cursor: pointer; }
.pt .ic:first-child { width: 16px; height: 16px; color: var(--sub); }
.pt > span:not(.ic) { color: var(--sub); flex: 1; }
.pt select { border: 0; background: none; font: 700 13.5px/1.2 var(--font); text-align: right; text-align-last: right; -webkit-appearance: none; appearance: none; padding-right: 2px; max-width: 62%; outline: none; }
.pt .pt-c { width: 14px; height: 14px; color: var(--sub); }
.field { margin-top: 10px; }
.field label { display: block; font-size: 11.5px; color: var(--sub); margin-bottom: 6px; }
.f-in { display: flex; align-items: center; gap: 8px; height: 46px; border-radius: 12px; background: var(--surface); padding: 0 14px; }
.f-in input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; font-size: 16px; -webkit-appearance: none; }
.f-in input:disabled { color: var(--sub); }
.cc { font: 700 14px/1 var(--font); color: var(--ink-2); }
.names { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.co-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0 10px; }
.co-img { width: 48px; height: 52px; border-radius: 10px; background: var(--surface); flex: none; }
.co-img .ph { font-size: 18px; }
.co-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.co-t b { font: 700 13px/1.25 var(--font); }
.co-t small { font-size: 11.5px; color: var(--sub); line-height: 1.4; }
.co-m { font: 700 13px/1.2 var(--font); text-align: right; display: flex; flex-direction: column; gap: 4px; flex: none; }
.co-m small { font-weight: 500; color: var(--sub); }
.co-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }
.due { display: flex; flex-direction: column; gap: 4px; }
.due span { font-size: 11.5px; color: var(--sub); }
.due strong { font: 800 19px/1 var(--font); }

/* ===== Order status ===== */
.st-k { font-size: 12px; color: var(--sub); }
.st-code { font: 800 64px/1 var(--font); letter-spacing: .04em; margin-top: 8px; }
.st-state { font: 800 17px/1.2 var(--font); margin-top: 12px; }
.st-state.cancelled { color: var(--red); }
.st-note { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.st-note.bad { color: var(--red); }
.steps { list-style: none; margin: 20px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 6px; height: 2px; background: var(--line); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); }
.steps i { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #D6D2CA; position: relative; z-index: 1; }
.steps li.done { color: var(--ink-2); }
.steps li.done i { background: var(--ink); border-color: var(--ink); }
.steps li.cur { color: var(--ink); font-weight: 800; }
.steps li.cur i { background: var(--accent); border-color: var(--ink); box-shadow: 0 0 0 5px rgba(251,197,45,.3); }
.steps li.done:not(:last-child)::after { content: ""; position: absolute; left: 50%; width: 100%; top: 6px; height: 2px; background: var(--ink); }
.st-store { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.st-store b { font: 800 15px/1.2 var(--font); }
.status .pad { margin-top: 16px; }

/* ===== Me ===== */
.me-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
.me .lang { background: #fff; }
.me-head h1 { font: 800 26px/1.1 var(--font); letter-spacing: -.02em; }
.me .scroll { padding-bottom: 20px; }
.ord { display: block; width: 100%; padding: 12px 0; text-align: left; }
.ord + .ord { border-top: 1px solid var(--line); }
.ord-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ord-h b { font: 700 13.5px/1.2 var(--font); }
.ord-h span { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.ord-s { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; }
.ord-s b { font: 700 12.5px/1.2 var(--font); }
.ord-s span { font-size: 11.5px; color: var(--sub); }
.ord-s.pending, .ord-s.accepted { background: var(--accent-soft); }
.ord-s.cancelled b { color: var(--sub); }
.ord-f { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--sub); }
.ord-f b { font: 800 14px/1 var(--font); color: var(--ink); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0 6px; }
.empty img { width: 132px; height: auto; }
.empty p { font-size: 14px; color: var(--sub); }
.me-store { display: flex; align-items: center; gap: 4px; text-align: left; margin-bottom: 4px; }
.me-store b { font: 800 15px/1.2 var(--font); }
.me .box .pickup { margin: 2px 0 2px; }

/* toast */
.toast { position: fixed; left: 50%; top: 84px; z-index: 50; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; transition: all .2s; background: var(--ink); color: #fff; font: 600 13px/1 var(--font); padding: 11px 16px; border-radius: 999px; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 中英资料 (11-21): 强推 BEST, 门店公告, 一句话简介与详细描述, 门店电话 */
.t-best { background: var(--ink); color: #fff; }
.cat span { display: block; overflow-wrap: break-word; hyphens: auto; }
:lang(en) .cat { padding-left: 11px; padding-right: 8px; }
:lang(en) .cat span { font-size: 11px; letter-spacing: -.01em; }
.p-about h4 { font: 700 13px/1 var(--font); margin-bottom: 10px; }
.p-sum { font: 400 14px/1.5 var(--font); color: var(--ink-2); margin-top: 10px; }
.p-about { padding-bottom: 4px; }
.p-desc { font-size: 13px; line-height: 1.6; color: var(--sub); white-space: pre-line; }
.info-row a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* 提示 cards and page (11-21, like HEYTEA's 「小料&提示」 and tip pages):
   black single-line drawings; the card is white, the page grey on top */
.tip-art { display: block; color: var(--ink); }
.tip-art svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tip .tip-face { background: #fff; display: flex; align-items: center; justify-content: center; }
.tip .tip-face .tip-art { width: 96%; aspect-ratio: 200 / 150; }
.tip .tip-face .tip-art svg { stroke-width: 3; }
.tip-name { font: 500 13px/1.3 var(--font); -webkit-line-clamp: 2; margin-top: 10px; }
.tips-sec .grid { row-gap: 34px; }
.tip-page .scroll { background: #F4F4F4; display: flex; flex-direction: column; }
.tip-hero { position: relative; flex: none; min-height: max(300px, 38dvh); padding: 0 22px 0; display: flex; flex-direction: column; }
.tip-back { margin: 10px 0 0 -8px; width: 40px; height: 40px; display: grid; place-items: center; }
.tip-back .ic { width: 24px; height: 24px; }
.tip-back .ic svg { stroke-width: 1.6; }
.tip-hero h1 { font: 400 28px/1.2 var(--font); letter-spacing: -.01em; margin-top: 30px; max-width: 92%; word-break: break-word; }
.tip-page.zh .tip-hero h1 { font: 700 28px/1.25 var(--zh); }
.tip-hero .tip-art { width: 240px; max-width: 62%; aspect-ratio: 200 / 150; margin: auto 9% -8px auto; padding-top: 18px; }
.tip-sheet { flex: 1 0 auto; background: #fff; border-radius: 26px 26px 0 0; padding: 40px 22px calc(40px + var(--safe-b)); }
.tip-sheet h2 { font: 500 17px/1.3 var(--font); margin-bottom: 10px; }
.tip-page.zh .tip-sheet h2 { font: 700 17px/1.3 var(--zh); }
.tip-sheet p { font: 400 14.5px/1.75 var(--font); color: var(--ink); word-break: break-word; }
.tip-page.zh .tip-sheet p { font-family: var(--zh); }
/* 门店详情 (as HEYTEA's) */
.sd-slogan { font-size: 13px; line-height: 1.5; color: var(--sub); }
.sd-title { font: 700 15px/1.2 var(--font); margin: 22px 0 8px; }
.sd-line { font-size: 13px; line-height: 1.6; color: var(--sub); margin-top: 2px; word-break: break-word; }
.sd-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin-top: 26px; }
.sd-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 999px; border: 1px solid #D9D5CE; background: #fff; color: var(--ink); font: 700 13.5px/1 var(--font); text-decoration: none; }
.sd-btn .ic { width: 16px; height: 16px; }
/* the last category can reach the top, so the rail marks it when tapped */
.tips-sec { min-height: 100%; }
