/* ==========================================================================
   故障代码管理系统 · 现代浅色主题（自包含，无外部依赖）
   ========================================================================== */
:root {
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-deep: #115e59;
  --brand-soft: #f0fdfa;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6eaf0;
  --bg: #f1f5f9;
  --card: #ffffff;
  --danger: #ef4444;
  --success: #16a34a;
  --warning: #f59e0b;
  --info: #3b82f6;
  --r: 14px;
  --r-sm: 9px;
  --sh: 0 1px 2px rgba(15,23,42,.05);
  --sh-lg: 0 18px 44px -18px rgba(15,23,42,.28);
  --sw: 250px;
  --sw-collapsed: 76px;
  --topbar: 62px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; line-height: 1.6; color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: none; }
img { max-width: 100%; }
code { background: #f1f5f9; color: #be185d; padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.muted { color: var(--muted) !important; }
.danger { color: var(--danger) !important; }
.small { font-size: 12.5px; }
.center { text-align: center; }
svg.ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- 布局骨架 ---------- */
.s-app { min-height: 100vh; }
.s-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1060; width: var(--sw);
  display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line);
  transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1); box-shadow: var(--sh);
}
.s-drawer.s-open { transform: translateX(0); box-shadow: var(--sh-lg); }
.s-mask {
  position: fixed; inset: 0; z-index: 1050; background: rgba(15,23,42,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.s-mask.s-show { opacity: 1; pointer-events: auto; }
.s-wrap { min-height: 100vh; display: flex; flex-direction: column; }

.s-topbar {
  position: sticky; top: 0; z-index: 1020; height: var(--topbar);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.s-hamburger {
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--muted); transition: background .15s;
}
.s-hamburger:hover { background: var(--bg); color: var(--ink); }
.s-page-title { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; }
.s-topbar-right { margin-left: auto; display: flex; align-items: center; }

.s-main { flex: 1; display: flex; flex-direction: column; }
.s-content { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 20px 16px 40px; }

@media (min-width: 992px) {
  .s-drawer { transform: translateX(0); box-shadow: none; transition: width .25s; overflow: hidden; }
  .s-wrap { margin-left: var(--sw); transition: margin-left .25s; }
  body.s-collapsed .s-drawer { width: var(--sw-collapsed); }
  body.s-collapsed .s-wrap { margin-left: var(--sw-collapsed); }
  body.s-collapsed .s-brand-text, body.s-collapsed .nav-label,
  body.s-collapsed .nav-arrow, body.s-collapsed .drawer-footer { display: none !important; }
  body.s-collapsed .nav-item > a { justify-content: center; padding: 14px 0; }
  /* 折叠态：点击一级菜单时，子菜单以右侧浮层弹出（不再被 hidden 屏蔽，否则折叠后无法进入任何子页面） */
  body.s-collapsed .nav-item-has-subnav { position: static; }
  body.s-collapsed .nav-item-has-subnav.open > .nav-subnav {
    display: block !important;
    max-height: none;
    position: fixed;
    left: var(--sw-collapsed);
    min-width: 200px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
    z-index: 200;
  }
  body.s-collapsed .nav-item-has-subnav.open > .nav-subnav a { padding-left: 12px; }
}
body.s-lock, body.s-lock .s-content { overflow: hidden; }
@media (max-width: 575px) { .s-page-title { font-size: 14.5px; } }

/* ---------- 侧栏品牌与导航 ---------- */
.s-brand { height: var(--topbar); display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.s-brand-badge {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff;
}
.s-brand-img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.s-brand-text { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.drawer-scroll { flex: 1; overflow-y: auto; padding: 12px 12px 20px; }
.s-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-item > a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin: 2px 0;
  color: var(--ink-2); border-radius: 10px; font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: background .15s, color .15s;
}
.nav-item > a .nav-ic, .nav-item > a svg { color: var(--muted); }
.nav-item > a:hover { background: var(--bg); color: var(--ink); }
.nav-arrow { margin-left: auto; color: var(--muted); display: inline-flex; transition: transform .2s; }
.nav-item.open > a .nav-arrow { transform: rotate(90deg); }
.nav-subnav { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.nav-item.open > .nav-subnav { max-height: 600px; }
.nav-subnav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 41px; margin: 2px 0;
  color: var(--muted); border-radius: 9px; font-size: 13.5px;
}
.nav-subnav a .sub-ic { opacity: .8; }
.nav-subnav a:hover { background: var(--bg); color: var(--ink); }
.nav-item.active > a { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.nav-item.active > a svg { color: var(--brand); }
.nav-subnav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.drawer-footer { padding: 14px 16px; border-top: 1px solid var(--line); }
.drawer-footer .copyright { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- 顶栏用户 ---------- */
.s-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-weight: 700; font-size: 15px;
}
.user-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  font-size: 13.5px; color: var(--ink); font-weight: 600; transition: border-color .15s, box-shadow .15s;
  min-width: 0; max-width: 52vw;
}
.user-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.user-chip:hover { border-color: var(--brand); box-shadow: var(--sh); }
.user-chip .caret { display: inline-flex; color: var(--muted); flex-shrink: 0; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1040; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--sh-lg); padding: 6px; margin: 0; list-style: none; display: none;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu > li > a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; }
.dropdown-menu > li > a:hover { background: var(--bg); color: var(--ink); }
.dropdown-menu > li.divider { margin: 6px; height: 1px; background: var(--line); }
@media (max-width: 575px) { .user-chip .caret { display: none; } .user-chip { padding: 3px 8px 3px 3px; } }

/* ---------- 卡片 ---------- */
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--sh); margin-bottom: 18px; }
.card-header {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.card-header h1, .card-header h2, .card-header h3, .card-header h4 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.card-header .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.card-toolbar { padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafcfe; }
.card-body { padding: 18px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card {
  border-radius: var(--r); padding: 18px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: var(--sh);
}
.stat-card .s-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; }
.stat-card .s-num { font-size: 26px; font-weight: 800; line-height: 1.1; margin: 4px 0 0; }
.stat-card .s-label { font-size: 13px; opacity: .92; }
.stat-card.c1 { background: linear-gradient(135deg,#12b3a6,#0b7a72); }
.stat-card.c2 { background: linear-gradient(135deg,#2fbf71,#14934e); }
.stat-card.c3 { background: linear-gradient(135deg,#55a0f5,#1f6fe0); }
.stat-card.c4 { background: linear-gradient(135deg,#ffb340,#e08a07); }
@media (min-width: 992px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 栅格 ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.c-12 { grid-column: span 12; }
.c-9 { grid-column: span 9; }
.c-8 { grid-column: span 8; }
.c-6 { grid-column: span 6; }
.c-4 { grid-column: span 4; }
.c-3 { grid-column: span 3; }
@media (max-width: 991px) { .c-9, .c-8, .c-6, .c-4, .c-3 { grid-column: span 12; } }

/* 工具栏（flex 自动换行，grow 占满剩余） */
.bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.bar .grow { flex: 1 1 220px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; cursor: pointer; line-height: 1.5; background: none; color: inherit;
  transition: all .15s; text-decoration: none;
}
.btn svg { width: 15px; height: 15px; }
.btn-sm { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-default { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-default:hover { background: var(--bg); border-color: #d4dbe4; color: var(--ink); }
.btn-success { background: var(--success); color: #fff; }
.btn-info { background: var(--info); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-danger-outline { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger-outline:hover { background: #fef2f2; border-color: #f87171; }

/* ---------- 徽标 ---------- */
.badge { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 1.5; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.badge-default { background: #eef2f7; color: var(--muted); }
.badge-brand { background: var(--brand-soft); color: var(--brand-deep); }
.badge-success { background: #ecfdf5; color: var(--success); }
.badge-info { background: #eff6ff; color: var(--info); }
.badge-warning { background: #fffbeb; color: #b45309; }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-brand + .hot-tag { margin-left: 6px; }
.hot-tag {
  display: inline-block; padding: 1px 6px; font-size: 11px; font-weight: 700; line-height: 1.5;
  border-radius: 6px; background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; vertical-align: middle;
}

/* 关于页 · 使用说明 */
.howto li { display: flex; align-items: flex-start; gap: 12px; }
.howto li b { color: var(--ink); }
.howto li div { color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.howto .n {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table thead th {
  padding: 11px 13px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  text-align: left; text-transform: uppercase; letter-spacing: .04em;
  background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody td { padding: 12px 13px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcfe; }
.table-striped tbody tr:nth-child(odd) { background: #fafbfd; }
.table tbody tr:nth-child(odd):hover td { background: #f3f6fb; }
.table .acts { white-space: nowrap; }
.table .acts .btn { margin-right: 4px; }

/* 移动端 → 卡片（td 由 app.js 注入 data-label） */
@media (max-width: 991px) {
  .table-card thead { display: none; }
  .table-card tr { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 13px; margin-bottom: 12px; box-shadow: var(--sh); }
  .table-card td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 7px 0; border: 0; border-bottom: 1px dashed #eef1f6; text-align: right !important;
  }
  .table-card td:last-child { border-bottom: 0; }
  .table-card td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; flex: 0 0 70px; text-align: left; }
  .table-card td.acts {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding-top: 10px;
    border-top: 1px dashed var(--line); justify-content: flex-start;
  }
  .table-card td.acts::before { content: none; }
  .table-card td.acts .btn { flex: 1 1 auto; margin: 0; }
  .table-card td.cause .t {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    overflow: hidden; word-break: break-word; white-space: normal;
  }
  .table-card .badge { flex-shrink: 0; }
}
.table-card td.cause .t { display: inline-block; max-width: 100%; word-break: break-word; white-space: normal; }

/* 空状态 */
.empty { text-align: center; padding: 44px 0; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: #dde3ec; }
.empty p { margin: 10px 0 0; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 16px 0 4px; }
.pager a, .pager span {
  padding: 7px 13px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 8px; font-size: 13px; text-decoration: none; min-width: 36px; text-align: center;
}
.pager a:hover { background: var(--bg); color: var(--brand); }
.pager .active a, .pager .active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .disabled a, .pager .disabled span { color: #c2cbd7; cursor: not-allowed; background: #fff; }
.pager .ellipsis a, .pager .ellipsis { border: 0; background: transparent; color: var(--muted); min-width: auto; padding: 7px 2px; cursor: default; }

/* 分页栏：信息 + 折叠页码 + 跳转，整体横向排列 */
.pager-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 4px; }
.pager-info { color: var(--muted); font-size: 13px; }
.pager { flex: 1 1 auto; justify-content: center; margin: 0; }
.pager-jump { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pager-jump .input { width: auto; }
.pager-jump .pj-input { width: 64px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); font-size: 13.5px; }
.field .req { color: var(--danger); }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 14px; color: var(--ink-2); background: #fff; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }

/* 移动端输入框字号最小 16px，防止点击聚焦时 Safari 自动放大页面 */
@media (max-width: 767.98px) {
  input, select, textarea { font-size: 16px !important; }
}
textarea.input { min-height: 96px; resize: vertical; }
.help { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.checkbox, .radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; margin-right: 16px; }
.checkbox input, .radio input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.hint { color: var(--muted); font-size: 12.5px; }

.logo-preview { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.logo-preview img { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }

/* ---------- 提示 ---------- */
.alert { border-radius: var(--r-sm); border: 1px solid transparent; padding: 11px 14px; font-size: 13.5px; margin-bottom: 14px; }
.alert-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.alert-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.alert-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* 顶部 toast */
#toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-20px); z-index: 2000;
  padding: 11px 18px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transition: all .3s; max-width: 92vw;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.success { background: #16a34a; }
#toast.danger { background: #dc2626; }
#toast.info { background: #2563eb; }
#toast.warning { background: #d97706; }

/* ---------- 模态框 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 1200; background: rgba(15,23,42,.5);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto;
  background: #fff; border-radius: var(--r); box-shadow: var(--sh-lg);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.modal-close { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-body { padding: 20px; }
.detail-list { width: 100%; border-collapse: collapse; }
.detail-list th, .detail-list td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.detail-list th { color: var(--muted); font-weight: 600; background: #f8fafc; width: 96px; }

/* ---------- 其它组件 ---------- */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.model-card {
  display: block; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  padding: 18px; box-shadow: var(--sh); color: var(--ink-2); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.model-card:hover { border-color: var(--brand); box-shadow: var(--sh); transform: translateY(-2px); color: inherit; }
.model-card .m-name { font-size: 16px; font-weight: 700; color: var(--ink); word-break: break-all; margin-bottom: 8px; }
.model-card .m-count { color: var(--muted); font-size: 13px; }

.tree { list-style: none; margin: 0; padding: 0; }
.tree ul { list-style: none; margin: 4px 0; padding-left: 6px; }
.tree li { padding: 4px 0; }
.tree .row-node { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 权限勾选 */
.perm-tree li { padding: 3px 0; }
.permission-group { margin-bottom: 6px; }
.permission-group > .label { font-weight: 700; color: var(--ink); }
.permission-children { margin-left: 22px; display: flex; flex-wrap: wrap; gap: 4px 6px; }

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 22px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--brand-deep), var(--brand) 55%, #0f766e);
}
.login-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 18px;
  box-shadow: var(--sh-lg); padding: 36px 30px 24px;
}
.login-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.login-logo-img { width: 56px; height: 56px; object-fit: contain; }
.login-title { text-align: center; font-size: 20px; font-weight: 800; color: var(--ink); margin: 8px 0 4px; }
.login-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.login-card .btn { padding: 11px; font-size: 15px; font-weight: 600; }
.login-foot { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }

/* 徽章式品牌图（登录/侧栏复用） */
.login-sub svg { display: none; }

/* 系统动态小指标（管理员首页） */
.s-mini { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.s-mini .m-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.s-mini .m-num { font-size: 18px; font-weight: 700; color: var(--text); }
.hot-rank { flex-shrink: 0; }

@media (max-width: 575px) {
  .s-content { padding: 14px 12px 36px; }
  .card-body { padding: 15px; }
  .card-header { padding: 13px 15px; }
  .stat-card { padding: 14px; }
  .stat-card .s-num { font-size: 21px; }
  .grid { gap: 12px; }
}