/* ============ 商城IT工单处理系统 样式 ============ */
* { margin:0; padding:0; box-sizing:border-box; }
:root{
  --primary:#2563eb; --primary-dark:#1d4ed8; --primary-light:#eff6ff;
  --bg:#f4f6fa; --card:#ffffff; --border:#e5e9f0;
  --text:#1f2937; --text2:#6b7280; --text3:#9ca3af;
  --green:#16a34a; --green-bg:#f0fdf4;
  --orange:#ea580c; --orange-bg:#fff7ed;
  --red:#dc2626; --red-bg:#fef2f2;
  --purple:#7c3aed; --purple-bg:#f5f3ff;
  --sidebar:#1e293b; --sidebar-hover:#334155;
  --radius:10px;
  --shadow:0 1px 3px rgba(16,24,40,.08),0 1px 2px rgba(16,24,40,.04);
}
html,body{ height:100%; }
body{ font-family:"Microsoft YaHei","PingFang SC","Segoe UI",sans-serif; background:var(--bg); color:var(--text); font-size:14px; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; font-size:14px; }
a{ color:var(--primary); text-decoration:none; }

/* ---------- 登录页 ---------- */
.login-wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#1e3a8a 0%,#2563eb 50%,#3b82f6 100%); }
.login-card{ width:400px; background:#fff; border-radius:16px; padding:40px 36px; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.login-logo{ text-align:center; margin-bottom:8px; font-size:40px; }
.login-title{ text-align:center; font-size:22px; font-weight:700; margin-bottom:4px; }
.login-sub{ text-align:center; color:var(--text2); font-size:13px; margin-bottom:28px; }
.login-tip{ margin-top:18px; background:var(--primary-light); border:1px solid #dbeafe; border-radius:8px; padding:10px 12px; font-size:12px; color:#3b5bdb; line-height:1.8; }
.pwd-wrap{ position:relative; width:100%; }
.pwd-wrap input{ padding-right:40px; }
.pwd-eye{ position:absolute; right:6px; top:50%; transform:translateY(-50%); width:28px; height:28px; display:flex; align-items:center; justify-content:center; border:none; background:transparent; cursor:pointer; font-size:16px; line-height:1; color:#94a3b8; padding:0; user-select:none; }
.pwd-eye:focus{ outline:none; }
.pwd-eye:hover{ color:#475569; }
.captcha-row .captcha-box{ display:flex; gap:10px; align-items:center; }
.captcha-row input{ flex:1; min-width:0; }
.captcha-row canvas{ flex-shrink:0; border-radius:8px; border:1px solid #e2e8f0; cursor:pointer; background:#f1f5f9; }
.remember-row{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text2); margin:14px 2px 4px; cursor:pointer; user-select:none; }
.remember-row input{ width:15px; height:15px; accent-color:var(--primary); cursor:pointer; }
.storage-badge{ text-align:center; margin-top:14px; font-size:12px; color:var(--text3); }

/* ---------- 布局 ---------- */
.layout{ display:flex; min-height:100vh; }
.sidebar{ width:220px; background:var(--sidebar); color:#cbd5e1; flex-shrink:0; display:flex; flex-direction:column; position:fixed; top:0; bottom:0; left:0; z-index:50; }
.sidebar .brand{ padding:20px 18px; font-size:16px; font-weight:700; color:#fff; border-bottom:1px solid #334155; display:flex; align-items:center; gap:8px; overflow:hidden; }
.sidebar .brand .brand-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar nav{ flex:1; padding:12px 10px; overflow-y:auto; }
.nav-group-title{ font-size:11px; color:#64748b; padding:12px 10px 6px; letter-spacing:1px; }
.nav-item{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; cursor:pointer; margin-bottom:2px; font-size:14px; transition:.15s; }
.nav-item:hover{ background:var(--sidebar-hover); color:#fff; }
.nav-item.active{ background:var(--primary); color:#fff; }
.nav-item .badge-num{ margin-left:auto; background:var(--red); color:#fff; font-size:11px; border-radius:10px; padding:1px 7px; }
/* 子菜单 */
.nav-group{ }
.nav-sub{ display:none; padding-left:18px; overflow:hidden; transition:max-height .2s ease; max-height:0; }
.nav-sub.open{ display:block; max-height:200px; }
.nav-sub-item{ display:flex; align-items:center; gap:8px; padding:7px 12px 7px 8px; border-radius:6px; cursor:pointer; margin-bottom:1px; font-size:13px; color:#94a3b8; transition:.15s; }
.nav-sub-item:hover{ background:rgba(255,255,255,.06); color:#e2e8f0; }
.nav-sub-item.active{ background:rgba(59,130,246,.15); color:#60a5fa; font-weight:500; }
.nav-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.sub-count{ margin-left:auto; font-size:11px; color:#475569; background:rgba(0,0,0,.2); border-radius:10px; padding:0 6px; min-width:20px;text-align:center; }
.nav-sub-item.active .sub-count{ background:rgba(59,130,246,.3); color:#93c5fd; }
.sidebar .side-foot{ padding:14px 18px; border-top:1px solid #334155; font-size:12px; color:#64748b; }
/* 左侧菜单拖拽排序 */
.nav-row{ position:relative; }
.nav-row[draggable="true"]{ cursor:grab; }
.nav-row[draggable="true"]:active{ cursor:grabbing; }
.nav-handle{ display:none; color:#64748b; cursor:grab; font-size:14px; line-height:1; margin-right:-2px; }
.sidebar.sorting .nav-handle{ display:inline-flex; align-items:center; }
.sidebar.sorting .nav-item{ background:rgba(59,130,246,.06); border:1px dashed transparent; }
.sidebar.sorting .nav-row.drag-over .nav-item{ border-color:var(--primary); background:rgba(59,130,246,.18); }
.sidebar.sorting .nav-sub{ display:none !important; }
.sort-bar{ display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }
.sort-bar .btn-ghost{ background:rgba(255,255,255,.08); color:#cbd5e1; border:1px solid #334155; padding:5px 10px; font-size:12px; }
.sort-bar .btn-ghost:hover{ background:rgba(255,255,255,.16); }
.sort-tip{ margin-top:8px; font-size:11px; color:#475569; line-height:1.5; }

.main{ flex:1; margin-left:220px; display:flex; flex-direction:column; min-width:0; }
.topbar{ height:60px; background:#fff; border-bottom:1px solid var(--border); display:flex; align-items:center; padding:0 24px; gap:16px; position:sticky; top:0; z-index:40; }
.topbar .page-title{ font-size:17px; font-weight:600; }
.topbar .spacer{ flex:1; }
.user-chip{ display:flex; align-items:center; gap:10px; }
.avatar{ width:34px; height:34px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:14px; }
.user-chip .uname{ font-size:13px; font-weight:600; }
.user-chip .udept{ font-size:11px; color:var(--text2); }
.content{ padding:22px 24px 40px; }

/* ---------- 通用组件 ---------- */
.card{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px 20px; margin-bottom:18px; }
.card-title{ font-size:15px; font-weight:600; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.card-title .sub{ font-size:12px; color:var(--text2); font-weight:400; }
.grid{ display:grid; gap:16px; }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
@media(max-width:1100px){ .grid-4{grid-template-columns:repeat(2,1fr);} .grid-3{grid-template-columns:1fr;} .grid-2{grid-template-columns:1fr;} }

.stat-card{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px; box-shadow:var(--shadow); }
.stat-card .s-label{ font-size:13px; color:var(--text2); margin-bottom:8px; display:flex; align-items:center; gap:6px;}
.stat-card .s-value{ font-size:28px; font-weight:700; }
.stat-card .s-extra{ font-size:12px; color:var(--text3); margin-top:6px; }

.btn{ display:inline-flex; align-items:center; gap:6px; border:none; border-radius:8px; padding:8px 16px; font-size:13px; transition:.15s; }
.btn-primary{ background:var(--primary); color:#fff; } .btn-primary:hover{ background:var(--primary-dark); }
.btn-outline{ background:#fff; border:1px solid var(--border); color:var(--text); } .btn-outline:hover{ border-color:var(--primary); color:var(--primary); }
.btn-green{ background:var(--green); color:#fff; }
.btn-orange{ background:var(--orange); color:#fff; }
.btn-red{ background:var(--red); color:#fff; }
.btn-purple{ background:var(--purple); color:#fff; }
.btn-sm{ padding:5px 11px; font-size:12px; border-radius:6px; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

.tag-badge{ display:inline-block; padding:2px 10px; border-radius:20px; font-size:12px; color:#fff; }
.status-badge{ display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:6px; font-size:12px; font-weight:600; }
.st-pending{ background:var(--orange-bg); color:var(--orange); }
.st-processing{ background:var(--primary-light); color:var(--primary); }
.st-done{ background:var(--green-bg); color:var(--green); }
.st-cancelled{ background:#f1f5f9; color:#94a3b8; border:1px solid #e2e8f0; }
.pri-badge{ font-size:12px; padding:2px 8px; border-radius:5px; }
.pri-低{ background:#f1f5f9; color:#64748b; }
.pri-中{ background:var(--primary-light); color:var(--primary); }
.pri-高{ background:var(--orange-bg); color:var(--orange); }
.pri-紧急{ background:var(--red-bg); color:var(--red); font-weight:700; }

table.tbl{ width:100%; border-collapse:collapse; }
table.tbl th{ text-align:left; font-size:12px; color:var(--text2); font-weight:600; padding:10px 12px; background:#f8fafc; border-bottom:1px solid var(--border); white-space:nowrap; }
table.tbl td{ padding:11px 12px; border-bottom:1px solid #f1f5f9; font-size:13px; vertical-align:middle; }
table.tbl tr:hover td{ background:#f8fafc; }
.tbl .t-title{ font-weight:600; cursor:pointer; color:var(--text); }
.tbl .t-title:hover{ color:var(--primary); }

.form-row{ margin-bottom:16px; }
.form-row label{ display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
.form-row label .req{ color:var(--red); }
.form-row input[type=text],.form-row input[type=password],.form-row input[type=number],.form-row select,.form-row textarea{
  width:100%; border:1px solid var(--border); border-radius:8px; padding:9px 12px; outline:none; transition:.15s; background:#fff; }
.form-row input:focus,.form-row select:focus,.form-row textarea:focus{ border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.form-row textarea{ min-height:110px; resize:vertical; line-height:1.6; }
.form-hint{ font-size:12px; color:var(--text3); margin-top:5px; }

.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:16px; }
.filter-bar select,.filter-bar input{ border:1px solid var(--border); border-radius:8px; padding:8px 12px; outline:none; background:#fff; font-size:13px; }
.filter-bar input[type=text]{ width:220px; }

/* 预警 */
.alert-item{ display:flex; align-items:flex-start; gap:10px; padding:10px 14px; border-radius:8px; margin-bottom:8px; font-size:13px; line-height:1.6; }
.alert-red{ background:var(--red-bg); color:#991b1b; border:1px solid #fecaca; }
.alert-orange{ background:var(--orange-bg); color:#9a3412; border:1px solid #fed7aa; }
.alert-blue{ background:var(--primary-light); color:#1e40af; border:1px solid #bfdbfe; }

/* 图片 */
.img-thumbs{ display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
.img-thumbs img{ width:90px; height:90px; object-fit:cover; border-radius:8px; border:1px solid var(--border); cursor:zoom-in; }
.upload-box{ border:2px dashed var(--border); border-radius:10px; padding:22px; text-align:center; color:var(--text2); cursor:pointer; transition:.15s; }
.upload-box:hover{ border-color:var(--primary); color:var(--primary); background:var(--primary-light); }

/* 弹窗 */
.modal-mask{ position:fixed; inset:0; background:rgba(15,23,42,.5); display:flex; align-items:center; justify-content:center; z-index:100; padding:24px; }
.modal{ background:#fff; border-radius:14px; width:100%; max-width:760px; max-height:90vh; overflow-y:auto; padding:24px 26px; position:relative; }
.modal.modal-sm{ max-width:460px; }
.modal.modal-lg{ max-width:900px; }
.modal-close{ position:absolute; top:14px; right:16px; border:none; background:#f1f5f9; width:30px; height:30px; border-radius:50%; font-size:15px; color:var(--text2); }
.modal-close:hover{ background:#e2e8f0; }
.modal h3{ font-size:17px; margin-bottom:16px; padding-right:36px; }
.modal-title{ font-size:17px; font-weight:600; margin-bottom:14px; padding-right:36px; }
.modal-body-text{ color:var(--text2); line-height:1.75; font-size:14px; }
.modal-body-text b{ color:var(--text); }
.modal-hint{ font-size:12px; color:var(--text3); margin-top:10px; }
.modal-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:20px; }
.lightbox img{ max-width:100%; max-height:80vh; display:block; border-radius:8px; }
.lightbox{ background:transparent; box-shadow:none; text-align:center; overflow:visible; }

/* 留言 */
.comment-item{ display:flex; gap:10px; padding:10px 0; border-bottom:1px dashed #eef2f7; }
.comment-item .c-body{ flex:1; }
.comment-item .c-head{ font-size:12px; color:var(--text2); margin-bottom:3px; }
.comment-item .c-head b{ color:var(--text); font-size:13px; }
.comment-item .c-text{ font-size:13px; line-height:1.7; white-space:pre-wrap; }
.comment-input{ display:flex; gap:10px; margin-top:12px; }
.comment-input textarea{ flex:1; border:1px solid var(--border); border-radius:8px; padding:9px 12px; min-height:60px; resize:vertical; outline:none; }

/* 详情 */
.detail-meta{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px 18px; background:#f8fafc; border-radius:10px; padding:14px 16px; margin-bottom:16px; }
.detail-meta .dm-item{ font-size:13px; }
.detail-meta .dm-item .k{ color:var(--text2); font-size:12px; display:block; margin-bottom:2px; }
.desc-box{ background:#f8fafc; border-radius:10px; padding:14px 16px; font-size:13px; line-height:1.8; white-space:pre-wrap; margin-bottom:16px; }
.solution-box{ background:var(--green-bg); border:1px solid #bbf7d0; border-radius:10px; padding:14px 16px; font-size:13px; line-height:1.8; white-space:pre-wrap; margin-bottom:16px; }
.ai-box{ background:var(--purple-bg); border:1px solid #ddd6fe; border-radius:10px; padding:14px 16px; font-size:13px; line-height:1.8; white-space:pre-wrap; margin-top:12px; }
.section-label{ font-size:13px; font-weight:700; margin:14px 0 8px; display:flex; align-items:center; gap:6px; }

/* 案例库 */
.cell-clamp{ max-width:340px; color:var(--text2); }

/* 图表 */
.chart-box canvas{ width:100%; height:260px; display:block; }
.legend{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; font-size:12px; color:var(--text2); }
.legend .lg-item{ display:flex; align-items:center; gap:5px; }
.legend .lg-dot{ width:10px; height:10px; border-radius:3px; }

/* toast */
#toast-root{ position:fixed; top:20px; left:50%; transform:translateX(-50%); z-index:200; display:flex; flex-direction:column; gap:8px; }
.toast{ background:#1e293b; color:#fff; padding:10px 20px; border-radius:8px; font-size:13px; box-shadow:0 6px 20px rgba(0,0,0,.25); animation:fadein .2s; }
.toast.ok{ background:var(--green); } .toast.err{ background:var(--red); }
@keyframes fadein{ from{opacity:0; transform:translateY(-8px);} to{opacity:1; transform:translateY(0);} }

.empty{ text-align:center; color:var(--text3); padding:40px 0; font-size:13px; }
.pill-list{ display:flex; flex-wrap:wrap; gap:10px; }
.tag-pill{ display:flex; align-items:center; gap:8px; border:1px solid var(--border); border-radius:24px; padding:6px 8px 6px 14px; background:#fff; }
.tag-pill .del{ width:20px; height:20px; border-radius:50%; border:none; background:#f1f5f9; color:var(--text2); font-size:11px; cursor:pointer; display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0; }
.tag-pill .del:hover{ background:var(--red-bg); color:var(--red); }

/* 标签管理页：一级标签操作按钮 */
.tag-group .del{ width:24px; height:24px; border-radius:6px; border:none; background:#f1f5f9; color:var(--text2); font-size:13px; cursor:pointer; display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;transition:.15s; }
.tag-group .del:hover{ background:#fef2f2; color:var(--red); border:1px solid #fecaca; }

/* 二级标签 */
.sub-tag-pill{ display:inline-flex; align-items:center; gap:4px; border:1px solid #e2e8f0; border-radius:16px; padding:3px 10px 3px 12px; background:#fff; font-size:12.5px; color:var(--text); }
.sub-tag-pill .del-sub{ width:20px; height:20px; border-radius:6px; border:none; background:#f1f5f9; color:var(--text2); font-size:11px; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; line-height:1; flex-shrink:0; transition:.15s; }
.sub-tag-pill .del-sub:hover{ background:#fef2f2; color:var(--red); }
.edit-btn{ width:24px; height:24px; border-radius:6px; border:none; background:#f1f5f9; color:var(--text2); font-size:13px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; transition:.15s; }
.edit-btn:hover{ background:#eff6ff; color:var(--primary); border:1px solid #bfdbfe; }
.tag-group{ transition:.15s; }
.tag-group:hover{ border-color:var(--primary-light) !important; }
.mono{ font-family:Consolas,monospace; }
.report-summary{ background:#f8fafc; border-left:4px solid var(--primary); border-radius:8px; padding:16px 18px; line-height:2; font-size:13px; white-space:pre-wrap; }

/* ===================== 手机版（移动端自动启用） ===================== */
body.mobile{ overflow:hidden; }
.m-app{ display:flex; flex-direction:column; height:100vh; background:var(--bg); }
.m-topbar{ height:52px; background:#fff; border-bottom:1px solid var(--border); display:flex; align-items:center; padding:0 16px; gap:12px; flex-shrink:0; }
.m-title{ font-size:17px; font-weight:700; }
.m-user{ margin-left:auto; width:34px; height:34px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; }
.m-content{ flex:1; overflow-y:auto; padding:14px; padding-bottom:84px; -webkit-overflow-scrolling:touch; }
.m-tabbar{ position:fixed; bottom:0; left:0; right:0; height:58px; background:#fff; border-top:1px solid var(--border); display:flex; z-index:60; padding-bottom:env(safe-area-inset-bottom); }
.m-tab{ flex:1; border:none; background:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:var(--text3); font-size:11px; cursor:pointer; }
.m-tab.active{ color:var(--primary); }
.m-tab-ico{ font-size:20px; line-height:1; }
.m-fab{ position:fixed; right:18px; bottom:74px; width:56px; height:56px; border-radius:50%; background:var(--primary); color:#fff; border:none; font-size:26px; box-shadow:0 6px 18px rgba(37,99,235,.4); z-index:61; display:flex; align-items:center; justify-content:center; }
.m-filterbar{ margin-bottom:10px; }
.m-search{ width:100%; border:1px solid var(--border); border-radius:10px; padding:11px 14px; font-size:14px; outline:none; background:#fff; }
.m-chips{ display:flex; gap:8px; overflow-x:auto; padding-bottom:8px; margin-bottom:4px; }
.m-chip{ flex-shrink:0; border:1px solid var(--border); background:#fff; border-radius:20px; padding:6px 14px; font-size:13px; color:var(--text2); }
.m-chip.active{ background:var(--primary); color:#fff; border-color:var(--primary); }
.m-list{ display:flex; flex-direction:column; gap:10px; }
.m-ticket{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:12px 14px; box-shadow:var(--shadow); }
.m-t-top{ display:flex; align-items:center; gap:8px; justify-content:space-between; }
.m-t-title{ font-size:15px; font-weight:600; line-height:1.4; }
.m-t-meta{ display:flex; gap:8px; align-items:center; margin-top:8px; flex-wrap:wrap; }
.m-t-sub{ color:var(--text3); font-size:12px; margin-top:6px; }
.m-profile{ display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--border); border-radius:12px; padding:16px; margin-bottom:14px; }
.m-avatar{ width:48px; height:48px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; }
.m-pname{ font-size:16px; font-weight:700; }
.m-pdept{ font-size:12px; color:var(--text2); }
.m-section-title{ font-size:13px; color:var(--text2); font-weight:600; margin:16px 4px 8px; }
.m-menu{ background:#fff; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.m-menu-item{ display:flex; align-items:center; justify-content:space-between; width:100%; border:none; background:#fff; padding:15px 16px; font-size:14px; color:var(--text); border-bottom:1px solid #f1f5f9; cursor:pointer; }
.m-menu-item:last-child{ border-bottom:none; }
.m-menu-item.m-danger{ color:var(--red); }
.m-subhead{ margin-bottom:10px; }
.m-back{ border:none; background:none; color:var(--primary); font-size:15px; padding:6px 0; cursor:pointer; }
/* 手机版弹窗/详情全屏 */
body.mobile .modal-mask{ padding:0; align-items:stretch; }
body.mobile .modal{ width:100%; height:100%; max-width:none; max-height:none; border-radius:0; padding:18px 16px; }
body.mobile .modal-close{ top:16px; right:16px; }
body.mobile .modal h3, body.mobile .modal-title{ font-size:18px; padding-right:40px; }
/* 手机版复用页面(统计/设置/分类等)内表格可横向滑动、栅格单列 */
body.mobile .m-content table.tbl{ display:block; overflow-x:auto; white-space:nowrap; }
body.mobile .detail-meta{ grid-template-columns:1fr 1fr !important; }
body.mobile .grid-4, body.mobile .grid-3, body.mobile .grid-2{ grid-template-columns:1fr !important; }
/* 手机版登录页铺满 */
body.mobile .login-wrap{ padding:16px; }
body.mobile .login-card{ width:100%; padding:32px 22px; }

/* ============================ 值班管理 ============================ */
.duty-list{ display:flex; flex-direction:column; gap:10px; }
.duty-item{ display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--border); border-radius:10px; padding:12px 14px; cursor:pointer; transition:.15s; }
.duty-item:hover{ border-color:var(--primary); }
.duty-item input[type=checkbox]{ width:18px; height:18px; accent-color:var(--primary); flex-shrink:0; }
.duty-info{ flex:1; min-width:0; }
.duty-name{ font-size:14px; font-weight:600; color:var(--text); display:flex; align-items:center; gap:8px; }
.duty-role{ font-size:11px; color:#fff; background:var(--text3); padding:1px 7px; border-radius:10px; font-weight:500; }
.duty-mail{ font-size:12px; color:var(--text2); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.duty-on{ font-size:12px; color:var(--green); font-weight:600; }
.duty-off{ font-size:12px; color:var(--text3); }
.duty-actions{ display:flex; gap:10px; }

/* ---------- 系统设置：入口卡片 ---------- */
.settings-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.set-entry{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px; cursor:pointer; transition:.15s; display:flex; flex-direction:column; gap:8px; }
.set-entry:hover{ border-color:var(--primary); box-shadow:0 6px 18px rgba(37,99,235,.12); transform:translateY(-2px); }
.set-entry .ico{ font-size:26px; line-height:1; }
.set-entry .t{ font-weight:600; font-size:15px; color:var(--text); }
.set-entry .d{ font-size:12px; color:var(--text2); line-height:1.6; }

/* ---------- 抽屉 ---------- */
.drawer-mask{ position:fixed; inset:0; background:rgba(15,23,42,.45); z-index:200; opacity:0; pointer-events:none; transition:opacity .25s; }
.drawer-mask.show{ opacity:1; pointer-events:auto; }
.drawer{ position:fixed; top:0; right:0; bottom:0; width:480px; max-width:92vw; background:#fff; z-index:201; transform:translateX(100%); transition:transform .28s ease; display:flex; flex-direction:column; box-shadow:-8px 0 30px rgba(0,0,0,.16); }
.drawer.show{ transform:translateX(0); }
.drawer-head{ display:flex; align-items:center; gap:10px; padding:18px 22px; border-bottom:1px solid var(--border); font-size:16px; font-weight:600; flex-shrink:0; }
.drawer-head .x{ margin-left:auto; cursor:pointer; width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--text2); font-size:18px; transition:.15s; }
.drawer-head .x:hover{ background:#f1f5f9; color:var(--text); }
.drawer-body{ flex:1; overflow-y:auto; padding:22px; }
.drawer-foot{ padding:14px 22px; border-top:1px solid var(--border); display:flex; gap:10px; justify-content:flex-end; flex-shrink:0; }
/* 个人中心抽屉 */
.pf-card{ display:flex; align-items:center; gap:14px; padding:4px 2px 16px; border-bottom:1px solid var(--border); margin-bottom:4px; }
.pf-avatar{ width:54px; height:54px; border-radius:14px; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:600; flex-shrink:0; }
.pf-meta{ min-width:0; }
.pf-name{ font-size:16px; font-weight:700; color:var(--text); }
.pf-sub{ font-size:13px; color:var(--text2); margin-top:3px; word-break:break-all; }
@media(max-width:640px){ .drawer{ width:100vw; max-width:100vw; } }
