/* =====================================================================
   Gway · Maison Guyane — 设计系统
   方向：热带编辑风。深森林绿 + 芒果金 + 暖沙色；衬线大标题（Fraunces）+ 无衬线正文（Inter）
   原则：图片优先、留白充足、一个页面只有一个主按钮；动效短（150~450ms）、跟随系统「减少动态效果」
   ===================================================================== */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/fraunces-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/fraunces-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #10221b; --ink-2: #33433c; --muted: #6e6a60; --faint: #a39d90;
  --forest: #0c3b2c; --green: #0f6b4f; --green-d: #0b5440; --leaf: #1f9d74; --mint: #e3f2ea;
  --mango: #f5a524; --mango-d: #b86f00; --coral: #e2553b; --blue: #2952c8; --sky: #e8eeff;
  --sand: #f5efe3; --sand-2: #ece4d3; --paper: #fffdf8; --card: #ffffff; --line: #e7dfcf; --line-2: #f0eadf;
  --danger: #c2362b; --ok: #13804f; --warn: #a15c00;
  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 26px; --pill: 999px;
  --sh-1: 0 1px 2px rgba(16, 34, 27, .06), 0 1px 1px rgba(16, 34, 27, .04);
  --sh-2: 0 1px 2px rgba(16, 34, 27, .06), 0 10px 30px -14px rgba(16, 34, 27, .25);
  --sh-3: 0 2px 6px rgba(16, 34, 27, .08), 0 24px 60px -20px rgba(16, 34, 27, .38);
  --serif: "Fraunces", "Iowan Old Style", Georgia, "PingFang SC", "Microsoft YaHei", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, 1.4, .5, 1);
  --top-h: 60px; --search-h: 73px;
  --gutter: max(16px, env(safe-area-inset-left));
  --radius: var(--r); --bg: var(--sand); --text: var(--ink); /* 兼容旧名字 */
  font-family: var(--sans);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--green); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(245, 165, 36, .7); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(245, 165, 36, .35); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); letter-spacing: -.01em; }

/* ---------- 顶栏 ---------- */
.top { position: sticky; top: 0; z-index: 40; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; gap: 10px; color: #fff; background: rgba(12, 59, 44, .94);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); transition: background .35s var(--ease), box-shadow .35s; }
.top.clear { background: rgba(12, 59, 44, 0); -webkit-backdrop-filter: none; backdrop-filter: none; }
.top.scrolled { box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .5); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1; display: block; }
.brand small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: 4px; font-weight: 650; }
.top .sp { flex: 1; }
/* 返回键：圆形，手机上也一直在左上角 */
.top .tback { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -4px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); flex: none; transition: background .2s, transform .1s; }
.top .tback:hover { background: rgba(255, 255, 255, .24); }
.top .tback:active { transform: scale(.94); }
/* 订单页：外送交接码 */
.hcode { display: grid; justify-items: center; gap: 2px; margin: 14px 0 6px; padding: 12px 14px; border-radius: var(--r); background: var(--forest); color: #fff; }
.hcode span { font-size: 13px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.hcode b { font-size: 40px; font-weight: 800; letter-spacing: .3em; padding-left: .3em; line-height: 1.15; color: var(--mango); }
.hcode small { font-size: 12.5px; opacity: .8; text-align: center; }
/* 订单页：开启提醒按钮、做好了全屏提醒 */
.alertbtn { display: block; width: 100%; margin-top: 12px; padding: 13px 14px; border-radius: var(--r-sm); border: 1.5px dashed #9cc8b4; background: var(--mint); color: var(--green-d); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.alertbtn.on { border-style: solid; border-color: transparent; background: #e9f6ef; color: var(--ok); }
.ready-mask { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  background: #0b6e4f; color: #fff; font-size: 17px; animation: rmIn .35s var(--ease) both, rmPulse 1.6s ease-in-out .4s infinite; }
.ready-mask.blue { background: #1d4ed8; animation: rmIn .35s var(--ease) both; }
.ready-mask .rm-ic { font-size: 64px; }
.ready-mask .rm-t { font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.ready-mask .rm-no { font-size: clamp(56px, 18vw, 96px); font-weight: 800; letter-spacing: .02em; line-height: 1; margin: 6px 0; }
.ready-mask .rm-ok { margin-top: 18px; border: 0; border-radius: 16px; padding: 16px 38px; font-size: 18px; font-weight: 800; background: #fff; color: #0b6e4f; cursor: pointer; }
.ready-mask.blue .rm-ok { color: #1d4ed8; }
@keyframes rmIn { from { opacity: 0; transform: scale(.96); } }
@keyframes rmPulse { 50% { background: #0f8a62; } }
@media (prefers-reduced-motion: reduce) { .ready-mask { animation: none; } }
/* 过敏原：菜品卡上一排小图标；菜品详情里列出名字 */
.item .alg { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; font-size: 14px; line-height: 1; }
.item .alg span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--sand); }
/* 新版：一行文字「⚠ Gluten · Soja」（.algt），不再用上面的小表情格子 */
.item .alg.algt { display: block; position: relative; padding-left: 19px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.item .alg.algt span { display: inline; width: auto; height: auto; border-radius: 0; background: none; }
.item .alg.algt .svgi { position: absolute; left: 0; top: 1px; color: var(--warn); }
.item .alg.algt.unk { padding-left: 0; font-style: italic; }
.algbox { margin: 12px 0 4px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sand); font-size: 13.5px; }
.algbox b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.algl { display: flex; flex-wrap: wrap; gap: 6px; }
.algl span { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-weight: 600; }
/* 情景模式：顶栏下面的祝福语条 + 顶部飘落装饰 */
.festive { position: relative; z-index: 4; text-align: center; padding: 9px var(--gutter); font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #0c3b2c, #14532d); letter-spacing: .01em; }
.festive span { font-size: 17px; margin-right: 4px; vertical-align: -1px; }
canvas.fx { position: fixed; left: 0; top: 0; width: 100%; height: min(100vh, 520px); pointer-events: none; z-index: 40; }
.theme-noel .festive { background: linear-gradient(90deg, #9b1c1c, #b91c1c 50%, #166534); }
.theme-nouvel_an .festive { background: linear-gradient(90deg, #1e1b4b, #4c1d95); color: #fde68a; }
.theme-nouvel_an_chinois .festive, .theme-guoqing .festive { background: linear-gradient(90deg, #b91c1c, #dc2626); color: #fde68a; }
.theme-carnaval .festive { background: linear-gradient(90deg, #7c3aed, #db2777, #f59e0b, #16a34a); }
.theme-valentin .festive { background: linear-gradient(90deg, #be185d, #e11d48); }
.theme-fete_nationale .festive { background: linear-gradient(90deg, #1d4ed8 0 33%, #f8fafc 33% 66%, #dc2626 66%); color: #0f172a; text-shadow: 0 0 6px #fff; }
.theme-fete_meres .festive { background: linear-gradient(90deg, #be185d, #f472b6); }
.theme-halloween .festive { background: linear-gradient(90deg, #111827, #c2410c); color: #fed7aa; }
.os .apk { margin-top: 12px; }
.mapaddr { min-height: 20px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .tlink { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; opacity: .9; padding: 8px 4px; white-space: nowrap; }
.top .tlink:hover { opacity: 1; }
.lang { appearance: none; -webkit-appearance: none; color: #fff; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--pill); padding: 7px 28px 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: rgba(255, 255, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center; transition: background-color .2s; }
.lang:hover { background-color: rgba(255, 255, 255, .2); }
.top .acct { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); flex: none; transition: background .2s; }
.top .acct:hover { background: rgba(255, 255, 255, .22); }
.abook { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px -20px 2px; padding: 4px 20px; }
.abook::-webkit-scrollbar { display: none; }
.abook button { flex: none; max-width: 220px; text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 9px 12px; font-size: 13.5px; font-weight: 700; transition: border-color .15s, background .15s; }
.abook button small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abook button.on { border-color: var(--green); background: #f0f8f3; }
.acard { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: var(--r); padding: 14px 16px; margin-top: 10px; box-shadow: var(--sh-1); }
.acard .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); font-size: 19px; flex: none; }
.acard .tx { flex: 1; min-width: 0; }
.acard .tx b { display: block; }
.acard select { border: 1.5px solid var(--line); border-radius: 9px; padding: 5px 8px; background: var(--card); font-size: 13px; }
.acard .del { border: 0; background: none; color: var(--danger); font-size: 13px; font-weight: 650; padding: 6px 0; }
.olist a { display: flex; gap: 12px; align-items: center; justify-content: space-between; text-decoration: none; color: inherit; background: var(--card); border-radius: var(--r); padding: 14px 16px; margin-top: 10px; box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.olist a:hover { transform: translateY(-2px); }
.olist small { display: block; color: var(--muted); font-size: 12.5px; }
.lang option { color: #000; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 18px var(--gutter) 130px; }
.wrap.narrow { max-width: 680px; }

/* ---------- 通用组件 ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: var(--pill); background: var(--mint); color: var(--ok); font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.plain::before, .badge.deliv::before, .badge.new::before, .badge.dsum::before { display: none; }
.badge.off { background: #efebe3; color: var(--muted); }
.badge.warn { background: #fdf0d8; color: var(--warn); }
.badge.deliv { background: var(--sky); color: var(--blue); }
.badge.new { background: #fff3d6; color: #8a5a00; }
.badge.glass { background: rgba(255, 255, 255, .94); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
/* 店铺头部的配送范围：一句话可能很长（市镇多、语言长），手机上换行，不能被截断 */
.badge.dsum { white-space: normal; line-height: 1.35; max-width: 100%; text-align: left; border-radius: 14px; }
.hot-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; margin-right: 6px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: #8a4b00;
  background: #fdf0d8; vertical-align: 2px; white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; font-weight: 650; }
.rating b { color: var(--mango-d); }
.rating .muted { font-weight: 500; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: #fdf3e0; color: #6e4700; padding: 12px 14px; border-radius: var(--r-sm); margin: 12px 0; font-size: 14px; }
.box { background: var(--card); border-radius: var(--r); padding: 18px; margin-top: 14px; box-shadow: var(--sh-1); }
.box h3 { font-family: var(--serif); font-size: 20px; font-weight: 650; margin: 0 0 6px; letter-spacing: -.015em; }
.empty { text-align: center; color: var(--muted); padding: 48px 12px; }
.field { display: grid; gap: 6px; margin: 12px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; background: var(--card); width: 100%; font-weight: 450; transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d6ccb8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(15, 107, 79, .14); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.big { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; background: var(--green); color: #fff; padding: 16px 18px; border-radius: var(--r-sm);
  font-size: 16.5px; font-weight: 700; margin-top: 14px; letter-spacing: .01em; box-shadow: 0 10px 24px -12px rgba(15, 107, 79, .8); transition: transform .12s var(--ease), background .2s, box-shadow .2s, opacity .2s; }
.big:hover { background: var(--green-d); }
.big:active { transform: scale(.985); }
.big:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.big.busy { color: transparent !important; pointer-events: none; }
.big.busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ghost { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 1.5px solid var(--line); background: var(--card); padding: 12px 14px; border-radius: var(--r-sm); margin-top: 10px; font-weight: 600;
  color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s, transform .12s var(--ease); }
.ghost:hover { border-color: #d6ccb8; background: var(--paper); }
.ghost:active { transform: scale(.985); }
.ghost.danger { color: var(--danger); }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.row:last-child { border-bottom: 0; }
.row.sum { border: 0; padding: 4px 0; color: var(--muted); }
.row.total { border: 0; padding-top: 10px; font-weight: 800; font-size: 17px; align-items: baseline; }
.row.total .num { font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; }
.toast { position: fixed; left: 50%; top: calc(var(--top-h) + env(safe-area-inset-top) + 12px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--pill); z-index: 99;
  max-width: min(92vw, 480px); font-size: 14px; font-weight: 550; box-shadow: var(--sh-3); animation: toastIn .35s var(--spring) both; text-align: center; }
.toast.out { animation: toastOut .25s var(--ease) both; }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -8px); } }
.skel { background: linear-gradient(100deg, #ebe3d3 30%, #f6f1e7 50%, #ebe3d3 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r-lg); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.reveal { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
img.fade { opacity: 0; transition: opacity .45s var(--ease), transform .6s var(--ease); }
img.fade.in { opacity: 1; }

/* ---------- 首页 ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--forest); margin-top: calc(-1 * (var(--top-h) + env(safe-area-inset-top)));
  padding: calc(var(--top-h) + env(safe-area-inset-top) + 30px) var(--gutter) 84px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 80% at 88% 0%, rgba(245, 165, 36, .3), transparent 62%), radial-gradient(55% 75% at 0% 100%, rgba(31, 157, 116, .5), transparent 65%), linear-gradient(160deg, #10503b, #0a2e22 72%); }
.hero .leaves { position: absolute; right: -70px; bottom: -60px; width: min(70vw, 560px); z-index: -1; pointer-events: none; animation: sway 9s ease-in-out infinite alternate; transform-origin: 80% 100%; }
@keyframes sway { to { transform: rotate(-2.5deg); } }
.hero .inner { max-width: 1180px; margin: 0 auto; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mango); }
.hero .eyebrow::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 8.4vw, 76px); line-height: 1; letter-spacing: -.035em; margin: 16px 0 16px; max-width: 12ch; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--mango); }
.hero p { margin: 0; max-width: 44ch; font-size: clamp(15px, 2vw, 18px); color: rgba(255, 255, 255, .8); }
.hero .stats { display: flex; gap: 22px; margin-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .72); flex-wrap: wrap; }
.hero .stats b { display: block; font-family: var(--serif); font-size: 24px; color: #fff; font-weight: 650; letter-spacing: -.02em; }
/* 送到哪里（市镇选择） */
.hero .area { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; border-radius: var(--pill);
  padding: 9px 14px 9px 12px; font-size: 14px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s; }
.hero .area:hover { background: rgba(255, 255, 255, .18); }
.hero .area span { opacity: .75; }
.hero .area b { font-weight: 700; }
.hero .area i { font-style: normal; opacity: .7; font-size: 11px; }
.arealist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 20px; }
.arealist button { text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 11px 12px; font-weight: 650; font-size: 14px; }
.arealist button small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ok); min-height: 1em; }
.arealist button.on { border-color: var(--green); background: #f0f8f3; }
/* 头部广告位：横向滑动，自动轮播 */
.ads { position: relative; margin-top: 22px; }
.adtrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); }
.adtrack::-webkit-scrollbar { display: none; }
.ad { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 9; scroll-snap-align: start; overflow: hidden; background: #0f4a37; color: #fff; text-decoration: none; }
.ad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ad:hover img { transform: scale(1.03); }
.adtx { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(5, 20, 14, .85)); }
.adtx b { display: block; font-family: var(--serif); font-size: clamp(20px, 3vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.adtx small { display: block; margin-top: 4px; font-size: 13.5px; opacity: .85; }
.addots { position: absolute; right: 14px; top: 14px; display: flex; gap: 5px; }
.addots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .5); transition: width .3s var(--ease), background .3s; }
.addots i.on { width: 20px; background: #fff; }
@media (min-width: 980px) {
  .hero.has-ads .collage { display: none; }
  .hero .ads { margin-top: 0; }
}
.searchbar { position: relative; z-index: 2; max-width: 1180px; margin: -30px auto 0; padding: 0 var(--gutter); }
.searchbar label { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 4px 6px 4px 18px; box-shadow: var(--sh-3); transition: box-shadow .2s; }
.searchbar label:focus-within { box-shadow: var(--sh-3), 0 0 0 4px rgba(245, 165, 36, .35); }
.searchbar svg { flex: none; color: var(--muted); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 15px 0; font-size: 16px; }
.searchbar input::placeholder { color: var(--faint); }
.searchbar input::-webkit-search-cancel-button { filter: grayscale(1); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 18px var(--gutter) 4px; scroll-padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--pill); padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); transition: background .2s, border-color .2s, color .2s, transform .12s var(--ease); }
.chips button:hover { border-color: #d6ccb8; }
.chips button:active { transform: scale(.96); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 14px; }
.sec-h h2 { font-family: var(--serif); font-size: clamp(23px, 3.2vw, 32px); font-weight: 600; letter-spacing: -.025em; margin: 0; }
.sec-h .muted { font-size: 13px; }
.live { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px 16px; margin-top: 20px; text-decoration: none; box-shadow: var(--sh-2);
  transition: transform .2s var(--ease); }
.live:hover { transform: translateY(-2px); }
.live .pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--mango); flex: none; animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, .6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(245, 165, 36, 0); } }
.live b { display: block; }
.live span { font-size: 13px; opacity: .75; }
.live .go { margin-left: auto; font-weight: 700; color: var(--mango); white-space: nowrap; }
.mine { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.mine a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 12px; color: var(--ink-2); font-weight: 600; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.scard { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--sh-1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.scard:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.scard:active { transform: translateY(-1px) scale(.995); }
.scard .cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-2); }
.scard .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scard:hover .cover img { transform: scale(1.05); }
.scard .cover::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .22)); pointer-events: none; }
/* 门店 logo（横条）：首页店铺卡片封面下方，白底条，品牌一眼看得到 */
.scard .clogo { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; height: 44px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; }
.scard .clogo img { max-width: 100%; max-height: 100%; object-fit: contain; position: static; width: auto; height: auto; }
.scard .tl { position: absolute; left: 12px; top: 12px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.scard .tr { position: absolute; right: 12px; top: 12px; z-index: 1; }
.scard .body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.scard h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.12; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.scard h3 .rating { font-family: var(--sans); letter-spacing: 0; }
.scard .meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.scard .meta i { font-style: normal; color: var(--faint); }
.scard .hot { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard.off .cover img, .scard.off .ph { filter: grayscale(.9); opacity: .7; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .94); font-family: var(--serif); font-size: 64px; font-weight: 600; letter-spacing: -.04em; overflow: hidden;
  background: linear-gradient(140deg, hsl(var(--h) 22% 34%), hsl(calc(var(--h) + 20) 26% 22%)); }
.ph::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M45 8c14 17 14 44 0 76C31 52 31 25 45 8z' fill='%23fff' fill-opacity='.07'/%3E%3C/svg%3E") 0 0 / 90px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 20px; scroll-padding: 0 var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail .scard { scroll-snap-align: start; }
/* 首页商品搜索结果：横滑小卡片（图、名、价、店名） */
.phits { display: grid; grid-auto-flow: column; grid-auto-columns: 140px; gap: 12px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 20px; }
.phits::-webkit-scrollbar { display: none; }
.phit { display: flex; flex-direction: column; gap: 3px; background: var(--card); border-radius: var(--r-sm); box-shadow: var(--sh-1); padding: 8px 8px 10px; color: inherit; text-decoration: none; }
.phit.dim { opacity: .55; }
.phit .pi { aspect-ratio: 1; border-radius: var(--r-xs); background: var(--sand-2); overflow: hidden; margin-bottom: 4px; }
.phit .pi img { width: 100%; height: 100%; object-fit: cover; }
.phit b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phit .num { font-weight: 700; color: var(--green); }
.phit small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .scard .cover { aspect-ratio: 5 / 4; }
.rail .scard .over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px; color: #fff; }
.rail .scard .over h3 { color: #fff; font-size: 26px; }
.rail .scard .cover::after { inset: 30% 0 0; background: linear-gradient(transparent, rgba(5, 20, 14, .82)); }
.rail .scard .over .meta { color: rgba(255, 255, 255, .85); }
.foot { margin-top: 48px; background: var(--forest); color: rgba(255, 255, 255, .72); padding: 44px var(--gutter) calc(44px + env(safe-area-inset-bottom)); font-size: 13.5px; }
.foot .inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 24px 48px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.foot b.serif { display: block; color: #fff; font-size: 28px; font-weight: 600; }
.foot a { color: #fff; }
.foot p { margin: 8px 0 0; max-width: 42ch; }
.foot .links { display: grid; gap: 8px; }
.foot .fine { max-width: 1180px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; opacity: .7; }

/* ---------- 店铺页 ---------- */
.shero { position: relative; color: #fff; background: var(--forest); margin-top: calc(-1 * (var(--top-h) + env(safe-area-inset-top))); min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.shero .bg { position: absolute; inset: 0; z-index: -2; }
.shero .bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 16s ease-out both; }
.shero .bg .ph { font-size: 0; }
@keyframes kenburns { from { transform: scale(1.08); } }
.shero .slides { position: absolute; inset: 0; }
.shero .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 6s linear; animation: none; }
.shero .slides img.on { opacity: 1; transform: scale(1); }
.shero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 28, 21, .6) 0%, rgba(8, 28, 21, .12) 38%, rgba(8, 28, 21, .9) 100%); }
.shero.below { margin-top: 0; min-height: 300px; }
.spromo { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 10px var(--gutter); background: var(--mango); color: var(--ink); font-weight: 700; font-size: 14.5px; text-align: center; }
.spromo small { font-weight: 600; opacity: .75; }
.scard .promo-line { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--mango-d); }
.slogo { background: #fff; border-bottom: 1px solid var(--line-2); display: flex; justify-content: center; }
.slogo img { display: block; width: 100%; max-width: 1200px; aspect-ratio: 6 / 1; max-height: 120px; object-fit: contain; }
.shero.below .inner { padding-top: 64px; }
.shero .inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: calc(var(--top-h) + env(safe-area-inset-top) + 56px) var(--gutter) 26px; }
.shero h1 { font-family: var(--serif); font-size: clamp(34px, 7vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1; margin: 0 0 14px; }
.shero .chipline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.shero .chipline .rating { background: rgba(255, 255, 255, .94); color: var(--ink); padding: 6px 10px; border-radius: var(--pill); font-size: 12px; text-decoration: none; }
.shero .addr { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .82); display: flex; gap: 6px 16px; flex-wrap: wrap; }
.shero .addr a { color: #fff; }
.shero .desc { margin: 10px 0 0; max-width: 62ch; color: rgba(255, 255, 255, .86); font-size: 15px; }
.catbar { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 30; background: rgba(245, 239, 227, .9); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.catbar.stuck { border-bottom-color: var(--line); }
.cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 1180px; margin: 0 auto; padding: 10px var(--gutter); scroll-padding: 0 var(--gutter); scroll-behavior: smooth; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; border: 0; background: transparent; border-radius: var(--pill); padding: 9px 14px; white-space: nowrap; font-size: 14px; font-weight: 650; color: var(--muted); transition: background .25s var(--ease), color .25s; }
.cats button:hover { color: var(--ink); }
.cats button.on { background: var(--ink); color: #fff; }
.menu { max-width: 1180px; margin: 0 auto; padding: 6px var(--gutter) 150px; }
.sec { scroll-margin-top: calc(var(--top-h) + var(--search-h) + env(safe-area-inset-top) + 12px); }
.sec h2 { font-family: var(--serif); font-size: clamp(23px, 3vw, 30px); font-weight: 600; letter-spacing: -.025em; margin: 30px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.sec h2 small { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.items { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); }
.item { position: relative; display: flex; gap: 14px; background: var(--card); border-radius: var(--r); padding: 12px 12px 12px 16px; box-shadow: var(--sh-1); cursor: pointer;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.item:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.item.dim { cursor: default; }
.item .b { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 4px 0 2px; }
.item .n { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.item .o { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.item .p { margin-top: auto; padding-top: 10px; font-weight: 750; font-size: 15.5px; }
.item .p small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.item .pic { position: relative; width: 112px; height: 112px; flex: none; border-radius: 14px; overflow: hidden; background: var(--sand-2); }
.item .pic img { width: 100%; height: 100%; object-fit: cover; }
.item .pic .ph { font-size: 38px; }
.add { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: var(--pill);
  background: var(--green); color: #fff; font-size: 24px; font-weight: 500; line-height: 1; box-shadow: 0 4px 12px -4px rgba(15, 107, 79, .55); transition: transform .15s var(--ease), background .2s, color .2s; }
.add:hover { background: var(--green-d); }
.add:active { transform: scale(.88); }
.add.has { background: var(--forest); color: #fff; font-size: 16px; font-weight: 750; }
.add.pop { animation: pop .4s var(--spring); }
@keyframes pop { 40% { transform: scale(1.25); } }
.item.nopic .add { position: static; align-self: flex-end; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 12px var(--gutter) max(14px, env(safe-area-inset-bottom)); pointer-events: none; transition: transform .5s var(--spring), opacity .3s; }
.cartbar.hidden { display: block !important; transform: translateY(140%); opacity: 0; }
.cartbar button { pointer-events: auto; display: flex; width: 100%; max-width: 560px; margin: 0 auto; align-items: center; gap: 12px; border: 0; background: var(--ink); color: #fff; padding: 9px 9px 9px 10px;
  border-radius: var(--pill); font-weight: 700; font-size: 16px; box-shadow: 0 18px 40px -14px rgba(8, 28, 21, .75); transition: transform .12s var(--ease); }
.cartbar button:active { transform: scale(.985); }
.cartbar .cnt { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: var(--pill); background: var(--mango); color: var(--ink); font-weight: 800; }
.cartbar .cnt.bump { animation: pop .45s var(--spring); }
.cartbar .lbl { flex: 1; text-align: left; }
.cartbar .amt { background: rgba(255, 255, 255, .12); border-radius: var(--pill); padding: 9px 14px; font-variant-numeric: tabular-nums; }
.rev { padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.rev:last-child { border: 0; }
.rev .r { color: var(--mango); letter-spacing: 2px; }
.rev .reply { margin-top: 10px; padding: 10px 12px; background: var(--sand); border-radius: var(--r-sm); font-size: 13px; }
.reviews { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.reviews .rev { background: var(--card); border-radius: var(--r); padding: 18px; border: 0; box-shadow: var(--sh-1); }
.reviews blockquote { margin: 10px 0 8px; font-family: var(--serif); font-size: 18px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.reviews .by { font-size: 12.5px; color: var(--muted); }

/* ---------- 弹层（手机：底部抽屉；电脑：居中） ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 20, 15, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: fadeIn .25s var(--ease) both; }
.sheet-bg.out { animation: fadeOut .22s var(--ease) both; }
.sheet-bg.out .sheet { animation: sheetOut .22s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet { position: relative; background: var(--paper); width: 100%; max-width: 600px; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; border-radius: 26px 26px 0 0; padding: 10px 20px 0;
  box-shadow: var(--sh-3); animation: sheetIn .45s var(--spring) both; }
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 12px; }
.sheet .x { position: absolute; right: 14px; top: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 20px; line-height: 1; color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--sh-1); }
.sheet h3 { font-family: var(--serif); margin: 6px 44px 4px 0; font-size: 27px; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.sheet .sub { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.sheet .hpic { margin: -10px -20px 16px; aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: var(--sand-2); }
.sheet .hpic img { width: 100%; height: 100%; object-fit: cover; }
.sheet .foot-bar { position: sticky; bottom: 0; z-index: 2; margin: 16px -20px 0; padding: 12px 20px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 78%, rgba(255, 253, 248, 0)); }
.sheet .foot-bar .big { margin-top: 0; }
@media (min-width: 760px) {
  .sheet-bg { align-items: center; padding: 24px; }
  .sheet { border-radius: 26px; max-height: 88dvh; animation-name: modalIn; animation-duration: .35s; }
  .sheet-bg.out .sheet { animation-name: modalOut; }
  .sheet .grab { display: none; }
  .sheet .hpic { margin-top: -10px; }
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
.og { margin: 18px 0; }
.og > b { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: 15px; }
.og > b span { font-size: 11.5px; font-weight: 650; color: var(--muted); background: var(--sand); padding: 3px 9px; border-radius: var(--pill); }
.og > b span.req { color: var(--warn); background: #fdf0d8; }
.og label { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); margin-top: 8px; background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; }
.og label:has(input:checked) { border-color: var(--green); background: #f0f8f3; }
.og label span { flex: 1; font-weight: 550; }
.og input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--sand); border-radius: var(--pill); padding: 3px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--card); font-size: 18px; line-height: 1; box-shadow: var(--sh-1); transition: transform .12s var(--ease); }
.stepper button:active { transform: scale(.85); }
.stepper b { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper.lg button { width: 46px; height: 46px; font-size: 22px; }
.stepper.lg b { min-width: 36px; font-size: 18px; }
.cline { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.cline .nm { font-weight: 650; }
.cline .op { font-size: 12.5px; color: var(--muted); }
.cline .pr { min-width: 70px; text-align: right; font-weight: 650; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--sand-2); border-radius: 14px; padding: 4px; margin: 8px 0 4px; }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--card); border-radius: 10px; box-shadow: var(--sh-1); transition: transform .4s var(--spring); }
.seg.r::before { transform: translateX(100%); }
.seg button { position: relative; border: 0; background: transparent; padding: 10px 8px; font-weight: 700; color: var(--muted); transition: color .25s; line-height: 1.25; }
.seg button.on { color: var(--ink); }
.seg button small { display: block; font-weight: 550; font-size: 11.5px; color: var(--muted); }
/* 电商版配送方式选择（到店自取 / 本店送货 / 快递邮寄）：竖排按钮 */
.segcol { display: grid; gap: 8px; margin: 8px 0 4px; }
.segb { display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 12px 14px; font-weight: 700; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
.segb svg { flex: none; }
.segb > span { display: grid; }
.segb small { display: block; font-weight: 550; font-size: 11.5px; color: var(--muted); }
.segb.on { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 107, 79, .13); }
.ghost.geo { justify-content: flex-start; text-align: left; }
/* 地图选点：地图不动的图钉在中间，拖地图对位置；拖的时候图钉抬起来 */
.mapbox { position: relative; height: min(58dvh, 460px); margin: 8px -20px 0; background: var(--sand-2); overflow: hidden; }
.mapbox #lmap { position: absolute; inset: 0; }
.mapbox .pin { position: absolute; left: 50%; top: 50%; z-index: 500; width: 34px; height: 46px; margin: -46px 0 0 -17px; pointer-events: none; transition: transform .2s var(--spring); }
.mapbox .pin::before { content: ""; position: absolute; inset: 0 0 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--coral); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.mapbox .pin i { position: absolute; left: 11px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.mapbox .pin::after { content: ""; position: absolute; left: 13px; bottom: 0; width: 8px; height: 4px; border-radius: 50%; background: rgba(0, 0, 0, .35); transition: transform .2s; }
.mapbox .pin.up { transform: translateY(-10px); }
.mapbox .pin.up::after { transform: translateY(10px) scale(1.6); opacity: .5; }
.ghost.busy, .mapbox .mapme.busy { opacity: .6; pointer-events: none; }
.ghost.busy::after, .mapbox .mapme.busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; margin-left: 6px; }
.mapbox .mapme { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; align-items: center; gap: 6px; border: 0; background: #fff; border-radius: var(--pill); padding: 10px 14px; font-weight: 700; font-size: 13.5px; box-shadow: var(--sh-2); }
.leaflet-container { font: inherit; }
.geo-row { display: flex; gap: 8px; margin-top: 10px; }
.geo-row .ghost { margin-top: 0; }
.ghost.geo.ok { border-color: var(--ok); color: var(--ok); background: #f1faf5; }
.label-h { font-size: 11.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 24px 0 4px; }
.hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 6px; }
.pick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.pick::-webkit-scrollbar { display: none; }
.pick button { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 9px 14px; font-weight: 650; font-size: 14px; text-align: left; transition: border-color .15s, background .15s; }
.pick button small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.pick button.on { border-color: var(--green); background: #f0f8f3; }
.chk { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.otp { letter-spacing: .5em; font-size: 24px !important; text-align: center; font-variant-numeric: tabular-nums; }
.promo { display: flex; gap: 8px; margin: 14px 0 4px; }
.promo input { flex: 1; min-width: 0; border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 11px 13px; background: var(--card); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.promo input:focus { outline: none; border-color: var(--green); border-style: solid; }
.btn-sm { border: 0; border-radius: var(--r-sm); padding: 0 16px; background: var(--ink); color: #fff; font-weight: 700; }
.promo-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); text-decoration: none; color: var(--ink);
  background: linear-gradient(120deg, #fff4dc, #ffe6c2); border: 1.5px dashed #f0b45a; box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.promo-card:hover { transform: translateY(-2px); }
.promo-card .big2 { font-family: var(--serif); font-size: 26px; font-weight: 650; color: var(--coral); white-space: nowrap; letter-spacing: -.02em; }
.promo-card .tx { flex: 1; min-width: 0; }
.promo-card .tx small { display: block; color: var(--muted); font-size: 12.5px; }
.promo-card .code { font-weight: 800; letter-spacing: .08em; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.wallets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.wallets span { font-size: 11.5px; font-weight: 700; letter-spacing: .01em; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.paynote .secure { display: block; line-height: 1.5; text-align: center; margin: 10px 0 0; }
/* 付款按钮下面一行：付款即同意销售条款（法国消费者法要求付款前看得到） */
.foot-bar .cgv-line { margin: 4px 0 -8px; font-size: 12px; line-height: 16px; text-align: center; color: var(--muted); }
.foot-bar .cgv-line a { color: inherit; }
/* 订单页：地址后面的小图钉 = 顾客在地图上标了位置 */
.ticket .when .loc { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--green); }

/* ---------- 订单页 ---------- */
.ticket { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 26px 20px 22px; text-align: center; box-shadow: var(--sh-2); overflow: hidden; }
.ticket .store { font-weight: 700; color: var(--ink-2); }
.ticket .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.ticket .no { font-family: var(--serif); font-size: 76px; font-weight: 650; color: var(--forest); letter-spacing: -.04em; line-height: 1; margin-top: 4px; }
.ticket .cut { position: relative; border-top: 2px dashed var(--line); margin: 22px -20px 20px; }
.ticket .cut::before, .ticket .cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); }
.ticket .cut::before { left: -11px; } .ticket .cut::after { right: -11px; }
.track { position: relative; display: flex; justify-content: space-between; margin: 0 2px; }
.track .bar { position: absolute; left: 12.5%; right: 12.5%; top: 16px; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.track .bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--leaf), var(--green)); transition: transform 1s var(--ease); }
.track .st { position: relative; flex: 1; font-size: 12px; color: var(--faint); font-weight: 600; line-height: 1.25; }
.track .st i { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 7px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font-style: normal; font-size: 15px; transition: all .45s var(--ease); }
.track .st.done { color: var(--ink-2); }
.track .st.done i { background: var(--green); border-color: var(--green); color: #fff; }
.track .st.now { color: var(--ink); }
.track .st.now i { background: var(--mango); border-color: var(--mango); color: var(--ink); animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 5px rgba(245, 165, 36, .25); } 50% { box-shadow: 0 0 0 10px rgba(245, 165, 36, .06); } }
.msg { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.18; margin: 22px 0 0; }
.ticket .when { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.person { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--sand); border-radius: var(--r); padding: 12px; margin-top: 16px; }
.person .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--mango); font-family: var(--serif); font-weight: 650; font-size: 19px; flex: none; }
.person .who { flex: 1; min-width: 0; font-weight: 650; }
.person .who small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.person a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; text-decoration: none; flex: none; transition: transform .15s var(--ease); }
.person a:active { transform: scale(.9); }
.stars-pick { display: flex; gap: 4px; justify-content: center; margin: 12px 0; }
.stars-pick button { border: 0; background: none; color: #ddd5c4; font-size: 40px; padding: 0 2px; transition: transform .25s var(--spring), color .15s; line-height: 1; }
.stars-pick button:hover { transform: scale(1.15) rotate(-6deg); }
.stars-pick button.on { color: var(--mango); }
.legal h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); font-weight: 600; letter-spacing: -.03em; margin: 10px 0 6px; }
.legal h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 26px 0 6px; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (min-width: 900px) {
  .hero { padding-bottom: 116px; padding-top: calc(var(--top-h) + env(safe-area-inset-top) + 56px); }
  .item .pic { width: 124px; height: 124px; }
}
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) { .top:has(.tlink) .brand small { display: none; } }
/* 首页大图右侧：菜品照片拼贴（电脑宽度才显示） */
.collage { display: none; }
@media (min-width: 980px) {
  .hero .inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
  .collage { display: block; position: relative; height: 420px; }
  .collage .c { position: absolute; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); background: #0f4a37; animation: floatIn .9s var(--ease) both; }
  .collage .c img, .collage .c .ph { width: 100%; height: 100%; object-fit: cover; }
  .collage .c1 { width: 58%; aspect-ratio: 4 / 5; right: 6%; top: 0; transform: rotate(3deg); animation-delay: .1s; }
  .collage .c2 { width: 44%; aspect-ratio: 1; left: 2%; top: 22%; transform: rotate(-5deg); animation-delay: .25s; }
  .collage .c3 { width: 36%; aspect-ratio: 1; right: 0; bottom: -4%; transform: rotate(-2deg); animation-delay: .4s; }
  .collage .tag { position: absolute; left: 8%; bottom: 6%; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 14px 10px 10px;
    box-shadow: var(--sh-3); font-size: 13px; font-weight: 600; animation: floatIn .9s .6s var(--ease) both, bob 4s 1.5s ease-in-out infinite; }
  .collage .tag i { width: 36px; height: 36px; border-radius: 12px; background: var(--mango); display: grid; place-items: center; font-style: normal; font-size: 18px; }
  .collage .tag small { display: block; color: var(--muted); font-weight: 500; }
  .hero .leaves { opacity: .5; }
}
@keyframes floatIn { from { opacity: 0; translate: 0 30px; } }
@keyframes bob { 50% { translate: 0 -6px; } }
.og label span.num { flex: none; }
.sheet .grab { position: sticky; top: 0; z-index: 3; }
.sheet:has(.hpic) .grab { position: absolute; left: 50%; top: 8px; margin: 0 0 0 -20px; background: rgba(255, 255, 255, .75); }
@media (min-width: 980px) { .hero:not(:has(.collage .c)) .leaves { opacity: .9; } }
.item .n .hot-badge { display: flex; width: fit-content; margin: 0 0 6px; }
/* ---------- 店铺页：左侧分类导航 ---------- */
.mlayout { display: grid; grid-template-columns: 96px minmax(0, 1fr); max-width: 1180px; margin: 0 auto; align-items: start; }
.cats.side { position: sticky; top: calc(var(--top-h) + var(--search-h) + env(safe-area-inset-top)); height: calc(100vh - var(--top-h) - var(--search-h) - env(safe-area-inset-top)); height: calc(100dvh - var(--top-h) - var(--search-h) - env(safe-area-inset-top)); padding-bottom: calc(96px + env(safe-area-inset-bottom)); box-sizing: border-box; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 0 120px; background: var(--sand-2); scrollbar-width: none; scroll-behavior: smooth; }
.cats.side::-webkit-scrollbar { display: none; }
.cats.side button { position: relative; flex: none; width: 100%; text-align: left; white-space: normal; line-height: 1.3; border-radius: 0; padding: 14px 10px 14px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: transparent; transition: background .25s var(--ease), color .25s; }
.cats.side button::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--mango); transform: translateY(-50%); transition: height .3s var(--spring); }
.cats.side button:hover { color: var(--ink); }
.cats.side button.on { background: var(--sand); color: var(--ink); font-weight: 750; }
.cats.side button.on::before { height: 60%; }
.mlayout .menu { padding: 0 var(--gutter) 150px 14px; margin: 0; max-width: none; }
.mlayout .sec h2 { margin-top: 22px; }
.mlayout .items { grid-template-columns: 1fr; }
@media (max-width: 599px) {
  .mlayout .item { padding: 10px; gap: 10px; }
  .mlayout .item .pic { width: 88px; height: 88px; }
  .mlayout .add { right: 10px; bottom: 10px; }
  .mlayout .sec h2 { font-size: 21px; }
}
@media (min-width: 900px) {
  .mlayout { grid-template-columns: 220px minmax(0, 1fr); gap: 0 32px; padding: 0 var(--gutter); }
  .cats.side { background: transparent; padding: 24px 0 40px; gap: 4px; }
  .cats.side button { border-radius: 12px; padding: 11px 14px; font-size: 14.5px; }
  .cats.side button.on { background: var(--card); box-shadow: var(--sh-1); }
  .cats.side button.on::before { left: 0; }
  .mlayout .menu { padding: 0 0 150px; }
  .mlayout .items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
}
@media (max-width: 480px) { .top .tlink { display: none; } .top .brand small { display: block; } .top:has(.tback) .brand small { display: none; } }
@media (max-width: 520px) {
  .promo-card { flex-wrap: wrap; gap: 4px 12px; }
  .promo-card .big2 { font-size: 22px; }
  .promo-card .tx { flex: 1 1 60%; }
  .promo-card .code { order: 3; margin-left: auto; }
}

/* 预订 */
.badge.pre { background: rgba(245, 165, 36, .92); color: #2b1d05; }
.notice.pre { background: #fff7e6; border-color: #f3d39a; color: #7a4a00; }

/* 商城 logo（方形图显示成圆形）：首页卡片封面左下角、本店页面店名旁边 */
.scard .cavatar { position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.scard .cavatar img { position: static; width: 100%; height: 100%; object-fit: cover; transform: none !important; }
.shero h1 .savatar { display: inline-block; width: 1.25em; height: 1.25em; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid #fff; vertical-align: -0.28em; margin-right: .32em; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.shero h1 .savatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 设计审查 v0.20：和收银系统点餐页同一家族（安静的标签、线条图标、44px 点击范围） ---------- */
/* 有 hidden 属性就一定不显示（以前没活动的店也会显示一条空的芒果色横条） */
.spromo[hidden], .slogo[hidden] { display: none; }
.svgi { display: inline-block; vertical-align: -3px; flex: none; }
.badge .svgi { vertical-align: 0; }
/* 店铺页：分类标题不带数量；「招牌」一类下面一行说明 */
.sec .sec-sub { margin: -6px 0 12px; font-size: 13.5px; color: var(--muted); }
/* 店铺页头部：地址、电话、营业时间一行一个小图标；电话不再是下划线 */
.shero .addr span, .shero .addr a { display: inline-flex; align-items: center; gap: 6px; }
.shero .addr a { text-decoration: none; font-weight: 600; }
/* 结账：付款方式、条款放在正文最后（底部固定条只留付款按钮，手机上不再挡住三分之一屏幕） */
.paynote { margin-top: 18px; padding: 12px 0 4px; border-top: 1px solid var(--line-2); }
.paynote .wallets { margin-top: 0; }
.alg-hint { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.alg-hint .svgi { color: var(--warn); margin-top: 1px; }
/* 订单页：步骤图标、交接码标题、骑手地址行 */
.track .st i .svgi { vertical-align: 0; }
.hcode span { display: inline-flex; align-items: center; gap: 6px; }
.ticket .when .svgi { margin-right: 4px; }
.alertbtn .svgi { margin-right: 6px; vertical-align: -3px; }
.ready-mask .rm-ic .svgi { vertical-align: 0; }
.ofoot { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
/* 首页：手机上大图不占满第一屏，搜索框和店铺早点出现 */
@media (max-width: 599px) {
  .hero { padding-top: calc(var(--top-h) + env(safe-area-inset-top) + 14px); padding-bottom: 64px; }
  .hero h1 { margin: 12px 0; }
  .hero .stats { margin-top: 16px; }
}
.chips button .svgi, .chips button svg { color: var(--muted); }
.chips button.on .svgi, .chips button.on svg { color: currentColor; }
.collage .tag i { color: var(--forest); }
/* ---------- v0.20 订单页：实时跟踪小地图（进度条下面的 #trackMap，约 220px 高，不能拖） ---------- */
#trackMap { margin: 18px -6px 0; text-align: left; }
.tmap { position: relative; height: 220px; border-radius: var(--r); overflow: hidden; background: var(--sand); border: 1px solid var(--line); transition: height .25s var(--ease); }
.tmap.big { height: 62vh; height: 62svh; }
.tmap .tm-canvas { position: absolute; inset: 0; }
.tmap .tm-canvas .maplibregl-canvas, .tmap .tm-canvas .leaflet-container { outline: none; }
.tmap .tm-eta { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--forest); color: #fff; font-weight: 750; font-size: 14px; padding: 8px 12px; border-radius: var(--pill); box-shadow: var(--sh-1, 0 2px 8px rgba(0, 0, 0, .15)); font-variant-numeric: tabular-nums; }
.tmap .tm-big { position: absolute; left: 8px; top: 8px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); cursor: pointer; }
.tmap .tm-big:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }
.tm-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--forest); border: 2px solid var(--forest); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.tm-pin.tm-home { background: var(--mango); color: var(--ink); border-color: var(--ink); }
.tm-store.done, .done > .tm-store { opacity: .55; filter: grayscale(1); }
.tm-pin.tm-rider { background: none; border: 0; box-shadow: none; }
.tm-rider .tm-rbg { fill: var(--green); stroke: #fff; stroke-width: 3; }
.tm-rider .tm-arrow { fill: #fff; transform-origin: 17px 17px; transform-box: view-box; transition: transform .6s var(--ease); }
.tm-rider.grey .tm-rbg { fill: #8f8a80; }
.tmap.stale .tm-eta { background: #6e6a60; }
.tm-line { margin: 10px 2px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.tm-attr { margin: 4px 2px 0; font-size: 10.5px; color: var(--muted); line-height: 1.3; }
/* 没有地图（老手机 / 地图服务连不上）：只显示文字 */
.tmap.text { height: auto; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--mint); border-color: transparent; }
.tmap.text .tm-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.tmap.text .tm-eta { position: static; margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .tmap, .tm-rider .tm-arrow { transition: none; } }
/* 送晚补偿券 */
.latebox { margin-top: 16px; padding: 14px; border-radius: var(--r); background: #fff6e5; border: 1px solid #f3d39a; text-align: left; }
.latebox b.code { display: block; margin-top: 6px; font-size: 22px; letter-spacing: .08em; color: var(--forest); font-variant-numeric: tabular-nums; }

/* ======= 电商版（收银里选「电商版」shop_style=shop）：商品方格 + 详情多图 / 介绍 / 参数 / 详情长图 ======= */
.shop-mode .items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 104px), 1fr)); gap: 8px; }
@media (min-width: 460px) { .shop-mode .items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 10px; } }
.shop-mode .item { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.shop-mode .item .pic { order: -1; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; }
.shop-mode .item .b { padding: 10px 12px 12px; width: 100%; }
.shop-mode .item .p { margin-top: 8px; padding-top: 0; }
.shop-mode .item .add { right: 10px; bottom: 10px; }
/* 详情页：多图横滑 */
.hgal { margin: -10px -20px 14px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hgal::-webkit-scrollbar { display: none; }
.hgal .g { flex: 0 0 88%; scroll-snap-align: center; aspect-ratio: 16 / 10; background: var(--sand-2); }
.hgal .g:only-child { flex-basis: 100%; }
.hgal .g img { width: 100%; height: 100%; object-fit: cover; }
/* 详情页：介绍 / 参数表 / 详情长图 */
.idesc { margin: 12px 0 0; line-height: 1.6; white-space: pre-wrap; }
.specs { width: 100%; border-collapse: collapse; margin: 12px 0 0; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--sand); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 38%; background: var(--sand); }
.idetails { margin: 16px -20px 0; display: flex; flex-direction: column; }
.idetails img { width: 100%; height: auto; display: block; }
/* 搜索框：全宽、置顶（滑动始终在顶上）、更大更醒目 */
.searchwrap { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 32; background: var(--paper); padding: 11px var(--gutter); border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px -14px rgba(0, 0, 0, .3); }
.sbar { display: flex; gap: 8px; align-items: center; max-width: 600px; margin: 0 auto; }
.sbar input { flex: 1; min-width: 0; height: 50px; border: 1.5px solid var(--line); border-radius: 26px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a746a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 17px 50% / 20px; padding: 0 18px 0 48px; font-size: 16px; font-weight: 500; color: var(--ink); outline: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s; }
.sbar input::placeholder { color: var(--faint); font-weight: 500; }
.sbar input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--mint); }
.sbar input::-webkit-search-cancel-button { display: none; }
.sbar button { flex: none; border: 0; background: var(--sand); width: 46px; height: 46px; border-radius: 50%; font-size: 23px; line-height: 1; color: var(--muted); cursor: pointer; }
body.searching .cats.side button.on { background: none; color: var(--muted); font-weight: 600; }
body.searching .cats.side button.on::before { height: 0; }
/* 多图浏览（复刻收银电商版）：满幅轮播 + 圆点 + 缩略图条 + 点图放大 */
.pdg { margin: -10px -20px 14px; }
.pdg-media { position: relative; background: var(--sand-2); }
.pdg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pdg-track::-webkit-scrollbar { display: none; }
.pdg-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; display: block; cursor: zoom-in; user-select: none; }
.pdg-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.pdg-dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 2px rgba(0, 0, 0, .4); transition: width .2s; }
.pdg-dots span.on { width: 18px; background: #fff; }
.pdg-thumbs { display: flex; gap: 8px; padding: 10px 20px 0; overflow-x: auto; scrollbar-width: none; }
.pdg-thumbs::-webkit-scrollbar { display: none; }
.pdg-thumbs button { flex: none; width: 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--sand-2); cursor: pointer; opacity: .55; }
.pdg-thumbs button.on { border-color: var(--green); opacity: 1; }
.pdg-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet:has(.pdg) .grab { position: absolute; left: 50%; top: 8px; margin: 0 0 0 -20px; background: rgba(255, 255, 255, .75); }
.zoom { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
