/* ==========================================================================
   新蓝绩效考核平台  ·  扁平化设计系统
   ========================================================================== */
:root {
  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --brand-50: #eff6ff;
  --grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
  --info: #0891b2;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --card: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12);
  --sidebar: 232px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
img { max-width: 100%; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: .18s; white-space: nowrap; line-height: 1.4;
}
.btn:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-ghost { background: #fff; color: var(--text-2); border-color: var(--line); }
.btn-ghost:hover { background: #f8fafc; color: var(--brand); border-color: var(--brand); }
.btn-success { background: var(--success); } .btn-success:hover { background: #15803d; }
.btn-warn { background: var(--warn); } .btn-warn:hover { background: #d97706; }
.btn-danger { background: var(--danger); } .btn-danger:hover { background: #b91c1c; }
.btn-light { background: var(--brand-50); color: var(--brand); }
.btn-light:hover { background: #dbeafe; color: var(--brand-600); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.card-body { padding: 20px; }
.card-body.p0 { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge-gray { background: #f1f5f9; color: var(--text-2); }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* ---------- 表单 ---------- */
.fm-item { margin-bottom: 18px; }

/* 改动 43：字段联动隐藏（出差范围等）。统一用 class，行为与 style.display:none 一致，
   但 JS 侧只要增删 class 就行，不必同时操作 hidden 属性。 */
.fm-item.fm-hide { display: none !important; }
.fm-label { display: block; font-weight: 500; margin-bottom: 7px; color: var(--text); font-size: 14px; }
.fm-label .req { color: var(--danger); }
.fm-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; background: #fff; color: var(--text); transition: .15s; font-family: inherit;
}
.fm-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea.fm-input { resize: vertical; min-height: 80px; }
.fm-tip { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.fm-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: .15s; background: #fff; }
.fm-opt:hover { border-color: var(--brand); background: var(--brand-50); }
.fm-opt input { margin: 0; accent-color: var(--brand); }
.fm-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); font-weight: 500; }
.fm-section { margin: 24px 0 16px; padding-left: 10px; border-left: 3px solid var(--brand); font-weight: 600; font-size: 15px; }
.fm-file { padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius-sm); width: 100%; background: #f8fafc; }
.fm-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fm-file-item { display: block; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); font-size: 11px; text-align: center; line-height: 1.2; padding: 4px; color: var(--text-2); }
.fm-file-item img { width: 100%; height: 100%; object-fit: cover; }
.fm-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.fm-switch input { opacity: 0; width: 0; height: 0; }
.fm-switch .slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; }
.fm-switch .slider:before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.fm-switch input:checked + .slider { background: var(--brand); }
.fm-switch input:checked + .slider:before { transform: translateX(20px); }
.fm-rating .star { font-size: 24px; color: #cbd5e1; cursor: pointer; }
.fm-rating .star.on { color: #f59e0b; }
.fm-locate { margin-top: 8px; padding: 6px 12px; font-size: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; color: var(--brand); }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { background: #f8fafc; color: var(--text-2); font-weight: 600; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.table tbody tr:hover { background: #f8fafc; }
.table-wrap { overflow-x: auto; }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: var(--grad); position: relative; overflow: hidden; }
.auth-wrap::before { content:""; position:absolute; width: 560px; height: 560px; border-radius: 50%; background: rgba(255,255,255,.08); top:-160px; right:-120px; }
.auth-wrap::after { content:""; position:absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); bottom:-120px; left:-80px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 36px 32px; position: relative; z-index: 2; }
.auth-logo { text-align: center; margin-bottom: 6px; font-size: 22px; font-weight: 700; color: var(--text); }
.auth-sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 26px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; background: #f1f5f9; padding: 4px; border-radius: 10px; }
.auth-tab { flex: 1; text-align: center; padding: 9px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.auth-tab.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--shadow); }
.wx-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 10px; background: #07c160; color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 14px; cursor: pointer; border: none; }
.wx-btn:hover { background: #06ad56; color: #fff; }
.auth-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 22px; }

/* ---------- 移动端前台 ---------- */
.m-wrap { max-width: 720px; margin: 0 auto; padding-bottom: 74px; }
.m-top { background: var(--grad); color: #fff; padding: 22px 18px 26px; border-radius: 0 0 22px 22px; }
.m-top .hello { font-size: 20px; font-weight: 700; }
.m-top .sub { opacity: .88; font-size: 13px; margin-top: 4px; }
.m-body { padding: 16px; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: -30px; }
.m-stat { background: #fff; border-radius: var(--radius); padding: 14px 10px; text-align: center; box-shadow: var(--shadow-md); }
.m-stat .n { font-size: 20px; font-weight: 700; color: var(--brand); }
.m-stat .l { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.m-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.m-entry { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: block; color: var(--text); }
.m-entry:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: .2s; }
.m-entry .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; }
.m-entry .t { font-weight: 600; font-size: 15px; }
.m-entry .d { font-size: 12px; color: var(--text-3); margin-top: 2px; }
/* 改动 39：用 left:50% + translateX 居中并显式给出宽度。
   之前写 left:0;right:0 只在部分浏览器里能配合 max-width 铺满，
   而 PC 端改成 left:50% 后缺少 width，fixed 元素会收缩成「内容宽度」，
   于是图标全挤在中间一小块，还压住了页脚版权。现统一成下面这种写法。 */
.m-tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 720px; height: 58px;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; z-index: 50;
}
.m-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-3); font-size: 11px; }
.m-tabbar a.active { color: var(--brand); }
.m-tabbar a .i { font-size: 19px; }
/* 带「审核」共 7 项时收紧字号，避免手机窄屏挤在一起 */
/* 7 项导航：仅在很窄的手机上收紧字号 */
@media (max-width: 360px) {
  .m-tabbar-7 a { font-size: 10px; }
  .m-tabbar-7 a .i { font-size: 17px; }
}
.m-list-item { background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); display: block; color: var(--text); }

/* ---------- 后台 ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); background: #0f172a; color: #cbd5e1; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 100; transition: .25s; }
.sidebar .brand { padding: 14px 16px; font-size: 13px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); line-height: 1.45; }
.sidebar .brand img { height: 26px; max-width: 84px; flex: 0 0 auto; object-fit: contain; }
.sidebar .brand .bn { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.sidebar .brand .dot { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 7px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.nav-group { padding: 14px 0 4px; }
.nav-group > .g { padding: 6px 20px; font-size: 11px; color: #64748b; letter-spacing: .5px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 20px; color: #cbd5e1; font-size: 14px; transition: .15s; border-left: 3px solid transparent; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: rgba(37,99,235,.18); color: #fff; border-left-color: var(--brand); }
.nav-item .i { width: 18px; text-align: center; font-size: 15px; }

.main { flex: 1; margin-left: var(--sidebar); display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; position: sticky; top: 0; z-index: 60; }
.topbar h2 { font-size: 17px; margin: 0; font-weight: 600; }
.topbar .right { display: flex; align-items: center; gap: 16px; color: var(--text-2); font-size: 13.5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.content { padding: 20px 22px; flex: 1; }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

.kpi { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.kpi .l { color: var(--text-3); font-size: 13px; }
.kpi .n { font-size: 26px; font-weight: 700; margin-top: 6px; color: var(--text); }
.kpi .n.brand { color: var(--brand); }
.kpi .n.green { color: var(--success); }
.kpi .n.orange { color: var(--warn); }
.kpi .n.red { color: var(--danger); }
.kpi .ico { float: right; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 19px; }

/* 分页 */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-2); background: #fff; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .cur { background: var(--brand); color: #fff; border-color: var(--brand); }

.empty { text-align: center; padding: 50px 20px; color: var(--text-3); }
.empty .ico { font-size: 40px; opacity: .5; margin-bottom: 10px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .fm-input { width: auto; min-width: 130px; padding: 8px 12px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-bar .fm-input { width: auto; min-width: 120px; }

/* 明细 */
.detail-row { display: flex; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.detail-row .k { width: 130px; color: var(--text-3); flex-shrink: 0; }
.detail-row .v { flex: 1; color: var(--text); word-break: break-all; }
.detail-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-imgs img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Toast */
#toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast-item { background: #0f172a; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; }
.toast-item.ok { background: var(--success); } .toast-item.err { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px);} to { opacity:1; transform: none;} }

/* Modal */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { cursor: pointer; color: var(--text-3); font-size: 20px; line-height: 1; }

/* 打印 */
@media print {
  .no-print, .sidebar, .topbar, .m-tabbar { display: none !important; }
  .main { margin-left: 0 !important; }
  .content { padding: 0 !important; }
  body { background: #fff; }
}

/* 响应式 */
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .menu-toggle { display: block; }
  .content { padding: 14px; }
  .topbar { padding: 0 14px; }
  .kpi .n { font-size: 22px; }
}

/* 定位状态提示行（app.js XLGK.locNote 动态插入） */
.fm-loc-note{margin-top:6px;font-size:12.5px;line-height:1.6}
.fm-loc-note.loc-ok{color:#059669}
.fm-loc-note.loc-warn{color:#b45309}

/* 凭证图片弹层预览（app.js XLGK.viewer） */
.xlgk-viewer{position:fixed;inset:0;z-index:9999;background:rgba(15,23,42,.92);display:flex;align-items:center;justify-content:center}
.xlgk-viewer .xv-body{max-width:94vw;max-height:88vh;display:flex;align-items:center;justify-content:center}
.xlgk-viewer .xv-img{max-width:94vw;max-height:88vh;object-fit:contain;border-radius:8px;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.xlgk-viewer .xv-close{position:absolute;top:14px;right:18px;width:40px;height:40px;line-height:38px;text-align:center;
  font-size:28px;color:#fff;cursor:pointer;border-radius:50%;background:rgba(255,255,255,.12);user-select:none}
.xlgk-viewer .xv-close:hover{background:rgba(255,255,255,.24)}
.xlgk-viewer .xv-count{position:absolute;bottom:22px;left:0;right:0;text-align:center;color:#fff;font-size:13px;opacity:.85}
.xlgk-viewer .xv-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:72px;line-height:68px;
  text-align:center;font-size:40px;color:#fff;cursor:pointer;background:rgba(255,255,255,.1);border-radius:8px;user-select:none}
.xlgk-viewer .xv-nav:hover{background:rgba(255,255,255,.22)}
.xlgk-viewer .xv-prev{left:12px}
.xlgk-viewer .xv-next{right:12px}
@media(max-width:640px){
  .xlgk-viewer .xv-nav{width:40px;height:60px;line-height:56px;font-size:32px}
  .xlgk-viewer .xv-prev{left:4px}
  .xlgk-viewer .xv-next{right:4px}
}

/* 附件选择结果提示（app.js XLGK.bindFileInput） */
.fm-tip .file-ok{color:#059669}
.fm-tip .file-bad{color:#dc2626}
.fm-file-item[data-local]{outline:2px dashed #94a3b8;outline-offset:2px}

/* 后台顶栏「头像 + 姓名」入口（点击进个人中心） */
.tb-user{display:inline-flex;align-items:center;gap:8px;padding:4px 8px;border-radius:8px;
  color:#334155;text-decoration:none;max-width:200px;transition:background .15s}
.tb-user:hover{background:#f1f5f9;color:#0f172a}
.tb-user>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:0 0 auto;display:block}
.tb-avatar-txt{background:#2563eb;color:#fff;font-size:13px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center}

.m-entry .d { font-size: 12px; color: var(--text-3); margin-top: 2px; }
/* 改动 26：自适应列数 —— 有审核权限是 4 个入口，没有是 3 个，
   都要铺满整行，避免出现「每日汇报右边空一块」的情况 */
/* 改动 39：minmax 从 140px 提到 150px，并把 4 入口在手机上改成 2×2。
   375px 屏减去左右各 16px 内边距只剩 343px，4 列时每格约 78px，
   扣掉 18px*2 的内边距后不足 44px，「我的工资条」必然被拆成竖排。 */
.m-grid-auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.m-grid-3 { grid-template-columns: repeat(3, 1fr); }
/* 手机：2×2，工整且每格足够放下 5 个汉字 */
.m-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 520px) {
  .m-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .m-grid-auto { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 340px) { .m-grid-3 { grid-template-columns: repeat(2, 1fr); } }
/* 卡片内边距收一点，长标题能多占两个字 */
.m-grid-4 .m-entry, .m-grid-3 .m-entry { padding: 14px 12px; }
.m-grid-4 .m-entry .t, .m-grid-3 .m-entry .t {
  font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 单个表单时铺满整行，不再右侧留白 */
/* 改动 39：原来这里是 flex + gap:12px，图标(42px)与文字抢同一行，
   .t 既没 flex 也没 nowrap，被 .d 的长描述一挤就逐字换行成竖排。
   改成 grid 两列：图标独占第 1 列，标题/描述/徽章都在第 2 列，标题永不竖排。 */
.m-grid-single { grid-template-columns: 1fr; }
.m-grid-single .m-entry {
  display: grid; grid-template-columns: 42px 1fr;
  align-items: center; column-gap: 12px; row-gap: 3px;
  padding: 16px;
}
.m-grid-single .m-entry .ico { margin-bottom: 0; grid-column: 1; grid-row: 1 / span 2; }
.m-grid-single .m-entry .t {
  grid-column: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-grid-single .m-entry .d { grid-column: 2; margin-top: 0; }
.m-grid-single .m-entry > div:last-child { grid-column: 2; margin-top: 3px !important; }
/* 有待办的入口加一圈提示边 */
.m-entry-attn { box-shadow: var(--shadow), 0 0 0 1px rgba(239, 68, 68, .18); }
/* ==========================================================================
   改动 34：前台在电脑浏览器（>=900px）里的展示优化
   手机上 .m-wrap 是全屏的，没问题；但桌面上 720px 宽的内容直接贴屏幕左右边缘，
   顶部蓝色横幅和底部 tabbar 也拉满全屏，看起来像「没做完的网页」。
   这里在 >=900px 时改用「手机卡片」呈现：底色加深 + 容器收窄 + 圆角阴影 + 边框。
   ========================================================================== */
@media (min-width: 900px) {
  body.m-pc {
    background:
      radial-gradient(1200px 600px at 50% -10%, #dbeafe 0%, transparent 60%),
      linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 22px 0;
  }
  /* 桌面版：内容区放宽到 720px（与 tabbar 同宽），居中成一张卡片。
     原先只有 480px，桌面上和手机长得一模一样、左右还各空 300px，观感很怪。 */
  body.m-pc .m-wrap {
    max-width: 720px;
    background: #f1f5f9;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .12);
    min-height: calc(100vh - 44px);
    padding-bottom: 58px;   /* 给底部固定导航让位，页脚版权不会被压住 */
    overflow: hidden;
  }
  /* 顶部横幅贴合卡片上沿 */
  body.m-pc .m-top { border-radius: 17px 17px 0 0; }
  /* 底部 tabbar 与内容区严格同宽（宽度来自基础规则的 720px max-width），
     底角跟着卡片圆角，看起来是一条完整的横栏而不是一小块 */
  body.m-pc .m-tabbar {
    max-width: 720px;
    border-radius: 0 0 17px 17px;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, .07);
  }
  /* 卡片内元件给点呼吸感 */
  body.m-pc .m-body { padding: 18px 18px 24px; }
  /* 桌面端空间够：入口卡恢复大字号，不再靠省略号截断 */
  body.m-pc .m-grid-4 .m-entry,
  body.m-pc .m-grid-3 .m-entry { padding: 18px 16px; }
  body.m-pc .m-grid-4 .m-entry .t,
  body.m-pc .m-grid-3 .m-entry .t { font-size: 15px; }
  /* 登录页在桌面端限制卡片宽度，避免 400px 之外一大片渐变显得空 */
  body.m-pc .auth-card { max-width: 400px; }
}

/* 幻灯片轮播（改动 35）——前台首页顶部横幅位 */
.m-slide {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #e2e8f0;
  display: none;
}
/* 改动 41（华为浏览器兼容）：
   原先这里用 aspect-ratio: 750/360 定高 + img height:100%，
   华为浏览器对 aspect-ratio 支持不完整，百分比高度解析不到确定值，
   导致 object-fit:cover 看似失效、整张图原样铺出来。
   改用 padding-top 百分比撑高（360/750 = 48%，所有内核都支持），
   高度只跟宽度挂钩、结果确定；图片再用绝对定位铺满，绕开百分比高度链。 */
.m-slide.has {
  display: block;
  margin-top: 14px;
  height: auto;
  padding-top: 48%;   /* 750 × 360 的比例 */
}
/* 轨道本身要占满 padding 撑出来的高度 */
.m-slide .ms-track { display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.m-slide .ms-item { display: none; position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.m-slide .ms-item.on { display: block; }
.m-slide .ms-item img {
  position: absolute; left: 0; top: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover;      /* 填充：裁剪铺满，不留白 */
  -webkit-o-object-fit: cover;   /* 旧内核前缀 */
}
/* 改动 38：后台可选的填充方式
   cover   填充：裁剪铺满，不留白（默认）
   contain 适应：整张显示，四周露容器底色
   fill    拉伸：强行撑满，会变形
   center  居中：原尺寸居中，不缩放不裁剪
   tile    平铺：像背景一样重复铺（走 background，img 隐藏） */
.m-slide.fit-contain .ms-item.on,
.m-slide.fit-center .ms-item.on { background: #fff; }
.m-slide.fit-contain .ms-item img { object-fit: contain; }
.m-slide.fit-fill .ms-item img { object-fit: fill; }
.m-slide.fit-center .ms-item img { object-fit: none; }
/* 平铺：img 隐藏，改用 background-image 重复铺满 */
.m-slide.fit-tile .ms-item { background-repeat: repeat; background-position: center; background-size: auto; }
.m-slide.fit-tile .ms-item img { display: none; }
/* 圆点与标题改为相对 .m-slide 定位（.ms-track 已绝对定位，这里同步保证层级） */
.m-slide .ms-dots, .m-slide .ms-cap { z-index: 2; }
.m-slide .ms-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 11px;
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.72) 62%, rgba(15,23,42,.86) 100%);
  color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.5;
}
.m-slide .ms-dots {
  position: absolute; right: 10px; bottom: 9px;
  display: flex; gap: 5px; align-items: center;
}
.m-slide .ms-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer;
  transition: .2s; display: block;
}
.m-slide .ms-dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.m-slide .ms-empty {
  padding: 16px; text-align: center; color: var(--text-3); font-size: 12.5px;
}

/* ==========================================================================
   改动 42：手机端「一键审核当天」区
   原来三个按钮挤在 flex-wrap 里，长度差异大、换行后高低不齐。
   改成：标题与说明一行行分开，主操作「全部通过」独占整行并带条数徽标，
   次要操作（全部驳回 / 只看待审核）用两列等宽 grid，看起来齐整不参差。
   ========================================================================== */
.qc {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 12px 12px; margin-bottom: 14px;
  border-left: 3px solid #10b981;
}
.qc-hd { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
/* 说明压成一行，窄屏省略号，不占额外高度 */
.qc-sub {
  font-size: 11.5px; color: #64748b; line-height: 1.6; margin-bottom: 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qc-sub b { color: #059669; }
.qc-sub-muted { color: #94a3b8; }
/* 改动 44：三个操作一排（全部通过 / 全部驳回 / 只看待审核），
   不再是「主操作独占一行 + 次要两列」的两段式，看着更紧凑。 */
.qc-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 6px; }
.qc-row .btn {
  height: 36px; border-radius: 9px; font-size: 12.5px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; white-space: nowrap; overflow: hidden;
  line-height: 1.2;
}
/* 主操作：同排但配色更重，仍然一眼可辨 */
.qc .qc-main { font-weight: 600; }
.qc-n {
  display: inline-block; margin-left: 4px; padding: 0 6px;
  border-radius: 8px; background: rgba(255, 255, 255, .3);
  font-size: 11.5px; font-weight: 700; line-height: 1.55;
}
/* 桌面端也不放大，宽度由容器 720px 自然给出 */
@media (min-width: 900px) {
  .qc { margin-bottom: 16px; }
  .qc-row { gap: 8px; }
  .qc-row .btn { font-size: 13px; }
}

/* 改动 44：前台审核页「批量通过 / 批量驳回 / 批量退回未审核」三按钮一排等宽。
   原来是 flex-wrap + 自然宽度，字数不同导致换行成两排、宽窄不一。 */
.bbar { display: flex; gap: 6px; margin-top: 9px; }
.bbar .btn {
  flex: 1 1 0; min-width: 0; height: 34px; padding: 0 4px;
  font-size: 12px; border-radius: 8px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 900px) {
  .bbar { gap: 8px; }
  .bbar .btn { font-size: 13px; }
}

/* 改动 26：统计数字做成可点击的链接 */
.m-stat { display: block; color: inherit; text-decoration: none; }
.m-stat-link { position: relative; transition: transform .18s, box-shadow .18s; }
.m-stat-link:active { transform: scale(.97); }
.m-stat-link .go { font-size: 10.5px; color: var(--text-3); margin-top: 4px; opacity: 0; transition: opacity .18s; }
.m-stat-link .go::before { content: "\2197\00a0"; }
@media (hover: hover) { .m-stat-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); } .m-stat-link:hover .go { opacity: 1; } }
@media (hover: none) { .m-stat-link .go { opacity: .7; } }
