/* 镇上好 · 全站暗黑主题（CSS 变量双主题：默认暗黑；body.light 浅色供管理后台） */
:root {
  --bg: #0d1017;
  --bg-2: #12161f;
  --card: #171b26;
  --card-2: #1d2230;
  --line: #272e3d;
  --line-soft: #1f2531;
  --text: #e8ecf4;
  --text-2: #9aa6b8;
  --text-3: #67748a;
  --brand: #22c07d;
  --brand-deep: #0c6b4f;
  --brand-soft: rgba(34, 192, 125, .13);
  --accent: #ff8a4d;
  --accent-soft: rgba(255, 138, 77, .14);
  --warn: #fbbf24;
  --danger: #ff6b6b;
  --shadow: rgba(0, 0, 0, .45);
}
body.light {
  --bg: #f1f5f9;
  --bg-2: #f8fafc;
  --card: #ffffff;
  --card-2: #ffffff;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --text: #0f172a;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --brand: #0e7c66;
  --brand-deep: #0e7c66;
  --brand-soft: #ecfdf5;
  --accent: #ea580c;
  --accent-soft: #fff7ed;
  --warn: #b45309;
  --danger: #dc2626;
  --shadow: rgba(15, 23, 42, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background-color: var(--bg); color: var(--text); font-size: 15px; background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.wrap { max-width: 480px; margin: 0 auto; padding: 12px; padding-bottom: 90px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }

.topbar { background: linear-gradient(135deg, #0a4d3d, var(--brand-deep)); color: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 4px 14px var(--shadow); }
.topbar h1 { font-size: 19px; }
.topbar .sub { font-size: 13px; opacity: .9; margin-top: 4px; }

.tabs { display: flex; background: var(--card); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; border: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px 0; border-radius: 9px; font-size: 15px; color: var(--text-2); }
.tabs button.on { background: var(--brand); color: #08110d; font-weight: 700; }
body.light .tabs button.on { color: #fff; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }

/* 金刚区（多多买菜式快捷入口） */
.quicks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.quick { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 13px; color: var(--text-2); cursor: pointer; transition: border-color .15s; }
.quick:hover { border-color: var(--brand); }
.quick .qi { width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.quick .qi.o { background: var(--accent-soft); color: var(--accent); }
.quick .qi.g { background: rgba(251, 191, 36, .14); color: var(--warn); }
.chip { flex: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--text-2); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #08110d; font-weight: 700; }
body.light .chip.on { color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
.pcard:hover { border-color: var(--brand); }
.pcard .tag { align-self: flex-start; font-size: 12px; background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.pcard .tag.wh { background: var(--accent-soft); color: var(--accent); }
.pcard .nm { font-weight: 700; font-size: 15px; }
.pcard .ds { font-size: 12px; color: var(--text-3); min-height: 16px; }
.pcard .row { display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--accent); font-weight: 800; font-size: 17px; }
.price small { font-weight: 400; font-size: 12px; color: var(--text-3); }
.btn { border: 0; border-radius: 9px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.btn-p { background: var(--brand); color: #08110d; }
body.light .btn-p { color: #fff; }
.btn-p:hover { filter: brightness(1.08); }
.btn-o { background: var(--accent); color: #1a0d05; }
body.light .btn-o { color: #fff; }
.btn-g { background: var(--card-2); color: var(--text-2); border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-mini { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { width: 100%; padding: 12px; font-size: 16px; font-weight: 700; }

.input, .select, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; background: var(--bg-2); color: var(--text); margin-bottom: 10px; }
.label { font-size: 13px; color: var(--text-2); margin-bottom: 4px; display: block; }
.input::placeholder { color: var(--text-3); }

.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; width: min(456px, calc(100% - 24px)); background: var(--card-2); color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 8px 24px var(--shadow); }
.cartbar .cnt { background: var(--accent); color: #1a0d05; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 6px; font-weight: 700; }

.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 16px; line-height: 1; }

.oc { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 12px; margin-bottom: 10px; }
.o-tabs { display: flex; gap: 6px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.o-tabs span { flex: 1; text-align: center; font-size: 13px; color: var(--text-2); padding: 7px 0; border-radius: 999px; cursor: pointer; }
.o-tabs span.on { background: var(--accent, #0a4d3d); color: #fff; font-weight: 600; }
.oc .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.oc .oid { font-size: 13px; color: var(--text-2); }
.oc .it { display: flex; justify-content: space-between; font-size: 14px; color: var(--text); padding: 3px 0; }
.oc .ft { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.oc .acts { display: flex; gap: 8px; margin-top: 8px; }

.tl { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.tl div { padding: 2px 0; }
.tl b { color: var(--text); }

.status { display: inline-block; font-size: 12px; border-radius: 999px; padding: 2px 10px; color: #fff; font-weight: 600; }

/* 商家端 / 后台共用 */
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.mcard .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi .v { font-size: 22px; font-weight: 800; color: var(--brand); }
.kpi .k { font-size: 13px; color: var(--text-2); margin-top: 2px; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { background: var(--bg-2); color: var(--text-2); font-size: 13px; }
tr:last-child td { border-bottom: 0; }

.side-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.side-form .input, .side-form .select { margin-bottom: 0; }

.login { max-width: 360px; margin: 60px auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 8px 30px var(--shadow); }
.login h2 { margin-bottom: 14px; color: var(--brand); }

.hide { display: none !important; }
.muted { color: var(--text-3); font-size: 12px; }
.ta { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 8px; }
.mb { margin-bottom: 10px; }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 8px; }
.divider { border-top: 1px dashed var(--line); margin: 16px 0; }

/* 商品缩略图 + 售罄 */
.thumb { position: relative; border-radius: 10px; overflow: hidden; background: var(--bg-2); aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sold-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pcard.soldout { opacity: .72; }
.pcard.soldout .nm { color: var(--text-3); }
.sold-overlay:empty { display: none; }

/* 优秀商家徽章 */
.badge-gold { display: inline-block; font-size: 12px; font-weight: 700; color: var(--warn); background: var(--accent-soft); border: 1px solid var(--warn); border-radius: 999px; padding: 2px 10px; margin-left: 6px; }

/* ===== 微信式交流群 ===== */
.wx { display: flex; flex-direction: column; gap: 10px; }
.wx-side { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wx-side-hd { padding: 12px 14px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); color: var(--brand); }
.wx-list { display: flex; overflow-x: auto; padding: 10px; gap: 10px; }
.wx-list::-webkit-scrollbar { height: 6px; }
.wx-item { flex: none; width: 72px; cursor: pointer; border-radius: 10px; padding: 6px 4px; text-align: center; transition: background .15s; }
.wx-item:hover { background: var(--bg-2); }
.wx-item.on { background: var(--brand-soft); }
.wx-avatar { width: 44px; height: 44px; margin: 0 auto 5px; border-radius: 10px; background: linear-gradient(135deg, #0a4d3d, var(--brand-deep)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.wx-nm { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-prev { font-size: 11px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-cc { font-size: 10px; color: var(--text-3); margin-top: 1px; }
.wx-empty { text-align: center; color: var(--text-3); padding: 40px 0; font-size: 13px; }
.wx-main { background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; height: 480px; }
.wx-hd { padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wx-hd .wx-sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.wx-msgs { flex: 1; overflow-y: auto; padding: 14px; background: var(--bg-2); }
.wx-msgs::-webkit-scrollbar { width: 6px; }
.wx-msg { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 12px; }
.wx-msg.mine { align-items: flex-end; }
.wx-whom { font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.wx-msg .bubble { max-width: 72%; padding: 9px 12px 6px; border-radius: 10px; background: var(--card-2); color: var(--text); word-break: break-word; border: 1px solid var(--line-soft); }
.wx-msg.mine .bubble { background: var(--brand); color: #08110d; border: 0; }
body.light .wx-msg.mine .bubble { color: #fff; }
.wx-when { font-size: 10px; color: var(--text-3); margin-top: 4px; text-align: right; }
.wx-bar { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.wx-bar input { flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--text); outline: none; }
.wx-bar input:focus { border-color: var(--brand); }
.wx-bar button { background: var(--brand); color: #08110d; border: 0; border-radius: 8px; padding: 0 22px; font-weight: 700; font-size: 14px; }
body.light .wx-bar button { color: #fff; }

/* ===== 山水画背景底板（不同角色不同画）===== */
body.bg-admin { background-image: linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)), url('backgrounds/bg-admin.jpg'); }
body.bg-province { background-image: linear-gradient(rgba(13,16,23,.78), rgba(13,16,23,.78)), url('backgrounds/bg-province.jpg'); }
body.bg-city { background-image: linear-gradient(rgba(13,16,23,.78), rgba(13,16,23,.78)), url('backgrounds/bg-city.jpg'); }
body.bg-county { background-image: linear-gradient(rgba(13,16,23,.78), rgba(13,16,23,.78)), url('backgrounds/bg-county.jpg'); }
body.bg-town { background-image: linear-gradient(rgba(13,16,23,.78), rgba(13,16,23,.78)), url('backgrounds/bg-town.jpg'); }
body.bg-cell { background-image: linear-gradient(rgba(13,16,23,.78), rgba(13,16,23,.78)), url('backgrounds/bg-cell.jpg'); }
body.bg-member { background-image: linear-gradient(rgba(13,16,23,.78), rgba(13,16,23,.78)), url('backgrounds/bg-member.jpg'); }
body.bg-merchant { background-image: linear-gradient(rgba(13,16,23,.78), rgba(13,16,23,.78)), url('backgrounds/bg-merchant.jpg'); }

/* ===== 移动端 App 化（居民端 · 模仿小象超市 + 镇上好差异化）===== */
body.bg-member { background-attachment: scroll; }
.m-app { width: 100%; max-width: none; margin: 0 auto; padding-bottom: 86px; }
.m-hd { position: sticky; top: 0; z-index: 40; background: linear-gradient(135deg, #0a4d3d, var(--brand-deep)); padding: 10px 12px 8px; border-radius: 0 0 16px 16px; box-shadow: 0 4px 16px var(--shadow); }
.m-store { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.m-store-l { display: flex; align-items: center; gap: 8px; color: #fff; }
.m-store-l b { font-size: 17px; letter-spacing: .5px; }
.m-arrive { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; }
.m-store-r { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.92); font-size: 13px; }
.m-store-r span { cursor: pointer; }
.m-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 8px 12px; color: rgba(255,255,255,.85); }
.m-search input { flex: 1; border: 0; background: transparent; color: #fff; font-size: 14px; outline: none; }
.m-search input::placeholder { color: rgba(255,255,255,.7); }
.m-search b { font-size: 13px; cursor: pointer; white-space: nowrap; }
.m-cats { display: flex; gap: 7px; overflow-x: auto; margin-top: 9px; padding-bottom: 2px; scrollbar-width: none; }
.m-cats::-webkit-scrollbar { display: none; }
.m-cats .chip { flex: none; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.9); }
.m-cats .chip.on { background: #ffb300; border-color: #ffb300; color: #241a00; }

/* 促销宫格（金刚区） */
.m-pg { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding: 12px 12px 0; }
.m-pg-i { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 2px; text-align: center; cursor: pointer; }
.m-pg-i .em { font-size: 21px; line-height: 1; margin-bottom: 5px; }
.m-pg-i div:last-child { font-size: 12px; color: var(--text-2); }
.m-pg-i:active { transform: scale(.96); }

/* 次日达横幅（差异化核心） */
.m-banner { margin: 10px 12px 0; background: linear-gradient(90deg, var(--brand-soft), transparent); border: 1px solid rgba(34,192,125,.35); border-radius: 12px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.m-banner .mb-b { background: var(--brand); color: #08110d; border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 800; flex: none; }
.m-banner .mb-t { color: var(--text-2); }

/* 赶集秒杀区 */
.m-sk { margin: 12px 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.m-sk-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.m-sk-hd .t { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--text); }
.m-sk-hd .t i { font-style: normal; background: var(--accent); color: #fff; border-radius: 7px; padding: 3px 8px; font-size: 12px; }
.m-sk-count { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.m-sk-count b { font-variant-numeric: tabular-nums; color: var(--accent); font-size: 15px; }
.m-sk-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.m-sk-row::-webkit-scrollbar { display: none; }
.m-sk-card { flex: none; width: 128px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.m-sk-card .th { border-radius: 9px; overflow: hidden; background: var(--card-2); aspect-ratio: 1; position: relative; }
.m-sk-card .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-sk-card .th .sec { position: absolute; left: 6px; top: 6px; background: var(--accent); color: #fff; border-radius: 6px; font-size: 10px; padding: 2px 6px; font-weight: 700; }
.m-sk-card .nm { font-size: 13px; font-weight: 700; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.m-sk-card .sp { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.m-sk-card .pr { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.m-sk-card .pr .p { color: var(--accent); font-size: 16px; font-weight: 800; }
.m-sk-card .pr .o { font-size: 11px; color: var(--text-3); text-decoration: line-through; }
.m-sk-card .btns { display: flex; gap: 5px; margin-top: 7px; }
.m-sk-card .btns .btn { flex: 1; padding: 5px 0; font-size: 12px; border-radius: 8px; }

/* 满减进度条 + 新人礼 */
.m-fc { margin: 10px 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.m-fc .fc-t { font-size: 13px; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; }
.m-fc .fc-t em { font-style: normal; color: var(--accent); }
.m-fc .fc-bar { height: 7px; border-radius: 99px; background: var(--bg-2); margin-top: 7px; overflow: hidden; }
.m-fc .fc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.m-new { margin: 10px 12px 0; border: 1px dashed rgba(251,191,36,.55); background: rgba(251,191,36,.07); border-radius: 12px; padding: 9px 12px; font-size: 13px; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.m-new b { color: var(--warn); }

/* 分类浏览（左竖分类 + 右商品流） */
.m-cats-wrap { display: flex; gap: 10px; margin: 12px 12px 0; align-items: flex-start; }
.m-side { flex: none; width: 82px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; position: sticky; top: 96px; }
.m-side div { padding: 8px 6px; border-radius: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: center; }
.m-side div.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.m-flow { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; min-width: 0; }
.m-fcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px; display: flex; flex-direction: column; gap: 5px; }
.m-fcard .th { border-radius: 9px; overflow: hidden; background: var(--bg-2); aspect-ratio: 1; position: relative; }
.m-fcard .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-fcard .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.m-fcard .tags span { font-size: 10px; border-radius: 5px; padding: 1px 6px; font-weight: 700; }
.m-fcard .tags .tg-next { background: var(--brand-soft); color: var(--brand); }
.m-fcard .tags .tg-local { background: var(--accent-soft); color: var(--accent); }
.m-fcard .tags .tg-sec { background: rgba(225,29,72,.16); color: #fb7185; }
.m-fcard .tags .tg-limit { background: rgba(251,191,36,.14); color: var(--warn); }
.m-fcard .nm { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-fcard .sp { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-fcard .st { font-size: 11px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-fcard .rt { font-size: 11px; color: var(--text-3); display: flex; justify-content: space-between; }
.m-fcard .rt .star { color: var(--warn); }
.m-fcard .pr { display: flex; align-items: baseline; gap: 4px; }
.m-fcard .pr .p { color: var(--accent); font-size: 16px; font-weight: 800; }
.m-fcard .pr .o { font-size: 11px; color: var(--text-3); text-decoration: line-through; }
.m-fcard .pr .u { font-size: 11px; color: var(--text-3); }
.m-fcard .add { margin-top: 2px; display: flex; justify-content: flex-end; }
.m-fcard .add .btn { padding: 5px 12px; font-size: 12px; border-radius: 999px; }
.m-fcard.soldout { opacity: .7; }
.m-fcard .sold-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-size: 13px; font-weight: 700; border-radius: 9px; }

/* 五星商家横滑 */
.m-star { margin: 12px 12px 0; }
.m-star .hd { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.m-star .hd .g { color: var(--warn); }
.m-star-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.m-star-row::-webkit-scrollbar { display: none; }
.m-star-card { flex: none; width: 150px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.m-star-card .nm { font-weight: 700; font-size: 14px; color: var(--text); }
.m-star-card .st { color: var(--warn); font-size: 13px; margin: 3px 0; }
.m-star-card .ds { font-size: 11px; color: var(--text-3); }

/* 底部购物车悬浮条（App 式） */
.m-cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 10px; z-index: 45; width: min(456px, calc(100% - 20px)); background: #10141c; border: 1px solid var(--line); border-radius: 999px; padding: 9px 10px 9px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px var(--shadow); }
.m-cartbar .ic { position: relative; }
.m-cartbar .ic .em { font-size: 24px; }
.m-cartbar .ic .n { position: absolute; top: -6px; right: -9px; background: var(--accent); color: #fff; border-radius: 99px; font-size: 10px; min-width: 17px; height: 17px; line-height: 17px; text-align: center; padding: 0 4px; font-weight: 800; }
.m-cartbar .mid { flex: 1; min-width: 0; color: var(--text); }
.m-cartbar .mid .p { font-weight: 800; color: #fff; font-size: 15px; }
.m-cartbar .mid .cut { font-size: 11px; color: var(--accent); }
.m-cartbar .go { background: var(--brand); color: #08110d; border: 0; border-radius: 999px; padding: 10px 22px; font-size: 14px; font-weight: 800; flex: none; }
body.light .m-cartbar .go { color: #fff; }

/* 促销面板（领券/代收点通用浮层） */
.m-sheet { position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.m-sheet-in { width: min(480px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 18px 16px 30px; max-height: 78vh; overflow-y: auto; }
.m-sheet h3 { margin-bottom: 12px; color: var(--text); }
.coupon { border: 1px dashed rgba(34,192,125,.5); background: var(--bg-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.coupon .c-l b { color: var(--accent); font-size: 18px; }
.coupon .c-l div { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.coupon .c-r .btn { padding: 6px 16px; font-size: 12px; }
.coupon.got .c-r .btn { opacity: .5; pointer-events: none; }
