/* ================== 时账 · 0号店（样式沿用交互原型，暗色主题） ================== */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:#0e1118; --panel:#171b26; --panel2:#1e2333; --line:#2a3042;
  --txt:#e8eaf2; --sub:#8b93a7; --green:#22c55e; --green-d:#16a34a;
  --yellow:#eab308; --gray:#3d4457; --red:#ef4444; --blue:#3b82f6;
}
body { background:var(--bg); color:var(--txt); font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif; font-size:14px; }
button { font-family:inherit; cursor:pointer; border:none; }
input,select { font-family:inherit; }

/* ===== 顶栏 ===== */
.topbar { height:56px; background:var(--panel); border-bottom:1px solid var(--line); display:flex; align-items:center; padding:0 20px; gap:16px; position:sticky; top:0; z-index:50; }
.logo { display:flex; align-items:center; gap:8px; font-weight:700; font-size:17px; }
.logo .mark { width:28px; height:28px; border-radius:8px; background:linear-gradient(135deg,#22c55e,#0ea5e9); display:flex; align-items:center; justify-content:center; font-size:15px; color:#fff; }
.store-tag { background:var(--panel2); border:1px solid var(--line); color:var(--sub); padding:4px 10px; border-radius:20px; font-size:12px; }
.topbar .right { margin-left:auto; display:flex; gap:10px; align-items:center; color:var(--sub); font-size:12px; }
.clock { font-variant-numeric:tabular-nums; color:var(--txt); font-weight:600; }

.layout { display:flex; min-height:calc(100vh - 56px); }
/* ===== 侧边栏 ===== */
.sidenav { width:170px; background:var(--panel); border-right:1px solid var(--line); padding:14px 10px; flex-shrink:0; }
.nav-item { display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:10px; color:var(--sub); cursor:pointer; margin-bottom:4px; transition:.15s; font-size:14px; }
.nav-item:hover { background:var(--panel2); color:var(--txt); }
.nav-item.active { background:rgba(34,197,94,.12); color:var(--green); font-weight:600; }
.nav-item .ico { width:18px; text-align:center; }

main { flex:1; padding:22px 26px; min-width:0; }
.page { display:none; }
.page.show { display:block; }
.page-title { font-size:19px; font-weight:700; margin-bottom:4px; }
.page-desc { color:var(--sub); font-size:13px; margin-bottom:20px; }

/* ===== 今日数据条 ===== */
.stat-bar { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }
.stat { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:14px 16px; }
.stat .k { color:var(--sub); font-size:12px; margin-bottom:6px; }
.stat .v { font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; }
.stat .v small { font-size:12px; color:var(--sub); font-weight:400; margin-left:4px; }
.stat .v.green { color:var(--green); }

/* ===== 机位网格 ===== */
.seats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(228px,1fr)); gap:14px; }
.seat { background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:16px; position:relative; overflow:hidden; transition:.15s; cursor:pointer; }
.seat:hover { transform:translateY(-2px); border-color:#3b4257; }
.seat .s-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.seat .s-name { font-weight:700; font-size:15px; }
.badge { font-size:11px; padding:3px 9px; border-radius:20px; font-weight:600; }
.badge.idle { background:rgba(139,147,167,.12); color:var(--sub); }
.badge.active { background:rgba(34,197,94,.14); color:var(--green); }
.badge.paused { background:rgba(234,179,8,.14); color:var(--yellow); }
.seat .s-timer { font-size:30px; font-weight:700; font-variant-numeric:tabular-nums; letter-spacing:1px; margin:4px 0 2px; }
.seat .s-amount { font-size:13px; color:var(--green); font-variant-numeric:tabular-nums; }
.seat .s-amount b { font-size:17px; }
.seat .s-meta { margin-top:10px; color:var(--sub); font-size:12px; line-height:1.8; }
.seat.idle-card { border-style:dashed; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:150px; color:var(--sub); }
.seat.idle-card .plus { font-size:26px; color:var(--gray); margin-bottom:6px; }
.seat.idle-card .hint { font-size:13px; }
.seat.active-card { border-color:rgba(34,197,94,.35); background:linear-gradient(160deg,rgba(34,197,94,.07),var(--panel) 55%); }
.seat.paused-card { border-color:rgba(234,179,8,.35); background:linear-gradient(160deg,rgba(234,179,8,.06),var(--panel) 55%); }
.heat-1 { box-shadow:inset 0 -3px 0 rgba(34,197,94,.25); }
.heat-2 { box-shadow:inset 0 -3px 0 rgba(234,179,8,.4); }

/* ===== 弹窗 ===== */
.mask { position:fixed; inset:0; background:rgba(5,8,15,.72); backdrop-filter:blur(3px); z-index:100; display:none; align-items:center; justify-content:center; }
.mask.show { display:flex; }
.modal { background:var(--panel); border:1px solid var(--line); border-radius:18px; width:440px; max-width:92vw; max-height:88vh; overflow-y:auto; padding:22px; }
.modal h3 { font-size:17px; margin-bottom:16px; display:flex; justify-content:space-between; align-items:center; }
.modal h3 .x { color:var(--sub); cursor:pointer; font-size:20px; font-weight:400; }
.field { margin-bottom:14px; }
.field label { display:block; color:var(--sub); font-size:12px; margin-bottom:6px; }
.field input, .field select, .field textarea { width:100%; background:var(--panel2); border:1px solid var(--line); color:var(--txt); border-radius:10px; padding:10px 12px; font-size:14px; outline:none; }
.field input:focus, .field select:focus { border-color:var(--green); }
.btn { border-radius:10px; padding:11px 18px; font-size:14px; font-weight:600; transition:.15s; }
.btn-primary { background:var(--green); color:#06220f; }
.btn-primary:hover { background:var(--green-d); }
.btn-primary:disabled { opacity:.5; cursor:not-allowed; }
.btn-ghost { background:var(--panel2); color:var(--txt); border:1px solid var(--line); }
.btn-ghost:hover { border-color:var(--sub); }
.btn-warn { background:rgba(234,179,8,.15); color:var(--yellow); }
.btn-block { width:100%; padding:13px; font-size:15px; }
.stepper { display:flex; align-items:center; gap:0; }
.stepper button { width:38px; height:38px; background:var(--panel2); border:1px solid var(--line); color:var(--txt); font-size:18px; }
.stepper button:first-child { border-radius:10px 0 0 10px; }
.stepper button:last-child { border-radius:0 10px 10px 0; }
.stepper .num { flex:1; text-align:center; background:var(--panel2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); height:38px; line-height:38px; font-weight:600; }
.search-box { position:relative; }
.search-box .res { position:absolute; top:44px; left:0; right:0; background:var(--panel2); border:1px solid var(--line); border-radius:10px; z-index:5; display:none; max-height:150px; overflow-y:auto; }
.search-box .res.show { display:block; }
.search-box .res .r-item { padding:9px 12px; cursor:pointer; font-size:13px; display:flex; justify-content:space-between; }
.search-box .res .r-item:hover { background:rgba(34,197,94,.1); }

/* ===== 结账明细 ===== */
.bill-rows { background:var(--panel2); border-radius:12px; padding:14px 16px; margin-bottom:14px; }
.bill-rows .row { display:flex; justify-content:space-between; padding:5px 0; font-size:13px; color:var(--sub); font-variant-numeric:tabular-nums; }
.bill-rows .row b { color:var(--txt); font-weight:500; }
.bill-rows .row.hl b { color:var(--green); }
.pay-big { text-align:center; margin:16px 0; }
.pay-big .label { color:var(--sub); font-size:13px; }
.pay-big .amount { font-size:44px; font-weight:800; color:var(--green); font-variant-numeric:tabular-nums; }
.pay-tabs { display:flex; gap:8px; margin-bottom:14px; }
.pay-tab { flex:1; padding:10px; text-align:center; background:var(--panel2); border:1px solid var(--line); border-radius:10px; color:var(--sub); font-size:13px; }
.pay-tab.sel { border-color:var(--green); color:var(--green); background:rgba(34,197,94,.08); font-weight:600; }
.pay-tab.dis { opacity:.4; cursor:not-allowed; }
.pay-tab small { margin-top:2px; opacity:.85; }

/* ===== 表格 ===== */
table.tbl { width:100%; border-collapse:collapse; background:var(--panel); border-radius:14px; overflow:hidden; }
.tbl th { text-align:left; color:var(--sub); font-size:12px; font-weight:500; padding:12px 14px; background:var(--panel2); }
.tbl td { padding:12px 14px; border-top:1px solid var(--line); font-size:13px; font-variant-numeric:tabular-nums; }
.tag { font-size:11px; padding:2px 8px; border-radius:12px; }
.tag.g { background:rgba(34,197,94,.12); color:var(--green); }
.tag.y { background:rgba(234,179,8,.12); color:var(--yellow); }
.tag.b { background:rgba(59,130,246,.12); color:var(--blue); }
.tag.n { background:rgba(139,147,167,.12); color:var(--sub); }

/* ===== 设置页 ===== */
.set-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:18px; }
.card h4 { font-size:15px; margin-bottom:14px; display:flex; justify-content:space-between; align-items:center; }
.plan-item { background:var(--panel2); border:1px solid var(--line); border-radius:12px; padding:13px 15px; margin-bottom:10px; display:flex; justify-content:space-between; align-items:center; }
.plan-item .p-name { font-weight:600; margin-bottom:3px; }
.plan-item .p-sub { color:var(--sub); font-size:12px; }
.chip { background:rgba(34,197,94,.12); color:var(--green); font-size:11px; padding:2px 8px; border-radius:10px; margin-right:6px; }
.seat-row { display:flex; align-items:center; gap:10px; background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:10px 14px; margin-bottom:8px; font-size:13px; }
.seat-row .drag { color:var(--gray); cursor:grab; }
.seat-row .grow { flex:1; }
.radio-line { display:flex; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.radio-card { flex:1; min-width:120px; background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:10px 12px; cursor:pointer; font-size:12.5px; color:var(--sub); }
.radio-card.sel { border-color:var(--green); color:var(--green); background:rgba(34,197,94,.08); }
.radio-card.dis { opacity:.4; cursor:not-allowed; }
.radio-card .t { font-size:13px; color:var(--txt); font-weight:600; margin-bottom:3px; }
.calc-demo { background:linear-gradient(150deg,rgba(34,197,94,.1),var(--panel2)); border:1px solid rgba(34,197,94,.3); border-radius:14px; padding:18px; margin-top:16px; }
.calc-demo .in-row { display:flex; gap:10px; align-items:center; margin-bottom:12px; }
.calc-demo input { width:110px; background:var(--panel); border:1px solid var(--line); color:var(--txt); border-radius:10px; padding:9px 12px; font-size:15px; font-weight:600; outline:none; }
.calc-demo .res-amt { font-size:34px; font-weight:800; color:var(--green); font-variant-numeric:tabular-nums; }

/* ===== 会员页 ===== */
.member-row { background:var(--panel2); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:10px; display:flex; align-items:center; gap:14px; cursor:pointer; }
.member-row:hover { border-color:var(--green); }
.avatar { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,#3b82f6,#8b5cf6); display:flex; align-items:center; justify-content:center; font-weight:700; }
.m-info .n { font-weight:600; }
.m-info .p { color:var(--sub); font-size:12px; margin-top:2px; }
.m-balance { margin-left:auto; text-align:right; }
.m-balance .b { font-size:17px; font-weight:700; color:var(--green); }
.m-balance .l { color:var(--sub); font-size:11px; }
.tier-btns { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-bottom:14px; }
.tier { background:var(--panel2); border:1px solid var(--line); border-radius:12px; padding:12px; text-align:center; cursor:pointer; }
.tier.sel { border-color:var(--green); background:rgba(34,197,94,.08); }
.tier .pay { font-size:17px; font-weight:700; }
.tier .gift { color:var(--yellow); font-size:12px; margin-top:3px; }
.tx-row { display:flex; justify-content:space-between; padding:10px 0; border-top:1px solid var(--line); font-size:13px; color:var(--sub); }
.tx-row:first-of-type { border-top:none; }
.tx-table { width:100%; border-collapse:collapse; font-size:12px; }
.tx-table th { text-align:left; color:var(--sub); font-weight:500; padding:6px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
.tx-table td { padding:7px 8px; border-bottom:1px solid var(--line); color:var(--sub); white-space:nowrap; font-variant-numeric:tabular-nums; }
.tx-table td.amt { color:var(--txt); font-weight:500; }
.tx-table .pos { color:var(--green); }
.note-box { background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:11.5px; color:var(--sub); line-height:1.7; margin-top:10px; }
.note-box b { color:var(--txt); font-weight:600; }
.tier-mg-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); font-size:13px; }
.tier-mg-row:last-child { border-bottom:none; }
.tier-mg-row .t-pay { font-weight:600; color:var(--txt); min-width:76px; }
.price-matrix { display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:8px; margin:2px 0 4px; }
.pm-head { font-size:12px; color:var(--sub); text-align:center; padding:2px 0 6px; font-weight:600; }
.pm-lab { font-size:12.5px; color:var(--txt); display:flex; align-items:center; padding-right:4px; }
.pm-lab small { display:block; color:var(--sub); font-weight:400; font-size:10.5px; }
.pm-cell input { width:100%; background:var(--panel); border:1px solid var(--line); color:var(--txt); border-radius:8px; padding:8px 10px; font-size:13px; outline:none; }
.pm-cell input:focus { border-color:var(--green); }
.chip.tgl { cursor:pointer; user-select:none; margin-right:6px; border:1px solid transparent; }
.chip.tgl.on { background:rgba(59,130,246,.14); color:var(--blue); border-color:rgba(59,130,246,.5); font-weight:700; }
.pay-order-row { display:flex; align-items:center; gap:10px; background:var(--panel2); border:1px dashed var(--line); border-radius:10px; padding:10px 14px; margin-bottom:8px; font-size:13px; cursor:grab; }
.pay-order-row:active { cursor:grabbing; }
.pay-order-row .drag { color:var(--gray); }
.pay-order-row .grow { flex:1; }

/* ===== 手机预览 ===== */
.mobile-wrap { display:flex; gap:30px; align-items:flex-start; flex-wrap:wrap; }
.phone { width:320px; background:#000; border-radius:38px; padding:12px; box-shadow:0 24px 60px rgba(0,0,0,.55); border:1px solid #2a3042; }
.phone .screen { background:var(--bg); border-radius:28px; overflow:hidden; height:640px; overflow-y:auto; }
.phone .notch { width:110px; height:22px; background:#000; border-radius:14px; margin:0 auto 8px; position:sticky; top:0; z-index:5; }
.m-status { display:flex; justify-content:space-between; padding:6px 16px 10px; color:var(--sub); font-size:11px; }
.m-head { padding:4px 16px 12px; display:flex; justify-content:space-between; align-items:center; }
.m-head .t { font-weight:700; font-size:16px; }
.m-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:0 14px 12px; }
.m-stat { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:10px; text-align:center; }
.m-stat .v { font-size:16px; font-weight:700; color:var(--green); }
.m-stat .k { font-size:10px; color:var(--sub); margin-top:3px; }
.m-seats { padding:0 14px; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.m-seat { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:11px; }
.m-seat .n { font-size:12px; font-weight:600; display:flex; justify-content:space-between; }
.m-seat .t { font-size:19px; font-weight:700; font-variant-numeric:tabular-nums; margin:5px 0 2px; }
.m-seat .a { font-size:11px; color:var(--green); }
.m-note { margin:12px 14px; background:rgba(234,179,8,.08); border:1px solid rgba(234,179,8,.25); color:var(--yellow); border-radius:12px; padding:10px 12px; font-size:11.5px; line-height:1.6; }
.boss-card { margin:12px 14px; background:linear-gradient(140deg,rgba(59,130,246,.12),var(--panel)); border:1px solid rgba(59,130,246,.3); border-radius:14px; padding:14px; }
.boss-card .bt { font-size:12px; color:var(--sub); margin-bottom:8px; }
.boss-card .bv { font-size:21px; font-weight:800; color:var(--blue); font-variant-numeric:tabular-nums; }

/* ===== Toast ===== */
#toast { position:fixed; top:74px; left:50%; transform:translateX(-50%) translateY(-20px); background:var(--panel); border:1px solid rgba(34,197,94,.4); color:var(--txt); padding:12px 22px; border-radius:12px; z-index:200; opacity:0; transition:.25s; pointer-events:none; font-size:13.5px; box-shadow:0 10px 30px rgba(0,0,0,.4); max-width:80vw; }
#toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
#toast .wx { color:var(--green); }

.legend { display:flex; gap:14px; margin-bottom:14px; color:var(--sub); font-size:12px; align-items:center; flex-wrap:wrap; }
.dot { width:9px; height:9px; border-radius:3px; display:inline-block; margin-right:5px; vertical-align:-1px; }

.empty-tip { color:var(--sub); padding:24px 0; font-size:13px; text-align:center; }

/* ===== 登录页 ===== */
#loginMask { z-index:150; }
#loginMask .modal { width:360px; }
.login-logo { display:flex; align-items:center; justify-content:center; gap:9px; font-weight:700; font-size:19px; margin-bottom:4px; }
.login-logo .mark { width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg,#22c55e,#0ea5e9); display:flex; align-items:center; justify-content:center; font-size:18px; color:#fff; }
.login-sub { text-align:center; color:var(--sub); font-size:12px; margin-bottom:18px; }
