/* ==========================================================================
   开大直通 · 学生服务  —  样式表
   一套代码适配 PC 后台（侧边栏 + 列表/看板）与移动端 H5（底部 Tab + 卡片）
   ========================================================================== */

:root {
  --brand: #1d4ed8;
  --brand-2: #2563eb;
  --brand-soft: #eef2ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f0;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --violet: #7c3aed;
  --violet-soft: #f5f3ff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .16);
  --topbar-h: 60px;
  --nav-h: 62px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 启动 / 空态 ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; gap: 10px; align-content: center; color: var(--muted); }
.boot-logo { font-size: 22px; font-weight: 700; color: var(--brand); letter-spacing: 2px; }
.boot-tip { font-size: 13px; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand {
  background: radial-gradient(1200px 600px at 10% 0%, #2b5ee0 0%, #1d4ed8 45%, #143aa8 100%);
  color: #fff; padding: 54px 52px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: auto;
}
.login-brand::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
/* 校名组合标放在白色登录面板顶部（深灰字 + 红金徽记，只有白底才读得清） */
.login-logo { margin-bottom: 26px; }
.login-logo img { display: block; width: 212px; max-width: 100%; height: auto; }

/* 登录方式切换（学生验证码 / 教职工密码） */
.login-tabs { display: flex; gap: 4px; background: #eef2f8; padding: 4px; border-radius: 11px; margin-bottom: 20px; }
.login-tabs button {
  flex: 1; border: none; background: transparent; padding: 9px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: .15s;
}
.login-tabs button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--shadow-sm); }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; min-width: 112px; }
.input.otp { letter-spacing: 4px; font-size: 16px; font-variant-numeric: tabular-nums; }
.demo-code {
  margin-top: 12px; font-size: 12.5px; color: #1e40af; background: #f0f7ff;
  border: 1px solid #d6e6ff; border-radius: 9px; padding: 9px 12px; line-height: 1.7;
}
.demo-code b { font-size: 15px; letter-spacing: 2px; color: #1d4ed8; }
.login-note { margin-top: 16px; font-size: 12px; color: #94a3b8; line-height: 1.7; }
.login-note code { background: #f1f5f9; border-radius: 4px; padding: 1px 5px; font-size: 11.5px; color: #475569; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; font-size: 12px; color: #94a3b8; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
a.btn { text-decoration: none; }

/* 身份绑定表 */
.bind-head, .bind-row {
  display: grid; grid-template-columns: 1fr .72fr .82fr .82fr .72fr 72px;
  gap: 10px; align-items: center;
}
.bind-head { font-size: 12.5px; color: var(--muted); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.bind-row { padding: 11px 0; border-bottom: 1px solid #f1f5f9; }
.bind-row:last-of-type { border-bottom: none; }
.bind-row .input { padding: 7px 10px; font-size: 13px; }
.bind-who b { font-size: 13.5px; display: block; }
.bind-who span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 960px) {
  .bind-head { display: none; }
  .bind-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .bind-row .input { width: 100%; }
  .bind-who { margin-bottom: 2px; }
}

/* 人员管理：科室 / 档案室办理人员 */
.staff-head, .staff-row {
  display: grid; grid-template-columns: 1.1fr 1.15fr .85fr 76px 240px;
  gap: 12px; align-items: center;
}
.staff-head { font-size: 12.5px; color: var(--muted); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.staff-row { padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.staff-row:last-of-type { border-bottom: none; }
.staff-who b { font-size: 13.5px; display: block; }
.staff-who span { font-size: 11.5px; color: var(--muted); }
.staff-role em { font-style: normal; font-size: 12px; color: var(--ink-2); margin-left: 6px; }
.staff-phone { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.staff-dt {
  display: block; font-style: normal; font-size: 11px; color: #0369a1;
  margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.staff-ops { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.staff-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.staff-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.staff-status.on { color: #059669; }
.staff-status.off { color: #94a3b8; }
.staff-form .field { margin-bottom: 13px; }
.profile-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.profile-actions .btn { font-size: 12.5px; }

/* 邮寄登记 */
.mail-head, .mail-row {
  display: grid; grid-template-columns: 30px 1.15fr 1.45fr .8fr 84px 1.1fr 122px;
  gap: 10px; align-items: center;
}
.mail-head { font-size: 12.5px; color: var(--muted); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.mail-row { padding: 11px 0; border-bottom: 1px solid #f1f5f9; }
.mail-row:last-of-type { border-bottom: none; }
.mail-who b { font-size: 13px; display: block; }
.mail-who span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 1px; }
.mail-who em { font-style: normal; font-size: 11.5px; color: var(--ink-2); display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-addr { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; word-break: break-all; }
.mail-dept { font-size: 12.5px; color: var(--ink-2); }
.mail-tk { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mail-tk em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.mail-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: #fff7ed; color: #c2410c; white-space: nowrap; }
.mail-badge.on { background: #ecfdf5; color: #047857; }
@media (max-width: 960px) {
  .mail-head { display: none; }
  .mail-row { grid-template-columns: 26px 1fr; gap: 6px; padding: 14px 0; }
  .mail-row > div:nth-child(n+3) { grid-column: 2; }
  .mail-row .staff-ops { grid-column: 2; justify-content: flex-start; margin-top: 2px; }
}

/* 科室设置 */
.dept-head, .dept-row {
  display: grid; grid-template-columns: 1.5fr .9fr .6fr .6fr 150px;
  gap: 12px; align-items: center;
}
.dept-head { font-size: 12.5px; color: var(--muted); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.dept-row { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.dept-row:last-of-type { border-bottom: none; }
.dept-name { font-size: 13.5px; font-weight: 500; }
.dept-code { font-size: 12px; color: var(--muted); }
.dept-num { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.btn[disabled] { opacity: .42; cursor: not-allowed; }
.btn[disabled]:hover { background: inherit; }
@media (max-width: 960px) {
  .dept-head { display: none; }
  .dept-row { grid-template-columns: 1fr auto; gap: 6px; padding: 12px 0; }
  .dept-row .dept-code, .dept-row .dept-num { font-size: 12px; }
  .dept-row .staff-ops { grid-column: 1 / -1; margin-top: 4px; }
}
.btn-danger-ghost { color: #dc2626; border-color: #fecaca; background: #fff; }
.btn-danger-ghost:hover { background: #fef2f2; }
@media (max-width: 960px) {
  .staff-head { display: none; }
  .staff-row { grid-template-columns: 1fr; gap: 7px; padding: 14px 0; }
  .staff-ops { justify-content: flex-start; }
}
.login-brand h1 { font-size: 32px; line-height: 1.28; letter-spacing: 1px; position: relative; z-index: 1; }
.login-brand .sub { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .82); max-width: 420px; }
.login-flow { margin-top: 36px; display: grid; gap: 14px; max-width: 430px; }
.login-flow .step { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: rgba(255, 255, 255, .92); }
.login-flow .dot {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .18);
  display: grid; place-items: center; font-size: 11px; flex: none; margin-top: 2px;
}
.login-foot { font-size: 12px; color: rgba(255, 255, 255, .6); }
.login-panel { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.login-box { width: 100%; max-width: 372px; }
.login-box h2 { font-size: 22px; }
.login-box .hint { color: var(--muted); font-size: 13px; margin-top: 6px; margin-bottom: 22px; }
.quick-users { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick-users button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px;
  font-size: 12px; color: var(--ink-2); cursor: pointer; transition: .15s;
}
.quick-users button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ---------- 布局 ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; }

.sidebar {
  background: #0e1b3d; color: #cbd5e1; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 11px; padding: 8px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07); margin-bottom: 8px;
}
.sidebar .brand-emblem {
  width: 44px; height: 44px; flex: none; object-fit: contain; display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
}
.sidebar .brand-txt b { color: #fff; font-size: 15px; display: block; letter-spacing: .5px; line-height: 1.3; }
.sidebar .brand-txt span { font-size: 11px; color: #7c8db3; letter-spacing: .3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: #b6c2d9; font-size: 13.5px; cursor: pointer; transition: .15s; position: relative;
}
.nav-item svg { width: 17px; height: 17px; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(59, 130, 246, .9), rgba(37, 99, 235, .72)); color: #fff; box-shadow: 0 6px 16px rgba(29, 78, 216, .35); }
.nav-item .badge-dot {
  margin-left: auto; background: #ef4444; color: #fff; font-size: 11px; min-width: 18px; height: 18px;
  border-radius: 9px; display: grid; place-items: center; padding: 0 5px;
}
.sidebar .side-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.side-user:hover { background: rgba(255, 255, 255, .06); }
.side-user .avatar { background: linear-gradient(135deg, #34d399, #059669); }
.side-user b { color: #fff; font-size: 13px; display: block; font-weight: 600; }
.side-user span { font-size: 11px; color: #8b9ab8; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 22px;
  position: sticky; top: 0; z-index: 30;
}
.topbar h2 { font-size: 15px; font-weight: 600; }
.topbar .crumb { color: var(--muted); font-size: 12.5px; }
.topbar .spacer { flex: 1; }
.topbar .tx-btn {
  position: relative; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink-2);
}
.topbar .tx-btn .dot { position: absolute; top: -3px; right: -3px; background: #ef4444; color: #fff; font-size: 10px; height: 15px; min-width: 15px; border-radius: 8px; display: grid; place-items: center; }
.content { padding: 22px; flex: 1; max-width: 1360px; width: 100%; }

/* ---------- 移动端头部 / 底部 Tab ---------- */
.m-head { display: none; }
.bottom-nav { display: none; }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px;
}
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 14.5px; font-weight: 600; }
.card-head .hint { font-size: 12px; color: var(--muted); }
.card-head .spacer { flex: 1; }
.section-title { font-size: 15px; font-weight: 600; margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title .line { width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }

.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 9px;
  padding: 8px 15px; font-size: 13.5px; cursor: pointer; transition: .15s; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.btn:hover { border-color: #c7d2e5; background: #f8fafc; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #2b62e8, #1d4ed8); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(29, 78, 216, .28); }
.btn-primary:hover { background: linear-gradient(135deg, #3b74f0, #2153d8); }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-lg { padding: 11px 20px; font-size: 14.5px; border-radius: 11px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2.5px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.wait { background: var(--warn-soft); color: #b45309; }
.badge.doing { background: var(--brand-soft); color: var(--brand); }
.badge.reply { background: var(--violet-soft); color: var(--violet); }
.badge.done { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--danger-soft); color: var(--danger); }
.badge.muted { background: #f1f5f9; color: var(--muted); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; background: #f1f5f9; color: var(--ink-2); }
.tag.archive { background: #eff6ff; color: #1d4ed8; }
.tag.overdue { background: var(--danger-soft); color: var(--danger); }
.tag.urgent { background: var(--danger-soft); color: var(--danger); }

.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
.field > label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; color: var(--ink); background: #fff; transition: .15s; font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field .hint.ok { color: var(--ok); }
.field .hint.err { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* 办理事项分组：组名对应承办科室（学籍类 / 考务类 / 招生类 / 教学类） */
.sub-group { margin-bottom: 11px; }

/* ---------- 事项设置（管理端） ---------- */
.si-cat { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.si-cat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.si-cat-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.si-cat-sub { font-size: 12.5px; color: var(--muted); }
.si-cat-key { font-size: 11.5px; color: #94a3b8; background: #f1f5f9; border-radius: 5px; padding: 2px 7px; font-family: ui-monospace, Consolas, monospace; }
.si-group { border-top: 1px dashed #e6ecf4; padding: 11px 0 3px; }
.si-group-loose { border-top: 1px solid #e6ecf4; }
.si-group-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.si-group-name { font-size: 13px; font-weight: 600; color: var(--brand); border-left: 3px solid var(--brand); padding-left: 8px; line-height: 1.3; }
.si-group-name-loose { color: var(--muted); border-left-color: #cbd5e1; }
.si-group-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.si-items { padding-left: 12px; }
.si-item { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid #f6f8fb; }
.si-item:last-of-type { border-bottom: none; }
.si-item-name { font-size: 13px; color: var(--ink-2); }
.si-item-usage { font-size: 11.5px; color: #94a3b8; min-width: 52px; }
.si-item-ops { display: flex; gap: 5px; margin-left: auto; }
.si-empty { font-size: 12.5px; color: #94a3b8; padding: 4px 0 6px; }
/* 恢复默认分类：改乱后的兜底入口，与日常操作隔一道虚线，避免误点 */
.si-reset {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.si-reset .hint { flex: 1; min-width: 220px; font-size: 12.5px; }
@media (max-width: 640px) {
  .si-item-usage { display: none; }
  .si-group-ops { margin-left: 0; }
}
.sub-group:last-child { margin-bottom: 0; }
.sub-group-name {
  font-size: 12px; font-weight: 500; color: #64748b;
  margin-bottom: 7px; padding-left: 7px; line-height: 1.2;
  border-left: 2px solid #bfd3ff;
}
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px;
  font-size: 13px; color: var(--ink-2); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: #c7d2e5; }
.chip.on { background: var(--brand-soft); border-color: #bfd3ff; color: var(--brand); font-weight: 500; }

/* 带「隐含出处」说明的类别按钮：按钮内两行，上行类别名、下行灰色小字 */
/* 例如「开放教育」→ 中央广播电视大学 / 国家开放大学 */
.chip-stacked {
  border-radius: 12px; padding: 7px 14px; text-align: center; line-height: 1.35;
}
.chip-stacked .chip-main { display: block; }
.chip-stacked .chip-note {
  display: block; margin-top: 2px; font-size: 10.5px; font-weight: 400;
  color: #94a3b8; white-space: nowrap;
}
.chip-stacked.on .chip-note { color: #7ba2e0; }

/* ---------- 办事一站通入口（学生填报页） ---------- */
/* ---------- 附件：缩略图 / 预览 ---------- */
.file-item { gap: 8px; }
.file-thumb {
  width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none;
  border: 1px solid var(--line); background: #f8fafc;
}
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.file-item a { font-size: 12.5px; }

.preview-mask {
  position: fixed; inset: 0; z-index: 3000; background: rgba(15, 23, 42, .72);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.preview-box {
  background: #fff; border-radius: 14px; overflow: hidden; max-width: min(920px, 96vw);
  max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 500;
}
.preview-head a { color: var(--brand); font-weight: 500; }
.preview-body { padding: 12px; overflow: auto; background: #f8fafc; }
.preview-body img { display: block; max-width: 100%; max-height: 76vh; margin: 0 auto; }

/* ---------- 联系电话：脱敏 + 查看 / 拨打 ---------- */
.phone-cell { display: inline-flex; align-items: center; gap: 8px; }
.phone-text { font-variant-numeric: tabular-nums; }
.phone-cell .phone-show { font-size: 12px; }
.phone-cell .phone-call {
  font-size: 12px; padding: 1px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); text-decoration: none;
}

/* 列表行「去办理」提示（有可执行动作时显示） */
.go-act {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

.portal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.portal-card {
  position: relative; display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 12px 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: inherit; font: inherit; text-decoration: none;
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.portal-card:hover { border-color: #c7d2e5; background: #fbfcff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.portal-card.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.portal-card .pc-ico {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: #f1f5f9; color: var(--muted); transition: .15s;
}
.portal-card.on .pc-ico { background: var(--brand); color: #fff; }
.portal-card .pc-body { min-width: 0; }
.portal-card b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.portal-card em {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 3px;
}
.portal-card .pc-arrow { position: absolute; right: 9px; bottom: 8px; display: flex; color: #cbd5e1; transform: rotate(180deg); }
.portal-mine { background: #fafcff; }
.portal-mine .pc-ico { background: var(--brand-soft); color: var(--brand); }
.portal-mine:hover .pc-arrow { color: var(--brand); }

@media (max-width: 960px) {
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.radio-cards { display: grid; gap: 10px; }
.radio-card {
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; cursor: pointer; transition: .15s;
  display: flex; gap: 11px; align-items: flex-start;
}
.radio-card:hover { border-color: #c7d2e5; background: #fbfcff; }
.radio-card.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.radio-card .rc-mark { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; margin-top: 3px; position: relative; }
.radio-card.on .rc-mark { border-color: var(--brand); }
.radio-card.on .rc-mark::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--brand); }
.radio-card b { font-size: 13.5px; font-weight: 600; display: block; }
.radio-card span { font-size: 12px; color: var(--muted); }

/* ---------- 工单列表（PC 表格 / 移动卡片 同构） ---------- */
.list-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.list-head {
  display: grid; grid-template-columns: 1.9fr .8fr .9fr .85fr .95fr .9fr; gap: 12px;
  padding: 11px 18px; background: #f8fafc; border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); font-weight: 500;
}
.list-row {
  display: grid; grid-template-columns: 1.9fr .8fr .9fr .85fr .95fr .9fr; gap: 12px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: .12s;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: #f8fbff; }
.list-row .cell-no { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.list-row .cell-title { font-size: 13.8px; font-weight: 500; color: var(--ink); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.list-row .cell-att { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; color: #1a46c8; background: #eef3ff; border: 1px solid #dbe6ff; }
.list-row .cell-sub { font-size: 12.5px; color: var(--ink-2); }
.list-row .cell-muted { font-size: 12.5px; color: var(--muted); }
.list-row .cell-right { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.sla { font-size: 12px; color: var(--muted); }
.sla.overdue { color: var(--danger); font-weight: 600; }
.sla.soon { color: var(--warn); }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -19px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid #cbd5e1;
}
.tl-item.hot::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.tl-title { font-size: 13.3px; color: var(--ink); font-weight: 500; }
.tl-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tl-remark { font-size: 12.5px; color: var(--ink-2); background: #f8fafc; border-left: 2px solid var(--line); padding: 6px 10px; border-radius: 0 6px 6px 0; margin-top: 6px; }

/* ---------- 详情 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 336px; gap: 14px; align-items: start; }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-all; }
.notice-item { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.notice-item:last-child { border-bottom: none; }
.notice-item .ch { flex: none; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; height: 19px; line-height: 18px; margin-top: 1px; }
.notice-item .ch.sms { color: var(--brand); border-color: #bfd3ff; background: var(--brand-soft); }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- KPI / 图表 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi .k-label { font-size: 12.5px; color: var(--muted); }
.kpi .k-val { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .k-val small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi .k-tip { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.kpi.warn .k-val { color: var(--danger); }
.kpi.ok .k-val { color: var(--ok); }
.kpi.brand .k-val { color: var(--brand); }

.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 42px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-row .b-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: #eef2f7; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #60a5fa, #1d4ed8); transition: width .6s ease; }
.bar-row .b-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 128px; height: 128px; border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ""; position: absolute; inset: 22px; background: #fff; border-radius: 50%; }
.donut .donut-c { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; line-height: 1.2; }
.donut .donut-c b { font-size: 19px; }
.donut .donut-c span { font-size: 11px; color: var(--muted); }
.legend { display: grid; gap: 7px; font-size: 12.5px; }
.legend div { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.legend b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }

.trend { display: flex; align-items: flex-end; gap: 10px; height: 124px; padding-top: 8px; }
.trend .t-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; height: 100%; }
.trend .t-bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, #93b4fb, #2b62e8); border-radius: 6px 6px 3px 3px; min-height: 4px; transition: height .5s; }
.trend .t-lbl { font-size: 11px; color: var(--muted); }
.trend .t-num { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }

/* ---------- 筛选条 / Tab ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 130px; padding: 8px 11px; font-size: 13px; }
.toolbar .search { min-width: 200px; }
.tabs { display: flex; gap: 4px; background: #eef2f8; padding: 4px; border-radius: 11px; overflow-x: auto; }
.tabs button {
  border: none; background: transparent; padding: 7px 13px; border-radius: 8px; font-size: 13px;
  color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.tabs button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--shadow-sm); }
.tabs button .n { font-size: 11px; color: var(--muted); margin-left: 4px; }

/* ---------- 弹窗 / Toast ---------- */
.modal-host { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(15, 23, 42, .42); padding: 20px; }
.modal-host[hidden] { display: none; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); max-height: 88vh; display: flex; flex-direction: column; animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal-head h3 { font-size: 15px; flex: 1; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.modal .close { border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; }

.toast-host { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; }
.toast {
  background: #0f172a; color: #fff; padding: 9px 16px; border-radius: 10px; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: pop .18s ease; max-width: 80vw;
}
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .ic { font-size: 30px; opacity: .35; margin-bottom: 6px; }
.empty p { font-size: 13px; }
.loading { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; flex: none;
}
.stars { display: flex; gap: 6px; }
.stars button { border: none; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: #dbe2ea; padding: 0; transition: .12s; }
.stars button.on { color: #f59e0b; }
.tip-box { background: #f0f7ff; border: 1px solid #d6e6ff; border-radius: 10px; padding: 11px 13px; font-size: 12.5px; color: #1e40af; line-height: 1.7; }
.tip-box.warn { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }

.file-list { display: grid; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; }
.file-item .ic { color: var(--brand); }
.file-item .spacer { flex: 1; }
/* 证件照在服务端自动加了用途限制水印，这里给学生一个明确反馈 */
.wm-badge {
  flex: none; font-size: 11px; line-height: 1.5; padding: 1px 7px; border-radius: 999px;
  color: #0f766e; background: #ccfbf1; border: 1px solid #99f6e4; white-space: nowrap;
}

.flow-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.flow-strip .fi { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.flow-strip .fi.on { border-color: #bfd3ff; background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.flow-strip .ar { color: #cbd5e1; }

/* 低矮屏幕（笔记本 768~800px 高）压缩登录页留白，避免竖向滚动 */
@media (max-height: 820px) and (min-width: 961px) {
  .login-brand { padding: 28px 44px; }
  .login-logo { margin-bottom: 18px; }
  .login-logo img { width: 178px; }
  .login-brand h1 { font-size: 25px; }
  .login-brand .sub { margin-top: 10px; }
  .login-flow { margin-top: 22px; gap: 10px; }
}

/* ==========================================================================
   响应式：<= 960px 切换为移动端形态
   ========================================================================== */
@media (max-width: 960px) {
  body { font-size: 14.5px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { display: none; }

  .m-head {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    background: linear-gradient(135deg, #2153d8, #1d4ed8); color: #fff;
    position: sticky; top: 0; z-index: 40; box-shadow: 0 4px 14px rgba(29, 78, 216, .25);
  }
  .m-head .m-title { font-size: 16px; font-weight: 600; flex: 1; }
  .m-head .m-sub { font-size: 11.5px; opacity: .8; display: block; font-weight: 400; }
  .m-head .m-btn { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .16); border: none; color: #fff; display: grid; place-items: center; position: relative; }
  .m-head .m-btn .dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fca5a5; }

  .content { padding: 14px 14px calc(var(--nav-h) + 22px); max-width: 100%; }
  .card { padding: 15px; border-radius: 13px; }
  .detail-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi .k-val { font-size: 22px; }
  .kpi.triple { grid-column: span 2; }

  .list-card { background: transparent; border: none; box-shadow: none; overflow: visible; }
  .list-head { display: none; }
  .list-row {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: 13px;
    padding: 13px 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); position: relative;
  }
  .list-row .cell-no { font-size: 11.5px; }
  .list-row .cell-title { font-size: 14.5px; -webkit-line-clamp: 2; margin-top: 3px; padding-right: 76px; }
  .list-row .cell-sub, .list-row .cell-muted { font-size: 12.5px; margin-top: 4px; }
  .list-row .cell-right { position: absolute; top: 12px; right: 13px; flex-direction: column; align-items: flex-end; gap: 6px; }
  .list-row .cell-hide-m { display: none; }

  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom); z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  }
  .bottom-nav .bn-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--muted); font-size: 10.5px; cursor: pointer; position: relative;
  }
  .bottom-nav .bn-item svg { width: 21px; height: 21px; }
  .bottom-nav .bn-item.active { color: var(--brand); font-weight: 600; }
  .bottom-nav .bn-item .badge-dot { position: absolute; top: 6px; right: 50%; transform: translateX(16px); background: #ef4444; color: #fff; font-size: 10px; min-width: 15px; height: 15px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }

  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { padding: 30px 22px 28px; }
  .login-brand h1 { font-size: 24px; }
  .login-logo { margin-bottom: 20px; }
  .login-logo img { width: 172px; }
  .code-row .btn { min-width: 104px; }
  .login-flow { display: none; }
  .login-foot { display: none; }
  .login-panel { padding: 24px 20px 40px; align-items: flex-start; }
  .login-box { max-width: 100%; }

  .toolbar { gap: 8px; }
  .toolbar .input, .toolbar .select { flex: 1; min-width: 0; }
  .toolbar .search { flex: 1 1 100%; }
  .modal { max-width: 100%; align-self: end; border-radius: 16px 16px 0 0; }
  .modal-host { padding: 0; align-items: end; }
  .modal-body { max-height: 62vh; }
  .modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  .trend { height: 100px; gap: 6px; }
  .detail-actions { position: sticky; bottom: calc(var(--nav-h) + 8px); z-index: 20; }
  .detail-actions .action-bar { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px; border-radius: 12px; }
  .detail-actions .action-bar .btn { flex: 1; }
}

/* ==========================================================================
   移动端增强：防止 iOS 聚焦缩放 / 触摸目标 / 小屏细化 / 防横向溢出
   （追加段，优先级高于上方 960 断点，冲突时以本段为准）
   ========================================================================== */
@media (max-width: 960px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

  /* iOS Safari 在输入框字号 < 16px 时，聚焦会强制放大整个页面，看着就像“没适配” */
  .input, .select, .textarea { font-size: 16px; }
  .input.otp { font-size: 18px; letter-spacing: 6px; }

  /* 触摸目标：按钮最小 40px 高，避免手指点不中 */
  .btn { min-height: 40px; }
  .btn-sm { min-height: 32px; }
  .chip { padding: 8px 14px; }
  .tabs button { padding: 9px 14px; }

  /* 防横向溢出：任何长串（文件名、地址、工单号）都不撑破页面 */
  html, body { max-width: 100%; overflow-x: hidden; }
  .file-item { min-width: 0; }
  .file-item span { overflow-wrap: anywhere; word-break: break-word; }

  /* 条形图：窄屏压缩标签列，文字超长省略，避免把数值挤出屏幕 */
  .bar-row { grid-template-columns: 66px 1fr 40px; gap: 8px; }
  .bar-row > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* 详情页操作区：两列均分，按钮多也不挤成一条 */
  .detail-actions .action-bar .btn { flex: 1 1 calc(50% - 5px); }
}

@media (max-width: 480px) {
  .content { padding: 12px 12px calc(var(--nav-h) + 18px); }
  .card { padding: 13px; border-radius: 12px; }
  .card + .card { margin-top: 12px; }

  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 11px 12px; }
  .kpi .k-val { font-size: 20px; }

  /* 入口卡片单列，标题不再被挤成两行半 */
  .portal-grid { grid-template-columns: 1fr; }

  .kv { grid-template-columns: 74px 1fr; gap: 6px 8px; font-size: 12.5px; }
  .trend { gap: 4px; }
  .trend .t-lbl { font-size: 9.5px; }

  .login-brand { padding: 26px 18px 24px; }
  .login-brand h1 { font-size: 21px; }
  .login-logo img { width: 150px; }

  .modal-foot { gap: 8px; }
}

/* 移动端顶部「退出登录」按钮（PC 端退出入口在侧栏底部 / 我的页面） */
@media (max-width: 960px) {
  .m-head .m-btn { width: 38px; height: 38px; }
  .m-head #m-logout { background: rgba(255, 255, 255, .2); }
  .m-head #m-user { cursor: pointer; }
}

/* ==========================================================================
   视觉升级层 v2 —— 统一品牌色 / 层次 / 质感
   仅调整视觉表现（色彩、阴影、圆角、动效），不改变任何布局结构；
   本段位于文件末尾，同特异性规则覆盖上方定义，回滚只需删除本段。
   ========================================================================== */

/* 1. 色板与质感基线（覆盖 :root 变量，全局换色） */
:root {
  --brand: #1a46c8;
  --brand-2: #2f6bff;
  --brand-soft: #eef3ff;
  --ink: #0b1524;
  --ink-2: #33415c;
  --muted: #6b7a90;
  --line: #e6ebf3;
  --bg: #f5f8fd;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 64, .05), 0 2px 6px rgba(16, 32, 64, .04);
  --shadow: 0 8px 28px -12px rgba(16, 32, 64, .18);
  --shadow-lg: 0 28px 70px -24px rgba(10, 22, 48, .45);
  --ring: 0 0 0 3px rgba(47, 107, 255, .14);
}

body {
  background:
    radial-gradient(1100px 520px at 12% -8%, #e9f0ff 0%, rgba(233, 240, 255, 0) 62%),
    radial-gradient(900px 460px at 100% 2%, #eef4ff 0%, rgba(238, 244, 255, 0) 58%),
    var(--bg);
  background-attachment: fixed;
}

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: #c9d5e6 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccd7e6; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a8b7cc; background-clip: content-box; }

/* 2. 侧栏：深蓝渐变 + 顶部环境光 */
.sidebar {
  background:
    radial-gradient(320px 180px at 28% 0%, rgba(64, 122, 255, .26), rgba(64, 122, 255, 0) 72%),
    linear-gradient(180deg, #0e1e42 0%, #0a1731 55%, #081228 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05);
}
.sidebar .brand { border-bottom-color: rgba(255, 255, 255, .09); }
.nav-item { border-radius: 10px; }
.nav-item.active {
  background: linear-gradient(100deg, #2f6bff 0%, #1a46c8 100%);
  box-shadow: 0 10px 24px -10px rgba(47, 107, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .18);
}

/* 3. 顶部栏：毛玻璃（不支持 backdrop-filter 时回退为纯白，避免内容透出） */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 233, 243, .9);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar {
    background: rgba(255, 255, 255, .74);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
  }
}
.topbar h2 { font-size: 15.5px; font-weight: 600; letter-spacing: .2px; }
.topbar .tx-btn { border-color: #e3e9f3; transition: .16s; }
.topbar .tx-btn:hover { border-color: var(--brand-2); color: var(--brand); box-shadow: 0 4px 14px -6px rgba(47, 107, 255, .5); }

/* 4. 卡片 */
.card {
  border-radius: 16px;
  border-color: #e7ecf4;
  box-shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 10px 30px -18px rgba(16, 32, 64, .22);
}
.card-head h3, .section-title { font-weight: 600; letter-spacing: .2px; }

/* 5. 按钮 */
.btn { border-radius: 10px; border-color: #dfe6f1; transition: .16s ease; }
.btn:hover { border-color: #c9d6ea; background: #f7fafe; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #2f6bff 0%, #1a46c8 100%);
  box-shadow: 0 8px 20px -10px rgba(26, 70, 200, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3d78ff 0%, #1f4ed6 100%);
  box-shadow: 0 12px 26px -10px rgba(26, 70, 200, .9);
}

/* 6. KPI 卡片：顶部色条 + 主指标渐变数字 */
.kpi {
  border-radius: 14px; border-color: #e7ecf4;
  box-shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 10px 26px -18px rgba(16, 32, 64, .28);
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #c7d8ff, #eef3ff);
}
.kpi.brand::before { background: linear-gradient(90deg, #2f6bff, #7aa8ff); }
.kpi.ok::before { background: linear-gradient(90deg, #10b981, #6ee7b7); }
.kpi.warn::before { background: linear-gradient(90deg, #ef4444, #fca5a5); }
.kpi .k-val { letter-spacing: -1px; }
.kpi.brand .k-val { color: #1a46c8; }
@supports (-webkit-background-clip: text) {
  .kpi.brand .k-val {
    background: linear-gradient(135deg, #2f6bff, #1a46c8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}

/* 7. 列表 / 台账 */
.list-card {
  border-radius: 16px; border-color: #e7ecf4;
  box-shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 12px 32px -22px rgba(16, 32, 64, .3);
}
.list-head {
  background: linear-gradient(180deg, #f9fbfe, #f3f7fd);
  color: #5b6b83; letter-spacing: .5px; font-weight: 600;
}
.list-row { transition: background .14s ease; }
.list-row:hover { background: linear-gradient(90deg, #f7faff 0%, #fdfeff 60%); }

/* 8. 弹窗 */
.modal-host { background: rgba(9, 19, 42, .46); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal { border-radius: 18px; box-shadow: 0 32px 80px -28px rgba(8, 18, 40, .55); }
.modal-head { padding: 17px 22px; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 15px 22px; }

/* 9. 登录页：深蓝渐变 + 细网格 + 光斑 */
.login-brand {
  background:
    radial-gradient(760px 420px at 18% 6%, rgba(83, 138, 255, .5) 0%, rgba(83, 138, 255, 0) 58%),
    radial-gradient(620px 420px at 88% 92%, rgba(23, 62, 165, .85) 0%, rgba(23, 62, 165, 0) 62%),
    linear-gradient(140deg, #0d2456 0%, #123a86 46%, #0a1a3e 100%);
}
.login-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(680px 460px at 22% 8%, #000 0%, transparent 76%);
  mask-image: radial-gradient(680px 460px at 22% 8%, #000 0%, transparent 76%);
}
.login-brand::after {
  right: -140px; bottom: -180px; width: 520px; height: 520px;
  background: radial-gradient(circle at 40% 40%, rgba(120, 170, 255, .26), rgba(120, 170, 255, 0) 66%);
}
.login-brand h1 { letter-spacing: 1.5px; text-shadow: 0 12px 36px rgba(3, 12, 34, .45); }
.login-panel { background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%); }
.login-tabs { background: #eff3fa; }

/* 10. 输入聚焦光环 */
.input:focus, .select:focus, .textarea:focus {
  box-shadow: var(--ring); border-color: var(--brand-2);
}

/* 11. 空态 */
.empty { padding: 52px 20px; }

/* 12. 页面进入动效（SPA 路由切换时逐个淡入） */
@keyframes kdRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.content > * { animation: kdRise .3s cubic-bezier(.22, .61, .36, 1) both; }
.content > *:nth-child(2) { animation-delay: .04s; }
.content > *:nth-child(3) { animation-delay: .08s; }

/* 13. 窄屏修正：保证移动端仍紧凑、关闭动效省电 */
@media (max-width: 960px) {
  body { background-attachment: scroll; }
  .card {
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 32, 64, .05), 0 8px 20px -16px rgba(16, 32, 64, .3);
  }
  .list-card { border-radius: 14px; }
  .kpi::before { height: 2px; }
  .content > * { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .content > * { animation: none; }
}

/* 14. 细节打磨：徽标质感、头像光晕、信息表可读性 */
.sidebar .brand-emblem { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.avatar {
  box-shadow: 0 2px 10px -2px rgba(37, 99, 235, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  letter-spacing: .5px;
}
.nav-item:hover svg { opacity: 1; }
.badge { letter-spacing: .2px; }
.kv dt { color: #7a8aa0; font-size: 12.5px; }
.kv dd { color: #16233a; font-weight: 500; }
.list-head > * { white-space: nowrap; }
.portal-card b { letter-spacing: .2px; }
.section-title .line { background: linear-gradient(180deg, #2f6bff, #1a46c8); }

/* ==========================================================================
   数据驾驶舱（深色大屏）—— 全屏模式，隐藏侧栏/顶栏/底栏
   ========================================================================== */
.dash-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dash-head .dash-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.dash-head .btn { margin-left: auto; }

body.cockpit-mode { background: #04091a; }
body.cockpit-mode .sidebar,
body.cockpit-mode .topbar,
body.cockpit-mode .m-head,
body.cockpit-mode .bottom-nav { display: none !important; }
body.cockpit-mode .app { grid-template-columns: 1fr; }
body.cockpit-mode .main { min-height: 100vh; }
body.cockpit-mode .content { max-width: none; width: 100%; padding: 0; }
body.cockpit-mode .content > .ck { animation: none; }

.ck {
  position: relative; min-height: 100vh; padding: 18px 20px 24px; box-sizing: border-box;
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(37, 99, 235, .30), rgba(37, 99, 235, 0) 62%),
    radial-gradient(900px 520px at 100% 100%, rgba(56, 189, 248, .13), rgba(56, 189, 248, 0) 60%),
    linear-gradient(180deg, #050b1c 0%, #071328 55%, #04091a 100%);
  color: #cfe0ff; font-variant-numeric: tabular-nums;
}
.ck::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(96, 165, 250, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 70%, transparent 100%);
  mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 70%, transparent 100%);
}
.ck > * { position: relative; }

.ck-top { display: flex; align-items: center; gap: 16px; padding: 4px 4px 16px; flex-wrap: wrap; }
.ck-brand {
  font-size: 20px; font-weight: 700; letter-spacing: 2px; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.ck-brand::before {
  content: ""; width: 4px; height: 20px; border-radius: 2px;
  background: linear-gradient(180deg, #7dd3fc, #2563eb); box-shadow: 0 0 16px rgba(59, 130, 246, .9);
}
.ck-meta { font-size: 12px; color: #6f8cb8; }
.ck-meta span { color: #9dc0ee; }
.ck-clock {
  margin-left: auto; font-size: 13.5px; color: #9dc0ee; letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
}
.ck-acts { display: flex; gap: 8px; }
.ck-btn {
  border: 1px solid rgba(96, 165, 250, .32); background: rgba(30, 64, 175, .22); color: #bcd6ff;
  border-radius: 8px; padding: 6px 13px; font-size: 12.5px; cursor: pointer; text-decoration: none;
  transition: .16s; white-space: nowrap; font-family: inherit;
}
.ck-btn:hover { background: rgba(37, 99, 235, .42); border-color: rgba(96, 165, 250, .6); color: #fff; }

.ck-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.ck-col { display: grid; gap: 14px; align-content: start; min-width: 0; }

.ck-card {
  background: linear-gradient(180deg, rgba(12, 26, 54, .9), rgba(7, 17, 36, .92));
  border: 1px solid rgba(80, 140, 255, .17); border-radius: 14px; padding: 14px 16px 16px;
  box-shadow: inset 0 1px 0 rgba(120, 170, 255, .09), 0 20px 44px -30px rgba(0, 8, 32, .95);
  min-width: 0;
}
.ck-card > h4 {
  font-size: 13px; color: #9dc0ee; font-weight: 600; letter-spacing: 1px; margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.ck-card > h4::before {
  content: ""; width: 3px; height: 12px; border-radius: 2px; background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, .9);
}

.ck-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ck-kpi { background: rgba(23, 45, 86, .42); border: 1px solid rgba(80, 140, 255, .13); border-radius: 10px; padding: 9px 12px 11px; }
.ck-kpi .lab { font-size: 11.5px; color: #7695c2; }
.ck-kpi .val {
  font-size: clamp(20px, 1.7vw, 28px); font-weight: 700; color: #e8f2ff;
  letter-spacing: -1px; line-height: 1.25; margin-top: 1px; text-shadow: 0 0 18px rgba(96, 165, 250, .4);
}
.ck-kpi .val small { font-size: 12px; color: #7695c2; margin-left: 2px; font-weight: 500; }
.ck-kpi.hi .val { color: #5eead4; text-shadow: 0 0 18px rgba(45, 212, 191, .45); }
.ck-kpi.warn .val { color: #fb7185; text-shadow: 0 0 18px rgba(251, 113, 133, .45); }
.ck-kpi.brand .val { color: #7dd3fc; text-shadow: 0 0 20px rgba(125, 211, 252, .55); }

.ck-ring { width: 132px; height: 132px; border-radius: 50%; position: relative; margin: 2px auto 0; }
.ck-ring::after {
  content: ""; position: absolute; inset: 15px; border-radius: 50%;
  background: #08122a; box-shadow: inset 0 0 26px rgba(37, 99, 235, .4);
}
.ck-ring .c { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; }
.ck-ring .c b { font-size: 25px; color: #fff; letter-spacing: -1px; }
.ck-ring .c span { font-size: 11px; color: #7695c2; letter-spacing: 1px; }

.ck-legend { display: grid; gap: 6px; margin-top: 14px; font-size: 12px; }
.ck-legend div { display: flex; align-items: center; gap: 8px; color: #a7c2e6; }
.ck-legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ck-legend b { margin-left: auto; color: #e8f2ff; font-weight: 600; }

.ck-bars { display: grid; gap: 9px; }
.ck-bar { display: grid; grid-template-columns: 82px minmax(0, 1fr) 32px; gap: 8px; align-items: center; font-size: 12px; color: #a7c2e6; }
.ck-bar .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-bar .tr { height: 7px; border-radius: 4px; background: rgba(96, 165, 250, .12); overflow: hidden; }
.ck-bar .fl {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #38bdf8, #3b82f6); box-shadow: 0 0 12px rgba(56, 189, 248, .6);
  transition: width .6s ease;
}
.ck-bar b { text-align: right; color: #e8f2ff; font-weight: 600; }

.ck-list { display: grid; gap: 8px; max-height: 186px; overflow: auto; padding-right: 2px; }
.ck-list::-webkit-scrollbar { width: 6px; }
.ck-list::-webkit-scrollbar-thumb { background: rgba(96, 165, 250, .35); border-radius: 3px; border: none; }
.ck-item {
  display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 8px 10px; border-radius: 8px;
  background: rgba(248, 113, 113, .07); border: 1px solid rgba(248, 113, 113, .18);
}
.ck-item .t { flex: 1; min-width: 0; color: #ffd7db; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-item .s { color: #fb7185; font-size: 11px; flex: none; }

.ck-svg { width: 100%; height: auto; display: block; }
.ck-svg-val { fill: #9dc0ee; font-size: 11px; }
.ck-svg-x { fill: #6f8cb8; font-size: 10.5px; }
.ck-foot { margin-top: 10px; font-size: 12px; color: #7695c2; }
.ck-foot b { color: #e8f2ff; }
.ck-empty { padding: 26px 0; text-align: center; color: #5f7ba6; font-size: 12.5px; }
.ck-loading { padding: 80px 0; text-align: center; color: #6f8cb8; font-size: 13px; }

@media (max-width: 1440px) {
  .ck-grid { grid-template-columns: 268px minmax(0, 1fr) 296px; gap: 12px; }
  .ck-brand { font-size: 18px; }
}
@media (max-width: 1180px) {
  .ck-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ck-col:last-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ck { padding: 12px 12px 20px; }
  .ck-grid { grid-template-columns: 1fr; }
  .ck-col:last-child { grid-column: auto; grid-template-columns: 1fr; }
  .ck-brand { font-size: 16px; letter-spacing: 1px; }
  .ck-meta { display: none; }
  .ck-clock { order: 3; margin-left: 0; font-size: 12px; }
  .ck-acts { order: 4; }
  .ck-ring { width: 116px; height: 116px; }
}

/* ============ 数据大屏（bigdata-dashboard 技能产物，全屏 iframe） ============ */
/* 全屏 fixed 容器不参与页面入场动画，避免动画 transform 造成定位/尺寸抖动 */
.content > .bs-wrap { animation: none; }
.bs-wrap { position: fixed; inset: 0; z-index: 60; background: #02060d; overflow: hidden; }
.bs-loading {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  background: #02060d; color: #60a5fa; font: 600 14px/1.6 'Microsoft YaHei', sans-serif;
  letter-spacing: 1px; transition: opacity .25s;
}
.bs-loading.done { opacity: 0; pointer-events: none; }
.bs-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
.bs-tools {
  position: absolute; right: 16px; top: 14px; z-index: 5;
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  border-radius: 10px; border: 1px solid rgba(96, 165, 250, .28);
  background: rgba(6, 20, 42, .78); backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.bs-tools button {
  border: 1px solid transparent; background: transparent; color: #93c5fd;
  font: 600 12px/1.4 'Microsoft YaHei', sans-serif; padding: 6px 10px;
  border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.bs-tools button:hover { background: rgba(96, 165, 250, .16); color: #dbeafe; }
.bs-tools button.on { background: rgba(37, 99, 235, .55); border-color: rgba(96, 165, 250, .5); color: #fff; }
.bs-sep { width: 1px; height: 16px; background: rgba(148, 163, 184, .35); margin: 0 2px; }
.bs-tag {
  color: #86efac; font: 600 12px/1.4 'Microsoft YaHei', sans-serif;
  padding: 6px 8px; white-space: nowrap; letter-spacing: .3px;
}
.bs-sync {
  color: #94a3b8; font: 500 11.5px/1.4 'Microsoft YaHei', sans-serif;
  padding: 0 6px; white-space: nowrap;
}
@media (max-width: 860px) {
  .bs-tools { right: 8px; top: 8px; gap: 2px; padding: 4px; max-width: calc(100vw - 16px); overflow-x: auto; }
  .bs-tools button { font-size: 11px; padding: 5px 7px; }
  .bs-sep, .bs-sync { display: none; }
}

/* ============ 数据大屏 · 移动端竖屏版（单列卡片，字号≥11.5px，原生滚动） ============ */
.content > .bs-mobile { animation: none; }
.bs-mobile {
  min-height: 100vh; box-sizing: border-box; padding: 0 12px 34px;
  color: #dbeafe; font-variant-numeric: tabular-nums; -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(560px 320px at 50% -8%, rgba(37, 99, 235, .30), rgba(37, 99, 235, 0) 70%),
    linear-gradient(180deg, #050b1c 0%, #071328 52%, #04091a 100%);
}
.bs-m-tools {
  position: sticky; top: 0; z-index: 8;
  display: flex; gap: 6px; margin: 0 -12px 10px; padding: 10px 12px;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(4, 9, 26, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(96, 165, 250, .18);
}
.bs-m-tools::-webkit-scrollbar { display: none; }
.bs-m-tools button {
  flex: 0 0 auto; height: 38px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(96, 165, 250, .28); background: rgba(15, 32, 66, .72);
  color: #93c5fd; font: 600 13px/1 'Microsoft YaHei', sans-serif; white-space: nowrap;
}
.bs-m-tools button.on { background: rgba(37, 99, 235, .62); border-color: #60a5fa; color: #fff; }

.bs-m-head { padding: 6px 2px 14px; }
.bs-m-title { font-size: 19px; font-weight: 800; letter-spacing: .5px; color: #f1f5ff; }
.bs-m-sub { margin-top: 5px; font-size: 12px; color: #8ea8cc; }
.bs-m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bs-m-kpi {
  position: relative; overflow: hidden; padding: 14px 12px 13px; border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, .2); background: rgba(13, 28, 58, .78);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.bs-m-kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #60a5fa, #22d3ee); }
.bs-m-kpi.c1::before { background: linear-gradient(90deg, #fbbf24, #f97316); }
.bs-m-kpi.c2::before { background: linear-gradient(90deg, #a78bfa, #818cf8); }
.bs-m-kpi.c3::before { background: linear-gradient(90deg, #34d399, #10b981); }
.bs-m-kpi-label { font-size: 12.5px; font-weight: 600; color: #9fb6dc; }
.bs-m-kpi-val { margin: 6px 0 8px; font-size: 30px; line-height: 1.1; font-weight: 800; color: #fff; }
.bs-m-kpi-val small { margin-left: 4px; font-size: 13px; font-weight: 600; color: #93c5fd; }
.bs-m-kpi-sub { font-size: 11.5px; line-height: 1.7; color: #8ea8cc; }

.bs-m-card {
  margin-top: 12px; padding: 14px 12px 15px; border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, .18); background: rgba(13, 28, 58, .72);
}
.bs-m-card h4 {
  margin: 0 0 12px; padding-left: 9px; border-left: 3px solid #3b82f6;
  font-size: 14.5px; font-weight: 700; color: #dbeafe;
}
.bs-m-svg { display: block; width: 100%; height: auto; }
.bs-m-svg-val { fill: #cfe8ff; font: 600 10px sans-serif; }
.bs-m-svg-label { fill: #8ea8cc; font: 11px sans-serif; }
.bs-m-legends { display: flex; gap: 16px; justify-content: center; margin-top: 4px; }
.bs-m-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #a9c2e6; }
.bs-m-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

.bs-m-bar-row { display: flex; align-items: center; gap: 9px; margin: 10px 0; font-size: 12.5px; }
.bs-m-bar-name { flex: 0 0 84px; color: #cfe0ff; }
.bs-m-bar-track { flex: 1; height: 9px; border-radius: 6px; background: rgba(148, 180, 230, .14); overflow: hidden; }
.bs-m-bar-track i { display: block; height: 100%; border-radius: 6px; }
.bs-m-bar-row b { flex: 0 0 auto; min-width: 46px; text-align: right; font-size: 12.5px; color: #fff; }

.bs-m-rank { display: flex; align-items: center; gap: 10px; margin: 11px 0; }
.bs-m-rank-no {
  flex: 0 0 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 6px;
  background: rgba(59, 130, 246, .24); color: #93c5fd; font-size: 12px; font-weight: 700;
}
.bs-m-rank-main { flex: 1; min-width: 0; }
.bs-m-rank-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12.5px; color: #cfe0ff; }
.bs-m-rank-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-m-rank-top b { flex: 0 0 auto; color: #fff; }

.bs-m-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.bs-m-mini { padding: 11px 10px; border-radius: 10px; background: rgba(37, 99, 235, .12); border: 1px solid rgba(96, 165, 250, .16); }
.bs-m-mini b { display: block; font-size: 20px; font-weight: 800; color: #fff; }
.bs-m-mini span { display: block; margin-top: 3px; font-size: 11.5px; color: #9fb6dc; }

.bs-m-ticket { padding: 11px 10px; margin-bottom: 9px; border-radius: 10px; background: rgba(6, 18, 40, .6); border: 1px solid rgba(96, 165, 250, .14); }
.bs-m-t-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bs-m-t-top b { font-size: 12.5px; color: #93c5fd; }
.bs-m-status { flex: 0 0 auto; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.bs-m-status.ok { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
.bs-m-status.warn { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.bs-m-status.blue { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.bs-m-t-title { margin: 7px 0 4px; font-size: 13.5px; line-height: 1.5; color: #f1f5ff; }
.bs-m-t-meta { font-size: 11.5px; color: #8ea8cc; }

.bs-m-empty { padding: 28px 12px; text-align: center; font-size: 13px; color: #8ea8cc; }
.bs-m-foot { margin-top: 16px; text-align: center; font-size: 11.5px; color: #6f8ab3; }
@media (max-width: 360px) {
  .bs-m-kpi-val { font-size: 26px; }
  .bs-m-bar-name { flex-basis: 70px; }
}

/* 办理延期：待审申请与历次延期记录 */
.ext-list { display: flex; flex-direction: column; gap: 10px; }
.ext-item { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #fbfcfe; }
.ext-line { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); flex-wrap: wrap; }
.ext-line .spacer { flex: 1; min-width: 0; }
.ext-reason { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.7; }
.ext-result { font-size: 12.5px; margin-top: 6px; padding: 6px 9px; border-radius: 7px; line-height: 1.7; }
.ext-result.ok { background: #ecfdf5; color: #047857; }
.ext-result.no { background: #fef2f2; color: #b91c1c; }
.ext-result.wait { background: #fffbeb; color: #b45309; }
/* 列表里的「延期待审」小标 */
.tag.ext { background: #fffbeb; color: #b45309; }
/* 待办页顶部的「延期待审」提示条：琥珀色，与红色超时预警区分开 */
.ext-tip { display: flex; align-items: center; gap: 10px; margin-top: 12px;
  background: #fffbeb; border: 1px solid #fde68a; border-left: 3px solid #f59e0b;
  border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #92400e; }
.ext-tip b { color: #b45309; font-size: 15px; margin: 0 2px; }
.ext-tip .spacer { flex: 1; }

/* ── 演示态：督办切换身份后的顶部提示条 ── */
.demo-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 18px; font-size: 13px;
  background: #fff7ed; color: #9a3412; border-bottom: 1px solid #fed7aa;
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: #f97316; flex: none; }
.demo-bar b { font-weight: 600; }
.demo-back {
  margin-left: auto; flex: none;
  border: 1px solid #fdba74; background: #fff; color: #c2410c;
  padding: 5px 12px; border-radius: 6px; font-size: 12.5px; cursor: pointer;
}
.demo-back:hover { background: #ffedd5; }

/* ── 切换身份（演示）弹窗 ── */
.imp-group { margin-bottom: 14px; }
.imp-group:last-child { margin-bottom: 0; }
.imp-role { font-size: 12.5px; font-weight: 600; color: #64748b; margin-bottom: 7px; }
.imp-members { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 移动端「切换身份」入口（演示用，仅督办可见）+ 演示提示条窄屏适配 ── */
@media (max-width: 960px) {
  /* 姓名/角色区可收缩，避免右侧按钮把标题挤破 */
  .m-head #m-user { overflow: hidden; }
  .m-head #m-user .m-title,
  .m-head #m-user .m-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* 带文字的胶囊按钮：图标 +「切换身份」，演示时一眼能找到（纯图标在手机上不好认） */
  .m-head .m-btn.m-imp {
    display: flex; align-items: center; justify-content: center;
    width: auto; padding: 0 11px; gap: 5px;
    font-size: 12.5px; font-weight: 500; background: rgba(250, 204, 21, .32);
  }
  .m-head .m-btn.m-imp span { line-height: 1; white-space: nowrap; }
}

@media (max-width: 640px) {
  /* 演示提示条：手机上让「切回督办」独占一行，便于手指点按 */
  .demo-bar { font-size: 12.5px; padding: 8px 12px; gap: 6px 8px; }
  .demo-bar .demo-back { margin-left: 0; flex: 1 1 100%; text-align: center; padding: 8px 12px; }
}

/* 演示态（已切换身份）在手机上：让提示条常驻顶部。
   原因：提示条原先在移动端头部上方，页面一滚就出屏，「切回督办」得先滚回顶部才点得到。
   现在由提示条接管顶部，头部改成跟随滚动（提示条本身已显示当前身份，信息不丢）。 */
@media (max-width: 960px) {
  .app.demo-on .demo-bar { position: sticky; top: 0; z-index: 45; }
  .app.demo-on .m-head { position: static; }
}
