/* 顾客扫码端与叫号大屏 · 页面样式
   设计令牌与通用组件来自 base.css（与原型完全同一套）；
   此处只放页面专属样式，取值与原型 h5.html / screen.html 保持一致，避免视觉走样。 */

/* ============ 顾客扫码端（微信内打开）============ */
.wxbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: #2C2C2E; color: #fff; font-size: 14px;
}
.wxbar .grow { flex: 1; text-align: center; font-size: 15px; }

.hero { background: var(--brand); color: #fff; padding: 20px 20px 22px; }
.hero .sn { font-size: 13px; opacity: .82; display: flex; align-items: center; gap: 6px; }
.hero .lbl { font-size: 12px; opacity: .7; margin-top: 14px; }
.hero .no {
  font-size: 46px; font-weight: 700; letter-spacing: 2px; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.hero .tp { font-size: 12.5px; opacity: .82; }
.hero .sum {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; gap: 0;
}
.hero .sum .it { flex: 1; }
.hero .sum .it + .it { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 14px; }
.hero .sum .k { font-size: 11.5px; opacity: .72; }
.hero .sum .v { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 3px; }

/* 叫到我了：hero 整块变**正红** + 号码呼吸放大。
   这里刻意不用橙红（--calling）：顾客往往只扫一眼，
   橙红在手机上很容易被当成"普通状态提示"划过去（D-32 2026-10-06）。 */
.hero.calling { background: var(--danger); }
.hero.calling .no { animation: heroNoBeat .9s ease-in-out infinite; }
@keyframes heroNoBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* 叫号横幅：常驻在进度页顶部。
   顾客点过"返回排队进度"、或者切出去又切回来时，一眼就能看到自己被叫了 —— 
   只有"全屏提醒"是不够的，因为它会被用户主动关掉。 */
.calledbanner {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--danger); color: #fff; border-radius: var(--r);
  animation: bannerPulse 1.1s ease-in-out infinite;
}
.calledbanner .grow { flex: 1; }
.calledbanner .t { font-size: 14px; font-weight: 600; }
.calledbanner .s { font-size: 12px; opacity: .92; margin-top: 2px; }
@keyframes bannerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, .55); }
  50% { box-shadow: 0 0 0 7px rgba(179, 38, 30, 0); }
}

.h5body { padding: 14px 14px 26px; background: var(--bg); }

/* 队列节点进度 */
.rail { display: flex; align-items: flex-start; }
.rail .nd { flex: 1; text-align: center; position: relative; }
.rail .nd::before {
  content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line);
}
.rail .nd:first-child::before { left: 50%; }
.rail .nd:last-child::before { right: 50%; }
.rail .nd .pt {
  position: relative; width: 16px; height: 16px; margin: 0 auto; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); z-index: 1;
}
.rail .nd.done .pt { background: var(--brand); border-color: var(--brand); }
.rail .nd.cur .pt { background: var(--calling); border-color: var(--calling); box-shadow: 0 0 0 4px var(--calling-bg); }
.rail .nd.me .pt { background: #fff; border-color: var(--wait); border-width: 3px; }
.rail .nd .lb { margin-top: 8px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rail .nd.me .lb { color: var(--wait); font-weight: 600; }
.rail .nd.cur .lb { color: var(--calling); font-weight: 600; }

.qline {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.qline:last-child { border-bottom: 0; }
.qline .no { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 56px; }
.qline .grow { flex: 1; color: var(--ink-3); font-size: 12px; }
.qline.me-row { background: var(--wait-bg); margin: 0 -16px; padding: 10px 16px; }
.qline.me-row .no { color: var(--wait); }

.h5note {
  display: flex; gap: 8px; padding: 11px 12px; border-radius: var(--r-s);
  background: var(--warn-bg); color: #7A4A06; font-size: 12.5px; line-height: 1.6;
}

/* 轮到我了（整屏）：正红 + 铃铛呼吸 —— 这是"必须马上看到"的一屏。
   原来用的是橙红（--calling），在手机上很容易被当成普通状态提示。 */
.callfull {
  min-height: 100vh; background: var(--danger); color: #fff;
  padding: 40px 24px 30px; text-align: center; display: flex; flex-direction: column;
}
.callfull .ring {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center;
  animation: callRingBeat 1s ease-in-out infinite;
}
@keyframes callRingBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.callfull .t1 { font-size: 14px; opacity: .88; }
.callfull .no {
  font-size: 64px; font-weight: 700; letter-spacing: 3px;
  font-variant-numeric: tabular-nums; margin: 6px 0 2px;
}
.callfull .t2 { font-size: 13.5px; opacity: .9; }
.callfull .cd {
  margin: 26px auto 0; width: 150px; padding: 10px 0; border-radius: var(--r-s);
  background: rgba(255, 255, 255, .14);
}
.callfull .cd .k { font-size: 11.5px; opacity: .8; }
.callfull .cd .v { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.callfull .btns { margin-top: auto; display: grid; gap: 10px; padding-top: 26px; }
.callfull .btn-w {
  height: 46px; border: 0; border-radius: var(--r-s); background: #fff; color: var(--danger);
  font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
}
.callfull .btn-w.line { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }

/* 桌型卡片 */
.tcard {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px;
}
.tcard.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 111, 92, .10); }
.tcard .cv {
  width: 46px; height: 46px; flex: none; border-radius: var(--r-s);
  background: var(--brand-l); color: var(--brand-d);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}
.tcard .grow { flex: 1; min-width: 0; }
.tcard .nm { font-size: 14.5px; font-weight: 600; }
.tcard .s { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.tcard .w { text-align: right; }
.tcard .w b { font-size: 19px; color: var(--wait); font-variant-numeric: tabular-nums; }
.tcard .w span { display: block; font-size: 11px; color: var(--ink-3); }

/* 底部固定操作条（顾客端与门店端共用，取值与原型一致） */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 7;
  display: flex; gap: 10px; padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.actionbar .btn-block { flex: 1; }

/* 屏切换（门店端单页多屏） */
.scr { display: none; }
.scr.on { display: block; }

/* ============ 总部后台（Web，对齐原型 admin.html）============ */
body.adm-body-page { background: var(--bg); }

.adm { display: flex; min-height: 100vh; }

.adm-side {
  width: 206px; flex: none; background: #14231E; color: #fff;
  display: flex; flex-direction: column; padding: 16px 12px;
  position: sticky; top: 0; height: 100vh;
}
.adm-side .logo { display: flex; align-items: center; gap: 9px; padding: 0 6px 16px; }
.adm-side .logo .bx {
  width: 30px; height: 30px; border-radius: 7px; background: rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center;
}
.adm-side .logo .nm { font-size: 13.5px; font-weight: 600; }
.adm-side .logo .vc { font-size: 11px; color: rgba(255, 255, 255, .5); margin-top: -2px; }
.adm-side .mg { padding: 0 8px 8px; font-size: 11px; color: rgba(255, 255, 255, .38); letter-spacing: .4px; }
.adm-side .mi {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 34px; padding: 0 10px;
  border: 0; border-radius: var(--r-s); background: transparent; cursor: pointer;
  color: rgba(255, 255, 255, .78); font-family: var(--font); font-size: 13px; text-align: left;
}
.adm-side .mi:hover { background: rgba(255, 255, 255, .07); }
.adm-side .mi.on { background: rgba(255, 255, 255, .13); color: #fff; font-weight: 600; }
.adm-side .mi .r { margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, .5); }
.adm-side .bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.adm-side .who { display: flex; align-items: center; gap: 9px; padding: 8px; font-size: 12.5px; }
.adm-side .who .av {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .15);
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none;
}
.adm-side .who .s { font-size: 11px; color: rgba(255, 255, 255, .5); }

.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top {
  height: 56px; flex: none; display: flex; align-items: center; gap: 12px;
  padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.adm-top .bc { font-size: 15px; font-weight: 600; }
.adm-top .crumb { font-size: 12px; color: var(--ink-3); }
.adm-top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.adm-body { flex: 1; overflow: auto; padding: 18px 20px 28px; }

.grid2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .input { width: 220px; }
.toolbar .select { width: 140px; }
.toolbar .search { position: relative; }
.toolbar .search svg.ic { position: absolute; left: 9px; top: 8px; color: var(--ink-4); }
.toolbar .search .input { padding-left: 30px; }
.toolbar .right { margin-left: auto; display: flex; gap: 10px; }

.trend { display: flex; align-items: flex-end; gap: 16px; height: 168px; padding: 6px 2px 0; }
.trend .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; }
.trend .bar { width: 100%; max-width: 46px; background: var(--brand); border-radius: 3px 3px 0 0; }
.trend .v { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.trend .lb { font-size: 11.5px; color: var(--ink-3); }

.plan { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 16px; }
.plan.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 111, 92, .10); }
.plan .p { font-size: 13px; color: var(--ink-3); }
.plan .pr { font-size: 28px; font-weight: 700; margin: 6px 0 2px; }
.plan .pr small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.plan ul { margin: 12px 0 0 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.9; }
.plan .tag { margin-top: 12px; }

.kv { display: grid; grid-template-columns: 92px 1fr; gap: 10px 12px; font-size: 13px; }
.kv .k { color: var(--ink-3); }

/* 后台登录 */
.adm-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #14231E; padding: 20px;
}
.adm-login .box {
  width: 100%; max-width: 380px; background: #fff; border-radius: var(--r-l);
  padding: 28px 26px; box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}
.adm-login .logo {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-l); color: var(--brand-d);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.adm-login h1 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.adm-login .st { font-size: 12.5px; color: var(--ink-3); margin-bottom: 20px; }
.adm-login .field { margin-bottom: 14px; }
.adm-login .err {
  background: var(--danger-bg); color: var(--danger); border-radius: var(--r-s);
  padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px;
}
.adm-login .btn { height: 42px; font-size: 14.5px; }
.adm-login .tip { margin-top: 14px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }


/* ============ 店内叫号大屏 ============ */
.tv-stage { width: 100vw; height: 100vh; container-type: size; overflow: hidden; }

.scr-board {
  display: flex; flex-direction: column; height: 100%;
  background: #0B1512; color: #fff; font-variant-numeric: tabular-nums;
}

.sb-top {
  display: flex; align-items: center; gap: 1.4cqw;
  padding: 1.6cqw 2.2cqw; border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.sb-top .nm { font-size: 2.1cqw; font-weight: 600; letter-spacing: .5px; }
.sb-top .sub { font-size: 1.15cqw; color: rgba(255, 255, 255, .5); margin-top: .3cqw; }
.sb-top .r { margin-left: auto; display: flex; align-items: center; gap: 1.2cqw; }
.sb-top .time { font-size: 2.4cqw; font-weight: 600; letter-spacing: 1px; }
.sb-top .date { font-size: 1.15cqw; color: rgba(255, 255, 255, .5); text-align: right; }
.sb-top .net {
  display: flex; align-items: center; gap: .5cqw; font-size: 1.1cqw;
  color: #6FCF8E; background: rgba(111, 207, 142, .12);
  padding: .5cqw 1cqw; border-radius: .5cqw;
}

.sb-cols { flex: 1; display: flex; min-height: 0; }
.sb-col {
  flex: 1; min-width: 0; padding: 1.8cqw 2cqw;
  display: flex; flex-direction: column; gap: 1cqw;
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.sb-col:last-child { border-right: 0; }
.sb-col .ch { display: flex; align-items: baseline; gap: .8cqw; }
.sb-col .ch .t { font-size: 1.7cqw; font-weight: 600; }
.sb-col .ch .s { font-size: 1.05cqw; color: rgba(255, 255, 255, .45); }
.sb-col .ch .w { margin-left: auto; font-size: 1.05cqw; color: rgba(255, 255, 255, .55); }
.sb-col .ch .w b { font-size: 1.5cqw; color: #7FB2F0; }

.sb-num {
  border-radius: 1cqw; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  padding: 1.4cqw 1.6cqw; flex: none;
}
.sb-num .k { font-size: 1.05cqw; color: rgba(255, 255, 255, .5); display: flex; align-items: center; gap: .6cqw; }
.sb-num .v {
  font-size: 6.6cqw; font-weight: 700; line-height: 1.06; letter-spacing: 0;
  margin-top: .4cqw; white-space: nowrap;
}
.sb-num.calling { background: rgba(194, 65, 12, .22); border-color: rgba(255, 138, 76, .55); }
.sb-num.calling .v { color: #FFB27A; }
.sb-num.idle .v { font-size: 2.6cqw; color: rgba(255, 255, 255, .35); font-weight: 500; }

.sb-wait { margin-top: .2cqw; }
.sb-wait .k { font-size: 1.05cqw; color: rgba(255, 255, 255, .45); }
.sb-wait .list { display: flex; flex-wrap: wrap; gap: .7cqw; margin-top: .8cqw; }
.sb-wait .list .c {
  font-size: 1.6cqw; font-weight: 600; padding: .5cqw 1.1cqw;
  background: rgba(255, 255, 255, .08); border-radius: .5cqw; color: rgba(255, 255, 255, .92);
}
.sb-wait .empty { font-size: 1.2cqw; color: rgba(255, 255, 255, .3); margin-top: .8cqw; }
.sb-pass { margin-top: auto; display: flex; flex-wrap: wrap; gap: .7cqw; align-items: center; }
.sb-pass .lbl { font-size: 1.05cqw; color: #E8B96A; }
.sb-pass .c {
  font-size: 1.4cqw; font-weight: 600; padding: .4cqw 1cqw; border-radius: .5cqw;
  background: rgba(232, 185, 106, .16); color: #E8B96A;
}

.sb-foot {
  display: flex; align-items: center; gap: 2cqw;
  padding: 1.4cqw 2.2cqw; border-top: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
}
.sb-foot .voice { display: flex; align-items: center; gap: 1cqw; }
.sb-foot .voice .ring {
  width: 3.4cqw; height: 3.4cqw; border-radius: 50%; flex: none;
  background: rgba(194, 65, 12, .25); color: #FFB27A;
  display: flex; align-items: center; justify-content: center;
}
.sb-foot .voice .t1 { font-size: 1.5cqw; font-weight: 600; }
.sb-foot .voice .t2 { font-size: 1.05cqw; color: rgba(255, 255, 255, .5); margin-top: .2cqw; }
.sb-foot .right { margin-left: auto; display: flex; align-items: center; gap: 1.2cqw; }
.sb-foot .qrbox {
  width: 6.4cqw; height: 6.4cqw; padding: .5cqw; background: #fff; border-radius: .5cqw; flex: none;
}
.sb-foot .qrbox img { width: 100%; height: 100%; display: block; }
.sb-foot .qt { font-size: 1.15cqw; text-align: right; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.sb-foot .qt b { display: block; font-size: 1.35cqw; color: #fff; font-weight: 600; }
.sb-offline {
  display: flex; align-items: center; gap: .6cqw; font-size: 1.1cqw;
  color: #E8B96A; background: rgba(232, 185, 106, .12); padding: .5cqw 1cqw; border-radius: .5cqw;
}

/* ============ 演示入口页 ============ */
.demo-wrap { max-width: 760px; margin: 0 auto; padding: 22px 16px 40px; }
.demo-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.demo-hd .logo {
  width: 44px; height: 44px; border-radius: var(--r); background: var(--brand-l);
  color: var(--brand-d); display: flex; align-items: center; justify-content: center; flex: none;
}
.demo-hd .t { font-size: 16px; font-weight: 600; }
.demo-hd .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.demo-card { margin-bottom: 12px; }
.demo-links { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-links a, .demo-links button { text-decoration: none; }

/* ============ 门店端 APP（H5，对齐原型 app.html）============ */

/* 状态栏（手机外壳组件） */
.statusbar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 18px; font-size: 12px; font-weight: 600;
  color: var(--ink); background: transparent; position: relative; z-index: 5;
}
.statusbar.on-brand { color: #fff; }
.statusbar .r { margin-left: auto; display: flex; align-items: center; gap: 5px; font-weight: 500; }
.sig { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.sig i { display: block; width: 3px; background: currentColor; border-radius: 1px; }
.sig i:nth-child(1) { height: 4px; }
.sig i:nth-child(2) { height: 6px; }
.sig i:nth-child(3) { height: 8px; }
.sig i:nth-child(4) { height: 10px; }
.bat { width: 20px; height: 10px; border: 1.2px solid currentColor; border-radius: 2.5px; position: relative; }
.bat::after {
  content: ''; position: absolute; right: -3px; top: 2.6px;
  width: 1.6px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0;
}
.bat i { position: absolute; inset: 1.5px; width: 70%; background: currentColor; border-radius: 1px; }

/* 应用顶栏 */
.appbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 12px; background: #fff; border-bottom: 1px solid var(--line-2);
}
.appbar.on-brand { background: var(--brand); border-bottom-color: transparent; color: #fff; }
.appbar .ttl { font-size: 16px; font-weight: 600; }
.appbar .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.appbar.on-brand .sub { color: rgba(255, 255, 255, .78); }
.appbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.iconbtn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: var(--r-s);
  background: transparent; color: inherit; cursor: pointer;
}
.iconbtn:hover { background: rgba(0, 0, 0, .05); }
.appbar.on-brand .iconbtn:hover { background: rgba(255, 255, 255, .14); }

/* 底部标签栏 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  padding: 4px 0 calc(14px + env(safe-area-inset-bottom));
}
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); font-size: 10.5px; color: var(--ink-4);
}
.tabbar button.on { color: var(--brand); }

/* 底部抽屉 */
.sheet-mask { position: fixed; inset: 0; background: rgba(20, 24, 28, .38); z-index: 8; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  background: #fff; border-radius: 14px 14px 0 0; padding: 16px 16px 26px;
  box-shadow: 0 -8px 28px rgba(20, 24, 28, .16);
}
.sheet .sh-t { font-size: 15.5px; font-weight: 600; }
.sheet .sh-s { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.sheet .grabber { width: 34px; height: 4px; background: var(--line); border-radius: 2px; margin: 0 auto 12px; }

/* 门店端主体 */
.pin { padding: 0 16px; }

.today {
  display: flex; align-items: center; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 4px; margin-bottom: 14px;
}
.today .it { flex: 1; text-align: center; }
.today .it + .it { border-left: 1px solid var(--line-2); }
.today .k { font-size: 11.5px; color: var(--ink-3); }
.today .v { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }

.qcard {
  display: flex; align-items: stretch; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; margin-bottom: 12px; box-shadow: var(--sh);
}
.qc-main { flex: 1; min-width: 0; }
.qc-top { display: flex; align-items: baseline; gap: 8px; }
.qc-nm { font-size: 15px; font-weight: 600; }
.qc-seat { font-size: 12px; color: var(--ink-3); }
.qc-wait { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.qc-wait b { font-size: 15px; color: var(--wait); font-variant-numeric: tabular-nums; }
.qc-wait.zero b { color: var(--ink-4); }
.qc-call { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qc-no {
  font-size: 24px; font-weight: 600; letter-spacing: .5px;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.qc-no.idle { color: var(--ink-4); font-size: 16px; font-weight: 500; }
.qc-btn { width: 84px; flex: none; font-size: 15px; font-weight: 600; }
.qc-next { font-size: 11.5px; color: var(--ink-4); margin-top: 6px; }

/* 取号成功与小票 */
.done-wrap { padding: 26px 16px 0; text-align: center; }
.done-ic {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--done-bg); color: var(--done);
}
.done-t { font-size: 17px; font-weight: 600; }
.done-s { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.ticket {
  margin: 18px 0 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; text-align: left;
}
.ticket .tk-hd { text-align: center; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.ticket .tk-store { font-size: 14px; font-weight: 600; }
.ticket .tk-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.ticket .tk-no {
  text-align: center; margin: 14px 0 4px;
  font-size: 44px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums;
}
.ticket .tk-type { text-align: center; font-size: 13px; color: var(--ink-2); }
.ticket .tk-meta {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 12px; color: var(--ink-3);
}
.ticket .tk-meta b { display: block; color: var(--ink); font-size: 13px; font-weight: 500; }
.ticket .tk-tip { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.qr {
  margin: 14px auto 0; width: 108px; height: 108px; padding: 7px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.qr img, .qr svg { width: 100%; height: 100%; display: block; }
.qr.lg { width: 178px; height: 178px; padding: 10px; margin-top: 0; }
.qrwrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 16px 16px; text-align: center; }
.qrwrap .nm { font-size: 15px; font-weight: 600; }
.qrwrap .st { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.qrwrap .tip { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.qrwrap .url { margin-top: 12px; padding: 8px 10px; background: var(--bg); border-radius: var(--r-s); font-size: 11.5px; color: var(--ink-3); word-break: break-all; }

.printbar {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 9px 12px; background: var(--done-bg); color: var(--done);
  border-radius: var(--r-s); font-size: 12.5px;
}
.printbar .right { margin-left: auto; color: var(--brand); cursor: pointer; }

/* 队列与叫号 */
.callcard {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--calling);
  border-radius: var(--r); padding: 14px; box-shadow: var(--sh);
}
.callcard .lr { display: flex; align-items: center; gap: 8px; }
.callcard .kk { font-size: 12.5px; color: var(--ink-3); }
.callcard .no {
  font-size: 34px; font-weight: 700; letter-spacing: 1px;
  font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px;
}
.callcard .ops { display: flex; gap: 8px; margin-top: 12px; }
.callcard .ops .btn { flex: 1; }

.qlist { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qlist .hd {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #FAFBFA; border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--ink-3);
}
.qlist .hd b { color: var(--ink-2); }
.qitem { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.qitem:last-child { border-bottom: 0; }
.qitem .no { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 62px; }
.qitem .wt { font-size: 12px; color: var(--ink-3); flex: 1; }
.qitem .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
.qitem.pass .no { color: var(--ink-3); }
.qitem.pass { background: #FBFAF8; }

/* 分栏标题与提示条 */
.sec-t {
  display: flex; align-items: center; gap: 6px;
  margin: 16px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.sec-t .n { font-weight: 400; color: var(--ink-3); }
.appnote {
  display: flex; gap: 8px; padding: 10px 12px; margin-bottom: 12px;
  border-radius: var(--r-s); font-size: 12.5px; background: var(--brand-l); color: var(--brand-d);
}
.appnote.warn { background: var(--warn-bg); color: #7A4A06; }
.appnote.danger { background: var(--danger-bg); color: #8C1D17; }

/* 设置列表 */
.group { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.group + .group { margin-top: 14px; }
.setrow {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 14px; border: 0; background: #fff; cursor: pointer;
  font-family: var(--font); font-size: 13.5px; color: var(--ink); text-align: left;
  border-bottom: 1px solid var(--line-2);
}
.group .setrow:last-child { border-bottom: 0; }
.setrow:hover { background: #FAFBFA; }
.setrow .ic-wrap {
  width: 30px; height: 30px; flex: none; border-radius: var(--r-s);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--ink-2);
}
.setrow .grow { flex: 1; min-width: 0; }
.setrow .grow > span { display: block; }
.setrow .s { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.setrow .v { font-size: 12.5px; color: var(--ink-3); }
.setrow .chev { color: var(--ink-4); }

/* 号码设置与开关 */
.progress-list { display: grid; gap: 8px; }
.prow {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-s);
}
.prow .nm { font-size: 13.5px; font-weight: 500; }
.prow .pf { font-size: 12px; color: var(--ink-3); }
.prow .v { margin-left: auto; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bigswitch { display: flex; align-items: center; gap: 12px; padding: 14px; }
.bigswitch .grow { flex: 1; }
.bigswitch .t { font-size: 14px; font-weight: 500; }
.bigswitch .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.chkrow { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.chk {
  width: 18px; height: 18px; flex: none; border-radius: 4px; border: 1.5px solid #C2C8C2;
  display: flex; align-items: center; justify-content: center; color: #fff; background: #fff;
}
.chk.on { background: var(--brand); border-color: var(--brand); }
.chk.on svg { display: block; }
.chk svg { display: none; }

/* 登录 */
.login {
  min-height: 100vh; background: var(--brand); color: #fff;
  padding: 0 26px 30px; display: flex; flex-direction: column;
}
.login .logo {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center; margin: 34px 0 16px;
}
.login h1 { font-size: 22px; font-weight: 600; letter-spacing: .5px; }
.login .st { font-size: 12.5px; color: rgba(255, 255, 255, .72); margin-top: 4px; }
/* 登录页的角色选择卡片（.rolepick）已随登录页改版删除：
 * APP 的登录页没有角色选择 —— 登录人是什么角色由账号本身决定，
 * 不需要店员自己挑，挑错了反而进不去该进的页面。 */
.login .fld { margin-bottom: 12px; }
.login .fld label { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .72); margin-bottom: 6px; }
.login .fld input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r-s);
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .10);
  color: #fff; font-family: var(--font); font-size: 14px; outline: none;
}
.login .fld input::placeholder { color: rgba(255, 255, 255, .45); }
.login .fld input:focus { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .14); }
.login .btn-login {
  width: 100%; height: 46px; margin-top: 10px; border: 0; border-radius: var(--r-s);
  background: #fff; color: var(--brand-d); font-family: var(--font);
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.login .foot { margin-top: auto; padding-top: 24px; text-align: center; font-size: 11px; color: rgba(255, 255, 255, .5); }
.login .err { background: rgba(255, 255, 255, .16); color: #fff; padding: 10px 12px; border-radius: var(--r-s); font-size: 12.5px; }

.storebar {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: #fff; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3);
}
.storebar b { color: var(--ink-2); font-weight: 500; }

.switchbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px;
  background: var(--brand); color: #fff; border-radius: var(--r);
  box-shadow: 0 2px 8px rgba(31, 111, 92, .28); cursor: pointer; border: 0; width: 100%;
  font-family: var(--font); text-align: left;
}
.switchbar .grow { flex: 1; }
.switchbar .t { font-size: 15px; font-weight: 600; }
.switchbar .s { font-size: 11.5px; opacity: .82; margin-top: 3px; }
.switchbar .bx {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center;
}

/* 门店端页面主体留出底部导航空间 */
.pin.with-tabbar { padding-bottom: 96px; }
.pin.with-actionbar { padding-bottom: 110px; }

@media (min-width: 720px) {
  /* 平板上门店端限制内容宽度，避免元素被拉得过宽 */
  .store-app { max-width: 560px; margin: 0 auto; background: var(--bg); min-height: 100vh; }
}

/* ============ 门店端（H5）对齐 APP：组件与布局规格覆盖，2026-10-06 ============
 *
 * 门店端有两套界面：Flutter APP（E:\dev\queue-store-app，产品正式形态）与这套 H5
 * （服务端内嵌，给不便安装 APP 的手机用，例如纯血鸿蒙）。两边设计令牌本来就是同一套
 * （base.css 的 :root 与 APP 的 lib/theme.dart 取值一一对应），但组件尺寸当初各写各的，
 * 于是同一个系统在两边看着像两个产品。
 *
 * 差异统一收在这一段覆盖规则里，并全部限定 .store-app 作用域 ——
 * base.css / app.css 上面的规则同时被顾客扫码端、店内叫号大屏、商家后台使用，
 * 直接改会连带影响那些页面。
 * 取值一律对齐 APP：lib/widgets.dart（AppHeader / BottomTabs / SettingRow /
 * StatusTag / Group / Note / SectionTitle / EmptyBox）与 lib/theme.dart 的按钮主题。
 */

/* ---------- 顶栏（对齐 AppHeader：高 56、左右 8、标题 17、副标题 12）----------
 * 顶部额外让出系统状态栏安全区：浏览器里通常是 0，把页面「添加到桌面」以全屏方式
 * 打开后会自动生效，和 APP 一样不会顶到系统状态栏底下。 */
.store-app .appbar {
  min-height: 56px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 10px;
}
.store-app .appbar .grow { padding: 0 4px; }
.store-app .appbar .ttl { font-size: 17px; font-weight: 600; }
.store-app .appbar .sub { font-size: 12px; margin-top: 0; }
.store-app .iconbtn { width: 40px; height: 40px; border-radius: 8px; }
.store-app .iconbtn svg { width: 22px; height: 22px; }

/* ---------- 底部导航（对齐 BottomTabs：高 56、图标 21、文字 11.5、选中加粗）---------- */
.store-app .tabbar { padding: 0 0 env(safe-area-inset-bottom, 0px); }
.store-app .tabbar button {
  height: 56px; justify-content: center; gap: 3px;
  font-size: 11.5px; color: var(--ink-3);
}
.store-app .tabbar button.on { color: var(--brand); font-weight: 600; }
.store-app .tabbar button svg { width: 21px; height: 21px; }

/* 同一屏既有底部操作条又有底部导航时，操作条抬到导航之上。
 * APP 里两者是上下叠着放的（QueueScreen 的 ActionBar 位于 BottomTabs 之上）；
 * 不抬的话两条 fixed 都贴 bottom:0，会直接叠在一起看不清。 */
.store-app .actionbar.above-tabbar { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

/* ---------- 页面主体（对齐 ScreenBody：左右 12、上 12、下 24）---------- */
.store-app .pin { padding: 12px 12px 24px; }
.store-app .pin.with-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.store-app .pin.with-actionbar { padding-bottom: 110px; }
.store-app .pin.with-actionbar.above-tabbar {
  padding-bottom: calc(166px + env(safe-area-inset-bottom, 0px));
}

/* ---------- 设置行（对齐 SettingRow：左右 12 上下 11、标题 14、图标 17、箭头 18）---------- */
.store-app .setrow { padding: 11px 12px; font-size: 14px; }
.store-app .setrow .ic-wrap { width: 30px; height: 30px; border-radius: 6px; }
.store-app .setrow .ic-wrap svg { width: 17px; height: 17px; }
.store-app .setrow .s { font-size: 12px; margin-top: 2px; }
.store-app .setrow .v { font-size: 12.5px; color: var(--ink-3); }
.store-app .setrow .chev { width: 18px; height: 18px; }

/* ---------- 状态标签（对齐 StatusTag：字号 11.5、圆角 6、圆点 5）---------- */
.store-app .tag {
  height: auto; padding: 3px 7px; border-radius: 6px;
  font-size: 11.5px; gap: 5px;
}
.store-app .tag .dot { width: 5px; height: 5px; }

/* ---------- 提示条（对齐 Note：圆角 8、内边距 12/10）---------- */
.store-app .appnote { border-radius: 8px; padding: 10px 12px; }
.store-app .note { border-radius: 8px; padding: 10px 12px; }

/* ---------- 分栏标题（对齐 SectionTitle：13 号、上 18 下 8）---------- */
.store-app .sec-t { margin: 18px 0 8px; font-size: 13px; }

/* ---------- 按钮（对齐 theme.dart 按钮主题：圆角 8、主按钮 14/加粗）---------- */
.store-app .btn { border-radius: 8px; font-size: 14px; }
.store-app .btn-primary { font-weight: 600; }
.store-app .btn-lg { font-size: 15px; }

/* ---------- 空态（对齐 EmptyBox：13 号、ink-3）---------- */
.store-app .empty { color: var(--ink-3); }

/* ---------- 开关与勾选框（对齐 Material 尺寸）----------
 * APP 用系统 Switch（约 48×28）和 20×20 勾选框；H5 原先自绘成 40×22 / 18×18，
 * 摆在同样的位置会明显显小。 */
.store-app .switch { width: 48px; height: 28px; border-radius: 14px; }
.store-app .switch::after { width: 24px; height: 24px; top: 2px; left: 2px; }
.store-app .switch.on::after { left: 22px; }
.store-app .chk { width: 20px; height: 20px; }

/* ---------- 今日三格（对齐 StatTriple：数值 20 号、加粗）---------- */
.store-app .today .v { font-size: 20px; font-weight: 700; }

/* ---------- 切换条（对齐 merchant_screen 的 _switchBar）----------
 * APP 是白底描边 + 品牌浅底方图标；H5 原来是品牌绿实底白字，
 * 在设置/商家页里比 APP 抢眼得多。 */
.store-app .switchbar {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 12px; gap: 10px;
}
.store-app .switchbar .bx {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--brand-l); color: var(--brand-d);
}
.store-app .switchbar .bx svg { width: 19px; height: 19px; }
.store-app .switchbar > svg.ic { width: 18px; height: 18px; }
.store-app .switchbar .t { font-size: 14px; font-weight: 500; }
.store-app .switchbar .s { font-size: 12px; color: var(--ink-3); opacity: 1; margin-top: 2px; }

/* ---------- 登录页（对齐 LoginScreen）----------
 * 原来整屏品牌绿 + 白字，是原型演示稿的样子；APP 早已改成白底表单。
 * 门店照着 APP 的样子看，才不会被问「为什么和 APP 不一样」。
 * 门店码与角色选择也一并去掉 —— APP 只要手机号 + 密码（后端凭手机号定位门店）。 */
.store-app .login {
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  padding: calc(44px + env(safe-area-inset-top, 0px)) 24px 28px;
}
.store-app .login .logo {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--brand); color: #fff;
  margin: 0 auto 16px;
}
.store-app .login h1 {
  font-size: 20px; font-weight: 700; color: var(--ink);
  text-align: center; letter-spacing: 0;
}
.store-app .login .st {
  font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 4px;
}
.store-app .login .fld { margin-bottom: 14px; }
.store-app .login .fld label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.store-app .login .fld input {
  height: 44px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 14px;
}
.store-app .login .fld input::placeholder { color: var(--ink-4); }
.store-app .login .fld input:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 92, .10);
}
.store-app .login .btn-login {
  height: 44px; margin-top: 12px; border-radius: 8px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600;
}
.store-app .login .btn-login:hover { background: var(--brand-d); }
.store-app .login .err {
  background: var(--danger-bg); color: var(--danger);
  border-radius: 8px; padding: 10px 12px; font-size: 12.5px;
}
.store-app .login .foot {
  margin-top: auto; padding-top: 24px;
  text-align: center; font-size: 11.5px; color: var(--ink-4);
}
