/* 松解狮预约系统 · 共享样式（浅色主题） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --brand: #E9CC5E;        /* 松解狮品牌黄 */
  --brand-light: #FBF3D6;  /* 浅黄底 */
  --brand-dark: #2B2620;   /* 深棕黑（侧边栏底） */
  --brand-ink: #3A3320;    /* 黄底之上的深色文字 */
  --accent: #C79A2B;       /* 深金（强调/边线） */
  --danger: #E53935;
  --text: #1A1A1A;
  --text-sub: #6B7280;
  --border: #E5E7EB;
  --bg: #F5F6F7;
  --card: #FFFFFF;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* 手机外壳 */
.phone {
  max-width: 420px; margin: 0 auto; min-height: 100vh; background: var(--bg);
  position: relative; box-shadow: 0 0 40px rgba(0,0,0,0.08);
}
.topbar {
  background: var(--brand); color: #fff; padding: 14px 16px; font-size: 17px;
  font-weight: 600; display: flex; align-items: center; gap: 10px;
  position: sticky; top: 0; z-index: 50;
}
.topbar .back { cursor: pointer; font-size: 20px; }
.topbar .right { margin-left: auto; font-size: 13px; font-weight: 400; opacity: .9; }

.page { padding: 14px; padding-bottom: 80px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display:flex; align-items:center; gap:6px;}

/* 底部 tabbar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  max-width: 420px; width: 100%; background: #fff; border-top: 1px solid var(--border);
  display: flex; z-index: 50;
}
.tabbar .tab {
  flex: 1; text-align: center; padding: 8px 0 10px; font-size: 11px; color: var(--text-sub);
}
.tabbar .tab.active { color: var(--brand); }
.tabbar .tab .ico { font-size: 20px; display: block; margin-bottom: 2px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 10px; font-size: 15px; font-weight: 500;
  background: var(--brand); color: #fff; transition: .15s; width: 100%;
}
.btn:active { transform: scale(.98); }
.btn:disabled { background: #C7CDD3; cursor: not-allowed; }
.btn-line { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 13px; width: auto; }
.btn-gray { background: #EEF0F2; color: var(--text); }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }
/* 表单内的只读说明块（替代那些不该让用户填的字段） */
.hint-box {
  font-size: 13px; line-height: 1.7; color: var(--text-sub);
  background: #FBF8EE; border: 1px solid #EADFBE; border-radius: 10px; padding: 10px 12px;
}

/* ============ 审计日志页 ============ */
/* 筛选栏：自适应换行，窄屏也不挤 */
.au-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.au-f { display: flex; flex-direction: column; min-width: 132px; }
.au-f label { font-size: 12px; color: var(--text-sub); margin-bottom: 5px; }
.au-f .input { min-width: 132px; }
.au-f-btns { flex-direction: row; gap: 8px; align-items: center; min-width: auto; }

/* 区块小标题 */
.au-sub {
  font-size: 13px; font-weight: 600; color: var(--text-sub);
  margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line, #eee);
}

/* 失败行整行淡红底，扫一眼就能定位异常 */
tr.au-fail > td { background: #FFF5F5; }

.au-pager {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px;
}
.au-pager button[disabled] { opacity: .45; cursor: not-allowed; }

/* 详情弹窗 */
.au-detail { width: 100%; font-size: 13px; }
.au-detail td { padding: 7px 8px; border-bottom: 1px solid var(--line, #f0f0f0); }
.au-detail .au-k { width: 92px; color: var(--text-sub); white-space: nowrap; }
.au-pre {
  background: #F7F7F5; border: 1px solid var(--line, #eee); border-radius: 8px;
  padding: 10px 12px; font-size: 12px; line-height: 1.6; margin: 0;
  max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}
/* 余额前后对照：左右并排 + 中间箭头 */
.au-bal { display: flex; align-items: center; gap: 12px; }
.au-bal-col { flex: 1; min-width: 0; }
.au-bal-t { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.au-bal-col pre {
  background: #F7F7F5; border: 1px solid var(--line, #eee); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; margin: 0; white-space: pre-wrap; word-break: break-all;
}
.au-bal-arrow { color: var(--brand); font-size: 20px; flex: 0 0 auto; }

/* ---- 审计三期：异常巡检 / 完整性校验 ---- */
/* 巡检通过时用一条淡绿窄条，不占版面；有告警才展开成完整卡片 */
.au-ok-card {
  background: #F2FAF5; border: 1px solid #C9E8D5;
  padding: 12px 16px; font-size: 13px;
}
.au-alert {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid; border-radius: 10px; padding: 11px 14px; margin-bottom: 8px;
}
.au-alert-body { flex: 1; min-width: 0; }
.au-alert-rule { font-size: 13px; font-weight: 600; }
.au-alert-msg { font-size: 13px; color: var(--text-sub); margin-top: 3px; line-height: 1.6; }

.au-ok-box {
  background: #F2FAF5; border: 1px solid #C9E8D5; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; line-height: 1.7;
}
.au-bad-box {
  background: #FFF3F3; border: 1px solid #F3C9C9; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; line-height: 1.7; color: #A33;
}
.au-detail code {
  background: #F0F0EE; border-radius: 4px; padding: 1px 5px; font-size: 12px;
}

/* ---- 充值管理：储值客户列表的展开明细 ---- */
.rc-detail-cell { background: #FAFAF8; padding: 12px 14px !important; }
/* 充值与消费并排：对账时要同时看「充了多少」和「花了多少」，上下排要来回滚 */
.rc-detail-wrap { display: flex; gap: 16px; flex-wrap: wrap; }
.rc-detail-col { flex: 1 1 380px; min-width: 0; }
.rc-detail-t {
  font-size: 12px; font-weight: 600; color: var(--text-sub);
  margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line, #eee);
}
.rc-mini { width: 100%; font-size: 12px; }
.rc-mini th, .rc-mini td { padding: 5px 7px; }
.rc-mini th { color: var(--text-sub); font-weight: 500; }

/* 师傅列表里的照片缩略图 */
.ther-ava {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  display: inline-block; vertical-align: middle; background: #F0F2F4; cursor: pointer;
}
.ther-ava-none {
  background: #EDEFF2; color: #9AA3AD; cursor: default;
  text-align: center; line-height: 34px; font-size: 15px; font-weight: 600;
}
.input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; background: #fff; font-family: inherit; color: var(--text);
}
.input:focus, select:focus { outline: none; border-color: var(--brand); }

/* 标签/徽章 */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px;
  background: var(--brand-light); color: var(--brand-dark);
}
.badge-gray { background: #EEF0F2; color: var(--text-sub); }
.badge-orange { background: #FFF3E0; color: #E65100; }
.badge-red { background: #FFEBEE; color: var(--danger); }
.badge-blue { background: #E3F2FD; color: #1565C0; }

.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.muted { color: var(--text-sub); font-size: 13px; }
.mt8{margin-top:8px;} .mt12{margin-top:12px;} .mb8{margin-bottom:8px;}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* 选择块（时长/日期/时段） */
.chip {
  padding: 9px 4px; text-align: center; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; background: #fff; transition: .12s;
}
.chip.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip.disabled { background: #F0F0F0; color: #BBB; border-color: #EEE; cursor: not-allowed; }

/* 时段网格 */
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot {
  padding: 12px 6px; text-align: center; border-radius: 10px; font-size: 14px;
  border: 1.5px solid var(--border); background: #fff; transition: .12s;
}
.slot.free { background: #fff; color: var(--text); }
.slot.sel { background: var(--brand); color: #fff; border-color: var(--brand); font-weight:600; }
.slot.disabled { background: #F0F0F0; color: #BBB; border-color: #EEE; cursor: not-allowed; }

/* 列表项 */
.list-item {
  background: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--brand);
  flex-shrink: 0;
}

/* 空态 */
.empty { text-align: center; padding: 50px 20px; color: var(--text-sub); }
.empty .ico { font-size: 44px; margin-bottom: 10px; }

/* toast */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.8); color: #fff; padding: 10px 18px; border-radius: 20px;
  font-size: 14px; z-index: 999; opacity: 0; transition: .3s; pointer-events: none; max-width: 80%;
}
.toast.show { opacity: 1; }

/* 弹层 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 100; display:none; }
.mask.show { display: block; }
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); max-width: 420px; width: 100%;
  background: #fff; border-radius: 16px 16px 0 0; padding: 20px 16px; z-index: 101;
  transform: translateX(-50%) translateY(100%); transition: .25s; box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.sheet.show { transform: translateX(-50%) translateY(0); }
.sheet-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; text-align:center;}

/* 会员码 */
.qr-box { text-align: center; padding: 20px; }
.qr-code { width: 200px; height: 200px; margin: 0 auto; }

/* PC 后台 */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 200px; background: var(--brand-dark); color: #fff; flex-shrink: 0; }
.sidebar .nav-item { padding: 13px 20px; font-size: 14px; cursor: pointer; opacity: .85; display:flex; gap:8px; }
.sidebar .nav-item:hover { background: rgba(255,255,255,.08); opacity: 1; }
.sidebar .nav-item.active { background: var(--brand); opacity: 1; border-left: 3px solid var(--accent); }
.main { flex: 1; padding: 24px; overflow-x: auto; }
.main-header { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
/* 右上角预约通知铃铛 */
.topbar-right { position: fixed; top: 18px; right: 28px; z-index: 900; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; user-select: none; transition: transform .15s; }
.bell:hover { transform: scale(1.08); }
.bell-dot { position: absolute; top: 6px; right: 7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-sizing: border-box; }
/* 通知中心弹框内的通知列表 */
.notif-list { max-height: 60vh; overflow-y: auto; margin: 8px 0; }
.notif-item { padding: 12px; border-radius: 10px; background: #F7F8FA; margin-bottom: 8px; }
.notif-item.unread { background: #FBEEC2; }
.notif-item .ni-t { font-weight: 700; margin-bottom: 4px; }
.notif-item .ni-m { color: #6b7280; font-size: 13px; line-height: 1.5; }
.notif-item .ni-time { color: #9aa0a6; font-size: 12px; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 11px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
th { background: #FAFBFC; font-weight: 600; color: var(--text-sub); }
tr:hover td { background: #FAFBFC; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar .input, .toolbar select { width: auto; min-width: 140px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 26px; font-weight: 700; color: var(--brand); }
.stat-card .lbl { font-size: 13px; color: var(--text-sub); margin-top: 4px; }
/* 充值管理补充类 */
.stat-card .stat-label { font-size: 13px; color: var(--text-sub); }
.stat-card .stat-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.stat-card.stat-warn { background: #FFF8E1; border: 1px solid #FFE082; }

/* 充值页 · 已选客户详细信息卡 */
.rc-profile { border: 1px solid var(--brand); background: var(--brand-light); border-radius: 12px; padding: 14px 16px; margin-top: 6px; }
.rc-prof-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rc-prof-name { font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-prof-name b { font-size: 16px; }
.rc-chip { font-size: 11px; padding: 1px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--text-sub); }
.rc-chip-warn { background: #FDECEA; border-color: #F5C6CB; color: var(--danger); }
.rc-chip-exp { background: #FFF3E0; border-color: #FFCC80; color: #B26A00; }
.rc-prof-bal { margin-top: 10px; font-size: 13px; color: var(--text-sub); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rc-bal-total { font-size: 22px; font-weight: 700; color: var(--brand-ink); }
.rc-bal-detail { color: var(--text-sub); }
.rc-prof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rc-prof-cell { background: #fff; border-radius: 8px; padding: 8px 6px; text-align: center; }
.rc-pc-lbl { font-size: 11px; color: var(--text-sub); }
.rc-pc-val { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 2px; }
.rc-pc-sub { font-size: 10px; color: var(--text-sub); }
.rc-pc-unit { font-size: 11px; font-weight: 400; color: var(--text-sub); margin-left: 1px; }
.rc-prof-foot { margin-top: 10px; font-size: 12px; }
.badge-green { background: #E8F5E9; color: #2E7D32; }
.link { color: var(--brand); cursor: pointer; font-size: 13px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; display: none; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-box { background: #fff; border-radius: 12px; padding: 24px; width: 440px; max-width: 92vw; max-height: 88vh; overflow-y: auto; }
.modal-title { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.checkbox-row { display:flex; align-items:center; gap:6px; }

/* ===== 排班表（师傅 × 时段 色块）===== */
.sch-legend { display:flex; gap:18px; align-items:center; margin-bottom:14px; font-size:13px; color:var(--text-sub); flex-wrap:wrap; }
.sch-legend span { display:flex; align-items:center; gap:6px; }
.sch-dot { display:inline-block; width:14px; height:14px; border-radius:3px; }
.sch-dot.sch-off { background:repeating-linear-gradient(45deg,#EEF0F2,#EEF0F2 3px,#E0E3E7 3px,#E0E3E7 6px); }
.sch-hd { font-size:14px; font-weight:600; margin-bottom:10px; color:var(--text); }
.sch-wrap { overflow-x:auto; border-radius:8px; box-shadow:var(--shadow); background:#fff; display:inline-block; max-width:100%; }
.sch-table { border-collapse:collapse; width:auto; box-shadow:none; border-radius:0; table-layout:fixed; }
.sch-table th, .sch-table td { border:1px solid var(--border); padding:0; text-align:center; }
.sch-table thead th { background:#FAFBFC; font-weight:600; color:var(--text); padding:6px 6px; position:sticky; top:0; z-index:2; font-size:12px; width:130px; }
.sch-table th.sch-time-h { width:52px; }
.sch-table td.sch-time { background:#FAFBFC; color:var(--text-sub); font-size:11px; padding:0 4px; width:52px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.sch-cell { height:22px; width:130px; position:relative; }
.sch-cell-free { background:#fff; cursor:pointer; }
.sch-cell-free:hover { background:#FBEEC2; box-shadow: inset 0 0 0 1px #E8B84B; }
.sch-cell-off { background:repeating-linear-gradient(45deg,#F4F5F7,#F4F5F7 4px,#E9ECEF 4px,#E9ECEF 8px); }
.sch-cell-busy { background:var(--brand); cursor:pointer; }
.sch-cell-busy:hover { background:var(--brand-dark); }
/* 师傅代排（线下到店客，师傅在师傅端手动排）—— 蓝色系，与客户自约的品牌绿区分 */
.sch-cell-walkin { background:#4A90D9; cursor:pointer; }
.sch-cell-walkin:hover { background:#3A78BC; }
.sch-cell-wait { background:#FFB74D; }
/* 已释放痕迹：浅灰底、灰字，可再被新单覆盖 */
.sch-cell-released { background:#E4E7EB; cursor:pointer; }
.sch-cell-released:hover { background:#D6DAE0; }
.sch-cell-released .sch-tag { color:#6B7280; font-style:italic; }
.sch-tag { color:#fff; font-size:10px; line-height:1.1; padding:1px 3px; white-space:nowrap; font-weight:500; overflow:hidden; text-overflow:ellipsis; }
.sch-cell-wait .sch-tag { color:#7A3B00; }
/* 已到店标注：颜色不变（仍按来源绿/蓝），仅在色块文字上加徽标 */
.sch-arrived { margin-left:5px; padding:0 5px; font-size:9px; font-weight:600; color:#fff; background:rgba(0,0,0,.3); border-radius:7px; white-space:nowrap; }
.sch-cell-arrived { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.sch-table tr:hover td { background:inherit; }
.sch-table tr:hover td.sch-time { background:#F1F3F5; }
.sch-sum td { background:#FAFBFC; font-size:11px; font-weight:600; color:var(--brand); padding:5px 4px; }
.sch-sum td.sch-time { color:var(--text-sub); }
/* 分段切换（单门店/全部门店） */
.seg { display:inline-flex; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.seg-btn { border:0; background:#fff; color:var(--text-sub); font-size:13px; padding:6px 14px; cursor:pointer; }
.seg-btn:not(:last-child) { border-right:1px solid var(--border); }
.seg-btn.on { background:var(--brand); color:#fff; font-weight:600; }
/* 全部门店平铺：每个门店一块 */
.sch-hd-all { font-size:15px; font-weight:700; margin:4px 0 14px; padding-bottom:8px; border-bottom:2px solid var(--border); }
.sch-block { margin-bottom:22px; }
.sch-block .sch-hd { font-size:13px; font-weight:600; margin-bottom:6px; color:var(--brand); }
/* 师傅停排弹窗 */
.rest-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.rest-chip { display:inline-flex; flex-direction:column; align-items:center; min-width:46px; padding:6px 10px; border:1px solid var(--border); border-radius:8px; font-size:13px; color:var(--text); cursor:pointer; user-select:none; background:#fff; line-height:1.2; transition:all .12s; }
.rest-chip i { font-style:normal; font-size:10px; color:var(--text-sub); margin-top:2px; }
.rest-chip:hover { border-color:var(--brand); }
.rest-chip.on { background:var(--brand); color:#fff; border-color:var(--brand); }
.rest-chip.on i { color:#fff; opacity:.85; }
.rest-long { display:flex; align-items:center; gap:8px; margin-top:16px; font-size:13px; color:var(--text); cursor:pointer; padding:10px; background:#FAFBFC; border-radius:8px; }

/* ===== 管理端登录页 ===== */
.login-mask { position:fixed; inset:0; background:linear-gradient(135deg,#F5F3EF 0%,#E8E4DC 100%); display:flex; align-items:center; justify-content:center; z-index:9999; }
.login-box { width:360px; max-width:88vw; background:#fff; border-radius:16px; padding:40px 32px 28px; box-shadow:0 12px 40px rgba(0,0,0,.12); text-align:center; }
.login-sub { font-size:13px; color:var(--text-sub,#999); margin:8px 0 24px; }
.login-box .input { width:100%; margin-bottom:14px; padding:12px 14px; font-size:15px; }
.login-btn { width:100%; padding:12px; font-size:16px; margin-top:6px; }
.login-hint { font-size:12px; color:var(--text-sub,#aaa); margin-top:16px; }
.login-err { background:#FDECEA; color:#C0392B; font-size:13px; padding:8px 12px; border-radius:8px; margin-bottom:16px; }
.nav-logout { margin-top:24px; color:#C0392B !important; opacity:.85; }
.nav-logout:hover { opacity:1; }

/* ============ 品牌黄主题覆盖（管理端）============ */
/* 黄底之上文字改深色，保证可读性 */
.topbar { color: var(--brand-ink); }
.btn { color: var(--brand-ink); font-weight: 600; }
.btn-line { background:#fff; color: var(--brand-ink); border:1px solid var(--accent); }
.btn-danger { color:#fff; }
.chip.sel { color: var(--brand-ink); }
.slot.sel { color: var(--brand-ink); }
.seg-btn.on { color: var(--brand-ink); }
.rest-chip.on { color: var(--brand-ink); }
.sch-cell-busy { color: var(--brand-ink); }
.avatar { color: var(--accent); }

/* 侧边栏：深底 + 黄色 active */
.sidebar .nav-item.active { background: var(--brand); color: var(--brand-ink); opacity:1; border-left:3px solid var(--accent); font-weight:600; }

/* 统计数字/主色文字保持黄会看不清 -> 用深金 */
.stat-card .num { color: var(--accent); }
.card-title, .sch-block .sch-hd, .sch-sum td { color: var(--accent); }

/* 登录页：品牌黄 */
.login-mask { background:linear-gradient(135deg,#FBF3D6 0%,#F3E2A8 100%); }
.login-box { border-top:4px solid var(--brand); }
.login-btn { background: var(--brand); color: var(--brand-ink); font-weight:600; }
.input:focus, select:focus { border-color: var(--accent); }

/* ============ 新版横幅 logo（含完整品牌名的方形图）============ */
/* 登录页：横幅式，撑满卡片宽度，保持比例 */
.login-logo-banner {
  display:block;
  width:100%;
  max-width:260px;
  height:auto;
  border-radius:16px;
  margin:0 auto 16px;
  box-shadow:0 6px 20px rgba(201,154,43,.30);
}
/* 侧边栏：横幅式撑满 */
.sidebar .logo { padding:14px 12px; border-bottom:1px solid rgba(255,255,255,.10); }
.sidebar .logo .logo-banner {
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
}

/* ============ 余额核销：项目选择卡片网格（横排自适应）============ */
.br-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.br-svc {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 62px;
  justify-content: center;
}
.br-svc:hover { border-color: var(--brand); background: var(--brand-light); }
.br-svc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.br-svc-meta {
  font-size: 12px;
  color: var(--text-sub);
}
.br-svc-meta b { font-size: 15px; color: var(--brand-ink); font-weight: 700; }
.br-svc-on {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(233,204,94,.28);
}
.br-svc-on .br-svc-name { color: var(--brand-ink); }

/* 余额核销：预览扣款区 */
.br-preview {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--brand-light);
  border: 1px solid #F0E3B0;
  border-radius: 12px;
}
.br-pv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-sub);
  border-bottom: 1px dashed rgba(0,0,0,.06);
}
.br-pv-row:last-of-type { border-bottom: none; }
.br-pv-row b { color: var(--text); font-weight: 700; }
.br-preview .btn { width: 100%; }

/* ===== 方案C：扫码枪就绪提示条 + 捕获闪动 ===== */
.gun-ready {
  display: flex; align-items: center; gap: 8px;
  margin: -4px 0 14px;
  padding: 8px 12px;
  background: rgba(46,125,91,.06);
  border: 1px solid rgba(46,125,91,.18);
  border-radius: 10px;
  font-size: 13px;
  color: var(--brand-ink, #2E7D5B);
  line-height: 1.5;
}
.gun-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #37c07a; flex: none;
  box-shadow: 0 0 0 0 rgba(55,192,122,.6);
  animation: gunPulse 1.6s infinite;
}
@keyframes gunPulse {
  0%   { box-shadow: 0 0 0 0 rgba(55,192,122,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(55,192,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(55,192,122,0); }
}
/* 扫码成功顶部闪条（一次性） */
#gunFlash {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px; font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #2E7D5B, #37c07a);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
#gunFlash.gun-flash-on {
  animation: gunFlashDrop 1.6s ease forwards;
}
@keyframes gunFlashDrop {
  0%   { transform: translateY(-100%); opacity: 0; }
  12%  { transform: translateY(0);     opacity: 1; }
  75%  { transform: translateY(0);     opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

/* 卡券核销 · 可用券列表行 */
.cp-list { display: flex; flex-direction: column; gap: 8px; }
.cp-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid #eee; border-radius: 10px; background: #fff;
}
.cp-row-val {
  flex: 0 0 auto; min-width: 64px; text-align: center;
  font-weight: 700; font-size: 16px; color: var(--brand, #e5a300);
  background: #fff8e6; border-radius: 8px; padding: 8px 10px;
}
.cp-row-body { flex: 1; min-width: 0; }
.cp-row-title { font-weight: 600; font-size: 14px; }
.cp-row-meta { color: #999; font-size: 12px; margin-top: 2px; }
