/* OA 办公系统原型 · 样式 */
:root{
  --bg:#f4f6f9;
  --panel:#ffffff;
  --text:#1c2128;
  --sub:#5b6472;
  --muted:#8b93a2;
  --line:#e7eaef;
  --line-strong:#d8dde6;
  --primary:#2b6cf6;
  --primary-dark:#1d5ae0;
  --primary-weak:#eaf1ff;
  --ok:#12a150;
  --ok-weak:#e8f8ee;
  --warn:#e08b00;
  --warn-weak:#fff5e0;
  --danger:#e0484d;
  --danger-weak:#fdeeee;
  --radius:12px;
  --shadow:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.03);
  --shadow-lg:0 12px 32px rgba(16,24,40,.12),0 2px 8px rgba(16,24,40,.06);
  --side:236px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Hiragino Sans GB",sans-serif;
  background:var(--bg);color:var(--text);font-size:14px;line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--primary);text-decoration:none}
button{font-family:inherit;font-size:inherit;cursor:pointer;border:0;background:none;color:inherit}
input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:#d5dae3;border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:#c2c8d4}
::-webkit-scrollbar-track{background:transparent}

/* ============ 布局 ============ */
.app{display:flex;height:100vh;overflow:hidden}

/* ---- 侧栏 ---- */
.side{
  width:var(--side);flex:0 0 var(--side);background:#131a28;color:#a9b2c3;
  display:flex;flex-direction:column;padding:18px 12px 12px;
}
.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 20px}
.brand-mark{
  width:32px;height:32px;border-radius:9px;flex:0 0 32px;
  background:linear-gradient(135deg,#4f8cff,#2b6cf6);
  display:grid;place-items:center;color:#fff;font-weight:700;font-size:15px;
  box-shadow:0 4px 10px rgba(43,108,246,.35);
}
.brand-name{color:#fff;font-weight:600;font-size:15px;letter-spacing:.3px;line-height:1.2}
.brand-sub{font-size:11px;color:#6d7a90;letter-spacing:.6px}
.nav{flex:1;overflow-y:auto;overflow-x:hidden}
.nav-group{font-size:11px;color:#5f6b80;letter-spacing:.8px;padding:14px 10px 6px}
.nav-item{
  display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;
  color:#a9b2c3;cursor:pointer;user-select:none;margin-bottom:2px;
  font-size:13.5px;transition:background .15s,color .15s;position:relative;
}
.nav-item svg{width:17px;height:17px;flex:0 0 17px;opacity:.85}
.nav-item:hover{background:rgba(255,255,255,.05);color:#e6eaf2}
.nav-item.active{background:rgba(43,108,246,.18);color:#fff;font-weight:500}
.nav-item.active svg{opacity:1;color:#7aa9ff}
.nav-item.active::before{
  content:"";position:absolute;left:-12px;top:8px;bottom:8px;width:3px;
  background:#4f8cff;border-radius:0 3px 3px 0;
}
.nav-badge{
  margin-left:auto;background:#e0484d;color:#fff;font-size:11px;font-weight:600;
  min-width:18px;height:18px;border-radius:9px;display:grid;place-items:center;padding:0 5px;
}
.side-foot{border-top:1px solid rgba(255,255,255,.07);padding-top:12px;margin-top:8px}
.me{display:flex;align-items:center;gap:9px;padding:6px 8px;border-radius:9px;cursor:pointer}
.me:hover{background:rgba(255,255,255,.05)}
.me-info{min-width:0}
.me-name{color:#fff;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-role{font-size:11px;color:#6d7a90;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---- 主区 ---- */
.main{flex:1;display:flex;flex-direction:column;min-width:0}
.top{
  height:60px;flex:0 0 60px;background:#fff;border-bottom:1px solid var(--line);
  display:flex;align-items:center;gap:14px;padding:0 24px;
}
.top-title{font-size:16px;font-weight:600;letter-spacing:.2px}
.top-crumb{color:var(--muted);font-size:12.5px;margin-left:2px}
.top-space{flex:1}
.search{
  display:flex;align-items:center;gap:8px;background:#f4f6f9;border:1px solid transparent;
  border-radius:9px;padding:7px 11px;width:260px;transition:.15s;
}
.search:focus-within{background:#fff;border-color:var(--primary);box-shadow:0 0 0 3px rgba(43,108,246,.1)}
.search svg{width:15px;height:15px;color:var(--muted);flex:0 0 15px}
.search input{border:0;background:none;outline:none;width:100%;font-size:13px}
.icon-btn{
  width:36px;height:36px;border-radius:9px;display:grid;place-items:center;position:relative;
  color:var(--sub);transition:.15s;
}
.icon-btn:hover{background:#f2f4f8;color:var(--text)}
.icon-btn svg{width:19px;height:19px}
.dot-badge{
  position:absolute;top:7px;right:7px;min-width:8px;height:8px;border-radius:8px;
  background:var(--danger);border:2px solid #fff;box-sizing:content-box;
}
.view{flex:1;overflow-y:auto;padding:20px 22px}
.page{width:100%;max-width:none;margin:0;animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* ============ 通用组件 ============ */
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.card-pad{padding:20px}
.card-head{
  display:flex;align-items:center;gap:10px;padding:16px 20px;border-bottom:1px solid var(--line);
}
.card-head h3{font-size:14.5px;font-weight:600}
.card-head .more{margin-left:auto;color:var(--muted);font-size:12.5px;cursor:pointer}
.card-head .more:hover{color:var(--primary)}
.grid{display:grid;gap:16px}
.g4{grid-template-columns:repeat(4,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g2{grid-template-columns:1.35fr .95fr}
@media(max-width:1180px){.g4{grid-template-columns:repeat(2,1fr)}.g2{grid-template-columns:1fr}}
@media(max-width:900px){.g3{grid-template-columns:1fr}.g4{grid-template-columns:1fr}}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:34px;padding:0 14px;border-radius:8px;font-size:13px;font-weight:500;
  border:1px solid var(--line-strong);background:#fff;color:var(--text);
  transition:.15s;white-space:nowrap;
}
.btn:hover{border-color:#c3cad6;background:#fafbfc}
.btn svg{width:15px;height:15px}
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark)}
.btn-ghost{background:transparent;border-color:transparent;color:var(--sub)}
.btn-ghost:hover{background:#f2f4f8;color:var(--text)}
.btn-sm{height:28px;padding:0 10px;font-size:12.5px;border-radius:7px}
.btn-ok{background:var(--ok);border-color:var(--ok);color:#fff}
.btn-ok:hover{background:#0e8c46;border-color:#0e8c46}
.btn-danger{color:var(--danger);border-color:#f3c9ca;background:#fff}
.btn-danger:hover{background:var(--danger-weak)}
.btn:disabled{opacity:.45;cursor:not-allowed}

.tag{
  display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:6px;
  font-size:12px;font-weight:500;background:#f2f4f8;color:var(--sub);white-space:nowrap;
}
.tag-blue{background:var(--primary-weak);color:var(--primary)}
.tag-green{background:var(--ok-weak);color:var(--ok)}
.tag-red{background:var(--danger-weak);color:var(--danger)}
.tag-orange{background:var(--warn-weak);color:var(--warn)}
.tag-gray{background:#f2f4f8;color:var(--muted)}
.tag-purple{background:#f1edff;color:#6d4fd6}

.avatar{
  width:34px;height:34px;border-radius:50%;flex:0 0 34px;display:grid;place-items:center;
  font-size:13px;font-weight:600;color:#fff;background:#2b6cf6;user-select:none;
}
.avatar.sm{width:26px;height:26px;flex-basis:26px;font-size:11.5px}
.avatar.lg{width:56px;height:56px;flex-basis:56px;font-size:20px}
.a0{background:linear-gradient(135deg,#5b8def,#2b6cf6)}
.a1{background:linear-gradient(135deg,#3ecf8e,#12a150)}
.a2{background:linear-gradient(135deg,#f0b429,#e08b00)}
.a3{background:linear-gradient(135deg,#a46bf5,#7c3aed)}
.a4{background:linear-gradient(135deg,#f97066,#e0484d)}
.a5{background:linear-gradient(135deg,#6ad0e8,#0e9fc4)}

/* 图标基准：未显式定尺寸时不允许撑满整行 */
svg{display:inline-block;vertical-align:-.15em}
.hint svg{width:13px;height:13px;vertical-align:-2px;color:var(--muted)}
.dept-item svg{width:15px;height:15px;flex:0 0 15px;opacity:.7}
.punch[disabled]{cursor:default;opacity:.9}

.muted{color:var(--muted)}
.sub{color:var(--sub)}
.tiny{font-size:12px}
.mono{font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.right{text-align:right}
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt20{margin-top:20px}
.row{display:flex;align-items:center;gap:10px}
.between{display:flex;align-items:center;justify-content:space-between;gap:12px}
.grow{flex:1}
.empty{padding:48px 20px;text-align:center;color:var(--muted)}
.empty-icon{font-size:30px;opacity:.5;margin-bottom:10px}

/* ---- 统计卡 ---- */
.stat{position:relative;padding:18px 20px;overflow:hidden}
.stat-label{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:6px}
.stat-label svg{width:14px;height:14px}
.stat-num{font-size:30px;font-weight:650;letter-spacing:-.6px;margin-top:6px;line-height:1.1}
.stat-foot{font-size:12px;color:var(--muted);margin-top:6px}
.stat-ico{
  position:absolute;right:16px;top:16px;width:36px;height:36px;border-radius:10px;
  display:grid;place-items:center;background:var(--primary-weak);color:var(--primary);
}
.stat-ico svg{width:18px;height:18px}
.stat.alt .stat-ico{background:var(--ok-weak);color:var(--ok)}
.stat.warn .stat-ico{background:var(--warn-weak);color:var(--warn)}
.stat.dang .stat-ico{background:var(--danger-weak);color:var(--danger)}

/* ---- 列表 ---- */
.list-row{
  display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid var(--line);
  transition:background .12s;cursor:pointer;
}
.list-row:last-child{border-bottom:0}
.list-row:hover{background:#fafbfd}
.list-main{min-width:0;flex:1}
.list-title{font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list-meta{font-size:12px;color:var(--muted);margin-top:3px;display:flex;gap:10px;flex-wrap:wrap}

/* ---- 表格 ---- */
.table{width:100%;border-collapse:collapse;font-size:13px}
.table th{
  text-align:left;font-weight:500;color:var(--muted);font-size:12px;letter-spacing:.3px;
  padding:10px 16px;border-bottom:1px solid var(--line);background:#fafbfd;white-space:nowrap;
}
.table td{padding:13px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
.table tbody tr:last-child td{border-bottom:0}
.table tbody tr:hover{background:#fafbfd}
.table .num{text-align:right;font-variant-numeric:tabular-nums}

/* ---- 标签页 ---- */
.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);padding:0 20px}
.tab{
  padding:12px 0;font-size:13.5px;color:var(--sub);cursor:pointer;position:relative;
  border-bottom:2px solid transparent;margin-bottom:-1px;transition:.15s;
}
.tab:hover{color:var(--text)}
.tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:500}
.tab .cnt{color:var(--muted);font-size:12px;margin-left:3px}

/* ---- 表单 ---- */
.field{margin-bottom:16px}
.field label{display:block;font-size:12.5px;color:var(--sub);margin-bottom:6px;font-weight:500}
.field .req{color:var(--danger);margin-left:2px}
.input,.select,.textarea{
  width:100%;height:36px;border:1px solid var(--line-strong);border-radius:8px;
  padding:0 11px;outline:none;background:#fff;transition:.15s;font-size:13.5px;
}
.textarea{height:auto;min-height:88px;padding:9px 11px;resize:vertical;line-height:1.6}
.input:focus,.select:focus,.textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(43,108,246,.1)}
.input::placeholder,.textarea::placeholder{color:#b6bcc7}
.hint{font-size:12px;color:var(--muted);margin-top:5px}
/* 自适应表单：按字段内容多少自动排布，短字段并排、长字段占满行 */
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:0 14px;align-items:start}
.form-grid .field{min-width:0}
.form-grid .field.full,.form-grid .field.long{grid-column:1/-1}
.form-grid .field.short{grid-column:span 1;max-width:220px}
.form-grid .field.mid{grid-column:span 2}
@media(max-width:820px){.form-grid .field.mid{grid-column:1/-1}}
.form-grid textarea.textarea{min-height:96px}
.form-grid .full{grid-column:1/-1}
@media(max-width:720px){.form-grid{grid-template-columns:1fr}}
.seg{display:inline-flex;background:#f2f4f8;padding:3px;border-radius:9px;gap:2px}
.seg button{padding:6px 13px;border-radius:7px;font-size:12.5px;color:var(--sub);transition:.15s}
.seg button.on{background:#fff;color:var(--text);font-weight:500;box-shadow:0 1px 2px rgba(16,24,40,.1)}

/* ---- 弹层 ---- */
.mask{
  position:fixed;inset:0;background:rgba(17,24,39,.45);backdrop-filter:blur(2px);
  display:flex;align-items:flex-start;justify-content:center;padding:56px 20px 40px;
  z-index:50;overflow-y:auto;animation:fade .15s ease;
}
.dialog{
  background:#fff;border-radius:14px;width:100%;max-width:620px;box-shadow:var(--shadow-lg);
  animation:pop .18s ease;overflow:hidden;
}
.dialog.wide{max-width:760px}
@keyframes pop{from{opacity:0;transform:translateY(-8px) scale(.99)}to{opacity:1;transform:none}}
.dlg-head{
  display:flex;align-items:center;gap:10px;padding:18px 22px;border-bottom:1px solid var(--line);
}
.dlg-head h2{font-size:15.5px;font-weight:600;flex:1}
.dlg-body{padding:22px;max-height:calc(100vh - 260px);overflow-y:auto}
.dlg-foot{
  display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--line);
  background:#fcfcfd;
}
.close{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:var(--muted)}
.close:hover{background:#f2f4f8;color:var(--text)}

/* ---- 提示 ---- */
.toasts{position:fixed;left:50%;bottom:36px;transform:translateX(-50%);z-index:99;display:flex;flex-direction:column;gap:8px}
.toast{
  background:#1f2937;color:#fff;padding:10px 16px;border-radius:9px;font-size:13px;
  box-shadow:var(--shadow-lg);animation:up .2s ease;display:flex;align-items:center;gap:8px;
}
@keyframes up{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ============ 工作台 ============ */
.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.hero h1{font-size:22px;font-weight:650;letter-spacing:-.3px}
.hero p{color:var(--muted);font-size:13px;margin-top:5px}
.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.quick-item{
  display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:10px;
  border:1px solid var(--line);cursor:pointer;transition:.15s;background:#fff;
}
.quick-item:hover{border-color:#bcd1fd;background:#f8faff;transform:translateY(-1px)}
.quick-item svg{width:18px;height:18px;color:var(--primary)}
.quick-item span{font-size:12.5px;font-weight:500}
.notice-item{padding:14px 20px;border-bottom:1px solid var(--line);cursor:pointer}
.notice-item:last-child{border-bottom:0}
.notice-item:hover{background:#fafbfd}
.notice-item.unread .notice-title{font-weight:600}
.notice-title{font-size:13.5px;display:flex;align-items:center;gap:7px;margin-bottom:4px}
.notice-dot{width:6px;height:6px;border-radius:50%;background:var(--danger);flex:0 0 6px}

/* ============ 考勤 ============ */
.clock-card{padding:26px 24px;display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.clock-big{font-size:44px;font-weight:650;letter-spacing:-1.5px;line-height:1;font-variant-numeric:tabular-nums}
.clock-date{color:var(--sub);font-size:13px;margin-top:8px}
.clock-actions{display:flex;gap:10px;margin-left:auto;flex-wrap:wrap}
.punch{border-radius:10px;padding:13px 22px;border:1px solid var(--line-strong);background:#fff;text-align:center;min-width:120px}
.punch:hover{border-color:#bcd1fd;background:#f8faff}
.punch.done{border-color:var(--ok);background:var(--ok-weak);color:var(--ok);cursor:default}
.punch strong{display:block;font-size:14px}
.punch span{font-size:11.5px;color:var(--muted)}
.punch.done span{color:var(--ok)}
.stat-mini{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border-radius:10px;overflow:hidden}
.stat-mini div{background:#fff;padding:14px 16px;text-align:center}
.stat-mini b{display:block;font-size:20px;font-weight:650}
.stat-mini span{font-size:12px;color:var(--muted)}

/* ============ 通讯录 ============ */
.dir-wrap{display:grid;grid-template-columns:200px 1fr;gap:16px;align-items:start}
@media(max-width:900px){.dir-wrap{grid-template-columns:1fr}}
.dept-list{padding:8px}
.dept-item{
  display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:8px;cursor:pointer;
  font-size:13px;color:var(--sub);
}
.dept-item:hover{background:#f4f6f9}
.dept-item.on{background:var(--primary-weak);color:var(--primary);font-weight:500}
.dept-item .cnt{margin-left:auto;font-size:11.5px;color:var(--muted)}
.dept-item.on .cnt{color:var(--primary)}
.people{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:12px}
.person{
  display:flex;gap:11px;align-items:center;padding:14px;border:1px solid var(--line);
  border-radius:10px;background:#fff;cursor:pointer;transition:.15s;
}
.person:hover{border-color:#bcd1fd;box-shadow:0 4px 14px rgba(43,108,246,.08);transform:translateY(-1px)}
.person-name{font-size:13.5px;font-weight:500}
.person-sub{font-size:12px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ============ 看板 ============ */
.kanban{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:start}
@media(max-width:960px){.kanban{grid-template-columns:1fr}}
.kcol{background:#eff2f6;border-radius:12px;padding:12px;min-height:200px}
.kcol-head{display:flex;align-items:center;gap:8px;padding:2px 4px 12px}
.kcol-head b{font-size:13px;font-weight:600}
.kcol-head .cnt{font-size:11.5px;color:var(--muted);background:#dde3ec;border-radius:20px;padding:1px 7px}
.kcol-head .add{margin-left:auto;color:var(--muted);cursor:pointer;font-size:16px;line-height:1}
.kcol-head .add:hover{color:var(--primary)}
.task{
  background:#fff;border-radius:9px;padding:12px;margin-bottom:9px;border:1px solid #e3e8f0;
  cursor:pointer;transition:.15s;box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.task:hover{box-shadow:0 4px 14px rgba(16,24,40,.08);border-color:#cfd8e6}
.task.done .task-title{text-decoration:line-through;color:var(--muted)}
.task-title{font-size:13px;font-weight:500;line-height:1.45;margin-bottom:8px}
.task-meta{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--muted);flex-wrap:wrap}
.pri{width:4px;height:4px;border-radius:50%;display:inline-block;margin-right:4px;vertical-align:middle}
.pri-h{background:var(--danger)}.pri-m{background:var(--warn)}.pri-l{background:#9aa4b5}
.overdue{color:var(--danger)}

/* ============ 文档 ============ */
.file-ico{
  width:30px;height:30px;border-radius:7px;display:grid;place-items:center;
  font-size:10px;font-weight:700;color:#fff;letter-spacing:.2px;flex:0 0 30px;
}
.f-pdf{background:#e5484d}.f-doc{background:#2b6cf6}.f-xls{background:#12a150}
.f-ppt{background:#e08b00}.f-img{background:#7c3aed}.f-zip{background:#5b6472}
.folder-ico{background:var(--primary-weak);color:var(--primary)}

/* ============ 会议 ============ */
.timeline{position:relative;padding-left:0}
.mt-row{display:flex;gap:16px;padding:14px 20px;border-bottom:1px solid var(--line)}
.mt-row:last-child{border-bottom:0}
.mt-time{width:78px;flex:0 0 78px;font-variant-numeric:tabular-nums;font-size:13px;font-weight:600;padding-top:1px}
.mt-time span{display:block;font-size:11.5px;color:var(--muted);font-weight:400}
.mt-body{min-width:0;flex:1}
.mt-title{font-size:13.5px;font-weight:500}
.mt-meta{font-size:12px;color:var(--muted);margin-top:4px;display:flex;gap:12px;flex-wrap:wrap}
.room{display:flex;align-items:center;gap:13px;padding:13px 16px;border:1px solid var(--line);border-radius:10px;margin-bottom:10px}
.room:last-child{margin-bottom:0}
.room-name{font-size:13px;font-weight:500}
.room-meta{font-size:11.5px;color:var(--muted);margin-top:2px}

/* ============ 详情 ============ */
.kv{display:grid;grid-template-columns:96px 1fr;gap:10px 12px;font-size:13px}
.kv dt{color:var(--muted);font-size:12.5px}
.kv dd{color:var(--text)}
.flow{padding-left:4px}
.flow-step{display:flex;gap:12px;position:relative;padding-bottom:18px}
.flow-step:last-child{padding-bottom:0}
.flow-step::before{content:"";position:absolute;left:11px;top:24px;bottom:0;width:2px;background:var(--line);}
.flow-step:last-child::before{display:none}
.flow-dot{
  width:24px;height:24px;border-radius:50%;flex:0 0 24px;display:grid;place-items:center;
  background:#f2f4f8;color:var(--muted);font-size:11px;z-index:1;border:2px solid #fff;
}
.flow-dot.ok{background:var(--ok-weak);color:var(--ok)}
.flow-dot.cur{background:var(--primary-weak);color:var(--primary);box-shadow:0 0 0 3px rgba(43,108,246,.12)}
.flow-dot.no{background:var(--danger-weak);color:var(--danger)}
.flow-body{min-width:0;flex:1;padding-top:2px}
.flow-name{font-size:13px;font-weight:500}
.flow-meta{font-size:11.5px;color:var(--muted);margin-top:2px}
.demo-box{border:1px dashed #c9d3e3;background:#f8fafd;border-radius:9px;padding:12px;margin-top:16px}
.demo-box .lbl{font-size:11.5px;color:var(--muted);letter-spacing:.4px;margin-bottom:9px;display:flex;align-items:center;gap:6px}

/* 响应式 */
@media(max-width:860px){
  .side{position:fixed;left:0;top:0;bottom:0;z-index:40;transform:translateX(-100%);transition:.2s}
  .side.open{transform:none}
  .view{padding:16px}
  .search{display:none}
  .clock-big{font-size:36px}
}

/* ================= 登录页 ================= */
.login{
  min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;
  background:radial-gradient(900px 500px at 15% 0%,rgba(43,108,246,.28),transparent 60%),
             linear-gradient(135deg,#0b1120,#131c30 55%,#1b2a4a);
}
.login-card{width:100%;max-width:392px;background:#fff;border-radius:16px;padding:34px 32px 26px;box-shadow:0 30px 70px rgba(2,8,23,.5)}
.login-brand{display:flex;align-items:center;gap:11px;margin-bottom:6px}
.login-sub{font-size:12.5px;color:var(--muted);margin:0 0 22px 43px}
.login h2{font-size:18px;font-weight:650;margin-bottom:18px}
.login-err{background:var(--danger-weak);color:var(--danger);font-size:12.5px;padding:8px 11px;border-radius:8px;margin-bottom:12px;display:none}
.login-err.on{display:block}
.login .btn{width:100%;height:40px;font-size:14px;margin-top:4px}
.demo-title{font-size:11.5px;color:var(--muted);letter-spacing:.6px;margin:22px 0 8px}
.demo-chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{font-size:11.5px;border:1px solid var(--line-strong);border-radius:999px;padding:4px 10px;cursor:pointer;color:var(--sub);transition:.15s}
.chip:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-weak)}
.role-badge{font-size:11.5px;background:var(--primary-weak);color:var(--primary);padding:2px 9px;border-radius:99px;font-weight:500}
.toast.err{background:#7a271a}
.boot{height:100vh;display:grid;place-items:center;color:var(--muted);font-size:13px}

/* hidden 属性优先级（避免 display 规则覆盖） */
[hidden]{display:none !important}

.tag-cyan{background:#e3f5f9;color:#0e7490}

/* ================= 消防行业版 · 品牌与移动端 ================= */
.brand-mark{background:linear-gradient(135deg,#ff7a45,#d9480f);box-shadow:0 4px 12px rgba(217,72,15,.35)}
.brand-name{letter-spacing:.5px}
.nav-item.active::before{background:#ff7a45}
.menu-btn{display:none}
.side-mask{position:fixed;inset:0;background:rgba(10,16,30,.45);z-index:35}
@media(max-width:860px){
  .menu-btn{display:grid}
  .table{display:block;overflow-x:auto;white-space:nowrap}
  .hero h1{font-size:19px}
  .page{max-width:none}
}
/* 项目明细：进度条 */
.progress{height:6px;background:#eef1f6;border-radius:6px;overflow:hidden;min-width:70px}
.progress > i{display:block;height:100%;background:linear-gradient(90deg,#4f8cff,#2b6cf6);border-radius:6px}
.progress.warn > i{background:linear-gradient(90deg,#ffb020,#e08b00)}
.progress.done > i{background:linear-gradient(90deg,#3ecf8e,#12a150)}

/* 移动端精简 */
@media(max-width:860px){
  .top{padding:0 12px;gap:8px}
  .top-crumb{display:none}
  .top-title{white-space:nowrap;font-size:15px}
  .grid.g4{grid-template-columns:repeat(2,1fr) !important;gap:10px}
  .card-pad{padding:14px}
  .stat-num{font-size:24px}
  .stat-label{font-size:12px}
  .stat-foot{font-size:11px}
  .tabs{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .tab{white-space:nowrap}
  .view{padding:12px}
  .hero h1{font-size:18px}
  .hero p{font-size:12px}
  .quick{grid-template-columns:repeat(2,1fr)}
}

/* ============ 审批流程画布 ============ */
.flow-wrap { position: relative; border: 1px solid var(--line); border-radius: 12px; background:
  radial-gradient(circle, #e8ecf3 1px, transparent 1px) 0 0/18px 18px, #fafbfd; overflow: auto; padding: 28px 0 36px; }
.flow-zoom { position: sticky; top: 8px; left: 8px; z-index: 3; display: inline-flex; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; margin-left: 12px; box-shadow: 0 1px 3px rgba(16,24,40,.06); }
.flow-zoom button { border: 0; background: transparent; cursor: pointer; width: 26px; height: 26px; border-radius: 6px; color: #475467; font-size: 15px; }
.flow-zoom button:hover { background: #f2f4f7; }
.flow-zoom span { font-size: 12px; color: #667085; min-width: 38px; text-align: center; line-height: 26px; }
.flow-inner { transform-origin: top center; transition: transform .15s ease; }
.flow-stack { display: flex; flex-direction: column; align-items: center; }
.flow-card { width: 380px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(16,24,40,.06); overflow: hidden; }
.flow-card.wide { width: 760px; }
.flow-card-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #fff; font-size: 13px; font-weight: 600; }
.flow-card-head .ico { width: 20px; height: 20px; border-radius: 5px; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.flow-card-body { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flow-who { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #344054; }
.flow-who .av { width: 22px; height: 22px; border-radius: 50%; background: #eef4ff; color: #2b6cf6; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.flow-conn { display: flex; flex-direction: column; align-items: center; position: relative; height: 44px; justify-content: center; }
.flow-conn::before { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: #dfe4ec; }
.flow-plus { position: relative; z-index: 2; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #d0d5dd; background: #fff;
  color: #98a2b3; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.flow-plus:hover { border-color: #f08c00; color: #f08c00; background: #fff8ef; }
.flow-branch-cols { display: flex; gap: 18px; padding: 10px 12px 14px; align-items: stretch; }
.flow-branch-col { flex: 1; border: 1px dashed #ffd8c2; background: #fffaf6; border-radius: 8px; padding: 10px; }
.flow-branch-col .t { font-size: 12px; font-weight: 600; color: #d9480f; margin-bottom: 8px; }
.flow-mini { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 7px 9px; font-size: 12px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.flow-merge { display: flex; flex-direction: column; align-items: center; height: 26px; }

/* 审批流程画布 */
.flow-wrap { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 34px 12px 28px;
  background: radial-gradient(circle, #e8ecf3 1px, transparent 1px) 0 0 / 18px 18px, #fafbfd; overflow: auto; }
.flow-zoom { position: absolute; top: 10px; left: 12px; display: inline-flex; gap: 2px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 5px; box-shadow: 0 1px 3px rgba(16,24,40,.06); }
.flow-zoom button { border: 0; background: transparent; cursor: pointer; min-width: 26px; height: 24px; border-radius: 6px; color: #475467; font-size: 13px; }
.flow-zoom button:hover { background: #f2f4f7; }
.flow-zoom span { font-size: 12px; color: #667085; min-width: 40px; text-align: center; }
.flow-inner { transform-origin: top center; transition: transform .15s ease; }
.flow-conn { display: flex; flex-direction: column; align-items: center; height: 46px; position: relative; }
.flow-conn::before { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: #dfe4ec; }
.flow-plus { position: relative; z-index: 2; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #d0d5dd;
  background: #fff; color: #98a2b3; font-size: 13px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }
.flow-plus:hover { border-color: #f08c00; color: #f08c00; background: #fff8ef; }

.flow-dragable { cursor: grab; }
.flow-dragable:active { cursor: grabbing; }


/* 二级菜单 */
.nav-parent{display:flex;align-items:center;gap:10px;padding:9px 12px;color:#c7ccda;border-radius:8px;cursor:pointer;font-size:13.5px}
.nav-parent:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-parent .nav-arrow{margin-left:auto;transition:transform .15s ease;color:#7c869c;font-size:12px}
.nav-parent.open .nav-arrow{transform:rotate(90deg)}
.nav-sub{display:none;margin:2px 0 4px 26px;border-left:1px solid rgba(255,255,255,.12);padding-left:6px}
.nav-sub.open{display:block}
.nav-item.sub{font-size:13px;padding:7px 10px;border-radius:6px;opacity:.9}
.nav-item.sub.on{background:rgba(217,72,15,.22);color:#fff}

/* 二级菜单：图标与可读性修正 */
.nav-parent{display:flex;align-items:center;gap:10px;padding:9px 12px;color:#cfd5e3;border-radius:8px;cursor:pointer;font-size:13.5px}
.nav-parent svg{width:17px;height:17px;flex:0 0 17px;opacity:.85;color:currentColor}
.nav-parent:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-parent.open{color:#fff}
.nav-parent .nav-arrow{margin-left:auto;transition:transform .15s ease;color:#8b94a8;font-size:14px}
.nav-parent.open .nav-arrow{transform:rotate(90deg);color:#ff9b6a}
.nav-sub{display:none;margin:2px 0 6px 14px;border-left:1px solid rgba(255,255,255,.14);padding-left:10px}
.nav-sub.open{display:block}
.nav-item.sub{font-size:13.5px;padding:8px 10px;border-radius:6px;color:#dfe4ee;opacity:1;letter-spacing:.2px}
.nav-item.sub:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-item.sub.active{background:rgba(217,72,15,.26);color:#fff;font-weight:500}
.nav-item.sub.active::before{content:'';position:absolute;left:-11px;top:9px;bottom:9px;width:2px;background:#ff7a45}
.nav-item.sub{position:relative}

/* 合同表：单行对齐 */
.table td{vertical-align:middle}


/* 合同表紧凑排版 */
.table th{padding:10px 12px;white-space:nowrap}
.table td{padding:10px 12px;vertical-align:middle}

/* 实心彩色按钮 */
.btn-blue{background:linear-gradient(135deg,#4f8cff,#2b6cf6);color:#fff;border:1px solid #2b6cf6}
.btn-blue:hover{background:linear-gradient(135deg,#2b6cf6,#1d5ae0)}
.btn-sm.btn-primary,.btn-sm.btn-blue{box-shadow:0 1px 2px rgba(43,108,246,.18)}

.btn-brand{background:linear-gradient(135deg,#ff9a5c,#ff7a45);color:#fff;border:1px solid #f06a2f;box-shadow:0 1px 2px rgba(255,122,69,.25)}
.btn-brand:hover{background:linear-gradient(135deg,#ff8a45,#f06a2f)}

/* 合同表紧凑 */
.contract-table th,.contract-table td{padding:9px 10px;font-size:12.5px}
.contract-table td{white-space:nowrap}
.contract-table .tag{font-size:11px;padding:2px 7px}
.contract-table .btn-sm{padding:5px 10px;font-size:12px}

/* 统一操作按钮 */
.btn-ghost{background:#fff;border:1px solid #d0d5dd;color:#344054}
.btn-ghost:hover{border-color:#ff7a45;color:#d9480f;background:#fff7f2}
.btn{border-radius:7px;font-weight:500}
.btn-sm{border-radius:6px}


td .btn:not(.btn-primary):not(.btn-blue):not(.btn-brand):not(.btn-ghost):hover{background:linear-gradient(135deg,#2b6cf6,#1d5ae0);color:#fff}


/* 操作单元格彩色文字 */
td .btn{background:none!important;border:0!important;box-shadow:none!important;height:auto!important;padding:2px 6px!important;font-size:12.5px!important;font-weight:500;color:#2b6cf6;gap:4px}
td .btn:hover{text-decoration:underline;background:transparent!important}
td .btn.act-del{color:#e5484d!important}
td .btn.act-edit{color:#2b6cf6!important}
td .btn.act-main{color:#f06a2f!important}
td .btn.act-view{color:#2b6cf6!important}
td .btn.act-del::before{content:'✕';font-size:11px;margin-right:3px;opacity:.9}
td .btn.act-edit::before{content:'✎';font-size:12px;margin-right:3px}
td .btn.act-main::before{content:'＋';font-size:12px;margin-right:2px}
td .btn.act-view::before{content:'›';font-size:14px;margin-right:2px}

.dialog{position:relative}


/* 审核通过印章（放在弹窗头部，独占空间） */
.dlg-head{align-items:center}
.ms-stamp{position:relative;width:100px;height:100px;margin-left:auto;margin-right:14px;transform:rotate(-8deg);flex:0 0 100px}
.ms-ring{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:96px;height:96px;border-radius:50%;border:4px solid #d4183d}
.ms-ring.dashed{width:80px;height:80px;border:2px dashed #d4183d;opacity:.8}
.ms-band{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:118px;text-align:center;background:#d4183d;color:#fff;font-size:12px;font-weight:700;letter-spacing:1px;line-height:22px;clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%,6% 50%)}

.seal-ms{position:relative}
.seal-ms label:hover{background:#f7f9fc}

.fld{display:block;font-size:12.5px;font-weight:600;color:#475467;margin-bottom:6px}


/* 新建申请卡片 */
.req-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.req-card{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #eaecf0;border-radius:12px;background:#fff;cursor:pointer;transition:all .15s ease}
.req-card:hover{border-color:#ff7a45;background:#fffaf6;box-shadow:0 4px 14px rgba(16,24,40,.06);transform:translateY(-1px)}
.req-ico{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:0 0 40px}
.req-ico svg{width:20px;height:20px}
.req-title{font-size:14px;font-weight:600;color:#101828}
.req-desc{font-size:12px;color:#98a2b3;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.req-arrow{color:#c0c6d4;font-size:18px}
.req-card:hover .req-arrow{color:#ff7a45}



/* 移动端工单处理：全屏单页，像外卖接单 */
.dialog { overflow: hidden; }
.dlg-body { min-height: 0; }
@media (max-width: 820px) {
  .mask { padding: 0 !important; align-items: stretch !important; overflow: hidden; }
  .dialog, .dialog.wide {
    width: 100vw !important; max-width: 100vw !important;
    height: 100vh !important; max-height: 100vh !important;
    border-radius: 0 !important; margin: 0 !important;
    display: flex; flex-direction: column; overflow: hidden;
  }
  .dlg-head { flex: 0 0 auto; padding: 14px 16px; border-bottom: 1px solid #eaecf0; }
  .dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px 110px; }
  .dlg-body form { display: block; }
  .dlg-body form > div[style*="display:flex"] > div,
  .dlg-body form div[style*="flex:1 1"] { flex: 1 1 100% !important; min-width: 0 !important; }
  .dlg-foot, .dlg-body form .dlg-foot {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
    display: flex; gap: 10px;
    padding: 12px 16px; margin: 0 !important;
    background: #fff; border-top: 1px solid #eaecf0;
    box-shadow: 0 -4px 16px rgba(16,24,40,.08);
  }
  .dlg-foot .btn { flex: 1; min-height: 48px; font-size: 16px; }
  .dlg-body input.input, .dlg-body select.select, .dlg-body textarea.textarea { font-size: 16px; min-height: 48px; width: 100%; }
  .dlg-body textarea.textarea { min-height: 120px; }
  .dlg-body .btn { min-height: 44px; }
  .page { padding: 12px !important; }
  .grid.g4 { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .table { font-size: 13px; }
}

/* 移动端表格横滑 */
@media (max-width: 820px) {
  .dlg-body .table, .page .table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .dlg-body .table thead, .dlg-body .table tbody { display: table; width: 100%; }
  .dlg-body .table td input.input { min-width: 90px; }
}

/* 工单卡片（手机优先，像啄木鸟接单） */
.so-cards { display: none; }
.so-card { background: #fff; border: 1px solid #eaecf0; border-radius: 14px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.so-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.so-no { margin-left: auto; font-size: 12px; color: #98a2b3; font-family: ui-monospace, monospace; }
.so-unit { font-size: 16px; font-weight: 600; color: #101828; }
.so-reason { font-size: 13px; color: #667085; margin-top: 4px; line-height: 1.5; }
.so-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: #98a2b3; }
.so-acts { display: flex; gap: 10px; margin-top: 12px; }
.so-acts .btn { flex: 1; height: 42px; font-size: 15px; border-radius: 10px; }
@media (max-width: 820px) {
  .so-cards { display: block; }
  .so-table { display: none; }
  .so-tabs .tabs { overflow-x: auto; white-space: nowrap; }
  .so-stats { grid-template-columns: 1fr 1fr !important; }
  .so-count { display: none; }
}


/* 组织架构树（钉钉风格） */
.org-tree { padding: 4px 8px 12px; max-height: 620px; overflow: auto; }
.org-node { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; color: #344054; }
.org-node:hover { background: #f5f7fb; }
.org-node.on { background: #eef4ff; color: #2b6cf6; font-weight: 600; }
.org-caret { width: 14px; font-size: 11px; color: #98a2b3; }
.org-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-count { font-size: 11px; color: #98a2b3; }

/* 拖拽放置高亮 */
.org-node.drop-on { background: #e6f4ff !important; box-shadow: inset 0 0 0 1px #2b6cf6; }
tr[draggable="true"] { cursor: grab; }
tr[draggable="true"]:active { cursor: grabbing; }
[data-drag-dept] { cursor: grab; }

/* 组织架构（钉钉风格） */
.org-side { padding: 0; overflow: hidden; }
.org-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.org-tree { padding: 2px 8px 12px; max-height: 640px; overflow: auto; }
.org-node { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; cursor: pointer; font-size: 13px; color: #344054; position: relative; }
.org-node:hover { background: #f5f7fb; }
.org-node.on { background: #eef4ff; color: #2b6cf6; font-weight: 600; }
.org-node.on::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: #2b6cf6; }
.org-node.drop-on { background: #e6f4ff !important; box-shadow: inset 0 0 0 1px #2b6cf6; }
.org-caret { width: 12px; font-size: 10px; color: #98a2b3; flex: 0 0 12px; }
.org-ico { font-size: 12px; color: #98a2b3; }
.org-node.on .org-ico { color: #2b6cf6; }
.org-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-count { font-size: 11px; color: #98a2b3; background: #f2f4f8; border-radius: 8px; padding: 1px 6px; }
.org-node.on .org-count { background: #dbeafe; color: #2b6cf6; }
.org-crumbs { font-size: 12px; color: #667085; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.org-crumb { cursor: pointer; }
.org-crumb:hover { color: #2b6cf6; }
.org-crumb.on { color: #101828; font-weight: 600; }
.org-sep { color: #d0d5dd; }
.org-detail-head { border-top: 3px solid #2b6cf6; }
.org-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 12px; }
.org-kid { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #eaecf0; border-radius: 10px; cursor: pointer; }
.org-kid:hover { background: #f8fafc; border-color: #d0d5dd; }
.org-kid-ico { width: 34px; height: 34px; border-radius: 9px; background: #eef4ff; color: #2b6cf6; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.org-members td { vertical-align: middle; }
.org-members tr[draggable="true"]:hover { background: #fafbfc; }

/* tab-cnt-style：页签数字统一带括号 + 独立颜色 */
.tabs .cnt, .tab .cnt { color: #ff7a45; font-weight: 600; margin-left: 2px; }
.tabs .cnt::before, .tab .cnt::before { content: "（"; }
.tabs .cnt::after, .tab .cnt::after { content: "）"; }
.tab.active .cnt { color: #2b6cf6; }

/* 老板驾驶舱 */
.dash-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding: 16px; }
.dash-line { border: 1px solid #eef1f6; border-radius: 10px; padding: 12px 14px; background: #fcfdff; }
.dash-line:hover { border-color: #d7e2f7; }
.dash-insights { display: flex; flex-direction: column; gap: 10px; }
.dash-insight { display: flex; gap: 8px; font-size: 13px; line-height: 1.6; color: #344054; padding: 8px 0; border-bottom: 1px dashed #eef1f6; }
.dash-insight:last-child { border-bottom: none; }

/* 驾驶舱排版：等宽等高的行 */
.dash-row { display: grid; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.dash-row > .card { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.dash-row > .card > .card-head { flex: 0 0 auto; }
.dash-row > .card > .card-pad,
.dash-row > .card > table { flex: 1 1 auto; }
.dash-row .dash-insights { max-height: 232px; overflow: auto; }
.dash-row .table td, .dash-row .table th { padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 1100px) {
  .dash-row { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 720px) {
  .dash-row { grid-template-columns: 1fr !important; }
}

/* 驾驶舱图表与列表对齐 */
.dash-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.dash-row .dash-insights { max-height: none; overflow: visible; }
.dash-row > .card > .card-pad { display: flex; flex-direction: column; justify-content: flex-start; }
.dash-row .dash-chart { flex: 1 1 auto; align-items: flex-end; }

/* 右侧面板布局：弹窗改为内容区显示，左侧导航保持可见可点 */
:root { --side: 216px; }
.mask {
  position: fixed !important;
  left: var(--side) !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  padding: 0 !important;
  background: #f7f9fc !important;
  backdrop-filter: none !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  z-index: 40 !important;
  overflow: hidden !important;
}
.dialog, .dialog.wide {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-left: 1px solid var(--line) !important;
  display: flex !important;
  flex-direction: column !important;
  animation: none !important;
  background: #fff !important;
}
.dialog > .dlg-head { flex: 0 0 auto; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.dialog > .dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 22px 28px 40px; }
.dialog > .dlg-body > * { width: 100%; }
.dialog > .dlg-body .fwrap > div { flex: 1 1 200px; min-width: 0; }
.dialog > .dlg-foot, .dlg-body form .dlg-foot {
  position: sticky; bottom: 0; z-index: 5;
  padding: 14px 28px; margin: 20px -28px 0 !important;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(16,24,40,.05);
  display: flex; justify-content: flex-end; gap: 10px;
}
.dialog > .dlg-body form { max-width: 1000px; }
@media (max-width: 820px) {
  .mask { left: 0 !important; top: 0 !important; }
}

/* 面板内容自适应：宽屏多用列，窄屏收成单列 */
.dialog > .dlg-body form { max-width: 100%; width: 100%; }
.dialog > .dlg-body .form-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dialog > .dlg-body .fwrap { gap: 14px 18px; }
.dialog > .dlg-body .table { width: 100%; }
.dialog > .dlg-body .kv { display: grid; grid-template-columns: 140px 1fr; }
.dialog > .dlg-body .card-pad { padding: 16px 18px; }
.dialog > .dlg-body .grid.g2 { grid-template-columns: 1fr 1fr; }
.dialog > .dlg-body .grid.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) {
  .dialog > .dlg-body .grid.g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .dialog > .dlg-body .grid.g2, .dialog > .dlg-body .grid.g3 { grid-template-columns: 1fr; }
}

/* 卡片视觉升级：更柔和的底色、更清晰的分区、更统一的标签 */
.card{
  background:#ffffff;
  border:1px solid #edf0f5;
  border-radius:14px;
  box-shadow:0 1px 2px rgba(16,24,40,.03), 0 6px 18px -12px rgba(16,24,40,.10);
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover{ border-color:#e2e8f2; box-shadow:0 2px 4px rgba(16,24,40,.04), 0 12px 28px -14px rgba(16,24,40,.16); }
.card-head{
  padding:15px 20px;
  background:linear-gradient(180deg,#fcfdff,#f7f9fc);
  border-bottom:1px solid #eef1f6;
  border-radius:14px 14px 0 0;
}
.card-head h3{ font-size:14px; font-weight:600; color:#1f2937; letter-spacing:.2px; }
.card-head .more{ font-size:12px; color:#98a2b3; }

/* 统计卡：图标底 + 数值色阶 */
.stat-label{ color:#8b93a2; font-size:12.5px; }
.stat-num{ color:#101828; font-variant-numeric:tabular-nums; }

/* 表格：表头浅底、行分隔更淡、悬停更轻 */
.table th{ background:#fafbfd; color:#8b93a2; font-weight:500; border-bottom:1px solid #eef1f6; }
.table td{ border-bottom:1px solid #f2f4f8; }
.table tbody tr:hover{ background:#fafcff; }
.table tbody tr:last-child td{ border-bottom:none; }

/* 标签：统一 10% 透明底 + 同色系文字 */
.tag{ height:22px; border-radius:7px; font-weight:500; font-size:11.5px; }
.tag-blue{ background:#eef4ff; color:#1d5ae0; }
.tag-green{ background:#e9f8ef; color:#12874a; }
.tag-orange{ background:#fff4e8; color:#c2410c; }
.tag-red{ background:#fdeceb; color:#c92a2a; }
.tag-gray{ background:#f4f6f9; color:#667085; }
.tag-purple{ background:#f3f0ff; color:#5b45c9; }

/* 操作按钮：只保留主色与危险色，其余灰阶 */
td .btn{ color:#2b6cf6 !important; }
td .btn.act-del{ color:#d92d20 !important; }
td .btn.act-main{ color:#e8590c !important; }

/* 现代卡片风格：大圆角 + 灰底 + 无描边 */
:root { --bg:#e9edf3; --radius:20px; }
body { background: #e9edf3; }
.card{
  background: linear-gradient(180deg, #ffffff 0%, #fdfefe 62%, #fbfcfe 100%) !important;
  border: 1px solid rgba(16,24,40,.045) !important;
  border-radius: 20px !important;
  box-shadow:
    0 1px 1px rgba(16,24,40,.05),
    0 4px 10px -4px rgba(16,24,40,.10),
    0 16px 32px -16px rgba(16,24,40,.18),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
  transition: box-shadow .2s ease, transform .2s ease;
}
 .card:hover{
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(16,24,40,.06),
    0 10px 20px -8px rgba(16,24,40,.14),
    0 28px 52px -24px rgba(16,24,40,.24),
    inset 0 1px 0 rgba(255,255,255,.95) !important;
}
.card-head{
  background: transparent !important;
  border-bottom: 0 !important;
  padding: 18px 22px 8px !important;
  border-radius: 20px 20px 0 0 !important;
}
.card-head h3{ font-size: 14.5px; font-weight: 650; color: #111827; }
.card-pad{ padding: 18px 22px 22px; }

/* 卡片内的“白面”元素保留白色，形成层次 */
.card .table{ background: #fff; border-radius: 14px; overflow: hidden; }
.card .dash-line{ box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.card .table th{ background: #fff; }
.card .table thead{ background: #fff; }
.card .dash-line{ background: #fff; border: 0; border-radius: 14px; }
.card .input, .card .select, .card .textarea{ background: #fff; }
.card .empty{ background: transparent; }

/* 页面里的白色面板与灰卡片区分 */
.card.card-pad{ padding: 20px 22px; }

/* 卡片顶部高光，增强立体感 */
.card{ position: relative; }
.card::before{
  content:''; position:absolute; left:14px; right:14px; top:0; height:1px;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.95), rgba(255,255,255,0));
  pointer-events:none;
}
.page-bg, body{ background: #e9edf3; }

/* 成员名录：紧凑卡片 */
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.mem-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  transition: box-shadow .16s ease, transform .16s ease;
}
.mem-card:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(16,24,40,.06), 0 12px 24px -14px rgba(16,24,40,.2) !important; }
.mem-card .avatar { width: 34px; height: 34px; font-size: 14px; flex: 0 0 34px; }
.mem-name { font-size: 13.5px; font-weight: 600; color: #111827; line-height: 1.3; }
.mem-sub { font-size: 11.5px; color: #8b93a2; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem-phone { font-size: 11.5px; color: #667085; font-variant-numeric: tabular-nums; }

/* 面板滚动容器修正：内容区滚动、底部按钮固定，避免按钮浮在中间 */
.dialog[style] {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
}
.dialog > .dlg-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.dialog > .dlg-foot {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 14px 28px !important;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(16,24,40,.04);
}
.dialog > .dlg-foot { flex: 0 0 auto; margin: 0 !important; padding: 14px 28px; border-top: 1px solid var(--line); background: #fff; }
@media (max-width: 820px) {
  .dialog > .dlg-body form .dlg-foot { margin: auto -14px 0 !important; padding: 12px 14px !important; }
}

/* 内容区高度交给 flex，去掉 100vh-260px 的死限高（否则底部会留一条空白） */
.dialog > .dlg-body, .dialog .dlg-body {
  max-height: none !important;
  overflow-y: auto !important;
}

/* 底栏贴底 */
.dialog > .dlg-foot {
  padding: 10px 28px 8px !important;
  align-items: center;
}
.dialog > .dlg-foot .btn { min-height: 34px; }

/* 审批流程可视化编辑器 */
.fw-card{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #e9edf3;border-radius:14px;padding:14px 16px;margin-bottom:6px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.fw-step{flex:0 0 28px;height:28px;border-radius:50%;background:#eef4ff;color:#1d5ae0;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center}
.fw-step-b{background:#fff4e8;color:#c2410c}
.fw-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.fw-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fw-label{font-size:12.5px;color:#8b93a2;min-width:74px}
.fw-ops{display:flex;gap:4px;flex-wrap:wrap}
.fw-insert{display:block;width:100%;margin:0 0 10px;padding:6px;border:1px dashed #d8dde6;border-radius:10px;background:#fafbfd;color:#98a2b3;font-size:12px;cursor:pointer}
.fw-insert:hover{border-color:#2b6cf6;color:#2b6cf6;background:#f5f9ff}
.fw-branch{border-color:#ffd9bf;background:#fffdfa}
.fw-branch-box{border:1px solid #eef1f6;border-radius:10px;padding:10px;background:#fff}
.fw-badge{display:inline-block;padding:1px 8px;border-radius:6px;background:#fff4e8;color:#c2410c;font-size:11.5px;font-weight:600}
.fw-branch-nodes{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding-left:8px}
.fw-sub{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:#fafbfd}
.fw-sub-no{width:18px;height:18px;border-radius:50%;background:#eef1f6;color:#667085;font-size:11px;display:flex;align-items:center;justify-content:center}
.fw-add-sub{border:1px dashed #d8dde6;border-radius:8px;background:#fff;color:#98a2b3;font-size:12px;padding:6px;cursor:pointer}
.fw-add-sub:hover{border-color:#2b6cf6;color:#2b6cf6}
.fw-preview{margin-top:14px;padding:12px 14px;border-radius:12px;background:#f5f9ff;border:1px solid #e3ecff;font-size:13px;color:#1f2937;line-height:1.7}

/* 工作流画布 */
.wf-wrap{display:grid;grid-template-columns:190px 1fr;gap:16px;align-items:start}
.wf-palette{position:sticky;top:0;background:#fafbfd;border:1px solid #eef1f6;border-radius:14px;padding:12px}
.wf-pal-title{font-size:12px;color:#98a2b3;margin-bottom:8px}
.wf-chip{background:#fff;border:1px solid #e3e8f0;border-radius:10px;padding:8px 10px;margin-bottom:8px;cursor:grab;display:flex;flex-direction:column;gap:2px;transition:.15s}
.wf-chip b{font-size:13px;color:#1f2937;font-weight:600}
.wf-chip span{font-size:11px;color:#98a2b3}
.wf-chip:hover{border-color:#2b6cf6;box-shadow:0 2px 8px rgba(43,108,246,.12)}
.wf-chip-branch{background:#fffdfa;border-color:#ffd9bf}
.wf-tip{font-size:11px;color:#b0b7c3;margin-top:10px;line-height:1.6}
.wf-canvas{min-height:240px;padding:4px 0}
.wf-drop{height:26px;border-radius:8px;border:1px dashed transparent;display:flex;align-items:center;justify-content:center;transition:.12s}
.wf-drop span{font-size:11px;color:#c3c9d4;opacity:0}
.wf-drop:hover{border-color:#d8dde6;background:#fafbfd}
.wf-drop:hover span{opacity:1}
.wf-drop.on{border-color:#2b6cf6;background:#eef4ff;height:34px}
.wf-drop.on span{opacity:1;color:#2b6cf6}
.wf-empty{border:1px dashed #d8dde6;border-radius:14px;padding:38px;text-align:center;color:#98a2b3;font-size:13px;background:#fafbfd}
.fw-drag{flex:0 0 16px;color:#c3c9d4;font-size:12px;cursor:grab;user-select:none;letter-spacing:-2px;line-height:28px}
.fw-drag:active{cursor:grabbing}
.fw-card.dragging{opacity:.45;border-style:dashed}
.fw-card{transition:box-shadow .15s,opacity .15s}
.fw-card:hover{box-shadow:0 2px 6px rgba(16,24,40,.06),0 12px 24px -14px rgba(16,24,40,.2)}
@media (max-width: 1100px){ .wf-wrap{grid-template-columns:1fr} .wf-palette{position:static} }

/* ===== 工作流画布（钉钉风格） ===== */
.wf-wrap{display:block}
.wf-palette{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:#fafbfd;border:1px solid #eef1f6;border-radius:12px;padding:8px 12px;margin-bottom:12px;position:static}
.wf-pal-title{font-size:12px;color:#98a2b3}
.wf-chip{background:#fff;border:1px solid #e3e8f0;border-radius:8px;padding:6px 10px;cursor:grab;display:flex;align-items:center;gap:6px}
.wf-chip b{font-size:12.5px;color:#1f2937;font-weight:600}
.wf-chip span{font-size:11px;color:#98a2b3}
.wf-chip:hover{border-color:#2b6cf6}
.wf-chip-branch{background:#fffdfa;border-color:#ffd9bf}
.wf-tip{font-size:11px;color:#b0b7c3}
.wf-canvas{position:relative;overflow:auto;background:#f7f8fa;border:1px solid #eef1f6;border-radius:14px;min-height:420px;max-height:58vh}
.wf-svg{position:absolute;left:0;top:0;pointer-events:none}
.wf-line{stroke:#c9d2e0;stroke-width:1.4;fill:none}
.wf-layer{position:absolute;left:0;top:0;width:100%;height:100%}
.wf-node{position:absolute;width:216px;background:#fff;border:1px solid #e3e8f0;border-radius:10px;padding:10px 12px;box-shadow:0 1px 2px rgba(16,24,40,.04);cursor:pointer;transition:.15s}
.wf-node:hover{box-shadow:0 4px 14px rgba(16,24,40,.1);border-color:#c7d4e8}
.wf-node-head{font-size:10.5px;color:#98a2b3;letter-spacing:.5px;margin-bottom:4px}
.wf-node-title{font-size:13px;font-weight:600;color:#1f2937}
.wf-node-desc{font-size:11.5px;color:#8b93a2;margin-top:3px}
.wf-start{border-color:#2b6cf6;background:#f5f9ff}
.wf-start .wf-node-head{color:#2b6cf6}
.wf-approver{border-left:3px solid #f59e0b}
.wf-role{border-left:3px solid #2b6cf6}
.wf-cc{border-left:3px solid #12a150;background:#fbfffc}
.wf-cond{position:absolute;background:#fff;border:1px dashed #c9d2e0;border-radius:10px;padding:8px 12px;text-align:center}
.wf-cond-title{font-size:12.5px;font-weight:600;color:#2b6cf6}
.wf-cond-sub{font-size:11px;color:#98a2b3;margin-top:2px}
.wf-ccond{position:absolute;background:#fff;border:1px solid #e3e8f0;border-radius:10px;padding:8px 10px}
.wf-ccond-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.wf-ccond-tag{font-size:11px;font-weight:600;color:#12a150}
.wf-ccond-pri{font-size:10.5px;color:#b0b7c3}
.wf-ccond-text{font-size:11.5px;color:#4b5563;line-height:1.4}
.wf-end{position:absolute;font-size:12px;color:#98a2b3;text-align:center;width:120px}
.wf-add{position:absolute;width:22px;height:22px;border-radius:50%;background:#2b6cf6;color:#fff;border:0;cursor:pointer;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(43,108,246,.4);z-index:3}
.wf-add:hover{background:#1d5ae0;transform:scale(1.1)}
.wf-empty{position:absolute;left:50%;top:120px;transform:translateX(-50%);color:#98a2b3;font-size:13px}

.wf-main{display:grid;grid-template-columns:1fr 300px;gap:14px;align-items:start}
.wf-inspector{background:#fff;border:1px solid #eef1f6;border-radius:14px;padding:14px;min-height:220px;position:sticky;top:0}
.wf-ins-head{font-size:13px;font-weight:600;color:#1f2937;margin-bottom:12px}
.wf-ins-empty{color:#98a2b3;font-size:12.5px;text-align:center;padding:40px 10px;line-height:1.8}
.wf-node.wf-sel{border-color:#2b6cf6;box-shadow:0 0 0 3px rgba(43,108,246,.18)}
@media (max-width: 1200px){ .wf-main{grid-template-columns:1fr} .wf-inspector{position:static} }

.wf-ccond{cursor:pointer}
.wf-ccond.wf-sel{border-color:#2b6cf6;box-shadow:0 0 0 3px rgba(43,108,246,.16)}
.wf-node.drop-target{border-color:#12a150;box-shadow:0 0 0 3px rgba(18,161,80,.18)}
.wf-node.dragging{opacity:.45}

/* 简易模式：一句话一步 */
.wf-simple{position:relative;background:transparent;border:0;min-height:0;max-height:none;overflow:visible}
.wf-simple .wf-step-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #eef1f6;border-radius:12px;padding:12px 14px;margin-bottom:8px}
.wf-simple .wf-step-row:hover{border-color:#dbe4f3}
.wf-simple .wf-step-no{flex:0 0 24px;height:24px;border-radius:50%;background:#eef4ff;color:#1d5ae0;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.wf-simple .wf-step-who{font-size:13.5px;color:#1f2937;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.wf-simple .wf-step-when{font-size:12.5px;color:#8b93a2;display:flex;align-items:center;gap:6px;margin-left:auto}
.wf-simple .wf-step-ops{margin-left:8px}
.wf-simple .wf-step-block{background:#fbfcfe;border:1px dashed #dbe4f3;border-radius:14px;padding:12px 14px;margin-bottom:10px}
.wf-simple .wf-step-title{font-size:13px;font-weight:600;color:#1f2937;margin-bottom:10px;display:flex;gap:8px;align-items:center}
.wf-simple .wf-step-tier{background:#fff;margin-bottom:6px;padding:10px 12px}
.wf-simple .wf-step-if{font-size:13px;color:#1f2937;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.wf-simple .wf-step-add{border:1px dashed #d8dde6;background:#fff;border-radius:10px;padding:8px 12px;color:#8b93a2;font-size:12.5px;cursor:pointer;width:100%}
.wf-simple .wf-step-add:hover{border-color:#2b6cf6;color:#2b6cf6}
.wf-simple-add{display:flex;gap:8px;margin-top:12px}

/* 简易模式排版修正 */
.wf-simple .wf-step-row{align-items:center;flex-wrap:nowrap;overflow-x:auto}
.wf-simple .wf-step-who{flex-wrap:nowrap;white-space:nowrap;gap:6px}
.wf-simple .wf-step-when{white-space:nowrap;flex-wrap:nowrap}
.wf-simple .wf-step-if{flex-wrap:nowrap;white-space:nowrap}
.wf-simple .wf-step-tier .wf-step-who{white-space:nowrap}
.wf-simple .select,.wf-simple .input{flex:0 0 auto}

.wf-simple .wf-tier-no{flex:0 0 20px;height:20px;border-radius:50%;background:#fff4e8;color:#c2410c;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.wf-simple .wf-step-ops{margin-left:auto}
.wf-simple .wf-step-row{gap:8px}
.wf-simple .wf-step-if{font-size:13px}



.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; line-height: 18px; }
.badge-green { background: #e9f8ef; color: #12874a; }
.badge-amber { background: #fff4e8; color: #c2410c; }
.badge-red { background: #fdeceb; color: #d92d20; }
.warn-text { color: #d92d20; }

.inl-select { height: 30px; min-width: 118px; max-width: 150px; border: 1px solid transparent; background: transparent; border-radius: 7px; font-size: 13px; color: #1f2937; padding: 0 4px; cursor: pointer; }
.inl-select:hover { border-color: #d8dde6; background: #fff; }
.inl-select:focus { outline: none; border-color: #2b6cf6; background: #fff; box-shadow: 0 0 0 3px rgba(43,108,246,.12); }
.badge-blue { background: #eef3ff; color: #2b6cf6; }

.pv-result { margin-top: 12px; padding: 12px 14px; background: #f7f9fc; border: 1px solid #e8edf5; border-radius: 10px; }
.pv-chain { font-size: 14px; font-weight: 600; color: #1f2937; letter-spacing: .2px; }

/* ===== AI 改表 ===== */
.ai-mascot {
  position: fixed; z-index: 900; width: 74px; height: 86px; cursor: grab;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  user-select: none; touch-action: none; -webkit-user-drag: none;
  filter: drop-shadow(0 10px 18px rgba(232,89,12,.28));
  transition: transform .18s ease;
}
.ai-mascot:hover { transform: translateY(-3px); }
.ai-mascot.dragging { cursor: grabbing; transform: scale(1.06); filter: drop-shadow(0 16px 26px rgba(232,89,12,.36)); }
.ai-animal { width: 66px; height: 66px; animation: ai-bob 3.2s ease-in-out infinite; }
.ai-mascot.dragging .ai-animal { animation: none; }
@keyframes ai-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.ai-eyes { animation: ai-blink 5.2s infinite; transform-origin: 50px 53px; }
@keyframes ai-blink { 0%,94%,100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.ai-name { font-size: 11px; color: #b04a12; background: #fff; border-radius: 999px; padding: 1px 9px;
  margin-top: -2px; box-shadow: 0 2px 8px rgba(16,24,40,.12); font-weight: 600; letter-spacing: .5px; }
.ai-bubble { position: absolute; bottom: 84px; right: -4px; white-space: nowrap; background: #fff;
  border-radius: 12px; padding: 7px 11px; font-size: 12px; color: #1f2937;
  box-shadow: 0 8px 24px rgba(16,24,40,.16); opacity: 0; transform: translateY(6px) scale(.94);
  transition: all .22s ease; pointer-events: none; }
.ai-bubble::after { content: ''; position: absolute; right: 22px; bottom: -5px; width: 10px; height: 10px;
  background: #fff; transform: rotate(45deg); box-shadow: 3px 3px 6px rgba(16,24,40,.06); }
.ai-bubble.show { opacity: 1; transform: translateY(0) scale(1); }
.ai-fab:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(43,108,246,.42); }
.ai-mask { position: fixed; inset: 0; background: rgba(15,23,42,.28); z-index: 901; }
.ai-panel {
  position: fixed; z-index: 902; width: 380px; max-height: 70vh; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15,23,42,.24); display: flex; flex-direction: column; overflow: hidden;
}
.ai-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #eef1f6; }
.ai-head b { font-size: 14px; }
.ai-sub { font-size: 11.5px; color: #98a2b3; }
.ai-x { margin-left: auto; border: 0; background: transparent; font-size: 14px; color: #98a2b3; cursor: pointer; }
.ai-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.ai-cols { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ai-tag-h { font-size: 11.5px; color: #98a2b3; }
.ai-tag { font-size: 11.5px; color: #4b5563; background: #f3f5f9; border-radius: 999px; padding: 2px 9px; }
.ai-input { width: 100%; border: 1px solid #d8dde6; border-radius: 10px; padding: 10px 12px; font-size: 13px; resize: vertical; font-family: inherit; }
.ai-input:focus { outline: none; border-color: #2b6cf6; box-shadow: 0 0 0 3px rgba(43,108,246,.12); }
.ai-row { display: flex; gap: 8px; }
.ai-reply { font-size: 12.5px; color: #4b5563; line-height: 1.9; }
.ai-ok { color: #12874a; }
.ai-warn { color: #d92d20; }
.ai-muted { color: #98a2b3; }

.ai-tabs { display: flex; gap: 4px; margin-left: 8px; background: #f3f5f9; border-radius: 999px; padding: 2px; }
.ai-tab { font-size: 12px; color: #6b7280; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.ai-tab.on { background: #fff; color: #2b6cf6; font-weight: 600; box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.ai-chip { font-size: 11.5px; color: #2b6cf6; background: #eef3ff; border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.ai-chip:hover { background: #e0eaff; }
.ai-hint { font-size: 11.5px; color: #98a2b3; align-self: center; }
.ai-result { font-size: 12.5px; color: #4b5563; line-height: 1.8; }
.ai-rtitle { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 2px; }
.ai-rsum { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.ai-tablewrap { max-height: 260px; overflow: auto; border: 1px solid #eef1f6; border-radius: 8px; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ai-table th { position: sticky; top: 0; background: #f7f9fc; font-weight: 600; color: #4b5563; text-align: left; padding: 6px 8px; border-bottom: 1px solid #eef1f6; white-space: nowrap; }
.ai-table td { padding: 6px 8px; border-bottom: 1px solid #f4f6fa; white-space: nowrap; }
.ai-sql { margin-top: 8px; font-size: 11.5px; color: #8b93a2; }
.ai-sql summary { cursor: pointer; }
.ai-sql code { display: block; margin-top: 6px; padding: 8px; background: #f7f9fc; border-radius: 6px; font-size: 11px; color: #4b5563; white-space: pre-wrap; word-break: break-all; }

.ai-note { font-size: 12px; color: #6b7280; line-height: 1.8; background: #f7f9fc; border-radius: 8px; padding: 10px 12px; }
.ai-thinking { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #6b7280; padding: 10px 0; }
.ai-spin { width: 14px; height: 14px; border: 2px solid #dbe3f0; border-top-color: #2b6cf6; border-radius: 50%; animation: ai-spin .8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-check-result { font-size: 12.5px; color: #4b5563; }
.ai-find { border: 1px solid #eef1f6; border-left: 3px solid #f0b429; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.ai-find.high { border-left-color: #d92d20; }
.ai-find.low { border-left-color: #98a2b3; }
.ai-find-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ai-find-top b { font-size: 12.8px; color: #1f2937; font-weight: 600; }
.ai-lv { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: #fff4e8; color: #c2410c; flex: 0 0 auto; }
.ai-lv.high { background: #fdeceb; color: #d92d20; }
.ai-lv.low { background: #f3f5f9; color: #6b7280; }
.ai-find-detail { color: #6b7280; line-height: 1.75; margin-bottom: 4px; }
.ai-find-action { color: #1f2937; line-height: 1.75; background: #f7f9fc; border-radius: 6px; padding: 6px 8px; }
.ai-find-link { display: inline-block; margin-top: 6px; font-size: 12px; color: #2b6cf6; text-decoration: none; }
.ai-find-link:hover { text-decoration: underline; }
.ai-round { margin-top: 8px; font-size: 11.5px; color: #4b5563; }
.ai-round-sql { margin: 4px 0; padding: 6px 8px; background: #f7f9fc; border-radius: 6px; font-family: ui-monospace, monospace; font-size: 10.5px; color: #6b7280; word-break: break-all; }

/* 安安的动作与表情 */
.ai-mascot.hop .ai-animal { animation: ai-hop .62s cubic-bezier(.28,.84,.42,1); }
@keyframes ai-hop { 0%{transform:translateY(0)} 30%{transform:translateY(-14px) scale(1.06)} 60%{transform:translateY(0) scale(.96)} 80%{transform:translateY(-5px)} 100%{transform:translateY(0)} }
.ai-mascot.tilt .ai-animal { animation: ai-tilt 1.3s ease-in-out; }
@keyframes ai-tilt { 0%,100%{transform:rotate(0)} 35%{transform:rotate(-9deg)} 70%{transform:rotate(6deg)} }
.ai-mascot.ear .ai-animal { animation: ai-ear 1.1s ease-in-out; }
@keyframes ai-ear { 0%,100%{transform:scale(1)} 30%{transform:scale(1.05,.96)} 60%{transform:scale(.97,1.04)} }
.ai-mascot.stretch .ai-animal { animation: ai-stretch 1.3s ease-in-out; }
@keyframes ai-stretch { 0%,100%{transform:scale(1)} 45%{transform:scale(1.08,.94) translateY(2px)} }
.ai-brows { transition: opacity .2s ease; opacity: 0; }
.ai-mascot.worried .ai-brows { opacity: 1; }
.ai-mascot.worried .ai-animal { filter: saturate(.92); }
.ai-mascot.happy .ai-eyes { animation: ai-happy-eyes 1.2s ease-in-out; }
@keyframes ai-happy-eyes { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(.35)} }

.ai-ext { transform-origin: 78px 84px; animation: ai-ext .5s ease-out 3.2s 2; }
@keyframes ai-ext { 0%,100% { transform: rotate(0) } 40% { transform: rotate(-12deg) } 70% { transform: rotate(6deg) } }

/* 灭火器喷雾 */
.ai-spray { opacity: 0; transition: opacity .2s; }
.ai-mascot.spraying .ai-spray { animation: ai-spray .9s ease-out; }
@keyframes ai-spray {
  0% { opacity: 0; transform: translate(0,0) scale(.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(10px,-10px) scale(1.6); }
}
/* 拖动烟雾轨迹 */
.ai-puff { position: fixed; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.92);
  box-shadow: 0 0 8px rgba(232,89,12,.25); pointer-events: none; z-index: 899;
  animation: ai-puffOut .62s ease-out forwards; }
@keyframes ai-puffOut {
  0% { opacity: .9; transform: scale(.5); }
  100% { opacity: 0; transform: scale(2.1) translateY(-6px); }
}
/* 出问题时头盔压低 */
.ai-mascot.serious .ai-helmet { transform: translateY(2.6px) rotate(-2deg); transform-origin: 50px 44px; transition: transform .3s ease; }
.ai-mascot .ai-helmet { transition: transform .3s ease; }
.ai-mascot.serious .ai-eyes { transform: scaleY(.82); transform-origin: 50px 57px; }

/* 安安：最初版小动物 */
.ai-animal { width: 66px; height: 66px; animation: ai-bob 3.2s ease-in-out infinite; display: block; }
.ai-mascot { width: 74px; height: 86px; }
.ai-mascot.dragging .ai-animal { animation: none; }
.ai-mascot .ai-eyes { animation: ai-blink2 5.2s infinite; transform-origin: 50px 53px; }
.ai-mascot.serious .ai-eyes { transform: scaleY(.78); }
.ai-mascot.serious .ai-animal { filter: saturate(.9) brightness(.98); }
.ai-name { margin-top: -2px; }

.ai-mascot .ext { transform-origin: 32px 140px; animation: ai-ext2 4.4s ease-in-out infinite; }
@keyframes ai-ext2 { 0%,88%,100% { transform: rotate(0) } 92% { transform: rotate(-5deg) } 96% { transform: rotate(3deg) } }

.tinylabel { font-size: 11.5px; color: #98a2b3; margin-bottom: 3px; }
.btn-green { color: #12874a; border-color: #bfe3cd; background: #f2fbf5; }
.btn-green:hover { background: #e6f7ec; border-color: #12874a; }

/* 合同/订单表格统一 */
.bar { height: 6px; background: #eef1f6; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.bar > div { height: 100%; background: linear-gradient(90deg,#4f8cff,#2b6cf6); }
.contract-table th, .contract-table td { vertical-align: middle; }
.contract-table tr.current td { background: #fffaf6; }

/* ===== 维保现场闭环（移动端弹层） ===== */
.sf-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 950; }
.sf-panel { position: fixed; left: 0; right: 0; bottom: 0; top: 0; margin: auto; width: 100%; max-width: 560px;
  height: 100%; max-height: 100%; background: #f4f6f9; z-index: 951; display: flex; flex-direction: column; }
@media (min-width: 700px) {
  .sf-panel { top: 4vh; bottom: 4vh; height: auto; border-radius: 18px; max-height: 92vh; box-shadow: 0 30px 80px rgba(15,23,42,.3); }
}
.sf-head { display: flex; align-items: center; padding: 14px 16px; background: #fff; border-bottom: 1px solid #eef1f6; }
.sf-head b { font-size: 15px; }
.sf-x { margin-left: auto; border: 0; background: transparent; font-size: 16px; color: #98a2b3; cursor: pointer; }
.sf-body { flex: 1; overflow-y: auto; padding: 14px 16px 20px; }
.sf-foot { padding: 12px 16px 16px; background: #fff; border-top: 1px solid #eef1f6; }
.sf-note { font-size: 12.5px; color: #6b7280; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; line-height: 1.7; }
.sf-field { margin-bottom: 14px; }
.sf-field label { display: block; font-size: 12.5px; color: #8b93a2; margin-bottom: 6px; }
.sf-req { color: #d92d20; margin-left: 2px; }
.sf-field input, .sf-field select, .sf-field textarea { width: 100%; border: 1px solid #d8dde6; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; background: #fff; font-family: inherit; }
.sf-field textarea { height: 78px; resize: none; }
.sf-btn { width: 100%; height: 46px; border: 0; border-radius: 12px; background: #e8590c; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.sf-btn:disabled { background: #f0b49a; }
.sf-btn.ghost { background: #fff; color: #4b5563; border: 1px solid #e3e8f0; }
.sf-geo { font-size: 12px; color: #8b93a2; margin-top: 6px; line-height: 1.6; }
.sf-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sf-imgs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid #eef1f6; }
.sf-seg { display: flex; gap: 8px; }
.sf-seg button { flex: 1; height: 40px; border-radius: 10px; border: 1px solid #e3e8f0; background: #fff; font-size: 14px; color: #4b5563; cursor: pointer; }
.sf-seg button.on { background: #fff4ed; border-color: #e8590c; color: #e8590c; font-weight: 600; }
.sf-checks { display: flex; flex-wrap: wrap; gap: 10px; background: #fff; padding: 10px 12px; border-radius: 10px; border: 1px solid #eef1f6; }
.sf-check { font-size: 13px; color: #4b5563; display: flex; align-items: center; gap: 5px; }
.sf-partlist { margin-top: 8px; }
.sf-part { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; font-size: 13px; }
.sf-part button { border: 0; background: transparent; color: #d92d20; font-size: 12px; cursor: pointer; }
.sf-empty { font-size: 12px; color: #98a2b3; }
.sf-row2 { display: flex; gap: 10px; }
.sf-link { background: #fff; border: 1px dashed #d8dde6; border-radius: 10px; padding: 12px; font-size: 13px; word-break: break-all; color: #2b6cf6; }

/* ===== 语音输入按钮 ===== */
.vi-btn { position: fixed; z-index: 940; display: none; align-items: center; justify-content: center; gap: 4px;
  min-width: 40px; height: 34px; padding: 0 10px; border: 1px solid #e3e8f0; border-radius: 999px;
  background: #fff; color: #4b5563; font-size: 15px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(16,24,40,.14); }
.vi-btn:hover { border-color: #2b6cf6; color: #2b6cf6; }
.vi-btn.on { background: #e8590c; border-color: #e8590c; color: #fff; }
.vi-btn.on .vi-wave { display: inline-flex; }
.vi-wave { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.vi-wave i { width: 2px; background: #fff; border-radius: 2px; animation: vi-wave .9s ease-in-out infinite; }
.vi-wave i:nth-child(1) { height: 5px; animation-delay: 0s; }
.vi-wave i:nth-child(2) { height: 11px; animation-delay: .15s; }
.vi-wave i:nth-child(3) { height: 7px; animation-delay: .3s; }
@keyframes vi-wave { 0%,100% { transform: scaleY(.6) } 50% { transform: scaleY(1.15) } }
.vi-btn::after { content: attr(data-tip); position: absolute; right: 0; bottom: 42px; max-width: 60vw;
  background: rgba(17,24,39,.92); color: #fff; font-size: 12px; line-height: 1.5; padding: 6px 10px;
  border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vi-btn:not([data-tip])::after { display: none; }

.sf-part-card { background: #f7f9fc; border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.sf-part-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.sf-part-head button { border: 0; background: transparent; color: #d92d20; font-size: 12px; cursor: pointer; }
.sf-part-fields { display: flex; gap: 8px; }
.sf-part-fields label { flex: 1; font-size: 11.5px; color: #98a2b3; }
.sf-part-fields input { width: 100%; height: 32px; border: 1px solid #e3e8f0; border-radius: 8px; padding: 0 8px;
  font-size: 13px; background: #fff; margin-top: 4px; }
.sf-part-total { text-align: right; font-size: 13px; color: #e8590c; font-weight: 600; }


/* ===== 采购清单：滚动区 + 吸顶表头 + 选中行高亮 ===== */
.pur-wrap { display: flex; flex-direction: column; height: calc(100vh - 150px); max-height: 86vh; overflow: hidden; }
.pur-fixed { flex: 0 0 auto; }
.pur-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; border-top: 1px solid var(--line); }
.pur-scroll table thead th { position: sticky; top: 0; z-index: 3; background: #fff; box-shadow: inset 0 -1px 0 var(--line); }
tr.pur-sel td { background: #fff7ed !important; }
tr.pur-sel:hover td { background: #ffefdd !important; }

/* 供应商报价区：固定在清单上方，高度随家数自适应（超过 5 行内部滚动） */
.pur-quotes { flex: 0 0 auto; max-height: 26vh; overflow: auto; border-top: 1px solid var(--line); padding: 6px 0 4px; background: #fcfdff; }
.pur-quotes table td { padding: 7px 8px; font-size: 12.5px; }
.pur-quotes table th { padding: 7px 8px; }
.pur-quotes .pur-final { height: 26px; }
.pur-quotes table { margin-top: 4px; }
.pur-quotes thead th { position: sticky; top: 0; z-index: 3; background: #fff; box-shadow: inset 0 -1px 0 var(--line); }
.pur-quotes .q-title { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; }

.stat-chip { cursor: pointer; transition: transform .12s, box-shadow .2s; }
.stat-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px -6px rgba(16,24,40,.4); }
.stat-chip.active { outline: 2px solid currentColor; }

/* 报价表：固定列宽，操作列不换行 */
.pur-quotes table { table-layout: fixed; width: 100%; }
.pur-quotes th, .pur-quotes td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pur-quotes td:first-child, .pur-quotes th:first-child { white-space: normal; overflow: visible; }
.pur-quotes th:nth-child(1) { width: 21%; }
.pur-quotes th:nth-child(2) { width: 7%; }
.pur-quotes th:nth-child(3) { width: 9%; }
.pur-quotes th:nth-child(4) { width: 12%; }
.pur-quotes th:nth-child(5) { width: 8%; }
.pur-quotes th:nth-child(6) { width: 5%; }
.pur-quotes th:nth-child(7) { width: 6%; }
.pur-quotes th:nth-child(8) { width: 6%; }
.pur-quotes th:nth-child(9) { width: 7%; }
.pur-quotes th:nth-child(10) { width: 19%; }
.pur-quotes td:last-child, .pur-quotes th:last-child { white-space: nowrap; overflow: visible; text-align: right; }
.pur-quotes .tag { white-space: nowrap; display: inline-block; }
.pur-quotes .btn { padding: 4px 8px; font-size: 11.5px; line-height: 1.4; }
.pur-quotes td > .row { flex-wrap: nowrap; justify-content: flex-end; }
.pur-quotes .pur-final { width: 100%; max-width: 130px; }

/* 询价单报价表：11 列，单独分配宽度 */
#inq-quotes-wrap table { table-layout: fixed; width: 100%; }
#inq-quotes-wrap th:nth-child(1) { width: 34px; }
#inq-quotes-wrap th:nth-child(2) { width: 17%; }
#inq-quotes-wrap th:nth-child(3) { width: 8%; }
#inq-quotes-wrap th:nth-child(4) { width: 10%; }
#inq-quotes-wrap th:nth-child(5) { width: 12%; }
#inq-quotes-wrap th:nth-child(6) { width: 8%; }
#inq-quotes-wrap th:nth-child(7) { width: 5%; }
#inq-quotes-wrap th:nth-child(8) { width: 6%; }
#inq-quotes-wrap th:nth-child(9) { width: 6%; }
#inq-quotes-wrap th:nth-child(10) { width: 7%; }
#inq-quotes-wrap th:nth-child(11) { width: 150px; }
#inq-quotes-wrap td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#inq-quotes-wrap td:nth-child(2) { white-space: normal; }
#inq-quotes-wrap td:last-child { overflow: visible; }

/* 工具栏下拉菜单 */
.tb-menu-pop { position: fixed; z-index: 300; min-width: 210px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 16px 40px -16px rgba(16,24,40,.35), 0 0 0 1px rgba(16,24,40,.02); }
.tb-menu-grp { font-size: 11px; color: #98a2b3; padding: 6px 10px 3px; }
.tb-menu-item { display: block; width: 100%; text-align: left; padding: 8px 10px;
  border: 0; background: none; border-radius: 7px; font-size: 13px; color: #344054;
  cursor: pointer; font-family: inherit; }
.tb-menu-item:hover { background: #f5f7fb; color: #101828; }
.tb-menu-item.danger { color: #d92d20; }

/* 采购单详情页签 */
.pur-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 4px; }
.pur-tab { border: 0; background: none; padding: 9px 14px; font-size: 13px; color: #667085;
  cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; }
.pur-tab:hover { color: #101828; }
.pur-tab.on { color: #2b6cf6; border-bottom-color: #2b6cf6; font-weight: 600; }
.pur-tab-n { display: inline-block; margin-left: 6px; font-size: 11px; color: #667085;
  background: #f2f4f8; border-radius: 8px; padding: 1px 7px; }
.pur-tab.on .pur-tab-n { background: #eef4ff; color: #2b6cf6; }

/* 概览键值 */
.pur-kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 18px; }
.pur-kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px;
  background: #f9fafc; border-radius: 8px; font-size: 13px; }
.pur-kv .k { color: #98a2b3; }
.pur-kv .v { color: #101828; font-weight: 500; text-align: right; }

/* 采购单详情头部信息卡 */
.pur-head { display: flex; gap: 20px; align-items: flex-start; padding: 4px 0 12px; flex-wrap: wrap; }
.pur-head-l { flex: 1 1 380px; min-width: 300px; }
.pur-head-title { font-size: 18px; font-weight: 700; color: #101828; letter-spacing: .2px; }
.ph-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.ph-meta-i { font-size: 12px; color: #667085; }
.ph-meta-i i { font-style: normal; color: #98a2b3; margin-right: 4px; }
.ph-link { cursor: pointer; color: #2b6cf6; }
.ph-link:hover { text-decoration: underline; }

.ph-bar { position: relative; height: 6px; background: #eef1f6; border-radius: 99px; margin-top: 14px; overflow: hidden; }
.ph-bar-award { position: absolute; left: 0; top: 0; bottom: 0; background: #b9d4ff; border-radius: 99px; }
.ph-bar-done { position: absolute; left: 0; top: 0; bottom: 0; background: #34c77b; border-radius: 99px; }
.ph-bar-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: #667085; }
.ph-bar-legend .dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; }
.ph-bar-legend .dot.done { background: #34c77b; }
.ph-bar-legend .dot.award { background: #b9d4ff; }
.ph-bar-legend .dot.quote { background: #c4b5fd; }
.ph-bar-legend .dot.sent { background: #bae6fd; }
.ph-bar-legend .dot.none { background: #e5e7eb; }

.pur-head-r { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 8px; flex: 0 0 auto; }
.ph-tile { background: #f9fafc; border-radius: 10px; padding: 9px 12px; min-width: 118px; }
.ph-tile .k { font-size: 11px; color: #98a2b3; }
.ph-tile .v { font-size: 14px; font-weight: 600; margin-top: 3px; white-space: nowrap; }

/* 弹层叠加：下层只作为背景，不再遮暗 */
#modal-root { position: relative; }
.mask { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.mask-stack { background: transparent !important; backdrop-filter: none !important; }

/* 弹窗返回上一级 */
.dlg-back { border: 1px solid var(--line); background: #fff; color: #344054; font-size: 12.5px;
  padding: 5px 10px; border-radius: 8px; cursor: pointer; margin-right: 10px; font-family: inherit; }
.dlg-back:hover { background: #f5f7fb; color: #2b6cf6; border-color: #c7d7fe; }

/* 登录页页脚（备案号） */
.login-foot { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #e6eaf0;
  font-size: 11.5px; color: #98a2b3; line-height: 1.9; text-align: center; }
.login-foot a { color: #98a2b3; text-decoration: none; }
.login-foot a:hover { color: #2b6cf6; text-decoration: underline; }


/* ================= 登录页 · 科技感版 ================= */
.login{
  position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:48px 24px;overflow:hidden;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(43,108,246,.30), transparent 55%),
    radial-gradient(900px 600px at 92% 110%, rgba(217,72,15,.22), transparent 55%),
    linear-gradient(135deg,#070c16 0%,#0c1526 45%,#101d33 100%);
}

/* 网格底纹 */
.lg-grid{
  position:absolute;inset:-2px;pointer-events:none;opacity:.5;
  background-image:
    linear-gradient(rgba(120,170,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.07) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(ellipse 75% 60% at 50% 45%, #000 35%, transparent 100%);
  -webkit-mask-image:radial-gradient(ellipse 75% 60% at 50% 45%, #000 35%, transparent 100%);
  animation:lgGridDrift 28s linear infinite;
}
@keyframes lgGridDrift{ from{background-position:0 0,0 0} to{background-position:44px 44px,44px 44px} }

/* 光晕 */
.lg-glow{
  position:absolute;width:720px;height:720px;border-radius:50%;pointer-events:none;
  left:-200px;top:-260px;filter:blur(10px);
  background:radial-gradient(circle, rgba(43,108,246,.28), transparent 62%);
  animation:lgPulse 7s ease-in-out infinite;
}
@keyframes lgPulse{ 0%,100%{transform:scale(1);opacity:.85} 50%{transform:scale(1.08);opacity:1} }

.lg-wrap{
  position:relative;z-index:2;width:100%;max-width:1120px;
  display:grid;grid-template-columns:1.15fr .85fr;gap:64px;align-items:center;
}

/* 左侧品牌区 */
.lg-hero{color:#e8eefb}
.lg-hero-top{display:flex;align-items:center;gap:14px;margin-bottom:34px}
.lg-mark{
  width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  font-size:24px;font-weight:800;color:#fff;
  background:linear-gradient(135deg,#ff8a4c,#c2410c);
  box-shadow:0 10px 30px rgba(194,65,12,.45), inset 0 1px 0 rgba(255,255,255,.35);
}
.lg-co{font-size:16px;font-weight:700;letter-spacing:.6px}
.lg-co-en{font-size:10.5px;color:#7f8fac;letter-spacing:1.4px;margin-top:4px}

.lg-title{
  font-size:44px;line-height:1.28;font-weight:800;letter-spacing:1px;margin:0 0 16px;
  color:#f4f8ff;
}
.lg-title span{
  background:linear-gradient(90deg,#7ab0ff,#b9d4ff 40%,#ffb27a 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.lg-desc{font-size:13.5px;line-height:2;color:#9aa9c4;margin:0 0 34px}

.lg-feats{list-style:none;padding:0;margin:0 0 40px;display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}
.lg-feats li{
  display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;align-items:center;
  padding:12px 14px;border-radius:12px;
  background:rgba(255,255,255,.035);border:1px solid rgba(140,175,255,.13);
  backdrop-filter:blur(2px);transition:.22s;
}
.lg-feats li:hover{background:rgba(122,176,255,.09);border-color:rgba(122,176,255,.3);transform:translateY(-2px)}
.lg-feats i{
  grid-row:1 / span 2;font-style:normal;font-size:11px;font-weight:700;color:#6f9bff;
  font-family:ui-monospace,Consolas,monospace;letter-spacing:1px;
}
.lg-feats b{font-size:13px;font-weight:600;color:#dbe6f8}
.lg-feats span{font-size:11px;color:#7b8aa6;margin-top:2px}

.lg-hero-foot{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#6d7c96}
.lg-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.6);animation:lgBlink 2s infinite}
@keyframes lgBlink{ 0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }

/* 右侧登录卡 */
.login-card{
  width:100%;max-width:392px;justify-self:end;
  background:rgba(255,255,255,.985);border-radius:18px;padding:32px 30px 24px;
  box-shadow:0 40px 90px -30px rgba(2,8,23,.75), 0 0 0 1px rgba(255,255,255,.06);
}
.lg-card-hd{margin-bottom:20px}
.lg-card-title{font-size:19px;font-weight:700;color:#101828;letter-spacing:.5px}
.lg-card-sub{font-size:12px;color:#98a2b3;margin-top:6px}

.lg-field{margin-bottom:15px}
.lg-field label{display:block;font-size:12px;color:#667085;margin-bottom:7px;font-weight:500}
.lg-input-wrap{position:relative;display:flex;align-items:center}
.lg-ico{position:absolute;left:12px;font-size:13px;opacity:.45;pointer-events:none}
.lg-input-wrap input{
  width:100%;height:44px;border:1px solid #e4e7ec;border-radius:10px;
  padding:0 12px 0 38px;font-size:14px;color:#101828;background:#fbfcfe;
  transition:.18s;outline:none;
}
.lg-input-wrap input::placeholder{color:#b3bbc9}
.lg-input-wrap input:focus{border-color:#2b6cf6;background:#fff;box-shadow:0 0 0 3px rgba(43,108,246,.12)}

.lg-btn{
  width:100%;height:46px;margin-top:8px;border:0;border-radius:10px;cursor:pointer;
  font-size:15px;font-weight:600;letter-spacing:3px;color:#fff;
  background:linear-gradient(135deg,#2b6cf6,#1a4fd0);
  box-shadow:0 12px 24px -10px rgba(43,108,246,.7);
  transition:.18s;
}
.lg-btn:hover{transform:translateY(-1px);box-shadow:0 16px 28px -10px rgba(43,108,246,.8)}
.lg-btn:active{transform:translateY(0)}
.lg-btn:disabled{background:#c3cbd8;box-shadow:none;cursor:not-allowed}

.lg-tips{display:flex;justify-content:space-between;align-items:center;margin-top:16px;font-size:11.5px;color:#98a2b3}
.lg-ver{font-family:ui-monospace,Consolas,monospace;letter-spacing:.5px;color:#c3cbd8}

.login-err{background:#fdeceb;color:#d92d20;font-size:12.5px;padding:9px 11px;border-radius:8px;margin-bottom:12px;display:none}
.login-err.on{display:block}
.login-foot{margin-top:16px;padding-top:12px;border-top:1px dashed #eceff4;font-size:11px;color:#b3bbc9;line-height:1.9;text-align:center}
.login-foot a{color:#b3bbc9;text-decoration:none}
.login-foot a:hover{color:#2b6cf6;text-decoration:underline}

/* 平板：收窄 */
@media (max-width:1080px){
  .lg-wrap{grid-template-columns:1fr;gap:36px;max-width:460px}
  .lg-hero{text-align:left}
  .lg-title{font-size:32px}
  .lg-feats{grid-template-columns:1fr 1fr;gap:10px 12px}
  .login-card{justify-self:stretch;max-width:none}
}

/* 手机：只留必要元素 */
@media (max-width:640px){
  .login{padding:28px 16px;align-items:flex-start}
  .lg-wrap{gap:24px;padding-top:8px}
  .lg-hero-top{margin-bottom:20px}
  .lg-mark{width:44px;height:44px;border-radius:12px;font-size:20px}
  .lg-co{font-size:14.5px}
  .lg-co-en{font-size:9px;letter-spacing:.8px}
  .lg-title{font-size:26px;margin-bottom:10px}
  .lg-desc{font-size:12.5px;line-height:1.85;margin-bottom:0}
  .lg-feats,.lg-hero-foot{display:none}
  .login-card{padding:24px 20px 18px;border-radius:16px}
  .lg-card-title{font-size:17px}
}

@media (prefers-reduced-motion: reduce){
  .lg-grid,.lg-glow,.lg-dot{animation:none}
}
