/* AOB CAKE · 样式预览
 * 方向: 编辑感极简 + 水彩插画(参照 Breadly 面包店点单)。移动端优先, 桌面居中成一列。
 * 字阶 1.25: 13 / 16 / 20 / 25 / 31 · 间距 4px 栅格 · 圆角两档 16 / 999 · 阴影两级 */
:root {
  --bg: #F4F2EE;
  --surface: #FFFEFC;
  --paper: #FFFEFA;
  --ink: #3B2A1F;          /* 取自 logo */
  --ink-2: #6B5D52;
  --ink-3: #74685E;          /* 在页面底上 4.84:1 */
  --line: #E4DED6;
  --accent: #FF6A2A;       /* 取自 logo 的橙, 只做点缀 */
  --on-ink: #FBF8F4;
  --danger: #B3261E;       /* 只用在表单报错 */
  --sh-1: 0 1px 2px rgba(59, 42, 31, .06), 0 4px 12px rgba(59, 42, 31, .05);
  --sh-2: 0 8px 24px rgba(59, 42, 31, .12);
  --r: 16px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
/* 全站不许双击放大(用户 10-11 定; 起因是直播间连点赞时 iPhone 当成双击放大)。单独要 none 的(弹窗图片拖动)用 class 盖掉 */
*, *::before, *::after { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; }
/* 所有页面只许上下滑，整页不许左右漂（蛋糕卡片条、详情相册、会员卡片这几个是故意横滑的，在它们自己里面滑） */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.locked { position: fixed; left: 0; right: 0; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* :where 把优先级压到 0，各处 .xxx svg 的尺寸才能覆盖它 */
svg:where(:not(.cake):not(.tray-art)) {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* 桌面上也只是一列手机宽的店 */
.bar, main { max-width: 480px; margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  background: var(--bg);
}
.bar-right { justify-self: end; }
.brand { display: flex; align-items: center; gap: 6px; min-width: 0; text-decoration: none; color: inherit; }
.brand img { display: block; height: 28px; width: auto; flex: none; }
.brand-x { font-size: 14px; color: var(--ink-3); }
.brand .brand-jimi { height: 30px; width: 30px; border-radius: 8px; }
.brand-jimi-t { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.icon-btn {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--sh-1);
}
.icon-btn.sm { width: 32px; height: 32px; box-shadow: none; background: var(--bg); }
.icon-btn.sm svg { width: 16px; height: 16px; }
.bag-dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface);
}

/* ---------- 开头 ---------- */
.intro { padding: 8px 16px 0; text-align: center; }
.intro h1 {
  margin-top: 16px;
  font-size: 31px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em;
}
.lede { margin: 8px auto 0; max-width: 20em; font-size: 16px; color: var(--ink-2); }
.paused {
  display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--sh-1); font-size: 13px; color: var(--ink);
}
/* 分类多了(加了榴莲)一行放不下：「全部」固定在左边，其余横着滑；放得下时整排居中。
 * 右边还有分类时盖一层渐隐 + 箭头告诉顾客能往右滑(10-03 用户要求) */
.cat-bar { position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.cat-bar > .chip { flex: none; }
.chips { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips.scrolled { -webkit-mask-image: linear-gradient(to right, transparent, #000 20px); mask-image: linear-gradient(to right, transparent, #000 20px); }
.chips-more {
  position: absolute; right: 0; top: 0; width: 48px; height: 32px;
  display: flex; align-items: center; justify-content: flex-end;
  background: linear-gradient(to right, rgb(244 242 238 / 0), var(--bg) 60%);
}
.chips-more[hidden] { display: none; }
.chips-more svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .chips-more svg { animation: none; } }
.chip {
  flex: none; white-space: nowrap;
  height: 32px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2);
  border: 1px solid transparent;
  transition: background-color .15s ease-out, border-color .15s ease-out;
}
.chip[aria-selected="true"] { background: var(--surface); border-color: var(--ink); color: var(--ink); font-weight: 600; }

/* ---------- 货架 ---------- */
.shelf { margin-top: 16px; }
.rail {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  /* 不吸附：自动滚动是连续的小步位移，开着 snap 会被一直吸回格子 */
  padding: 12px 16px 28px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  position: relative; flex: 0 0 128px;
  padding: 12px 8px 28px; border-radius: var(--r);
  background: var(--surface); box-shadow: var(--sh-1);
  text-align: center;
}
.card-art { aspect-ratio: 200 / 160; }
.card-art .cake { width: 100%; height: 100%; display: block; }
/* 后台上传的真图：跟插画同一个画框，整张放进去不裁 */
.cake-img { aspect-ratio: 200 / 160; object-fit: contain; -webkit-user-drag: none; user-select: none; }

/* 货架加载中 / 出错 / 没货 */
.rail-msg {
  flex: 1; display: grid; place-items: center; gap: 12px; min-height: 184px;
  font-size: 16px; color: var(--ink-2); text-align: center;
}
.rail-msg .chip { border-color: var(--line); background: var(--surface); color: var(--ink); }
.card h3 { margin-top: 4px; font-size: 13px; line-height: 1.4; font-weight: 600; }
.price { font-size: 13px; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.price span { margin-left: 4px; color: var(--ink-3); }
.add {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--sh-2);
  transition: transform .15s ease-out;
}
.add:active { transform: translateX(-50%) scale(.92); }
.add svg { width: 18px; height: 18px; stroke-width: 2; }

.track { position: relative; height: 2px; margin: 4px 16px 0; border-radius: 999px; background: var(--line); }
.thumb {
  position: absolute; left: 0; top: -1px; height: 4px; border-radius: 999px;
  background: var(--ink-2); will-change: transform;
}

/* ---------- 托盘 ---------- */
.tray-wrap { position: relative; margin-top: 32px; padding: 0 16px 28px; }
.tray { position: relative; aspect-ratio: 400 / 170; }
.tray-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tray-slots {
  position: absolute; left: 9%; right: 9%; top: -14%; height: 88%;
  display: flex; justify-content: center; align-items: flex-end; gap: 0;
}
.slot-item { position: relative; width: 40%; margin: 0 -3%; }
.tray-slots[data-n="1"] .slot-item { width: 48%; }
.slot-item .cake { display: block; width: 100%; height: auto; }
/* 抠好背景的托盘图：底边贴着托盘放，下面一点影子让它像是摆在托盘上 */
.cake-cut { object-position: 50% 100%; filter: drop-shadow(0 6px 6px rgba(59, 42, 31, .22)); }
.badge {
  position: absolute; bottom: 10%; right: 8%;
  min-width: 28px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-size: 13px; line-height: 22px; font-weight: 600; text-align: center;
  font-variant-numeric: tabular-nums;
}
/* 托盘上每块左上角的 ×：看着 24px，点的范围 44px */
.slot-del {
  position: absolute; top: 8%; right: 6%; z-index: 2;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-1);
}
.slot-del::before { content: ""; position: absolute; inset: -10px; }
.slot-del svg { width: 14px; height: 14px; stroke-width: 2.25; }
.more {
  position: absolute; right: -4%; top: 4%;
  height: 24px; padding: 0 8px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--sh-1);
  font-size: 13px; line-height: 24px; color: var(--ink-2);
}
.tray-empty {
  position: absolute; left: 12%; right: 12%; top: 45%;
  text-align: center; font-size: 13px; color: var(--ink);
  opacity: .72;
}
.fly-ghost { position: fixed; z-index: 48; pointer-events: none; will-change: transform; }
.fly-ghost .cake { width: 100%; height: 100%; display: block; }

.cta {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-size: 16px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--sh-2);
  transition: opacity .15s ease-out;
}
.cta svg { width: 18px; height: 18px; }
.cta:disabled { opacity: .4; box-shadow: none; }
.cta:not(:disabled):active { opacity: .88; }

.note { margin: 24px 16px 48px; text-align: center; font-size: 13px; color: var(--ink-3); }
/* 首页底部的说明链接(售后与投诉), 紧挨着下面的备案号 */
.note-links { margin-bottom: 0; }
.note-links + .note { margin-top: 8px; }
.note a { color: var(--ink-2); text-underline-offset: 3px; }

/* ---------- 小票 ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.scrim {
  position: absolute; inset: 0;
  background: rgba(59, 42, 31, .32);
  opacity: 0; transition: opacity .2s ease-out;
}
.receipt-box {
  position: absolute; left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 400px; margin: 0 auto;
}
.slot {
  position: relative; z-index: 1;
  height: 16px; margin: 0 -8px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--sh-2), inset 0 -6px 0 -3px #D9D2C8;
}
.paper-clip {
  margin-top: -8px; padding: 0 0 16px;
  overflow: hidden;
  filter: drop-shadow(0 8px 16px rgba(59, 42, 31, .14));
}
/* 小票高度固定：标题、合计、结算按钮不随品种多少移动，品种多了只在中间列表里上下滑 */
.paper {
  display: flex; flex-direction: column;
  height: min(540px, calc(100dvh - 96px));
  padding: 24px 20px 32px;
  background: var(--paper);
  transform: translateY(-101%);
  transition: transform .26s var(--ease-out);
  /* 撕纸锯齿边 */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x;
}
.sheet.open .scrim { opacity: 1; }
.sheet.open .paper { transform: none; }

.paper-head { display: flex; align-items: center; gap: 8px; flex: none; }
.paper-head h2 { flex: 1; font-size: 20px; line-height: 1.25; font-weight: 700; outline: none; }

.pane {
  flex: 1; min-height: 0; margin-top: 12px;
  /* 只许上下滑：不写 overflow-x 的话会跟着变成 auto，里面宽一点就能左右晃 */
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
}
/* 能滑的方向边缘淡出，提示上面/下面还有 */
.pane.more-up   { -webkit-mask: linear-gradient(transparent, #000 24px); mask: linear-gradient(transparent, #000 24px); }
.pane.more-down { -webkit-mask: linear-gradient(#000 calc(100% - 32px), transparent); mask: linear-gradient(#000 calc(100% - 32px), transparent); }
.pane.more-up.more-down { -webkit-mask: linear-gradient(transparent, #000 24px, #000 calc(100% - 32px), transparent); mask: linear-gradient(transparent, #000 24px, #000 calc(100% - 32px), transparent); }
.more-hint-wrap { position: relative; height: 0; z-index: 2; }
.more-hint { position: absolute; left: 50%; bottom: 6px; display: inline-flex; align-items: center; gap: 2px; padding: 0 8px 0 12px; border-radius: 999px; background: rgba(59, 42, 31, .82); color: #fff; font-size: 12px; line-height: 26px; transform: translateX(-50%); box-shadow: var(--sh-1); animation: more-bob 1.6s ease-in-out infinite; }
.more-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes more-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 2px); } }
@media (prefers-reduced-motion: reduce) { .more-hint { animation: none; } }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li:last-child { border-bottom: 0; }
.lines li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n s" "p s";
  column-gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.ln-name { grid-area: n; font-size: 16px; line-height: 1.4; font-weight: 600; }
.ln-name span { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.ln-price { grid-area: p; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stepper { grid-area: s; display: flex; align-items: center; gap: 4px; }
.stepper button {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line);
}
.stepper button svg { width: 14px; height: 14px; stroke-width: 2; }
.stepper output { min-width: 24px; text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lines-empty { display: grid; place-items: center; height: 100%; min-height: 80px; font-size: 16px; color: var(--ink-2); }

.sum { flex: none; margin: 12px 0 0; }
.sum div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 16px; }
.sum dt { color: var(--ink-2); }
.sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum .muted { color: var(--ink-3); font-size: 13px; line-height: 25.6px; }
.sum .total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 700; }
.sum .total dt { color: var(--ink); }


.cta-inline { position: static; transform: none; width: 100%; margin-top: 24px; flex: none; }
.cta-inline[aria-busy="true"] { opacity: .7; }

/* ---------- 结算 ---------- */
.ck { padding-bottom: 16px; }
.field { margin-top: 20px; }
.field:first-child { margin-top: 4px; }
/* 联系人 + 手机号并排；报错字各在各的格子下面 */
.field-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; margin-top: 20px; align-items: start; }
.field-row > .field { min-width: 0; margin-top: 0; }
.field-label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--ink-2); }
.field-label span { margin-left: 4px; color: var(--ink-3); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); }
.seg button { height: 40px; border-radius: 999px; font-size: 16px; color: var(--ink-2); transition: background-color .15s ease-out; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--sh-1); }
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); text-align: left;
}
.opt b { display: block; font-size: 16px; font-weight: 600; }
.opt small { display: block; font-size: 13px; color: var(--ink-3); }
.opt svg { opacity: 0; width: 18px; height: 18px; stroke-width: 2.25; }
.opt[aria-checked="true"] { border-color: var(--ink); }
.opt[aria-checked="true"] svg { opacity: 1; }
/* 收货地址：搜索 + 定位 + 联想列表 + 选中卡片 + 门牌号 */
.place-row { display: flex; gap: 8px; }
.place-row .input { flex: 1; min-width: 0; }
.loc {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  height: 48px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--ink);
}
.loc svg { width: 16px; height: 16px; }
.loc[aria-busy="true"] { opacity: .6; }
.sugs { list-style: none; margin: 8px 0 0; padding: 4px 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.sugs li + li { border-top: 1px dashed var(--line); }
.sugs button { display: block; width: 100%; padding: 8px 12px; text-align: left; }
.sugs b { display: block; font-size: 16px; font-weight: 600; }
.sugs small, .sug-head { display: block; font-size: 13px; color: var(--ink-3); }
.sug-head { padding: 4px 12px; }
.picked {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--surface);
}
.picked span { min-width: 0; }
.picked b { display: block; font-size: 16px; font-weight: 600; }
.picked small { display: block; font-size: 13px; color: var(--ink-3); }
.picked button { flex: none; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.door { margin-top: 8px; }
.lead { margin-bottom: 8px; padding: 8px 12px; border-radius: var(--r); background: var(--bg); font-size: 13px; color: var(--ink); }
/* 日期不横滑(9-26 老板要求页面不许左右漂)：放不下就换行 */
.dates {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px;
  padding: 2px 0 4px;
}
.date {
  min-width: 0; padding: 8px 0; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); text-align: center;
}
.date b { display: block; font-size: 13px; font-weight: 600; }
.date small { display: block; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.date[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.date[aria-checked="true"] small { color: var(--on-ink); opacity: .8; }
.date:disabled, .slot2:disabled { opacity: .38; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.slot2 {
  height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.slot2[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); font-weight: 600; }
.input {
  display: block; width: 100%; min-height: 48px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink);   /* ≥16px, iOS 点进去不会整页放大 */
  resize: none; transition: border-color .15s ease-out;
}
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--ink); }
.err { margin-top: 4px; font-size: 13px; color: var(--danger); }
.field.invalid .input, .field.invalid .opt, .field.invalid .slot2:not(:disabled), .field.invalid .date:not(:disabled) { border-color: var(--danger); }
.ck-note { margin-top: 20px; font-size: 13px; color: var(--ink-3); }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 8px; }
.done-icon { width: 40px; height: 40px; stroke-width: 1.5; }
.done-title { margin-top: 8px; font-size: 20px; font-weight: 700; }
.done-status { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.done[data-status="cancelled"] .done-code { color: var(--ink-3); text-decoration: line-through; }

/* ---------- 我下过的单 ---------- */
.mine-list { list-style: none; margin: 0; padding: 0; }
.mine-list li { border-bottom: 1px dashed var(--line); }
.mine-list li:last-child { border-bottom: 0; }
.mine-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 64px; padding: 12px 0; text-align: left;
}
.mine-main { flex: 1; min-width: 0; }
.mine-thumb { width: 44px; height: 44px; }
.mine-main b { display: block; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mine-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-3); }
.mine-side { flex: none; text-align: right; }
.mine-side em { display: block; font-style: normal; font-size: 13px; font-weight: 600; }
.mine-side em[data-status="cancelled"], .mine-side em[data-status="done"] { font-weight: 400; color: var(--ink-3); }
.mine-side small { display: block; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mine-row.is-gone { color: var(--ink-3); }
.mine-row.is-loading span { display: block; width: 60%; height: 16px; border-radius: 999px; background: var(--bg); }
.done-code-label { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.done-code { font-size: 39px; line-height: 1.2; font-weight: 700; letter-spacing: .2em; font-variant-numeric: tabular-nums; padding-left: .2em; }
.done-info { align-self: stretch; margin: 16px 0 0; border-top: 1px dashed var(--line); text-align: left; }
.done-info div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.done-info dt { flex: none; color: var(--ink-3); }
.done-info dd { margin: 0; text-align: right; }

/* ---------- 蛋糕详情 ----------
 * det-bg 是一块纯白底板，从卡片的位置和大小 scale 到全屏(只动 transform，里面没内容所以不会被拉变形)；
 * 蛋糕图单独从卡片图的位置飞到顶部；文字和底栏等底板铺开后再淡入。 */
.card { cursor: pointer; }
.card:active { transform: scale(.98); }
.card { transition: transform .15s ease-out; }
.detail { position: fixed; inset: 0; z-index: 45; }
.det-scrim { position: absolute; inset: 0; background: rgba(59, 42, 31, .18); opacity: 0; transition: opacity .3s ease-out; }
.det-bg {
  position: absolute; left: 0; top: 0; width: 100vw; height: 100vh;
  background: var(--surface); transform-origin: 0 0; will-change: transform;
}
.det-page { position: absolute; inset: 0; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; }
.det-top {
  position: absolute; z-index: 2; left: 0; right: 0;
  top: env(safe-area-inset-top); height: 64px; padding: 0 16px;
  display: flex; align-items: center;
}
.det-top .icon-btn { opacity: 0; transition: opacity .2s ease-out; }
.det-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-top: calc(64px + env(safe-area-inset-top)); }
.det-hero { display: grid; place-items: center; padding: 8px 16px 0; }
.det-art { width: min(84vw, 360px); aspect-ratio: 200 / 160; }
.det-art .cake { display: block; width: 100%; height: 100%; }
/* 多图相册：横向一张一张吸住，不露滚动条 */
.gal {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; border-radius: var(--r);
}
.gal::-webkit-scrollbar { display: none; }
.gal .cake { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.gal-dots { display: flex; justify-content: center; gap: 6px; height: 16px; padding-top: 10px; }
.gal-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: background-color .15s ease-out; }
.gal-dots i.on { background: var(--ink); }
.det-text { padding: 24px 24px 32px; }
.det-cat {
  display: inline-block; height: 24px; padding: 0 8px; border-radius: 999px;
  background: var(--bg); font-size: 13px; line-height: 24px; color: var(--ink-2);
}
.det-text h2 { margin-top: 12px; font-size: 31px; line-height: 1.2; font-weight: 700; }
.det-price { margin-top: 8px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.det-price span { margin-left: 8px; font-size: 16px; font-weight: 400; color: var(--ink-3); }
.det-desc { margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 34em; }
.det-info { margin: 24px 0 0; border-top: 1px dashed var(--line); }
.det-info div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.det-info dt { color: var(--ink-3); flex: none; }
.det-info dd { margin: 0; text-align: right; }
.det-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); box-shadow: 0 -1px 0 var(--line);
}
.det-bar .stepper button { width: 44px; height: 44px; }
/* 按个卖(榴莲)：选具体哪一个果，不要数量加减 */
.det-units { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.by-unit .det-units { display: grid; }
.by-unit .det-bar .stepper { display: none; }
.det-unit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); text-align: left; }
.det-unit b { font-size: 15px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.det-unit span { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.det-unit[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.det-unit[aria-checked="true"] span { color: var(--on-ink); opacity: .8; }
.det-unit:disabled { opacity: .45; }
.det-add:disabled { opacity: .5; }
.det-add { flex: 1; min-width: 0; margin-top: 0; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; }   /* 320 宽时别把底栏撑出屏幕 */
.fade { opacity: 0; transform: translateY(16px); transition: opacity .2s ease-in, transform .2s ease-in; }
.detail.open .det-scrim, .detail.open .det-top .icon-btn { opacity: 1; }
.detail.open .fade { opacity: 1; transform: none; transition: opacity .24s ease-out .14s, transform .3s var(--ease-out) .14s; }
.detail.closing .fade, .detail.closing .det-top .icon-btn { opacity: 0; transform: none; transition: opacity .09s ease-in; }
.det-page:focus { outline: none; }

/* 卡片整张可点：名字是真按钮(键盘能到)，::after 撑满整张卡；+ 号压在上面单独响应 */
.card h3 { position: static; }
.card-open { font-weight: inherit; }
.card-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.card-open:focus-visible { outline: none; }
.card-open:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 2px; }
.add { z-index: 1; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 8px);
  padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease-out, transform .2s ease-out;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (hover: hover) {
  .icon-btn:hover, .add:hover { box-shadow: var(--sh-2); }
  .chip:hover { border-color: var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media (min-width: 420px) {
  .card { flex-basis: 136px; }
}

/* ---------- 积分抵扣开关 / 常用地址 ---------- */
.sw { position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); transition: background-color .15s ease-out; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: var(--sh-1); transition: transform .15s ease-out; }
.sw[aria-checked="true"] { background: var(--ink); }
.sw[aria-checked="true"]::after { transform: translateX(20px); }
.pts-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.sum .off { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); text-align: right; line-height: 1.2; }
.book { margin-bottom: 8px; }
.book + #ckPicker { margin-top: 8px; }

/* ---------- 我的 ---------- */
.me { position: fixed; inset: 0; z-index: 45; }
.me-page {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); outline: none;
  transform: translateX(-100%); transition: transform .24s var(--ease-out);
}
.me.open .me-page { transform: none; }
.me-top { flex: none; display: flex; align-items: center; gap: 4px; height: 64px; padding: 0 12px; padding-top: env(safe-area-inset-top); }
.me-top h2 { font-size: 20px; font-weight: 700; }
.me-body { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 8px 16px calc(32px + env(safe-area-inset-bottom)); max-width: 480px; width: 100%; margin: 0 auto; }
.me-head { display: flex; align-items: center; gap: 12px; padding: 8px 0 16px; }
.me-av { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-1); object-fit: cover; color: var(--ink-3); }
.me-av svg { width: 28px; height: 28px; }
.me-who { min-width: 0; }
.me-who b { display: block; font-size: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-who small { display: block; font-size: 13px; color: var(--ink-3); }
.me-hint { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--r); background: var(--surface); font-size: 13px; color: var(--ink-2); }
.me-login { margin: 0 0 16px; }
.me-card {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border-radius: var(--r);
  background: var(--surface); box-shadow: var(--sh-1); text-align: left;
}
.me-card.flat { margin-bottom: 16px; }
.me-pts { flex: 1; }
.me-pts small { display: block; font-size: 13px; color: var(--ink-3); }
.me-pts b { display: block; font-size: 31px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.me-rule { font-size: 13px; line-height: 1.6; color: var(--ink-3); text-align: right; }
.chev { width: 18px; height: 18px; color: var(--ink-3); }
.me-list { margin-top: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.me-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; font-size: 16px; text-align: left; }
.me-list button + button { border-top: 1px solid var(--line); }
.me-list span { flex: 1; }
.me-list em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.me-logout { display: block; margin: 32px auto 0; padding: 12px; font-size: 13px; color: var(--ink-3); }
.me-empty { padding: 32px 0; text-align: center; font-size: 16px; color: var(--ink-2); }
.me-empty .me-login { margin-top: 16px; }
.me-ledger { list-style: none; margin: 0; padding: 0 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.me-ledger li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.me-ledger li + li { border-top: 1px dashed var(--line); }
.me-ledger b { display: block; font-size: 16px; font-weight: 600; }
.me-ledger small { display: block; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.me-ledger em { font-style: normal; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.me-ledger em.plus { color: var(--accent); }
/* 「我的」首页(10-03 改宫格)：资产三格一张卡 + 我的订单 / 常用功能两块图标宫格，一排四个 */
.me-assets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 12px 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.me-asset { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 4px 8px; }
.me-asset + .me-asset { border-left: 1px solid var(--line); }
.me-asset b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; line-height: 1.25; font-weight: 700; font-variant-numeric: tabular-nums; }
.me-asset small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-3); }
.me-panel { margin-top: 12px; padding: 16px 4px 4px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.me-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 8px; }
.me-panel-head b { font-size: 16px; font-weight: 600; }
.me-panel-head button { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; font-size: 13px; color: var(--ink-3); }
.me-panel-head .chev { width: 16px; height: 16px; }
.me-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.me-ic { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 8px 0 12px; border-radius: 12px; }
.me-ic-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #F6EEE7; color: var(--ink); }
.me-ic-i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.me-ic-t { font-size: 13px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
.me-ic small { margin-top: -6px; font-size: 13px; line-height: 1.3; color: #B8430F; white-space: nowrap; }
.me-ic.hot .me-ic-i { background: #FFE6D9; color: #B8430F; }
.me-badge { position: absolute; top: 2px; left: calc(50% + 12px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-style: normal; font-size: 13px; line-height: 20px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.me-badge[hidden] { display: none; }
@media (hover: hover) { .me-ic:hover .me-ic-i, .me-asset:hover b { filter: brightness(.97); } }
/* 余额(10-03)：「我的」里积分卡下面一张；余额页充值档位一排三个 */
.rc-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rc-plan { padding: 12px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.rc-plan b { display: block; font-size: 20px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-plan small { display: block; font-size: 13px; color: #B8430F; }
.rc-plan[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rc-go { margin-top: 16px; }
.rc-fine { margin: 8px 4px 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.me-addrs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.me-addr { padding: 12px 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.me-addr b { display: block; font-size: 16px; font-weight: 600; }
.me-addr small { display: block; font-size: 13px; color: var(--ink-3); }
.me-addr-ops { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 13px; }
.me-addr-ops button { padding: 4px 0; color: var(--ink-2); }
.me-addr-ops .tag { padding: 0 8px; border-radius: 999px; background: var(--ink); color: var(--on-ink); line-height: 22px; }
.me-form .cta-inline { margin-top: 24px; }
.me-check { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 16px; }
.me-check input { width: 20px; height: 20px; accent-color: var(--ink); }

/* 个人中心 · 我的订单 */
/* 订单状态筛选: 五个等分排一行(10-15 用户要同一行, 原来 flex-wrap 在手机上折成两行) */
.me-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.me-chips .chip { min-width: 0; padding: 0; border: 1px solid var(--line); background: var(--surface); }
.me-chips .chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.me-orders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.me-order { display: block; width: 100%; padding: 12px 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); text-align: left; }
.mo-top, .mo-bot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mo-top b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mo-top em { flex: none; font-style: normal; font-size: 13px; font-weight: 600; }
.mo-top em[data-status="done"], .mo-top em[data-status="cancelled"] { font-weight: 400; color: var(--ink-3); }
/* 订单商品图: 方块里放商品封面(裁满)或手绘蛋糕 */
.mo-thumb { position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--bg); overflow: hidden; }
.mo-thumb .cake { width: 100%; height: 100%; }
.mo-thumb .cake-img { object-fit: cover; }
.mo-thumb i { position: absolute; right: 2px; bottom: 2px; padding: 0 4px; border-radius: 999px; background: rgba(59, 42, 31, .78); color: #fff; font-style: normal; font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; }
.mo-thumbs { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.mo-more { font-size: 13px; color: var(--ink-3); }
.mo-list { list-style: none; margin: 12px 0 0; padding: 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.mo-list li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.mo-list li + li { border-top: 1px dashed var(--line); }
.mo-name { flex: 1; min-width: 0; }
.mo-name b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-name small, .mo-qty small { display: block; font-size: 13px; color: var(--ink-3); }
.mo-qty { flex: none; text-align: right; }
.mo-qty b { font-size: 15px; font-variant-numeric: tabular-nums; }
.mo-items { display: block; margin: 4px 0; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-bot small { font-size: 13px; color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-bot b { flex: none; font-size: 16px; font-variant-numeric: tabular-nums; }
.mo-hero .me-pts b { font-size: 25px; }
.mo-code { text-align: right; }
.mo-code small { display: block; font-size: 13px; color: var(--ink-3); }
.mo-code b { display: block; font-size: 31px; line-height: 1.2; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.mo-hero[data-status="cancelled"] .mo-code b { color: var(--ink-3); text-decoration: line-through; }
.me-dl { margin-top: 12px; padding: 0 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); border-top: 0; }
.me-dl div:last-child { border-bottom: 0; }
.me-sum { margin: 12px 0 0; padding: 8px 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.me-sum div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 16px; }
.me-sum dt { color: var(--ink-2); }
.me-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.me-sum .total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; font-size: 20px; }
.me-sum .total dt { color: var(--ink); }

/* 个人信息 */
.pf-wx { gap: 12px; }
.pf-wx .me-who small { font-size: 13px; color: var(--ink-3); }
.pf-wx .me-who b { font-size: 16px; }
.pf-from { flex: none; margin-left: auto; font-size: 13px; color: var(--ink-3); }
.bd-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: 8px; }
.bd-row select.input { padding-left: 12px; padding-right: 28px; background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; }
/* 「我的」页面底部固定按钮(个人信息的保存) */
.me-foot { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.me-foot .cta-inline { margin: 0 auto; max-width: 448px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.pf-sec { margin-top: 32px; }
.pf-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pf-sec-head b { font-size: 16px; font-weight: 700; }
.pf-sec-head button { display: inline-flex; align-items: center; gap: 2px; padding: 8px 0; font-size: 13px; color: var(--ink-2); }
.pf-none { padding: 16px; border-radius: var(--r); background: var(--surface); font-size: 13px; color: var(--ink-3); }

/* ---------- 会员中心 ----------
 * 四个等级用品牌深棕的深浅区分(普通最浅、黑卡就是品牌深棕)，不另加颜色 */
.lv-0 { --lv-bg: var(--surface); --lv-fg: var(--ink); --lv-sub: var(--ink-3); }
.lv-1 { --lv-bg: #E9E3DB; --lv-fg: var(--ink); --lv-sub: var(--ink-2); }
.lv-2 { --lv-bg: #C9A77C; --lv-fg: #2A1D15; --lv-sub: #4A3A2E; }
.lv-3 { --lv-bg: var(--ink); --lv-fg: var(--on-ink); --lv-sub: #CDBFB3; }
.mb-mini {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; padding: 16px; border-radius: var(--r);
  background: var(--lv-bg); color: var(--lv-fg); box-shadow: var(--sh-1); text-align: left;
}
.mb-mini span:first-child { flex: none; }
.mb-mini small { display: block; font-size: 13px; color: var(--lv-sub); }
.mb-mini b { display: block; font-size: 20px; font-weight: 700; }
.mb-mini-next { flex: 1; min-width: 0; font-size: 13px; color: var(--lv-sub); text-align: right; }
.mb-mini .chev { color: var(--lv-sub); }
/* 等级标签 + 左右滑的卡片(露出下一张一角，提示能滑) */
.mb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.mb-tabs::-webkit-scrollbar { display: none; }
.mb-tabs .chip { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); }
.mb-tabs .chip[aria-selected="true"] { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.mb-tabs .chip i { font-style: normal; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 11px; line-height: 16px; font-weight: 400; }
.mb-cards {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 4px 16px 16px; scroll-padding: 0 16px; scrollbar-width: none;
}
.mb-cards::-webkit-scrollbar { display: none; }
.mb-cards .mb-card { flex: 0 0 86%; scroll-snap-align: center; }
.mb-h small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.mb-card {
  position: relative; overflow: hidden; padding: 20px; border-radius: 16px; aspect-ratio: 1.7;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--lv-bg); color: var(--lv-fg); box-shadow: var(--sh-2);
}
.mb-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 999px; border: 1px solid currentColor; opacity: .12; }
.mb-top { display: flex; justify-content: space-between; align-items: baseline; }
.mb-brand { font-size: 13px; letter-spacing: .08em; color: var(--lv-sub); }
.mb-name { font-size: 25px; font-weight: 700; }
.mb-mid b { display: block; font-size: 20px; font-weight: 700; }
.mb-mid small { display: block; font-size: 13px; color: var(--lv-sub); font-variant-numeric: tabular-nums; }
.mb-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--lv-fg) 15%, transparent); overflow: hidden; }
.mb-bar i { display: block; height: 100%; border-radius: 999px; background: var(--lv-fg); }
.mb-next { font-size: 13px; color: var(--lv-sub); }
.mb-next b { color: var(--lv-fg); font-variant-numeric: tabular-nums; }
.mb-h { margin: 24px 0 8px; font-size: 16px; font-weight: 700; }
.mb-perks, .mb-levels, .mb-rules { list-style: none; margin: 0; padding: 0; }
.mb-perks { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-perks li { padding: 8px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-1); font-size: 13px; font-weight: 600; }
.mb-levels { border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.mb-levels li { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "lv need" "lv perk"; column-gap: 12px; align-items: center; padding: 12px 16px; }
.mb-levels li + li { border-top: 1px dashed var(--line); }
.mb-levels li.is-cur { background: var(--bg); }
.mb-lv { grid-area: lv; min-width: 72px; padding: 4px 10px; border-radius: 999px; background: var(--lv-bg); color: var(--lv-fg); font-size: 13px; font-weight: 700; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.mb-lv-need { grid-area: need; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mb-lv-perk { grid-area: perk; font-size: 13px; color: var(--ink-3); }
.mb-levels li.is-cur .mb-lv-need::after { content: "当前"; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 400; }
.mb-rules { padding: 12px 16px; border-radius: var(--r); background: var(--surface); }
.mb-rules li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.mb-rules li + li { margin-top: 6px; }
.mb-rules li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 999px; background: var(--ink-3); }
.pf-bd { padding: 12px 16px; border-radius: var(--r); background: var(--surface); font-size: 16px; }
.pf-bd small { display: block; font-size: 13px; color: var(--ink-3); }

/* 会员权益宫格 */
.mb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mb-grid li {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 4px 12px;
  border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); text-align: center;
}
.mb-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--bg); color: var(--ink); }
.mb-ic svg { width: 22px; height: 22px; stroke-width: 1.75; }
.mb-grid li.hi .mb-ic { background: var(--ink); color: var(--on-ink); }
.mb-grid b { font-size: 16px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.mb-grid small { font-size: 13px; color: var(--ink-3); }
.mb-grid li.off { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.mb-grid li.off .mb-ic { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.mb-grid li.off b { font-size: 13px; font-weight: 600; color: var(--ink-3); }
/* 升级路线 */
.mb-road { position: relative; height: 84px; margin: 8px 28px 0; }
.mb-road-line { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 999px; background: var(--line); }
.mb-road-line i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.mb-road-node { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: 72px; text-align: center; }
.mb-road-node .dot { width: 24px; height: 24px; border-radius: 999px; background: var(--lv-bg); box-shadow: 0 0 0 3px var(--bg), inset 0 0 0 1px var(--line); }
.mb-road-node.on .dot { box-shadow: 0 0 0 3px var(--bg), inset 0 0 0 2px var(--ink); }
.mb-road-node.cur .dot { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.mb-road-node b { margin-top: 8px; font-size: 13px; font-weight: 700; }
.mb-road-node small { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mb-road-node:not(.on) b { color: var(--ink-3); font-weight: 400; }
/* 怎么升级：三步 */
.mb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: st; }
.mb-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; text-align: center; }
.mb-steps li + li::before { content: ""; position: absolute; left: -12px; top: 32px; width: 16px; height: 2px; background: var(--line); }
.mb-steps .mb-ic { background: var(--surface); box-shadow: var(--sh-1); }
.mb-steps b { font-size: 13px; font-weight: 700; }
.mb-steps small { font-size: 13px; color: var(--ink-3); }
.mb-fine { margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--ink-3); }

/* ---------- 客服浮动按钮 ---------- */
.kf { position: fixed; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (min-width: 520px) { .kf { right: calc(50% - 240px + 16px); } }
.kf-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 56px; height: 56px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--sh-2);
}
.kf-btn svg { width: 22px; height: 22px; }
.kf-btn span { font-size: 11px; line-height: 1; font-weight: 600; }
.kf-btn[aria-expanded="true"] { background: var(--ink); color: var(--on-ink); }
.kf-menu { min-width: 200px; padding: 4px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-2); }
.kf-menu a, .kf-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 0; color: var(--ink); text-decoration: none; text-align: left; }
.kf-menu > * + * { border-top: 1px dashed var(--line); }
.kf-menu svg { width: 20px; height: 20px; flex: none; }
.kf-menu b { display: block; font-size: 16px; font-weight: 600; }
.kf-menu small { display: block; font-size: 13px; color: var(--ink-3); }
body.locked .kf { display: none; }
.kf-btn { position: relative; }
.kf-dot { position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }

/* ---------- 在线客服聊天 ---------- */
.kfc .me-page { transform: translateX(100%); background: var(--wx-bg); }
.kfc { --wx-bg: #EDEDED; --wx-bar: #F7F7F7; --wx-green: #95EC69; --wx-green-on: #191919; }
.kfc.open .me-page { transform: none; }
.kfc-list {
  flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 12px 16px; max-width: 480px; width: 100%; margin: 0 auto;
}
.kfc-time { align-self: center; margin: 8px 0 0; font-size: 12px; color: #6E6E6E; }
/* 照微信：头像 40 方圆角，气泡小尖角朝头像，自己的绿色 */
.kfc-row { display: flex; align-items: flex-start; gap: 10px; }
.kfc-row.mine { justify-content: flex-end; }
.kfc-row.sending .kfc-msg { opacity: .55; }
.kfc-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; overflow: hidden; background: #fff; }
.kfc-av-shop { background: var(--surface); }
.kfc-av-shop img { width: 32px; height: auto; }
.kfc-av-me { background: #D9D9D9; color: #fff; }
.kfc-av-me svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.kfc-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; max-width: calc(100% - 80px); }
.kfc-row.mine .kfc-col { align-items: flex-end; }
.kfc-name { margin-bottom: -2px; font-size: 12px; line-height: 1.3; color: #7F7F7F; }
.kfc-msg { position: relative; max-width: 100%; min-height: 40px; padding: 9px 12px; border-radius: 6px; font-size: 16px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.kfc-msg::before { content: ""; position: absolute; top: 14px; width: 0; height: 0; border: 6px solid transparent; }
.kfc-msg.shop { background: #fff; color: #191919; }
.kfc-msg.shop::before { left: -11px; border-right-color: #fff; }
.kfc-name + .kfc-msg.shop::before { top: 14px; }
.kfc-msg.mine { background: var(--wx-green); color: var(--wx-green-on); }
.kfc-msg.mine::before { right: -11px; border-left-color: var(--wx-green); }
.kfc-msg.kfc-typing { display: flex; gap: 6px; align-items: center; min-height: 40px; color: #7F7F7F; }
.kfc-typing span { display: flex; gap: 3px; align-items: center; }
.kfc-typing i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .35; animation: kfcDot 1s infinite ease-in-out; }
.kfc-typing i:nth-child(2) { animation-delay: .15s; } .kfc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes kfcDot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: .8; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .kfc-typing i { animation: none; } }
.kfc-card { display: flex; align-items: center; gap: 12px; width: min(100%, 260px); padding: 8px 12px 8px 8px; border-radius: 6px; background: #fff; text-align: left; }
.kfc-card-art { flex: none; width: 64px; height: 52px; border-radius: 10px; background: var(--bg); overflow: hidden; }
.kfc-card-art .cake { width: 100%; height: 100%; display: block; object-fit: contain; }
.kfc-card-main { flex: 1; min-width: 0; }
.kfc-card-main b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kfc-card-main small { display: block; font-size: 13px; color: var(--ink-2, #6B5D52); }
@media (max-width: 359px) { .kfc-card-go { display: none; } }
.kfc-card-go { flex: none; font-size: 13px; color: var(--accent); font-weight: 600; }
.kfc-note { align-self: center; max-width: 280px; margin-top: 4px; font-size: 12px; line-height: 1.5; color: #6E6E6E; text-align: center; }
.kfc-bar {
  flex: none; display: flex; align-items: flex-end; gap: 8px;
  width: 100%;
  padding: 8px max(12px, calc((100% - 456px) / 2)) calc(8px + env(safe-area-inset-bottom));
  background: var(--wx-bar); border-top: 1px solid #E0E0E0;
}
.kfc-bar textarea {
  flex: 1; min-width: 0; min-height: 44px; max-height: 120px; resize: none;
  padding: 9px 12px; border: 0; border-radius: 6px; background: #fff;
  font: inherit; font-size: 16px; line-height: 22px; color: #191919;
}
.kfc-bar textarea { caret-color: #07C160; }
.kfc-bar textarea:focus-visible { outline: none; }
.kfc-send { flex: none; display: grid; place-items: center; height: 40px; padding: 0 14px; border-radius: 6px; background: #07C160; color: #fff; font-size: 16px; font-weight: 600; }
.kfc-send:disabled { background: #E1E1E1; color: #A9A9A9; }

/* ---------- 纪念日 ----------
 * 每种类型一个柔和底色(低饱和，跟暖棕系搭)，图标用同色系深一档 */
.k-birthday { --k-bg: #F6DDD8; --k-fg: #9A4A3E; }
.k-wedding  { --k-bg: #F1E3C4; --k-fg: #8A6420; }
.k-love     { --k-bg: #F4D9DE; --k-fg: #A23D55; }
.k-festival { --k-bg: #DCE8D6; --k-fg: #4C6B3E; }
.k-other    { --k-bg: #E7E1DA; --k-fg: #6B5D52; }
.dt-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--k-bg); color: var(--k-fg); }
.dt-ic svg { width: 22px; height: 22px; }
.dt-hero {
  display: flex; align-items: center; gap: 12px; padding: 20px 16px; border-radius: 16px;
  background: var(--k-bg); color: #2A1D15; box-shadow: var(--sh-1);
}
.dt-hero-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .6); color: var(--k-fg); }
.dt-hero-ic svg { width: 28px; height: 28px; }
.dt-hero-main { flex: 1; min-width: 0; }
.dt-hero-main small { display: block; font-size: 13px; color: var(--k-fg); }
.dt-hero-main b { display: block; font-size: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-hero-main span { display: block; font-size: 13px; color: #4A3A2E; }
.dt-hero-left { flex: none; text-align: center; }
.dt-hero-left small { display: block; font-size: 13px; color: var(--k-fg); }
.dt-hero-left b { display: block; font-size: 39px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--k-fg); }
.dt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dt-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); text-align: left; }
.dt-main { flex: 1; min-width: 0; }
.dt-main b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-main small { display: block; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-left { flex: none; min-width: 48px; text-align: right; }
.dt-left b { display: block; font-size: 20px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.dt-left small { display: block; font-size: 13px; color: var(--ink-3); }
.dt-left.today b { font-size: 16px; color: var(--accent); }
.dt-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; text-align: center; }
.dt-empty .dt-ic { width: 64px; height: 64px; border-radius: 20px; }
.dt-empty .dt-ic svg { width: 30px; height: 30px; }
.dt-empty b { font-size: 20px; }
.dt-empty p { font-size: 13px; line-height: 1.7; color: var(--ink-3); }
.dt-kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dt-kinds button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: var(--r); border: 1px solid transparent; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.dt-kinds button[aria-checked="true"] { border-color: var(--ink); background: var(--surface); color: var(--ink); font-weight: 600; }
.me-foot .cta-inline svg { width: 18px; height: 18px; }

/* ---------- 商品海报 ---------- */
.det-share { margin-left: auto; }
.pst { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: rgba(38, 27, 20, .88); }
.pst-box { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 400px; max-height: 100%; outline: none; }
.pst-img { position: relative; flex: 0 1 auto; min-height: 0; display: grid; place-items: center; width: 100%; }
/* 海报 2:3，按可视高度收，底下留出提示和按钮 */
.pst-img img { display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 200px); aspect-ratio: 2 / 3; border-radius: 12px; background: var(--bg); box-shadow: var(--sh-2); -webkit-touch-callout: default; }
.pst-img img:not([src]) { width: min(100%, calc((100dvh - 200px) * 2 / 3)); }
.pst-wait { position: absolute; font-size: 14px; color: var(--ink-3); }
.pst-tip { max-width: 320px; font-size: 14px; line-height: 1.5; color: #FBF8F4; text-align: center; }
.pst-acts { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 320px; }
.pst-acts .cta-inline { margin-top: 0; flex: 1; text-decoration: none; }
.pst-close { flex: none; min-height: 48px; padding: 0 20px; border-radius: 999px; color: #FBF8F4; font-size: 16px; border: 1px solid rgba(251, 248, 244, .5); }
.pst-acts .pst-close:only-child, .pst-acts [hidden] + .pst-close { flex: 1; }

/* 电话微信弹窗 */
.kfd { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; background: rgba(38, 27, 20, .56); }
.kfd-box { width: 100%; max-width: 320px; padding: 24px 20px 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-2); text-align: center; outline: none; }
.kfd-box h2 { font-size: 18px; font-weight: 700; }
.kfd-box p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.kfd-box p b { color: var(--ink); font-variant-numeric: tabular-nums; }
.kfd-acts { display: flex; gap: 12px; margin-top: 20px; }
.kfd-acts > * { flex: 1; display: grid; place-items: center; min-height: 48px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; }
.kfd-ok { border: 1px solid var(--line); color: var(--ink); }
.kfd-call { background: var(--ink); color: var(--on-ink); }

/* ---------- 广告卡(首页滑动卡片里) ---------- */
.card.ad { flex-basis: 268px; padding: 0; overflow: hidden; text-align: left; background: var(--ad-bg); color: var(--ad-fg); }
.card.ad:not([data-goto]) { cursor: default; }
.card.ad:not([data-goto]):active { transform: none; }
.ad-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.ad-tag { position: absolute; left: 12px; top: 12px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 18px; background: var(--ad-fg); color: var(--ad-bg); }
.card.ad.has-img .ad-tag { background: rgba(255, 254, 252, .92); color: var(--ink); }
.ad-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 14px; }
.card.ad.has-img .ad-text { color: #FFFEFC; background: linear-gradient(to top, rgba(38, 27, 20, .72), rgba(38, 27, 20, 0)); }
.ad-text h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
.ad-text p { margin-top: 2px; font-size: 13px; line-height: 1.4; opacity: .9; }
.ad-go { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; }

/* ---------- 活动页 ---------- */
.ev .me-page { transform: translateX(100%); }
.ev.open .me-page { transform: none; }
.ev-cover { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: var(--accent); }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-cover.no-img { background: linear-gradient(135deg, var(--accent), #FF9A5C); }
.ev-tag { position: absolute; left: 12px; top: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(59, 42, 31, .82); color: #fff; font-size: 13px; line-height: 22px; }
.ev-h { margin-top: 16px; font-size: 25px; line-height: 1.3; font-weight: 700; }
.ev-sub { margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.ev-facts { margin: 16px 0 0; padding: 4px 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.ev-facts div { display: grid; grid-template-columns: 20px 40px minmax(0, 1fr); gap: 8px; align-items: start; padding: 10px 0; }
.ev-facts div + div { border-top: 1px solid var(--line); }
.ev-facts svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ink-2); }
.ev-facts dt { font-size: 13px; line-height: 24px; color: var(--ink-3); }
.ev-facts dd { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.ev-facts dd b { color: var(--accent); }
.ev-end { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.ev-body { margin-top: 20px; font-size: 16px; line-height: 1.75; }
.ev-body p + p { margin-top: 12px; }
.ev-mine { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 16px; border-radius: var(--r); background: #E8EFE4; color: #3F6B3A; font-size: 16px; }
.ev-mine svg { width: 18px; height: 18px; flex: none; }
.ev-mini { padding: 12px 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.ev-mini b { display: block; font-size: 16px; }
.ev-mini small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.ev-step { margin-top: 4px; }
.ev-step button { width: 44px; height: 44px; }
.ev-step button:disabled { opacity: .35; }
.ev-done { display: flex; flex-direction: column; align-items: center; padding: 32px 0 24px; text-align: center; }
.ev-done svg { width: 56px; height: 56px; padding: 12px; border-radius: 999px; background: #E8EFE4; color: #3F6B3A; stroke-width: 2.5; }
.ev-done h1 { margin-top: 12px; font-size: 25px; font-weight: 700; }
.ev-done p { margin-top: 4px; color: var(--ink-2); }
/* 企业试吃：三步说明、试吃品(可选中)、团进度、成员 */
.tt-steps { margin: 16px 0 0; padding: 12px 16px 12px 36px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); font-size: 16px; line-height: 1.6; }
.tt-steps li + li { margin-top: 6px; }
.tt-steps b { color: var(--accent); }
.tt-items, .tt-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tt-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: center; }
.tt-art { display: block; width: 100%; aspect-ratio: 1; }
.tt-art img, .tt-art .cake { width: 100%; height: 100%; object-fit: contain; display: block; }
.tt-item b { font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.tt-pick .tt-item i { position: absolute; right: 6px; top: 6px; display: none; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: #fff; }
.tt-pick .tt-item i svg { width: 14px; height: 14px; stroke-width: 3; }
.tt-pick .tt-item[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tt-pick .tt-item[aria-pressed="true"] i { display: grid; }
.field.invalid .tt-pick .tt-item { border-color: #D64545; }
.tt-mine { width: 100%; text-align: left; }
.tt-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; line-height: 22px; }
.tt-head .ev-h { margin-top: 8px; }
.tt-prog { margin-top: 16px; padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.tt-num { display: flex; align-items: baseline; gap: 6px; }
.tt-num b { font-size: 34px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-num span { font-size: 16px; color: var(--ink-2); }
.tt-num em { margin-left: auto; padding: 0 10px; border-radius: 999px; background: #F3E3C7; font-style: normal; font-size: 13px; line-height: 24px; }
.tt-bar { height: 8px; margin-top: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tt-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.tt-prog p { margin-top: 10px; font-size: 16px; line-height: 1.5; }
.tt-prog p b { color: var(--accent); }
.st-pending .tt-num em, .st-approved .tt-num em { background: #E8EFE4; color: #3F6B3A; }
.st-rejected .tt-num em, .st-expired .tt-num em { background: var(--line); color: var(--ink-2); }
.st-rejected .tt-bar i, .st-expired .tt-bar i { background: var(--ink-3); }
.tt-tel { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--accent); }
.tt-tel svg { width: 18px; height: 18px; }
.tt-people { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-man { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 16px; }
.tt-man.is-lead { border-color: var(--accent); }
.tt-man small { font-size: 13px; color: var(--ink-3); }
.tt-man button { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -8px; border-radius: 999px; color: var(--ink-2); }
.tt-man button svg { width: 14px; height: 14px; stroke-width: 2.25; }
/* 企业杀糕大会落地页: 大图首屏 → 三步时间线 → 两列试吃品 → 细节 */
.kd-hero { position: relative; aspect-ratio: 4 / 5; max-height: 62vh; width: 100%; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, var(--accent), #C2481A); }
.kd-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 24, 16, 0) 30%, rgba(36, 24, 16, .82) 100%); }
.kd-hero.no-img::after { background: linear-gradient(180deg, rgba(36, 24, 16, 0) 40%, rgba(36, 24, 16, .35) 100%); }
.kd-hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px 20px; color: #FBF8F4; }
.kd-kicker { display: inline-block; padding: 0 10px; border-radius: 999px; background: var(--accent); font-size: 13px; line-height: 24px; font-weight: 600; }
.kd-hero h1 { font-size: 31px; line-height: 1.2; font-weight: 700; letter-spacing: .01em; }
.kd-kicker + h1 { margin-top: 12px; }
.kd-hero p { margin-top: 8px; font-size: 16px; line-height: 1.6; opacity: .92; }
.kd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.kd-tags li { padding: 0 12px; border: 1px solid rgba(251, 248, 244, .45); border-radius: 999px; font-size: 13px; line-height: 28px; }
.kd-proof { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.kd-proof svg { width: 16px; height: 16px; color: #3F6B3A; stroke-width: 2.5; }
.kd-proof b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.kd-h { display: flex; align-items: baseline; gap: 8px; margin: 32px 0 12px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.kd-h small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.kd-link { min-height: 32px; padding: 0 2px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.kd-h .kd-link { margin-left: auto; }
.kd-steps { margin: 0; padding: 0; list-style: none; }
.kd-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding-bottom: 20px; }
.kd-steps li:last-child { padding-bottom: 0; }
.kd-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line); }
.kd-steps svg { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 999px; background: #FFE9DE; color: var(--accent); stroke-width: 1.75; }
.kd-steps b { padding-top: 2px; font-size: 16px; line-height: 1.5; }
.kd-steps span { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.kd-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kd-menu figure { margin: 0; }
.kd-menu .tt-art { border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--sh-1); }
.kd-menu figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
.kd-menu figcaption b { min-width: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.kd-menu figcaption small { flex: none; font-size: 13px; color: var(--ink-3); }
.kd-facts { margin-top: 32px; }
/* 到场怎么玩: 一行五步小卡, 窄屏自动换行 */
.kd-play { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.kd-play li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 2px; border-radius: 12px; background: var(--surface); box-shadow: var(--sh-1); font-size: 13px; line-height: 1.3; text-align: center; }
.kd-play svg { width: 24px; height: 24px; color: var(--accent); stroke-width: 1.75; }
@media (max-width: 359px) { .kd-play { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 杀糕评分卡: 糕王卡、排行、一句话评价、打分卡 */
.sc-king { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #FFF3E8, #FFE1CC); }
.sc-king .tt-art { border-radius: 12px; overflow: hidden; background: #fff; }
.sc-king > div > b { display: block; margin-top: 6px; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.sc-king small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.sc-crown { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #B2441A; }
.sc-crown svg { width: 18px; height: 18px; color: var(--accent); fill: var(--accent); }
.sc-avg { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; flex: none; }
.sc-avg svg { width: 16px; height: 16px; color: var(--accent); fill: var(--accent); }
.sc-avg b { font-size: 16px; font-variant-numeric: tabular-nums; }
.sc-rank { margin: 12px 0 0; padding: 0; list-style: none; }
.sc-rank li { display: grid; grid-template-columns: 20px 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.sc-rank li.no { opacity: .6; }
.sc-rank em { font-style: normal; font-size: 16px; font-weight: 700; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.sc-rank li:first-child em { color: var(--accent); }
.sc-rank .tt-art { border-radius: 8px; overflow: hidden; background: var(--surface); }
.sc-rank div > b { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.sc-rank small { display: block; font-size: 13px; color: var(--ink-3); }
.sc-says { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sc-says li { padding: 10px 14px; border-radius: 12px; background: var(--surface); }
.sc-says b { font-size: 13px; }
.sc-says span { margin-left: 6px; font-size: 13px; color: var(--ink-3); }
.sc-says p { margin-top: 2px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.sc-card { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); }
.sc-card.invalid { box-shadow: 0 0 0 2px #D64545 inset; }
.sc-top { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 4px; }
.sc-top .tt-art { border-radius: 10px; overflow: hidden; background: var(--bg); }
.sc-top b { font-size: 16px; font-weight: 600; }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.sc-row > span { font-size: 16px; color: var(--ink-2); }
.sc-stars { display: flex; }
.sc-stars button { display: grid; place-items: center; width: 40px; height: 44px; color: var(--line); }
.sc-stars svg { width: 28px; height: 28px; stroke-width: 1.5; }
.sc-stars button.on { color: var(--accent); }
.sc-stars button.on svg { fill: var(--accent); }
.sc-say { margin-top: 8px; }
/* 打分送券: 评分区的领券条 / 已领一行 / 领券页的券面 */
.sc-cpn-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--accent); color: #fff; text-align: left; }
.sc-cpn-bar > b { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-cpn-bar span { font-size: 16px; font-weight: 600; }
.sc-cpn-bar small { display: block; font-size: 13px; font-weight: 400; opacity: .9; }
.sc-cpn-bar i { font-style: normal; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 13px; font-weight: 700; line-height: 30px; }
.sc-cpn-line { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.sc-cpn-line svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.sc-coupon { display: grid; grid-template-columns: 112px minmax(0, 1fr); margin-top: 8px; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--sh-1); }
.sc-coupon-amt { display: grid; place-items: center; padding: 24px 8px; background: var(--accent); color: #fff; font-size: 31px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-coupon-info { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px; border-left: 2px dashed var(--line); }
.sc-coupon-info b { font-size: 16px; overflow-wrap: anywhere; }
.sc-coupon-info small { font-size: 13px; color: var(--ink-2); }
@media (max-width: 359px) { .sc-stars button { width: 34px; } .sc-stars svg { width: 26px; height: 26px; } }
.kd-body { margin-top: 24px; color: var(--ink-2); }
/* 杀糕大会页面顶栏右边的品牌 logo(跟首页顶栏同一套: AOB × 吉米的榴莲图标) */
.ev-logo { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; padding-right: 4px; }
.ev-logo[hidden] { display: none; }
.ev-logo img { display: block; height: 22px; width: auto; }
.ev-logo span { font-size: 13px; color: var(--ink-3); }
.ev-logo .ev-logo-jimi { width: 26px; height: 26px; border-radius: 7px; }
#ev .me-top h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 我的 → 我的杀糕局 */
.mt-card { display: block; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; }
.mt-top { display: flex; align-items: center; gap: 8px; }
.mt-top b { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.mt-top em { flex: none; padding: 0 10px; border-radius: 999px; background: #F3E3C7; font-style: normal; font-size: 13px; line-height: 24px; }
.st-approved .mt-top em, .st-visited .mt-top em, .st-pending .mt-top em { background: #E8EFE4; color: #3F6B3A; }
.st-rejected .mt-top em, .st-expired .mt-top em, .st-won .mt-top em, .st-lost .mt-top em { background: var(--line); color: var(--ink-2); }
.mt-card > small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.mt-king { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(135deg, #FFF3E8, #FFE1CC); font-size: 13px; }
.mt-king img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #fff; }
.mt-king b { font-size: 16px; }
.mt-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mt-items span { padding: 0 10px; border-radius: 999px; background: var(--bg); font-size: 13px; line-height: 26px; }
.mt-go { display: block; margin-top: 10px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); text-align: right; }
/* AOB 开杀局: 首页入口条、开局页(品类切换/挑款/人数/人均)、局页面 */
.kl-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "b i" "s i"; align-items: center; column-gap: 12px; width: min(100%, 420px); margin: 16px auto 0; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #FBF8F4; text-align: left; }
.kl-entry b { grid-area: b; font-size: 16px; }
.kl-entry span { grid-area: s; font-size: 13px; opacity: .85; }
.kl-entry i { grid-area: i; padding: 0 12px; border-radius: 999px; background: var(--accent); font-style: normal; font-size: 13px; font-weight: 700; line-height: 32px; white-space: nowrap; }
.kl-kind button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--sh-1); }
.kl-pick { margin: 0; padding: 0; list-style: none; }
.kl-pick > li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.kl-pick > li.kl-unit { display: block; }
.kl-pick .tt-art { border-radius: 10px; overflow: hidden; background: var(--surface); }
.kl-pick b { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.kl-pick small { display: block; font-size: 13px; color: var(--ink-3); }
.kl-pick-top { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.kl-fruits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-left: 68px; }
.kl-fruits .chip { display: inline-flex; flex-direction: column; align-items: flex-start; height: auto; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); line-height: 1.3; }
.kl-fruits .chip small { font-size: 13px; color: var(--ink-3); }
.kl-fruits .chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; font-weight: 600; }
.kl-step { grid-area: auto; }
.kl-step button { width: 36px; height: 36px; }
.kl-step button:disabled { opacity: .35; }
.kl-step output { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.kl-sum { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); }
.kl-sum > div { display: flex; justify-content: space-between; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.kl-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.kl-sum-per { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.kl-sum-per b { font-size: 25px; color: var(--accent); }
.kl-sum p { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.tt-prog .kl-per { margin-top: 6px; }
.kl-per b { font-size: 20px; color: var(--accent); }
.kl-per small { display: block; font-size: 13px; color: var(--ink-3); }
.kl-cms { margin-top: 12px; }
.kl-items { margin: 0; padding: 0; list-style: none; }
.kl-items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.kl-items .tt-art { border-radius: 8px; overflow: hidden; background: var(--surface); }
.kl-items b { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.kl-items small { font-size: 13px; color: var(--ink-3); }
.kl-items span { font-size: 16px; font-variant-numeric: tabular-nums; }
.kl-when { display: grid; gap: 8px; }
/* 开杀局介绍页: 没有大图, 首屏只是一块品牌色卡片, 高度跟着文字走 */
.kd-hero.kl-hero { aspect-ratio: auto; max-height: none; }
.kl-hero::after { display: none; }
.kl-hero .kd-hero-text { position: relative; }
.kl-hero h1 { font-size: clamp(24px, 7.6vw, 31px); }
.kl-fun { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.kl-fun li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); }
.kl-fun svg { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 999px; background: #FFE9DE; color: var(--accent); stroke-width: 1.75; }
.kl-fun b { font-size: 16px; line-height: 1.5; }
.kl-fun span { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.kl-how { margin-top: 24px; text-align: center; }
.kl-new { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kl-new .cta-inline { margin-top: 0; }
.kl-new .kl-new-2 { background: var(--accent); }
.tt-qr { display: grid; place-items: center; min-height: 200px; }
.tt-qr img { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 16px; box-shadow: var(--sh-1); -webkit-touch-callout: default; }
.tt-qr-tip { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-align: center; }

/* 奥比问好下面的快捷问题 */
.kfc-quick { display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 80px); margin-left: 50px; }
/* 快捷问题做成橙色描边的按钮，跟白色的聊天气泡分开，一看就是能点的 */
.kfc-quick small { flex-basis: 100%; font-size: 12px; color: #7F7F7F; }
.kfc-quick button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; font-size: 14px; color: #B8430F; }
.kfc-quick button:active { background: rgba(255, 106, 42, .1); }
.kfc-ev-art { display: grid; place-items: center; background: #FFE9DE; color: var(--accent); }
.kfc-ev-art svg { width: 26px; height: 26px; }

/* 进店问好的小气泡：客服按钮上方 */
.kf-hi { position: relative; display: flex; align-items: flex-start; max-width: min(240px, calc(100vw - 32px)); padding: 10px 8px 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--surface); box-shadow: var(--sh-2); animation: kfHi .24s var(--ease-out) both; }
.kf-hi.out { opacity: 0; transform: translateY(4px); transition: opacity .2s ease-out, transform .2s ease-out; }
.kf-hi-main { flex: 1; text-align: left; font-size: 13px; line-height: 1.5; color: var(--ink); }
.kf-hi-main b { display: block; font-size: 13px; color: var(--accent); }
.kf-hi-x { flex: none; width: 28px; height: 28px; margin: -4px -2px 0 4px; border-radius: 999px; color: var(--ink-3); font-size: 18px; line-height: 1; }
@keyframes kfHi { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .kf-hi { animation: none; } }

/* ---------- 首页大卡(新品/招牌)：跟广告卡一样宽，+ 放在右下角里面 ---------- */
.card.hero { flex-basis: 268px; padding: 0; text-align: left; }
.card.hero:not(.has-img) { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 10px; padding: 36px 14px 20px 10px; }
.card.hero .add { left: auto; right: 12px; bottom: 12px; transform: none; width: 36px; height: 36px; }
.hero-tag { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 18px; background: var(--accent); color: #fff; }
.hero-text { min-width: 0; padding-right: 36px; }
.card.hero h3 { margin-top: 0; font-size: 16px; line-height: 1.35; font-weight: 700; }
.hero-desc { margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.hero .price { margin-top: 4px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); -webkit-user-drag: none; user-select: none; }
.card.hero.has-img { min-height: 170px; }
.card.hero.has-img .hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 60px 14px 14px; border-radius: 0 0 var(--r) var(--r); color: #FFFEFC; background: linear-gradient(to top, rgba(38, 27, 20, .72), rgba(38, 27, 20, 0)); }
.card.hero.has-img .price, .card.hero.has-img .price span { color: rgba(255, 254, 252, .9); }
.hero-fly { position: absolute; left: 50%; top: 50%; width: 112px; transform: translate(-50%, -50%); visibility: hidden; pointer-events: none; }

/* ---------- 首页弹窗：一张就居中大图；多张并排一排连续往左走。图都是 3:4 框 ---------- */
.pop { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); background: rgba(20, 13, 8, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s ease-out; }
.pop.open { opacity: 1; }
.pop-in { --pw: min(88vw, 400px, calc((100dvh - 130px) * .75)); width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; transform: scale(.94); transition: transform .24s var(--ease-out); }
.pop.is-row .pop-in { --pw: min(64vw, 300px, calc((100dvh - 130px) * .75)); }
.pop.open .pop-in { transform: none; }
.pop-track { width: 100%; min-width: 0; overflow: hidden; padding: 8px 0 16px; }
.pop.is-row .pop-track { touch-action: none; cursor: grab; }
.pop-strip { display: flex; justify-content: center; gap: 12px; }
.pop.is-row .pop-strip { justify-content: flex-start; width: max-content; will-change: transform; }
.pop-img { flex: 0 0 var(--pw); aspect-ratio: 3 / 4; display: block; padding: 0; border: 0; background: transparent; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); -webkit-tap-highlight-color: transparent; transform: translateZ(0); }
.pop-img img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.pop-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .2); color: #fff; }
.pop-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .pop, .pop-in { transition: none; } }
.pop-x:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- 结算：支付方式 ---------- */
.pays { display: grid; gap: 8px; }
.pay { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; color: var(--ink); }
.pay[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay:disabled { opacity: 1; background: var(--bg); color: var(--ink-3); cursor: not-allowed; }
.pay-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #fff; }
.pay-ic svg { width: 20px; height: 20px; }
.pay-wechat { background: #07C160; } .pay-wechat svg { fill: currentColor; stroke: none; }
.pay-alipay { background: #1677FF; } .pay-alipay b { font-size: 17px; font-weight: 700; line-height: 1; }
.pay-balance { background: var(--accent); } .pay-balance svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pay-go { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--accent); }
.pay-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pay-offline { background: var(--ink); } .pay-offline svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pay:disabled .pay-ic { filter: grayscale(1); opacity: .45; }
.pay-name { flex: 1; min-width: 0; }
.pay-name b { display: block; font-size: 16px; font-weight: 600; }
.pay-name small { display: block; font-size: 13px; color: var(--ink-3); }
.pay-dot { flex: none; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--line); }
.pay[aria-checked="true"] .pay-dot { border: 6px solid var(--ink); }
.pay:disabled .pay-dot { visibility: hidden; }

/* ---------- 付款这一步(测试流程) ---------- */
.paying { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 16px; }
.pay-big { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 8px; }
.pay-big svg { width: 34px; height: 34px; }
.pay-big b { font-size: 28px; }
.pay-amt { margin-top: 4px; font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-order { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.pay-test { margin-top: 16px; padding: 8px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* 优惠券：结算里一张张可选；「我的 → 优惠券」里同一个样子 */
.cpns { display: grid; gap: 8px; }
.cpn { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; }
.cpn > b { flex: none; font-size: 20px; color: var(--accent, #FF6A2A); font-variant-numeric: tabular-nums; }
.cpn > span { display: flex; flex-direction: column; min-width: 0; font-size: 15px; font-weight: 600; }
.cpn > span small { font-size: 12px; font-weight: 400; color: var(--ink-2); }
.cpn[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cpn:disabled, .cpn.off { opacity: .45; }
.cpn-none { justify-content: center; color: var(--ink-2); font-size: 14px; }
.cpn-lock { margin: 6px 2px 0; color: var(--ink-2); font-size: 13px; }   /* 托盘里有奖品果: 只能用那张奖品券 */
.cpn-card { margin-bottom: 8px; }
.cpn-claim { margin-left: auto; flex: none; }
/* 票券样式(10-15 用户要「图片样式才有效果」): 左边橙色票根放金额, 齿孔虚线 + 上下两个半圆缺口, 右边券名/规则/到期。
 * 缺口用 mask 挖(不靠盖一个底色圆, 放在哪种底上都对); mask 会裁掉外描边, 所以焦点/选中都画在里面。
 * 结算选券、我的优惠券、直播间发券三处共用; 拼团进度也用 .cpn 但不是券, 不加 .tk */
.tk { --stub: 88px; align-items: stretch; gap: 0; padding: 0; border: 0; border-radius: 12px; background: #FFF3EB; box-shadow: none;
  -webkit-mask: radial-gradient(circle at var(--stub) 0, #0000 6px, #000 6.5px) top / 100% 51% no-repeat, radial-gradient(circle at var(--stub) 100%, #0000 6px, #000 6.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at var(--stub) 0, #0000 6px, #000 6.5px) top / 100% 51% no-repeat, radial-gradient(circle at var(--stub) 100%, #0000 6px, #000 6.5px) bottom / 100% 51% no-repeat; }
.tk > b { width: var(--stub); display: flex; align-items: baseline; justify-content: center; padding: 16px 4px; background: var(--accent); border-right: 2px dashed #FFF3EB;
  color: #FFFDFB; font-size: 25px; font-weight: 700; line-height: 1; white-space: nowrap; align-self: stretch; align-content: center; flex-wrap: wrap; }
.tk > b i { font-style: normal; font-size: 13px; margin-right: 1px; }
.tk > span { flex: 1; justify-content: center; gap: 4px; padding: 12px 12px 12px 16px; font-size: 16px; overflow-wrap: anywhere; }
.tk > span small { font-size: 13px; line-height: 1.4; }
.tk > .cpn-claim { align-self: center; margin: 0 12px 0 0; border-color: var(--accent); background: var(--accent); color: #FFFDFB; font-weight: 600; }
.tk:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.tk[role="radio"]::after { content: ""; flex: none; align-self: center; width: 20px; height: 20px; margin-right: 14px; border-radius: 50%; border: 1.5px solid #E7C9B6; background: #FFFDFB center / 14px no-repeat; }
.tk[aria-checked="true"] { box-shadow: none; }   /* 盖掉 .cpn 的选中描边(会被缺口切断), 选中只看右边的勾 */
.tk[aria-checked="true"]:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.tk[aria-checked="true"]::after { border-color: var(--accent); background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); }
.tk:disabled, .tk.off { opacity: 1; background: #F1EDE9; color: var(--ink-3); }
.tk:disabled > b, .tk.off > b { background: #BFB4AB; border-right-color: #F1EDE9; }
.me-sub { margin: 16px 4px 8px; font-size: 13px; color: var(--ink-2); }

/* 拼团：每人多少钱那一行 */
.gb-price { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.gb-price b { font-size: 24px; color: var(--accent); margin: 0 2px; }
.gb-price small { margin-left: 10px; font-size: 13px; color: var(--ink-3); }

/* 我的 → 邀请有礼 */
.inv-how b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }
.inv-how ol { margin: 0 0 8px; padding-left: 20px; line-height: 1.7; }
.inv-how small { display: block; font-size: 13px; color: var(--ink-3); }
.inv-how .chip { margin-top: 12px; }
.me-ledger em.inv-st { flex: none; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.me-ledger em.inv-st.plus { color: var(--accent); }

/* 送礼：结算页开关和填法、下单成功页的礼物链接、收礼人的礼物页 */
#fGift .pts-row span { display: flex; flex-direction: column; min-width: 0; }
#fGift .pts-row b { font-weight: 600; }
#fGift .pts-row small { font-size: 13px; color: var(--ink-3); }
.gift-mode { margin-top: 12px; }
#giftNote { margin: 8px 0 0; }
.gift-from-l { margin-top: 12px; }
.gift-link { align-self: stretch; margin-top: 16px; padding: 12px 16px; border-radius: var(--r); background: var(--surface); font-size: 13px; line-height: 1.6; color: var(--ink-2); text-align: left; }
.gift-link .chip { margin-top: 8px; }
.me-gift { margin-top: 16px; }
.gf-card { position: relative; padding: 24px 20px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--sh-1); }
.gf-card small { display: block; font-size: 13px; opacity: .85; }
.gf-card b { display: block; margin-top: 2px; color: var(--accent); font-size: 25px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.gf-card p { margin-top: 12px; font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.gf-card .gf-nomsg { opacity: .85; }
.gf-items { margin-top: 16px; }
.gf-when { margin: 12px 4px 0; font-size: 13px; color: var(--ink-2); }
.gf-ok { margin-top: 16px; }

/* ---------- 直播：首页入口 ---------- */
.live { padding: 8px 16px 0; }
.live-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; width: 100%; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--on-ink); text-align: left; }
.live-entry-txt { min-width: 0; display: flex; flex-direction: column; }
.live-entry.pre .live-dot { background: #F9C759; animation: none; }
.live-entry.pre .live-entry-txt b { color: #F9C759; }
.live-entry.pre .live-entry-txt span { white-space: normal; overflow: visible; text-overflow: clip; display: block; line-height: 1.4; }   /* 预告写全日期, 放两行不截断 */
/* 直播抽奖报名页: 深色顶卡(日期金色、开播时间大字、倒计时数字块) + 浅色卡片(报名后邀请卡紧跟顶卡、奖品大图是主角) + 底部固定主按钮 */
.lpv { position: fixed; inset: 0; z-index: 44; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); opacity: 0; transition: opacity .2s ease-out; }
.lpv.open { opacity: 1; }
.lpv-hero { flex: none; padding: calc(8px + env(safe-area-inset-top)) 16px 24px; border-radius: 0 0 24px 24px; background: radial-gradient(120% 90% at 85% 0%, #6B4A33 0%, #3B2A1F 55%, #2B1D14 100%); color: #fff; }
.lpv-top { display: flex; align-items: center; gap: 10px; height: 48px; max-width: 480px; margin: 0 auto; }
.lpv-top img { width: 32px; height: 32px; border-radius: 999px; background: #fff; object-fit: contain; }
.lpv-top b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.lpv-x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.lpv-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#lpvHero { max-width: 480px; margin: 0 auto; }
.lpv-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0 10px; border-radius: 999px; background: rgba(249, 199, 89, .16); color: #F9C759; font-size: 12px; font-weight: 600; line-height: 24px; }
.lpv-tag .live-dot { background: #F9C759; animation: none; }
.lpv-date { margin-top: 16px; font-size: 20px; font-weight: 600; color: #F9C759; }
.lpv-time { margin-top: 2px; font-size: 39px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lpv-cd { display: flex; align-items: flex-end; gap: 6px; margin-top: 16px; }
.lpv-cd-k { align-self: center; margin-right: 4px; font-size: 13px; opacity: .75; }
.lpv-cd span { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 6px 0 4px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.lpv-cd b { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.lpv-cd small { font-size: 11px; opacity: .7; }
.lpv-cd .lpv-soon { min-width: 0; padding: 6px 12px; flex-direction: row; font-size: 15px; font-weight: 600; color: #F9C759; }
.lpv-title { margin-top: 16px; font-size: 15px; line-height: 1.5; opacity: .85; }
.lpv-in { flex: 1 0 auto; width: 100%; max-width: 480px; margin: 0 auto; padding: 16px 16px 24px; }
.lpv-in > * + * { margin-top: 12px; }
.lpv-ref { padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-2); border: 1px solid rgba(255, 106, 42, .25); }
.lpv-ok { font-size: 13px; font-weight: 600; color: #2F7A4D; }
.lpv-ref h3 { margin-top: 10px; font-size: 20px; font-weight: 700; }
.lpv-ref p { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.lpv-ref b { color: var(--accent); font-variant-numeric: tabular-nums; }
.lpv-ref-n { font-weight: 600; }
.lpv-mini { flex: none; padding: 0 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; }
.lpv-prize { overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-2); }
.lpv-prize-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #FFF1EA, #FFE1CF); }
.lpv-prize-img .cake, .lpv-prize-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lpv-prize-img .lot-gift { font-size: 72px; }
.lpv-prize-tag { position: absolute; left: 12px; top: 12px; padding: 0 10px; border-radius: 999px; background: rgba(43, 29, 20, .82); color: #F9C759; font-size: 13px; font-weight: 600; line-height: 28px; font-variant-numeric: tabular-nums; }
.lpv-prize-txt { padding: 14px 16px 16px; }
.lpv-prize-txt b { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.lpv-prize-txt span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.lpv-prize-txt em { font-style: normal; font-weight: 700; color: var(--accent); }
.lpv-more { margin: 0; padding: 4px 16px; list-style: none; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); }
.lpv-more li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.lpv-more li + li { border-top: 1px solid var(--line); }
.lpv-more time { flex: none; width: 46px; font-size: 15px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.lpv-more .lot-img { width: 48px; height: 48px; }
.lpv-more b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.lpv-more small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.lpv-people { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 0; font-size: 14px; color: var(--ink-2); }
.lpv-people b { color: var(--accent); font-variant-numeric: tabular-nums; }
.lpv-avs { display: flex; }
.lpv-avs img { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--bg); object-fit: cover; background: var(--line); }
.lpv-avs img + img { margin-left: -8px; }
.lpv-rule { font-size: 12px; line-height: 1.6; color: var(--ink-3); text-align: center; }
.lpv-bar { position: sticky; bottom: 0; flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(244, 242, 238, 0), var(--bg) 30%); }
.lpv-bar .lpv-go { display: block; width: 100%; max-width: 448px; margin: 0 auto; min-height: 52px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; box-shadow: var(--sh-2); }
.live-entry-txt b { font-size: 13px; font-weight: 700; color: var(--accent); line-height: 1.4; }
.live-entry-txt span { font-size: 16px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-entry i { padding: 0 12px; border-radius: 999px; background: var(--accent); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; line-height: 32px; white-space: nowrap; }
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--accent); opacity: 0; animation: live-ping 1.6s ease-out infinite; }
@keyframes live-ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- 直播间(视频号样式, 全屏) ---------- */
.lr { position: fixed; inset: 0; z-index: 44; background: #140D08; opacity: 0; transition: opacity .2s ease-out; }
.lr.open { opacity: 1; }
.lr-in { position: relative; height: 100%; max-width: 480px; margin: 0 auto; overflow: hidden; color: #fff; }
.lr-stage { position: absolute; inset: 0; background: #140D08; }
.lr-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.lr-stage.wide video { object-fit: contain; }
/* 腾讯播放器(快直播)套在 video 外面一层: 撑满, 它自带的控件/报错/转圈都不要(状态我们自己显示) */
.lr-stage .tcplayer, .lr-stage .video-js { position: absolute; inset: 0; width: 100% !important; height: 100% !important; padding: 0 !important; background: transparent; }
.lr-stage .video-js video { object-fit: cover; }
.lr-stage.wide .video-js video { object-fit: contain; }
.lr-stage .vjs-control-bar, .lr-stage .vjs-big-play-button, .lr-stage .vjs-error-display, .lr-stage .vjs-loading-spinner, .lr-stage .vjs-text-track-display, .lr-stage .vjs-modal-dialog, .lr-stage .vjs-poster { display: none !important; }
.lr-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 13, 8, .5) 0, rgba(20, 13, 8, 0) 180px), linear-gradient(to top, rgba(20, 13, 8, .6) 0, rgba(20, 13, 8, 0) 45%); }

.lr-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lr-host { display: flex; align-items: center; gap: 12px; min-width: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.lr-host img { width: 44px; height: 44px; padding: 6px; border-radius: 999px; background: #fff; flex: none; }
.lr-host img.photo { padding: 0; object-fit: cover; }
.lr-host > span { display: flex; flex-direction: column; min-width: 0; }
.lr-host b { font-size: 16px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-host small { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.4; opacity: .9; }
.lr-host .live-dot { width: 6px; height: 6px; }
.lr-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(20, 13, 8, .4); color: #fff; flex: none; }
.lr-icon.dark { background: var(--bg); color: var(--ink); }
.lr-head { position: absolute; top: calc(72px + env(safe-area-inset-top)); left: 16px; right: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.lr-stat { min-height: 20px; font-size: 13px; line-height: 1.5; opacity: .9; font-variant-numeric: tabular-nums; }
.lr-title { margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-wait { position: absolute; left: 16px; right: 16px; top: 45%; text-align: center; font-size: 16px; }
.lr-sound { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(20, 13, 8, .5); color: #fff; font-size: 16px; font-weight: 600; }

.lr-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 16px calc(12px + env(safe-area-inset-bottom)); }
/* 讲解卡: 贴着底栏, 大图 + 两行名字 + 已售 + 价格 + 购买, 右边 ⓧ 收起 */
.lr-pin { display: flex; align-items: center; gap: 8px; width: 100%; }
.lrp { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; width: min(300px, 80%); padding: 8px; border-radius: 16px; background: rgba(255, 254, 252, .97); color: var(--ink); text-align: left; box-shadow: var(--sh-2); }
.lrp-img { position: relative; display: block; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--bg); }
.lrp-img .cake { display: block; width: 100%; height: 100%; object-fit: cover; }
.lrp-img .lrg-tag { position: absolute; left: 4px; top: 4px; margin: 0; }
.lrp-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lrp-txt b { font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lrp-txt small { font-size: 13px; color: var(--accent); font-weight: 600; }
.lrp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.lrp-row strong { font-size: 20px; line-height: 1.2; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lrp-row strong em { font-style: normal; font-size: 13px; margin-left: 2px; }
.lrp-buy { padding: 0 16px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; line-height: 36px; white-space: nowrap; }
.lr-pin.in { animation: lr-pin-in .35s cubic-bezier(.2, .9, .3, 1.15) both; }
.lr-pin.out { animation: lr-pin-out .25s ease-in forwards; }
@keyframes lr-pin-in { from { opacity: 0; transform: translate(-24px, 24px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes lr-pin-out { to { opacity: 0; transform: translateY(16px) scale(.96); } }
.lr-bag-tag { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap; animation: lr-breathe 1.6s ease-in-out infinite; }
@keyframes lr-breathe { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.1); } }
.lrp-x { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; opacity: .9; flex: none; }
.lrp-x svg { width: 28px; height: 28px; }
.lrg-tag { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 4px; background: #FFE4D6; color: #B2441A; font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 2px; }
.lrg-art { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg); }
.lrg-art .cake { display: block; width: 100%; height: 100%; object-fit: cover; }

.lr-cmts { width: 78%; max-height: min(30vh, 220px); margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px); mask-image: linear-gradient(to bottom, transparent 0, #000 24px); }
.lr-cmts::-webkit-scrollbar { display: none; }
.lr-cmts li { width: fit-content; max-width: 100%; margin-top: 4px; padding: 4px 10px; border-radius: 14px; background: rgba(20, 13, 8, .38); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.lr-cmts li b { font-weight: 500; color: rgba(255, 255, 255, .62); }
.lr-cmts li.mine { background: rgba(255, 106, 42, .5); }
.lr-cmts li.mine b { color: #fff; }
.lr-cmts .lr-note { color: rgba(255, 255, 255, .78); }
.lr-cmts .lr-chip, .lr-cmts .lr-chip a { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.lr-cmts .lr-chip i { padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .88); color: var(--ink); font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; flex: none; }
.lr-cmts .lr-chip svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.lr-join { margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(20, 13, 8, .38); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; opacity: 0; transform: translateX(-8px); transition: opacity .2s ease-out, transform .2s ease-out; }
.lr-join.show { opacity: 1; transform: none; }
/* 主播的话: 跟别人一样的半透明深底(10-11 用户: 白底挡画面看不清), 靠「主播」标签和暖色字区分 */
.lr-cmts li.host { color: #FFE2C7; }
.lr-cmts li.host b { color: rgba(255, 255, 255, .62); font-weight: 500; }
.lr-cmts li.host.to-me { box-shadow: 0 0 0 1.5px rgba(255, 138, 76, .9) inset; }
.lr-quote { display: block; margin-top: 2px; padding-left: 8px; border-left: 2px solid rgba(255, 255, 255, .3); font-size: 12px; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-cmts li.host .lrg-tag { margin-right: 2px; vertical-align: 1px; }

.lr-bar { display: flex; align-items: flex-start; gap: 12px; width: 100%; margin: 4px 0 0; min-height: 60px; }
.lr-say-box { position: relative; flex: 1; min-width: 0; }
.lr-say { width: 100%; height: 44px; padding: 0 44px 0 16px; border: 0; border-radius: 999px; background: rgba(20, 13, 8, .45); color: #fff; font: inherit; font-size: 16px; }
.lr-emo-btn { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.lr-emo-btn svg { width: 22px; height: 22px; }
.lr-act { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.lr-bar.typing .lr-act { display: none; }   /* 打字时只留输入框和发送(视频号也这样) */
.lr-act .lr-icon { width: 44px; height: 44px; background: rgba(20, 13, 8, .45); }
.lr-act small { font-size: 13px; line-height: 1.2; opacity: .9; font-variant-numeric: tabular-nums; }
.lr-emos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; width: 100%; padding: 8px; border-radius: 16px; background: rgba(20, 13, 8, .7); }
.lr-emos button { height: 40px; font-size: 24px; }
.lr-likes { position: absolute; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 72px; height: 260px; pointer-events: none; }
.lr-likes i { position: absolute; right: 12px; bottom: 0; font-style: normal; font-size: 32px; animation: lr-like 1.6s ease-out forwards; }
@keyframes lr-like { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { transform: translate(0, -20px) scale(1.1); opacity: 1; } 100% { transform: translate(var(--dx), -240px) rotate(var(--r)) scale(.9); opacity: 0; } }
.lr-say::placeholder { color: rgba(255, 255, 255, .75); }
.lr-say:focus { outline: none; border-color: rgba(255, 255, 255, .6); }
.lr-send { height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; flex: none; }
.lr-bag, .lr-act .lr-bag { background: var(--accent); }
.lr-bag em { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #fff; color: var(--accent); font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.lr-tray { align-self: flex-end; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: var(--sh-2); }
.lr-tray em { font-style: normal; color: var(--accent); }

.lr-goods { position: absolute; inset: 0; z-index: 2; }
.lr-goods-scrim { position: absolute; inset: 0; background: rgba(20, 13, 8, .4); opacity: 0; transition: opacity .2s ease-out; }
.lr-goods-panel { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; height: 76%; padding: 4px 0 env(safe-area-inset-bottom); border-radius: 16px 16px 0 0; background: var(--surface); color: var(--ink); transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.lr-goods.open .lr-goods-scrim { opacity: 1; }
.lr-goods.open .lr-goods-panel { transform: none; }
.lrg-grip { align-self: center; width: 48px; height: 20px; flex: none; }
.lrg-grip::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto; border-radius: 999px; background: var(--line); }
.lrg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px 12px; }
.lrg-shop { min-width: 0; display: flex; flex-direction: column; }
.lrg-shop b { font-size: 16px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrg-shop small { font-size: 13px; color: var(--ink-3); }
.lrg-tools { display: flex; gap: 4px; flex: none; }
.lrg-tools button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 44px; padding: 4px 2px; font-size: 11px; color: var(--ink-2); }
.lrg-tools svg { width: 22px; height: 22px; }
.lrg-tools em { position: absolute; top: 0; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; line-height: 16px; }
.lrg-search { margin: 0 16px 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); }
.lrg-cats { display: flex; gap: 8px; padding: 0 16px 8px; overflow-x: auto; scrollbar-width: none; flex: none; }
.lrg-cats::-webkit-scrollbar { display: none; }
.lrg-cats:empty { display: none; }
.lrg-cats button { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); }
.lrg-cats button[aria-selected="true"] { background: var(--bg); color: var(--ink); font-weight: 700; }
#lrGoodsList { flex: 1; min-height: 0; margin: 0; padding: 0 16px; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
#lrGoodsList li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
#lrGoodsList li + li { border-top: 1px solid var(--line); }
.lrg-img { position: relative; display: block; width: 112px; height: 112px; border-radius: 12px; overflow: hidden; background: var(--bg); }
.lrg-img .cake { display: block; width: 100%; height: 100%; object-fit: cover; }
.lrg-no { position: absolute; left: 0; top: 0; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 0 0 8px 0; background: rgba(20, 13, 8, .6); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.lrg-live, .lrg-ask { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 0 10px; border-radius: 999px; font-style: normal; font-size: 13px; font-weight: 700; line-height: 26px; white-space: nowrap; }
.lrg-live { background: var(--accent); color: #fff; }
.lrg-ask { background: rgba(20, 13, 8, .55); color: #fff; }
.lrg-ask:disabled { opacity: .7; }
.lrg-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lrg-txt b { font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lrg-sell { font-size: 13px; color: #B2441A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrg-tags { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrg-row { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.lrg-row strong { margin-right: auto; font-size: 20px; line-height: 1.2; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lrg-row strong em { font-style: normal; font-size: 13px; margin-left: 2px; }
.lrg-add { display: grid; place-items: center; width: 40px; height: 36px; border-radius: 10px; background: var(--bg); color: var(--ink-2); flex: none; }
.lrg-add svg { width: 20px; height: 20px; }
.lrg-buy { min-height: 36px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; flex: none; }
.lrg-empty { display: block !important; padding: 32px 0 !important; text-align: center; color: var(--ink-3); }
.lr button:focus-visible, .lr-say:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lr-goods-panel button:focus-visible { outline-color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .lr, .lr-goods-scrim, .lr-goods-panel, .lr-join { transition: none; }
  .lr-likes i { animation: none; display: none; }
  .lr-pin.in, .lr-pin.out, .lr-bag-tag { animation: none; }
  .live-dot::after { animation: none; }
}

/* 直播间发券/红包 */
/* 左上角一排小件(在看人数下面): 小红包/小券 + 福袋胶囊 */
.lr-tokens { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.lr-drop-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; color: #fff; text-shadow: none; transform-origin: 50% 40%; }
.lr-drop-badge:not(.wait) .db-icon { animation: lr-breathe2 1.6s ease-in-out infinite; }
.lr-drop-badge span { padding: 0 6px; border-radius: 999px; background: rgba(20, 13, 8, .55); font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; }
.lr-drop-badge:not(.wait) span { background: #E8392F; }
.db-icon { position: relative; display: grid; place-items: center; font-style: normal; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.db-icon.rp { width: 30px; height: 38px; border-radius: 6px; background: linear-gradient(180deg, #F2453D, #D92B2B); }
.db-icon.rp::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; border-radius: 6px 6px 50% 50% / 6px 6px 8px 8px; background: #C9231F; }
.db-icon.rp::after { content: "開"; position: relative; display: grid; place-items: center; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: #F9C759; color: #8C4A0A; font-size: 8px; font-weight: 800; line-height: 1; }
.db-icon.cp { width: 36px; height: 26px; margin: 6px 0; border-radius: 4px; background: #FFF1EA; color: var(--accent); font-size: 13px; font-weight: 800; outline: 1px dashed rgba(240, 106, 44, .7); outline-offset: -3px; }
@keyframes lr-breathe2 { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.lr-drop { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; background: rgba(20, 13, 8, .55); opacity: 0; transition: opacity .2s ease-out; }
.lr-drop.open { opacity: 1; }
.lr-drop-card { position: relative; width: min(300px, 100%); padding: 24px 20px 20px; border-radius: 20px; text-align: center; transform: scale(.9); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); }
.lr-drop.open .lr-drop-card { transform: none; }
.lr-drop-x { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; font-size: 24px; line-height: 1; opacity: .8; }
.lr-drop-card.rp { min-height: 380px; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, #F2453D 0, #D92B2B 100%); color: #FFE7B8; }
.rp-from { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; font-size: 16px; font-weight: 600; }
.rp-from img { width: 48px; height: 48px; padding: 6px; border-radius: 12px; background: #fff; }
.rp-hint { margin-top: 8px; font-size: 13px; opacity: .85; }
.rp-open { width: 96px; height: 96px; margin-top: 40px; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #FFE7A0, #F2B33D 70%); color: #8A4B0A; font-size: 36px; font-weight: 800; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.rp-open.spin { animation: rp-spin .6s linear infinite; }
@keyframes rp-spin { to { transform: rotateY(360deg); } }
/* 没到点: 只有倒计时, 没有按钮 */
.rp-wait, .cp-wait { display: flex; flex-direction: column; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.rp-wait[hidden], .cp-wait[hidden] { display: none; }
.rp-wait { margin-top: 48px; color: #FFE7B8; }
.rp-wait small, .cp-wait small { font-size: 13px; opacity: .85; }
.rp-wait b { font-size: 39px; font-weight: 600; line-height: 1.1; letter-spacing: .02em; }
.cp-wait { margin-top: 16px; color: var(--accent); }
.cp-wait small { color: var(--ink-3); opacity: 1; }
.cp-wait b { font-size: 31px; font-weight: 600; line-height: 1.1; }
.cp-go.wait { background: var(--line); color: var(--ink-3); }
.rp-left { margin-top: auto; padding-top: 24px; font-size: 13px; font-variant-numeric: tabular-nums; }
.lr-drop-card.cp, .lr-drop-card.won { background: var(--surface); color: var(--ink); }
.cp-h, .won-h { font-size: 20px; font-weight: 700; }
.cp-ticket { display: flex; margin-top: 16px; color: var(--ink); text-align: left; }   /* 票券外观走 .tk */
.cp-ticket.tk { --stub: 100px; }
.cp-ticket > b { font-size: 31px; }
.cp-ticket span { min-width: 0; display: flex; flex-direction: column; }
.cp-ticket span b { font-size: 16px; overflow-wrap: anywhere; }
.cp-ticket span small { font-size: 13px; color: var(--ink-3); }
.cp-left { margin-top: 12px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cp-go { width: 100%; margin-top: 16px; min-height: 44px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; }
.won-amt { margin-top: 12px; font-size: 49px; font-weight: 800; line-height: 1.1; color: var(--accent); }
.won-rule { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.won-tip { margin-top: 12px; font-size: 16px; font-weight: 600; }
.drop-miss { padding: 32px 8px 16px; font-size: 16px; font-weight: 600; color: var(--ink); }
.lr-drop-card .drop-miss { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .lr-drop, .lr-drop-card { transition: none; }
  .db-icon, .rp-open.spin { animation: none !important; }
}

/* 直播秒杀: 顶上小闪电 + 下面小字倒计时(跟小红包/小福袋一套); 卡片用福袋那套白卡, 秒杀价红色、原价划掉、已抢进度条 */
.sk-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(180deg, #FF6A3D, #E8322A); color: #FFE7A0; font-style: normal; flex: none; }
.sk-ic svg { width: 16px; height: 16px; fill: currentColor; }
.lr-sk-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; color: #fff; text-shadow: none; }
.lr-sk-chip .sk-ic { width: 30px; height: 30px; margin: 2px 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); animation: lr-breathe2 1.6s ease-in-out infinite; }
.lr-sk-chip span { padding: 0 6px; border-radius: 999px; background: #E8392F; font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; }
.lot-top .sk-ic { width: 22px; height: 22px; border-radius: 6px; }
.lot-top .sk-ic svg { width: 13px; height: 13px; }
.sk-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.sk-price strong { font-size: 20px; font-weight: 700; color: #E8322A; font-variant-numeric: tabular-nums; }
.sk-price s { font-size: 13px; color: var(--ink-3); }
.sk-bar { height: 6px; margin-top: 12px; border-radius: 999px; background: #FBE3DC; overflow: hidden; }
.sk-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FF8A4C, #E8322A); transition: width .3s ease-out; }
.sk-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lr-drop-card.sk .lot-go:not(.done) { background: #E8322A; }
/* 直播拍卖: 小锤子(深色底金锤) */
.au-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(180deg, #4A3426, #2B1D14); color: #F9C759; font-style: normal; flex: none; }
.au-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lr-au-chip .au-ic { width: 30px; height: 30px; margin: 2px 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); animation: none; }
.lr-au-chip span { background: #3B2A1F; }
.lot-top .au-ic { width: 22px; height: 22px; border-radius: 6px; }
.lot-top .au-ic svg { width: 13px; height: 13px; }
.au-now { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.au-now small { font-size: 12px; color: var(--ink-3); }
.au-now strong { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.au-rule { margin-top: 8px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.au-bids { margin: 8px 0 0; padding: 0; list-style: none; }
.au-bids li { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.au-bids li + li { border-top: 1px solid var(--line); }
.au-bids li.lead { color: var(--ink); font-weight: 600; }
.au-bids li.lead b { color: var(--accent); }
.au-empty { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.lr-drop-card.au .lot-go:not(.done):not(.ghost) { background: var(--ink); }
.lr-cmts li.bid { color: #FFD9A8; }
.lr-cmts li.bid b { color: rgba(255, 255, 255, .62); font-weight: 500; }

/* 明天的场次: 小日历 */
.tm-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(180deg, #3E7B5A, #2B5A41); color: #fff; font-style: normal; flex: none; }
.tm-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lr-tm-chip .tm-ic { width: 30px; height: 30px; margin: 2px 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); animation: none; }
.lr-tm-chip span { background: #2B5A41; }
.lot-top .tm-ic { width: 22px; height: 22px; border-radius: 6px; }
.lot-top .tm-ic svg { width: 13px; height: 13px; }

/* 评论区的上新 */
.lr-cmts li.shelf .lrg-tag { background: #FFE4D6; color: #B2441A; }
.lr-shelf-go { display: inline-flex; align-items: center; margin-left: 6px; padding: 0 6px 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; vertical-align: 1px; }
.lr-shelf-go svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .lr-sk-chip .sk-ic { animation: none; } }

/* 直播间抽奖(福袋): 顶上跟小红包同一套(小图标 + 下面小字时间); 卡片白底, 倒计时放标题右边小字, 名额/参与/方式三格 */
.lot-bag { position: relative; display: block; width: 28px; height: 34px; font-style: normal; }
.lot-bag::before { content: ""; position: absolute; left: 7px; right: 7px; top: 0; height: 10px; border-radius: 5px 5px 2px 2px; background: #E8392F; }
.lot-bag::after { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 3px; border-radius: 2px; background: #F9C759; }
.lot-bag em { position: absolute; left: 0; right: 0; top: 11px; bottom: 0; display: grid; place-items: center; border-radius: 40% 40% 46% 46% / 30% 30% 70% 70%; background: linear-gradient(180deg, #F2453D, #D02A26); color: #FFE2A8; font-size: 11px; font-weight: 600; font-style: normal; line-height: 1; }
.lr-lot-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; color: #fff; text-shadow: none; }
.lr-lot-chip .lot-bag { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.lr-lot-chip span { padding: 0 6px; border-radius: 999px; background: rgba(20, 13, 8, .55); font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; }
.lr-lot-chip.done .lot-bag { opacity: .7; }

.lr-drop-card.lot { width: min(320px, 100%); padding: 16px; background: var(--surface); color: var(--ink); text-align: left; }
.lot-top { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.lot-top .lot-bag { width: 22px; height: 27px; }
.lot-top .lot-bag em { top: 9px; font-size: 9px; }
.lot-top .lot-bag::before { left: 6px; right: 6px; height: 8px; }
.lot-top .lot-bag::after { left: 6px; right: 6px; top: 7px; }
.lot-top > b { font-size: 16px; font-weight: 600; }
.lot-cd { margin-left: auto; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lot-cd b { font-weight: 600; color: var(--accent); }
.lot-x { display: grid; place-items: center; width: 32px; height: 32px; margin: -4px -8px -4px 0; color: var(--ink-3); flex: none; }
.lot-top > b + .lot-x { margin-left: auto; }
.lot-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lot-prize { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 8px; border-radius: 12px; background: var(--bg); }
.lot-img { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #FFF1EA; flex: none; }
.lot-img .cake { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-gift { font-size: 28px; color: var(--accent); }
.lot-prize > span:last-child { min-width: 0; }
.lot-prize b { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.lot-prize small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.lot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 0; text-align: center; }
.lot-stats div + div { border-left: 1px solid var(--line); }
.lot-stats dt { font-size: 11px; color: var(--ink-3); }
.lot-stats dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lot-go { width: 100%; margin-top: 16px; min-height: 44px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; }
.lot-go.done { background: #FFF1EA; color: var(--accent); }
.lot-go.ghost { background: var(--bg); color: var(--ink); }
.lot-note { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.lot-rule { margin-top: 8px; font-size: 11px; color: var(--ink-3); text-align: center; }
.lot-roll { display: grid; place-items: center; height: 72px; margin-top: 12px; border-radius: 12px; background: linear-gradient(180deg, #FFF1EA, #FFE4D6); overflow: hidden; }
.lot-roll span { font-size: 25px; font-weight: 700; color: var(--accent); white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.lot-roll-tip { text-align: center; font-variant-numeric: tabular-nums; }
.lot-stay { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #FFF1EA; font-size: 13px; line-height: 1.6; color: var(--ink); }
.lot-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.lot-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; }
.lot-in { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; resize: none; }
.lot-in:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.lot-in[aria-invalid="true"] { border-color: #D92B2B; }
.lot-err { font-size: 13px; color: #C2261F; }
.lot-form .lot-go { margin-top: 4px; }

/* ---------- 直播营销(10-13): 预告页的活动块、报名后的引导分享、直播间分享卡、在线人数解锁、喜报。颜色只用店里两色 + 原有灰阶 ---------- */
.pm-cover { display: block; width: 100%; max-height: 240px; border-radius: 20px; object-fit: cover; box-shadow: var(--sh-1); }
.pm-card { padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); }
.pm-h { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pm-perks { margin: 0; list-style: none; }
.pm-perks li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.7; }
.pm-perks li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.pm-gift { padding: 12px 16px; border-radius: 16px; background: #FFF1EA; font-size: 15px; line-height: 1.5; color: var(--ink); }
.pm-gift b { color: var(--accent); }
.pm-bar { height: 8px; margin-top: 8px; border-radius: 999px; background: #F3E6DD; overflow: hidden; }
.pm-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s ease-out; }
.pm-unlock ol, .pm-rank ol { margin: 8px 0 0; padding: 0; list-style: none; }
.pm-unlock li, .pm-rank li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 14px; border-top: 1px solid var(--line); }
.pm-unlock li:first-child, .pm-rank li:first-child { border-top: 0; }
.pm-unlock li b { flex: none; min-width: 56px; font-variant-numeric: tabular-nums; }
.pm-unlock li span, .pm-rank li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pm-unlock li em { flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: #2F7A4D; }
.pm-unlock li small, .pm-rank li small { flex: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pm-unlock li.is-done span { color: #2F7A4D; }
.pm-tip { font-size: 13px; line-height: 1.6; color: var(--ink-2); text-align: center; }
.pm-pz { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--accent); }
.pm-rank li b { flex: none; width: 22px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pm-rank li:nth-child(-n+3) b { color: var(--accent); }
.pm-rank li.is-me span { font-weight: 700; }
.pm-me { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.pm-me b { color: var(--accent); }
.pm-fine { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.pm-prog { margin-top: 12px; }
.pm-prog p { font-size: 14px; }
.pm-prog p b { color: var(--accent); font-variant-numeric: tabular-nums; }
.pm-prog p small { display: block; font-size: 12px; color: var(--ink-3); }
.pm-prog > small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.pm-arrow { position: relative; margin-top: 12px; padding: 12px 60px 12px 14px; border-radius: 14px; background: #FFF1EA; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.pm-arrow span { position: absolute; right: 12px; top: 50%; width: 36px; height: 40px; transform: translateY(-50%); color: var(--accent); }   /* 箭头朝右上: 微信「···」在右上角 */
.pm-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pm-link, .pm-copy { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--bg); }
.pm-link p, .pm-copy p { font-size: 13px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.pm-link .lot-go, .pm-copy .lot-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; background: var(--surface); }
.pm-link svg, .pm-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-rw { margin: 6px 0 0; padding: 0; list-style: none; }
.pm-rw li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pm-rw li:first-child { border-top: 0; }
.pm-rw li span { min-width: 0; overflow-wrap: anywhere; }
.pm-rw li small { flex: none; max-width: 60%; font-size: 12px; color: var(--ink-3); text-align: right; overflow-wrap: anywhere; }
.pm-next { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-next a { flex: 1 1 calc(50% - 4px); display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.pm-title { font-size: 20px !important; font-weight: 700; opacity: 1 !important; }
.pm-rep-h { font-size: 31px; }
.pm-rep-t { font-size: 16px; }
.pm-nextlive { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; text-align: left; }
.pm-nextlive span { font-size: 12px; color: #F9C759; font-weight: 600; }
.pm-nextlive b { font-size: 18px; font-weight: 700; }
.pm-nextlive small { font-size: 13px; opacity: .8; overflow-wrap: anywhere; }
.pm-shop { display: block; width: 100%; min-height: 44px; border-radius: 12px; background: var(--surface); box-shadow: var(--sh-1); font-size: 15px; font-weight: 600; color: var(--ink); }
/* 直播间分享卡: 东西多时卡片里滚 */
.lr-drop-card.pm { max-height: calc(100% - 48px); overflow-y: auto; overscroll-behavior: contain; }
.lr-drop-card.pm .pm-card { margin-top: 12px; padding: 12px; background: var(--bg); box-shadow: none; }
.lr-drop-card.pm .pm-next { margin-top: 12px; }
.lr-drop-card.pm .pm-next a { background: var(--bg); box-shadow: none; }
/* 在线人数解锁: 直播间顶上一条 */
.lr-onl { width: min(260px, 72%); margin-top: 8px; padding: 6px 10px 8px; border-radius: 12px; background: rgba(20, 13, 8, .55); font-size: 12px; line-height: 1.4; text-shadow: none; }
.lr-onl p { display: flex; justify-content: space-between; gap: 8px; }
.lr-onl p span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-onl b { font-variant-numeric: tabular-nums; }
.lr-onl .pm-bar { height: 4px; margin-top: 4px; background: rgba(255, 255, 255, .25); }
.lr-onl[hidden] { display: none; }
