/* bbt-xi H5 样式（移动端优先）
   视觉体系取自 https://ycb3.mixiaoxiao.com/h5（优财宝 · uni-app 风格）：
   主蓝 #007aff / 按下 #0062cc / 品牌绿 #00bc82 / 警示红 #e64340·#f43530 / 成功绿 #48c23d
   页面底 #f8f8f8 / 卡片 #fff / 主字 #353535 / 次字 #888 / 边线 #e5e5e5 / 圆角 5px
   风格图标：uni 图标字体（weuiRegular）+ tabbar 线性图标（40px 双态 PNG）+ 导航栏投影条
   静态资源化：以上图标/字体/图片全部本地化于 public/static/，零外链、零 CDN 流量费用 */

/* ===== uni 图标字体（提取自优财宝线上 CSS，weuiRegular 1.0） ===== */
@font-face {
  font-family: uni;
  src: url("static/fonts/uni.ttf") format("truetype");
  font-display: swap;
}
[class^="uni-icon-"], [class*=" uni-icon-"] { font-style: normal; -webkit-font-smoothing: antialiased; }
[class^="uni-icon-"]::before, [class*=" uni-icon-"]::before {
  font-family: uni; font-weight: normal; font-style: normal; line-height: 1;
  display: inline-block; color: inherit; vertical-align: middle;
}
.uni-icon-circle::before { content: "\EA01"; }
.uni-icon-download::before { content: "\EA02"; }
.uni-icon-info::before { content: "\EA03"; }
.uni-icon-success::before { content: "\EA06"; }
.uni-icon-waiting::before { content: "\EA09"; }
.uni-icon-warn::before { content: "\EA0B"; }
.uni-icon-cancel::before { content: "\EA0D"; }
.uni-icon-search::before { content: "\EA0E"; }
.uni-icon-clear::before { content: "\EA0F"; }

/* ===== 设计令牌（优财宝配色） ===== */
:root {
  --primary: #007aff;
  --primary-dark: #0062cc;
  --brand: #00bc82;
  --bg: #f8f8f8;
  --bg2: #f7f7f7;
  --card: #ffffff;
  --text: #353535;
  --muted: #888;
  --muted2: #9f9f9f;
  --line: #e5e5e5;
  --ok: #48c23d;
  --warn: #f43530;
  --hot: #e64340;
  --radius: 8px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.5; }
#app { max-width: 720px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }

/* ===== 顶部导航（优财宝式蓝色投影条） ===== */
#topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 10px; background: var(--primary); color: #fff; overflow: visible; }
#top-title { flex: 1; font-size: 16px; font-weight: 600; text-align: center; color: #fff; }
.icon-btn { border: none; background: none; font-size: 24px; font-weight: 300; color: #fff; width: 36px; height: 36px; border-radius: var(--radius); cursor: pointer; line-height: 1; padding: 0; }
.icon-btn:active { background: rgba(255, 255, 255, .18); }
#top-right { color: #fff; font-size: 14px; }
#top-right a, #top-right .link { color: #fff; }
#top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 36px; justify-content: flex-end; }
#view { flex: 1; padding: 12px 12px 84px; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
.muted { color: var(--muted); font-size: 12px; }

/* ===== 卡片 ===== */
.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(17, 31, 50, .04), 0 2px 8px rgba(17, 31, 50, .04); }
.card .title { font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.stat .n { font-size: 18px; font-weight: 700; color: var(--primary); }
.stat .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); gap: 8px; }
.row:last-child { border-bottom: none; }
.row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.list { display: block; }
.mt4 { margin-top: 4px; }

/* ===== 标签 / 筹码 ===== */
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; background: var(--bg2); color: var(--text); white-space: nowrap; }
.tag.ok { background: rgba(72, 194, 61, .12); color: var(--ok); }
.tag.warn { background: rgba(244, 53, 48, .1); color: var(--warn); }
.tag.hot { background: rgba(230, 67, 64, .1); color: var(--hot); }
.tag.blue { background: rgba(0, 122, 255, .1); color: var(--primary); }
.chip { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; background: rgba(0, 0, 0, .05); color: var(--text); white-space: nowrap; }
.chip.ok { background: rgba(72, 194, 61, .12); color: var(--ok); }
.chip.open { background: rgba(0, 122, 255, .1); color: var(--primary); }
.chip.closed { background: rgba(244, 53, 48, .1); color: var(--warn); }
.chip.completed { background: var(--bg2); color: var(--muted); }
.chip.joined { background: var(--bg2); color: var(--muted); }
.chip.ordered { background: rgba(0, 122, 255, .1); color: var(--primary); }
.chip.warn { background: rgba(244, 53, 48, .1); color: var(--warn); }

/* ===== 页内分段切换（本团 / 本轮） ===== */
.segs { display: flex; background: var(--bg2); border-radius: var(--radius); padding: 3px; margin-bottom: 12px; }
.segs .seg { flex: 1; border: none; background: transparent; padding: 8px 0; font-size: 14px; color: var(--muted); border-radius: calc(var(--radius) - 2px); cursor: pointer; }
.segs .seg.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.mr8 { margin-right: 8px; }

/* ===== 按钮（uni-app 风格：默认灰底 / 主色蓝 / 危险红 / 圆角 5px） ===== */
.btn { display: block; width: 100%; border: none; background: var(--bg2); color: var(--text); font-size: 15px; font-weight: 400; padding: 12px; border-radius: var(--radius); cursor: pointer; line-height: 1.4; }
.btn:active { background: #e5e5e5; }
.btn.primary { background: var(--primary); color: #fff; font-weight: 600; }
.btn.primary:active { background: var(--primary-dark); }
.btn.ghost { background: rgba(0, 0, 0, 0); color: var(--primary); border: 1px solid var(--primary); }
.btn.sm { width: auto; display: inline-block; padding: 6px 12px; font-size: 12px; border-radius: var(--radius); }
.btn.danger { background: var(--hot); color: #fff; }
.btn.danger:active { background: #ce3c39; }
.btn:disabled { background: #ccc; color: #fff; cursor: not-allowed; }

/* ===== 表单 ===== */
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin-bottom: 10px; outline: none; font-family: inherit; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { min-height: 70px; resize: vertical; }
label.fld { display: block; font-size: 12px; color: var(--muted); margin: 0 0 4px 2px; }
.link { color: var(--primary); text-decoration: none; }

/* ===== 分段选择 ===== */
.tabs2 { display: flex; background: var(--bg2); border-radius: var(--radius); padding: 3px; margin-bottom: 14px; }
.tabs2 span { flex: 1; text-align: center; padding: 8px; border-radius: var(--radius); font-size: 13px; color: var(--muted); cursor: pointer; }
.tabs2 span.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* ===== 入口 / 用户 ===== */
.entry { background: var(--card); border-radius: var(--radius); padding: 14px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(17, 31, 50, .04), 0 2px 8px rgba(17, 31, 50, .04); }
.entry:active { background: var(--bg2); }
.entry b { color: var(--primary); }
.usercard { display: flex; gap: 12px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #4da3ff, #007aff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 40px; height: 40px; font-size: 15px; }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 10px; background: rgba(0, 122, 255, .1); color: var(--primary); vertical-align: middle; }
.banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.banner .ph { height: 110px; background: linear-gradient(120deg, #007aff, #4da3ff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; letter-spacing: 1px; }
.prod { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.prod:last-child { border-bottom: none; }
.prod .img { width: 64px; height: 64px; border-radius: var(--radius); background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; flex: none; }
.prod .meta { flex: 1; min-width: 0; }
.price { color: var(--hot); font-weight: 700; }

/* ===== 底部 tabbar（优财宝图标：灰 #9f9f9f / 选中品牌绿 #00bc82） ===== */
#tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 720px; display: flex; background: var(--card); border-top: 1px solid var(--line); padding: 5px 0 calc(5px + env(safe-area-inset-bottom)); z-index: 40; }
#tabbar .tab { flex: 1; text-align: center; font-size: 13px; color: var(--muted2); cursor: pointer; padding: 14px 0; text-decoration: none; }
#tabbar .tab .ic { display: none; }
#tabbar .tab.on { color: var(--primary); font-weight: 600; }

/* ===== toast ===== */
#toast-root { position: fixed; top: 20%; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(0, 0, 0, .8); color: #fff; padding: 9px 16px; border-radius: var(--radius); font-size: 13px; max-width: 78vw; animation: tin .18s ease; }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; } }

/* ===== modal ===== */
#modal-root .mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fin .15s ease; }
@keyframes fin { from { opacity: 0; } to { opacity: 1; } }
#modal-root .modal { background: var(--card); border-radius: 16px 16px 0 0; width: 100%; max-width: 720px; max-height: 86vh; overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: mup .2s ease; }
@keyframes mup { from { transform: translateY(30px); } to { transform: translateY(0); } }
#modal-root .modal .title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }

/* ===== 浮层（右侧抽屉）===== */
#modal-root .drawer-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 100; animation: fin .15s ease; }
#modal-root .drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--card); box-shadow: -4px 0 24px rgba(0, 0, 0, .18); display: flex; flex-direction: column; animation: drin .22s ease; }
@keyframes drin { from { transform: translateX(100%); } to { transform: translateX(0); } }
#modal-root .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
#modal-root .drawer-title { font-size: 16px; font-weight: 700; }
#modal-root .drawer-x { border: none; background: transparent; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; padding: 4px 8px; }
#modal-root .drawer-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }

/* 分享入团卡片：展示邀请码/链接，点击复制，长按可选 */
.share-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #f6f9ff; cursor: pointer; transition: background .15s, border-color .15s; }
.share-card:active { background: #eaf2ff; border-color: var(--primary); }
.share-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.share-val { font-size: 15px; font-weight: 700; color: var(--text); word-break: break-all; -webkit-user-select: text; user-select: text; }
.share-tip { margin-top: 8px; font-size: 11px; color: var(--muted); }

/* ===== 滑块 ===== */
.slider-box { padding: 6px 4px 2px; }
.slider-box input[type=range] { width: 100%; margin: 6px 0 2px; -webkit-appearance: none; background: transparent; padding: 0; border: none; }
.slider-box input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--primary) var(--pct, 33%), #e3e8f0 var(--pct, 33%)); }
.slider-box input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); margin-top: -8px; box-shadow: 0 1px 4px rgba(0, 122, 255, .4); }
.slider-val { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.slider-val b { color: var(--hot); font-size: 16px; }

/* ===== 团购包卡片 ===== */
.pkg { border: none; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; position: relative; background: #f7f8fa; }
.pkg.sel { border: 1px solid var(--primary); background: rgba(0, 122, 255, .06); }
.pkg .shop { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pkg .sku-line { font-size: 12px; color: #475069; line-height: 1.7; }
.pkg .p-total { font-weight: 700; color: var(--hot); }
.pkg .chk { position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #ccc; }
.pkg.sel .chk { background: var(--primary); border-color: var(--primary); }
.pkg.sel .chk::after { content: "\EA06"; font-family: uni; color: #fff; font-size: 12px; display: block; text-align: center; line-height: 18px; }

/* ===== 支付步骤 ===== */
.step { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.step .no { width: 22px; height: 22px; border-radius: 50%; background: var(--bg2); color: var(--muted); text-align: center; line-height: 22px; font-size: 12px; font-weight: 700; flex: none; }
.step.on .no { background: var(--primary); color: #fff; }
.step.done .no { background: var(--ok); color: #fff; }
.step .t { font-weight: 600; }
.step .s { font-size: 11px; color: var(--muted); }
.qr-box { text-align: center; padding: 8px 0; }
.qr-box img { width: 190px; height: 190px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qr-ph { width: 190px; height: 190px; margin: 0 auto; border: 1px dashed #ccc; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.qr-mini { width: 36px; height: 36px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; margin-right: 6px; cursor: zoom-in; }
.pay-amount { text-align: center; font-size: 24px; font-weight: 800; color: var(--hot); margin: 6px 0 2px; }
.notice { background: rgba(244, 53, 48, .06); border: 1px solid rgba(244, 53, 48, .25); color: #ce3c39; font-size: 12px; border-radius: var(--radius); padding: 9px 12px; margin-bottom: 12px; line-height: 1.6; }
.notice.blue { background: rgba(0, 122, 255, .06); border-color: rgba(0, 122, 255, .25); color: var(--primary-dark); }
.empty { text-align: center; color: var(--muted); padding: 36px 0; font-size: 13px; }
.empty::before { content: ""; display: block; width: 72px; height: 72px; margin: 0 auto 10px; background: url(static/img/pic-empty.png) center/contain no-repeat; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; word-break: break-all; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ocr-preview img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--primary); width: 0; transition: width .2s; }
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 12px; }
table.tb th, table.tb td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.tb th { color: var(--muted); font-weight: 500; }
.countdown { color: var(--warn); font-weight: 600; }
.closed { color: var(--hot); font-weight: 600; }

/* ===== 登录页（优财宝风格：顶部装饰图 + 品牌字） ===== */
.logo { text-align: center; font-size: 22px; font-weight: 700; color: var(--primary); letter-spacing: 2px; margin: 16px 0 14px; }
.login-hero { margin: -12px -12px 0; height: 140px; overflow: hidden; background: var(--card); }
.login-hero img { width: 100%; height: 100%; object-fit: cover; object-position: right top; display: block; }

/* ===== 品牌区（登录页 + 首页统一展示：团购 / 热火进行中...） ===== */
.brand { text-align: center; margin: 18px 0 10px; }
.brand-title { font-size: 30px; font-weight: 800; letter-spacing: 6px; background: linear-gradient(120deg, #007aff, #00bc82); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary); }
.brand-sub { margin-top: 4px; font-size: 13px; color: var(--hot); font-weight: 600; letter-spacing: 2px; }
.brand-sub::before { content: "🔥 "; }

/* ===== 首页 hero 轮播（182px 高 / 15px 圆角，样式取自 ycb3 u-swiper） ===== */
.hero { margin-bottom: 12px; }
.hero-swiper { position: relative; height: 182px; border-radius: 15px; overflow: hidden; background: #f3f4f6; }
.hero-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-slide .t { font-size: 20px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.hero-slide .s { font-size: 12px; opacity: .92; letter-spacing: 1px; }
.hero-slide .e { font-size: 30px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.hero-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .55); transition: all .25s; cursor: pointer; }
.hero-dots i.on { width: 16px; background: #fff; }
.hero-brand { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 2px 0; }
.hero-brand .hb-title { font-size: 20px; font-weight: 800; letter-spacing: 4px; color: var(--text); }
.hero-brand .hb-sub { font-size: 12px; color: var(--hot); font-weight: 600; }
.hero-brand .hb-sub::before { content: "🔥 "; }

/* ===== 登录页：请记住本站网址（居中，网址变量动态获取） ===== */
.site-tip { text-align: center; margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.site-tip b { display: block; margin-top: 3px; font-size: 14px; color: var(--primary); word-break: break-all; }

/* ===== 我的页（配色照抄 ycb3.mixiaoxiao.com 我的页） ===== */
.mine-head { display: flex; align-items: center; gap: 14px; }
.mine-head .avatar { width: 56px; height: 56px; font-size: 22px; background: linear-gradient(135deg, #3e7fe8, #075be2); }
.mstat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mstat3 .s { border-radius: 10px; padding: 12px 6px 10px; text-align: center; color: #fff; }
.mstat3 .s .e { font-size: 20px; }
.mstat3 .s .n { font-size: 17px; font-weight: 800; margin-top: 2px; }
.mstat3 .s .l { font-size: 11px; opacity: .92; margin-top: 1px; }
.mstat3 .s.teal { background: linear-gradient(135deg, #2fb0cc, #2193b2); }
.mstat3 .s.blue { background: linear-gradient(135deg, #73c2ff, #4a9fe8); }
.mstat3 .s.orange { background: linear-gradient(135deg, #fcad55, #f78c3f); }
.mstat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mstat2 .s { border-radius: 10px; padding: 14px 12px; color: #fff; }
.mstat2 .s .l { font-size: 11px; opacity: .92; display: flex; align-items: center; gap: 5px; }
.mstat2 .s .n { font-size: 20px; font-weight: 800; margin-top: 4px; }
.mstat2 .s.b1 { background: linear-gradient(180deg, #3779f0, #99cafa); }
.mstat2 .s.b2 { background: linear-gradient(180deg, #eb6a56, #f5cab7); }
/* 白卡菜单行（ycb3 u-cell 风格：左图标 + 标题 + 右值 + 箭头） */
.mcell { display: flex; align-items: center; gap: 10px; padding: 13px 12px; border-bottom: 1px solid #f2f2f2; cursor: pointer; font-size: 14px; }
.mcell:last-child { border-bottom: none; }
.mcell:active { background: var(--bg2); }
.mcell .e { font-size: 18px; flex: none; display: flex; align-items: center; }
.mcell .e img { width: 22px; height: 22px; object-fit: contain; display: block; }
.mcell .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcell .v { font-size: 12px; color: var(--muted); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcell .arrow { color: #c0c0c0; font-size: 16px; flex: none; }
/* ycb3 退出按钮：错误红 #f56c6c / 圆角 3px / 白字 */
.btn.logout { background: #f56c6c; color: #fff; border-radius: 3px; font-size: 14px; height: 40px; line-height: 40px; padding: 0; }
.btn.logout:active { background: #e35d5d; }

/* ===== v2 原子类（无序团 · 预期匹配） ===== */
.page { padding: 12px; flex: 1; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.name { font-weight: 600; }
.sub { color: var(--muted); font-size: 12px; }
.label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.center { text-align: center; }
.mt8 { margin-top: 8px; }
.mb8 { margin-bottom: 8px; }
.mt12 { margin-top: 12px; }
.kv > span { color: var(--muted); }
.kv > b { font-weight: 600; text-align: right; word-break: break-all; }
.card.ok { border: 1px solid var(--ok); color: var(--ok); text-align: center; font-weight: 600; }
input.slider { width: 100%; margin: 8px 0 4px; padding: 0; border: none; background: transparent; }
.qr { width: 176px; height: 176px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.shot { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.steps { display: flex; gap: 8px; margin-bottom: 12px; }
.steps span { flex: 1; text-align: center; font-size: 12px; padding: 7px 4px; border-radius: var(--radius); background: var(--bg2); color: var(--muted); }
.steps span.on { background: var(--primary); color: #fff; font-weight: 600; }
.price { font-size: 24px; font-weight: 800; color: var(--hot); margin: 8px 0 2px; }
.pkg-list { margin-top: 8px; }
.pkg-list .pkg { border: none; border-radius: var(--radius); padding: 8px 12px; margin-bottom: 8px; }
.pkg-list .pkg:last-child { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-grid label { display: block; font-size: 12px; color: var(--muted); }
.form-grid input { margin-bottom: 0; }
input.input.sm { display: inline-block; width: auto; min-width: 96px; margin-bottom: 0; }
.shop-head { display: flex; align-items: center; gap: 10px; }
.sku-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== OCR 预检薄提示行（PRD §6.9.4：只标色，不放行不拦截） ===== */
.ocr-hint { margin-top: 8px; padding: 7px 10px; border-radius: var(--radius); font-size: 12px; line-height: 1.5; background: var(--bg2); color: var(--muted); border: 1px solid var(--line); }
.ocr-hint.ok { background: rgba(72, 194, 61, .1); color: var(--ok); border-color: rgba(72, 194, 61, .28); }
.ocr-hint.bad { background: rgba(244, 53, 48, .1); color: var(--warn); border-color: rgba(244, 53, 48, .28); }
.ocr-hint.off { display: none; }
/* 凭证五态标色（§6.9 / 设计稿 43:4）——仅标色，不改变任何订单状态 */
.ocr-flag { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; background: #c8c8c8; }
.ocr-flag.f0 { background: var(--ok); }
.ocr-flag.f1, .ocr-flag.f2, .ocr-flag.f3 { background: var(--warn); }
.ocr-flag.f4 { background: #c8c8c8; }

/* ===== 底部固定下单条（设计稿：已选合计 + 统一下单） ===== */
.paybar { position: fixed; bottom: calc(58px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: 100%; max-width: 720px; z-index: 39; background: var(--card); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.paybar .pb-info b { font-size: 17px; color: var(--hot); }
.paybar .btn { width: auto; min-width: 136px; padding: 10px 24px; }

/* ===== 团长本团页多团 tab ===== */
.group-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.group-tabs::-webkit-scrollbar { display: none; }
.group-tabs .gtab { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
.group-tabs .gtab.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ===== 后台响应式外壳（设计稿 41:1 / 43:152 通用约定） =====
   ≥1200px: 左侧导航 180px + 内容区；900-1200px: 侧导航收窄；
   <900px: 侧导航折叠为顶部横条、卡片通栏；<640px: 单列布局 */
.bo-shell { display: flex; align-items: stretch; min-height: calc(100vh - 48px); max-width: 1200px; margin: 0 auto; width: 100%; }
.bo-side { flex: none; width: 180px; background: var(--card); border-right: 1px solid var(--line); padding: 16px 12px; }
.bo-side .bo-role { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-side .bo-nav { display: block; padding: 9px 10px; border-radius: var(--radius); font-size: 14px; color: var(--text); text-decoration: none; margin-bottom: 2px; }
.bo-side .bo-nav.on { background: rgba(0, 122, 255, .08); color: var(--primary); font-weight: 600; }
.bo-main { flex: 1; min-width: 0; padding: 16px; }
@media (max-width: 1200px) { .bo-shell { max-width: 100%; } .bo-side { width: 96px; padding: 14px 8px; } .bo-side .bo-role { font-size: 12px; } .bo-side .bo-nav { font-size: 13px; padding: 8px 6px; text-align: center; } .bo-main { padding: 12px; } }
@media (max-width: 900px) {
  .bo-shell { flex-direction: column; }
  .bo-side { width: 100%; display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 8px 10px; gap: 6px; align-items: center; }
  .bo-side .bo-role { display: none; }
  .bo-side .bo-nav { white-space: nowrap; width: auto; margin-bottom: 0; padding: 7px 12px; }
  .bo-main { padding: 12px 10px; }
}
@media (max-width: 640px) {
  .bo-main { padding: 10px 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .paybar { padding: 8px 10px; }
}

/* ===== 团长自动回复聊天（tuanzhangchat） ===== */
#chat-fab { position: fixed; right: 14px; bottom: 70px; z-index: 60; display: none; flex-direction: column; align-items: center; gap: 3px; }
#chat-fab .fab-ic { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 12px rgba(0,122,255,.35); cursor: pointer; position: relative; }
#chat-fab .fab-ic:active { background: var(--primary-dark); }
#chat-fab .fab-label { font-size: 10px; color: var(--primary); background: #fff; border-radius: 8px; padding: 1px 5px; box-shadow: 0 1px 3px rgba(0,0,0,.1); white-space: nowrap; }
#chat-fab .fab-badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--hot); color: #fff; font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px; }

.chat-page { display: flex; flex-direction: column; height: calc(100vh - 48px); }
.chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.chat-head .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--bg2); }
.chat-head .nm { font-weight: 600; }
.chat-head .st { font-size: 12px; color: var(--muted); }
.chat-head .st.on { color: var(--ok); }
.chat-head .st.busy { color: var(--warn); }
.chat-head .st.hidden { color: var(--muted2); }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; gap: 8px; max-width: 100%; }
.chat-msg.me { flex-direction: row-reverse; }
.chat-msg .av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--bg2); flex: none; }
.chat-msg .bubble { max-width: 72%; padding: 9px 12px; border-radius: 10px; background: var(--card); font-size: 14px; word-break: break-word; box-shadow: 0 1px 2px rgba(0,0,0,.04); position: relative; }
.chat-msg.me .bubble { background: var(--primary); color: #fff; }
.chat-msg .meta { font-size: 10px; color: var(--muted2); margin-top: 3px; }
.chat-msg .recalled { color: var(--muted2); font-style: italic; }
.chat-msg .ops { display: flex; gap: 6px; margin-top: 3px; }
.chat-msg .ops button { font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--primary); cursor: pointer; }
.chat-quota { flex: none; text-align: center; font-size: 11px; color: var(--warn); padding: 4px; background: rgba(244,53,48,.06); }
.chat-input { flex: none; display: flex; gap: 8px; padding: 8px 10px; background: var(--card); border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; font-size: 14px; resize: none; height: 40px; line-height: 1.4; }
.chat-input .btn { width: auto; padding: 0 16px; }

.chat-session { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border-bottom: 1px solid var(--line); cursor: pointer; }
.chat-session .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--bg2); }
.chat-session .info { flex: 1; min-width: 0; }
.chat-session .nm { font-weight: 600; }
.chat-session .sub { font-size: 12px; color: var(--muted); }
.chat-session .unread { min-width: 18px; height: 18px; border-radius: 9px; background: var(--hot); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 5px; }
.chat-tip { font-size: 12px; color: var(--muted); padding: 10px 12px; }

.chat-set-tabs { display: flex; gap: 8px; padding: 10px 12px; }
.chat-set-tabs .t { padding: 6px 14px; border-radius: 999px; background: var(--bg2); color: var(--muted); font-size: 13px; cursor: pointer; }
.chat-set-tabs .t.on { background: var(--primary); color: #fff; }
.chat-script-row { display: flex; gap: 8px; align-items: flex-start; padding: 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.chat-script-row .c { flex: 1; font-size: 13px; }
.chat-script-row .c.disabled { color: var(--muted2); text-decoration: line-through; }
