/* ============================================================================
   jfdh 后台 · 设计系统样式（admin-v2.css）
   来源：/Users/yy/Doubao/chats/2026-10-09/new-chat/jfdh-ui-redesign/后台管理-门店配置.css
         （2026-10-12 16:45 版；内联 <style> 与外部 .css 已完全一致，534 个选择器）
   结构：① 设计稿样式 1:1 照抄 → ② 适配层（我方 DOM 多出的容器） → ③ 映射层（我方类名）
   加载顺序：admin.css（旧） → admin-v2.css（本文件，压前者）
   ============================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: #F2F4F7;
    color: #333;
    font-size: 14px;
  }
  a { color: #3B82F6; text-decoration: none; }

  /* ===== 顶部导航 ===== */
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    padding: 0 20px;
    height: 52px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }
  .topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
  }
  .topbar-left .logo-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #3B82F6;
    display: inline-block;
  }
  .topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .topbar-right .store-badge {
    background: #EFF6FF;
    color: #3B82F6;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
  }
  .topbar-btn {
    border: 1px solid #D1D5DB;
    background: #fff;
    color: #374151;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
  }
  .topbar-btn.primary {
    background: #3B82F6;
    border-color: #3B82F6;
    color: #fff;
  }

  /* ===== 左侧边栏 ===== */
  .sidebar {
    position: fixed;
    top: 52px;
    bottom: 0;
    left: 0;
    width: 168px;
    background: #1E293B;
    padding-top: 14px;
    overflow-y: auto;
    z-index: 90;
  }
  .menu-group-title {
    color: #64748B;
    font-size: 11px;
    padding: 8px 16px 6px;
    letter-spacing: 1px;
  }
  .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #CBD5E1;
    cursor: pointer;
    font-size: 13px;
    border-left: 3px solid transparent;
  }
  .menu-item:hover { background: #334155; color: #fff; }
  .menu-item.active {
    background: #2563EB;
    color: #fff;
    border-left-color: #93C5FD;
  }
  .menu-item svg { flex-shrink: 0; opacity: 0.9; }

  /* ===== 主内容区 ===== */
  .main {
    margin-left: 168px;
    padding: 72px 24px 40px;
  }
  .page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  .page-title { font-size: 18px; font-weight: 700; color: #1E293B; }
  .page-stats { font-size: 13px; color: #6B7280; }
  .page-stats b { color: #3B82F6; }

  /* 模式提示条 */
  .mode-banner {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1D4ED8;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin: 14px 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mode-banner svg { flex-shrink: 0; }

  /* 区块标题 */
  .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* 设置卡片 */
  .card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    margin-bottom: 14px;
  }
  .card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border-bottom: 1px solid #F1F2F4;
  }
  .card-row:last-child { border-bottom: none; }
  .card-row .info { flex: 1; }
  .card-row .label { font-size: 14px; font-weight: 600; color: #1E293B; }
  .card-row .desc { font-size: 12.5px; color: #6B7280; margin-top: 4px; line-height: 1.6; }
  .card-row .control { flex-shrink: 0; }

  /* 开关 */
  .switch { position: relative; display: inline-block; width: 44px; height: 24px; }
  .switch input { opacity: 0; width: 0; height: 0; }
  .switch .slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background: #CBD5E1; border-radius: 24px; transition: 0.25s;
  }
  .switch .slider::before {
    content: ""; position: absolute; height: 18px; width: 18px;
    left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.25s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  }
  .switch input:checked + .slider { background: #3B82F6; }
  .switch input:checked + .slider::before { transform: translateX(20px); }

  /* 打卡项列表 */
  .task-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
  .task-table th {
    background: #F8FAFC; color: #6B7280; font-size: 12px; font-weight: 600;
    text-align: left; padding: 11px 14px; border-bottom: 1px solid #E5E7EB;
  }
  .task-table td {
    padding: 13px 14px; border-bottom: 1px solid #F1F2F4; vertical-align: middle;
  }
  .task-table tr:last-child td { border-bottom: none; }
  .task-name { font-weight: 600; color: #1E293B; font-size: 13.5px; }
  .task-desc { font-size: 12px; color: #6B7280; margin-top: 3px; line-height: 1.5; }
  .task-meta { font-size: 12px; color: #94A3B8; margin-top: 3px; }
  .task-meta b { color: #3B82F6; font-weight: 600; }

  .tag-type {
    display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 5px;
    background: #F1F5F9; color: #475569; white-space: nowrap;
  }
  .tag-type.audio { background: #EFF6FF; color: #2563EB; }
  .tag-type.photo { background: #F0FDF4; color: #15803D; }
  .tag-type.voice { background: #FEF3C7; color: #B45309; }

  .op-btns { display: flex; gap: 6px; white-space: nowrap; }
  .op-btn {
    width: 28px; height: 28px; border: 1px solid #D1D5DB; background: #fff;
    border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: #4B5563;
  }
  .op-btn:hover { border-color: #3B82F6; color: #3B82F6; }
  .op-btn.text {
    width: auto; padding: 0 12px; font-size: 12.5px; gap: 4px;
  }
  .op-btn.danger:hover { border-color: #EF4444; color: #EF4444; }

  .add-task-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #3B82F6; color: #fff; border: none; border-radius: 8px;
    padding: 10px 20px; font-size: 13.5px; font-weight: 500; cursor: pointer;
    margin-top: 14px;
  }
  .add-task-btn:hover { background: #2563EB; }

  .page-foot { color: #94A3B8; font-size: 12px; text-align: center; margin-top: 30px; }

  /* ===== 提货点设置（系统设置内） ===== */
  .pickup-section { margin-top: 26px; }
  .pickup-add {
    border: 1.5px dashed #CBD5E1; border-radius: 10px; padding: 14px 16px;
    display: flex; align-items: center; gap: 10px; color: #64748B; font-size: 13px;
    cursor: pointer; background: #fff; transition: border-color .15s, color .15s; margin-bottom: 14px;
  }
  .pickup-add:hover { border-color: #3B82F6; color: #2563EB; }
  .pickup-add svg { color: #94A3B8; }
  .pickup-add:hover svg { color: #3B82F6; }
  .pickup-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  @media (max-width: 1200px) { .pickup-list { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 760px) { .pickup-list { grid-template-columns: 1fr; } }
  .pickup-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 16px;
  }
  .pickup-name { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14px; color: #1E293B; }
  .pickup-name .p-ops { display: flex; gap: 12px; }
  .pickup-name .p-ops a { font-size: 12.5px; color: #3B82F6; text-decoration: none; cursor: pointer; font-weight: 500; }
  .pickup-name .p-ops a.danger { color: #EF4444; }
  .pickup-addr { font-size: 12px; color: #64748B; margin-top: 8px; line-height: 1.6; }
  .pickup-tip { font-size: 11.5px; color: #94A3B8; margin-top: 6px; }

  /* ===== 积分礼品页 ===== */
  .gift-table-wrap { overflow-x: auto; }
  .gift-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
  .gift-table th {
    background: #F8FAFC; color: #6B7280; font-size: 12px; font-weight: 600;
    text-align: left; padding: 11px 12px; border-bottom: 1px solid #E5E7EB; white-space: nowrap;
  }
  .gift-table td { padding: 12px; border-bottom: 1px solid #F1F2F4; font-size: 12.5px; color: #334155; vertical-align: middle; }
  .gift-table tr:last-child td { border-bottom: none; }
  .gift-table tr:hover td { background: #F8FAFC; }
  .gift-thumb {
    width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .gift-name { font-weight: 600; color: #1E293B; font-size: 13px; }
  .gift-sub { font-size: 11.5px; color: #94A3B8; margin-top: 3px; }
  .gift-points { font-weight: 700; color: #FF7E67; font-size: 13px; }
  .gift-count { color: #94A3B8; font-size: 12px; margin-top: 12px; }
  .gift-count b { color: #2563EB; }
  /* 添加新礼品弹窗 */
  .quick-card {
    background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 10px; padding: 13px 15px;
    display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px;
  }
  .quick-card .qc-title { font-size: 13px; font-weight: 600; color: #1D4ED8; }
  .quick-card .qc-desc { font-size: 12px; color: #1E40AF; line-height: 1.7; margin-top: 3px; }
  .quick-card .qc-desc code {
    background: #DBEAFE; border: 1px solid #93C5FD; border-radius: 4px;
    padding: 1px 6px; font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; color: #1E40AF;
  }
  .btn-quick {
    margin-top: 9px; border: 1px solid #3B82F6; background: #fff; color: #2563EB;
    border-radius: 8px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; font-weight: 500;
  }
  .btn-quick:hover { background: #EFF6FF; }
  .gift-form-label { font-size: 13px; font-weight: 500; color: #334155; margin-bottom: 7px; }
  .gift-form-label .opt { font-size: 11.5px; color: #94A3B8; font-weight: 400; margin-left: 4px; }
  .gift-form-item { margin-bottom: 16px; }
  .upload-zone {
    border: 1.5px dashed #CBD5E1; border-radius: 10px; padding: 26px 16px;
    display: flex; flex-direction: column; align-items: center; gap: 8px; color: #94A3B8;
    font-size: 12.5px; cursor: pointer; background: #FBFCFE; transition: border-color .15s;
  }
  .upload-zone:hover { border-color: #3B82F6; color: #2563EB; }
  .upload-zone svg { color: #94A3B8; }

  /* ===== 门店信息页 ===== */
  .store-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    padding: 22px 24px; margin-bottom: 18px;
  }
  .store-card-title {
    font-size: 14.5px; font-weight: 600; color: #1E293B;
    display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  }
  .store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
  @media (max-width: 760px) { .store-grid { grid-template-columns: 1fr; } }
  .store-field.full { grid-column: 1 / -1; }
  .store-label { font-size: 12.5px; font-weight: 500; color: #475569; margin-bottom: 7px; }
  .store-label .opt { font-size: 11.5px; color: #94A3B8; font-weight: 400; margin-left: 4px; }
  .store-input {
    width: 100%; border: 1px solid #D8DEE6; border-radius: 8px; padding: 9px 12px;
    font-size: 13px; color: #1E293B; outline: none; background: #fff; font-family: inherit;
  }
  .store-input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
  .store-input[readonly] { background: #F8FAFC; color: #64748B; }
  .store-textarea {
    width: 100%; border: 1px solid #D8DEE6; border-radius: 8px; padding: 9px 12px;
    font-size: 13px; color: #1E293B; outline: none; resize: none; min-height: 72px;
    font-family: inherit; line-height: 1.6;
  }
  .store-textarea:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
  .store-save-row { display: flex; justify-content: flex-end; margin-top: 4px; }
  .logo-preview {
    width: 56px; height: 56px; border-radius: 10px; background: #F1F5F9;
    border: 1px dashed #CBD5E1; display: flex; align-items: center; justify-content: center;
    color: #94A3B8; font-size: 11px; flex-shrink: 0;
  }
  .store-logo-row { display: flex; gap: 12px; align-items: center; }

  /* ===== 门店列表页 ===== */
  .storelist-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
  .storelist-note { font-size: 12px; color: #94A3B8; }
  .btn-showpwd {
    border: 1px solid #D1D5DB; background: #fff; color: #374151; border-radius: 8px;
    padding: 7px 14px; font-size: 12.5px; cursor: pointer; font-weight: 500;
  }
  .btn-showpwd:hover { border-color: #3B82F6; color: #2563EB; }
  .btn-showpwd.active { border-color: #3B82F6; background: #EFF6FF; color: #2563EB; }
  .store-row {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    padding: 16px 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; transition: border-color .15s, box-shadow .15s;
  }
  .store-row:hover { border-color: #BFDBFE; box-shadow: 0 2px 10px rgba(59,130,246,0.06); }
  .store-id { display: flex; align-items: center; gap: 12px; min-width: 200px; }
  .store-logo-sm {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .store-name { font-weight: 600; font-size: 14px; color: #1E293B; display: flex; align-items: center; gap: 8px; }
  .store-status {
    display: inline-block; font-size: 10.5px; padding: 1.5px 7px; border-radius: 999px;
    background: #DCFCE7; color: #15803D; font-weight: 600; white-space: nowrap;
  }
  .store-slug { font-size: 11.5px; color: #94A3B8; margin-top: 4px; font-family: ui-monospace, Menlo, monospace; }
  /* 右侧组：操作 + 联系方式，整组换行，不拆分 */
  .store-main { display: flex; align-items: center; gap: 24px; margin-left: auto; flex-wrap: wrap; }
  .store-ops { display: flex; gap: 10px; }
  .store-ops a {
    font-size: 12.5px; color: #3B82F6; text-decoration: none; cursor: pointer;
    border: 1px solid #BFDBFE; border-radius: 8px; padding: 7px 13px; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 5px; font-weight: 500;
    transition: background .15s;
  }
  .store-ops a:hover { background: #EFF6FF; }
  .store-ops a.enter { background: #3B82F6; border-color: #3B82F6; color: #fff; }
  .store-ops a.enter:hover { background: #2563EB; }
  .store-contact {
    display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: #475569;
    white-space: nowrap; padding-left: 24px; border-left: 1px solid #E5E7EB;
  }
  .store-phone { font-family: ui-monospace, Menlo, monospace; }
  .store-phone .lab, .store-pwd .lab { font-size: 11px; color: #94A3B8; margin-right: 5px; }
  .store-pwd { display: flex; align-items: center; gap: 5px; color: #64748B; }
  .pwd-val { font-family: ui-monospace, Menlo, monospace; min-width: 8ch; display: inline-block; }
  .pwd-val.dots { color: #94A3B8; letter-spacing: 0; }
  .pwd-val.plain { color: #475569; }
  .trash-row {
    background: #fff; border: 1px dashed #E5E7EB; border-radius: 12px; padding: 16px 18px;
    display: flex; align-items: center; gap: 12px; margin-top: 20px;
  }
  .trash-row .t-info { font-size: 13px; color: #475569; }
  .trash-row .t-info b { color: #1E293B; }
  .btn-refresh { margin-left: auto; }
  .loading-tip { display: none; font-size: 12px; color: #94A3B8; margin-top: 10px; align-items: center; gap: 8px; }
  .loading-tip.show { display: flex; }
  .spin {
    width: 13px; height: 13px; border: 2px solid #CBD5E1; border-top-color: #3B82F6;
    border-radius: 50%; animation: rot 0.7s linear infinite;
  }
  @keyframes rot { to { transform: rotate(360deg); } }

  /* ===== 积分调整页 ===== */
  .points-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 860px) { .points-actions { grid-template-columns: 1fr; } }
  .points-action {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 24px 26px;
    cursor: pointer; transition: border-color .15s, box-shadow .15s; display: flex; gap: 18px; align-items: center;
  }
  .points-action:hover { border-color: #3B82F6; box-shadow: 0 4px 14px rgba(59,130,246,0.1); }
  .points-action .pa-ico {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; background: linear-gradient(135deg,#EFF6FF,#DBEAFE); color: #2563EB;
  }
  .points-action .pa-ico2 { background: linear-gradient(135deg,#FFF7ED,#FFEDD5); color: #D97706; }
  .points-action .pa-body { flex: 1; min-width: 0; }
  .points-action .pa-title { font-size: 15px; font-weight: 600; color: #1E293B; }
  .points-action .pa-desc { font-size: 12.5px; color: #64748B; line-height: 1.6; margin-top: 6px; }
  .points-action .pa-go {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
    background: #3B82F6; color: #fff; font-size: 13px; font-weight: 500;
    border-radius: 9px; padding: 9px 16px; transition: background .15s;
  }
  .points-action .pa-go2 { background: #fff; color: #2563EB; border: 1px solid #BFDBFE; }
  .points-action:hover .pa-go { background: #2563EB; }
  .points-action:hover .pa-go2 { background: #EFF6FF; }
  .points-note {
    margin-top: 16px; background: #F8FAFC; border: 1px solid #E5E7EB; border-radius: 10px;
    padding: 13px 16px; font-size: 12px; color: #64748B; line-height: 1.75;
    display: flex; gap: 10px; align-items: flex-start;
  }
  .points-note b { color: #334155; }
  /* ===== 书写评价分组 ===== */
  .review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  @media (max-width: 720px) { .review-grid { grid-template-columns: 1fr; } }
  .review-item .rv-label { font-size: 12.5px; color: #64748B; margin-bottom: 6px; }
  .review-item input {
    width: 100%; border: 1px solid #D8DEE6; border-radius: 8px; padding: 8px 12px;
    font-size: 13.5px; color: #1E293B; box-sizing: border-box; outline: none;
  }
  .review-item input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
  .review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .review-head .rv-enable { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #1E293B; font-weight: 500; }
  .review-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
  .review-btns button {
    border-radius: 8px; padding: 9px 20px; font-size: 13px; cursor: pointer; font-weight: 500;
  }
  .review-btns .rv-save { background: #3B82F6; color: #fff; border: none; }
  .review-btns .rv-save2 { background: #fff; color: #2563EB; border: 1px solid #BFDBFE; }
  .review-btns .rv-reset { background: #fff; color: #6B7280; border: 1px solid #D1D5DB; }

  /* ===== 新建门店弹窗 ===== */
  .cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
  @media (max-width: 760px) { .cs-grid { grid-template-columns: 1fr; } }
  .cs-item .cs-label { font-size: 12.5px; color: #64748B; margin-bottom: 6px; }
  .cs-item .cs-label .opt { color: #94A3B8; }
  .cs-item input, .cs-item textarea {
    width: 100%; border: 1px solid #D8DEE6; border-radius: 8px; padding: 9px 12px;
    font-size: 13.5px; color: #1E293B; box-sizing: border-box; outline: none; font-family: inherit;
  }
  .cs-item input:focus, .cs-item textarea:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
  .cs-item textarea { resize: vertical; min-height: 60px; }
  .cs-tip { font-size: 11.5px; color: #94A3B8; margin-top: 5px; }
  .cs-slug-box { display: flex; align-items: center; }
  .cs-slug-box .slug-prefix {
    background: #F1F5F9; border: 1px solid #D8DEE6; border-right: none; border-radius: 8px 0 0 8px;
    padding: 9px 12px; font-size: 12px; color: #64748B; white-space: nowrap;
  }
  .cs-slug-box input { border-radius: 0 8px 8px 0; }
  .cs-color-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
  .cs-color {
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent;
    display: flex; align-items: center; justify-content: center; transition: transform .12s;
  }
  .cs-color:hover { transform: scale(1.1); }
  .cs-color.active { border-color: #1E293B; }
  .cs-color svg { display: none; }
  .cs-color.active svg { display: block; }
  .cs-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
  @media (max-width: 640px) { .cs-modules { grid-template-columns: repeat(2, 1fr); } }
  .cs-mod {
    border: 1px solid #E5E7EB; border-radius: 9px; padding: 10px 13px; cursor: pointer;
    display: flex; align-items: center; gap: 9px; font-size: 13px; color: #334155; user-select: none;
    transition: border-color .12s, background .12s;
  }
  .cs-mod:hover { border-color: #BFDBFE; }
  .cs-mod.on { background: #EFF6FF; border-color: #3B82F6; color: #2563EB; font-weight: 500; }
  .cs-mod .cb {
    width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #CBD5E1; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
  }
  .cs-mod.on .cb { background: #3B82F6; border-color: #3B82F6; }
  .cs-mod .cb svg { display: none; }
  .cs-mod.on .cb svg { display: block; }

  /* ===== 积分排行榜页 ===== */
  .rank-month { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .rank-month .m-btn {
    border: 1px solid #D1D5DB; background: #fff; color: #374151; border-radius: 8px;
    padding: 7px 14px; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  }
  .rank-month .m-btn:hover { border-color: #3B82F6; color: #2563EB; }
  .rank-month .m-cur {
    font-size: 14px; font-weight: 600; color: #1E293B; min-width: 130px; text-align: center;
  }
  .rank-hint { font-size: 11.5px; color: #94A3B8; margin: -8px 0 16px; }
  .rank-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
  @media (max-width: 900px) { .rank-stats { grid-template-columns: repeat(2, 1fr); } }
  .rank-stat {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 16px 18px;
  }
  .rank-stat .rs-label { font-size: 12px; color: #94A3B8; }
  .rank-stat .rs-val { font-size: 24px; font-weight: 700; color: #1E293B; margin-top: 6px; }
  .rank-stat .rs-val.hot { color: #FF7E67; }
  .rank-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
  .rank-table th {
    padding: 11px 12px; background: #F8FAFC; font-size: 12px; color: #64748B; font-weight: 600;
    text-align: left; border-bottom: 1px solid #E5E7EB; white-space: nowrap;
  }
  .rank-table th.sortable { cursor: pointer; user-select: none; }
  .rank-table th.sortable:hover { color: #2563EB; }
  .rank-table td { padding: 11px 12px; border-bottom: 1px solid #F1F2F4; font-size: 12.5px; color: #334155; vertical-align: middle; }
  .rank-table tr:last-child td { border-bottom: none; }
  .rank-table tr:hover td { background: #F8FAFC; }
  .rank-no { font-weight: 700; color: #94A3B8; }
  .rank-no.top { color: #F59E0B; }
  .rank-user { display: flex; align-items: center; gap: 10px; }
  .rank-avatar {
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .rank-uinfo { min-width: 0; }
  .rank-uname { font-weight: 600; color: #1E293B; font-size: 13px; }
  .rank-uids { font-size: 10.5px; color: #94A3B8; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rank-uids b { color: #94A3B8; font-weight: 600; }
  .rank-avail { color: #FF7E67; font-weight: 700; }
  .rank-total { color: #2563EB; font-weight: 600; }

  /* ===== 兑换流水页 ===== */
  .ex-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
  @media (max-width: 700px) { .ex-mode-row { grid-template-columns: 1fr; } }
  .ex-mode {
    border: 1.5px solid #E5E7EB; border-radius: 10px; padding: 14px 16px; cursor: pointer;
    display: flex; gap: 11px; align-items: flex-start; transition: border-color .12s, background .12s;
  }
  .ex-mode:hover { border-color: #BFDBFE; }
  .ex-mode.active { border-color: #3B82F6; background: #EFF6FF; }
  .ex-mode .rad {
    width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #CBD5E1; flex-shrink: 0;
    margin-top: 2px; display: flex; align-items: center; justify-content: center;
  }
  .ex-mode.active .rad { border-color: #3B82F6; }
  .ex-mode.active .rad i { width: 8px; height: 8px; border-radius: 50%; background: #3B82F6; display: block; }
  .ex-mode .em-title { font-size: 13.5px; font-weight: 600; color: #1E293B; }
  .ex-mode .em-desc { font-size: 11.5px; color: #64748B; margin-top: 4px; line-height: 1.55; }
  .ex-mode .em-tag {
    display: inline-block; font-size: 10px; background: #3B82F6; color: #fff; border-radius: 4px;
    padding: 1px 6px; margin-right: 6px; vertical-align: 1px;
  }
  .ex-panel { background: #F8FAFC; border: 1px solid #E5E7EB; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
  .ex-rule-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0; }
  .ex-rule-row .rr-label { font-size: 12.5px; color: #475569; min-width: 150px; }
  .ex-rule-row input {
    border: 1px solid #D8DEE6; border-radius: 8px; padding: 8px 12px; font-size: 13px; width: 90px;
    box-sizing: border-box; outline: none;
  }
  .ex-rule-row input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
  .ex-tier-opt { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
  .ex-tier-opt .to {
    border: 1px solid #D1D5DB; background: #fff; border-radius: 8px; padding: 8px 14px;
    font-size: 12.5px; cursor: pointer; color: #374151;
  }
  .ex-tier-opt .to.active { border-color: #3B82F6; background: #EFF6FF; color: #2563EB; font-weight: 500; }
  .ex-toolbar { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; }
  .ex-toolbar .tb-title { font-size: 14px; font-weight: 600; color: #1E293B; margin-right: auto; }
  .ex-export {
    border: 1.5px dashed #3B82F6; color: #2563EB; background: #fff; border-radius: 8px;
    padding: 9px 18px; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 500;
  }
  .ex-export:hover { background: #EFF6FF; }
  .ex-export.green { border-color: #16A34A; color: #15803D; }
  .ex-export.green:hover { background: #F0FDF4; }
  .ex-item { background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .ex-item .ei-gift { display: flex; align-items: center; gap: 10px; min-width: 210px; }
  .ex-item .ei-gift .ei-no { font-weight: 700; color: #94A3B8; font-size: 13px; }
  .ex-item .ei-gift .ei-name { font-weight: 600; color: #1E293B; font-size: 13.5px; }
  .ex-item .ei-status {
    font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap;
  }
  .ex-item .ei-status.pending { background: #FEF3C7; color: #B45309; }
  .ex-item .ei-status.done { background: #DCFCE7; color: #15803D; }
  .ex-item .ei-pickup { font-size: 11px; border: 1px solid #BFDBFE; color: #2563EB; border-radius: 5px; padding: 1.5px 7px; white-space: nowrap; }
  .ex-item .ei-info { font-size: 12px; color: #94A3B8; flex: 1; min-width: 220px; line-height: 1.6; }
  .ex-item .ei-info b { color: #64748B; font-weight: 500; }
  .ex-item .ei-points { font-size: 16px; font-weight: 700; color: #EF4444; white-space: nowrap; }
  .ex-item .ei-ops { display: flex; gap: 8px; }
  .ex-item .ei-ops button {
    border-radius: 7px; padding: 7px 16px; font-size: 12px; cursor: pointer; font-weight: 500;
  }
  .ex-item .ei-ops .ok { background: #16A34A; color: #fff; border: none; }
  .ex-item .ei-ops .ok:hover { background: #15803D; }
  .ex-item .ei-ops .no { background: #fff; color: #6B7280; border: 1px solid #D1D5DB; }

  /* ===== 打卡流水页 ===== */
  .flow-filters { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
  .flow-fgroup { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
  .flow-fgroup:last-child { margin-bottom: 0; }
  .flow-fgroup .fg-label { font-size: 12.5px; color: #64748B; min-width: 46px; font-weight: 500; }
  .flow-fgroup .chip {
    border: 1px solid #E5E7EB; background: #fff; color: #475569; border-radius: 999px;
    padding: 5px 13px; font-size: 12px; cursor: pointer; transition: all .12s;
  }
  .flow-fgroup .chip:hover { border-color: #3B82F6; color: #2563EB; }
  .flow-fgroup .chip.active { background: #3B82F6; border-color: #3B82F6; color: #fff; font-weight: 500; }
  .flow-item { background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 10px 18px; margin-bottom: 8px; display: grid; grid-template-columns: 150px 190px minmax(180px, 1fr) 150px 90px; align-items: center; gap: 14px; height: 82px; }
  @media (max-width: 1100px) { .flow-item { grid-template-columns: 120px 160px minmax(120px, 1fr) 110px 70px; padding: 10px 12px; } }
  .flow-item .fi-user { min-width: 0; }
  .flow-item .fi-name { font-size: 13.5px; font-weight: 600; color: #1E293B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .flow-item .fi-time { font-size: 11px; color: #94A3B8; margin-top: 3px; font-family: ui-monospace, Menlo, monospace; }
  .flow-item .fi-task { font-size: 13px; color: #475569; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .flow-item .fi-mid { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
  .flow-item .fi-thumbs { display: flex; gap: 6px; }
  .flow-item .fi-thumbs img {
    width: 40px; height: 40px; object-fit: cover; border-radius: 7px; cursor: zoom-in;
    border: 1px solid #E5E7EB; display: block;
  }
  .flow-item .fi-thumbs img:hover { border-color: #3B82F6; }
  .flow-item .fi-status { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
  .flow-item .fi-status.pass { background: #DCFCE7; color: #15803D; }
  .flow-item .fi-status.wait { background: #FEF3C7; color: #B45309; }
  .flow-item .fi-status.reject { background: #FEE2E2; color: #B91C1C; }
  .flow-item .fi-score {
    border: 1px solid #FEE2E2; color: #B45309; background: #FFF7ED; border-radius: 6px;
    padding: 1.5px 8px; font-size: 11.5px; white-space: nowrap;
  }
  .flow-item .fi-warn { font-size: 11px; color: #F59E0B; background: #FEFCE8; border: 1px solid #FDE68A; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
  .flow-item .fi-audio {
    display: inline-flex; align-items: center; gap: 8px; background: #F8FAFC; border: 1px solid #E5E7EB;
    border-radius: 999px; padding: 4px 12px 4px 5px; min-width: 0; flex: 1;
  }
  @media (min-width: 1101px) { .flow-item .fi-audio { min-width: 210px; } }
  .flow-item .fi-audio .fa-play {
    width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
    background: #3B82F6; color: #fff; display: flex; align-items: center; justify-content: center;
  }
  .flow-item .fi-audio .fa-play:hover { background: #2563EB; }
  .flow-item .fi-audio .fa-play.playing { background: #FF7E67; }
  .flow-item .fi-audio .fa-track { flex: 1; height: 5px; background: #E2E8F0; border-radius: 999px; overflow: hidden; cursor: pointer; }
  .flow-item .fi-audio .fa-track i { display: block; height: 100%; width: 0; background: #3B82F6; border-radius: 999px; transition: width .2s linear; }
  .flow-item .fi-audio .fa-time { font-size: 11px; color: #64748B; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }
  .flow-item .fi-info { font-size: 12px; color: #64748B; flex: 1; min-width: 160px; }
  .flow-item .fi-info b { color: #1E293B; }
  .flow-item .fi-pts { font-size: 15px; font-weight: 700; color: #16A34A; white-space: nowrap; }
  .flow-item .fi-pts.cancel { color: #94A3B8; text-decoration: line-through; font-weight: 500; font-size: 13px; }
  .flow-item .fi-ops { display: flex; gap: 8px; }
  .flow-item .fi-ops button {
    border-radius: 7px; padding: 6px 14px; font-size: 12px; cursor: pointer; font-weight: 500;
  }
  .flow-item .fi-ops .pass-b { background: #3B82F6; color: #fff; border: none; }
  .flow-item .fi-ops .pass-b:hover { background: #2563EB; }
  .flow-item .fi-ops .reject-b { background: #fff; color: #EF4444; border: 1px solid #FECACA; }
  .flow-item .fi-ops .reject-b:hover { background: #FEF2F2; }
  .flow-item .fi-ops .dl-b { background: #fff; color: #2563EB; border: 1px solid #BFDBFE; display: inline-flex; align-items: center; gap: 5px; }
  .flow-empty { background: #fff; border: 1px dashed #E5E7EB; border-radius: 10px; padding: 40px; text-align: center; color: #94A3B8; font-size: 13px; }

  /* ===== 惊喜福利页 ===== */
  .welfare-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 900px) { .welfare-cards { grid-template-columns: 1fr; } }
  .welfare-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 20px; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
  }
  .welfare-card:hover { border-color: #3B82F6; box-shadow: 0 4px 14px rgba(59,130,246,0.1); }
  .welfare-card .wf-ico {
    width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; color: #fff;
  }
  .welfare-card .wf-name { font-size: 14.5px; font-weight: 600; color: #1E293B; }
  .welfare-card .wf-desc { font-size: 12px; color: #64748B; line-height: 1.65; margin-top: 6px; }
  .welfare-card .wf-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
  .welfare-card .wf-tags span {
    font-size: 10.5px; background: #EFF6FF; color: #2563EB; border-radius: 999px; padding: 2.5px 9px;
  }
  .wl-list { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; margin-top: 18px; overflow: hidden; }
  .wl-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #F1F2F4; }
  .wl-head .wl-title { font-size: 14px; font-weight: 600; color: #1E293B; }
  .wl-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid #F1F2F4; flex-wrap: wrap; }
  .wl-row:last-child { border-bottom: none; }
  .wl-row .wl-name { font-weight: 600; color: #1E293B; font-size: 13.5px; min-width: 150px; }
  .wl-row .wl-type { font-size: 11px; background: #F1F5F9; color: #475569; border-radius: 6px; padding: 2.5px 9px; white-space: nowrap; }
  .wl-row .wl-mode { font-size: 12px; color: #94A3B8; white-space: nowrap; }
  .wl-row .wl-mode b { color: #FF7E67; font-weight: 600; }
  .wl-row .wl-time { font-size: 11.5px; color: #94A3B8; margin-left: auto; font-family: ui-monospace, Menlo, monospace; }
  .wl-row .wl-ops { display: flex; gap: 8px; }
  .wl-row .wl-ops button {
    border-radius: 7px; padding: 6px 13px; font-size: 12px; cursor: pointer; font-weight: 500;
  }
  .wl-row .wl-ops .edit { background: #3B82F6; color: #fff; border: none; }
  .wl-row .wl-ops .del { background: #fff; color: #EF4444; border: 1px solid #FECACA; }
  /* 抽奖弹窗 */
  .lucky-base { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
  @media (max-width: 720px) { .lucky-base { grid-template-columns: 1fr; } }
  .prize-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
  .prize-row .pr-no { width: 24px; text-align: center; color: #94A3B8; font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
  .prize-row input[type="text"] { flex: 1; min-width: 0; }
  .prize-row input[type="number"] { width: 74px; }
  .prize-row .pr-del { border: none; background: none; color: #CBD5E1; font-size: 16px; cursor: pointer; padding: 0 4px; }
  .prize-row .pr-del:hover { color: #EF4444; }
  .lucky-quick { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
  .lucky-quick .lq-input { flex: 1; }
  .lucky-quick button { border-radius: 7px; padding: 8px 15px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
  .lucky-quick .lq-fill { background: #3B82F6; color: #fff; border: none; }
  .lucky-quick .lq-clear { background: #fff; color: #6B7280; border: 1px solid #D1D5DB; }
  .lucky-note { background: #F8FAFC; border: 1px solid #E5E7EB; border-radius: 8px; padding: 9px 13px; font-size: 11.5px; color: #64748B; line-height: 1.65; margin-top: 12px; }
  .lucky-note b { color: #334155; }
  .prob-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; flex-wrap: wrap; }
  .prob-bar.ok { background: #DCFCE7; border: 1px solid #86EFAC; }
  .prob-bar.bad { background: #FEF3C7; border: 1px solid #FCD34D; }
  .prob-bar .pb-val { font-size: 14px; font-weight: 700; color: #1E293B; }
  .prob-bar .pb-tip { font-size: 12px; color: #B45309; flex: 1; }
  .prob-bar .pb-fill { background: #fff; color: #2563EB; border: 1px solid #BFDBFE; border-radius: 7px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; }
  .rig-row { display: flex; gap: 8px; align-items: center; margin-bottom: 9px; }
  .rig-row input[type="text"] { flex: 1; min-width: 0; }
  .rig-row select { width: 130px; }
  .rig-row .rg-del { border: none; background: none; color: #CBD5E1; font-size: 16px; cursor: pointer; padding: 0 4px; }
  .rig-row .rg-del:hover { color: #EF4444; }
  .rig-tip { font-size: 11.5px; color: #94A3B8; margin-top: 8px; }

  .lucky-mode { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
  .lucky-mode .to {
    border: 1px solid #E5E7EB; background: #fff; color: #475569; border-radius: 8px;
    padding: 9px 20px; font-size: 13px; cursor: pointer; transition: all .12s;
  }
  .lucky-mode .to:hover { border-color: #3B82F6; color: #2563EB; }
  .lucky-mode .to.active { border-color: #3B82F6; background: #EFF6FF; color: #2563EB; font-weight: 600; }

  .flow-item .fi-thumbs { display: flex; gap: 6px; margin-top: 8px; }
  .flow-item .fi-thumbs img {
    width: 52px; height: 52px; object-fit: cover; border-radius: 8px; cursor: zoom-in;
    border: 1px solid #E5E7EB; display: block;
  }
  .flow-item .fi-thumbs img:hover { border-color: #3B82F6; }
  .fi-more { font-size: 11px; color: #94A3B8; display: flex; align-items: center; padding: 0 4px; }
  /* 图片预览 */
  #imgPreview {
    position: fixed; inset: 0; background: rgba(15,23,42,0.82); z-index: 2000;
    display: none; align-items: center; justify-content: center; cursor: zoom-out;
  }
  #imgPreview img { max-width: 86vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
  #imgPreview .ip-close {
    position: absolute; top: 22px; right: 26px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  #imgPreview .ip-close:hover { background: rgba(255,255,255,0.3); }
  #imgPreview .ip-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,0.45); padding: 4px 14px; border-radius: 999px; }
  #imgPreview .ip-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  #imgPreview .ip-nav:hover { background: rgba(255,255,255,0.3); }
  #imgPreview .ip-nav.prev { left: 22px; }
  #imgPreview .ip-nav.next { right: 22px; }

.flow-item .fi-reason { font-size: 11px; color: #DC2626; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 6px; padding: 1.5px 8px; white-space: nowrap; }

  /* ===== 驳回原因弹窗 ===== */
  #rejectModal .cs-tip { font-size: 12px; color: #B45309; background: #FEF3C7; border: 1px solid #FCD34D; border-radius: 8px; padding: 9px 13px; line-height: 1.6; }
  #rejectModal textarea { width: 100%; min-height: 84px; border: 1px solid #D8DEE6; border-radius: 8px; padding: 10px 12px; font-size: 13px; resize: vertical; outline: none; box-sizing: border-box; font-family: inherit; }
  #rejectModal textarea:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }

  /* ===== 门店切换下拉 ===== */
  .store-switch { position: relative; }
  .store-switch .store-badge { cursor: pointer; user-select: none; display: inline-flex; align-items: center; }
  .store-switch .store-badge:hover { background: #2563EB; }
  .store-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; width: 340px; background: #fff;
    border: 1px solid #E5E7EB; border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,0.14);
    padding: 10px; z-index: 900; display: none;
  }
  .store-dropdown.open { display: block; }
  .store-dropdown .sd-search {
    width: 100%; box-sizing: border-box; border: 1px solid #D8DEE6; border-radius: 8px;
    padding: 8px 12px; font-size: 13px; outline: none; margin-bottom: 8px;
  }
  .store-dropdown .sd-search:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
  .store-dropdown .sd-list { max-height: 260px; overflow-y: auto; }
  .store-dropdown .sd-item {
    display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; cursor: pointer;
  }
  .store-dropdown .sd-item:hover { background: #F1F5F9; }
  .store-dropdown .sd-item.active { background: #EFF6FF; }
  .store-dropdown .sd-item .sd-enable { font-size: 10px; color: #16A34A; background: #DCFCE7; border-radius: 999px; padding: 1.5px 7px; font-weight: 600; }
  .store-dropdown .sd-item .sd-name { font-size: 13px; font-weight: 600; color: #1E293B; }
  .store-dropdown .sd-item .sd-slug { font-size: 11px; color: #94A3B8; font-family: ui-monospace, Menlo, monospace; flex: 1; }
  .store-dropdown .sd-item .sd-ops { display: flex; gap: 3px; }
  .store-dropdown .sd-item .sd-ops button {
    border: none; background: transparent; font-size: 11.5px; cursor: pointer; padding: 3px 6px; border-radius: 5px; color: #64748B;
  }
  .store-dropdown .sd-item .sd-ops button:hover { background: #E2E8F0; }
  .store-dropdown .sd-item .sd-ops .sd-stop:hover { color: #D97706; }
  .store-dropdown .sd-item .sd-ops .sd-del:hover { color: #EF4444; }

  /* 选择用户弹窗 */
  .pu-search { display: flex; gap: 10px; margin-bottom: 10px; }
  .pu-toolbar { display: flex; align-items: center; gap: 14px; margin: 12px 0; font-size: 12.5px; }
  .pu-toolbar .sel-count { color: #2563EB; font-weight: 600; }
  .pu-toolbar a { color: #3B82F6; cursor: pointer; font-size: 12.5px; }
  .pu-toolbar a.clear { color: #EF4444; }
  .pu-list { border: 1px solid #E5E7EB; border-radius: 10px; max-height: 300px; overflow-y: auto; }
  .pu-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer;
    border-bottom: 1px solid #F1F2F4; transition: background .12s;
  }
  .pu-item:last-child { border-bottom: none; }
  .pu-item:hover { background: #F8FAFC; }
  .pu-item.checked { background: #EFF6FF; }
  .pu-item .ck {
    width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #CBD5E1; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
  }
  .pu-item.checked .ck { background: #3B82F6; border-color: #3B82F6; }
  .pu-item .ck svg { display: none; }
  .pu-item.checked .ck svg { display: block; }
  .pu-item .pu-name { font-weight: 500; color: #1E293B; font-size: 13px; min-width: 90px; }
  .pu-item .pu-uid { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #94A3B8; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pu-item .pu-points { color: #FF7E67; font-weight: 700; font-size: 13px; flex-shrink: 0; }
  .pu-foot-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
  .pu-foot-row .seg { display: flex; border: 1px solid #D8DEE6; border-radius: 8px; overflow: hidden; }
  .pu-foot-row .seg button {
    border: none; background: #fff; padding: 8px 16px; font-size: 12.5px; cursor: pointer; color: #475569;
  }
  .pu-foot-row .seg button.active { background: #3B82F6; color: #fff; font-weight: 500; }
  /* 批量上传弹窗 */
  .step-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
  .step-no {
    width: 22px; height: 22px; border-radius: 50%; background: #EFF6FF; color: #2563EB;
    font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
  }
  .step-text { font-size: 12.5px; color: #475569; line-height: 1.7; }
  .step-text b { color: #1E293B; }
  .tpl-row { display: flex; gap: 12px; margin: 6px 0 4px; }
  .tpl-btn {
    flex: 1; border: 1px solid #D1D5DB; border-radius: 8px; background: #fff; color: #374151;
    padding: 10px; font-size: 12.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  }
  .tpl-btn:hover { border-color: #3B82F6; color: #2563EB; }

  /* ===== 编辑弹窗 ===== */
  .modal-mask {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
    display: none; align-items: center; justify-content: center; z-index: 1000;
    padding: 20px;
  }
  .modal-mask.show { display: flex; }
  .modal-box {
    background: #fff; border-radius: 14px; width: 100%; max-width: 660px;
    max-height: calc(100vh - 40px); display: flex; flex-direction: column;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    animation: modalIn .22s ease;
  }
  @keyframes modalIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px 14px; border-bottom: 1px solid #F1F2F4;
  }
  .modal-title { font-size: 16px; font-weight: 700; color: #1E293B; display: flex; align-items: center; gap: 8px; }
  .modal-close {
    width: 30px; height: 30px; border-radius: 8px; border: none; background: #F1F5F9;
    color: #64748B; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .modal-close:hover { background: #E2E8F0; color: #1E293B; }
  .modal-tip {
    background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8;
    border-radius: 8px; padding: 9px 14px; font-size: 12.5px; margin: 14px 22px 0;
    display: flex; align-items: center; gap: 6px;
  }
  .modal-body { padding: 16px 22px 20px; overflow-y: auto; }
  .form-group {
    background: #F8FAFC; border: 1px solid #EEF1F5; border-radius: 10px;
    padding: 16px 16px 4px; margin-bottom: 14px;
  }
  .form-group-title {
    font-size: 12px; font-weight: 600; color: #64748B; letter-spacing: .5px;
    margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
  }
  .form-group-title::before {
    content: ""; width: 3px; height: 12px; background: #3B82F6; border-radius: 2px;
  }
  .form-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
  .form-row .f-label { width: 110px; flex-shrink: 0; font-size: 13px; color: #475569; }
  .form-row .f-label .req { color: #EF4444; margin-left: 2px; }
  .form-row .f-field { flex: 1; min-width: 0; }
  .form-row .f-extra { font-size: 12px; color: #94A3B8; }
  .form-input, .form-select, .form-textarea {
    width: 100%; border: 1px solid #D8DEE6; border-radius: 8px; padding: 8px 12px;
    font-size: 13.5px; color: #1E293B; background: #fff; outline: none; transition: border-color .15s;
    font-family: inherit;
  }
  .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
  .form-textarea { resize: none; min-height: 64px; }
  .form-input.sm, .form-select.sm { width: 90px; flex-shrink: 0; }

  /* 排期行 */
  .schedule-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  }
  .schedule-row .form-input { flex: 1; }
  .schedule-row .form-input.sm { flex: 0 0 64px; }
  .schedule-row .del-row {
    width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; border: 1px solid #E2E8F0;
    background: #fff; color: #94A3B8; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
  }
  .schedule-row .del-row:hover { color: #EF4444; border-color: #EF4444; }
  .add-schedule-btn {
    display: inline-flex; align-items: center; gap: 5px; border: 1px dashed #BFDBFE;
    color: #2563EB; background: #EFF6FF; border-radius: 8px; padding: 7px 14px;
    font-size: 13px; cursor: pointer; margin-top: 2px;
  }
  .add-schedule-btn:hover { background: #DBEAFE; }

  .modal-foot {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 14px 22px; border-top: 1px solid #F1F2F4; background: #FBFCFD;
    border-radius: 0 0 14px 14px;
  }
  .btn-cancel {
    border: 1px solid #D1D5DB; background: #fff; color: #4B5563;
    padding: 9px 22px; border-radius: 8px; font-size: 13.5px; cursor: pointer;
  }
  .btn-cancel:hover { border-color: #9CA3AF; }
  .btn-save {
    border: none; background: #3B82F6; color: #fff;
    padding: 9px 26px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  }
  .btn-save:hover { background: #2563EB; }

  /* ===== 用户管理页 ===== */
  .tabs-bar { display: flex; gap: 4px; border-bottom: 1px solid #E5E7EB; margin-bottom: 16px; }
  .tab-item {
    padding: 10px 18px; font-size: 13.5px; color: #64748B; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500;
  }
  .tab-item:hover { color: #1E293B; }
  .tab-item.active { color: #2563EB; border-bottom-color: #2563EB; font-weight: 600; }
  .search-bar {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
  }
  .search-input {
    border: 1px solid #D8DEE6; border-radius: 8px; padding: 8px 12px; font-size: 13px;
    width: 260px; color: #1E293B; outline: none; background: #fff;
  }
  .search-input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
  .btn-query, .btn-export {
    border: none; border-radius: 8px; padding: 8px 18px; font-size: 13px; cursor: pointer; font-weight: 500;
  }
  .btn-query { background: #3B82F6; color: #fff; }
  .btn-query:hover { background: #2563EB; }
  .btn-export { background: #fff; border: 1px solid #D1D5DB; color: #374151; }
  .btn-export:hover { border-color: #3B82F6; color: #2563EB; }
  .check-stop { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; cursor: pointer; }
  .check-stop input { accent-color: #3B82F6; width: 14px; height: 14px; }
  .user-count { margin-left: auto; font-size: 12.5px; color: #64748B; }
  .user-count b { color: #2563EB; }
  .tab-note {
    background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8;
    border-radius: 8px; padding: 9px 14px; font-size: 12.5px; margin-bottom: 14px;
    line-height: 1.6;
  }
  .user-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
  .user-table th {
    background: #F8FAFC; color: #6B7280; font-size: 12px; font-weight: 600;
    text-align: left; padding: 11px 12px; border-bottom: 1px solid #E5E7EB; white-space: nowrap;
  }
  .user-table td { padding: 12px; border-bottom: 1px solid #F1F2F4; font-size: 12.5px; color: #334155; vertical-align: middle; }
  .user-table tr:last-child td { border-bottom: none; }
  .user-table tr:hover td { background: #F8FAFC; }
  .user-name-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .user-name { font-weight: 600; color: #1E293B; font-size: 13px; white-space: nowrap; }
  .user-tags { display: inline-flex; gap: 4px; flex-shrink: 0; }
  .u-tag {
    font-size: 10.5px; padding: 1.5px 7px; border-radius: 999px; font-weight: 600; white-space: nowrap;
    line-height: 1.5;
  }
  .u-tag.vip { background: #FEF3C7; color: #92400E; }
  .u-tag.wx { background: #E0F2FE; color: #0369A1; }
  .user-history { font-size: 11px; color: #94A3B8; margin-top: 4px; white-space: nowrap; }

  /* 表头排序 */
  .user-table th.sortable { cursor: pointer; user-select: none; }
  .user-table th.sortable:hover { color: #2563EB; }
  .sort-ind {
    display: inline-flex; flex-direction: column; margin-left: 4px; vertical-align: -2px;
  }
  .sort-ind svg { width: 8px; height: 8px; }
  .sort-ind .on { color: #2563EB; }
  .sort-ind .off { color: #CBD5E1; }
  .sort-order {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 4px; background: #2563EB; color: #fff;
    font-size: 10px; font-weight: 700; margin-left: 3px; vertical-align: -2px;
  }
  .uid-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #475569; }
  .op-links { display: flex; gap: 10px; white-space: nowrap; }
  .op-links a { font-size: 12.5px; cursor: pointer; color: #3B82F6; text-decoration: none; }
  .op-links a:hover { color: #1D4ED8; }
  .op-links a.danger { color: #EF4444; }
  .op-links a.danger:hover { color: #B91C1C; }
  .op-links a.warn { color: #D97706; }
  .empty-tip { padding: 60px 0; text-align: center; color: #94A3B8; font-size: 13px; }

  /* ===== 卡券管理页 ===== */
  .coupon-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .btn-add-coupon {
    border: none; border-radius: 8px; background: #3B82F6; color: #fff;
    padding: 9px 18px; font-size: 13px; cursor: pointer; font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .btn-add-coupon:hover { background: #2563EB; }
  .coupon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 1200px) { .coupon-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 760px) { .coupon-grid { grid-template-columns: 1fr; } }
  .coupon-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 18px;
    display: flex; flex-direction: column; gap: 0;
  }
  .coupon-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .coupon-name { font-size: 14.5px; font-weight: 600; color: #1E293B; line-height: 1.4; }
  .coupon-type { font-size: 11px; padding: 2px 8px; border-radius: 5px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
  .c-type.exchange { background: #EFF6FF; color: #2563EB; }
  .c-type.lottery { background: #FFF7ED; color: #D97706; }
  .c-type.free { background: #F0FDF4; color: #16A34A; }
  .coupon-value { font-size: 22px; font-weight: 700; color: #EF4444; margin-top: 6px; line-height: 1.2; }
  .coupon-value small { font-size: 13px; font-weight: 600; color: #F97316; }
  .coupon-value .need-points { font-size: 13px; font-weight: 600; color: #2563EB; }
  .coupon-divider { border: none; border-top: 1px dashed #E2E8F0; margin: 14px 0; }
  .coupon-meta { font-size: 12px; color: #64748B; line-height: 1.7; }
  .coupon-meta b { color: #334155; font-weight: 600; }
  .coupon-actions {
    display: flex; gap: 14px; margin-top: 14px; padding-top: 12px;
    border-top: 1px solid #F1F2F4;
  }
  .coupon-actions a { font-size: 12.5px; cursor: pointer; color: #3B82F6; text-decoration: none; }
  .coupon-actions a:hover { color: #1D4ED8; }
  .coupon-actions a.warn { color: #D97706; }
  .coupon-actions a.warn:hover { color: #B45309; }
  .coupon-actions a.danger { color: #EF4444; }
  .coupon-actions a.danger:hover { color: #B91C1C; }
  .coupon-actions a.stop { color: #F59E0B; }
  .coupon-stock { display: flex; gap: 14px; font-size: 11.5px; color: #94A3B8; margin-top: 10px; }
  .coupon-stock span b { color: #475569; }

  /* 新增优惠券弹窗 */
  .purpose-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
  .purpose-card {
    border: 1.5px solid #E2E8F0; border-radius: 10px; padding: 13px 14px; cursor: pointer;
    transition: border-color .15s, box-shadow .15s; background: #fff;
  }
  .purpose-card:hover { border-color: #93C5FD; }
  .purpose-card.active { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
  .purpose-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #1E293B; }
  .purpose-radio {
    width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #CBD5E1;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .purpose-card.active .purpose-radio { border-color: #3B82F6; }
  .purpose-card.active .purpose-radio::after {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3B82F6;
  }
  .purpose-desc { font-size: 12px; color: #64748B; margin-top: 8px; line-height: 1.6; }
  .coupon-form-label { font-size: 13px; font-weight: 500; color: #334155; margin-bottom: 7px; }
  .coupon-form-label .opt { font-size: 11.5px; color: #94A3B8; font-weight: 400; margin-left: 4px; }
  .coupon-form-item { margin-bottom: 15px; }
  .coupon-note {
    background: #F8FAFC; border: 1px solid #E5E7EB; border-radius: 8px; padding: 9px 12px;
    font-size: 12px; color: #64748B; line-height: 1.65; margin: 4px 0 16px;
  }

/* ============================================================================
   ② 适配层 —— 我方 DOM 与设计稿的差异（仅此三处，其余全部照抄）
   设计稿：.topbar(fixed 52) + .sidebar(fixed top:52 w168) + .main(margin-left:168 / padding:72px 24px 40px)
   我方：  .console-head(超管顶栏) + .app-layout > (.sidebar + .main > .main-header + .main-content)
   2026-10-12 重做：上一版把 .sidebar 映射成 top:0 且漏了 .main{margin-left:168px} → 内容被压在侧栏下面
   ============================================================================ */
@media (min-width:769px){
  /* 侧栏是 position:fixed（脱离文档流），设计稿靠 .main{margin-left} 让位；
     我方多一层 flex 容器，会与 margin-left 叠加出横向溢出 → 容器改 block */
  .app-layout{ display:block; }

  /* 设计稿的面板是「裸内容」，没有白卡外壳；我方 .panel 在 admin.css 里是白卡
     （background:#fff + 描边 + padding:20 + margin-bottom:20）→ 退化为透明容器，
     让卡片直接落在浅灰页面上。否则每页都是"白卡套白卡"、看着像浮在页面外面。 */
  /* ⚠️ 设计稿 .modal-box 是「无内边距的 flex 列容器」，只适用于带
     .modal-head / .modal-body / .modal-foot 的新结构；
     我方另有 9 个"老结构"弹窗（.modal-box 里直接放表单）依赖 admin.css 的 padding:20px
     → 这里按老结构补回；新结构用 .modal-box.modal-v2 标记（照设计稿行为）。 */
  .modal-box{ padding:20px; display:block; max-width:560px; overflow-y:auto; max-height:calc(100vh - 48px); }
  .modal-box.modal-v2{
    padding:0; display:flex; flex-direction:column;
    max-width:660px; max-height:calc(100vh - 40px); overflow:hidden;
  }
  /* 关闭按钮：新结构里它在 .modal-head 里跟着 flex 排，不能再用 admin.css 的绝对定位 */
  .modal-head .modal-x{ position:static; top:auto; right:auto; }

  /* ⚠️ 设计稿里 `#imgPreview{display:none}` 是 **ID 选择器**，权重(1,0,0) 高过我方
     `.imgpreview.show{display:flex}`(0,0,2,0) → 点缩略图放大永远弹不出来。
     这里用同为 ID + 类的选择器(1,1,0)把它掰回来（我方 JS 走的是 classList.add('show')）。 */
  #imgPreview.show{ display:flex; }

  .panel{ background:transparent; border:none; box-shadow:none; padding:0; margin:0; border-radius:0; }

  /* 超管顶栏（与下面的全局规则重复一份，便于阅读；真正生效的见「全局」那条） */
  .console-head{ height:52px !important; }

  /* 超管模式：.console-head 已经是顶栏，.main-header 冗余 → 隐藏（它只有重复标题 + 退出） */
  .main-header{ display:none; }

  /* 内容区（与下面的全局规则重复一份，保留以便阅读；真正的兜底见「全局」那条） */
  .main-content{ flex:none; padding:0; margin:0; max-width:none; background:transparent; overflow:visible; }

  /* 店主模式：没有 .console-head → 侧栏贴顶，.main-header 顶上来当 52px 顶栏 */
  body.owner-mode .sidebar{ top:0; }
  body.owner-mode .main-header{
    display:flex; align-items:center; gap:10px;
    position:fixed; top:0; left:168px; right:0; height:52px;
    background:#fff; border-bottom:1px solid #E5E7EB; padding:0 20px; z-index:100;
  }
  body.owner-mode .header-title h1{ font-size:15px; font-weight:600; color:#1E293B; }
  body.owner-mode .header-title .s{ font-size:12px; color:#6B7280; margin-top:0; }
  body.owner-mode .header-logout{
    margin-left:auto; border:1px solid #D1D5DB; background:#fff; color:#374151;
    border-radius:6px; padding:5px 14px; font-size:13px; font-weight:500; cursor:pointer;
  }
  body.owner-mode .header-logout:hover{ border-color:#3B82F6; color:#2563EB; background:#fff; }
}

/* ============================================================================
   字体回退：昵称里常带 emoji 与少见文字（🐰 🌵 🐝 💕 / ᴗ ༵ ღ ᥫ ᩚ ᰔ …）。
   设计稿的 body 字体栈只到 sans-serif —— 没有 emoji / 符号字体，
   Windows 上这些字符会变成「豆腐块」或错误字形（李老师反馈：昵称上的特殊符号显示不正确）。
   字体栈是逐字符回退的：前面的字体没有该字形就往后找 → 这里按序补齐 emoji 与符号字体。
   ============================================================================ */
body{
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
              "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Roboto, "Noto Sans",
              "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
              "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2",
              sans-serif;
}

/* ============================================================================
   🔴 超管顶栏必须真正 fixed（2026-10-12 找到的「一直能滑」真因）
   `.console-head` 的 **HTML 内联样式里写死了 `position:relative`**，
   内联优先级高于样式表 → 我原来写的 `position:fixed` **从来没生效**，顶栏一直待在文档流里占 52px。
   后果：超管模式页面总高 = 52(顶栏) + 100vh(内容) = 永远比视口高 52px → **永远能滚一下**；
   而店主模式 `.console-head{display:none}`，所以"门店独立时没问题"。
   → 必须 `!important` 才能压过内联样式。（实测：修前 scrollHeight=952/视口 900；修后应=900）
   ============================================================================ */
.console-head{
  position:fixed !important; top:0 !important; left:0 !important; right:0 !important;
  height:52px !important; z-index:100;
}

/* ============================================================================
   ⚠️ 全局（不限宽度）：我方 admin.css 的 `.main-content` 原本是**内滚容器**
   （`flex:1; padding:20px; overflow-y:auto`）。只要它还在，就会出现
   「内容在自己的容器里上下滚，而侧栏/顶栏 fixed 不动」——也就是
   **body 不是唯一滚动容器**，导致弹窗锁 body 完全无效。
   说明 §一 要求「整个页面只有 body 一个滚动容器」→ 这里在**所有宽度**下都退化为透明容器。
   （v1 只写在 @media(min-width:769px) 里，窗口窄于 769px 时被旧规则反超 —— 2026-10-12 修）
   ============================================================================ */
.main-content{
  flex:none; padding:0; margin:0; max-width:none;
  background:transparent; overflow:visible;
}

/* ============================================================================
   ③ 映射层 —— 我方类名 → 设计稿组件（DOM 结构不同，视觉照搬）
   ============================================================================ */
/* 侧栏：我方 <nav class="sidebar-nav"><button>… ← 设计稿 .menu-item */
.sidebar{ padding-top:14px; }
.sidebar-nav{ flex:1; overflow-y:auto; padding:0; }
.sidebar-nav button{
  display:flex; align-items:center; gap:10px; width:100%; padding:10px 16px;
  color:#CBD5E1; font-size:13px; font-weight:400; background:transparent; border:none;
  border-left:3px solid transparent; border-radius:0; margin:0; cursor:pointer; text-align:left;
  transition:background .15s, color .15s;
}
.sidebar-nav button:hover{ background:#334155; color:#fff; }
.sidebar-nav button.on{ background:#2563EB; color:#fff; border-left-color:#93C5FD; border-right:none; }
.sidebar-nav button .nav-ic{ width:18px; height:18px; flex:0 0 auto; opacity:.9; }
.sidebar-footer{ border-top:1px solid rgba(255,255,255,.08); padding:12px 16px; }
.sidebar-footer .logout-btn{
  width:100%; border:none; border-radius:8px; padding:9px; font-size:13px; cursor:pointer;
  background:rgba(255,255,255,.08); color:#CBD5E1;
}
.sidebar-footer .logout-btn:hover{ background:rgba(255,255,255,.16); color:#fff; }

/* ── 用户管理：昵称与标签拆开渲染 ──
   设计稿本身就有 .user-name-cell / .user-name / .user-tags / .u-tag，但我们原来是把
   「昵称 + 会员 + 微信」塞进同一个 nowrap+ellipsis 的 div 里 → 标签又小(10px)又被挤压，
   长昵称时标签还会被省略号吃掉（李老师反馈：标签太小、太靠前、有时遮挡昵称）。
   现在：.user-name-cell 是 flex，.user-tags 固定不收缩(flex-shrink:0) → 标签永不挤压昵称；
   标签按反馈放大到 12px；颜色沿用我方原有语义色（会员=蓝紫 / 微信=微信绿 / 已停用=红）。 */
.user-name-cell{ display:flex; align-items:center; gap:6px; min-width:0; }
.user-name{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.user-tags{ display:inline-flex; gap:5px; flex-shrink:0; }
.u-tag{ font-size:12px; padding:2px 9px; border-radius:999px; font-weight:600; white-space:nowrap; line-height:1.5; }
.u-tag.vip{ background:#eef2ff; color:#4a6cf7; }
.u-tag.anon{ background:#f0f3f7; color:#6b7a89; }
.u-tag.wx{ background:#e8f7ee; color:#07c160; }
.u-tag.banned{ background:#fdecec; color:#e24b4a; }
.u-tag.del{ background:#f0f3f7; color:#888; }
.user-history{ font-size:11px; color:#94A3B8; margin-top:4px; white-space:nowrap; }
/* 内部备注（仅后台可见）：浅黄底小标签，与「历史 N 条」区分开 */
.user-note{
  display:inline-block; max-width:100%; margin-top:4px; padding:2px 7px; border-radius:6px;
  background:#FEF9C3; border:1px solid #FDE68A; color:#854D0E; font-size:11px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* ── 开关 .switch：我方 admin.css 的老写法用 `.slider::after` 画圆点，
   设计稿用 `.slider::before` → **两个圆点同时渲染**（李老师反馈"怎么有两个圆"）；
   而且老规则把轨道卡成 36×20（设计稿是 44×24 + `inset:0`）→ 看着"错乱"。
   这里作废旧写法，只保留设计稿那一套。 */
.switch .slider{ width:auto; height:auto; }
.switch .slider::after{ content:none; }
.switch input:checked + .slider::after{ transform:none; }

/* 惊喜福利 .wl-row 操作列：设计稿只给了 .edit/.del 配色，我方的「停用/重置气球/中奖记录」
   走同一套按钮基底（白底描边），补一个 .no 变体，避免它们变成浏览器默认按钮。 */
.wl-row .wl-ops .no{ background:#fff; color:#374151; border:1px solid #D1D5DB; }
.wl-row .wl-ops .no:hover{ border-color:#3B82F6; color:#2563EB; }

/* 用户表：UID 列是固定宽（table-layout:fixed）→ 长 uid 要省略号，否则撑破单元格 */
.user-table .uid-text{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.user-table td{ word-break:break-word; }

/* 用户表头像（设计稿表格没有这一列，但李老师要求必须显示微信头像）：
   微信用户用 wxAvatar 圆形头像；无头像时用昵称首字圆兜底。 */
.u-av{ width:28px; height:28px; border-radius:50%; flex:0 0 auto; object-fit:cover; background:#eef2f7; }
.u-av-txt{ display:inline-flex; align-items:center; justify-content:center; font-size:12px; color:#8a93a0; }

/* ── 打卡流水操作列对齐（李老师近期修改说明 §二）──
   已通过行只有「驳回」、待审核行有「通过+驳回」→ 按钮位置不齐。
   .fi-ops 右对齐 + 按钮定宽 56px：无论 1 个还是 2 个按钮，「驳回」永远在同一竖直位置。 */
.flow-item .fi-ops{ justify-content:flex-end; }
.flow-item .fi-ops button{ width:56px; flex-shrink:0; padding:6px 0; text-align:center; }

/* 任务表（系统设置·打卡项目管理）：设计稿只给了 th 内联宽度、没有 table-layout:fixed
   → 不加的话列宽会塌陷、中文被一字一折（滚动说明 §三 自查表）。 */
.task-table{ table-layout:fixed; }

/* 门店列表里的「当前门店」蓝色胶囊（近期修改说明 §一；设计稿 CSS 未包含，按配色锁定补）
   —— 由 admin-store.js refreshMerchantName() 在切换门店时打/撤标记 */
.store-name .store-cur{
  display:inline-block; font-size:10.5px; font-weight:600; white-space:nowrap;
  background:#EFF6FF; color:#2563EB; border:1px solid #BFDBFE;
  padding:1px 7px; border-radius:999px;
}

/* 等宽字体栈也要带 emoji/符号回退（说明 §三：各模块单独设了 font-family 的要「追加」而不是覆盖）
   —— 设计稿里 .fi-time/.uid-text/.store-slug/.pwd-val/.wl-time… 都是 ui-monospace,Menlo,monospace，没有回退。 */
.fi-time, .fi-audio .fa-time, .uid-text, .store-slug, .store-phone, .pwd-val,
.wl-row .wl-time, .store-dropdown .sd-item .sd-slug, .pu-item .pu-uid{
  font-family: ui-monospace, Menlo, "Segoe UI Mono", Consolas, monospace,
               "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* 弹窗滚动穿透（scroll chaining）：弹窗内容/遮罩滚到底后继续滚，会把滚动"传"给背景页面
   → 表现就是「弹窗还开着，背景却在上下滑」。overscroll-behavior:contain 把链断在这一层。 */
.modal-mask{ overscroll-behavior: contain; }
.modal-box, .modal-body{ overscroll-behavior: contain; }

/* 侧栏分组标题下移（《门店层标题栏与tab下移说明》§二·2）：上内边距 8px → 14px，
   让第一个 tab 从顶栏下方明显起头，不再贴着顶栏。只调 padding，不动 .sidebar / .menu-item 的 position。 */
.menu-group-title{ padding:14px 16px 8px; }

/* 我方主按钮 .addtask ← 设计稿 .btn-add-coupon */
.addtask{
  border:none; border-radius:8px; background:#3B82F6; color:#fff; padding:9px 18px;
  font-size:13px; cursor:pointer; font-weight:500;
  display:inline-flex; align-items:center; gap:6px;
}
.addtask:hover{ background:#2563EB; }

/* ---------------------------------------------------------------------------
   打卡流水（.flow-item）两处微调
   1) 下载按钮：设计稿 CSS 把它写在 .fi-ops 下，但它的 JS 实际渲染在 .fi-mid → 补 .fi-mid 版
   2) 行高：设计稿固定 82px；我方中间列可能放「缩略图 + 清理提醒 + 驳回原因」，
      固定高度会裁内容 → 改 min-height（常规行仍 82px 等高、不跳动，长内容不被裁）
   --------------------------------------------------------------------------- */
.flow-item .fi-mid .dl-b{
  border-radius:7px; padding:6px 14px; font-size:12px; font-weight:500; cursor:pointer;
  background:#fff; color:#2563EB; border:1px solid #BFDBFE;
  display:inline-flex; align-items:center; gap:5px; white-space:nowrap; text-decoration:none;
}
.flow-item .fi-mid .dl-b:hover{ background:#EFF6FF; }
.flow-item{ height:auto; min-height:82px; }
/* 第一列只有 150px：时间不折行、超出省略（设计稿 .fi-time 没写 nowrap，长文本会折行） */
.flow-item .fi-time{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* 附属信息（手机号·时长…）：按内容占据、不够时省略，别和语音播放器抢成一团 */
.flow-item .fi-mid .fi-info{ flex:0 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.flow-item .fi-mid{ align-content:center; }
/* ===== 打卡流水：用户头像（2026-10-12 按李老师要求新增）=====
   头像取自本店会员注册表（Users.wxAvatar，按 uid 关联，与「用户管理」同源）；
   没有头像的用昵称首字圆兜底。第一列 .fi-user 由「纯文字」改为「头像 + 昵称/时间」横排。 */
.flow-item .fi-user{ display:flex; align-items:center; gap:9px; min-width:0; }
.flow-item .fi-av{ width:28px; height:28px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.flow-item .fi-av-txt{ display:inline-flex; align-items:center; justify-content:center; background:#E2E8F0; color:#475569; font-size:12px; font-weight:600; }
.flow-item .fi-user-txt{ min-width:0; flex:1 1 auto; }
/* ===== 打卡项目管理表：操作列（2026-10-13 李老师"按钮挤在一起 / 往右边一点"）=====
   4 个按钮（上移 28 + 下移 28 + 编辑 + 删除）实际需要 ~216px，原列宽 172px 必然挤压；
   ① 列宽已在 admin.html thead 调到 246px；② 这里加大按钮间距并让按钮组靠右对齐
   （与「打卡流水」的 .fi-ops 右对齐风格一致）。用 .task-table 前缀提高权重，避免被
   设计稿媒体查询内的 .op-btns 规则压过。 */
.task-table .op-btns{ gap:8px; justify-content:flex-end; }
.task-table .op-btn.text{ padding:0 10px; }
.task-table td:last-child{ text-align:right; }   /* 「状态」列的开关也靠右 */

/* ===== 惊喜福利页 + 抽奖弹窗（2026-10-13 按《惊喜福利页面UI与表单控件说明》）=====
   ① 三张活动卡等高：卡片纵向弹性盒 + 描述固定最多 2 行 + 标签贴底（缺一就会参差）
   ② 抽奖弹窗控件统一：.cs-item select 与输入框同规格；奖品行/格子行控件不再裸奔
   ⚠️ 不写 `#luckyModal input` 全局规则 —— 气球数量/档位数那两个 58px 数字框会被误伤。 */
.welfare-card{ display:flex; flex-direction:column; }
.welfare-card .wf-desc{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:39.6px;
}
.welfare-card .wf-tags{ margin-top:auto; padding-top:10px; flex-wrap:wrap; }
.cs-item select{
  width:100%; border:1px solid #D8DEE6; border-radius:8px; padding:9px 12px; font-size:13.5px;
  color:#1E293B; box-sizing:border-box; outline:none; font-family:inherit; background:#fff;
}
.cs-item select:focus{ border-color:#3B82F6; box-shadow:0 0 0 3px rgba(59,130,246,0.12); }
#luckyModal .prize-row input, #luckyModal .prize-row select,
#luckyModal .rig-row input,  #luckyModal .rig-row select{
  border:1px solid #D8DEE6; border-radius:8px; padding:8px 10px; font-size:13px;
  color:#1E293B; background:#fff; box-sizing:border-box; outline:none; font-family:inherit;
}
#luckyModal .prize-row input:focus, #luckyModal .prize-row select:focus,
#luckyModal .rig-row input:focus,  #luckyModal .rig-row select:focus{
  border-color:#3B82F6; box-shadow:0 0 0 3px rgba(59,130,246,0.12);
}
/* 九宫格格子行宽度协调（类型 130 / 概率 90 / 库存 90 / 券联动 150） */
.rig-row{ display:flex; gap:8px; align-items:center; margin-bottom:10px; flex-wrap:wrap; }
.rig-row .rg-name{ flex:1 1 160px; min-width:160px !important; }   /* !important：盖过 G9_INPUT 内联的 min-width:0，否则名称框被压到 70px */
.rig-row select{ width:130px; }
.rig-row .rg-fields{ display:flex; gap:6px; align-items:center; }
.rig-row .rg-fields input[type="number"]{ width:110px; }
.rig-row .rg-fields select{ width:150px; }
.rig-row .rg-fields input[type="text"]{ width:200px; }
.rig-row .rg-prob{ width:90px; }
.rig-row .rg-stock{ width:90px; }
.rig-row .rg-label{ font-size:11px; color:#94A3B8; white-space:nowrap; }

/* ===== 操作日志页（2026-10-14）===== */
.log-table{ width:100%; border-collapse:collapse; background:#fff; border:1px solid #E5E7EB; border-radius:10px; overflow:hidden; }
.log-table th{ background:#F8FAFC; color:#6B7280; font-size:12px; font-weight:600; text-align:left; padding:10px 12px; border-bottom:1px solid #E5E7EB; }
.log-table td{ padding:10px 12px; border-bottom:1px solid #F1F2F4; font-size:13px; vertical-align:middle; }
.log-table tr:last-child td{ border-bottom:none; }
.log-tag{ display:inline-block; padding:2px 8px; border-radius:6px; background:#EFF6FF; border:1px solid #BFDBFE; color:#1D4ED8; font-size:12px; }

/* ===== 超管登录页（2026-10-14 照李老师设计稿重做）=====
   居中大卡片 + 大二维码 + 「其他登录方式」分隔 + 右上角书页揭角（点击切换扫码/手机号） */
.lg-mask{ position:fixed; inset:0; background:#F5F7FA; z-index:100; display:flex; align-items:center; justify-content:center; padding:16px; }
.lg-card{ position:relative; width:100%; max-width:400px; background:#fff; border-radius:16px; padding:64px 28px 22px;
  box-shadow:0 8px 32px rgba(15,23,42,.10); border:1px solid #EEF0F3; overflow:hidden; }
/* 右上角：切换登录方式的图标按钮（扫码时=电脑图标，手机号时=二维码图标） */
.lg-switch{ position:absolute; top:14px; right:14px; width:38px; height:38px; padding:0; cursor:pointer; z-index:2;
  border:1px solid #E6EBF2; background:#FAFBFD; color:#64748B; border-radius:10px;
  display:flex; align-items:center; justify-content:center; }
.lg-switch:hover{ border-color:#BFDBFE; background:#EFF6FF; color:#2563EB; }
.lg-switch svg{ width:20px; height:20px; }
/* 右上角提示气泡（指向切换按钮） */
.lg-sw-tip{ position:absolute; right:50px; top:50%; transform:translateY(-50%); white-space:nowrap; line-height:1.5;
  font-size:12.5px; color:#2563EB; background:#EFF6FF; border:1px solid #BFDBFE;
  border-radius:8px; padding:5px 10px; }
.lg-sw-tip::after{ content:''; position:absolute; right:-5px; top:50%; margin-top:-5px; width:9px; height:9px;
  background:#EFF6FF; border-right:1px solid #BFDBFE; border-top:1px solid #BFDBFE; transform:rotate(45deg); }
.lg-head{ text-align:center; margin-bottom:22px; }
.lg-title{ font-size:22px; font-weight:800; color:#0F172A; letter-spacing:.5px; margin:0; line-height:1.4; }
.lg-title em{ font-style:normal; color:#2563EB; }
.lg-sub{ font-size:12.5px; color:#94A3B8; margin-top:8px; }
.lg-field{ margin-bottom:14px; }
.lg-field:last-of-type{ margin-bottom:18px; }
.lg-label{ display:block; font-size:12.5px; font-weight:600; color:#475569; margin-bottom:6px; letter-spacing:.2px; }
.lg-field .tbl-input{ margin:0 !important; }
.lg-qrwrap{ display:flex; justify-content:center; }
.lg-qr{ width:198px; height:198px; border:1px solid #E9EDF2; border-radius:12px; padding:10px; box-sizing:border-box;
  display:flex; align-items:center; justify-content:center; background:#fff; }
.lg-qr img{ width:100%; height:100%; display:block; }
.lg-help{ text-align:center; font-size:12.5px; color:#94A3B8; margin-top:16px; }
.lg-help a{ color:#2563EB; text-decoration:none; }
.lg-other{ margin-top:26px; }
.lg-divider{ position:relative; text-align:center; margin-bottom:16px; }
.lg-divider::before{ content:''; position:absolute; left:0; right:0; top:50%; border-top:1px dashed #E2E8F0; }
.lg-divider span{ position:relative; background:#fff; padding:0 12px; font-size:12.5px; color:#94A3B8; }
.lg-icons{ display:flex; justify-content:center; gap:14px; }
.lg-ico{ width:46px; height:46px; border-radius:10px; border:1px solid #EEF0F3; background:#FAFBFD; color:#64748B;
  cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.lg-ico svg{ width:22px; height:22px; }
.lg-ico:hover{ border-color:#BFDBFE; background:#EFF6FF; color:#2563EB; }
.lg-label{ font-size:12.5px; color:#64748B; font-weight:600; display:block; }

/* ============================================================================
   移动端适配 v1（2026-10-15 李老师：手机上要顺手用）
   ① 侧栏 → 抽屉   ② 主内容占满   ③ 顶栏收纳 + 汉堡按钮
   ============================================================================ */
/* 汉堡按钮：仅小屏显示（JS 插入到顶栏） */
.nav-toggle{ display:none; width:38px; height:38px; flex:none; align-items:center; justify-content:center;
  border:1px solid var(--line); background:#fff; border-radius:9px; cursor:pointer; color:#334155; padding:0; }
.nav-toggle svg{ width:20px; height:20px; }
.sidebar-mask{ display:none; position:fixed; inset:0; background:rgba(15,23,42,.45); z-index:198; }

@media (max-width: 768px){
  /* ① 侧栏改成抽屉：默认滑出屏外，body.nav-open 时滑入 */
  .sidebar{ width:236px; top:0; bottom:0; z-index:199;
    transform:translateX(-100%); transition:transform .24s ease; box-shadow:2px 0 16px rgba(15,23,42,.18); }
  body.nav-open .sidebar{ transform:none; }
  body.nav-open .sidebar-mask{ display:block; }
  body.nav-open{ overflow:hidden; }

  /* ② 主内容占满整宽（根因：.main 有 margin-left:168px 把内容挤窄） */
  .main{ margin-left:0 !important; padding:64px 12px 32px !important; }
  .main-content{ margin-left:0 !important; padding-left:0 !important; }

  /* ④ 宽表格改为可横向滑动（原来被裁切/撑破视口） */
  .table-wrap, .card > div[style*="overflow-x"]{ overflow-x:auto !important; -webkit-overflow-scrolling:touch; }
  table{ max-width:100%; }
  .panel{ overflow-x:auto; }

  /* ③ 顶栏：汉堡按钮露面 + 允许换行收纳 */
  .nav-toggle{ display:inline-flex; }
  .console-head{ height:auto !important; min-height:52px; flex-wrap:wrap; padding:8px 12px !important; gap:8px !important; }
  .console-head .role-title, .console-head #roleTitle{ font-size:14px !important; }
  .console-head button{ font-size:12.5px !important; padding:7px 10px !important; }

  /* 侧栏里加个关闭按钮的位置（点遮罩也能关） */
  .sidebar-nav{ padding-bottom:24px; }
}

/* 小屏表格 → 卡片式（配合 admin-mobile.js 写入的 data-label） */
@media (max-width: 768px){
  .main-content table{ display:block; min-width:0 !important; border:none; background:transparent; }
  .main-content table thead{ display:none; }
  .main-content table tbody{ display:block; }
  .main-content table tr{ display:block; border:1px solid #E9EDF2; border-radius:12px;
    padding:10px 12px; margin-bottom:10px; background:#fff; }
  .main-content table td{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
    border:none !important; padding:5px 0 !important; font-size:13px !important; text-align:left !important; }
  .main-content table td::before{ content:attr(data-label);
    color:#94A3B8; font-size:12px; line-height:1.7; flex:none; }
  .main-content table td:empty{ display:none; }
  /* 操作列：按钮右对齐、可换行 */
  .main-content table td.op-cell{ display:block; padding-top:8px !important; }
  .main-content table td.op-cell::before{ display:none; }
  .main-content table .op-links{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
  .main-content table .user-history, .main-content table .user-note{ margin-top:2px; }

  /* 弹窗表单竖排大按钮 */
  .modal-box{ width:auto !important; max-width:calc(100vw - 24px) !important; margin:12px !important; }
  .modal-box input:not([type=checkbox]):not([type=radio]), .modal-box select, .modal-box textarea{ width:100% !important; box-sizing:border-box; height:44px; font-size:15px !important; }
  .modal-box textarea{ height:auto; min-height:110px; }
  .modal-box button{ min-height:42px; font-size:14px !important; }
  .modal-box .btn, .modal-box .btn.ghost{ padding:10px 16px !important; }
}

/* 小屏：分段标签横滑 + 搜索行换行（否则被挤成竖排单字） */
@media (max-width: 768px){
  .tabs-bar{ display:flex !important; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch;
    gap:6px; padding:0 2px 6px; }
  .tabs-bar::-webkit-scrollbar{ display:none; }
  .tabs-bar .tab-item{ flex:0 0 auto; white-space:nowrap; padding:8px 13px; font-size:13px; }

  .search-bar{ display:flex !important; flex-wrap:wrap; gap:8px; align-items:center; }
  .search-bar .search-input{ flex:1 1 100%; }
  .search-bar .btn-query, .search-bar .btn-export{ flex:1 1 auto; }
  .search-bar .check-stop{ flex:0 0 auto; }
  .search-bar .user-count{ flex:0 0 auto; margin-left:auto; }

  /* 其它可能出现的一行多按钮 */
  .page-head{ flex-wrap:wrap; gap:8px; }
  .page-head .page-title{ font-size:17px; }
  .page-actions, .head-actions{ flex-wrap:wrap; gap:8px; }
}

/* ============================================================================
   打卡流水：行高压缩 + 分页条（2026-10-16 李老师：卡片太高、一屏看不了几行、
   原来 slice(0,200) 没有分页）→ 行高 82 → 52，每页 50 条 + 分页条
   ============================================================================ */
.flow-item{ min-height:52px !important; padding:7px 14px !important; margin-bottom:6px !important; }
.flow-item .fi-av{ width:24px !important; height:24px !important; }
.flow-item .fi-av-txt{ font-size:11px !important; }
.flow-item .fi-name{ font-size:13px !important; }
.flow-item .fi-time{ font-size:10.5px !important; margin-top:1px !important; }
.flow-item .fi-thumbs img{ width:34px !important; height:34px !important; }
.flow-item .fi-thumbs{ margin-top:0 !important; gap:5px !important; }
.flow-item .fi-info{ font-size:11.5px !important; }
.flow-item .fi-ops button{ padding:4px 0 !important; height:28px; }
.flow-item .fi-audio{ min-width:170px !important; padding:2px 10px 2px 4px !important; }
.flow-item .fi-audio .fa-play{ width:22px !important; height:22px !important; }

/* 分页条 */
.flow-pager{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap:wrap; margin:14px 2px 6px; }
.flow-pager .pg-info{ font-size:12.5px; color:#64748B; }
.flow-pager .pg-info b{ color:#1E293B; font-weight:600; }
.flow-pager .pg-btns{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.flow-pager .pg{ min-width:32px; height:32px; padding:0 10px; border:1px solid #E5E7EB; background:#fff;
  color:#475569; border-radius:8px; font-size:12.5px; cursor:pointer; }
.flow-pager .pg:hover:not(:disabled){ border-color:#3B82F6; color:#2563EB; }
.flow-pager .pg.on{ background:#3B82F6; border-color:#3B82F6; color:#fff; font-weight:600; }
.flow-pager .pg:disabled{ opacity:.45; cursor:not-allowed; }
.flow-pager .pg-dot{ color:#94A3B8; font-size:12px; padding:0 2px; }

/* 小屏：分页条竖排更好点 */
@media (max-width: 768px){
  .flow-pager{ flex-direction:column; align-items:stretch; gap:8px; }
  .flow-pager .pg-btns{ justify-content:center; }
  .flow-pager .pg{ min-width:36px; height:36px; }
}

/* ============================================================================
   全站整体缩放
   用 zoom 而不是 transform:scale：
     · zoom 真正改变布局尺寸（侧栏 168px、表格百分比列宽、字号、间距、fixed 元素全部等比）
     · scale 只做视觉缩放，会留下空白、边缘发虚，且 fixed 定位会错位
   表格用的是 table-layout:fixed + 百分比 colgroup，缩放后各列按比例分配，不会挤压。
   注：calc(100vh - X) 这类弹窗上限会等比变小，属于预期（内容自适应）。
   ============================================================================ */
html { zoom: 0.8; }

/* ===== 后台登录页（2026-11-04 照「早读打卡」登录卡重做）=====
   结构：居中卡片 + 品牌 logo + 标题/副标题 + 两个字段 + 大按钮 + 底部说明。
   主色沿用 jfdh 蓝（#2563EB），与后台其余页面一致。 */
.jlg-mask{ position:fixed; inset:0; background:#F5F7FA; z-index:100;
  display:flex; align-items:center; justify-content:center; padding:24px; }
.jlg-card{ width:100%; max-width:400px; background:#fff; border:1px solid #EEF0F3;
  border-radius:18px; box-shadow:0 12px 40px rgba(16,32,40,.10); padding:36px 32px 32px; box-sizing:border-box;
  /* 全站 html{zoom:.8}（后台统一 80% 视觉），登录卡按 1:1 呈现，这里放大 1.25 抵消回去，
     否则 400px 的卡片实际只有 320px、字号也小一号。 */
  transform:scale(1.25); transform-origin:center center; }
/* 窄屏不补偿：放大后会顶出视口 */
@media (max-width:560px){ .jlg-card{ transform:none; } }
.jlg-logo{ width:48px; height:48px; border-radius:12px; margin:0 auto 16px;
  background:#2563EB; color:#fff; display:flex; align-items:center; justify-content:center; }
.jlg-logo svg{ width:26px; height:26px; }
.jlg-card h1{ font-size:18px; font-weight:700; text-align:center; margin:0 0 6px; color:#0F172A; line-height:1.4; }
.jlg-sub{ font-size:13px; color:#94A3B8; text-align:center; margin:0 0 24px; line-height:1.6; }
.jlg-row{ margin-bottom:14px; }
.jlg-row label{ display:block; font-size:13px; color:#64748B; margin-bottom:6px; font-weight:600; }
.jlg-inp{ width:100%; height:44px; padding:0 12px; border:1px solid #E4E9EC; border-radius:10px;
  font-size:16px; font-family:inherit; color:#0F172A; outline:none; background:#fff; box-sizing:border-box;
  transition:border-color .15s; }
.jlg-inp:focus{ border-color:#2563EB; }
.jlg-btn{ width:100%; height:46px; margin-top:8px; border:0; border-radius:10px;
  background:#2563EB; color:#fff; font-size:15px; font-weight:600; font-family:inherit;
  cursor:pointer; transition:background .15s; }
.jlg-btn:hover{ background:#1D4ED8; }
.jlg-btn:disabled{ opacity:.5; cursor:not-allowed; }
.jlg-tip{ font-size:12px; color:#94A3B8; text-align:center; margin:16px 0 0; line-height:1.7; }
