/* ==========================================================================
   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; }
.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; }
.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--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; }
.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); } }

/* ── 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;
}
.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; }
.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.2fr) auto auto; align-items: center; gap: 40px; padding-top: 44px; padding-bottom: 0; }
.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 { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.4); transition: width .25s var(--ease), background .2s; }
.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); }
.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; }
.cat-tiles > li > .cat-tile { flex: 1; }
.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; }
.lang-my .cat-tile__name { font-size: 13px; line-height: 1.6; }
.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; } }

/* ── 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; 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; }
.sortbar__title { 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; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.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; }
.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; }
.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; }
.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); }
.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; }
.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; gap: 10px; flex: none; }
.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 { 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; }
.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; }
.cart-line.is-unavailable { opacity: .6; }
.cart-group__foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.cart-group__subtotal { color: var(--ink-600); }
.cart-group__subtotal strong { color: var(--deal-600); font-size: 18px; margin-left: 6px; }
.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; }
.cart-summary__rows dt { color: var(--ink-600); }
.cart-summary__rows dd { font-weight: 700; text-align: right; }
.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: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; }
.order-detail__side .pay-qr { flex-direction: column; align-items: center; text-align: center; }
.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; gap: 12px; }
.order-card { display: grid; 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; }
.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; }
.nearby-pick { position: relative; }
.nearby-pick > summary { list-style: none; }
.nearby-pick > summary::-webkit-details-marker { display: none; }
.nearby-pick[open] > summary { border-color: var(--teal-500); background: var(--teal-50); color: var(--teal-700); }
.nearby-pick__form {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; gap: 10px; width: min(340px, 86vw); 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); }

/* 我的 */
.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; }
.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__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; }

/* ── 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; }
  .app-band__phone { display: none; }
  .app-band__qr { margin-bottom: 0; }
  .app-band__copy { padding-bottom: 44px; }
  .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; gap: 20px; }
  .app-band__qr { display: none; }
  .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; }
  .cart-line__right { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; }
  .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; }
  .nearby-hero__actions > .btn, .nearby-pick { flex: 1 1 160px; }
  .nearby-hero--located .nearby-hero__actions > .btn, .nearby-hero--located .nearby-pick { flex-basis: 128px; }
  .nearby-hero--located .nearby-hero__privacy { display: none; }
  .nearby-pick > summary { width: 100%; }
  .nearby-pick__form { position: static; width: auto; margin-top: 8px; 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; }
}
