:root {
  --primary: #1485ee;
  --primary-d: #0b6fd6;
  --bg: #f2f4f7;
  --card: #ffffff;
  --text: #1f2329;
  --muted: #8a9099;
  --line: #e6e9ef;
  --warn: #e24b4a;
  --ok: #1d9e75;
  --danger-bg: #fff3f3;
  --danger-border: #f5c6cb;
  --critical-bg: #fef0f0;
  --critical-border: #e24b4a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.topbar {
  background: linear-gradient(90deg, #1485ee, #2e9bff);
  color: #fff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: #fff; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
}
.title { font-size: 17px; font-weight: 600; }
.subtitle { font-size: 12px; opacity: .85; }
.badge {
  background: rgba(255,255,255,.18);
  padding: 6px 12px; border-radius: 20px; font-size: 12px;
}
.tabs {
  display: flex; gap: 4px; padding: 10px 18px 0;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.tab {
  border: none; background: none; cursor: pointer;
  padding: 10px 18px; font-size: 14px; color: var(--muted);
  border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab-ico { font-size: 16px; line-height: 1; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
main { padding: 18px; max-width: 880px; margin: 0 auto; }
.panel { display: none; }
.panel.active { display: block; }
.card {
  background: var(--card); border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card h3 { margin: 0 0 14px; font-size: 16px; }
.card h4 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.row label { color: var(--muted); min-width: 96px; }
input, select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; outline: none; flex: 1; min-width: 120px;
}
input:focus, select:focus { border-color: var(--primary); }
button {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 14px; color: var(--text);
  transition: all .15s;
}
button:hover { filter: brightness(.96); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
button.primary:hover { background: var(--primary-d); }
button.primary-outline {
  background: #eef5ff; color: var(--primary); border-color: #b3d4ff;
  font-weight: 600;
}
button.primary-outline:hover { background: #dce9ff; }
button.danger {
  color: var(--warn); border-color: var(--danger-border);
  background: var(--danger-bg);
  font-weight: 600;
}
button.danger:hover:not(:disabled) { background: #fddede; border-color: var(--warn); }
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--muted);
}
.btn-ghost:hover { background: var(--bg); }
.hint { color: var(--muted); font-size: 12px; }
.hidden { display: none !important; }

/* ====== 钱包 ====== */
.wallet { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wallet-top {
  background: linear-gradient(120deg, #1485ee, #36b3ff);
  color: #fff; padding: 18px; display: flex; justify-content: space-between; align-items: center;
}
.w-name { font-size: 18px; font-weight: 700; }
.w-dept { font-size: 12px; opacity: .9; }
.w-balance { text-align: right; }
.w-balance span { font-size: 30px; font-weight: 700; }
.w-balance small { display: block; font-size: 12px; opacity: .9; }
.code-box { padding: 16px; text-align: center; background: #fafbfc; }
.code-label { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.code-value {
  font-size: 20px; font-weight: 700; letter-spacing: 3px; color: var(--primary);
  font-family: "Courier New", monospace;
}
.qr {
  width: 120px; height: 120px; margin: 12px auto 0;
  display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr);
  border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); background: #fff;
}
.qr i { background: #1f2329; }
.qr i.off { background: #fff; }

/* ====== 记录列表 ====== */
.records { list-style: none; padding: 0; margin: 0; }
.records li {
  display: flex; justify-content: space-between; padding: 9px 4px;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.records li .r-booth { color: var(--muted); }
.records li .r-amt { color: var(--warn); font-weight: 600; }
.records li .r-amt.ok { color: var(--ok); }
.scan-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.scan-list button {
  padding: 6px 10px; font-size: 13px; border-radius: 18px;
  background: #eef5ff; border-color: #cfe2ff; color: var(--primary);
}
.msg { padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 8px; }
.msg.ok { background: #e7f7f0; color: var(--ok); }
.msg.fail { background: #fdeaea; color: var(--warn); }

/* ====== KPI 看板 ====== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; margin-bottom: 8px; }
.kpi { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 8px; text-align: center; }
.kpi-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.kpi.warn .kpi-num { color: var(--warn); }
.kpi-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ====== 摊位排行 ====== */
#boothRank .bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
#boothRank .bar-name { width: 110px; font-size: 13px; }
#boothRank .bar-track { flex: 1; background: #eef1f5; border-radius: 6px; height: 18px; overflow: hidden; }
#boothRank .bar-fill { height: 100%; background: linear-gradient(90deg,#1485ee,#36b3ff); }
#boothRank .bar-val { width: 90px; text-align: right; font-size: 12px; color: var(--muted); }

/* ====== 异常监控 ====== */
.anomaly { background: #fff6f6; border: 1px solid #f3c4c4; color: var(--warn); padding: 10px 12px; border-radius: 8px; font-size: 13px; }

/* ====== 安全提示条 ====== */
.security-banner {
  background: #eef6ff; border: 1px solid #b3d4ff; border-left: 4px solid var(--primary);
  padding: 12px 14px; border-radius: 8px; margin-bottom: 18px;
  font-size: 13px; line-height: 1.6; display: flex; gap: 8px; align-items: flex-start;
}
.security-banner .sec-icon { font-size: 18px; flex-shrink: 0; }

/* ====== 危险操作区 ====== */
.danger-zone {
  background: var(--danger-bg); border: 1.5px solid var(--danger-border);
  border-radius: 12px; padding: 18px; margin-top: 20px;
}
.danger-zone.critical {
  background: var(--critical-bg); border-color: var(--critical-border);
}
.danger-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px !important; margin-bottom: 14px !important;
  color: var(--warn) !important;
}
.danger-title .danger-icon { font-size: 18px; }
.danger-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  background: #fddede; color: var(--warn); vertical-align: middle;
}
.critical-badge {
  background: var(--warn); color: #fff;
}

/* ====== 预览面板 ====== */
.preview-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; margin-top: 12px;
}
.preview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px;
}
.prev-item {
  background: #f7f9fc; border-radius: 8px; padding: 12px; text-align: center;
}
.prev-item.prev-highlight {
  grid-column: 1 / -1; background: #fff8e6; border: 1.5px solid #f5d77a;
}
.prev-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.prev-val { font-size: 20px; font-weight: 700; color: var(--text); }
.prev-val.big { font-size: 26px; color: var(--warn); }
.warn-text { color: var(--warn) !important; }
.ok-text { color: var(--ok) !important; }

/* 审批码行 */
.approval-row {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding-top: 14px; border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.approval-row label { min-width: auto; font-weight: 600; font-size: 13px; }
.approval-row input[type="password"] {
  max-width: 140px; font-family: "Courier New", monospace;
  font-size: 18px; letter-spacing: 4px; text-align: center;
}

/* 发放结果面板 */
.result-panel {
  background: #e7f7f0; border: 1px solid #b8e8cd; border-radius: 10px;
  padding: 16px; margin-top: 12px; font-size: 13px;
}
.result-panel h4 { color: var(--ok) !important; margin-top: 0 !important; }

/* 警告小字 */
.warn-text-small { font-size: 12px; color: var(--warn); margin: 0 0 10px; }

/* ====== 审计日志 ====== */
.audit-log-box {
  background: #fafbfc; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; margin-top: 8px; max-height: 300px; overflow-y: auto;
}
.audit-entry {
  display: flex; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line);
  font-size: 12px; line-height: 1.5;
}
.audit-entry:last-child { border-bottom: none; }
.audit-time { color: var(--muted); white-space: nowrap; font-family: "Courier New", monospace; font-size: 11px; }
.audit-action {
  font-weight: 600; min-width: 100px; flex-shrink: 0;
}
.audit-action.action-recharge { color: var(--ok); }
.audit-action.action-recharge_preview { color: var(--primary); }
.audit-action.action-reset { color: var(--warn); }
.audit-action.activity_update { color: #8b5cf6; }
.audit-action.action-recharge_denied,
.audit-action.action-reset_denied { color: var(--warn); }
.audit-detail { color: var(--text); word-break: break-all; }

/* ====== 模态弹窗（二次确认）====== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.modal-box {
  background: #fff; border-radius: 14px; width: 420px; max-width: 92vw;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden;
}
.modal-header {
  background: var(--warn); color: #fff; padding: 14px 18px;
  font-size: 16px; font-weight: 600;
}
.modal-body { padding: 20px 18px; font-size: 14px; line-height: 1.7; }
.modal-footer {
  padding: 14px 18px; display: flex; justify-content: flex-end; gap: 10px;
  background: #f7f9fc; border-top: 1px solid var(--line);
}
.modal-footer button { min-width: 90px; }

/* ====== 页脚 ====== */
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; }

/* ====== 家属区（v3）====== */
.family-section {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.dep-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.dep-empty { font-size: 13px; color: var(--muted); padding: 10px; background: #fafbfc; border-radius: 8px; }
.dep-card {
  border: 1px solid #f3c4d6; border-radius: 12px; padding: 14px;
  background: linear-gradient(180deg, #fff5fa, #fff);
}
.dep-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dep-tag {
  background: #ffd9ea; color: #d63384; font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 10px;
}
.dep-nick { font-size: 13px; color: var(--text); flex: 1; }
.dep-remove {
  border: 1px solid var(--danger-border); color: var(--warn); background: var(--danger-bg);
  padding: 4px 10px; font-size: 12px; border-radius: 8px;
}
.dep-code {
  font-size: 17px; font-weight: 700; letter-spacing: 2px; color: #d63384;
  font-family: "Courier New", monospace; text-align: center;
}
.dep-qr { width: 92px; height: 92px; margin: 10px auto 6px; border-radius: 8px; }
.qr.pink i { background: #d63384; }
.qr.pink i.off { background: #fff; }
.dep-bal { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.dep-bal strong { color: #d63384; font-size: 15px; }
.dep-transfer { display: flex; gap: 8px; }
.dep-transfer .dep-amt { flex: 1; min-width: 0; }
.dep-transfer-btn {
  background: #d63384; color: #fff; border-color: #d63384; font-weight: 600; padding: 8px 14px;
}

/* 扫码列表中的家属按钮（粉色） */
.scan-list button.dep-scan {
  background: #ffe9f3; border-color: #f3b8d4; color: #d63384;
}
.scan-list button.dep-scan:hover { background: #ffd9ea; }

/* 分隔线 */
hr.sep { border: none; border-top: 1px dashed var(--line); margin: 22px 0; }

/* 游戏发奖档位配置（管理后台） */
.tiers-row { align-items: flex-start; }
.tier-inputs { display: flex; gap: 6px; flex-wrap: wrap; }
.tier-inputs .tier { width: 56px; }
.tier { padding: 7px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 13px; }

/* 发券快捷预设 */
.preset-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.preset-btn {
  background: #eef3ff; border: 1px solid #c9d8ff; color: #2f6bff;
  border-radius: 18px; padding: 5px 14px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.preset-btn:hover { background: #dde7ff; }

/* 摊位端游戏发奖档位按钮 */
.tier-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.tier-btn {
  flex: 1; min-width: 64px; padding: 10px 6px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--text); cursor: pointer;
  font-size: 13px; font-weight: 600; transition: all .15s;
}
.tier-btn:hover { border-color: #2f6bff; }
.tier-btn.tier-active { background: #2f6bff; border-color: #2f6bff; color: #fff; box-shadow: 0 2px 8px rgba(47,107,255,.3); }

/* ====== 摊位管理（后台自由配置）====== */
.config-badge { background: #e8f3ff; color: #1f6feb; border: 1px solid #bcd8ff; }
.booth-form { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; margin: 12px 0; background: var(--bg-soft, #f7f9fc); }
.booth-form .row { margin-bottom: 10px; }
.booth-form h4 { margin: 0 0 10px; }
.booth-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.booth-table th, .booth-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.booth-table th { background: #f7f9fc; font-weight: 600; color: var(--muted); }
.booth-actions { white-space: nowrap; }
.mini {
  padding: 4px 10px; font-size: 12px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; margin-right: 4px; color: var(--text);
}
.mini:hover { border-color: #2f6bff; color: #2f6bff; }
.mini.danger { color: #fff; background: var(--warn); border-color: var(--warn); }
.mini.danger:hover { background: #c93b3a; color: #fff; }
.tag-ok { color: var(--ok); border: 1px solid var(--ok); border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.tag-off { color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; font-size: 12px; }

/* =====================================================================
   移动端优先优化（UI Designer · 2026-08-21）
   目标：手机（摊位核销 / 职工亮码）为主场景，单手可达、大字号、大触摸区
   ===================================================================== */

/* 全局触摸优化：去除点击延迟、去除蓝色高亮、按钮禁选中 */
button, .tab, .tier-btn, .scan-list button, .preset-btn, .dep-transfer-btn, .mini {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* 券码复制提示 */
.code-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.code-value { cursor: pointer; }
.dep-code { cursor: pointer; }

/* 轻提示 toast（替代 alert） */
.toast-box {
  position: fixed; left: 50%; top: 16px; transform: translateX(-50%);
  z-index: 99999; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none; width: max-content; max-width: 92vw;
}
.toast-item {
  background: rgba(31, 35, 41, .92); color: #fff; padding: 11px 18px;
  border-radius: 22px; font-size: 14px; line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(-8px); transition: all .28s ease;
  text-align: center; pointer-events: auto; max-width: 92vw;
  word-break: break-word;
}
.toast-item.show { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------
   平板及以下（≤ 768px）：底部导航 + 表单纵向堆叠 + 大触摸目标
   --------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* 顶栏收紧凑 */
  .topbar { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .title { font-size: 15px; }
  .subtitle { display: none; }
  .badge { font-size: 11px; padding: 5px 10px; }

  /* 主内容占满宽度，并为底部导航留白 */
  main { padding: 14px 14px; max-width: 100%; }
  footer { padding: 18px 14px calc(92px + env(safe-area-inset-bottom)); }

  /* 顶部 Tab → 固定底部导航（拇指热区） */
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0;
    display: flex; padding: 0; gap: 0;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -3px 14px rgba(0, 0, 0, .08);
    z-index: 1000; padding-bottom: env(safe-area-inset-bottom);
  }
  .tab {
    flex: 1; flex-direction: column; gap: 2px;
    padding: 9px 4px calc(7px + env(safe-area-inset-bottom));
    font-size: 12px; border-bottom: none; border-radius: 0;
    border-top: 3px solid transparent; justify-content: center;
  }
  .tab.active { border-bottom: none; border-top-color: var(--primary); }
  .tab-ico { font-size: 21px; }
  .tab-txt { font-size: 12px; }
  main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

  /* 表单行纵向堆叠，输入/按钮全宽，触摸目标 ≥44px */
  .row { flex-direction: column; align-items: stretch; gap: 8px; }
  .row > label { min-width: auto; }
  .row > input, .row > select, .row > button { width: 100%; min-height: 44px; font-size: 15px; }
  .preset-row { flex-direction: row !important; flex-wrap: wrap; }
  .preset-row .preset-btn { width: auto !important; min-height: 38px; }
  .tier-inputs { width: 100%; }
  .tier-inputs .tier { flex: 1; min-width: 0; max-width: 64px; }

  /* 职工钱包：手机端做成“亮码英雄区” */
  .wallet-top { padding: 20px 16px; }
  .w-name { font-size: 20px; }
  .w-balance span { font-size: 38px; }
  .code-box { padding: 20px 14px 24px; }
  .code-value { font-size: 26px; letter-spacing: 4px; padding: 6px; border-radius: 8px; }
  .code-box .qr { width: 184px; height: 184px; margin-top: 14px; }
  .code-hint { font-size: 12px; }

  /* 摊位核销端：扫码/核销按钮放大、全宽、突出 */
  #scanBtn, #wxScanBtn, #scanRewardBtn, #rewardWxScanBtn,
  #redeemBtn, #rewardBtn, #saveAct, #boothAddBtn, #boothSaveBtn,
  #boothCancelBtn, #previewBtn, #confirmRechargeBtn, #resetBtn {
    width: 100%; min-height: 48px; font-size: 16px; font-weight: 600;
  }
  #scanBtn, #wxScanBtn, #scanRewardBtn, #rewardWxScanBtn { font-size: 18px; padding: 14px; }
  .scan-list button, .tier-btn, .preset-btn { min-height: 44px; font-size: 14px; }
  .tier-buttons { gap: 8px; }
  .tier-btn { min-width: 0; }

  /* 家属卡片在手机上更舒展 */
  .dep-card { padding: 16px; }
  .dep-code { font-size: 20px; }
  .dep-qr { width: 120px; height: 120px; }
  .dep-transfer .dep-amt { min-height: 44px; }

  /* 安全提示条允许换行 */
  .security-banner { flex-direction: row; }

  /* 模态弹窗按钮在手机上纵向铺满 */
  .modal-footer { flex-direction: column-reverse; gap: 8px; }
  .modal-footer button { width: 100%; min-height: 46px; }
  .modal-box { width: 100%; max-width: 94vw; }

  /* 审批码行纵向 */
  .approval-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .approval-row label { min-width: auto; }
  .approval-row input[type="password"] { max-width: none; width: 100%; font-size: 20px; padding: 10px; }

  /* 审计日志：手机端改为纵向卡片布局（解决文字竖排问题） */
  .audit-log-box { max-height: none; overflow-y: visible; }
  .audit-entry {
    flex-direction: column; gap: 4px; padding: 12px 10px;
    border-radius: 8px; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 8px;
    border-bottom: none; line-height: 1.6;
  }
  .audit-time { font-size: 12px; margin-bottom: 2px; }
  .audit-action {
    min-width: auto; font-size: 14px; display: inline-block;
    padding: 2px 10px; border-radius: 6px; background: #f5f7fa;
  }
  .audit-detail {
    word-break: break-word; white-space: normal;
    font-size: 13px; color: #444; padding-left: 4px;
    border-left: 3px solid var(--line);
  }
}

/* ---------------------------------------------------------------------
   小屏手机（≤ 380px）：进一步收紧
   --------------------------------------------------------------------- */
@media (max-width: 380px) {
  .title { font-size: 14px; }
  .code-box .qr { width: 160px; height: 160px; }
  .w-balance span { font-size: 34px; }
  .kpi-num { font-size: 19px; }
  .kpi-label { font-size: 11px; }
}

/* ---------------------------------------------------------------------
   摊位管理表：手机端转为卡片列表（避免 6 列横向溢出）
   --------------------------------------------------------------------- */
@media (max-width: 768px) {
  .booth-table thead { display: none; }
  .booth-table, .booth-table tbody, .booth-table tr, .booth-table td {
    display: block; width: 100%;
  }
  .booth-table tr {
    margin-bottom: 12px; border: 1px solid var(--line);
    border-radius: 12px; padding: 4px 4px; background: #fff;
  }
  .booth-table td {
    border: none; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 9px 12px; text-align: right;
  }
  .booth-table td:last-child { border-bottom: none; }
  .booth-table td[colspan]::before { content: none !important; }
  .booth-table td::before {
    content: attr(data-label); font-weight: 600; color: var(--muted);
    white-space: nowrap; text-align: left; flex-shrink: 0;
  }
  .booth-table td:nth-child(1)::before { content: "摊位"; }
  .booth-table td:nth-child(2)::before { content: "项目/活动"; }
  .booth-table td:nth-child(3)::before { content: "负责人"; }
  .booth-table td:nth-child(4)::before { content: "类型"; }
  .booth-table td:nth-child(5)::before { content: "状态"; }
  .booth-table td:nth-child(6)::before { content: ""; }
  .booth-table td:nth-child(6) {
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  }
  .booth-table .mini { margin-right: 0; min-height: 38px; }
}

/* 扫码失败显式提示卡（移动端友好，醒目但不挡操作） */
.scan-error {
  border: 1.5px solid #e6a23c; background: #fff8ec; color: #8a5a00;
  border-radius: 12px; padding: 12px 14px; margin: 10px 2px; font-size: 13px; line-height: 1.6;
}
.scan-error .se-title { font-weight: 700; font-size: 14px; color: #b45309; margin-bottom: 6px; }
.scan-error .se-detail { color: #92400e; word-break: break-word; margin-bottom: 8px; }
.scan-error .se-fix { background: #fff; border: 1px dashed #e6a23c; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.scan-error .se-fix code { background: #fde9c8; padding: 1px 6px; border-radius: 4px; font-weight: 700; color: #b45309; }
.scan-error .se-tip { color: #6b7280; margin-bottom: 8px; }
.scan-error .se-close {
  border: none; background: #b45309; color: #fff; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; cursor: pointer; min-height: 38px;
}
.scan-error .se-close:active { background: #92400e; }
