/* ==========================================================================
   StreetCart 路边摊 — 网站样式
   --------------------------------------------------------------------------
   约束（不是偏好）：
   · 不加载任何外部字体。缅甸的网络按流量计费，一个字体请求就可能让页面
     几秒钟没有字。缅文、中文都用系统自带字体。
   · CSP 是 style-src 'self'：模板里不能写 style="" —— 所有视觉状态都得
     是 class 或 data 属性。
   · 缅文行高必须比拉丁文高得多（元音符号上下叠放），见 .lang-my。
   ========================================================================== */

/* ── 1. 设计变量 ─────────────────────────────────────────────────────────── */
:root {
  --teal-950: #04232c;
  --teal-900: #062f3b;
  --teal-800: #073f4e;
  --teal-700: #0a5566;
  --teal-600: #0a6b7a;
  --teal-500: #11808f;
  --teal-300: #7cc4cd;
  --teal-100: #d3ecef;
  --teal-50: #edf7f8;

  --saffron-700: #b87400;
  --saffron-600: #d98b00;
  --saffron-500: #f4a51c;
  --saffron-400: #ffbd45;
  --saffron-100: #ffefc9;
  --saffron-50: #fff8e7;

  --deal-700: #b3321a;
  --deal-600: #d9481f;
  --deal-500: #ee5a2c;
  --deal-100: #ffdcd0;
  --deal-50: #fff2ed;

  --green-700: #22653f;
  --green-600: #2e7d4f;
  --green-50: #e9f6ee;
  --amber-700: #8f5d00;
  --amber-50: #fff4dc;
  --blue-700: #1f5c99;
  --blue-50: #eaf2fb;

  --ink-950: #171512;
  --ink-900: #211e1a;
  --ink-800: #2f2b26;
  --ink-700: #443f39;
  --ink-600: #5a544d;
  --ink-500: #736c64;
  --ink-400: #9a9289;
  --ink-300: #bdb6ad;
  --line: #e8e2d9;
  --line-strong: #d7cfc3;
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --surface-3: #f1ede6;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-my: "Noto Sans Myanmar", "Noto Sans Myanmar UI", "Myanmar Text", "Myanmar Sangam MN", "Pyidaungsu",
    "Padauk", var(--font-sans);
  --font-num: "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(23, 21, 18, .06);
  --shadow-sm: 0 1px 2px rgba(23, 21, 18, .05), 0 2px 8px rgba(23, 21, 18, .05);
  --shadow: 0 2px 4px rgba(23, 21, 18, .04), 0 8px 24px rgba(23, 21, 18, .08);
  --shadow-lg: 0 8px 16px rgba(23, 21, 18, .06), 0 24px 56px rgba(23, 21, 18, .14);
  --ring: 0 0 0 3px rgba(17, 128, 143, .35);

  --container: 1320px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── 2. 基础 ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lang-my body { font-family: var(--font-my); font-size: 15.5px; line-height: 1.85; }
.lang-my h1, .lang-my h2, .lang-my h3 { line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; color: var(--ink-950); letter-spacing: -.01em; }
.lang-my h1, .lang-my h2, .lang-my h3, .lang-my h4 { letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-xs); }
[hidden] { display: none !important; }
::selection { background: var(--saffron-100); color: var(--ink-950); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { min-height: 50vh; padding-bottom: 56px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000; padding: 10px 16px;
  background: var(--ink-950); color: #fff; border-radius: var(--radius-sm); transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--ink-500); }
.text-deal { color: var(--deal-600); font-weight: 600; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 图标：默认描边 2px、跟随文字颜色 */
.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 28px; height: 28px; }
.i--brand { stroke: none; }
.i--verified { width: 17px; height: 17px; color: var(--teal-500); fill: var(--teal-50); }
.i--ok { color: var(--green-600); }

/* ── 3. 按钮 ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 650; font-size: 15px; line-height: 1.2; white-space: nowrap;
  text-align: center; text-decoration: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s, box-shadow .15s, transform .08s;
  user-select: none;
}
.lang-my .btn { line-height: 1.5; white-space: normal; text-wrap: balance; }
/* balance：缅文按钮折行时两行差不多长，不再把最后一个词（常是 ရန်）单独甩到第二行 */
.btn:active:not(.is-disabled):not(:disabled) { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn--lg { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: var(--radius); }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--teal-600); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08) inset, var(--shadow-xs); }
.btn--primary:hover { background: var(--teal-700); color: #fff; }
.btn--accent { background: var(--saffron-500); color: var(--ink-950); box-shadow: 0 -2px 0 rgba(0,0,0,.08) inset; }
.btn--accent:hover { background: var(--saffron-400); color: var(--ink-950); }
.btn--deal { background: var(--deal-600); color: #fff; box-shadow: 0 -2px 0 rgba(0,0,0,.12) inset; }
.btn--deal:hover { background: var(--deal-700); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink-800); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-50); }
.btn--on-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn--on-dark:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--google { background: #fff; color: var(--ink-900); border-color: var(--line-strong); }
.btn--google:hover { background: var(--surface-2); color: var(--ink-950); border-color: var(--ink-300); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
/* 文字按钮（「忘记密码？」）请求中 / 冷却中：看得出按过了，不会再发一封 */
.link-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn--ghost.is-busy::after, .btn--accent.is-busy::after { border-color: rgba(0,0,0,.2); border-top-color: var(--ink-800); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit;
}
.icon-btn:hover { background: rgba(0,0,0,.06); }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--teal-700); font-weight: 600; font-size: 14px;
}
.link-btn:hover { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }
.link-btn .i { width: 16px; height: 16px; }

/* ── 4. 小部件：chip / badge / notice / spinner / toast ──────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: var(--radius-pill);
  background: var(--surface-3); color: var(--ink-600);
  font-size: 12.5px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.chip .i { width: 13px; height: 13px; }
.chip--teal { background: var(--teal-50); color: var(--teal-700); }
.chip--green { background: var(--green-50); color: var(--green-700); }
.chip--amber { background: var(--amber-50); color: var(--amber-700); }
.chip--red { background: var(--deal-50); color: var(--deal-700); }
.chip--link { background: var(--surface); border: 1px solid var(--line); color: var(--ink-700); }
.chip--link:hover { border-color: var(--teal-500); color: var(--teal-700); }
.chip--removable { background: var(--teal-50); color: var(--teal-800); padding: 4px 8px 4px 12px; }
.chip--removable:hover { background: var(--teal-100); color: var(--teal-900); }
.badge {
  position: absolute; top: -6px; right: -9px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--deal-600); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--teal-800);
}
.notice {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; margin: 16px 0;
}
.notice .i { margin-top: 2px; }
.notice > span { flex: 1; }
.notice .btn { margin-left: auto; flex: none; }
/* 登录页：在 Telegram/TikTok 内置浏览器里打开时的提示（login.js 的 inAppBrowser） */
.inapp-note > div { flex: 1; min-width: 0; }
.inapp-note p { margin: 6px 0 0; }
.inapp-note__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inapp-note__actions .btn { margin-left: 0; }
.inapp-note__hint { font-size: 13px; opacity: .85; }
/* 订单页的提示（lib/orders.js：接单期限、取消原因、过期但已付款） */
.order-note { margin: 12px 0 0; }
.order-note > div { flex: 1; min-width: 0; }
.order-note p { margin: 4px 0 6px; }
/* 拒单 / 取消时问原因（core.js 的 reasonDialog）：几个常用原因一点就填上 */
.reason-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.reason-dialog .field__error { margin-top: 6px; }
.notice--warn { background: var(--amber-50); border-color: #f2d9a8; color: var(--amber-700); }
.notice--info { background: var(--blue-50); border-color: #cfe0f3; color: var(--blue-700); align-items: center; }
.notice--success { background: var(--green-50); border-color: #c8e6d3; color: var(--green-700); }
.notice--deal { background: var(--deal-50); border-color: var(--deal-100); color: var(--deal-700); }
.spinner {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--teal-100); border-top-color: var(--teal-600); animation: spin .75s linear infinite;
}
.spinner--lg { width: 40px; height: 40px; border-width: 3.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.shell-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 64px 0; color: var(--ink-500); }

.toast-region {
  position: fixed; z-index: 900; right: 20px; bottom: 20px; display: grid; gap: 10px;
  width: min(380px, calc(100vw - 40px)); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--ink-950); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: 14.5px; pointer-events: auto; animation: toast-in .25s var(--ease);
}
.toast .i { color: var(--saffron-400); }
.toast__msg { flex: 1; }
.toast__action { color: var(--saffron-400); font-weight: 700; white-space: nowrap; }
.toast__action:hover { color: #fff; }
.toast--error .i { color: #ff9b7d; }
.toast.is-leaving { animation: toast-out .2s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* GA 同意条：页面底部一条轻量的横幅，不挡住内容、不用先答才能继续逛。
   bottom 留出底部导航栏的高度（--tabbar-h 只在手机宽度下有值，桌面上退回 0）。 */
.consent-bar {
  position: fixed; left: 0; right: 0; bottom: var(--tabbar-h, 0px); z-index: 500;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: var(--ink-950); color: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.16);
  animation: consent-in .25s var(--ease);
}
.consent-bar__body { flex: 1 1 260px; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.85); }
.consent-bar__actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent-bar .btn--ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.consent-bar .btn--ghost:hover { background: rgba(255,255,255,.08); }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .consent-bar { animation: none; } }
/* 抽屉开着时同意条先收起：它叠在抽屉上面却是 inert，点下去会落到抽屉的链接上。 */
.drawer-open .consent-bar { display: none; }

/* ── 5. 表单 ─────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.field__label { font-size: 13.5px; font-weight: 650; color: var(--ink-800); }
.field__hint { font-size: 12.5px; color: var(--ink-500); }
.req { color: var(--deal-600); font-style: normal; }
.input {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 15px; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
.lang-my .input { line-height: 1.7; }
textarea.input { resize: vertical; min-height: 72px; }
select.input {
  appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-500) 50%), linear-gradient(135deg, var(--ink-500) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.input:hover { border-color: var(--ink-300); }
.input:focus { outline: none; border-color: var(--teal-500); box-shadow: var(--ring); }
.input.is-invalid { border-color: var(--deal-500); box-shadow: 0 0 0 3px rgba(238, 90, 44, .15); }
.input-icon { position: relative; display: block; }
.input-icon .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-400); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid__full { grid-column: 1 / -1; }
.choice { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14.5px; }
.choice input { width: 17px; height: 17px; accent-color: var(--teal-600); margin: 0; }
.choice span { display: inline-flex; align-items: center; gap: 6px; }
.choice .i { width: 16px; height: 16px; color: var(--ink-500); }

/* ── 6. 页头 ─────────────────────────────────────────────────────────────── */
.demo-strip {
  background: repeating-linear-gradient(-45deg, #ffe7a3 0 12px, #ffdd85 12px 24px);
  color: #5c4300; font-size: 12.5px; font-weight: 650; text-align: center; padding: 4px 12px;
}
/* 显示的是 service worker 存过的旧页面（网络慢/断了，src/sw-template.js 的 markStale） */
.stale-strip {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: var(--amber-50); color: var(--amber-700); border-bottom: 1px solid #f2d9a8;
  font-size: 12.5px; font-weight: 650; text-align: center; padding: 6px 12px;
}
.stale-strip .link-btn { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
/* W41 首访语言条：一行、不是弹窗；360px 下三个按钮 + × 一行放得下（flex-wrap 兜底，不横向溢出）。 */
.lang-bar { background: var(--teal-950); color: #fff; font-size: 13.5px; }
.lang-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.lang-bar__opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.lang-bar__opt { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 600; text-decoration: none; line-height: 1.5; }
.lang-bar__opt.is-active { background: #fff; color: var(--teal-950); border-color: #fff; }
.lang-bar__close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; color: #fff; }
.lang-bar[hidden] { display: none; }
.site-header { position: relative; z-index: 50; }
.topbar { background: var(--teal-950); color: rgba(255,255,255,.72); font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar__tagline { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar__tagline .i { width: 14px; height: 14px; color: var(--saffron-400); }
.topbar__links { display: flex; align-items: center; gap: 2px; flex: none; }
.topbar__link {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 0; border-radius: var(--radius-xs);
  background: none; color: rgba(255,255,255,.82); font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.topbar__link .i { width: 14px; height: 14px; }
.topbar__link:hover, .dropdown.is-open .topbar__link { color: #fff; background: rgba(255,255,255,.08); }

.popover-host, .dropdown { position: relative; }
.popover {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 80; transform: translate(-50%, 4px);
  padding: 14px; background: var(--surface); color: var(--ink-800); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s;
}
.popover::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px;
  background: var(--surface); transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.popover-host:hover .popover, .popover-host:focus-within .popover { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.popover--qr { text-align: center; width: 168px; }
.popover--qr img { width: 132px; height: 132px; margin: 0 auto 8px; }
.popover--qr p { font-size: 12.5px; color: var(--ink-600); }
.dropdown__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 80; min-width: 170px; padding: 6px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown.is-open .dropdown__menu, .dropdown:focus-within .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px;
  border-radius: var(--radius-sm); color: var(--ink-800); font-size: 14.5px;
}
.dropdown__menu a:hover { background: var(--teal-50); color: var(--teal-800); }
.dropdown__menu a[aria-current="true"] { font-weight: 700; color: var(--teal-700); }

.masthead { background: linear-gradient(180deg, var(--teal-800), #083f4d); color: #fff; }
.masthead__inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.masthead__menu { display: none; color: #fff; }
.masthead__menu:hover { background: rgba(255,255,255,.1); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.lang-my .brand__name { font-size: 18px; line-height: 1.5; letter-spacing: 0; }
.brand__sub { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-400); }
.lang-en .brand__sub { display: none; } /* 英文的品牌名本来就是 StreetCart，下面再写一遍是重复 */
.brand--light .brand__name { color: #fff; }

.location-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; flex: none; max-width: 170px;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: #fff; text-align: left;
}
.location-btn:hover { border-color: rgba(255,255,255,.35); }
.location-btn .i { color: var(--saffron-400); }
.location-btn__text { display: grid; line-height: 1.2; min-width: 0; }
.location-btn__label { font-size: 11.5px; color: rgba(255,255,255,.7); }
.location-btn__city { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-my .location-btn__text { line-height: 1.45; }

.search {
  display: flex; flex: 1; min-width: 0; height: 46px; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: 0 0 0 2px var(--saffron-500), var(--shadow-sm);
}
.search:focus-within { box-shadow: 0 0 0 3px var(--saffron-400), 0 6px 20px rgba(0,0,0,.25); }
.search__cat {
  flex: none; max-width: 150px; padding: 0 28px 0 14px; border: 0; border-right: 1px solid var(--line);
  background: var(--surface-3) no-repeat; color: var(--ink-700); font-size: 13.5px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-500) 50%), linear-gradient(135deg, var(--ink-500) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px;
  text-overflow: ellipsis;
}
.search__cat:focus { outline: none; background-color: var(--teal-50); }
.search__input { flex: 1; min-width: 0; padding: 0 16px; border: 0; color: var(--ink-950); font-size: 15.5px; }
.search__input::placeholder { color: var(--ink-400); }
.search__input:focus { outline: none; }
.search__input::-webkit-search-cancel-button { cursor: pointer; }
.search__submit {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 22px; border: 0;
  background: var(--saffron-500); color: var(--ink-950); font-weight: 700; font-size: 15px;
}
.search__submit:hover { background: var(--saffron-400); }

.masthead__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.action {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid transparent;
  border-radius: var(--radius-sm); color: #fff; line-height: 1.2;
}
.action:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.action .i { width: 24px; height: 24px; }
.action__icon { position: relative; display: block; }
.action__text { display: grid; }
.action__small { font-size: 11.5px; color: rgba(255,255,255,.72); white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.action__big { font-size: 14px; font-weight: 700; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.lang-my .action__big, .lang-my .action__small { max-width: 200px; }
.lang-my .action { line-height: 1.45; }

.catnav { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.catnav__inner { display: flex; align-items: center; gap: 8px; min-height: 46px; }
.catnav__all {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; margin-left: -16px;
  border: 0; background: var(--teal-600); color: #fff; font-weight: 700; font-size: 14.5px; white-space: nowrap;
}
.catnav__all:hover, .mega.is-open .catnav__all { background: var(--teal-700); }
.catnav__list { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
/* 列表 overflow:hidden 会切掉焦点框的左边，框画在链接里面 */
.catnav__link:focus-visible { outline-offset: -3px; }
.catnav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink-800); font-size: 14.5px; font-weight: 550; white-space: nowrap;
}
.catnav__link:hover, .catnav__link.is-active { background: var(--teal-50); color: var(--teal-800); }
.catnav__new {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; flex: none; border-radius: var(--radius-pill);
  background: var(--deal-50); color: var(--deal-700); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.catnav__new:hover { background: var(--deal-100); color: var(--deal-700); }
.catnav__new .i { width: 16px; height: 16px; }
.catnav__new--nearby { background: var(--teal-50); color: var(--teal-700); }
.catnav__new--nearby:hover { background: var(--teal-100); color: var(--teal-800); }

.mega { position: static; }
.mega__panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 70;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 24px;
  max-width: var(--container); margin: 0 auto; padding: 24px var(--gutter) 28px;
  background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.mega.is-open .mega__panel { opacity: 1; visibility: visible; transform: none; }
.mega__head { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink-950); font-weight: 700; font-size: 15px; }
.mega__head:hover { color: var(--teal-700); }
.mega__emoji { font-size: 18px; }
.mega__col ul { display: grid; gap: 2px; padding: 2px 0 10px 26px; }
.mega__col li a { display: block; padding: 3px 0; color: var(--ink-600); font-size: 13.5px; }
.mega__col li a:hover { color: var(--teal-700); }

.drawer { position: fixed; inset: 0; z-index: 400; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(4, 35, 44, .5); animation: fade .2s; }
.drawer__panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--shadow-lg); animation: slide-in .25s var(--ease);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 17px; font-weight: 750; }
.drawer__city {
  display: flex; align-items: center; gap: 8px; margin: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface-2); text-align: left; font-size: 14.5px;
}
.drawer__city .i:first-child { color: var(--teal-600); }
.drawer__city span { flex: 1; }
.drawer__list { flex: 1; overflow-y: auto; padding: 0 8px; }
.drawer__list a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: var(--radius-sm); color: var(--ink-900); font-size: 15.5px; }
.drawer__list a:hover { background: var(--teal-50); }
.drawer__list .i { margin-left: auto; color: var(--ink-400); }
.drawer__emoji { width: 28px; font-size: 20px; text-align: center; }
.drawer__foot { padding: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer__langs { display: flex; justify-content: center; gap: 18px; font-size: 14px; }
.drawer__langs a { color: var(--ink-600); }
.drawer__langs a[aria-current="true"] { color: var(--teal-700); font-weight: 700; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }

/* ── 7. 页脚、下载横幅、商店按钮、手机样机 ─────────────────────────────── */
.app-band { background: radial-gradient(1200px 400px at 85% 0%, #0e6a79 0%, transparent 60%), var(--teal-900); color: #fff; overflow: hidden; }
.app-band__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto auto; grid-template-areas: "copy steps qr phone"; align-items: center; gap: 32px; padding-top: 44px; padding-bottom: 0; max-width: calc(1200px + 2 * var(--gutter)); }
.app-band__copy { grid-area: copy; }
.app-band__steps { grid-area: steps; padding-bottom: 44px; }
.app-band__qr { grid-area: qr; }
.app-band__phone { grid-area: phone; }
.app-band__steps-title { color: #fff; font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.install-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.install-steps__card { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.92); font-size: 14.5px; line-height: 1.45; }
.lang-my .install-steps__card { line-height: 1.75; }
.install-steps__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--saffron-500); color: var(--ink-950); font-weight: 800; font-size: 14px; line-height: 1; }
.install-steps__text { min-width: 0; overflow-wrap: anywhere; }
.app-hero__steps { width: 100%; max-width: 540px; }
.app-hero__steps .app-band__steps { padding-bottom: 0; }
.app-prompt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.app-prompt .i { width: 16px; height: 16px; flex: none; }
.app-prompt__link { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: normal; }

/* W49：手机底部「下载 App」小条（lib/app-nudge.js 让它出现）。只在手机宽度；叠在底部导航栏上面，
   同意条（z 500）和提示条（z 900）在它上面，互不遮挡。 */
.app-nudge { display: none; }
@media (max-width: 600px) {
  .app-nudge:not([hidden]) {
    position: fixed; z-index: 340; left: 8px; right: 8px;
    bottom: calc(var(--tabbar-h, 60px) + env(safe-area-inset-bottom) + 8px);
    display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px;
    background: var(--teal-900); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    animation: app-nudge-in .6s cubic-bezier(.2, .9, .3, 1.25) both;
  }
  .app-nudge__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; }
  .app-nudge__text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-height: 2.7em; }
  .lang-my .app-nudge__text { max-height: 3.4em; }
  .lang-my .app-nudge__text { line-height: 1.7; font-size: 13px; }
  .app-nudge__btn {
    flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px;
    border-radius: var(--radius-pill); background: var(--saffron-500); color: var(--ink-950); font-weight: 800; font-size: 14px; white-space: nowrap;
    animation: app-nudge-pulse 1.1s ease-out .8s 1 both;
  }
  .app-nudge__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: rgba(255,255,255,.75); font-size: 24px; line-height: 1; }
  .app-nudge__close:hover { color: #fff; background: rgba(255,255,255,.1); }
  .has-app-nudge.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 88px); }
  .has-app-nudge .toast-region { bottom: calc(var(--tabbar-h) + 100px + env(safe-area-inset-bottom)); }
  .app-nudge.is-still, .app-nudge.is-still .app-nudge__btn { animation: none; }
}
@keyframes app-nudge-in { from { opacity: 0; transform: translateY(70px); } 60% { opacity: 1; transform: translateY(-6px); } to { transform: none; } }
@keyframes app-nudge-pulse { 0% { box-shadow: 0 0 0 0 rgba(244,165,28,.7); } 100% { box-shadow: 0 0 0 14px rgba(244,165,28,0); } }
@media (prefers-reduced-motion: reduce) { .app-nudge, .app-nudge__btn { animation: none !important; } }
.app-band__copy { padding-bottom: 44px; }
.app-band__title { color: #fff; font-size: 28px; font-weight: 800; margin: 10px 0 16px; max-width: 560px; }
.app-band__points { display: grid; gap: 8px; margin-bottom: 22px; }
.app-band__points li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.86); }
.app-band__points .i { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: rgba(244,165,28,.2); color: var(--saffron-400); stroke-width: 2.6; }
.app-band__qr { display: grid; justify-items: center; gap: 8px; padding: 14px; margin-bottom: 44px; background: #fff; color: var(--ink-600); border-radius: var(--radius-lg); font-size: 12.5px; text-align: center; box-shadow: var(--shadow-lg); }
.app-band__qr img { width: 148px; height: 148px; }
.app-band__qr p { max-width: 148px; }
.app-band__phone { align-self: end; }
.app-band__phone .phone { width: 220px; transform: translateY(40px) rotate(-4deg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--teal-50); color: var(--teal-700); font-size: 13px; font-weight: 700;
}
.eyebrow .i { width: 15px; height: 15px; }
.eyebrow--light { background: rgba(255,255,255,.12); color: var(--saffron-400); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; min-width: 164px; padding: 8px 16px 8px 12px;
  border-radius: var(--radius); background: var(--ink-950); color: #fff; border: 1px solid rgba(255,255,255,.18);
}
.store-btn:hover { background: #000; color: #fff; }
.store-btn__icon { width: 26px; height: 26px; color: var(--saffron-400); }
.store-btn__text { display: grid; line-height: 1.15; }
.store-btn__small { font-size: 11px; color: rgba(255,255,255,.72); }
.store-btn__big { font-size: 17px; font-weight: 700; }
.store-btn.is-soon { cursor: default; opacity: .78; }
.store-buttons--dark .store-btn { background: rgba(255,255,255,.06); }
.lang-my .store-btn__text { line-height: 1.4; }

.phone {
  position: relative; padding: 10px; border-radius: 38px; background: #111; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b2b2b;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 12px; background: #111; z-index: 2; }
.phone img { width: 100%; border-radius: 29px; aspect-ratio: 270 / 585; object-fit: cover; background: var(--teal-900); }

.site-footer { background: var(--teal-950); color: rgba(255,255,255,.7); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.site-footer__about { margin: 14px 0; max-width: 340px; }
.site-footer__note { display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,.86); font-size: 13.5px; max-width: 340px; }
.site-footer__note .i { width: 17px; height: 17px; color: var(--saffron-400); margin-top: 2px; }
.site-footer__head { margin-bottom: 14px; color: #fff; font-size: 14.5px; font-weight: 700; }
.site-footer__col ul { display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer__qr { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.site-footer__qr img { width: 88px; height: 88px; padding: 6px; background: #fff; border-radius: var(--radius-sm); }
.site-footer__qr p { font-size: 13px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; font-size: 13px; }
.site-footer__langs { display: flex; gap: 16px; }
.site-footer__langs a[aria-current="true"] { color: var(--saffron-400); font-weight: 700; }

/* ── 8. 弹窗（选城市） ───────────────────────────────────────────────────── */
.modal {
  width: min(720px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--surface); color: var(--ink-900); box-shadow: var(--shadow-lg);
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .2s var(--ease); }
.modal::backdrop { background: rgba(4, 35, 44, .55); backdrop-filter: blur(2px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.modal__title { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.modal__title .i { color: var(--teal-600); }
.modal__body { padding: 16px 22px 22px; overflow-y: auto; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal--confirm { width: min(440px, calc(100vw - 32px)); }
.confirm { display: grid; gap: 10px; padding: 26px 24px 20px; }
.confirm__title { font-size: 19px; font-weight: 800; color: var(--ink-950); }
.confirm__body { color: var(--ink-600); }
.confirm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.city-modal__search { position: relative; display: block; margin-bottom: 14px; }
.city-modal__search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-400); }
.city-modal__search input { width: 100%; min-height: 44px; padding: 0 12px 0 42px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.city-modal__search input:focus { outline: none; border-color: var(--teal-500); box-shadow: var(--ring); }
.city-group { margin-top: 14px; }
.city-group__title { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.city-group__list { display: flex; flex-wrap: wrap; gap: 8px; }
.city-chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink-800); font-size: 14px;
}
.city-chip:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-50); }
.city-chip.is-active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; font-weight: 700; }
.city-chip--all { font-weight: 700; }

/* ── 9. 分类色 —— 没有照片的商品、分类格子、专区都用它 ─────────────────── */
.tint-food_grocery { --tint-bg: #e8f5ea; --tint-fg: #2b7a4b; }
.tint-food_drinks { --tint-bg: #fff0e0; --tint-fg: #b95f16; }
.tint-electronics { --tint-bg: #e7effb; --tint-fg: #2c5c9a; }
.tint-appliances { --tint-bg: #eceff8; --tint-fg: #4a5784; }
.tint-home_living { --tint-bg: #f5ede3; --tint-fg: #86582a; }
.tint-fashion { --tint-bg: #f6e9f2; --tint-fg: #963d73; }
.tint-beauty_health { --tint-bg: #fdecef; --tint-fg: #ad4157; }
.tint-baby_kids { --tint-bg: #fff4d6; --tint-fg: #9e6d06; }
.tint-vehicles { --tint-bg: #e6f3f5; --tint-fg: #1b6c79; }
.tint-services { --tint-bg: #ecf2e5; --tint-fg: #50703a; }
.tint-books_stationery { --tint-bg: #efeaf8; --tint-fg: #5a478f; }
.tint-sports_outdoor { --tint-bg: #e5f4ee; --tint-fg: #21735a; }
.tint-pets_plants { --tint-bg: #ebf5e3; --tint-fg: #487a28; }
.tint-agri_industry { --tint-bg: #f4efdf; --tint-fg: #756526; }
.tint-other { --tint-bg: #f0ece7; --tint-fg: #685f56; }

/* ── 10. 首页 ────────────────────────────────────────────────────────────── */
.home { padding-top: 18px; }
.hero-row { display: grid; grid-template-columns: 236px minmax(0, 1fr) 256px; gap: 16px; }

.cat-rail { position: relative; z-index: 20; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 8px 0; }
.cat-rail__list { display: grid; grid-template-columns: minmax(0, 1fr); }
.cat-rail__item { position: static; }
.cat-rail__link {
  display: flex; align-items: center; gap: 10px; padding: 5.5px 14px 5.5px 16px; color: var(--ink-800);
  font-size: 14px; line-height: 1.35;
}
.lang-my .cat-rail__link { padding-top: 3px; padding-bottom: 3px; font-size: 13.5px; line-height: 1.6; }
.cat-rail__emoji { width: 22px; font-size: 16px; text-align: center; }
.cat-rail__name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lang-my .cat-rail__name { white-space: normal; text-overflow: clip; }
.cat-rail__link .i { flex: none; color: var(--ink-300); }
.cat-rail__item:hover .cat-rail__link, .cat-rail__link:focus-visible { background: var(--teal-50); color: var(--teal-800); }
.cat-rail__item:hover .cat-rail__link .i { color: var(--teal-600); }
.cat-rail__flyout {
  position: absolute; left: 100%; top: 0; bottom: 0; width: min(560px, 60vw); margin-left: 8px; padding: 18px 22px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .14s, transform .14s, visibility .14s; overflow-y: auto;
}
.cat-rail__item:hover .cat-rail__flyout, .cat-rail__item:focus-within .cat-rail__flyout { opacity: 1; visibility: visible; transform: none; }
.cat-rail__flyout-head { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 16px; font-weight: 750; color: var(--ink-950); }
.cat-rail__flyout ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; }
.cat-rail__flyout li a { display: block; padding: 6px 8px; border-radius: var(--radius-xs); color: var(--ink-600); font-size: 14px; }
.cat-rail__flyout li a:hover { background: var(--teal-50); color: var(--teal-800); }

.hero {
  position: relative; min-height: 420px; overflow: hidden; border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(600px 300px at 90% 110%, rgba(244,165,28,.35), transparent 60%),
    radial-gradient(500px 280px at 0% 0%, rgba(17,128,143,.6), transparent 60%),
    linear-gradient(135deg, var(--teal-800), var(--teal-950));
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 18px 18px;
}
.hero__awning, .shop-hero__awning, .app-hero__awning, .auth__awning, .stall__awning {
  background: repeating-linear-gradient(90deg, var(--saffron-500) 0 30px, #fff4d8 30px 60px);
  -webkit-mask: radial-gradient(circle at 15px 0, #000 14.5px, transparent 15px) 0 100% / 30px 15px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 14px) no-repeat;
  mask: radial-gradient(circle at 15px 0, #000 14.5px, transparent 15px) 0 100% / 30px 15px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 14px) no-repeat;
}
.hero__awning { position: absolute; top: 0; left: 0; right: 0; height: 34px; z-index: 2; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.hero__slides { position: relative; height: 100%; }
.hero__slide { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 420px; padding: 56px 40px 52px 44px; animation: fade .4s; }
.hero__copy { display: grid; gap: 14px; justify-items: start; }
.phrase { display: inline-block; }
.hero__title { color: #fff; font-size: 36px; font-weight: 850; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.lang-my .hero__title { font-size: 27px; line-height: 1.55; }
.hero__lede { color: rgba(255,255,255,.84); font-size: 16px; max-width: 520px; }
.lang-my .hero__lede { font-size: 15px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero__art { position: relative; height: 300px; }
.bubble {
  position: absolute; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 38px;
  animation: float 6s ease-in-out infinite;
}
.bubble--0 { left: 34%; top: 2%; width: 104px; height: 104px; font-size: 52px; }
.bubble--1 { left: 4%; top: 30%; animation-delay: -1s; }
.bubble--2 { left: 66%; top: 26%; width: 90px; height: 90px; font-size: 44px; animation-delay: -2s; }
.bubble--3 { left: 28%; top: 50%; width: 118px; height: 118px; font-size: 60px; background: var(--saffron-50); animation-delay: -3s; }
.bubble--4 { left: 72%; top: 64%; width: 70px; height: 70px; font-size: 34px; animation-delay: -1.5s; }
.bubble--5 { left: 10%; top: 72%; width: 64px; height: 64px; font-size: 30px; animation-delay: -4s; }
.bubble--6 { left: 58%; top: 0%; width: 56px; height: 56px; font-size: 26px; animation-delay: -2.5s; opacity: .9; }
.bubble--7 { left: 88%; top: 8%; width: 50px; height: 50px; font-size: 24px; animation-delay: -3.5s; opacity: .85; }
.bubble--8 { left: 50%; top: 84%; width: 54px; height: 54px; font-size: 26px; animation-delay: -.5s; opacity: .9; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__art--receipt, .hero__art--qr { display: grid; place-items: center; }
.mini-receipt {
  width: 260px; padding: 20px 20px 24px; background: #fffdf8; color: var(--ink-800); border-radius: 14px 14px 0 0;
  box-shadow: 0 20px 40px rgba(0,0,0,.3); transform: rotate(3deg); font-size: 14px;
  -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 20px 10px repeat-x;
  mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 20px 10px repeat-x;
}
.mini-receipt__shop { padding-bottom: 12px; margin-bottom: 10px; border-bottom: 2px dashed var(--line-strong); font-weight: 800; font-size: 16px; text-align: center; }
.mini-receipt__line, .mini-receipt__total { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.mini-receipt__total { margin-top: 8px; padding-top: 10px; border-top: 2px dashed var(--line-strong); font-weight: 800; color: var(--deal-600); font-size: 16px; }
.hero__art--qr .phone--hero { position: relative; width: 170px; transform: rotate(-4deg); box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.qr-card { display: grid; justify-items: center; gap: 10px; padding: 18px; background: #fff; color: var(--ink-600); border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0,0,0,.3); font-size: 13px; transform: rotate(-2deg); }
.hero__dots { position: absolute; left: 44px; bottom: 20px; z-index: 3; display: flex; gap: 8px; }
.hero__dot { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.4); transition: width .25s var(--ease), background .2s; }
/* 看起来 10px，手指按得到 44px */
.hero__dot::before { content: ""; position: absolute; inset: -17px -4px; }
.hero__dot.is-active { width: 30px; background: var(--saffron-500); }

.welcome { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.welcome__head { display: flex; align-items: center; gap: 12px; }
.welcome__avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); }
.welcome__avatar .i { width: 26px; height: 26px; }
.welcome__hello { font-weight: 750; font-size: 15.5px; color: var(--ink-950); overflow-wrap: anywhere; }
/* anywhere：没有昵称时显示邮箱前缀，一长串不断行的字母把卡片撑出屏幕（桌面实测横向多出 77px） */
.welcome__head > :not(.welcome__avatar) { min-width: 0; }
.welcome__sub { font-size: 13px; color: var(--ink-500); }
.welcome__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.welcome__actions .btn { padding: 0 8px; min-height: 40px; font-size: 14px; }
.welcome__stats { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.welcome__stats a, .welcome__stats button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border: 0; background: none;
  border-radius: var(--radius-sm); color: var(--ink-800); font-size: 14px; text-align: left;
}
.welcome__stats a:hover, .welcome__stats button:hover { background: var(--surface-2); color: var(--teal-700); }
.welcome__stats .i { width: 18px; height: 18px; color: var(--teal-600); }
.welcome__how { padding-top: 12px; border-top: 1px solid var(--line); }
.welcome__how-title { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-500); }
.welcome__how ol { display: grid; gap: 8px; }
.welcome__how li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-800); line-height: 1.35; }
.lang-my .welcome__how li { font-size: 13px; line-height: 1.6; }
.welcome__how li span { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--saffron-100); color: var(--ink-950); font-size: 12px; font-weight: 800; }
.welcome__app {
  display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 10px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--saffron-50), #fff); border: 1px solid var(--saffron-100); color: var(--ink-800);
}
.welcome__app:hover { border-color: var(--saffron-400); color: var(--ink-950); }
.welcome__app img { width: 58px; height: 58px; flex: none; padding: 3px; background: #fff; border-radius: 8px; }
.welcome__app-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--saffron-100); color: var(--saffron-700); }
.welcome__app-icon .i { width: 24px; height: 24px; }
.welcome__app > span { display: grid; font-size: 12.5px; color: var(--ink-500); line-height: 1.35; }
.welcome__app strong { color: var(--ink-950); font-size: 14px; }

.value-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 18px 0 8px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden;
}
.value-strip li { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.value-strip li + li { border-left: 1px solid var(--line); }
.value-strip__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); }
.value-strip li > span:last-child { display: grid; line-height: 1.35; }
.value-strip strong { color: var(--ink-950); font-size: 14.5px; }
.value-strip li > span:last-child > span { color: var(--ink-500); font-size: 13px; }
.lang-my .value-strip li > span:last-child { line-height: 1.6; }

.section { margin-top: 36px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__title { font-size: 23px; font-weight: 800; }
.lang-my .section__title { font-size: 20px; }
.section__sub { margin-top: 4px; color: var(--ink-500); font-size: 14.5px; }
.section__more { display: inline-flex; align-items: center; gap: 4px; flex: none; font-weight: 650; font-size: 14.5px; }
.section__more .i { width: 17px; height: 17px; transition: transform .15s; }
.section__more:hover .i { transform: translateX(3px); }

.cat-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.cat-tiles > li { display: flex; min-width: 0; }
/* min-width: 0 —— 默认的 auto 让一个断不开的缅文长词把格子撑出轨道、压到隔壁格子上 */
.cat-tiles > li > .cat-tile { flex: 1; min-width: 0; }
.cat-tile {
  display: grid; justify-items: center; gap: 8px; padding: 18px 8px 14px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-800); text-align: center;
  transition: transform .15s var(--ease), box-shadow .15s, border-color .15s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--tint-fg); }
.cat-tile__emoji { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--tint-bg); font-size: 32px; }
.cat-tile__name { font-size: 13.5px; font-weight: 600; line-height: 1.35; max-width: 100%; overflow-wrap: anywhere; }
.lang-my .cat-tile__name { font-size: 13px; line-height: 1.6; }
/* e_label()：每个缅文音节一个不折行的小段，只能在段与段之间（<wbr>）断行 */
.syl { white-space: nowrap; }
.cat-tile--all { --tint-bg: var(--teal-50); --tint-fg: var(--teal-700); }
.cat-tile--all .cat-tile__emoji .i { width: 28px; height: 28px; color: var(--teal-600); }

.spotlight { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--tint-bg), var(--surface) 70%); }
.spotlight__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 8px 12px 10px; }
.spotlight__emoji { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface); font-size: 30px; box-shadow: var(--shadow-xs); }
.spotlight__intro .section__title { color: var(--tint-fg); }
.spotlight__subs { display: flex; flex-wrap: wrap; gap: 6px; }
.spotlight__subs a { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(255,255,255,.75); color: var(--ink-700); font-size: 13px; }
.spotlight__subs a:hover { background: #fff; color: var(--tint-fg); }
.spotlight__intro .btn { margin-top: auto; }

.opening {
  display: grid; grid-template-columns: 380px minmax(0, 1fr); align-items: center; gap: 40px; margin-top: 36px; padding: 40px 48px;
  background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.opening__copy { display: grid; justify-items: start; gap: 14px; }
.opening__title { font-size: 28px; font-weight: 850; }
.lang-my .opening__title { font-size: 22px; }
.opening__body { color: var(--ink-600); font-size: 16px; max-width: 560px; }
.opening__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.stall { position: relative; margin: 0 auto; width: 300px; padding-top: 0; }
.stall__awning { height: 56px; border-radius: 12px 12px 0 0; filter: drop-shadow(0 6px 6px rgba(0,0,0,.15)); }
.stall__counter {
  display: flex; justify-content: space-around; align-items: flex-end; height: 130px; margin: -6px 18px 0; padding: 0 16px 18px;
  background: linear-gradient(180deg, #fbe7c4, #f0cf98); border-radius: 0 0 14px 14px; box-shadow: inset 0 -14px 0 #d9a85e, var(--shadow);
  font-size: 44px;
}
.stall__counter span { animation: float 5s ease-in-out infinite; }
.stall__counter span:nth-child(2) { animation-delay: -1.2s; }
.stall__counter span:nth-child(3) { animation-delay: -2.4s; }
.stall__counter span:nth-child(4) { animation-delay: -3.6s; }
.stall--small { width: 180px; }
.stall--small .stall__awning { height: 36px; }
.stall--small .stall__counter { height: 80px; font-size: 34px; }

.seller-cta {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 32px; margin-top: 40px; padding: 32px 36px;
  border-radius: var(--radius-xl); background: linear-gradient(120deg, var(--saffron-50), #fff 55%, var(--teal-50)); border: 1px solid var(--saffron-100);
}
.seller-cta__copy { display: grid; gap: 10px; justify-items: start; }
.seller-cta__copy .eyebrow { background: var(--saffron-100); color: var(--saffron-700); }
.seller-cta__title { font-size: 24px; font-weight: 850; }
.lang-my .seller-cta__title { font-size: 20px; }
.seller-cta__body { color: var(--ink-600); }
.seller-cta__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.seller-cta__points li { display: flex; gap: 10px; align-items: flex-start; }
.seller-cta__points .i { width: 38px; height: 38px; flex: none; padding: 9px; border-radius: 12px; background: #fff; color: var(--saffron-600); box-shadow: var(--shadow-xs); }
.seller-cta__points span { display: grid; gap: 2px; font-size: 13.5px; color: var(--ink-600); line-height: 1.45; }
.seller-cta__points strong { color: var(--ink-950); font-size: 14.5px; }

/* ── 11. 商品卡片与网格 ─────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.product-grid--listing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid--row6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.pcard {
  position: relative; display: flex; flex-direction: column; min-width: 0; container-type: inline-size;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.pcard__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface-3); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__media--empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #fff 0, var(--tint-bg) 62%); }
.pcard__emoji { font-size: clamp(40px, 34cqw, 72px); transition: transform .3s var(--ease); }
.pcard:hover .pcard__emoji { transform: scale(1.08) rotate(-4deg); }
.pcard__badge {
  position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: var(--radius-xs);
  background: rgba(23, 21, 18, .72); color: #fff; font-size: 11.5px; font-weight: 650; backdrop-filter: blur(4px);
}
.pcard__badge--new { background: var(--green-600); }
.pcard__soldout { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.62); color: var(--ink-800); font-weight: 800; font-size: 15px; letter-spacing: .05em; }
.pcard__body { display: flex; flex-direction: column; gap: 5px; flex: 1; padding: 10px 12px 11px; }
.pcard__title { font-size: 14.5px; font-weight: 550; line-height: 1.42; color: var(--ink-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.42em * 2); }
.lang-my .pcard__title { line-height: 1.7; min-height: calc(1.7em * 2); font-size: 14px; }
.pcard__title a { color: inherit; }
.pcard__title a:hover { color: var(--teal-700); }
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.price { display: inline-flex; align-items: baseline; color: var(--deal-600); font-family: var(--font-num); }
.price__amount { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.price__currency { margin-left: 2px; font-size: 13px; font-weight: 800; }
.pcard__unit { color: var(--ink-500); font-size: 13px; }
.pcard__fulfil { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 7px; border-top: 1px dashed var(--line); color: var(--ink-500); font-size: 12.5px; }
.pcard__shop { display: inline-flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; }
.pcard__shop-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pcard__shop .i--verified { width: 14px; height: 14px; flex: none; }
.pcard__city { display: inline-flex; align-items: center; gap: 2px; flex: none; white-space: nowrap; }
.pcard__city .i { width: 13px; height: 13px; }
.pcard__add {
  position: absolute; z-index: 2; right: 10px; top: calc(100cqw - 48px);
  display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--saffron-500); color: var(--ink-950); box-shadow: 0 4px 12px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .18s, transform .18s var(--ease), background .15s;
}
.pcard__add .i { width: 20px; height: 20px; stroke-width: 2.6; }
.pcard:hover .pcard__add, .pcard__add:focus-visible { opacity: 1; transform: none; }
.pcard__add:hover { background: var(--saffron-400); }
.pcard__add.is-added { background: var(--green-600); color: #fff; opacity: 1; transform: none; }
@media (hover: none) { .pcard__add { opacity: 1; transform: none; } }
/* 手指点的屏幕上，筛选芯片、「更换」、「查看更多」这些小链接至少 36px 高（原来 26–28px） */
@media (pointer: coarse) {
  .chip--link, .chip--removable, .link-btn, .section__more { min-height: 36px; }
}

/* ── 12. 面包屑、列表页、筛选、排序、翻页、空状态 ───────────────────────── */
.crumbs { padding: 16px 0 6px; font-size: 13.5px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-500); }
.crumbs li + li::before { content: "/"; color: var(--ink-300); margin: 0 4px; }
.crumbs a { display: inline-flex; align-items: center; color: var(--ink-600); }
.crumbs a:hover { color: var(--teal-700); }
.crumbs .i { width: 16px; height: 16px; }
.crumbs [aria-current="page"] { color: var(--ink-900); font-weight: 600; max-width: 360px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.listing__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 14px; }
.listing__title { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 850; }
.lang-my .listing__title { font-size: 23px; }
.listing__emoji { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-xs); font-size: 26px; }
.listing__meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--ink-500); font-size: 14px; }
.listing__meta .i { width: 16px; height: 16px; }
.listing__filter-toggle { display: none; }
.subnav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav__chip { flex: none; padding: 7px 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-800); font-size: 14px; white-space: nowrap; }
.subnav__chip:hover { border-color: var(--teal-500); color: var(--teal-700); }
.subnav__chip.is-active { background: var(--ink-950); border-color: var(--ink-950); color: #fff; font-weight: 700; }

.listing__layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { position: sticky; top: 16px; }
.filters__form { display: grid; gap: 4px; padding: 16px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.filters__title { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.filters__title .i { color: var(--teal-600); }
.filters__close { display: none; }
.filters__group { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.filters__group legend { margin-bottom: 6px; font-size: 13.5px; font-weight: 750; color: var(--ink-900); }
.filters__range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.filters__range .input { min-height: 38px; padding: 6px 8px; font-size: 14px; }
.filters__presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.filters__actions { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.filters-scrim { display: none; }

.sortbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 8px 8px 8px 16px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.sortbar__count { color: var(--ink-500); font-size: 13.5px; }
/* A title squeezed by the sort options wrapped to three lines in Burmese; below ~11em the options move to the next row. */
.sortbar__title { flex: 1 1 auto; min-width: min(100%, 11em); font-size: 17px; }
.sortbar__options { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sortbar__opt { padding: 6px 14px; border-radius: var(--radius-sm); color: var(--ink-600); font-size: 14px; font-weight: 550; white-space: nowrap; }
.sortbar__opt:hover { background: var(--surface-3); color: var(--ink-900); }
.sortbar__opt.is-active { background: var(--teal-600); color: #fff; font-weight: 700; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.active-filters .i { width: 14px; height: 14px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 28px; }
.pager > * { max-width: 100%; }
.pager__current { padding: 0 8px; font-weight: 700; color: var(--ink-700); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty__icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 6px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); }
.empty__icon .i { width: 36px; height: 36px; stroke-width: 1.6; }
.empty__title { font-size: 20px; }
.empty__body { max-width: 440px; color: var(--ink-500); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* ── 13. 商品详情页 ─────────────────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) 270px; gap: 24px; align-items: start; margin-top: 8px; }
.pdp__gallery { position: sticky; top: 16px; display: grid; gap: 10px; }
.gallery__main { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); }
.gallery__main--empty { display: grid; place-items: center; align-content: center; gap: 10px; background: radial-gradient(circle at 50% 45%, #fff 0, var(--tint-bg) 65%); }
.gallery__emoji { font-size: 140px; line-height: 1; }
.gallery__empty-text { color: var(--ink-500); font-size: 14px; }
.gallery__nav {
  position: absolute; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink-900); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .15s;
}
.gallery__main:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 2px 10px; border-radius: var(--radius-pill); background: rgba(23,21,18,.65); color: #fff; font-size: 12.5px; }
.gallery__soldout { position: absolute; left: 14px; top: 14px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--ink-950); color: #fff; font-weight: 700; font-size: 13px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.gallery__thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--saffron-500); }
.gallery__thumb:hover { border-color: var(--teal-300); }

.pdp__info { display: grid; gap: 14px; min-width: 0; }
.pdp__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp__title { font-size: 26px; font-weight: 800; line-height: 1.3; word-break: break-word; }
.lang-my .pdp__title { font-size: 22px; line-height: 1.6; }
.pdp__stats { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-500); font-size: 13.5px; }
.pdp__stats span { display: inline-flex; align-items: center; gap: 5px; }
.pdp__stats .i { width: 15px; height: 15px; }
.pricebox { padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--deal-50), #fff7f3); border: 1px solid var(--deal-100); }
.pricebox__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price--xl .price__amount { font-size: 38px; font-weight: 850; letter-spacing: -.02em; }
.price--xl .price__currency { font-size: 20px; }
.pricebox__unit { color: var(--ink-600); font-size: 16px; }
.pricebox__note { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink-500); font-size: 13px; }
.pricebox__note .i { width: 15px; height: 15px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lang-my .facts__row { grid-template-columns: 136px minmax(0, 1fr); }
.facts__row dt { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-500); }
.facts__row dt .i { width: 17px; height: 17px; margin-top: 2px; }
.facts__row dd { display: grid; gap: 3px; color: var(--ink-900); }
.facts__row dd p { display: flex; align-items: center; gap: 5px; }
.facts__row dd .i { width: 16px; height: 16px; }
.facts__strong { font-weight: 700; }
.facts__muted { color: var(--ink-500); font-size: 13px; }
/* 072：「此店最近更改了收款账户」——商品页付款那一格、店铺头、结算页、订单付款区。 */
.facts__warn, .shop-hero__warn { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 600; }
.facts__warn { color: var(--amber-700); }
.facts__warn .i, .shop-hero__warn .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.shop-hero__warn { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--amber-50); color: var(--amber-700); }
.pay-changed { margin: 8px 0; }
.confirm__check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 14px; font-weight: 600; cursor: pointer; }
.confirm__check input { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.buybox { display: grid; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.qty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty__label { color: var(--ink-600); font-size: 14px; font-weight: 600; }
.qty__control { display: inline-flex; align-items: stretch; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty__btn { display: grid; place-items: center; width: 40px; border: 0; background: var(--surface-2); color: var(--ink-800); }
.qty__btn:hover { background: var(--teal-50); color: var(--teal-700); }
.qty__btn .i { width: 16px; height: 16px; stroke-width: 2.4; }
.qty__input { width: 56px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; background: var(--teal-50); }
.qty__stock { color: var(--ink-500); font-size: 13.5px; }
.buybox__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* "ဈေးခြင်းထဲ ထည့်ရန်" does not fit half of the buy box: one button per row. */
.lang-my .buybox__actions { grid-template-columns: 1fr; }
.safety { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--teal-50); color: var(--teal-900); font-size: 13.5px; }
.safety > .i { width: 26px; height: 26px; flex: none; color: var(--teal-600); }
.safety__title { font-weight: 750; margin-bottom: 2px; }
.pdp__tools { display: flex; gap: 20px; }

.seller-card { position: sticky; top: 16px; display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.seller-card__label { color: var(--ink-500); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.seller-card__head { display: flex; align-items: center; gap: 12px; color: var(--ink-950); }
.seller-card__head:hover { color: var(--teal-700); }
.seller-card__name { display: inline-flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 750; line-height: 1.3; word-break: break-word; }
.seller-card__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.seller-card__stats li { display: grid; gap: 1px; }
.seller-card__stats li + li { border-left: 1px solid var(--line); }
.seller-card__stats strong { font-size: 15px; color: var(--ink-950); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; }
.seller-card__stats span { color: var(--ink-500); font-size: 12px; }
.seller-card__since { display: flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: 13px; }
.seller-card__since .i { width: 15px; height: 15px; }
.seller-card__contact { display: grid; gap: 6px; }
.order-print__links { display: flex; flex-wrap: wrap; gap: 8px; }
.seller-card__contact a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-900); font-weight: 600; }
.seller-card__contact a:hover { background: var(--teal-50); color: var(--teal-800); }
/* 071：微信是「点一下复制」的按钮；认不出形状的账号只显示文字，不做成链接（lib/contact.js）。 */
.seller-card__contact .contact-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-900); font: inherit; font-weight: 600; text-align: start; overflow-wrap: anywhere; }
.seller-card__contact button.contact-item { cursor: pointer; }
.seller-card__contact button.contact-item:hover { background: var(--teal-50); color: var(--teal-800); }
.seller-card__contact a { overflow-wrap: anywhere; }
.seller-card__contact p { color: var(--ink-500); font-size: 13.5px; }
.seller-card__contact--on-dark { position: absolute; right: var(--gutter); top: calc(100% + 8px); z-index: 5; width: 280px; padding: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.seller-card__app { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--saffron-50); color: var(--ink-800); font-size: 13.5px; }
.seller-card__app:hover { background: var(--saffron-100); color: var(--ink-950); }
.seller-card__app span { flex: 1; }
.seller-card__app .i:first-child { color: var(--saffron-600); }

.avatar { flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.avatar--lg { width: 56px; height: 56px; }
.avatar--xl { width: 88px; height: 88px; }
.avatar--letter { display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-500), var(--teal-800)); color: #fff; font-weight: 800; }
.avatar--lg.avatar--letter { font-size: 22px; }
.avatar--xl.avatar--letter { font-size: 36px; }

.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-600); }
.stars--none { color: var(--ink-400); font-size: 13px; }
.stars__track { position: relative; display: inline-flex; color: var(--line-strong); }
.stars__track .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars__fill { position: absolute; left: 0; top: 0; display: inline-flex; overflow: hidden; color: var(--saffron-500); white-space: nowrap; width: 0; }
.stars__fill[data-rating="10"] { width: 10%; } .stars__fill[data-rating="20"] { width: 20%; } .stars__fill[data-rating="30"] { width: 30%; }
.stars__fill[data-rating="40"] { width: 40%; } .stars__fill[data-rating="50"] { width: 50%; } .stars__fill[data-rating="60"] { width: 60%; }
.stars__fill[data-rating="70"] { width: 70%; } .stars__fill[data-rating="80"] { width: 80%; } .stars__fill[data-rating="90"] { width: 90%; }
.stars__fill[data-rating="100"] { width: 100%; }
.stars__fill .i { flex: none; }
.stars__value { font-weight: 800; color: var(--ink-950); }
.stars__count { color: var(--ink-500); }

.pdp-below { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; align-items: start; }
.panel { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel + .panel { margin-top: 0; }
.panel__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; font-weight: 800; }
.panel--tint { background: var(--teal-50); border-color: var(--teal-100); }
.prose { color: var(--ink-800); font-size: 15px; line-height: 1.8; word-break: break-word; }
.lang-my .prose { line-height: 2; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.spec div { display: flex; gap: 10px; }
.spec dt { color: var(--ink-500); min-width: 72px; }
.spec dd { color: var(--ink-900); font-weight: 600; }
.reviews { display: grid; gap: 0; }
.review { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review__text { color: var(--ink-800); }
.review__meta { color: var(--ink-400); font-size: 12.5px; }
.mobile-buybar { display: none; }

/* ── 14. 店铺页 ─────────────────────────────────────────────────────────── */
.shop-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-800), var(--teal-950)); color: #fff; }
/* 「联系卖家」的浮层挂在店铺头下方，往下伸出去：只裁左右，不裁下边（071 起浮层多了登录提示，原来手机上被切掉一半）。不认 clip 的旧浏览器照旧是 hidden。 */
.shop-hero { overflow: clip visible; }
.shop-hero::after { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 18px 18px; }
.shop-hero__awning { position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 1; }
.shop-hero__inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 22px; padding-top: 52px; padding-bottom: 32px; }
.shop-hero__inner .avatar { box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.shop-hero__main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.shop-hero__name { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 30px; font-weight: 850; }
.shop-hero__name .i--verified { width: 24px; height: 24px; fill: rgba(255,255,255,.15); color: var(--saffron-400); }
.shop-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: rgba(255,255,255,.8); font-size: 14px; }
.shop-hero__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.shop-hero__meta .i { width: 16px; height: 16px; }
.shop-hero .stars, .shop-hero .stars__count { color: rgba(255,255,255,.8); }
.shop-hero .stars__value { color: #fff; }
.shop-hero .stars__track { color: rgba(255,255,255,.25); }
.shop-hero__desc { max-width: 720px; color: rgba(255,255,255,.82); }
.shop-hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
/* Burmese breaks only between words: "မျှဝေ / ရန်" split inside a half-width button. Keep a label on one
   line and let the second button move to its own row instead. */
.shop-hero__actions > .btn { flex: 1 1 auto; white-space: nowrap; }
.shop-page { padding-top: 22px; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.shop-side { position: sticky; top: 16px; display: grid; gap: 14px; }
.shop-layout .product-grid--listing { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── 15. 下载 App 页 ────────────────────────────────────────────────────── */
.app-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 80% 100%, rgba(244,165,28,.28), transparent 60%), linear-gradient(135deg, var(--teal-800), var(--teal-950)); }
.app-hero::after { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 18px 18px; }
.app-hero__awning { position: absolute; left: 0; right: 0; top: 0; height: 34px; z-index: 1; }
.app-hero__inner { max-width: calc(1200px + 2 * var(--gutter)); position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 40px; min-height: 560px; }
.app-hero__copy { display: grid; justify-items: start; gap: 18px; }
.app-hero__title { color: #fff; font-size: 46px; font-weight: 850; line-height: 1.12; letter-spacing: -.02em; }
.lang-my .app-hero__title { font-size: 32px; line-height: 1.5; }
.app-hero__lede { color: rgba(255,255,255,.84); font-size: 17px; max-width: 540px; }
.app-hero__fine { display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,.66); font-size: 13.5px; max-width: 520px; }
.app-hero__fine .i { width: 16px; height: 16px; margin-top: 2px; flex: none; }
/* S8：APK 指纹。深色头图上的一块：等宽、整段一点就选中、窄屏任意处折行（64 位没有空格可断）。 */
.apk-print { display: grid; gap: 6px; max-width: 560px; margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.06); color: rgba(255,255,255,.86); font-size: 13.5px; }
.apk-print__label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.apk-print__label .i { width: 16px; height: 16px; flex: none; }
.apk-print__hash { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-all; }
.apk-print__hash code { font: inherit; color: #fff; user-select: all; -webkit-user-select: all; }
.apk-print__algo { user-select: none; -webkit-user-select: none; color: rgba(255,255,255,.66); }
.apk-print__note { margin: 0; color: rgba(255,255,255,.72); }
.store-buttons__verify { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: inherit; opacity: .8; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.store-buttons__verify:hover { opacity: 1; }
.store-buttons__verify .i { width: 15px; height: 15px; flex: none; }
.app-hero__visual { position: relative; height: 480px; }
.app-hero__visual .phone { position: absolute; width: 240px; }
.phone--tilt-left { left: 8%; top: 40px; transform: rotate(-8deg); opacity: .9; }
.phone--front { left: 40%; top: 0; transform: rotate(4deg); }
.app-hero__qr { position: absolute; right: 0; bottom: 20px; z-index: 3; display: grid; justify-items: center; gap: 6px; padding: 12px; background: #fff; color: var(--ink-600); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: 12px; text-align: center; max-width: 144px; }
.app-hero__qr img { width: 120px; height: 120px; }
.app-page { padding-bottom: 20px; }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.how__col { padding: 26px; background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--line); }
.how__col--seller { background: linear-gradient(160deg, var(--saffron-50), #fff 60%); border-color: var(--saffron-100); }
.how__role { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 20px; }
.how__role .i { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); }
.how__col--seller .how__role .i { background: var(--saffron-100); color: var(--saffron-700); }
.steps { display: grid; gap: 16px; counter-reset: none; }
.steps li { display: flex; gap: 14px; }
.steps__n { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--teal-600); color: #fff; font-weight: 800; }
.how__col--seller .steps__n { background: var(--saffron-500); color: var(--ink-950); }
.steps strong { display: block; margin-bottom: 2px; font-size: 16px; color: var(--ink-950); }
.steps p { color: var(--ink-600); font-size: 14.5px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; gap: 8px; padding: 22px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.feature__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); margin-bottom: 4px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--ink-600); font-size: 14.5px; }
.faq__list { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { flex: none; color: var(--ink-400); transition: transform .2s; }
.faq__item[open] summary .i { transform: rotate(180deg); }
.faq__item p { padding: 0 18px 16px; color: var(--ink-600); }

/* ── 16. 错误页 ─────────────────────────────────────────────────────────── */
.error-page { display: grid; justify-items: center; gap: 12px; padding: 64px 0; text-align: center; }
.error-page__art { position: relative; display: grid; justify-items: center; margin-bottom: 12px; }
.error-page__art > span { font-size: 96px; font-weight: 900; line-height: 1; color: var(--teal-100); letter-spacing: -.04em; }
.error-page__title { font-size: 28px; }
.error-page__body { color: var(--ink-500); max-width: 480px; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }

/* ── 17. 购物篮、结算、订单、登录、账号 ─────────────────────────────────── */
.page-head { display: grid; gap: 4px; margin: 8px 0 18px; }
.page-head__title { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 850; }
.page-head__title .i { width: 28px; height: 28px; color: var(--teal-600); }
.page-head__sub { color: var(--ink-500); }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.cart-groups { display: grid; gap: 16px; }
.cart-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cart-group__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cart-group__shop { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; color: var(--ink-950); }
.cart-group__shop .i { color: var(--teal-600); }
.cart-line { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line__img { width: 92px; height: 92px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-3); }
.cart-line__img--empty { display: grid; place-items: center; font-size: 38px; }
.cart-line__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-900); font-weight: 600; }
.cart-line__title:hover { color: var(--teal-700); }
.cart-line__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.cart-line__warn { color: var(--deal-700); font-size: 13px; font-weight: 600; }
.cart-line__right { display: grid; justify-items: end; gap: 10px; }
.cart-line__total { font-weight: 800; color: var(--ink-950); font-size: 16px; white-space: nowrap; }
.cart-line.is-unavailable { opacity: .6; }
.cart-group__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
/* wrap：手机上小计和按钮放不下一行时小计往上折；原来不折，小计被挤到卡片左边外面、被裁掉 */
.cart-group__subtotal { color: var(--ink-600); min-width: 0; text-align: end; }
.cart-group__subtotal strong { color: var(--deal-600); font-size: 18px; margin-left: 6px; white-space: nowrap; }
.qty--sm .qty__control { height: 34px; }
.qty--sm .qty__btn { width: 32px; }
.qty--sm .qty__input { width: 44px; font-size: 14.5px; }

.cart-summary { position: sticky; top: 16px; display: grid; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.cart-summary__title { font-size: 18px; }
.cart-summary__rows { display: grid; gap: 8px; }
.cart-summary__rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
/* The label keeps its width and the value wraps: a long value ("by the seller's delivery rules") used to
   squeeze the label until Burmese broke it mid-word (ပို့ဆောင် / ခ). */
.cart-summary__rows dt { color: var(--ink-600); flex: none; max-width: 60%; }
.cart-summary__rows dd { font-weight: 700; text-align: right; min-width: 0; }
.cart-summary__total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-summary__total dt { color: var(--ink-950); font-weight: 750; }
.cart-summary__total dd { color: var(--deal-600); font-size: 24px; font-weight: 850; }
.cart-summary__note { display: flex; gap: 8px; color: var(--ink-500); font-size: 13px; }
.cart-summary__note .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.checkout-gate { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.gate-card { display: grid; justify-items: center; gap: 12px; padding: 44px 32px; text-align: center; }
.gate-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); }
.gate-card__icon .i { width: 30px; height: 30px; }
.gate-card__title { font-size: 22px; font-weight: 800; color: var(--ink-950); }
.gate-card__text { max-width: 440px; color: var(--ink-600); }
.gate-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.gate-card__actions .btn { min-width: 150px; }
.gate-card__note { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink-500); font-size: 13.5px; }
.gate-card__note .i { width: 16px; height: 16px; flex: none; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.checkout__main { display: grid; gap: 16px; }
.step-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-600); color: #fff; font-size: 14px; font-weight: 800; }
.option-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.option-cards--pay { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 12px; }
.option-card { position: relative; display: grid; gap: 4px; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.option-card:hover { border-color: var(--teal-300); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card__title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-950); }
.option-card__title .i { color: var(--teal-600); }
.option-card__sub { color: var(--ink-500); font-size: 13px; }
.option-card__warn { color: var(--amber-700); font-weight: 600; }
/* 付款那一栏里的「钱包没加载出来」：占满一整行，重试按钮跟在句子后面。 */
.option-cards .notice { grid-column: 1 / -1; margin: 0; flex-wrap: wrap; }
.option-card:has(input:checked) { border-color: var(--teal-600); background: var(--teal-50); box-shadow: 0 0 0 1px var(--teal-600); }
.option-card:has(input:focus-visible) { box-shadow: var(--ring); }
.option-card.is-disabled { opacity: .45; cursor: not-allowed; }
.option-card__group { grid-column: 1 / -1; margin-top: 6px; color: var(--ink-500); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.summary-items { display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.summary-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.summary-item img, .summary-item .cart-line__img--empty { width: 52px; height: 52px; border-radius: var(--radius-xs); object-fit: cover; background: var(--surface-3); font-size: 22px; }
.summary-item__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-800); }
.summary-item__qty { color: var(--ink-500); font-size: 13px; }
.summary-item__price { font-weight: 700; white-space: nowrap; }
.checkout__terms { color: var(--ink-400); font-size: 12.5px; text-align: center; }
.pay-qr { display: flex; gap: 16px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.pay-qr img { width: 150px; height: 150px; object-fit: contain; flex: none; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.pay-qr__text { display: grid; gap: 6px; font-size: 14px; color: var(--ink-700); }
.pay-qr__title { font-weight: 750; }
.pay-qr__caption { display: flex; align-items: flex-start; gap: 6px; color: var(--amber-700); font-size: 13px; }
.pay-qr__caption .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.pay-qr__line { display: grid; }
.pay-qr__label { color: var(--ink-500); font-size: 13px; }
.pay-qr__value { overflow-wrap: anywhere; user-select: all; }
.order-detail__side .pay-qr { flex-direction: column; align-items: center; text-align: center; }
.order-detail__side .pay-qr__caption { text-align: start; }
/* 手机上码在上、字在下：150px 的码旁边只剩 160px，缅文的户名、账号和说明一行两三个词。 */
@media (max-width: 480px) { .pay-qr { flex-direction: column; } }
.pickup-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--teal-50); color: var(--teal-800); font-size: 14px; }
.pickup-note .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--teal-600); }
.review-form { display: grid; gap: 12px; }
.rating-input { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.rating-input__label { min-width: 150px; color: var(--ink-700); font-size: 14px; }
.rating-input__stars { display: inline-flex; gap: 2px; }
.rating-input__star { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-300); cursor: pointer; }
.rating-input__star .i { width: 28px; height: 28px; }
.rating-input__star:hover, .rating-input__star:focus-visible { background: var(--saffron-50); }
.rating-input__star.is-on { color: var(--saffron-500); }
.rating-input__star.is-on .i, .review-stars .is-on { fill: currentColor; }
.review-stars { display: inline-flex; gap: 2px; color: var(--saffron-500); }
.review-stars .i { width: 22px; height: 22px; color: var(--ink-300); }
.review-stars .i.is-on { color: var(--saffron-500); }
.review-done__comment { margin: 8px 0; color: var(--ink-800); white-space: pre-line; }
.field__error { color: var(--deal-600, #c2410c); font-size: 13.5px; }
.cash-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--amber-50); color: var(--amber-700); font-size: 14px; }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs button { padding: 10px 16px; border: 0; border-bottom: 2.5px solid transparent; background: none; color: var(--ink-600); font-weight: 600; white-space: nowrap; }
.tabs button:hover { color: var(--ink-950); }
.tabs button[aria-selected="true"] { border-bottom-color: var(--teal-600); color: var(--teal-700); font-weight: 750; }
.tabs__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--ink-600); font-size: 12px; font-weight: 700; }
.tabs button[aria-selected="true"] .tabs__count { background: var(--teal-50); color: var(--teal-700); }
.order-list__empty { padding: 32px 16px; text-align: center; color: var(--ink-500); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.order-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* minmax(0, 1fr)：默认的单列轨道按内容定宽，一个长商品名把整张卡片撑出 390px 屏幕 */
.order-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink-900); transition: box-shadow .15s, border-color .15s; }
.order-card:hover { box-shadow: var(--shadow); border-color: transparent; color: var(--ink-900); }
.order-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-card__shop { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; }
.order-card__shop .i { color: var(--teal-600); }
.order-card__body { display: flex; align-items: center; gap: 12px; }
.order-card__thumbs { display: flex; gap: 6px; }
.order-card__thumbs img, .order-card__thumbs span { width: 56px; height: 56px; border-radius: var(--radius-xs); object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-size: 22px; }
.order-card__summary { flex: 1; min-width: 0; color: var(--ink-600); font-size: 14px; }
.order-card__summary strong { display: block; color: var(--ink-900); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.order-card__total { text-align: right; }
.order-card__total strong { display: block; color: var(--deal-600); font-size: 18px; font-weight: 850; }
.order-card__total span { color: var(--ink-500); font-size: 12.5px; }
.order-list--compact .order-card { padding: 12px 14px; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-600); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pending { background: var(--amber-50); color: var(--amber-700); }
.status--active { background: var(--blue-50); color: var(--blue-700); }
.status--done { background: var(--green-50); color: var(--green-700); }
.status--cancelled { background: var(--surface-3); color: var(--ink-500); }
.status--problem { background: var(--deal-50); color: var(--deal-700); }

.order-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-top: 8px; }
.order-detail__main { display: grid; gap: 16px; }
.order-detail__side { position: sticky; top: 16px; display: grid; gap: 16px; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.order-head h1 { font-size: 24px; }
.order-head__id { color: var(--ink-500); font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 2px; }
.timeline__step { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--ink-400); font-size: 13px; font-weight: 600; }
.timeline__step::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.timeline__step:first-child::before { display: none; }
.timeline__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); color: var(--ink-400); border: 3px solid var(--surface); }
.timeline__dot .i { width: 16px; height: 16px; stroke-width: 2.6; }
.timeline__step.is-done { color: var(--ink-800); }
.timeline__step.is-done::before { background: var(--teal-500); }
.timeline__step.is-done .timeline__dot { background: var(--teal-600); color: #fff; }
.timeline__step.is-current .timeline__dot { background: var(--saffron-500); color: var(--ink-950); box-shadow: 0 0 0 4px var(--saffron-100); }
.kv { display: grid; gap: 8px; font-size: 14.5px; }
.kv > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.kv dt { color: var(--ink-500); }
.kv dd { color: var(--ink-900); word-break: break-word; }
.upload-box { display: grid; gap: 10px; }
.upload-box__drop { display: grid; justify-items: center; gap: 6px; padding: 18px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--ink-600); text-align: center; cursor: pointer; }
.upload-box__drop:hover { border-color: var(--teal-500); background: var(--teal-50); color: var(--teal-700); }
.upload-box__drop .i { width: 28px; height: 28px; }
/* 付款区顶上那一行状态是一句话（缅文常常两三行），不是标签：chip 的 nowrap 会把整个侧栏撑到 600px 宽。 */
.upload-box > .chip { white-space: normal; border-radius: var(--radius-sm); }
.upload-box__preview { width: 100%; max-height: 260px; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface-3); }

.auth-page { padding: 32px var(--gutter); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
.auth__brand { position: relative; display: grid; align-content: center; justify-items: start; gap: 12px; padding: 56px 44px 40px; color: #fff; background: radial-gradient(500px 300px at 100% 100%, rgba(244,165,28,.3), transparent 60%), linear-gradient(160deg, var(--teal-700), var(--teal-950)); }
.auth__awning { position: absolute; left: 0; right: 0; top: 0; height: 30px; }
.auth__brand img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.auth__brand-name { font-size: 30px; font-weight: 850; }
.auth__brand-tag { color: var(--saffron-400); font-weight: 700; }
.auth__points { display: grid; gap: 10px; margin-top: 12px; }
.auth__points li { display: flex; gap: 10px; color: rgba(255,255,255,.86); font-size: 14.5px; }
.auth__points .i { width: 20px; height: 20px; padding: 3px; flex: none; border-radius: 50%; background: rgba(244,165,28,.2); color: var(--saffron-400); stroke-width: 2.6; }
.auth__card { display: grid; align-content: start; gap: 14px; padding: 40px 44px; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 8px; border-radius: var(--radius); background: var(--surface-3); }
.auth__tab { padding: 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-600); font-weight: 700; }
.auth__tab.is-active { background: var(--surface); color: var(--ink-950); box-shadow: var(--shadow-xs); }
.auth-link-notice { margin-top: 16px; align-items: center; }
.auth-link-notice .btn { margin-left: auto; flex: none; }
.google-signin__button { display: flex; justify-content: center; min-height: 44px; }
.auth__or { display: flex; align-items: center; gap: 12px; color: var(--ink-400); font-size: 13px; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__form { display: grid; gap: 14px; }
.auth__forgot { justify-self: center; }
.auth__terms { color: var(--ink-400); font-size: 12.5px; text-align: center; }
.auth-callback { display: grid; justify-items: center; gap: 16px; padding: 80px 0; color: var(--ink-600); }
.auth-callback p { max-width: 560px; text-align: center; }

.account { display: grid; gap: 16px; margin-top: 8px; }
.account__profile { display: flex; align-items: center; gap: 18px; }
.account__profile > div { flex: 1; min-width: 0; }
.account__name { font-size: 24px; }
.account__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; justify-items: center; gap: 8px; padding: 20px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink-800); font-weight: 650; text-align: center; }
.tile:hover { border-color: transparent; box-shadow: var(--shadow); color: var(--teal-700); }
.tile .i { width: 28px; height: 28px; color: var(--teal-600); }

/* ── 17b. 手机上的导航：底部导航栏、分类条、全部分类、附近、开店、我的 ───── */
.is-scroll-locked, .is-scroll-locked body { overflow: hidden; }

/* 分类条：电脑上只放前 8 个（其余在「全部分类」大菜单里），手机上见响应式一节 */
.catnav__rail { position: relative; display: flex; align-items: stretch; flex: 1; min-width: 0; }
.catnav__rail .catnav__list li:nth-child(n+9) { display: none; }
.catnav__list li.is-clipped { visibility: hidden; }
.catnav__more { display: none; }

/* 全部分类：从底部弹起的宫格 */
.sheet {
  width: 100%; max-width: 640px; max-height: min(86vh, 760px); margin: auto auto 0; padding: 0;
  border: 0; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--ink-900);
  box-shadow: 0 -12px 40px rgba(4, 35, 44, .25); overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .28s var(--ease); }
.sheet::backdrop { background: rgba(4, 35, 44, .5); }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.sheet__grabber { flex: none; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: var(--line-strong); }
.sheet__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 10px 6px 20px; }
.sheet__title { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.sheet__title .i { color: var(--teal-600); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 14px calc(18px + env(safe-area-inset-bottom)); }
.catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.catgrid li { display: flex; }
.catgrid__item {
  flex: 1; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 10px 2px 8px;
  border-radius: var(--radius); color: var(--ink-800); text-align: center; -webkit-tap-highlight-color: transparent;
}
.catgrid__item:hover { background: var(--surface-2); color: var(--tint-fg); }
.catgrid__item:active .catgrid__emoji { transform: scale(.94); }
.catgrid__item.is-active { background: var(--tint-bg); color: var(--tint-fg); }
.catgrid__emoji { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--tint-bg); font-size: 29px; line-height: 1; transition: transform .1s; }
.catgrid__item.is-active .catgrid__emoji { background: #fff; box-shadow: 0 0 0 2px var(--tint-fg); }
.catgrid__name { font-size: 12.5px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.lang-my .catgrid__name { font-size: 12px; line-height: 1.6; overflow-wrap: normal; }
.sheet__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.sheet__link { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 10px; border-radius: var(--radius); background: var(--teal-50); color: var(--teal-800); font-size: 14px; font-weight: 650; text-align: center; }
.sheet__link:hover { background: var(--teal-100); color: var(--teal-900); }
.sheet__link .i { width: 18px; height: 18px; }
.lang-my .sheet__link { font-size: 13px; line-height: 1.5; }

/* 子分类：一行放不下时两端渐隐，右端「展开全部」 */
.chiprail { display: flex; align-items: flex-start; gap: 8px; padding-bottom: 12px; }
.chiprail .subnav { flex: 1; min-width: 0; padding: 2px 0; }
.chiprail.is-overflowing:not(.is-expanded) .subnav {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.chiprail.is-overflowing:not(.is-expanded):not(.is-at-start) .subnav {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 48px), transparent);
}
.chiprail.is-overflowing:not(.is-expanded).is-at-end:not(.is-at-start) .subnav {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px);
  mask-image: linear-gradient(90deg, transparent, #000 32px);
}
.chiprail.is-expanded { flex-wrap: wrap; }
.chiprail.is-expanded .subnav { flex: 1 1 100%; flex-wrap: wrap; overflow: visible; }
.chiprail.is-expanded .chiprail__toggle { margin-left: auto; }
.chiprail__toggle {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 38px; margin-top: 2px; padding: 0 12px 0 14px;
  border: 1px solid var(--teal-100); border-radius: var(--radius-pill); background: var(--teal-50); color: var(--teal-700);
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.chiprail__toggle:hover { background: var(--teal-100); color: var(--teal-800); }
.chiprail__toggle .i { transition: transform .2s; }
.chiprail.is-expanded .chiprail__toggle .i { transform: rotate(180deg); }
.lang-my .chiprail__toggle { font-size: 13px; line-height: 1.8; }
.sortbar.is-overflowing:not(.is-at-end) .sortbar__options {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.sortbar.is-overflowing:not(.is-at-start):not(.is-at-end) .sortbar__options {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 36px), transparent);
}
.sortbar.is-overflowing.is-at-end:not(.is-at-start) .sortbar__options {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px);
  mask-image: linear-gradient(90deg, transparent, #000 28px);
}
.listing__filter-toggle { white-space: nowrap; }
.lang-my .listing__filter-toggle { white-space: nowrap; }
.listing__head > div { min-width: 0; }

/* 底部导航栏：只在手机和平板上出现（见响应式一节） */
.tabbar { display: none; }

/* 附近 */
.nearby-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 18px;
  margin: 8px 0 16px; padding: 22px 24px; border: 1px solid var(--teal-100); border-radius: var(--radius-xl);
  background: radial-gradient(640px 260px at 92% 0%, rgba(244, 165, 28, .16), transparent 60%), linear-gradient(135deg, var(--teal-50), #fff 72%);
}
.nearby-hero__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--teal-600); color: #fff; box-shadow: 0 8px 20px rgba(10, 107, 122, .28); }
.nearby-hero__icon .i { width: 34px; height: 34px; }
.nearby-hero__eyebrow { color: var(--teal-700); font-size: 13px; font-weight: 700; }
.nearby-hero__title { font-size: 26px; font-weight: 850; }
.nearby-hero--located .nearby-hero__title { font-size: 22px; }
.lang-my .nearby-hero__title { font-size: 22px; }
.lang-my .nearby-hero--located .nearby-hero__title { font-size: 19px; }
.nearby-hero__body { margin-top: 4px; color: var(--ink-600); }
.nearby-hero__actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: 8px; }
/* JS 注入的「重试 / 手动选择」行：占满整行，不落进窄的第二列 */
@media (min-width: 601px) { .nearby-hero__actions--retry { grid-column: 1 / -1; justify-content: flex-start; } }
/* 手动选择：按钮留在按钮行里，打开的表单是下面一整行的独立面板（不是 details 里的一个 flex 子项）。
   没有 JS 时靠 :target 打开。 */
.nearby-pick { display: none; grid-column: 1 / -1; width: 100%; }
.nearby-pick.is-open, .nearby-pick:target { display: block; }
.nearby-pick__toggle[aria-expanded="true"] { border-color: var(--teal-500); background: var(--teal-50); color: var(--teal-700); }
.nearby-pick__form {
  display: grid; gap: 10px; width: 100%; max-width: 420px; margin-left: auto; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.nearby-hero__status { grid-column: 1 / -1; padding: 10px 12px; border-radius: var(--radius); background: var(--blue-50); color: var(--blue-700); font-size: 14px; }
.nearby-hero__status.is-error { background: var(--amber-50); color: var(--amber-700); }
.nearby-hero__privacy { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 6px; color: var(--ink-500); font-size: 12.5px; }
.nearby-hero__privacy .i { width: 14px; height: 14px; margin-top: 3px; }
.btn.is-locating .i { animation: spin 1.4s linear infinite; }
.radius-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 8px 8px 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.radius-bar__label { flex: none; color: var(--ink-600); font-size: 14px; font-weight: 600; }
.radius-bar__opts { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.radius-bar__opts::-webkit-scrollbar { display: none; }
.radius-bar__opt { flex: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-700); font-size: 14px; font-weight: 600; white-space: nowrap; }
.radius-bar__opt:hover { border-color: var(--teal-500); color: var(--teal-700); }
.radius-bar__opt.is-active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.pcard__distance { color: var(--teal-700); font-weight: 650; }
.nearby__footnote { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 18px; color: var(--ink-500); font-size: 13px; text-align: center; }
.nearby__footnote .i { width: 15px; height: 15px; margin-top: 3px; }
.nearby-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nearby-steps li { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink-700); font-size: 14.5px; }
.nearby-steps__n { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); font-weight: 800; }

/* 免费开店 */
.sell-hero__ticks { display: grid; gap: 8px; }
.sell-hero__ticks li { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.sell-hero__ticks .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--saffron-500); color: var(--ink-950); stroke-width: 3; }
.how--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.feature__icon--sun { background: var(--saffron-100); color: var(--saffron-700); }
.cat-tiles--sell .cat-tile { cursor: default; }
.cat-tiles--sell .cat-tile:hover { transform: none; box-shadow: none; border-color: var(--line); color: inherit; }
.sell-rules { margin-top: 18px; align-items: center; }
.sell-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: var(--ink-600); text-align: center; }
.sell-contact .i { color: var(--teal-600); }
/* 联系平台客服（views/partials/support-contacts.php，066） */
.sell-support { max-width: 560px; margin: 22px auto 0; }
.seller-support { margin-top: 18px; }
.support-panel__hint { padding: 0 16px 6px; color: var(--ink-600); font-size: 14px; line-height: 1.5; }
.lang-my .support-panel__hint { line-height: 1.8; }

/* 我的 */
.me { display: grid; gap: 14px; max-width: 760px; margin: 16px auto 0; }
.me-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 22px 20px;
  border-radius: var(--radius-xl); color: #fff; box-shadow: var(--shadow);
  background: radial-gradient(520px 220px at 100% 0%, rgba(244, 165, 28, .3), transparent 60%), linear-gradient(135deg, var(--teal-700), var(--teal-900));
}
.me-card__avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; font-weight: 800; }
.me-card__avatar .i { width: 32px; height: 32px; }
.me-card__avatar--letter { background: var(--saffron-500); color: var(--ink-950); }
.me-card__title { color: #fff; font-size: 21px; overflow-wrap: anywhere; }
.me-card__sub { margin-top: 2px; color: rgba(255, 255, 255, .82); font-size: 14px; overflow-wrap: anywhere; }
/* 会员号（W2 / 080）：卡片上的一行字，点一下复制。看起来是字，不是按钮；触控区仍够 44px 高。 */
.me-card__member { all: unset; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; color: inherit; font-variant-numeric: tabular-nums; text-decoration: underline dotted rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.me-card__member:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.me-card__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.me-card__actions .btn { min-height: 46px; }
.me-panel { padding: 4px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.me-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 4px; }
.me-panel__title { font-size: 16px; font-weight: 800; }
.me-panel__more { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-500); font-size: 13.5px; font-weight: 600; }
.me-orders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 6px 10px; }
.me-orders li { display: flex; }
.me-orders__item { flex: 1; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 8px 2px; border-radius: var(--radius); color: var(--ink-700); font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; }
.me-orders__item:hover { background: var(--surface-2); color: var(--teal-700); }
.me-orders__icon { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--teal-50); color: var(--teal-700); }
.me-orders__icon .i { width: 24px; height: 24px; }
.me-orders__icon .badge { box-shadow: 0 0 0 2px #fff; }
.lang-my .me-orders__item { font-size: 12px; line-height: 1.55; }
.me-recent { padding: 2px 12px 12px; }
.me-list > li + li { border-top: 1px solid var(--line); }
.me-list__row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px;
  border: 0; background: none; color: var(--ink-900); font-size: 15px; font-weight: 550; text-align: left;
}
.me-list__row:hover { background: var(--surface-2); color: var(--ink-950); }
.me-list__row--static { flex-wrap: wrap; }
.me-list__row--static:hover { background: none; }
.me-list__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--surface-3); color: var(--teal-700); }
.me-list__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--deal-600); margin-inline: -4px 0; }
.me-list__icon .i { width: 19px; height: 19px; }
.me-list__icon--sun { background: var(--saffron-100); color: var(--saffron-700); }
.me-list__label { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.me-list__label small { margin-top: 1px; color: var(--ink-500); font-size: 12.5px; font-weight: 500; overflow-wrap: anywhere; }
.lang-my .me-list__label { line-height: 1.6; }
.me-list__value { max-width: 45%; overflow: hidden; color: var(--ink-500); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.me-list__chev { flex: none; color: var(--ink-300); }
.me-list__row--danger { color: var(--deal-700); }
.me-list__row--danger .me-list__icon { background: var(--deal-50); color: var(--deal-600); }
.me-langs { display: inline-flex; flex: none; gap: 2px; margin-left: auto; padding: 3px; border-radius: var(--radius-pill); background: var(--surface-3); }
.me-langs__opt { padding: 5px 11px; border-radius: var(--radius-pill); color: var(--ink-600); font-size: 13px; font-weight: 600; white-space: nowrap; }
.me-langs__opt:hover { color: var(--ink-950); }
.me-langs__opt.is-active { background: var(--surface); color: var(--teal-700); box-shadow: var(--shadow-xs); }
.badge--inline { position: static; box-shadow: none; }
.me-reset { margin: 0; }
/* 删除账号（account.php #delete）：会发生什么一条一条列出来，已安排删除时换成日期 + 取消 */
.me-delete__body { display: grid; gap: 14px; padding: 6px 16px 18px; color: var(--ink-800); font-size: 14.5px; line-height: 1.55; }
.lang-my .me-delete__body { line-height: 1.8; }
.me-delete__facts { display: grid; gap: 10px; }
.me-delete__facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; }
.me-delete__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--deal-50); color: var(--deal-600); }
.me-delete__icon .i { width: 16px; height: 16px; }
.me-delete__icon--keep { background: var(--surface-3); color: var(--teal-700); }
.me-delete__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.me-delete__scheduled {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px;
  border: 1px solid var(--deal-100); border-radius: var(--radius); background: var(--deal-50); color: var(--deal-700);
}
.me-delete__scheduled > .i { width: 22px; height: 22px; margin-top: 2px; }
.me-delete__scheduled-title { font-size: 16px; font-weight: 800; color: var(--deal-700); }
.me-delete__scheduled-title:focus { outline: none; }
.me-delete__scheduled p { margin-top: 4px; color: var(--ink-800); }
.me-delete__scheduled .me-delete__days { font-weight: 700; color: var(--deal-700); }

/* ── 17c. 举报 / 投诉弹层（lib/report.js）、「我的」里的通知、限制下单的横幅 ─────── */
/* 电脑上是居中的弹层；手机上（见本节末尾）从底部弹起，和「全部分类」一样。整张表在弹层里滚，标题行钉在顶上。 */
.modal--report { width: min(600px, calc(100vw - 32px)); max-width: none; max-height: min(88vh, 780px); }
.report { display: grid; gap: 16px; min-height: 0; padding: 0 22px 20px; overflow-y: auto; overscroll-behavior: contain; }
.report__head {
  position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px;
  margin: 0 -22px; padding: 18px 12px 14px 22px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.report__badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--deal-50); color: var(--deal-600); }
.report__heading { min-width: 0; padding-top: 2px; }
.report__title { font-size: 18px; font-weight: 800; }
.report__context { margin-top: 2px; color: var(--ink-500); font-size: 13.5px; overflow-wrap: anywhere; }
.report__close { margin: -4px 0 0; color: var(--ink-500); }
.report__legend { margin-bottom: 10px; color: var(--ink-900); font-size: 15px; font-weight: 700; }
.report__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.report__hint { grid-column: 1 / -1; margin: -2px 0 2px; }
.report__option {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  color: var(--ink-900); font-size: 14.5px; line-height: 1.4; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
@media (hover: hover) { .report__option:hover { border-color: var(--teal-300); } }
.report__option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--teal-600); }
.report__option:has(input:checked) { border-color: var(--teal-600); background: var(--teal-50); box-shadow: 0 0 0 1px var(--teal-600); }
.report__option:has(input:focus-visible) { box-shadow: var(--ring); }
.lang-my .report__option { line-height: 1.75; }
.report__text { min-height: 88px; }
.report__count { justify-self: end; margin-top: -2px; color: var(--ink-400); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.report__note { display: flex; gap: 8px; color: var(--ink-500); font-size: 13px; }
.report__note .i { width: 16px; height: 16px; margin-top: 3px; }
.lang-my .report__note { line-height: 1.8; }
.report__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* 店铺页的「举报这家店」、订单页的「这张订单有问题？」：安静的入口，找得到，但不和买东西抢眼 */
.shop-report { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--teal-100); }
.order-report__body { margin: -4px 0 14px; color: var(--ink-600); font-size: 14px; }

/* 限制下单：「我的」最上面、结算表单最上面。notice 默认的上下外边距在这两处的网格里是多出来的 */
.me-restricted, .checkout-restricted { margin: 0; flex-wrap: wrap; align-items: center; }
.me-restricted > span, .checkout-restricted > span { flex: 1 1 240px; }

/* 通知：图标底色说结果（红 停店/限制/封号、黄 警告/隐藏、绿 恢复），右上角的小点是这次进来之前没读过的 */
.me-notices__unread { padding: 1px 9px; border-radius: var(--radius-pill); background: var(--deal-50); color: var(--deal-700); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.me-notices__status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 16px 16px; color: var(--ink-500); font-size: 14px; }
.me-notices__status .btn { margin-left: auto; }
.me-notices { padding-bottom: 4px; }
.me-notice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 38px 12px 16px; }
.me-notice + .me-notice { border-top: 1px solid var(--line); }
.me-notice__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--teal-50); color: var(--teal-700); }
.me-notice__icon .i { width: 19px; height: 19px; }
.me-notice--bad .me-notice__icon { background: var(--deal-50); color: var(--deal-600); }
.me-notice--warn .me-notice__icon { background: var(--amber-50); color: var(--amber-700); }
.me-notice--good .me-notice__icon { background: var(--green-50); color: var(--green-700); }
.me-notice__main { min-width: 0; }
.me-notice__title { font-size: 15px; font-weight: 750; }
.me-notice__body { margin-top: 2px; color: var(--ink-700); font-size: 14px; overflow-wrap: anywhere; }
.me-notice__body a { font-weight: 650; }
.me-notice__action { display: inline-block; margin-top: 4px; font-size: 13.5px; font-weight: 650; }
.me-notice__meta { margin-top: 4px; color: var(--ink-500); font-size: 12.5px; }
.me-notice__dot { position: absolute; top: 18px; right: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--deal-600); }

@media (max-width: 600px) {
  .modal--report { width: 100%; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .modal--report[open] { animation: sheet-in .28s var(--ease); }
  .report { padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
  .report__head { margin: 0 -16px; padding: 14px 8px 12px 16px; }
  /* 一列十四张卡片太重：手机上改成一整块、行与行之间一条细线的列表 */
  .report__options { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1.5px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
  .report__option { min-height: 48px; border: 0; border-radius: 0; }
  .report__option + .report__option { border-top: 1px solid var(--line); }
  .report__option:has(input:checked) { box-shadow: none; }
  .report__option:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--teal-500); }
  /* 16px：iOS 上输入框小于 16px 一点就放大整页，弹层会被推出屏幕 */
  .report__text { font-size: 16px; }
  .report__actions .btn { flex: 1 1 0; }
  .me-notice { padding-left: 14px; }
}

/* ── 18. 响应式 ─────────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  /* 搜索框里的分类下拉：窄屏上它把输入框挤得只剩几个字，分类在下面的分类条里都有 */
  .search__cat { display: none; }
  .hero-row { grid-template-columns: 216px minmax(0, 1fr); }
  .welcome { display: none; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid--listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--row6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .spotlight .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spotlight .product-grid .pcard:nth-child(5) { display: none; }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .seller-card { grid-column: 1 / -1; position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .seller-card__label { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .site-footer__app { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
  .site-footer__app .site-footer__head { width: 100%; margin: 0; }
  .site-footer__qr { margin: 0; }
  .seller-cta { grid-template-columns: minmax(0, 1fr) auto; }
  .seller-cta__points { grid-column: 1 / -1; grid-row: 2; }
  .shop-layout .product-grid--listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .action--orders { display: none; }
  .location-btn__label { display: none; }
  /* 选城市留在页头里，把位置从「搜索」两个字那里挤出来（分类下拉在 1240 以下就收起了） */
  .search__submit span { display: none; }
  .search__submit { padding: 0 18px; }
  .action__text .action__small { display: none; }
  .catnav__new { display: none; }
  .app-band__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy qr" "steps steps"; }
  .app-band__phone { display: none; }
  .app-band__qr { margin-bottom: 0; }
  .app-band__copy { padding-bottom: 8px; }
  .app-band__steps { padding-bottom: 44px; }
  .install-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .app-hero__visual { height: 400px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout, .checkout, .checkout-gate, .order-detail { grid-template-columns: minmax(0, 1fr); }
  .cart-summary, .order-detail__side { position: static; }
  .opening { grid-template-columns: 1fr; padding: 32px; text-align: center; }
  .opening__copy { justify-items: center; }
  .opening__cta { justify-content: center; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .topbar { display: none; }
  .masthead__inner { flex-wrap: wrap; gap: 10px 8px; padding-top: 8px; padding-bottom: 10px; min-height: 0; }
  .masthead__menu { display: inline-grid; margin-left: -8px; }
  .brand__mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand__name { font-size: 17px; }
  .brand__sub { display: none; }
  .masthead__actions { margin-left: auto; }
  .action { padding: 6px 8px; }
  .action__text { display: none; }
  .search { order: 5; flex-basis: 100%; height: 42px; }
  .search__cat { display: none; }
  .search__submit span { display: none; }
  .search__submit { padding: 0 16px; }
  .catnav__all { display: none; }
  .catnav__inner { min-height: 44px; }
  .catnav__list { overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); padding: 0 8px 0 var(--gutter); }
  .catnav__list::-webkit-scrollbar { display: none; }
  .mega__panel { display: none; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .cat-rail { display: none; }
  .hero, .hero__slide { min-height: 0; }
  .hero__slide { grid-template-columns: 1fr; padding: 44px 22px 44px; }
  .hero__art { display: none; }
  .hero__title { font-size: 26px; }
  .lang-my .hero__title { font-size: 21px; }
  .hero__dots { left: 22px; bottom: 16px; }
  .value-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-strip li:nth-child(3) { border-left: 0; }
  .value-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .value-strip li { padding: 12px 14px; gap: 10px; }
  .value-strip__icon { width: 36px; height: 36px; }
  .cat-tiles { gap: 8px; }
  .lang-my .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-tile { padding: 12px 4px 10px; }
  .cat-tile__emoji { width: 48px; height: 48px; font-size: 26px; border-radius: 14px; }
  .product-grid, .product-grid--listing, .product-grid--row6, .spotlight .product-grid, .shop-layout .product-grid--listing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight .product-grid .pcard:nth-child(n+5) { display: none; }
  .spotlight__intro { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 4px; }
  .spotlight__subs { display: none; }
  .spotlight__intro .btn { margin: 0 0 0 auto; }
  .section__title { font-size: 19px; }
  .seller-cta { grid-template-columns: 1fr; padding: 24px; }
  .seller-cta__points { grid-template-columns: 1fr; }
  .listing__layout { grid-template-columns: minmax(0, 1fr); }
  .listing__filter-toggle { display: inline-flex; }
  .listing__title { font-size: 22px; }
  .filters { position: fixed; inset: 0 0 0 auto; z-index: 420; width: min(360px, 90vw); transform: translateX(100%); transition: transform .25s var(--ease); }
  .filters.is-open { transform: none; }
  .filters__form { height: 100%; overflow-y: auto; border-radius: 0; border: 0; }
  .filters__close { display: inline-grid; }
  .filters-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 410; background: rgba(4,35,44,.5); }
  .sortbar { padding: 6px; }
  .sortbar__count { display: none; }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .gallery__nav { opacity: 1; }
  .pdp__title { font-size: 21px; }
  .price--xl .price__amount { font-size: 30px; }
  .buybox__actions { display: none; }
  .seller-card { grid-template-columns: 1fr; }
  .pdp-below { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .mobile-buybar:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; display: flex; align-items: center; gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  }
  .mobile-buybar__price { flex: 1; min-width: 0; }
  .mobile-buybar .price__amount { font-size: 21px; }
  .mobile-buybar .btn { min-height: 46px; }
  .page-product .site-footer { padding-bottom: 72px; }
  .visually-hidden-sm { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .shop-hero__inner { flex-wrap: wrap; padding-top: 44px; }
  .shop-hero__name { font-size: 22px; }
  .shop-hero__actions { width: 100%; }
  .shop-side { grid-template-columns: 1fr; }
  .app-band__inner { grid-template-columns: 1fr; grid-template-areas: "copy" "steps"; gap: 20px; }
  .app-band__qr { display: none; }
  .install-steps { grid-template-columns: 1fr; }
  .app-band__copy { padding-bottom: 0; }
  .app-band__title { font-size: 22px; }
  .app-hero__title { font-size: 32px; }
  .app-hero__visual { height: 340px; }
  .app-hero__visual .phone { width: 170px; }
  .app-hero__qr { display: none; }
  .how { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__bottom-inner { flex-direction: column; justify-content: center; padding: 12px 0; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-line__img { width: 72px; height: 72px; }
  /* flex + wrap：总价、数量、删除三样放不下一行时往下折，不再挤出卡片 */
  .cart-line__right { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
  .cart-line__remove-text { display: none; }
  .cart-line__remove { min-width: 44px; min-height: 44px; justify-content: center; }
  .option-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .timeline__step:nth-child(3)::before { display: none; }
  .kv > div { grid-template-columns: 96px minmax(0, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth__brand { padding: 44px 24px 24px; }
  .auth__points { display: none; }
  .auth__card { padding: 24px; }
  .account__profile { flex-wrap: wrap; }
  .account__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast-region { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; }
  .order-card__thumbs img:nth-child(n+2), .order-card__thumbs span:nth-child(n+2) { display: none; }
}
@media (max-width: 600px) {
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp__gallery { position: static; margin: 0 calc(var(--gutter) * -1); }
  .gallery__main { border-radius: 0; border-left: 0; border-right: 0; }
  .gallery__thumbs { padding: 0 var(--gutter); }
  .sortbar__opt { padding: 6px 10px; font-size: 13.5px; }
  /* 手机上登录页先给表单：品牌区缩成一条 */
  .auth-page { padding: 16px 12px 28px; }
  .auth__brand { grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 42px 20px 18px; }
  .auth__brand img { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; }
  .auth__brand-name { font-size: 22px; }
  .auth__points { display: none; }
  .auth__card { padding: 22px 18px 26px; }
  /* 两列的手机卡片里，两个配送标签各占一行会把卡片撑得很高：改成一行小字 */
  .pcard__fulfil { flex-wrap: nowrap; gap: 10px; min-height: 0; overflow: hidden; }
  .pcard__fulfil .chip { padding: 0; background: none; font-size: 12px; white-space: nowrap; }
  .pcard__fulfil .chip .i { width: 13px; height: 13px; }
}
@media (max-width: 420px) {
  .pcard__body { padding: 8px 9px 9px; }
  .price__amount { font-size: 17px; }
  .pcard__foot .pcard__city { display: none; }
  .hero__cta .btn { width: 100%; }
}

/* 手机导航（17b）的响应式部分 */
@media (max-width: 900px) {
  :root { --tabbar-h: 60px; }
  .has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .has-tabbar .action--account { display: none; }
  /* 手机上选城市在「我的」、抽屉和列表页里；页头放不下（平板横屏那一档才显示） */
  .location-btn { display: none; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 350;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(23, 21, 18, .07);
    -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  }
  .tabbar__item {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 0; padding: 5px 2px 4px; color: var(--ink-500); font-size: 11.5px; font-weight: 650; line-height: 1.25;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar__item:hover { color: var(--ink-800); }
  .tabbar__item.is-active { color: var(--teal-700); }
  .tabbar__icon { position: relative; display: grid; place-items: center; width: 50px; height: 30px; border-radius: 15px; transition: background .15s, transform .1s; }
  .tabbar__item:active .tabbar__icon { transform: scale(.92); }
  .tabbar__item.is-active .tabbar__icon { background: var(--teal-50); }
  .tabbar__icon .i { width: 23px; height: 23px; }
  .tabbar__item.is-active .tabbar__icon .i { stroke-width: 2.25; }
  .tabbar__label { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .lang-my .tabbar__item { gap: 0; font-size: 11px; line-height: 1.85; }
  .lang-my .tabbar__icon { height: 28px; }
  /* 缅文的上下标会伸出行框两三个像素：不要为了省略号把它们裁掉（四个标签在最窄的 320px 屏上也放得下） */
  .lang-my .tabbar__label { overflow: visible; text-overflow: clip; }
  .tabbar__item--sell { color: var(--ink-800); }
  .tabbar__item--sell .tabbar__icon { background: var(--saffron-500); color: var(--ink-950); box-shadow: 0 3px 8px rgba(217, 139, 0, .35); }
  .tabbar__item--sell.is-active .tabbar__icon { background: var(--saffron-400); }
  .tabbar__badge {
    position: absolute; top: -8px; right: -10px; padding: 0 5px; border-radius: var(--radius-pill);
    background: var(--deal-600); color: #fff; font-size: 9.5px; font-weight: 800; line-height: 15px; white-space: nowrap;
    box-shadow: 0 0 0 2px #fff;
  }
  .lang-my .tabbar__badge { font-size: 9px; line-height: 17px; }

  /* 分类条：全部分类都在这一条里，右端固定「全部」 */
  .catnav__inner { padding-right: 0; }
  .catnav__rail { align-self: stretch; }
  .catnav__rail .catnav__list li:nth-child(n+9) { display: block; }
  .catnav__rail.is-overflowing:not(.is-at-end) .catnav__list {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  .catnav__rail.is-overflowing:not(.is-at-start):not(.is-at-end) .catnav__list {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 40px), transparent);
  }
  .catnav__rail.is-overflowing.is-at-end:not(.is-at-start) .catnav__list {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px);
    mask-image: linear-gradient(90deg, transparent, #000 36px);
  }
  .catnav__more {
    display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 0 var(--gutter) 0 12px;
    border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--teal-700);
    font-size: 13.5px; font-weight: 750; white-space: nowrap; box-shadow: -8px 0 12px -8px rgba(23, 21, 18, .18);
  }
  .catnav__more .i { width: 19px; height: 19px; }
  .catnav__more:hover, .catnav__more:active { background: var(--teal-50); }
  .lang-my .catnav__more { font-size: 12.5px; }

  /* 附近 */
  .nearby-hero { grid-template-columns: auto minmax(0, 1fr); padding: 18px 16px; gap: 12px 14px; }
  .nearby-hero__icon { width: 52px; height: 52px; border-radius: 16px; }
  .nearby-hero__icon .i { width: 28px; height: 28px; }
  .nearby-hero__title { font-size: 21px; }
  .nearby-hero--located .nearby-hero__title { font-size: 18px; }
  .lang-my .nearby-hero__title { font-size: 19px; }
  .lang-my .nearby-hero--located .nearby-hero__title { font-size: 17px; }
  .nearby-hero__actions { grid-column: 1 / -1; justify-content: stretch; }
  /* 缅文按钮文字长：320px 宽时允许换行而不是撑出屏幕 */
  .nearby-hero__actions > .btn { flex: 1 1 140px; min-width: 0; justify-content: center; white-space: normal; height: auto; padding-block: 8px; line-height: 1.5; overflow-wrap: break-word; /* 不用 anywhere：缅文会在音节中间断开 */ }
  .nearby-hero--located .nearby-hero__privacy { display: none; }
  .nearby-pick__form { max-width: none; margin-left: 0; box-shadow: none; }
  .nearby-steps { grid-template-columns: 1fr; }
  .product-grid--nearby { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .how--single { grid-template-columns: 1fr; }
  .me { margin-top: 10px; gap: 12px; }
}
@media (max-width: 600px) {
  .radius-bar { padding: 6px; }
  .radius-bar__label { display: none; }
  .radius-bar__opt { padding: 6px 12px; font-size: 13.5px; }
  .me-card { padding: 18px 16px; gap: 14px; }
  .me-card__avatar { width: 56px; height: 56px; }
  .me-card__title { font-size: 19px; }
  .me-list__row { padding: 8px 14px; gap: 10px; }
  .sell-rules { flex-wrap: wrap; }
  .sell-rules .btn { margin-left: 28px; }
}
/* 平板竖屏：两列的商品卡片太大，一屏只看得到两件 */
@media (min-width: 640px) and (max-width: 900px) {
  .product-grid, .product-grid--listing, .product-grid--row6, .product-grid--nearby, .shop-layout .product-grid--listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spotlight .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spotlight .product-grid .pcard:nth-child(n+4) { display: none; }
}
@media (max-width: 380px) {
  .catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lang-my .me-orders__item { font-size: 11px; }
}

/* ── 19. 动效偏好、打印 ─────────────────────────────────────────────────── */
@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 print {
  .site-header, .app-band, .site-footer, .mobile-buybar, .toast-region, .buybox, .seller-card__app, .tabbar { display: none !important; }
  body { background: #fff; }
}


/* ── 2026-09-13 网页巡检：缅文排版 ─────────────────────────────── */
/* 375px 的分类页：筛选按钮和缅文标题挤在一行，标题被切成三行。手机上让按钮换到下一行。 */
@media (max-width: 600px) {
  .lang-my .listing__head { flex-wrap: wrap; align-items: flex-start; }
  .lang-my .listing__head > div { flex: 1 1 100%; }
  .lang-my .listing__filter-toggle { align-self: flex-start; }
}
/* 电脑页头「账号」「位置」两处：overflow:hidden + 1.45 行高会削掉缅文叠在上下的符号。 */
.lang-my .action__small, .lang-my .action__big,
.lang-my .location-btn__label, .lang-my .location-btn__city { line-height: 1.9; padding-block: 1px; }
.lang-my .action, .lang-my .location-btn__text { line-height: 1.9; }
.city-empty { margin: 10px 2px; }

/* ── 2026-09-16 账号健康页（/account/health，合同 admin-backoffice-v2.md 3.4） ───── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 4px;
  color: var(--ink-600); font-size: 14px; font-weight: 600;
}
.back-link:hover { color: var(--teal-700); }
.health-books { display: grid; gap: 14px; margin-bottom: 20px; }
.health-banner { margin: 0; }
.health-banner p { margin: 0; display: flex; align-items: center; gap: 6px; }
.health-banner p + p { margin-top: 4px; }
.health-score { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; font-size: 20px; font-weight: 800; }
.health-bar { display: block; height: 10px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; margin: 8px 0; }
.health-bar__fill { display: block; width: var(--pct, 0%); height: 100%; border-radius: var(--radius-pill); }
.health-bar__fill--teal { background: var(--teal-600); }
.health-bar__fill--amber { background: var(--amber-700); }
.health-bar__fill--red { background: var(--deal-600); }
.health-bar__fill--green { background: var(--green-600); }
.health-measure-list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.health-measure-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-700); }
.health-section { margin: 26px 0; }
.health-section h2 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.health-violation-list, .health-appeal-list, .health-hidden-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.health-violation, .health-appeal { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.health-violation__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.health-violation__when { margin-left: auto; color: var(--ink-500); font-size: 13px; }
.health-violation__facts { margin: 8px 0; color: var(--ink-800); }
.health-appeal-state { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.health-ladder-wrap h3 { font-size: 15px; font-weight: 800; margin: 16px 0 8px; }
.health-ladder { width: 100%; border-collapse: collapse; font-size: 14px; }
.health-ladder td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.health-ladder tr:first-child td { border-top: 1px solid var(--line); }
.health-rules-link { margin: 28px 0; }
.health-rules-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--teal-700); }
@media (min-width: 720px) {
  .health-books { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ── 2026-09-16 同意条款门（lib/terms-gate.js） ──────────────────────────── */
.terms-gate__points { display: grid; gap: 8px; margin: 4px 0; padding-left: 20px; color: var(--ink-700); font-size: 14.5px; }
.terms-gate__links { font-size: 14px; }
.terms-gate__links a { color: var(--teal-700); font-weight: 600; }
.terms-gate__agree { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; font-size: 14.5px; cursor: pointer; }
.terms-gate__agree input { margin-top: 3px; }
.terms-gate-banner { align-items: center; }
.terms-gate-banner a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.timeline--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ── 数字商品（迁移 061）：商品卡角标、商品页、结算、订单、我的数字内容、课程播放、网站卖家中心 ── */
.chip--digital { background: var(--blue-50); color: var(--blue-700); }
.chip--deal { background: var(--deal-50); color: var(--deal-700); }
.pcard__badge--digital { background: var(--blue-700); color: #fff; }
.tint-digital { background: linear-gradient(135deg, var(--blue-50), var(--surface)); }
.tabs button.is-active { border-bottom-color: var(--teal-600); color: var(--teal-700); font-weight: 750; }
.link-btn--danger { color: var(--deal-700); }
.facts__row--compact { padding-top: 6px; padding-bottom: 6px; }
.buybox--digital { display: grid; gap: 10px; }
.buybox__hint { margin: 0; color: var(--green-700); font-weight: 600; }
.btn--block { width: 100%; justify-content: center; }

.dg-previews { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding: 0; margin: 0; list-style: none; }
.dg-preview { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.dg-preview__name { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.dg-preview audio, .dg-preview video, .dg-preview img { width: 100%; border-radius: var(--radius-sm); }
.dg-outline, .dg-outline__lessons { list-style: none; margin: 0; padding: 0; }
.dg-outline__section + .dg-outline__section { margin-top: 14px; }
.dg-outline__section-title { margin: 0 0 6px; font-weight: 700; }
.dg-lesson { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.dg-lesson__title { flex: 1 1 200px; }
.dg-lesson__time { color: var(--ink-500); font-size: .9em; }
.dg-lesson__body { flex-basis: 100%; }
.dg-files { list-style: none; margin: 0 0 8px; padding: 0; }
.dg-files li, .dg-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.dg-files li:first-child { border-top: 0; }
.dg-files__name, .dg-file__name { flex: 1 1 180px; overflow-wrap: anywhere; }
.dg-files__size, .dg-file__size { color: var(--ink-500); font-size: .9em; white-space: nowrap; }
.dg-steps { margin: 0 0 12px; padding-left: 1.3em; display: grid; gap: 6px; }
.dg-next { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--teal-50); color: var(--teal-800); }
.dg-agree { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: .95em; }
.dg-agree input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.dg-requirements { white-space: pre-wrap; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.dg-deliveries { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dg-delivery { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.dg-delivery__head, .dg-delivery__msg { margin: 0 0 6px; }
.dg-delivery__msg { white-space: pre-wrap; }
.dg-revision { display: grid; gap: 8px; margin-top: 12px; }
.dg-upload { display: grid; gap: 6px; margin: 8px 0; }
.dg-upload__hint { margin: 0; font-size: .85em; overflow-wrap: anywhere; }
.dg-upload-list { list-style: none; margin: 0; padding: 0; }
.dg-upload-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; }
.dg-upload-row.is-busy { opacity: .7; }
.dg-upload-row.is-error { color: var(--deal-700); }
.dg-progress { position: relative; height: 22px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; margin: 8px 0; }
.dg-progress__bar { position: absolute; inset: 0 auto 0 0; background: var(--teal-500); border-radius: inherit; }
.dg-progress__text { position: relative; display: block; padding: 0 12px; line-height: 22px; font-size: .85em; font-weight: 650; color: var(--ink-900); }

.dg-library { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dg-library__item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dg-library__item.is-unavailable { opacity: .7; }
.dg-library__cover img, .dg-library__emoji { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; display: grid; place-items: center; background: var(--surface-3); font-size: 2rem; }
.dg-library__title { margin: 4px 0; font-size: 1.05rem; }
.dg-library__kind { margin: 0; }
.dg-library__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.dg-library__note { display: flex; gap: 6px; align-items: center; margin-top: 16px; }

.dg-learn { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 16px; align-items: start; }
.dg-learn__outline { position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; }
.dg-learn__section + .dg-learn__section { margin-top: 12px; }
.dg-learn__section-title { margin: 0 0 6px; font-weight: 700; font-size: .95em; }
.dg-learn__lessons { list-style: none; margin: 0; padding: 0; }
.dg-learn__lesson { display: flex; gap: 8px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none; text-align: left; color: inherit; cursor: pointer; }
.dg-learn__lesson:hover { background: var(--surface-2); }
.dg-learn__lesson.is-current { background: var(--teal-50); color: var(--teal-800); font-weight: 650; }
.dg-learn__lesson.is-locked { color: var(--ink-400); }
.dg-learn__lesson-title { flex: 1; }
.dg-learn__time { font-size: .8em; color: var(--ink-500); }
.dg-learn__crumb { margin: 0; color: var(--ink-500); font-size: .9em; }
.dg-learn__title { margin: 4px 0 12px; }
.dg-learn__nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 16px; }
.dg-player__frame { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.dg-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dg-player__media { width: 100%; border-radius: var(--radius); background: #000; }
audio.dg-player__media { background: none; }
.dg-player__text { max-width: 70ch; }

.seller-page__head { display: grid; gap: 10px; }
.seller-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.seller-nav a { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9em; }
.seller-nav a:hover { border-color: var(--teal-300); }
.seller-root { display: grid; gap: 16px; }
.sales-entry { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; color: inherit; }
.sales-entry:hover { border-color: var(--teal-300); }
.sales-entry__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); }
.sales-entry__text { display: grid; gap: 2px; }
.seller-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.dg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.dg-tile { display: grid; gap: 2px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-700); }
.dg-tile__n { font-size: 1.6rem; font-family: var(--font-num); color: var(--ink-400); }
.dg-tile--on .dg-tile__n { color: var(--teal-700); }
.dg-tile--deal { border-color: var(--deal-100); background: var(--deal-50); }
.dg-tile--deal .dg-tile__n { color: var(--deal-700); }
.dg-kind-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dg-kind-card { display: grid; gap: 6px; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink-700); }
.dg-kind-card strong { color: var(--ink-950); font-size: 1.05rem; }
.dg-kind-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }
.dg-listings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dg-listing { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dg-listing img, .dg-listing__emoji { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; display: grid; place-items: center; background: var(--surface-3); font-size: 1.6rem; }
.dg-listing__title { font-weight: 700; }
.dg-listing__body p { margin: 4px 0 0; }
.dg-listing__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.dg-status__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dg-missing ul { margin: 6px 0 0; padding-left: 1.2em; color: var(--deal-700); }
.dg-fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.dg-fieldset legend { padding: 0 6px; font-weight: 700; }
.dg-photos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; padding: 0; }
.dg-photos li { position: relative; }
.dg-photos img { border-radius: var(--radius-sm); object-fit: cover; }
.dg-photos button { position: absolute; top: 2px; right: 2px; background: rgba(255, 255, 255, .9); border-radius: 50%; }
.dg-wallets { list-style: none; margin: 0 0 12px; padding: 0; }
.dg-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.dg-wallet:first-child { border-top: 0; }
.dg-wallet img { border-radius: 4px; }
/* 072：正在等的收款账户改动，每条一个「取消」。 */
.dg-pending > div { flex: 1; min-width: 0; }
.dg-pending__list { display: grid; gap: 6px; margin: 6px 0; padding: 0; list-style: none; }
.dg-pending__list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
/* 073：交易号输入框、卖家那一行「截图不是钱」。 */
.pay-txn-field { margin-top: 12px; text-align: start; }
.pay-txn { margin-top: 10px; }
.pay-seller-note { margin: 10px 0; text-align: start; }
.dg-course-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 12px 0; }
.dg-course-section__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dg-course-lessons { margin: 8px 0; padding-left: 1.4em; }
.dg-course-lesson { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; }
.dg-course-lesson__title { flex: 1 1 180px; }
.dg-course-lesson__tools { display: flex; gap: 6px; align-items: center; }
.dg-lesson-form summary { cursor: pointer; font-weight: 650; color: var(--teal-700); display: flex; gap: 6px; align-items: center; }
.dg-add-section { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 12px; }
.dg-adm-card__title { margin: 6px 0; }
.dg-adm-card__photos { display: flex; gap: 6px; margin-bottom: 8px; }

@media (max-width: 860px) {
  .dg-learn { grid-template-columns: 1fr; }
  .dg-learn__outline { position: static; max-height: none; order: 2; }
  .dg-listing { grid-template-columns: 56px 1fr; }
  .dg-listing__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .dg-add-section { grid-template-columns: 1fr; }
}

/* ── 留言工单（迁移 069）：我的留言页、帮助页的留言表单、后台的对话，共用这一套 ─────────── */
.tickets { max-width: 760px; }
.ticket-list { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.ticket-row {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: inherit; text-decoration: none;
}
.ticket-row:hover { border-color: var(--teal-500); }
.ticket-row.is-unread { border-color: var(--teal-500); box-shadow: inset 4px 0 0 var(--teal-600); }
.ticket-row__main { display: grid; gap: 4px; flex: 1; min-width: 0; }
.ticket-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ticket-row__kind { font-weight: 700; color: var(--ink-950); }
.ticket-row__preview, .ticket-row__last { color: var(--ink-700); overflow-wrap: anywhere; }
.ticket-row__preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-row__last { font-size: 14px; color: var(--ink-600); }
.ticket-row__meta { font-size: 13px; color: var(--ink-500); }
.ticket-row__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--deal-600); }
.ticket-row__chev { flex: none; color: var(--ink-400); }
.ticket-state { white-space: normal; text-align: start; }
.ticket-unread-note { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--teal-700); font-weight: 650; }
.ticket-empty { margin-bottom: 20px; }
.ticket-new { margin-top: 8px; }
.ticket-new .panel__title { display: flex; align-items: center; gap: 8px; }

.ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; }
.ticket-head__when { margin-left: auto; font-size: 13px; color: var(--ink-500); }
.ticket-thread { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.ticket-msg {
  display: grid; gap: 4px; max-width: min(88%, 620px); padding: 12px 14px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
}
.ticket-msg--mine { justify-self: end; background: var(--teal-50); border-color: var(--teal-100); border-bottom-right-radius: 6px; }
.ticket-msg--staff { justify-self: start; border-bottom-left-radius: 6px; }
.ticket-msg__who { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-600); }
.ticket-msg--staff .ticket-msg__who { color: var(--teal-700); }
.ticket-msg__body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-900); }
.ticket-msg__time { margin: 0; font-size: 12px; color: var(--ink-500); }
.lang-my .ticket-msg__body { line-height: 1.9; }

.ticket-form { display: grid; gap: 12px; }
.ticket-form textarea { min-height: 96px; resize: vertical; }
.ticket-form__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ticket-too-old { align-items: center; }
.ticket-too-old > span { min-width: 0; }

/* 帮助页：联系人工那一块里的「留言给客服」（help.js 登录后才填内容） */
.help-ticket { display: grid; gap: 10px; margin: 0 0 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.help-ticket__title { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.help-ticket__links { display: flex; flex-wrap: wrap; gap: 8px; }
.help-dialog .help-ticket { border: 0; margin: 0 8px 8px; }

@media (max-width: 480px) {
  .ticket-msg { max-width: 94%; }
  .ticket-form__actions .btn { flex: 1 1 auto; }
}
/* W4 C6：搜索词命中商品规则表的提示卡（views/partials/rule-notice.php） */
.rule-notice > div { flex: 1; min-width: 0; }
.rule-notice p { margin: 0 0 6px; }
.rule-notice__emoji { font-size: 24px; line-height: 1; }
.rule-notice__title { font-weight: 700; }
.rule-notice--prohibited { background: var(--deal-50); border-color: var(--deal-600); }
.rule-notice--prohibited .rule-notice__title { color: var(--deal-700); }
.rule-notice--restricted { background: var(--amber-50); border-color: #f2d9a8; }
.rule-notice--restricted .rule-notice__title { color: var(--amber-700); }
/* W4 C4：买卖须知 /rules（views/pages/rules.php） */
.rules-page { padding-top: 16px; padding-bottom: 40px; }
.rules-page__intro { color: var(--ink-600, inherit); max-width: 70ch; }
.rules-cols { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 20px 0; }
@media (min-width: 960px) { .rules-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rules-col h2 { font-size: 18px; margin: 0 0 10px; }
.rules-col--ok h2 { color: var(--teal-700, #0f766e); }
.rules-col--cond h2 { color: var(--amber-700); }
.rules-col--no h2 { color: var(--deal-700); }
.rule-card { display: flex; gap: 10px; padding: 12px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 80px; }
.rule-card > div { flex: 1; min-width: 0; }
.rule-card h3 { font-size: 15px; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rule-card p { margin: 0 0 4px; font-size: 14px; overflow-wrap: anywhere; }
.rule-card__emoji { font-size: 22px; line-height: 1.2; }
.rule-card__eg { color: var(--ink-500, inherit); font-size: 13px; }
.rule-card.is-focus, .rule-card:target { border-color: var(--deal-600); box-shadow: 0 0 0 2px var(--deal-50); }
.rules-notes { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .rules-notes { grid-template-columns: 1fr 1fr; } }
.rules-notes h2 { font-size: 18px; }
.rules-notes li { margin: 0 0 6px; }

/* ── W5 增长与分享 ─────────────────────────────────────────────────────── */
/* G1 首页「买还是开店」：只给第一次来的访客（home.js 决定显示与否）。 */
.w5-welcome {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin: 16px 0 4px; padding: 18px 52px 18px 20px;
  background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius-lg);
}
.w5-welcome[hidden] { display: none; }
.w5-welcome__text { flex: 1 1 240px; min-width: 0; }
.w5-welcome__title { font-size: 18px; }
.w5-welcome__sub { margin: 4px 0 0; color: var(--ink-600); font-size: 14px; }
.w5-welcome__choices { display: flex; flex-wrap: wrap; gap: 10px; flex: 2 1 420px; }
.w5-welcome__choice {
  flex: 1 1 200px; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px;
  background: var(--surface); color: var(--ink-900); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; text-align: left; cursor: pointer; text-decoration: none;
}
.w5-welcome__choice:hover { border-color: var(--teal-500); color: var(--ink-950); }
.w5-welcome__choice--sell { border: 2px solid var(--teal-600); }
.w5-welcome__choice strong { display: block; font-size: 15px; }
.w5-welcome__choice small { display: block; color: var(--ink-600); font-size: 13px; line-height: 1.4; }
.w5-welcome__emoji { font-size: 28px; line-height: 1; }
.w5-welcome__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--radius-pill); color: var(--ink-600); cursor: pointer;
}
.w5-welcome__close:hover { background: var(--teal-100); }
@media (max-width: 600px) {
  .w5-welcome { padding: 14px 48px 14px 14px; }
  .w5-welcome__choices { flex-basis: 100%; }
}
/* G2 搜索没结果：「来开店」卡片 + 「有人开卖时通知我」。 */
.w5-invite { display: grid; gap: 10px; max-width: 560px; margin: 8px auto 24px; }
.w5-invite[hidden], .w5-invite__card[hidden] { display: none; }
.w5-invite__card {
  position: relative; padding: 16px 52px 18px 18px;
  background: var(--saffron-50); border: 1px solid var(--saffron-100); border-radius: var(--radius-lg);
}
.w5-invite__title { font-size: 17px; }
.w5-invite__body { margin: 6px 0 12px; color: var(--ink-700); }
.w5-invite__close {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--radius-pill); color: var(--ink-600); cursor: pointer;
}
.w5-invite__close:hover { background: var(--saffron-100); }
.w5-invite__notify {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; width: 100%;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink-900); font: inherit; text-align: left; cursor: pointer;
}
.w5-invite__notify:hover:not(:disabled) { border-color: var(--teal-500); }
.w5-invite__notify:disabled { cursor: default; }
.w5-invite__notify .i { color: var(--teal-600); flex: none; }
/* G4 附近大家在找什么（卖家中心、开店页）。 */
.w5-demand__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.w5-demand__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--blue-50); border-radius: var(--radius-sm); }
.w5-demand__list strong { min-width: 0; overflow-wrap: anywhere; }
.w5-demand__list .muted { flex: none; }
/* G2 账号页的到货提醒。 */
.w5-alerts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.w5-alerts__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.w5-alerts__row.is-found { border-color: var(--green-600); background: var(--green-50); }
.w5-alerts__icon { color: var(--teal-600); display: grid; }
.w5-alerts__text { flex: 1; min-width: 0; display: grid; }
.w5-alerts__text strong { overflow-wrap: anywhere; }
/* G5 店铺海报 / 贴纸（/seller/poster）。屏幕上是预览；打印时只留 [data-w5-print] 那一张。 */
.w5-poster-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.w5-poster-tabs .chip[aria-pressed="true"] { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.w5-poster-stage { display: grid; place-items: center; padding: 12px 0; overflow-x: auto; }
.w5-poster {
  width: min(420px, 100%); aspect-ratio: 1 / 1.414; display: flex; flex-direction: column; align-items: center;
  background: #fff; color: #171512; box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,.12)); overflow: hidden;
}
.w5-poster[hidden], .w5-sticker-sheet[hidden] { display: none; }
.w5-poster__sun { width: 100%; height: 18px; background: var(--saffron-500); flex: none; }
.w5-poster__name { margin: 20px 24px 0; font-size: clamp(22px, 6vw, 30px); font-weight: 900; text-align: center; overflow-wrap: anywhere; }
.w5-poster__qr { width: 62%; height: auto; margin: auto 0 10px; }
.w5-poster__lines { text-align: center; margin-bottom: auto; }
.w5-poster__lines p { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.35; }
.w5-poster__brand { width: 100%; padding: 12px; background: var(--teal-600); color: #fff; font-weight: 800; text-align: center; }
.w5-sticker-sheet { display: grid; grid-template-columns: repeat(2, 6cm); gap: .8cm; }
.w5-sticker {
  width: 6cm; height: 7.5cm; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px;
  background: #fff; color: #171512; border: 3px solid var(--teal-600); border-radius: 14px; text-align: center; overflow: hidden;
}
.w5-sticker__name { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w5-sticker img { width: 4.2cm; height: 4.2cm; }
.w5-sticker span { font-size: 10px; font-weight: 700; line-height: 1.3; }
.w5-poster-actions { display: flex; justify-content: center; margin-top: 12px; }
@media (max-width: 600px) { .w5-sticker-sheet { grid-template-columns: 6cm; } }
@media print {
  body * { visibility: hidden; }
  [data-w5-print], [data-w5-print] * { visibility: visible; }
  [data-w5-print] { position: absolute; left: 0; top: 0; box-shadow: none; }
  .w5-poster { width: 100%; }
  .w5-sticker-sheet { grid-template-columns: repeat(2, 6cm); }
  /* 不写 @page size：海报用 A5、贴纸用 A4，浏览器不能按页面内容换纸，让打印对话框里选。 */
}
/* G8 卖家等级徽章（trust-badges 里）。颜色只是辅助，文字写着等级。 */
.trust-badge--tier { font-weight: 700; }
.trust-badge--tier1 { color: #8a521f; background: #f7e6d6; }
.trust-badge--tier2 { color: #4d555c; background: #e8ebee; }
.trust-badge--tier3 { color: #7a5a00; background: #fbefc4; }

/* ── W2 恢复码页（/account/recovery-code，迁移 081） ───────────────────── */
.rc-page { max-width: 560px; padding-bottom: 32px; }
.rc-page .panel { display: grid; gap: 14px; }
.rc-points { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.rc-points__warn { color: var(--deal-700, #b3261e); font-weight: 700; }
.rc-status { margin: 0; color: var(--ink-600); }
.rc-code { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rc-code span { display: flex; align-items: center; justify-content: center; min-height: 56px; border: 2px solid var(--teal-600, #0b6e4f); border-radius: 10px; font: 800 clamp(18px, 5.4vw, 26px)/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--ink-900); background: var(--surface); }
.rc-tick { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; }
.rc-tick input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.rc-error { margin: 0; color: var(--deal-700, #b3261e); }
.rc-note { margin: 0; font-size: 13px; }

/* ── W2 已登录的设备（/account/devices，迁移 082） ─────────────────────── */
.dev-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.dev-row { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.dev-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dev-signout { color: var(--deal-700); }
/* G13 开店教学页。 */
.w5-guide { max-width: 720px; padding-bottom: 32px; }
.w5-guide__card { margin-top: 16px; }
.w5-guide__card p { margin: 8px 0 0; overflow-wrap: anywhere; }

/* ── W2 找回账号（/recover，迁移 085） ─────────────────────────────── */
.rec-form { display: grid; gap: 16px; }
.rec-code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.rec-other { margin-top: 16px; }
.rec-group { border: 1px solid var(--line); border-radius: var(--radius, 12px); padding: 12px; display: grid; gap: 12px; margin: 0; }
.rec-group legend { padding: 0 6px; font-weight: 650; }

/* W10：开店页上的「店铺套餐」一块（views/pages/sell.php），和上面数字商品那块隔开。 */
.sell-plans { display: grid; gap: 12px; justify-items: start; margin-top: 16px; }
.sell-plans .panel__title { margin-bottom: 0; }

/* W10（迁移 152）：商品页的视频（lib/product-video.js）。先给封面 + 播放键，点了才取视频，从不自动播放。 */
.pdp-video { margin-top: 12px; }
.pdp-video__poster {
  position: relative; display: grid; place-items: center; width: 100%; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-900); color: #fff; cursor: pointer;
}
.pdp-video__poster img, .pdp-video video {
  display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: var(--ink-900);
}
.pdp-video video { border-radius: var(--radius); }
.pdp-video__play {
  position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(4, 35, 44, .78); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
}
.pdp-video__play .i { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; }
.pdp-video__poster:hover .pdp-video__play { background: var(--teal-700); }
.pdp-video__poster:focus-visible { box-shadow: var(--ring); }
.pdp-video__meta {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(4, 35, 44, .78); font-size: 13px; font-weight: 650; font-family: var(--font-num);
}
.lang-my .pdp-video__meta { font-family: var(--font-my); }
.pdp-video__label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-700); }
.pdp-video__label .i { width: 16px; height: 16px; }
@media (max-width: 600px) { .pdp-video { margin: 12px var(--gutter) 0; } }
/* W11：店铺类型 / 地址可见度的单选卡、见面点行、店铺页位置行 */
.panel__sub { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.kind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kind-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; min-height: 44px; }
.kind-card:has(input:checked) { border-color: var(--teal-500); background: var(--teal-50); }
.kind-card:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.kind-card:has(input:focus-visible) { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.kind-card input { margin-top: 3px; }
.kind-card__body { display: grid; gap: 2px; min-width: 0; }
.meet-list { display: grid; gap: 10px; margin: 10px 0; }
.meet-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.meet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-where { display: grid; gap: 4px; margin: 6px 0; }
.shop-where__meet { margin: 0; padding-left: 18px; }
@media (max-width: 640px) {
  .kind-grid { grid-template-columns: 1fr; }
  .meet-row { grid-template-columns: 1fr; }
}
/* ── W8 商品页：保质期 / 临期 / 当天制作 / 药品信息（迁移 141 / 142） ──────────── */
.chip--life .i { width: 14px; height: 14px; }
.facts__near { color: var(--amber-700); }
/* 药品提示：放在购买按钮前面，买之前就看到「按说明服用」和数量上限。蓝色 = 说明，不是警告。 */
.med-note { display: flex; gap: 12px; margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--blue-700); border-radius: var(--radius-sm); background: var(--blue-50); color: var(--blue-700); font-size: 13.5px; line-height: 1.6; }
.med-note > .i { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.med-note p + p { margin-top: 4px; }
.med-note__reg { font-weight: 700; color: var(--ink-900); overflow-wrap: anywhere; }
.lang-my .med-note { line-height: 1.9; }
.med-panel .panel__title .i { width: 20px; height: 20px; color: var(--blue-700); }
.med-spec { display: grid; gap: 0; border-top: 1px solid var(--line); font-size: 14px; }
.med-spec div { display: grid; grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.med-spec dt { color: var(--ink-500); }
.med-spec dd { color: var(--ink-900); font-weight: 600; overflow-wrap: anywhere; }
.lang-my .med-spec { line-height: 1.9; }
.med-panel__sub { margin: 16px 0 6px; font-size: 15px; font-weight: 750; }
.med-panel__foot { margin-top: 14px; color: var(--ink-500); font-size: 13px; }

/* ── W12 评价照片、举报评价、举报凭证、申诉标签（迁移 172 / 171） ─────────── */
.review__photos { display: flex; flex-wrap: wrap; gap: 6px; }
.review__photo { display: block; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--ink-100, #eee); }
.review__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-picker { display: grid; gap: 6px; }
.photo-picker__title { margin: 0; font-weight: 650; }
.photo-picker__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-picker__grid:empty { display: none; }
.photo-picker__item { position: relative; width: 72px; height: 72px; }
.photo-picker__item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.photo-picker__remove { position: absolute; top: -8px; inset-inline-end: -8px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--deal-700, #b3261e); color: #fff; cursor: pointer; }
.photo-picker__remove .i { width: 14px; height: 14px; }
.photo-picker__count { margin: 0; color: var(--ink-500); font-size: 12.5px; }
.photo-viewer { max-width: min(96vw, 900px); max-height: 94vh; padding: 0; border: 0; background: #000; }
.photo-viewer img { display: block; max-width: 100%; max-height: 94vh; margin: auto; }
.photo-viewer__close { position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(255,255,255,.9); }
.health-appeal__labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }

/* ── W13：规格（variants）和划线价（sale） ─────────────────────────────── */
.price-block { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.price__from { font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink-600); }
.price__from:first-child { margin-inline-end: 4px; }
.price__from:last-child:not(:first-child) { margin-inline-start: 4px; }
.price__was { color: var(--ink-500); font-size: 14px; font-weight: 500; text-decoration: line-through; }
.price--xl ~ .price__was { font-size: 18px; }
.price__off { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--deal-700); color: #fff; font-size: 12.5px; font-weight: 800; line-height: 1.5; white-space: nowrap; }
.price--xl ~ .price__off { font-size: 14px; }
.lang-my .price__off { line-height: 1.7; }
.pricebox__sale-end { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--deal-700); font-size: 13.5px; font-weight: 600; }
.pricebox__sale-end[hidden] { display: none; }
.pricebox__sale-end .i { width: 15px; height: 15px; }

a.pcard__add { text-decoration: none; }

.variants { display: grid; gap: 12px; padding: 4px 0 8px; border-radius: var(--radius-xs); }
.variants.is-attn { outline: 2px solid var(--deal-700); outline-offset: 6px; }
.variant-group__label { margin: 0 0 6px; color: var(--ink-600); font-size: 13.5px; font-weight: 600; }
.variant-group__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip {
  min-height: 40px; max-width: 100%; padding: 8px 14px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: 10px;
  background: var(--surface); color: var(--ink-800); font: inherit; font-size: 14.5px; line-height: 1.3; cursor: pointer;
  overflow-wrap: anywhere; transition: border-color .15s, background .15s;
}
.lang-my .variant-chip { line-height: 1.7; }
.variant-chip:hover { border-color: var(--teal-500); }
.variant-chip.is-selected { border-color: var(--teal-500); background: var(--teal-50); color: var(--teal-800); font-weight: 700; box-shadow: inset 0 0 0 1px var(--teal-500); }
.variant-chip.is-soldout { border-style: dashed; background: var(--surface-2); color: var(--ink-500); text-decoration: line-through; cursor: not-allowed; }
.variant-chip.is-soldout:hover { border-color: var(--line); }
@media (hover: none) { .variant-chip { min-height: 44px; } }
.variants__hint { margin: 0; min-height: 1.4em; color: var(--ink-600); font-size: 13.5px; }
.lang-my .variants__hint { line-height: 1.7; }

.cart-line__variant, .summary-item__variant { margin: 2px 0 0; color: var(--ink-600); font-size: 13px; overflow-wrap: anywhere; }
.lang-my .cart-line__variant, .lang-my .summary-item__variant { line-height: 1.7; }
a.cart-line__warn { text-decoration: underline; }

/* ── W41 手机页头（≤767px）：购物车、语言、菜单、品牌都放大到好点的尺寸，320/360/390 三种语言都得一行放下 ── */
.mlang { display: none; }
@media (max-width: 900px) {
  .mlang { display: block; flex: none; }
  .mlang__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 44px; height: 44px; padding: 0 6px;
    border: 0; border-radius: var(--radius-sm); background: none; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.6;
  }
  .mlang__btn .i { width: 20px; height: 20px; }
  .dropdown.mlang .dropdown__menu { right: -4px; }
  .masthead__actions { gap: 0; }
  .action--cart { min-width: 44px; min-height: 44px; justify-content: center; }
}
@media (max-width: 767px) {
  .masthead__inner { flex-wrap: wrap; row-gap: 6px; column-gap: 4px; }
  .masthead__menu { width: 44px; height: 44px; margin-left: -10px; flex: none; }
  .masthead__menu .i { width: 27px; height: 27px; }
  /* flex-basis 0：品牌永远不会因为字太长把语言/购物车挤到第二行，字放不下就省略号 */
  .brand { flex: 1 1 0; min-width: 0; gap: 8px; }
  .brand__mark { width: 40px; height: 40px; flex: none; }
  .brand__text { min-width: 0; }
  .brand__name, .lang-my .brand__name { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lang-my .brand__name { font-size: 20px; line-height: 1.9; padding-block: 1px; }
  .masthead__actions { margin-right: -4px; margin-left: 0; flex: none; }
  .action--cart { min-width: 44px; min-height: 44px; padding: 8px; justify-content: center; }
  .action--cart .i { width: 28px; height: 28px; }
  .action--cart .badge { top: -5px; right: -8px; min-width: 20px; height: 20px; font-size: 12px; line-height: 20px; }
}
/* 窄屏：语言按钮只留地球（44px 点击区），名字在点开的菜单里 */
@media (max-width: 350px) {
  .mlang__code { display: none; }
  .mlang__btn { padding: 0; }
  .brand__name, .lang-my .brand__name { font-size: 17px; }
  .lang-my .brand__name { font-size: 18px; }
  .brand__mark { width: 38px; height: 38px; }
}
/* W41：首页「开店」块的摊位插画固定 300px，320px 屏上把整页撑到 349px（手机浏览器因此缩小布局视口，页头跟着变形） */
@media (max-width: 767px) {
  .opening { grid-template-columns: minmax(0, 1fr); }
  .stall { max-width: 100%; }
}

/* ── 「下载 App」二维码：可点，点开分享弹窗（views/partials/qr-share.php） ── */
.qr-tap { text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
/* 不在这里设 color：卡片自己的 color（--ink-600）要留着，否则白卡上的说明字跟着深色横幅变成白色 */
.qr-tap:hover { text-decoration: none; }
.app-band__qr.qr-tap:hover, .app-hero__qr.qr-tap:hover, .qr-card.qr-tap:hover, .popover--qr .qr-tap:hover { color: var(--ink-600); }
.popover--qr .qr-tap { color: var(--ink-600); }
.qr-tap:hover img, .qr-tap:focus-visible img { box-shadow: 0 0 0 3px var(--teal-100); }
.qr-tap:not(.qr-card):active { transform: scale(.98); }
.popover--qr .qr-tap { display: block; }
.qr-share__panel { display: grid; justify-items: center; gap: 10px; margin-top: 4px; }
.qr-share__panel img { width: 168px; height: 168px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qr-share__url { width: 100%; text-align: center; font-size: 14px; }
.qr-share__status { min-height: 1.4em; text-align: center; }
.qr-share__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.qr-share__actions .btn { justify-content: center; min-width: 0; white-space: normal; }
@media (max-width: 360px) { .qr-share__actions { grid-template-columns: 1fr; } }
/* 「分享到」一排社交 App（Simple Icons，CC0）。品牌色用类名，不用 style=""（CSP 会丢掉行内样式）。 */
.qr-share__social { display: grid; gap: 8px; margin-top: 6px; }
.qr-share__social-title { font-size: 13px; font-weight: 700; color: var(--ink-600); }
.qr-share__apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.qr-share__app { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 6px 2px; border: 0; background: none; border-radius: var(--radius-sm); color: var(--ink-700); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.qr-share__app:hover, .qr-share__app:focus-visible { background: var(--teal-50); color: var(--ink-900); text-decoration: none; }
.qr-share__app-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--app, var(--teal-600)); }
.qr-share__app-icon svg { width: 24px; height: 24px; fill: #fff; }
.qr-share__app-name { line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.qr-share__app-icon--viber { --app: #7360f2; }
.qr-share__app-icon--messenger { --app: #0084ff; }
.qr-share__app-icon--facebook { --app: #0866ff; }
.qr-share__app-icon--telegram { --app: #26a5e4; }
.qr-share__app-icon--whatsapp { --app: #25d366; }
.qr-share__app-icon--wechat { --app: #07c160; }
@media (max-width: 420px) { .qr-share__apps { grid-template-columns: repeat(3, 1fr); } }
