/* ============================================================
   城管通 · 三端闭环演示原型  样式表
   设计语言：政务蓝 / 浅色底 / 卡片化 / 数据优先
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --brand: #0f4c9c;
  --brand-600: #1a63c9;
  --brand-500: #2f7ae0;
  --brand-100: #e8f0fc;
  --brand-50: #f2f7fe;
  --navy: #0b2a52;
  --navy-800: #123a6b;

  --bg: #f1f5fa;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --line: #e3e9f2;
  --line-strong: #d3dcea;
  --text: #13233c;
  --text-2: #334963;
  --muted: #6b7c96;
  --muted-2: #93a1b5;

  --ok: #0d9f6e;
  --ok-bg: #e8f8f1;
  --warn: #d98209;
  --warn-bg: #fdf3e3;
  --danger: #d93a3a;
  --danger-bg: #fdecec;
  --purple: #6d4ee0;
  --purple-bg: #f0ecfe;
  --indigo: #2558c8;
  --indigo-bg: #eaf0fd;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 76, .05);
  --shadow: 0 2px 4px rgba(16, 40, 76, .04), 0 10px 28px rgba(16, 40, 76, .07);
  --shadow-lg: 0 18px 50px rgba(11, 42, 82, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 480px at 88% -8%, #e3edfb 0%, rgba(227, 237, 251, 0) 62%),
    radial-gradient(900px 420px at -8% 4%, #e9f1fc 0%, rgba(233, 241, 252, 0) 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
input, select, textarea, button { font-size: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd8e7; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b3c2d6; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ==================== 通用组件 ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: .16s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { border-color: #b8c8de; background: var(--brand-50); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-600), var(--brand));
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 76, 156, .24);
}
.btn-primary:hover { background: linear-gradient(180deg, #2470da, #0f4c9c); border-color: #0f4c9c; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; gap: 5px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; gap: 4px; }
.btn-danger { color: var(--danger); border-color: #f0c9c9; background: #fff; }
.btn-danger:hover { background: var(--danger-bg); border-color: #e9b4b4; color: var(--danger); }
.btn-ok { color: #fff; background: linear-gradient(180deg, #17ab7b, #0d9366); border-color: #0d9366; box-shadow: 0 2px 8px rgba(13, 147, 102, .2); }
.btn-ok:hover { background: #0d9366; color: #fff; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid #dce8fa;
  color: var(--brand);
  font-size: 12px;
  white-space: nowrap;
}
.chip.amber { background: var(--warn-bg); border-color: #f6e2c2; color: var(--warn); }
.chip.green { background: var(--ok-bg); border-color: #cdeee0; color: var(--ok); }
.chip.red { background: var(--danger-bg); border-color: #f5d3d3; color: var(--danger); }
.chip.gray { background: #f2f5f9; border-color: #e6ebf2; color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st-audit { color: var(--warn); background: var(--warn-bg); }
.st-dispatch { color: var(--indigo); background: var(--indigo-bg); }
.st-accept { color: var(--brand-600); background: var(--brand-100); }
.st-doing { color: var(--purple); background: var(--purple-bg); }
.st-check { color: #0e7a8a; background: #e4f6f8; }
.st-closing { color: #8a5a00; background: #fbf0d9; }
.st-done { color: var(--ok); background: var(--ok-bg); }
.st-return { color: var(--danger); background: var(--danger-bg); }
.st-timeout { color: #fff; background: var(--danger); }
.st-timeout::before { background: #fff; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.card-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 650; color: var(--text); }
.card-title .t-mark { width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-500), var(--brand)); }
.card-sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.card-body { padding: 16px 18px; }

.kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text-2); }

.divider { height: 1px; background: var(--line); margin: 14px 0; }

.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}
.empty svg { margin: 0 auto 10px; opacity: .5; }

/* 表格 */
.table-wrap { overflow: auto; }
table.tb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.tb th {
  position: sticky; top: 0; z-index: 2;
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tb td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f8;
  color: var(--text-2);
  vertical-align: middle;
}
table.tb tbody tr { transition: background .12s; }
table.tb tbody tr:hover { background: #f8fbff; }
table.tb tbody tr:last-child td { border-bottom: 0; }
table.tb .t-strong { color: var(--text); font-weight: 600; }
table.tb .t-no { font-family: var(--mono); font-size: 12px; color: var(--muted); }
table.tb .t-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-over td { background: #fff7f7; }
.row-over:hover td { background: #fff1f1; }
tr.is-picked td { background: #f3f8ff; }

/* 表单 */
.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(47, 122, 224, .13); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.65; }
.field-hint { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

/* 分段控件 */
.seg { display: inline-flex; padding: 3px; background: #edf2f9; border-radius: 9px; gap: 2px; }
.seg button {
  height: 30px; padding: 0 14px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; transition: .15s;
  white-space: nowrap;
}
.seg button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(16, 40, 76, .12); }

/* 进度条 */
.progress { height: 6px; border-radius: 99px; background: #e9eff7; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-500), var(--brand)); }
.progress.warn > i { background: linear-gradient(90deg, #f0a63c, #d98209); }
.progress.danger > i { background: linear-gradient(90deg, #ec6b6b, #d93a3a); }

/* Toast */
.toast-layer { position: fixed; z-index: 9999; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  background: rgba(15, 32, 56, .94); color: #fff; font-size: 13px;
  box-shadow: 0 10px 30px rgba(9, 24, 46, .3);
  animation: toastIn .22s ease both;
  max-width: 520px;
}
.toast.ok { background: rgba(9, 108, 78, .96); }
.toast.warn { background: rgba(150, 92, 6, .96); }
.toast.err { background: rgba(160, 36, 36, .96); }
.toast.out { animation: toastOut .2s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

/* Modal */
#modal-root { position: fixed; inset: 0; z-index: 9000; display: none; }
#modal-root.on { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(12, 26, 48, .42); backdrop-filter: blur(2px); animation: fadeIn .18s ease both; }
.modal {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popIn .2s cubic-bezier(.2, .9, .3, 1.1) both;
}
.modal.wide { width: min(860px, calc(100vw - 32px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15.5px; font-weight: 650; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: #f0f4fa; color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* ==================== 落地页 ==================== */

.landing { min-height: 100%; padding-bottom: 40px; }
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  height: 64px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 233, 242, .9);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #1c6ad4, #0b3d80);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 76, 156, .28);
}
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; transition: .15s; }
.nav-link:hover { background: var(--brand-50); color: var(--brand); }
.nav-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }

.hero {
  position: relative;
  padding: 64px max(24px, calc((100vw - 1180px) / 2)) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26, 99, 201, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 99, 201, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(760px 420px at 22% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 1.2px; color: var(--brand);
  background: #fff; border: 1px solid #dbe7f8; border-radius: 999px;
  padding: 5px 12px; box-shadow: var(--shadow-sm);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 3px rgba(47, 122, 224, .16); }
.hero h1 {
  margin: 20px 0 14px;
  font-size: 46px;
  line-height: 1.18;
  letter-spacing: -1px;
  font-weight: 750;
  color: var(--navy);
}
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #1a63c9, #2f8ae0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 15.5px; color: var(--text-2); line-height: 1.85; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-actions .btn { height: 44px; padding: 0 22px; font-size: 14px; }
.hero-meta { display: flex; gap: 22px; margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line-strong); max-width: 520px; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.3; }
.hero-meta span { font-size: 11.5px; color: var(--muted); letter-spacing: .3px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 480px; }
.orbit {
  position: absolute; border: 1px dashed #cfe0f5; border-radius: 50%;
}
.orbit.o1 { width: 460px; height: 460px; }
.orbit.o2 { width: 350px; height: 350px; border-style: solid; border-color: #e2ecf9; }
.hero-phone { position: relative; width: 268px; height: 540px; border-radius: 36px; border: 8px solid #101a2b; background: #f4f7fc; box-shadow: 0 28px 60px rgba(11, 42, 82, .26); overflow: hidden; }
.hero-phone .hp-status { height: 26px; background: linear-gradient(135deg, #0d3f80, #1b6cd0); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #fff; font-size: 9px; }
.hero-phone .hp-head { background: linear-gradient(135deg, #0d3f80, #1b6cd0); color: #fff; padding: 8px 14px 26px; }
.hero-phone .hp-head b { font-size: 13px; display: block; }
.hero-phone .hp-head span { font-size: 9px; opacity: .7; }
.hero-phone .hp-body { padding: 0 12px; margin-top: -16px; display: flex; flex-direction: column; gap: 8px; }
.hp-card { background: #fff; border-radius: 10px; padding: 9px 10px; box-shadow: 0 3px 10px rgba(16, 40, 76, .07); }
.hp-row { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; }
.hp-row b { font-size: 10.5px; }
.hp-tag { font-size: 8px; padding: 1px 5px; border-radius: 3px; background: #fdf3e3; color: #d98209; }
.hp-tag.blue { background: #eaf0fd; color: #2558c8; }
.hp-tag.green { background: #e8f8f1; color: #0d9f6e; }
.hp-note { font-size: 8.5px; color: #6b7c96; margin-top: 3px; }
.hp-tabbar { position: absolute; bottom: 0; left: 0; right: 0; height: 44px; background: #fff; border-top: 1px solid #eef2f8; display: flex; align-items: center; justify-content: space-around; font-size: 8px; color: #93a1b5; }
.hp-tabbar .on { color: #1a63c9; }
.hp-fab { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #2f7ae0, #0f4c9c); color: #fff; display: grid; place-items: center; margin-top: -18px; box-shadow: 0 4px 10px rgba(15, 76, 156, .3); }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 13px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 9px; font-size: 12px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 13px; color: var(--navy); }
.float-card span { font-size: 10.5px; color: var(--muted); }
.float-card .fc-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.float-card.fc1 { left: 2%; top: 18%; animation-delay: -1s; }
.float-card.fc2 { right: 0%; top: 52%; animation-delay: -3s; }
.float-card.fc3 { left: 8%; bottom: 10%; animation-delay: -4.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.section { padding: 18px max(24px, calc((100vw - 1180px) / 2)) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; color: var(--navy); letter-spacing: -.3px; }
.section-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }

.role-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.role-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: .2s ease;
  overflow: hidden;
}
.role-card::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--brand-500), #6aa8f0);
  opacity: 0; transition: .2s;
}
.role-card:nth-child(2)::after { background: linear-gradient(90deg, #0f7d63, #35b892); }
.role-card:nth-child(3)::after { background: linear-gradient(90deg, #6d4ee0, #9d8bf5); }
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.role-card:hover::after { opacity: 1; }
.role-head { display: flex; align-items: center; gap: 12px; }
.role-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand); }
.role-card:nth-child(2) .role-ic { background: #e6f7f1; color: #0d8a64; }
.role-card:nth-child(3) .role-ic { background: #f0ecfe; color: #6d4ee0; }
.role-title { font-size: 16px; font-weight: 650; }
.role-desc { font-size: 12px; color: var(--muted); margin-top: 1px; }
.role-list { margin: 16px 0 18px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.role-list li { display: flex; align-items: flex-start; gap: 7px; }
.role-list svg { color: #9db4d2; margin-top: 3px; flex: none; }
.role-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--brand); font-weight: 600; }
.role-foot span.cnt { color: var(--muted); font-weight: 400; font-size: 11.5px; }

.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 8px; }
.flow-step { position: relative; text-align: center; padding: 0 6px; }
.flow-step::after {
  content: ""; position: absolute; top: 17px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 1.5px; background: linear-gradient(90deg, #cfdcee, #e6edf7);
}
.flow-step:last-child::after { display: none; }
.step-dot {
  width: 34px; height: 34px; margin: 0 auto 10px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-50); border: 1px solid #cfe0f5; color: var(--brand);
  position: relative; z-index: 1; font-size: 12px; font-weight: 700;
}
.flow-step:nth-child(n+5) .step-dot { background: #f2f8f5; border-color: #cbe9dc; color: #0d8a64; }
.step-name { font-size: 13px; font-weight: 600; color: var(--text); }
.step-role { font-size: 11px; color: var(--muted); margin-top: 2px; }

.footer-note { margin: 34px auto 0; max-width: 1180px; padding: 0 24px; font-size: 12px; color: var(--muted-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ==================== 手机外壳 ==================== */

.mobile-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
  padding: 26px max(20px, calc((100vw - 1240px) / 2));
}
.stage-side { position: sticky; top: 26px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.side-card + .side-card { margin-top: 14px; }
.side-title { font-size: 12px; color: var(--muted); letter-spacing: .6px; margin-bottom: 10px; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav button {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer; text-align: left;
  transition: .13s;
}
.side-nav button:hover { background: var(--brand-50); color: var(--brand); }
.side-nav button.on { background: var(--brand-100); color: var(--brand); font-weight: 600; }
.side-nav .sn-dot { width: 6px; height: 6px; border-radius: 50%; background: #c9d6e8; margin-left: auto; }
.side-nav button.on .sn-dot, .side-nav .sn-dot.hot { background: var(--brand-500); }

.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 396px; height: 842px;
  border: 11px solid #0e1726;
  border-radius: 52px;
  background: #f4f7fc;
  box-shadow: 0 32px 70px rgba(11, 30, 58, .28), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.phone::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 24px; border-radius: 20px; background: #0e1726; z-index: 60;
}
.phone-statusbar {
  height: 42px; flex: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 24px 6px;
  font-size: 11.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #0b3a75, #1a63c9);
  position: relative; z-index: 50;
}
.phone-statusbar.light { background: #fff; color: var(--text); }
.phone-statusbar .ps-right { display: flex; align-items: center; gap: 5px; }
.phone-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; background: #f4f7fc; }
.m-screen { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.m-screen::-webkit-scrollbar { width: 0; }

.tabbar {
  flex: none; height: 66px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid #e9eef6;
  padding-bottom: 4px;
}
.tabbar button {
  border: 0; background: transparent; color: #93a1b5;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; cursor: pointer; padding: 0;
}
.tabbar button.on { color: var(--brand-600); font-weight: 600; }
.tabbar .tab-fab {
  width: 48px; height: 48px; margin-top: -22px; border-radius: 50%;
  background: linear-gradient(150deg, #2f7ae0, #0f4c9c);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(15, 76, 156, .34);
}
.tabbar .tab-fab-label { margin-top: -1px; }

/* 手机内页面 */
.m-head {
  position: relative;
  padding: 6px 18px 40px;
  background: linear-gradient(150deg, #0b3a75 0%, #175bb4 62%, #1f6ecc 100%);
  color: #fff;
  overflow: hidden;
}
.m-head::after {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.m-head::before {
  content: ""; position: absolute; right: 30px; bottom: -70px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.m-head-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.m-greet { font-size: 11.5px; opacity: .72; letter-spacing: .3px; }
.m-name { font-size: 19px; font-weight: 650; margin-top: 2px; letter-spacing: .3px; }
.m-head-title { font-size: 18px; font-weight: 650; }
.m-head-sub { font-size: 11.5px; opacity: .72; margin-top: 2px; }
.m-head-icon { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; color: #fff; border: 0; cursor: pointer; position: relative; }
.m-head-icon .dot { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: #ffb020; border: 1.5px solid #175bb4; }

.m-body { padding: 0 14px 22px; }
.pull-up { margin-top: -28px; position: relative; z-index: 2; }
.m-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(16, 40, 76, .06); overflow: hidden; }
.m-card + .m-card { margin-top: 10px; }
.m-sec-title { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px 9px; font-size: 13.5px; font-weight: 650; color: var(--text); }
.m-sec-title .more { font-size: 11.5px; color: var(--muted); font-weight: 400; display: flex; align-items: center; gap: 2px; }

/* 签到卡 */
.att-card { padding: 15px 16px; display: flex; align-items: center; gap: 14px; }
.att-ring {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  display: grid; place-items: center; text-align: center;
  background: conic-gradient(#20b07e 0 68%, #eef3f9 0);
  position: relative;
}
.att-ring::before { content: ""; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }
.att-ring b { position: relative; font-size: 13px; color: #0d8a64; line-height: 1.1; }
.att-ring b span { display: block; font-size: 9px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.att-main { flex: 1; min-width: 0; }
.att-main h4 { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.att-main p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.att-main p b { color: var(--text-2); font-weight: 600; }
.att-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 0; }
.m-stat { text-align: center; position: relative; }
.m-stat + .m-stat::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: #eef2f8; }
.m-stat b { display: block; font-size: 19px; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.3; }
.m-stat b small { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.m-stat span { font-size: 11px; color: var(--muted); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 14px 8px; }
.quick-item { border: 0; background: transparent; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; border-radius: 10px; }
.quick-item:hover { background: var(--brand-50); }
.qi-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.qi-ic.b { background: #eaf1fd; color: #1a63c9; }
.qi-ic.g { background: #e7f7f1; color: #0d8a64; }
.qi-ic.o { background: #fdf2e3; color: #c47a09; }
.qi-ic.p { background: #f0ecfe; color: #6d4ee0; }
.qi-ic.r { background: #fdecec; color: #d93a3a; }
.quick-item span { font-size: 11.5px; color: var(--text-2); }
.quick-item em { position: absolute; }

/* 待核查提醒 */
.todo-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f1f5fa; cursor: pointer; }
.todo-row:last-child { border-bottom: 0; }
.todo-row:hover { background: #f8fbff; }
.tr-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; background: #e9eff7; }
.tr-main { flex: 1; min-width: 0; }
.tr-main h5 { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-main p { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-time { font-size: 10.5px; color: var(--muted-2); flex: none; }

/* 工单卡 */
.case-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(16, 40, 76, .055); cursor: pointer; transition: .15s; }
.case-card:hover { box-shadow: 0 6px 20px rgba(16, 40, 76, .1); transform: translateY(-1px); }
.case-card + .case-card { margin-top: 10px; }
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-no { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.cc-title { font-size: 14px; font-weight: 650; margin-top: 6px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.cc-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.cc-meta svg { opacity: .65; }
.cc-bottom { display: flex; align-items: center; gap: 10px; margin-top: 11px; padding-top: 11px; border-top: 1px dashed #eef2f8; }
.cc-thumbs { display: flex; gap: 4px; }
.cc-thumbs .mini { width: 38px; height: 38px; border-radius: 6px; overflow: hidden; background: #e9eff7; }
.cc-status { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cc-arrow { color: #c1cee0; }

/* 筛选条 */
.filter-bar { display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto; background: #fff; border-bottom: 1px solid #eef2f8; position: sticky; top: 0; z-index: 5; }
.filter-bar::-webkit-scrollbar { height: 0; }
.f-chip { flex: none; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; cursor: pointer; }
.f-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 上传照片 */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.photo {
  position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden;
  background: linear-gradient(160deg, #dbe6f4, #eef3fa);
  cursor: pointer;
}
.photo svg { width: 100%; height: 100%; }
.photo .wm {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 5px 4px;
  background: linear-gradient(transparent, rgba(5, 20, 40, .74));
  color: #fff; font-size: 6.5px; line-height: 1.5; letter-spacing: .1px;
  font-family: var(--mono);
}
.photo .del {
  position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(10, 24, 44, .55); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: .15s;
}
.photo:hover .del { opacity: 1; }
.photo-empty {
  aspect-ratio: 1; border: 1.5px dashed #cbd8e8; border-radius: 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #94a8c2; font-size: 10px; cursor: pointer; background: #fafcff;
}
.photo-empty:hover { border-color: var(--brand-500); color: var(--brand); background: var(--brand-50); }

/* 列表行 */
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f1f5fa; cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #f8fbff; }
.lr-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #f1f5fb; color: var(--muted); flex: none; }
.lr-main { flex: 1; min-width: 0; }
.lr-main h5 { font-size: 13.5px; font-weight: 550; }
.lr-main p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.lr-val { font-size: 12px; color: var(--muted); flex: none; }

/* 提示条 */
.hint {
  display: flex; gap: 9px; padding: 11px 12px; border-radius: 10px;
  background: var(--brand-50); border: 1px solid #dbe8fa; color: #33557d; font-size: 11.5px; line-height: 1.65;
}
.hint.warn { background: var(--warn-bg); border-color: #f6e4c6; color: #7c5206; }
.hint.end { background: var(--ok-bg); border-color: #cfeee1; color: #0a6449; }
.hint svg { flex: none; margin-top: 1px; }

/* 底部操作条（手机内） */
.m-actionbar {
  flex: none; display: flex; gap: 9px; padding: 11px 14px 16px;
  background: #fff; border-top: 1px solid #eef2f8;
}
.m-actionbar .btn { flex: 1; height: 42px; }

/* 登录 */
.login-wrap { min-height: 100%; background: linear-gradient(165deg, #0b3a75 0%, #12509b 42%, #1a63c9 100%); padding: 46px 26px 30px; color: #fff; display: flex; flex-direction: column; }
.login-logo { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center; margin-bottom: 18px; }
.login-wrap h2 { font-size: 25px; letter-spacing: .5px; font-weight: 700; }
.login-wrap .login-sub { font-size: 12px; opacity: .7; margin-top: 6px; letter-spacing: .4px; }
.login-panel { margin-top: 30px; background: #fff; border-radius: 18px; padding: 22px 18px; color: var(--text); box-shadow: 0 20px 50px rgba(3, 20, 45, .3); }
.login-panel h3 { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.login-panel .lp-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 18px; }
.login-foot { margin-top: auto; padding-top: 26px; font-size: 10.5px; color: rgba(255, 255, 255, .55); text-align: center; line-height: 1.8; }

/* 三图对比 */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.compare figure { margin: 0; }
.compare .photo { border-radius: 8px; }
.compare figcaption { font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 5px; }

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 5px; bottom: 8px; width: 1.5px; background: #e6edf6; }
.tl-item { position: relative; padding-bottom: 15px; }
.tl-item::before {
  content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: #fff; border: 2px solid #c3d4e8;
}
.tl-item:first-child::before { border-color: var(--brand-500); background: var(--brand-500); box-shadow: 0 0 0 3px rgba(47, 122, 224, .14); }
.tl-item:first-child .tl-act { color: var(--text); font-weight: 600; }
.tl-act { font-size: 12.5px; color: var(--text-2); }
.tl-meta { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.tl-note { font-size: 11.5px; color: var(--muted); background: #f7fafd; border-radius: 7px; padding: 6px 9px; margin-top: 5px; }

/* 地图 */
.map-wrap { position: relative; background: #e9f0f8; overflow: hidden; }
.map-wrap svg { width: 100%; height: 100%; display: block; }
.map-legend {
  position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .93); border-radius: 8px; padding: 6px 9px;
  font-size: 9.5px; color: var(--text-2); box-shadow: 0 2px 8px rgba(16, 40, 76, .1);
}
.map-legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 3px; }
.map-tools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 5px; }
.map-tools button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(16, 40, 76, .13); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.map-tools button.on { background: var(--brand); color: #fff; }

/* 绩效 */
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f1f5fa; }
.rank-row:last-child { border-bottom: 0; }
.rank-no { width: 22px; text-align: center; font-weight: 700; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-no.top { color: #d98209; }
.rank-row.me { background: var(--brand-50); }
.rank-name { flex: 1; font-size: 13px; }
.rank-score { font-size: 13px; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ==================== PC 端（管理端 / 联动部门端） ==================== */

.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); height: 100vh; overflow: hidden; background: var(--bg); }
.sidebar {
  background: linear-gradient(180deg, #0a2a50 0%, #0d3462 100%);
  color: #dbe7f6;
  display: flex; flex-direction: column;
  position: relative;
  z-index: 20;
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; }
.sb-brand .brand-mark { background: rgba(255, 255, 255, .12); box-shadow: none; border: 1px solid rgba(255, 255, 255, .18); }
.sb-brand b { font-size: 15px; color: #fff; letter-spacing: .4px; display: block; }
.sb-brand span { font-size: 10.5px; color: #8fadd2; letter-spacing: .5px; }
.sb-role { margin: 0 14px 12px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); font-size: 11.5px; color: #c3d8f1; display: flex; align-items: center; gap: 7px; }
.sb-role i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc9a; box-shadow: 0 0 0 3px rgba(61, 220, 154, .16); }
.sb-scroll { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.sb-scroll::-webkit-scrollbar { width: 0; }
.sb-group { font-size: 10px; letter-spacing: 1px; color: #6f8fb5; padding: 14px 10px 6px; }
.sb-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 9px 10px; margin-bottom: 2px;
  border: 0; border-radius: 8px; background: transparent;
  color: #c4d7ee; font-size: 13px; cursor: pointer; text-align: left;
  transition: .13s; position: relative;
}
.sb-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sb-item.on { background: linear-gradient(90deg, rgba(47, 122, 224, .32), rgba(47, 122, 224, .12)); color: #fff; font-weight: 600; }
.sb-item.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #4d9bf5; }
.sb-item .sb-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e0483f; color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.sb-item .sb-badge.soft { background: rgba(255, 255, 255, .16); }
.sb-foot { padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: #9db8d6; }
.sb-foot .avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 11px; color: #fff; }
.sb-foot b { color: #e6f0fb; font-weight: 600; display: block; font-size: 12px; }

.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.topbar {
  height: 58px; flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 0 22px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.crumb b { color: var(--text); font-weight: 600; font-size: 15px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-icon { position: relative; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.top-icon:hover { color: var(--brand); border-color: #cbdcf1; }
.top-icon .dot { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.top-user { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.top-user .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.top-user span { font-size: 12.5px; color: var(--text-2); }

.page { flex: 1; overflow-y: auto; padding: 20px 22px 30px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 19px; letter-spacing: -.2px; color: var(--navy); }
.page-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.page-head .ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; overflow: hidden; }
.kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.25; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.kpi-value small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; gap: 5px; font-size: 11.5px; margin-top: 4px; color: var(--muted); }
.kpi-foot .up { color: var(--ok); font-weight: 600; }
.kpi-foot .down { color: var(--danger); font-weight: 600; }
.kpi-ic { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.kpi.warn .kpi-ic { background: var(--warn-bg); color: var(--warn); }
.kpi.danger .kpi-ic { background: var(--danger-bg); color: var(--danger); }
.kpi.ok .kpi-ic { background: var(--ok-bg); color: var(--ok); }
.kpi.purple .kpi-ic { background: var(--purple-bg); color: var(--purple); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.mt14 { margin-top: 14px; }
.mt10 { margin-top: 10px; }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.toolbar .search { position: relative; }
.toolbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.toolbar .search input { padding-left: 31px; width: 220px; height: 34px; }
.toolbar .select { width: auto; height: 34px; padding: 0 30px 0 10px; font-size: 12.5px; }
.toolbar .spacer { flex: 1; }

/* 图表 */
.chart-box { padding: 6px 10px 0; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 158px; padding: 10px 8px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-stack { width: 100%; max-width: 34px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; flex: 1; }
.bar-seg { border-radius: 3px 3px 0 0; min-height: 2px; transition: height .4s ease; }
.bar-seg.a { background: linear-gradient(180deg, #4d94ea, #2f7ae0); }
.bar-seg.b { background: linear-gradient(180deg, #7fd3b6, #35b892); }
.bar-label { font-size: 10.5px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); padding: 10px 8px 0; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

.donut { display: flex; align-items: center; gap: 18px; padding: 4px 6px; }
.donut svg { flex: none; }
.donut-list { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.donut-list div { display: flex; align-items: center; gap: 7px; }
.donut-list i { width: 7px; height: 7px; border-radius: 2px; }
.donut-list b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text); }

/* 详情抽屉 */
.drawer { position: fixed; inset: 0; z-index: 8000; display: none; }
.drawer.on { display: block; }
.drawer-mask { position: absolute; inset: 0; background: rgba(12, 26, 48, .34); animation: fadeIn .18s ease both; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(560px, 94vw);
  background: var(--bg);
  box-shadow: -20px 0 50px rgba(11, 42, 82, .18);
  display: flex; flex-direction: column;
  animation: slideIn .26s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: .6; } }
.drawer-head { flex: none; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.drawer-head h3 { font-size: 15px; font-weight: 650; }
.drawer-head .dh-no { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px 20px; }
.drawer-foot { flex: none; padding: 12px 18px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.section-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.sc-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid #f1f5fa; font-size: 12.5px; font-weight: 650; color: var(--text); }
.sc-head .hint-txt { font-size: 11px; color: var(--muted); font-weight: 400; }
.sc-body { padding: 14px 15px; }
.sc-body.tight { padding: 10px 15px; }

/* 部门端 */
.dept-hero { background: linear-gradient(120deg, #0e3d78, #1a63c9 62%, #2f7ae0); color: #fff; border-radius: 14px; padding: 18px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dept-hero h3 { font-size: 18px; font-weight: 650; letter-spacing: .3px; }
.dept-hero p { font-size: 12px; opacity: .78; margin-top: 3px; }
.dept-hero .dh-stat { margin-left: auto; display: flex; gap: 26px; }
.dept-hero .dh-stat div { text-align: center; }
.dept-hero .dh-stat b { font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.dept-hero .dh-stat span { font-size: 11px; opacity: .75; }
.dept-hero .dh-stat .urgent b { color: #ffd479; }

.timeline-urgency { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.time-pill { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: #f2f5f9; color: var(--muted); font-variant-numeric: tabular-nums; }
.time-pill.warn { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.time-pill.danger { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.time-pill.ok { background: var(--ok-bg); color: var(--ok); }

/* 覆盖矩阵 */
.coverage-page { max-width: 1180px; margin: 0 auto; padding: 26px 24px 60px; }
.cov-table td { vertical-align: top; }
.cov-mod { min-width: 130px; }
.cov-item { font-size: 12.5px; color: var(--text-2); line-height: 1.9; }
.cov-item em { font-style: normal; color: var(--muted-2); font-family: var(--mono); font-size: 10.5px; margin-right: 5px; }

/* 响应式 */
@media (max-width: 1180px) {
  .mobile-stage { grid-template-columns: 210px minmax(0, 1fr); }
  .mobile-stage .stage-side.right { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-side { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .role-cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 18px 0; }
  .flow-step:nth-child(3)::after { display: none; }
  .mobile-stage { grid-template-columns: 1fr; padding: 16px 12px 40px; }
  .mobile-stage .stage-side { display: none; }
  .phone { width: 100%; max-width: 396px; height: min(842px, 88vh); }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 216px; transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: none; box-shadow: 20px 0 40px rgba(11, 42, 82, .25); }
  .page { padding: 14px 12px 30px; }
  .topbar { padding: 0 12px; }
  .hero h1 { font-size: 34px; }
  .nav { padding: 0 16px; }
  .hero { padding: 40px 16px 24px; }
  .section { padding: 8px 16px 0; }
}

/* 补充：导航与窄屏细节 */
.nav-toggle { display: none; }
.crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumb b { white-space: nowrap; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .crumb span { display: none; }
  .top-user span { display: none; }
  .topbar { gap: 8px; }
  .top-actions { gap: 6px; }
  .page-head .ph-actions .btn { height: 32px; font-size: 12.5px; }
}

/* 补充：部门端统计块与核查审核栅格 */
.dept-hero .dh-stat b { display: block; line-height: 1.15; }
.dept-hero .dh-stat span { display: block; margin-top: 2px; }
.verify-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(540px, 1fr)); gap: 14px; }
.cov-item { line-height: 1.85; }
