/* 鹿城支行 · 线上考核管理系统（演示版）样式
   深海军蓝 + 琥珀金 · 现代商务风 · 全中文 */

:root {
  --navy-dark: #14263a;
  --navy: #1c3a5e;
  --navy-2: #24476f;
  --gold: #d9a441;
  --gold-lt: #f0e2c4;
  --ink: #222831;
  --gray: #6b7280;
  --line: #e3e8ef;
  --bg: #f5f6f8;
  --white: #ffffff;
  --red: #c0392b;
  --green: #1e8e5a;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(20,38,58,.08), 0 4px 14px rgba(20,38,58,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px; color: var(--ink); background: var(--bg);
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; line-height: 1;
  transition: all .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: #3a2c0e; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--gray); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--navy); border-color: var(--navy); }
.btn-danger { background: #fdf0ee; color: var(--red); border: 1px solid #f2c9c4; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 60%, #24476f 100%);
  position: relative; overflow: hidden;
}
.login-wrap::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.login-card {
  position: relative; width: 400px; background: #fff; border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); padding: 36px 36px 28px;
}
.login-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 12px; background: var(--gold);
  color: var(--navy-dark); font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-mark.small { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--navy-dark); }
.brand-sub { font-size: 11.5px; color: var(--gray); margin-top: 3px; }
.login-card h2 { font-size: 18px; color: var(--navy-dark); margin-bottom: 6px; }
.login-tip { font-size: 12px; color: var(--gray); margin: 8px 0 14px; line-height: 1.6; }
.login-card input {
  width: 100%; padding: 11px 13px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); outline: none;
}
.login-card input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,58,94,.12); }
.login-error {
  background: #fdf0ee; color: var(--red); font-size: 12.5px;
  padding: 8px 12px; border-radius: 6px; margin-bottom: 12px;
}
.login-sec { position: relative; color: rgba(255,255,255,.55); font-size: 12px; margin-top: 18px; text-align: center; }

/* ---------- 主界面骨架 ---------- */
#appView { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 228px; flex: none; background: var(--navy-dark); color: #fff;
  display: flex; flex-direction: column;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-brand-name { font-size: 13.5px; font-weight: 700; color: #e8edf3; }
.nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; margin-bottom: 4px; border: none; border-radius: 8px;
  background: transparent; color: #c3cedb; font-size: 14px; text-align: left;
  transition: all .15s;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: var(--gold); color: var(--navy-dark); font-weight: 700; }
.nav-ico { width: 18px; text-align: center; font-size: 15px; }
.side-user { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user-name { font-size: 14px; font-weight: 700; color: #fff; }
.side-user-role { font-size: 12px; color: #9fb0c4; margin: 3px 0 10px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 56px; flex: none; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
}
.topbar-title { font-size: 17px; font-weight: 700; color: var(--navy-dark); }
.topbar-right { display: flex; gap: 18px; align-items: center; font-size: 12.5px; color: var(--gray); }
.content { flex: 1; overflow-y: auto; padding: 24px 26px 40px; }

/* ---------- 通用组件 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--navy-dark); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.card-title .lt { display: flex; align-items: center; gap: 8px; }
.card-title .lt::before { content: ""; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.page-head h1 { font-size: 20px; color: var(--navy-dark); }
.page-head .sub { color: var(--gray); font-size: 13px; margin-top: 4px; }
.page-head .actions { display: flex; gap: 10px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; background: var(--navy); color: #fff; font-weight: 600;
  padding: 10px 12px; white-space: nowrap;
}
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:nth-child(even) td { background: #f8fafc; }
tr:hover td { background: #eef3f8; }
.tbl-wrap { overflow-x: auto; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-red { background: #fdecea; color: var(--red); }
.badge-black { background: #eef0f3; color: #4b5563; }
.badge-gold { background: #faf3e0; color: #8a6d1f; }
.badge-green { background: #e6f4ec; color: var(--green); }
.badge-blue { background: #e8eef6; color: var(--navy); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }

.kpi { display: flex; align-items: center; gap: 14px; }
.kpi .ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.kpi .num { font-size: 24px; font-weight: 800; color: var(--navy-dark); line-height: 1.1; }
.kpi .lab { font-size: 12.5px; color: var(--gray); margin-top: 3px; }
.kpi .num .unit { font-size: 13px; color: var(--gray); font-weight: 500; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 6px; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; outline: none; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,58,94,.1);
}
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* 红黑榜 */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.rank-no { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; }
.rank-no.r1 { background: var(--gold); color: #3a2c0e; }
.rank-no.r2 { background: #dfe4ea; color: #4b5563; }
.rank-no.r3 { background: #d9b48a; color: #6b4423; }
.rank-no.rn { background: #eef0f3; color: #8a8f98; }
.rank-no.red { background: #fdecea; color: var(--red); }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-weight: 700; color: var(--navy-dark); }
.rank-org { font-size: 12px; color: var(--gray); }
.rank-score { font-size: 18px; font-weight: 800; color: var(--navy); }
.rank-bar-wrap { width: 120px; height: 8px; background: #eef0f3; border-radius: 4px; overflow: hidden; }
.rank-bar { height: 100%; background: var(--gold); border-radius: 4px; }

/* 组织架构树 */
.org-tree { display: flex; flex-direction: column; gap: 8px; }
.org-node { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.org-node-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer;
  font-weight: 700; color: var(--navy-dark);
}
.org-node-head .arrow { transition: transform .15s; font-size: 12px; color: var(--gray); }
.org-node-head.open .arrow { transform: rotate(90deg); }
.org-node-head .org-type { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #eef0f3; color: var(--gray); font-weight: 600; }
.org-node-body { display: none; border-top: 1px solid var(--line); padding: 10px 14px; background: #fafbfc; }
.org-node-head.open + .org-node-body { display: block; }
.org-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.org-person {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.org-person .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.org-person .pn { font-weight: 700; font-size: 13px; }
.org-person .pr { font-size: 11.5px; color: var(--gray); }

/* 看板柱状图 */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 220px; padding: 10px 6px 0; border-bottom: 2px solid var(--line); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar-val { font-size: 12px; font-weight: 700; color: var(--navy); }
.bar-body { width: 60%; max-width: 46px; background: linear-gradient(180deg, var(--navy-2), var(--navy)); border-radius: 4px 4px 0 0; min-height: 4px; transition: height .4s; }
.bar-col.gold .bar-body { background: linear-gradient(180deg, #e8bc6a, var(--gold)); }
.bar-lab { font-size: 12px; color: var(--gray); white-space: nowrap; }

/* 任务卡片 */
.task-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fff; }
.task-title { font-weight: 700; color: var(--navy-dark); font-size: 14.5px; }
.task-meta { font-size: 12px; color: var(--gray); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.task-actions { margin-top: 10px; display: flex; gap: 8px; }
.task-overdue { border-left: 4px solid var(--red); }

/* 文件上传 */
.upload-zone {
  border: 2px dashed #c3cedb; border-radius: 10px; padding: 34px; text-align: center;
  color: var(--gray); cursor: pointer; transition: all .15s; background: #fafbfc;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--gold); background: #fdf9ee; }
.upload-zone .big { font-size: 26px; margin-bottom: 8px; }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(10,20,32,.5); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 12px; width: 520px; max-width: 100%;
  max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; color: var(--navy-dark); }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* Toast */
#toastRoot { position: fixed; top: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--navy-dark); color: #fff; padding: 11px 18px; border-radius: 8px;
  font-size: 13.5px; box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: slideIn .25s ease;
  max-width: 380px;
}
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.empty { text-align: center; color: var(--gray); padding: 40px 0; font-size: 13.5px; }
.mono { font-family: Menlo, Consolas, monospace; font-size: 12.5px; }
.log-line { font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed #eef0f3; color: #444; }
.log-line .t { color: var(--gray); margin-right: 8px; }
.log-line .a { color: var(--navy); font-weight: 600; }
.tip-box {
  background: #f6f9fd; border: 1px solid #d7e3f0; border-left: 4px solid var(--navy);
  padding: 12px 14px; border-radius: 6px; font-size: 13px; color: #44506a; line-height: 1.7;
}
.warn-box {
  background: #fdf9ee; border: 1px solid #ecd9b4; border-left: 4px solid var(--gold);
  padding: 12px 14px; border-radius: 6px; font-size: 13px; color: #6b5320; line-height: 1.7;
}
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb16 { margin-bottom: 16px; }

/* ---------- 版本标记 ---------- */
.edition-banner {
  background: #fdf3e0; color: #8a6d1f; border: 1px solid #ecd9b4;
  font-size: 12.5px; font-weight: 600; padding: 9px 12px; border-radius: 6px; margin-bottom: 16px;
}
.edition-badge {
  margin: 0 10px 8px; padding: 6px 10px; border-radius: 6px;
  background: rgba(217,164,65,.16); color: var(--gold-lt);
  font-size: 11.5px; font-weight: 700; text-align: center;
}
.edition-top { background: #fdf3e0; color: #8a6d1f; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }

/* ---------- 使用教程 ---------- */
#modalRoot .modal { width: 620px; }
.tut-step { text-align: center; padding: 18px 8px 6px; }
.tut-icon { font-size: 52px; margin-bottom: 12px; }
.tut-title { font-size: 19px; font-weight: 800; color: var(--navy-dark); margin-bottom: 12px; }
.tut-body { font-size: 14px; color: #44506a; line-height: 1.95; text-align: left; max-width: 520px; margin: 0 auto; }
.tut-body b { color: var(--navy); }
.tut-nav { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tut-dots { display: flex; gap: 6px; }
.tut-dot { width: 8px; height: 8px; border-radius: 50%; background: #d5dce5; transition: all .2s; }
.tut-dot.on { background: var(--gold); transform: scale(1.35); }
.tut-dot.done { background: var(--navy); }
.tut-foot { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 16px; }
.tut-foot .tut-nav { flex: 1; margin-top: 0; }

/* ============================================================
 * 移动端适配（参考「课代表们」App：底部 Tab + 抽屉导航 + 触控优化）
 * ============================================================ */
html { -webkit-text-size-adjust: 100%; }
.topbar-left { display: flex; align-items: center; min-width: 0; }
.topbar-menu { display: none; }
.drawer-mask { display: none; }
.mobile-tabbar { display: none; }

@media (max-width: 767px) {
  /* 基础触控 */
  html, body { overflow-x: hidden; }
  input, select, textarea { font-size: 16px; } /* 防 iOS 聚焦自动放大 */
  button { touch-action: manipulation; }
  .btn { min-height: 44px; border-radius: 10px; }
  .btn-sm { min-height: 36px; font-size: 13px; }
  .btn-block { min-height: 48px; }

  /* 登录页 */
  .login-wrap { min-height: 100vh; min-height: 100dvh; padding: 28px 16px 44px; }
  .login-card { width: 100%; max-width: 420px; padding: 28px 22px 24px; border-radius: 16px; }
  .brand-mark { width: 42px; height: 42px; font-size: 22px; border-radius: 11px; }
  .brand-name { font-size: 15.5px; }

  /* 主界面骨架：侧栏 → 抽屉 */
  #appView { display: block; height: 100vh; height: 100dvh; }
  .main { height: 100%; display: flex; flex-direction: column; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 268px; z-index: 120;
    transform: translateX(-106%); transition: transform .28s ease;
    box-shadow: 10px 0 32px rgba(0,0,0,.28);
  }
  body.drawer-open .sidebar { transform: none; }
  .drawer-mask {
    display: none; position: fixed; inset: 0; z-index: 110;
    background: rgba(8,20,45,.55); backdrop-filter: blur(2px);
  }
  body.drawer-open .drawer-mask { display: block; }
  .side-user { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .nav-item { min-height: 46px; }

  /* 顶栏 */
  .topbar {
    height: auto; min-height: 52px; padding: calc(env(safe-area-inset-top) + 4px) 10px 6px;
  }
  .topbar-menu {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none; margin-right: 2px;
    border: none; border-radius: 10px; background: transparent;
    font-size: 19px; color: var(--navy-dark);
  }
  .topbar-menu:active { background: #eef3f8; }
  .topbar-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-right .topbar-org, .topbar-right .topbar-time { display: none; }
  .content { padding: 14px 14px calc(88px + env(safe-area-inset-bottom)); }

  /* 网格 → 单列 */
  .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 12px; }
  .form-2col { grid-template-columns: 1fr; }
  .card { padding: 14px 14px; border-radius: 12px; margin-bottom: 12px; }
  .card-title { font-size: 14px; margin-bottom: 10px; }

  /* 页头 */
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  .page-head h1 { font-size: 18px; }
  .page-head .actions { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
  .page-head .actions .btn, .page-head .actions select { width: 100%; min-height: 42px; padding-left: 8px; padding-right: 8px; }

  /* 表格：整宽横向滚动 + 首列吸定（带分隔阴影提示） */
  .tbl-wrap { -webkit-overflow-scrolling: touch; margin: 0 -12px; }
  .tbl-wrap table { min-width: 640px; }
  table { font-size: 12.5px; }
  th, td { padding: 9px 10px; white-space: nowrap; }
  th:first-child, td:first-child { position: sticky; left: 0; z-index: 1; }
  th:first-child { background: var(--navy); color: #fff; box-shadow: 2px 0 0 rgba(255,255,255,.14); }
  td:first-child { background: #fff; box-shadow: 2px 0 0 rgba(20,38,58,.08), 4px 0 8px rgba(20,38,58,.14); }
  tr:nth-child(even) td:first-child { background: #f8fafc; }
  tr:hover td:first-child { background: #eef3f8; }

  /* KPI 卡片 */
  .kpi .num { font-size: 20px; }
  .kpi .ico { width: 40px; height: 40px; font-size: 19px; border-radius: 10px; }

  /* 柱状图：横向滚动 */
  .bars { height: 168px; overflow-x: auto; gap: 8px; -webkit-overflow-scrolling: touch; }
  .bar-col { min-width: 40px; }

  /* 红黑榜 */
  .rank-bar-wrap { width: 76px; }

  /* 模态框 → 底部弹层 */
  .modal-mask { align-items: flex-end; padding: 0; z-index: 130; }
  .modal {
    width: 100%; max-width: none; border-radius: 18px 18px 0 0;
    max-height: 92vh; animation: sheetUp .26s ease;
    padding-bottom: env(safe-area-inset-bottom);
  }
  @keyframes sheetUp { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
  .modal-head { padding: 15px 16px; }
  .modal-head h3 { font-size: 15px; }
  .modal-body { padding: 16px 16px; }
  .modal-foot { padding: 12px 16px; }
  #modalRoot .modal { width: 100%; }

  /* Toast → 底部居中（层级高于弹层，弹窗内操作提示可见） */
  #toastRoot { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); left: 16px; right: 16px; align-items: stretch; z-index: 140; }
  .toast { max-width: none; text-align: center; border-radius: 12px; padding: 13px 16px; }

  /* 底部 Tab 栏（参考课代表们：图标 + 文字，选中高亮） */
  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(20,38,58,.07);
  }
  body.page-login .mobile-tabbar { display: none !important; }
  .mtab-item {
    flex: 1; border: none; background: transparent; color: #9aa3ad;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 10.5px; font-weight: 600; min-height: 0;
  }
  .mtab-item .mtab-ico {
    font-size: 19px; line-height: 1; padding: 3px 12px; border-radius: 10px;
    opacity: .6; transition: all .15s;
  }
  .mtab-item.active { color: var(--navy); font-weight: 700; }
  .mtab-item.active .mtab-ico { opacity: 1; background: rgba(28,58,94,.14); }
  .mtab-item:active { opacity: .65; }

  /* 教程 */
  .tut-body { font-size: 13.5px; }
  .tut-foot { flex-wrap: wrap; }

  /* 组织架构 */
  .org-members { grid-template-columns: 1fr; }

  /* 其他 */
  .upload-zone { padding: 24px 14px; }
  .tip-box, .warn-box { font-size: 12.5px; }
  .flex { flex-wrap: wrap; }
  .log-line { font-size: 12px; }
}

/* ============================================================
 * 工作台角色看板（Bento 布局 · 高效一屏）
 * ============================================================ */
.dash { display: flex; flex-direction: column; gap: 18px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--navy-2); background: #eef3f9; border: 1px solid #dbe6f2;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.dash-title { font-size: 24px; font-weight: 800; color: var(--navy-dark); line-height: 1.25; }
.dash-role {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-size: 12px; font-weight: 700; color: #8a6d1f;
  background: var(--gold-lt); border-radius: 999px; padding: 4px 12px;
}
.dash-sub { font-size: 13px; color: var(--gray); margin-top: 8px; }

/* KPI 统计卡 */
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(20,38,58,.04), 0 10px 30px rgba(20,38,58,.05);
  transition: transform .45s cubic-bezier(.32,.72,0,1), box-shadow .45s cubic-bezier(.32,.72,0,1);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,38,58,.05), 0 16px 40px rgba(20,38,58,.09); }
.stat-ico {
  width: 50px; height: 50px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.65);
}
.stat-eyebrow { font-size: 11.5px; font-weight: 700; color: var(--gray); letter-spacing: .02em; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--navy-dark); line-height: 1.2; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stat-num .unit { font-size: 13px; color: var(--gray); font-weight: 500; }
.stat-foot { font-size: 12px; color: var(--gray); }

/* 快捷操作条 */
.dash-quick {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(20,38,58,.04), 0 10px 30px rgba(20,38,58,.05);
}
.dash-quick-tag { font-size: 11px; font-weight: 700; color: var(--gray); letter-spacing: .12em; padding: 0 4px; flex: none; }
.qa-list { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.qa-item {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #f8fafc; color: var(--navy-dark);
  border-radius: 999px; padding: 8px 8px 8px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .3s cubic-bezier(.32,.72,0,1);
}
.qa-item:hover { border-color: var(--navy); background: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20,38,58,.08); }
.qa-item:active { transform: scale(.97); }
.qa-arrow {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: #e8eef6; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.qa-item:hover .qa-arrow { transform: translate(2px, -1px); }

/* Bento 主区 */
.dash-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.b-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; min-width: 0;
  box-shadow: 0 1px 2px rgba(20,38,58,.04), 0 10px 30px rgba(20,38,58,.05);
  display: flex; flex-direction: column;
}
.b-span-2 { grid-column: span 2; }
.b-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.b-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: var(--navy-dark); min-width: 0; }
.b-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.b-dot.red { background: var(--red); }
.b-dot.gold { background: var(--gold); }
.b-dot.navy { background: var(--navy); }
.b-link {
  border: none; background: transparent; color: var(--navy); font-size: 12.5px; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; cursor: pointer; flex: none;
  transition: background .2s;
}
.b-link:hover { background: #eef3f8; }

/* 预警行 */
.al-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef0f3; }
.al-row:last-child { border-bottom: none; }
.al-main { flex: 1; min-width: 0; }
.al-title { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-sub { font-size: 11.5px; color: var(--gray); margin-top: 2px; }
.al-done {
  border: 1px solid var(--line); background: #fff; color: var(--gray); font-size: 12px;
  border-radius: 999px; padding: 4px 12px; flex: none; cursor: pointer; transition: all .2s;
}
.al-done:hover { border-color: var(--green); color: var(--green); }

/* 待办行 */
.todo-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px; margin: 0 -8px;
  border-radius: 10px; text-decoration: none; color: inherit; transition: background .2s;
}
.todo-row:hover { background: #f6f9fd; }
.todo-ico {
  width: 34px; height: 34px; border-radius: 10px; background: #eef3f8;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none;
}
.todo-main { flex: 1; min-width: 0; }
.todo-main b { font-size: 13.5px; color: var(--navy-dark); display: block; }
.todo-sub { font-size: 12px; color: var(--gray); }
.todo-num { font-size: 18px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.todo-num.warn { color: var(--red); }
.todo-arrow { color: #c3cedb; font-size: 12px; flex: none; }

/* 网点排行 */
.rank-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.rank-no {
  width: 26px; height: 26px; border-radius: 8px; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex: none; background: #eef0f3; color: #8a8f98;
}
.rank-no.r1 { background: var(--gold); color: #3a2c0e; }
.rank-no.r2 { background: #dfe4ea; color: #4b5563; }
.rank-no.r3 { background: #d9b48a; color: #6b4423; }
.rank-no.low { background: #fdecea; color: var(--red); }
.rank-name { width: 96px; flex: none; font-size: 12.5px; font-weight: 700; color: var(--navy-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { flex: 1; height: 8px; background: #eef0f3; border-radius: 99px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--navy-2), var(--navy)); }
.rank-bar i.hot { background: linear-gradient(90deg, #e8bc6a, var(--gold)); }
.rank-val { font-size: 12.5px; font-weight: 800; color: var(--navy); width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.rank-val.red { color: var(--red); }
.rank-sep { text-align: center; color: #c3cedb; font-size: 12px; letter-spacing: .3em; padding: 2px 0; }

/* 指标达成 */
.ind-row { padding: 8px 0; }
.ind-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray); margin-bottom: 6px; gap: 8px; }
.ind-top b { color: var(--navy-dark); font-size: 12.5px; }
.ind-bar { height: 7px; background: #eef0f3; border-radius: 99px; overflow: hidden; }
.ind-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f0c56a, var(--gold)); transition: width .6s cubic-bezier(.32,.72,0,1); }
.ind-bar i.ok { background: linear-gradient(90deg, #2aa96e, var(--green)); }
.ind-bar i.low { background: linear-gradient(90deg, #e5705f, var(--red)); }

/* 人员进度 */
.p-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef0f3; }
.p-row:last-child { border-bottom: none; }
.p-main { flex: 1; min-width: 0; }
.p-main b { font-size: 13px; color: var(--navy-dark); }
.p-sub { font-size: 11.5px; color: var(--gray); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-val { font-size: 14px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.p-val.red { color: var(--red); }

/* 入场动画（transform + opacity，GPU 友好） */
.dash > * { animation: dashIn .55s cubic-bezier(.32,.72,0,1) both; }
.dash > *:nth-child(2) { animation-delay: .07s; }
.dash > *:nth-child(3) { animation-delay: .14s; }
.dash > *:nth-child(4) { animation-delay: .21s; }
@keyframes dashIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dash > * { animation: none; } }

/* 看板 · 移动端（优先移动端体验：首屏 = 数字 + 动作同屏） */
@media (max-width: 767px) {
  .dash { gap: 12px; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .dash-title { font-size: 20px; }
  .dash-sub { font-size: 12px; }

  /* KPI：两列紧凑，第三张通栏（达成率主数字） */
  .dash-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px 14px; border-radius: 14px; }
  .stat-card:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; }
  .stat-ico { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
  .stat-eyebrow { font-size: 10.5px; }
  .stat-num { font-size: 22px; margin: 2px 0 0; }
  .stat-foot { font-size: 11px; }

  /* 快速操作：两列网格，标签顶对齐，隐藏装饰箭头 */
  .dash-quick { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 14px; }
  .dash-quick-tag { padding: 0; }
  .qa-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .qa-item { width: 100%; justify-content: flex-start; padding: 11px 12px; font-size: 13px; min-height: 44px; }
  .qa-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .qa-arrow { display: none; }

  .dash-bento { grid-template-columns: 1fr; gap: 12px; }
  .b-span-2 { grid-column: span 1; }
  .b-card { padding: 14px 14px; border-radius: 14px; }
  .rank-name { width: 72px; }
  .b-card .empty { padding: 10px 0; }
  .b-card .empty div[style*="font-size:24px"] { font-size: 18px !important; margin-bottom: 4px !important; }
}

/* 看板卡内空状态紧凑化 */
.b-card .empty { padding: 14px 0; font-size: 12.5px; }

/* 看板微调：指标数值不换行 */
.ind-top span { white-space: nowrap; }

/* 看板 KPI 卡内进度条 */
.stat-bar { height: 7px; background: #eef0f3; border-radius: 99px; overflow: hidden; margin: 6px 0 4px; min-width: 0; }
.stat-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f0c56a, var(--gold)); transition: width .6s cubic-bezier(.32,.72,0,1); }
.stat-bar i.ok { background: linear-gradient(90deg, #2aa96e, var(--green)); }
.stat-bar i.low { background: linear-gradient(90deg, #e5705f, var(--red)); }
.stat-num { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
