/* ===== 防止 Vue 未挂载时模板闪烁 ===== */
[v-cloak] { display: none !important; }

/* ===== Variables ===== */
:root {
  --sidebar-w: 230px;
  --sidebar-collapsed-w: 64px;
  --header-h: 56px;
  --primary: #409eff;
  --success: #67c23a;
  --warning: #e6a23c;
  --danger: #f56c6c;
  --info: #909399;
  --text-1: #303133;
  --text-2: #606266;
  --text-3: #909399;
  --border: #e4e7ed;
  --bg-page: #f0f2f5;
  --bg-card: #ffffff;
  --sidebar-bg: #1d1e2c;
  --sidebar-hover: #2a2b3d;
  --sidebar-active: #409eff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.1);
  --transition: all .25s ease;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html, body, #app { height:100%; }
body { font-family: 'PingFang SC','Microsoft YaHei','Helvetica Neue',sans-serif; background: var(--bg-page); color: var(--text-1); -webkit-font-smoothing: antialiased; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Login ===== */
/* ===== Splash Page ===== */
.splash-page { height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#0d1117 0%,#1a1f2e 50%,#0d1117 100%); position:relative; overflow:hidden; padding-bottom:60px; }
.splash-page::before { content:''; position:absolute; width:800px; height:800px; background:radial-gradient(circle,rgba(64,158,255,.08),transparent 60%); top:50%; left:50%; transform:translate(-50%,-50%); }
.splash-content { text-align:center; z-index:1; padding:0 40px; }
.splash-logo-img { width:180px; height:auto; margin-bottom:70px; animation:fadeInUp 0.8s ease forwards; transform:translateY(-60px); }
.splash-brand, .splash-title { color: transparent; }
.splash-brand { font-size:44px; font-weight:700; letter-spacing:10px; margin:0 0 48px; color:#fff; filter:drop-shadow(0 0 20px rgba(255,255,255,.4)); }
.splash-title { font-size:72px; font-weight:800; letter-spacing:8px; margin:0; line-height:1.3; }
.splash-title .char {
  display:inline-block; opacity:0; animation:charIn 0.6s ease forwards;
  background:linear-gradient(to bottom right,#409eff 0%,#409eff 20%,#36a3f7 40%,#20c997 55%,#5bbd3e 70%,#73d13d 85%,#52c41a 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  filter:drop-shadow(0 0 25px rgba(103,194,58,.4));
}
/* 逐字动画：用 JS 在 onMounted 拆字，渐变色和动画在 .splash-brand .char / .splash-title .char 上 */
@keyframes charIn { from { opacity:0; transform:translateY(18px) scale(0.92); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes titleGlow { 0%,100%{ filter:drop-shadow(0 0 20px rgba(64,158,255,.4)); } 50%{ filter:drop-shadow(0 0 40px rgba(64,158,255,.6)) drop-shadow(0 0 60px rgba(103,194,58,.2)); } }
@keyframes titleGlow2 { 0%,100%{ filter:drop-shadow(0 0 30px rgba(103,194,58,.3)); } 50%{ filter:drop-shadow(0 0 50px rgba(103,194,58,.5)) drop-shadow(0 0 80px rgba(64,158,255,.2)); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }

/* ===== Login Page ===== */
.login-page { height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#0d1117 0%,#1a1f2e 50%,#0d1117 100%); position:relative; overflow:hidden; }
.login-page::before { content:''; position:absolute; width:600px; height:600px; background:radial-gradient(circle,rgba(64,158,255,.12),transparent 70%); top:-200px; left:-100px; animation:loginFloat 15s ease-in-out infinite; }
.login-page::after { content:''; position:absolute; width:500px; height:500px; background:radial-gradient(circle,rgba(103,194,58,.08),transparent 70%); bottom:-150px; right:-100px; animation:loginFloat 18s ease-in-out infinite reverse; }
@keyframes loginFloat { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-30px)} }
.login-card { width:400px; padding:40px; background:rgba(255,255,255,.03); backdrop-filter:blur(20px); border:1px solid rgba(255,255,255,.08); border-radius:16px; box-shadow:0 24px 64px rgba(0,0,0,.5); position:relative; z-index:1; }
.login-logo { text-align:center; margin-bottom:32px; }
.login-logo-icon { width:64px; height:64px; margin:0 auto 8px; border-radius:14px; background:linear-gradient(135deg,#409eff,#67c23a); display:flex; align-items:center; justify-content:center; color:#fff; font-size:28px; font-weight:700; box-shadow:0 8px 24px rgba(64,158,255,.3); }
.login-logo-img { width:80px; height:60px; margin:0 auto 6px; object-fit:contain; }
.login-logo h1 { font-size:18px; font-weight:700; color:#fff; letter-spacing:2px; }
.login-logo p { font-size:11px; color:rgba(255,255,255,.35); letter-spacing:4px; margin-top:12px; }
.login-form .el-input__wrapper { background:rgba(255,255,255,.06)!important; border:1px solid rgba(255,255,255,.1)!important; box-shadow:none!important; border-radius:8px; }
.login-form .el-input__inner { color:#fff!important; }
.login-form .el-input__inner::placeholder { color:rgba(255,255,255,.25)!important; }
.login-form .el-button--primary { background:linear-gradient(135deg,#409eff,#3a7bd5)!important; border:none!important; border-radius:8px!important; height:44px!important; font-size:15px!important; }
.login-form .el-button--primary:hover { background:linear-gradient(135deg,#66b1ff,#5a9cf5)!important; }
.login-input { width:100%; height:44px; padding:0 14px; margin-bottom:16px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.15); border-radius:8px; color:#fff; font-size:14px; outline:none; transition:all .2s; box-sizing:border-box; }
.login-input:focus { border-color:#409eff; box-shadow:0 0 0 2px rgba(64,158,255,.25); }
.login-input::placeholder { color:rgba(255,255,255,.3); }
.login-btn { width:100%; height:44px; border:none; border-radius:8px; background:linear-gradient(135deg,#409eff,#3a7bd5); color:#fff; font-size:15px; font-weight:600; cursor:pointer; transition:all .2s; letter-spacing:2px; margin-top:4px; }
.login-btn:hover { background:linear-gradient(135deg,#66b1ff,#5a9cf5); transform:translateY(-1px); box-shadow:0 4px 16px rgba(64,158,255,.4); }
.login-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; box-shadow:none; }
.login-error { color:var(--danger); font-size:13px; text-align:center; margin-top:-8px; }
.login-footer { color:rgba(255,255,255,.25); font-size:12px; text-align:center; margin-top:24px; }

/* ===== Main Layout ===== */
.main-layout { display:flex; height:100vh; overflow:hidden; }
.main-area { flex:1; display:flex; flex-direction:column; min-width:0; }

/* Sidebar */
.sidebar { width:var(--sidebar-w); background:var(--sidebar-bg); display:flex; flex-direction:column; transition:var(--transition); flex-shrink:0; box-shadow:2px 0 16px rgba(0,0,0,.15); z-index:100; }
.sidebar.collapsed { width:var(--sidebar-collapsed-w); overflow:hidden; }
.sidebar-header { height:var(--header-h); display:flex; align-items:center; padding:0 16px; border-bottom:1px solid rgba(255,255,255,.06); }
.sidebar-logo { display:flex; align-items:center; overflow:hidden; }
.sidebar-logo-icon { display:none; }
.sidebar-logo-img { width:34px; height:34px; border-radius:10px; object-fit:contain; flex-shrink:0; margin-right:10px; }
.sidebar-logo-text { font-size:16px; font-weight:700; color:#fff; letter-spacing:1px; white-space:nowrap; }
.sidebar-nav { flex:1; overflow-y:auto; padding:12px 8px; }
.sidebar-nav::-webkit-scrollbar { width:0; }
.nav-item { display:flex; align-items:center; padding:11px 16px; margin:2px 0; color:rgba(255,255,255,.55); border-radius:8px; cursor:pointer; transition:var(--transition); white-space:nowrap; font-size:14px; }
.nav-item:hover { background:var(--sidebar-hover); color:#fff; }
.nav-item.active { background:var(--sidebar-active); color:#fff; box-shadow:0 4px 12px rgba(64,158,255,.35); }
.nav-icon { font-size:18px; width:24px; text-align:center; flex-shrink:0; }
.nav-label { margin-left:12px; }
.sidebar-footer { padding:8px; border-top:1px solid rgba(255,255,255,.06); }

/* Header */
.top-header { height:var(--header-h); background:var(--bg-card); border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; padding:0 24px; box-shadow:var(--shadow); flex-shrink:0; }
.header-left { flex:1; min-width:0; overflow:hidden; display:flex; align-items:center; gap:16px; }
.breadcrumb { display:flex; align-items:center; gap:6px; font-size:14px; }
.bc-home { color:var(--text-3); cursor:pointer; }
.bc-home:hover { color:var(--primary); }
.bc-sep { color:#c0c4cc; }
.bc-current { color:var(--text-1); font-weight:500; }
.header-right { flex-shrink:0; display:flex; align-items:center; gap:8px; }
.header-action { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:8px; cursor:pointer; color:var(--text-2); transition:var(--transition); }
.header-action:hover { background:#f5f7fa; }
.user-info { display:flex; align-items:center; gap:10px; cursor:pointer; padding:4px 8px; border-radius:8px; transition:var(--transition); }
.user-info:hover { background:#f5f7fa; }
.user-avatar { width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,#409eff,#3a7bd5); display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; font-weight:600; }
.user-detail { line-height:1.3; }
.user-name { font-size:14px; font-weight:500; color:var(--text-1); }
.user-role { font-size:12px; color:var(--text-3); }
.user-arrow { color:var(--text-3); margin-left:4px; }

/* Global Scrollbar */
* { scrollbar-width: thin; scrollbar-color: #c0c4cc transparent; }
*::-webkit-scrollbar { width:8px; height:8px; }
*::-webkit-scrollbar-track { background:transparent; }
*::-webkit-scrollbar-thumb { background:#c0c4cc; border-radius:4px; }
*::-webkit-scrollbar-thumb:hover { background:#909399; }

/* Page Content */
.page-content { height:0; flex:1; overflow-y:auto; padding:10px 20px; background:var(--bg-page); scrollbar-gutter:stable; }
.page-content::-webkit-scrollbar { width:8px; }
.page-content::-webkit-scrollbar-thumb { background:#c0c4cc; border-radius:4px; }
.page-content::-webkit-scrollbar-thumb:hover { background:#909399; }

/* Sidebar: hide scrollbar */
.sidebar-nav::-webkit-scrollbar { width:0 !important; }
.sidebar-nav { scrollbar-width: none !important; }

/* ===== Dashboard ===== */
.ws-welcome { background:linear-gradient(135deg, #1d1e2c 0%, #2a2b3d 100%); border-radius:var(--radius); padding:10px 16px; margin-bottom:10px; color:#fff; display:flex; align-items:center; justify-content:space-between; }
.ws-welcome h2 { font-size:15px; color:#fff; }
.ws-welcome p { color:rgba(255,255,255,.55); font-size:12px; }
.ws-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#409eff,#67c23a); display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; font-weight:700; flex-shrink:0; box-shadow:0 4px 12px rgba(64,158,255,.3); }

/* 快捷功能区 */
.ws-shortcuts { display:flex; flex-wrap:wrap; gap:10px; padding:16px; }
.ws-shortcut-item { display:flex; align-items:center; padding:10px 18px; background:#f5f7fa; border-radius:6px; font-size:14px; color:var(--text-2); cursor:pointer; transition:var(--transition); border:1px solid var(--border); position:relative; }
.ws-shortcut-item:hover { background:#ecf5ff; color:var(--primary); border-color:#a0cfff; }
.ws-shortcut-del { margin-left:8px; font-size:12px; color:#c0c4cc; opacity:0; transition:opacity .2s; }
.ws-shortcut-item:hover .ws-shortcut-del { opacity:1; }
.ws-shortcut-add { display:flex; align-items:center; padding:10px 18px; border-radius:6px; font-size:14px; color:var(--primary); cursor:pointer; border:1px dashed #a0cfff; background:#f0f9ff; transition:var(--transition); }
.ws-shortcut-add:hover { background:#e6f4ff; }
.ws-shortcut-option { padding:10px 14px; background:#f5f7fa; border-radius:6px; cursor:pointer; font-size:13px; border:1px solid var(--border); transition:var(--transition); }
.ws-shortcut-option:hover { background:#ecf5ff; border-color:#a0cfff; }
.ws-shortcut-option.selected { background:#ecf5ff; border-color:#409eff; color:#409eff; }

/* 待办 */
.ws-todo-row { display:flex; align-items:center; padding:12px 0; border-bottom:1px solid #f5f7fa; cursor:pointer; font-size:14px; }
.ws-todo-row:last-child { border-bottom:none; }
.ws-todo-row:hover { color:var(--primary); }

/* 旧的todo-card备用 */
.ws-todo-card { background:var(--bg-card); border-radius:var(--radius); padding:14px 20px; box-shadow:var(--shadow); display:flex; align-items:center; min-width:260px; transition:var(--transition); border-left:3px solid #e6a23c; }
.ws-todo-card:hover { transform:translateY(-1px); box-shadow:var(--shadow-lg); }

/* 侧边栏分组 */
.nav-group { display:flex; align-items:center; padding:10px 16px; margin:2px 0 0; color:rgba(255,255,255,.45); border-radius:8px; cursor:pointer; transition:var(--transition); font-size:13px; user-select:none; }
.nav-group:hover { background:var(--sidebar-hover); color:rgba(255,255,255,.8); }
.nav-group.open { color:rgba(255,255,255,.85); }
.nav-group-icon { font-size:16px; width:24px; text-align:center; flex-shrink:0; margin-right:8px; }
.nav-group-label { flex:1; }
.nav-group-arrow { font-size:11px; }
.nav-sub-group { margin:2px 0; }
.nav-sub-item { padding:9px 16px 9px 48px; color:rgba(255,255,255,.5); font-size:13px; cursor:pointer; border-radius:6px; transition:var(--transition); margin:1px 8px; }
.nav-sub-item:hover { background:var(--sidebar-hover); color:#fff; }
.nav-sub-item.active { background:rgba(64,158,255,.2); color:#409eff; }
.nav-sub-item.disabled { color:rgba(255,255,255,.25); cursor:default; font-style:italic; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:10px; }
.stat-card { background:var(--bg-card); border-radius:var(--radius); padding:10px 12px; box-shadow:var(--shadow); transition:var(--transition); }
.stat-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.stat-clickable { cursor:pointer; }
.stat-clickable:hover .stat-goto { color:#409eff; }
.stat-goto { transition:color 0.2s; }
.stat-body { display:flex; align-items:center; justify-content:space-between; }
.stat-value { font-size:18px; font-weight:700; color:var(--text-1); }
.stat-label { font-size:11px; color:var(--text-3); margin-top:1px; }
.stat-icon-wrap { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:16px; }
.stat-icon { font-size:16px; }
.stat-footer { display:flex; align-items:center; gap:8px; margin-top:12px; padding-top:12px; border-top:1px solid #f5f5f5; font-size:13px; }
.trend-up { color:var(--success); font-weight:500; }
.trend-down { color:var(--danger); font-weight:500; }
.trend-label { color:var(--text-3); }

/* Charts */
.chart-grid { display:grid; grid-template-columns:2fr 1fr; gap:10px; margin-bottom:10px; }
.chart-card { background:var(--bg-card); border-radius:var(--radius); padding:10px 12px; box-shadow:var(--shadow); }
.chart-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.chart-head h3 { font-size:13px; font-weight:600; }
.chart-link { font-size:13px; color:var(--primary); cursor:pointer; }
.chart-area { width:100%; height:280px; }
.chart-wide { }

/* Activity */
.activity-list { max-height:280px; overflow-y:auto; }
.activity-row { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid #f5f5f5; }
.activity-row:last-child { border-bottom:none; }
.activity-dot { width:8px; height:8px; border-radius:50%; margin-top:6px; flex-shrink:0; }
.activity-body { flex:1; }
.activity-title { font-size:13px; color:var(--text-1); }
.activity-time { font-size:12px; color:var(--text-3); margin-top:3px; }

/* ===== List Pages ===== */
.page-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.page-top h2 { font-size:20px; font-weight:600; }
.filter-card { background:var(--bg-card); border-radius:var(--radius); padding:16px 20px; margin-bottom:20px; box-shadow:var(--shadow); display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.table-card { background:var(--bg-card); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.table-avatar { width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#409eff,#67c23a); display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:12px; font-weight:600; }
.table-pagination { padding:16px 20px; display:flex; justify-content:flex-end; }

/* Status Badge */
.status-badge { display:inline-flex; align-items:center; gap:5px; padding:2px 10px; border-radius:10px; font-size:12px; }
.status-badge i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.status-active { background:#f0f9eb; color:#67c23a; }
.status-inactive { background:#f4f4f5; color:#909399; }
.status-pending { background:#fdf6ec; color:#e6a23c; }
.status-danger { background:#fef0f0; color:#f56c6c; }

/* ===== Manager Cards ===== */
.manager-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:20px; }
.manager-card { background:var(--bg-card); border-radius:12px; padding:24px; box-shadow:var(--shadow); transition:var(--transition); }
.manager-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-2px); }
.mc-header { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.mc-avatar { width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,#409eff,#67c23a); display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; font-weight:600; }
.mc-info { flex:1; }
.mc-name { font-size:16px; font-weight:600; }
.mc-phone { font-size:13px; color:var(--text-3); margin-top:2px; }
.mc-stats { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; padding:16px 0; border-top:1px solid #f5f5f5; border-bottom:1px solid #f5f5f5; margin-bottom:16px; text-align:center; }
.mc-stat strong { display:block; font-size:20px; color:var(--text-1); }
.mc-stat span { font-size:12px; color:var(--text-3); margin-top:4px; display:block; }
.mc-actions { display:flex; gap:8px; }

/* ===== Institution Cards ===== */
.inst-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:20px; }
.inst-card { background:var(--bg-card); border-radius:12px; padding:24px; box-shadow:var(--shadow); transition:var(--transition); }
.inst-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-2px); }
.inst-head { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.inst-logo { width:52px; height:52px; border-radius:12px; background:linear-gradient(135deg,#409eff,#3a7bd5); display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px; font-weight:700; }
.inst-name { font-size:16px; font-weight:600; }
.inst-addr { font-size:13px; color:var(--text-3); margin-top:2px; }
.inst-metrics { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; padding:16px 0; border-top:1px solid #f5f5f5; border-bottom:1px solid #f5f5f5; margin-bottom:16px; text-align:center; }
.inst-metric-val { font-size:22px; font-weight:700; }
.inst-metric-label { font-size:12px; color:var(--text-3); margin-top:4px; }
.inst-foot { display:flex; align-items:center; justify-content:space-between; }

/* ===== Settings ===== */
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.settings-section { background:var(--bg-card); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); }
.settings-section h3 { font-size:16px; font-weight:600; margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid #f5f5f5; }

/* ===== 组织架构 ===== */
.org-tree-node { margin-bottom: 4px; }
.org-node-item {
  display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:6px; cursor:pointer; transition:background 0.2s;
}
.org-node-item:hover { background:#f5f7fa; }
.org-node-item.active { background:#ecf5ff; color:#409eff; }
.org-level-icon { font-size:16px; flex-shrink:0; }
.org-node-name { flex:1; font-size:14px; }
.org-level-tag {
  font-size:11px; padding:2px 6px; border-radius:4px; background:#f0f0f0; color:#999; flex-shrink:0;
}
.org-node-item.active .org-level-tag { background:#d9ecff; color:#409eff; }
.setting-row { display:flex; align-items:center; margin-bottom:16px; gap:16px; }
.setting-label { width:100px; font-size:14px; color:var(--text-2); flex-shrink:0; }

/* ===== Responsive ===== */
@media(max-width:1200px) {
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .chart-grid { grid-template-columns:1fr; }
}
@media(max-width:768px) {
  .stat-grid { grid-template-columns:1fr; }
  .settings-grid { grid-template-columns:1fr; }
  .manager-cards, .inst-grid { grid-template-columns:1fr; }
}

/* ===== Print Styles =====
   ⚠️ 2026-10-24：这里原本是「body * { visibility: hidden } + 白名单容器 visibility:visible」
   的老方案，白名单锚点 #ai-report-print / #basic-report-print 已随报告改版删除，
   全仓库再无这两个 id → 整页被隐藏，Ctrl+P 除了背景一片空白。
   现全站打印统一走 index.html 的 @media print（隐藏侧栏/头部 + 正常打印主体），
   **不要在这里重新引入 visibility:hidden**，那会再次把正文全部吃掉。 */
@media print {
  .no-print { display: none !important; }
  /* 弹窗内的报告要能整份打印：解除滚动容器的裁剪与 max-height 限制 */
  .modal-mask { background: transparent !important; position: static !important; }
  .modal-box { max-width: 100% !important; width: 100% !important; max-height: none !important; overflow: visible !important; box-shadow: none !important; border: none !important; }
  /* .page-content 靠 height:0 + flex:1 + overflow-y:auto 撑滚动区（见同文件 127 行），
     打印时必须复位，否则内容被压进 0 高度盒子 → 只打出空白。 */
  .main-layout, .main-area, .page-content {
    height: auto !important; max-height: none !important;
    overflow: visible !important; display: block !important;
  }
}

/* ===== 健康预警面板 ===== */
.alert-panel { padding: 0; }
.alert-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding: 0 4px;
}
.alert-panel-header h3 {
  margin: 0; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; color: var(--text-1);
}
.alert-panel-header h3 .alert-total-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; border-radius: 12px;
  font-size: 12px; font-weight: 700; color: #fff; padding: 0 7px;
  background: linear-gradient(135deg, #f56c6c, #e64340);
  box-shadow: 0 2px 8px rgba(245,108,108,.35);
}
.alert-scan-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--primary);
  padding: 5px 12px; border-radius: 6px;
  background: #ecf5ff; border: 1px solid #d9ecff;
  cursor: pointer; transition: all .2s; font-weight: 500;
}
.alert-scan-btn:hover { background: #d9ecff; }
.alert-scan-btn:disabled { opacity: .6; cursor: not-allowed; }

/* 统计卡片 */
.alert-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 16px;
}
.alert-stat-card {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px; border-radius: 10px;
  border: 1px solid transparent;
  transition: all .2s; cursor: default;
}
.alert-stat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.alert-stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.alert-stat-info { flex: 1; min-width: 0; }
.alert-stat-num { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.alert-stat-label { font-size: 12px; margin-top: 3px; font-weight: 500; }

.alert-stat-card.high { background: linear-gradient(135deg, #fef0f0, #fff5f5); border-color: #fde2e2; }
.alert-stat-card.high .alert-stat-icon { background: linear-gradient(135deg, #f56c6c, #ff7875); color: #fff; }
.alert-stat-card.high .alert-stat-num { color: #d93025; }
.alert-stat-card.high .alert-stat-label { color: #f56c6c; }

.alert-stat-card.attention { background: linear-gradient(135deg, #fdf6ec, #fff9f0); border-color: #faecd8; }
.alert-stat-card.attention .alert-stat-icon { background: linear-gradient(135deg, #e6a23c, #f0b34a); color: #fff; }
.alert-stat-card.attention .alert-stat-num { color: #c77700; }
.alert-stat-card.attention .alert-stat-label { color: #e6a23c; }

.alert-stat-card.people { background: linear-gradient(135deg, #ecf5ff, #f5faff); border-color: #d9ecff; }
.alert-stat-card.people .alert-stat-icon { background: linear-gradient(135deg, #409eff, #66b1ff); color: #fff; }
.alert-stat-card.people .alert-stat-num { color: #1a6dbf; }
.alert-stat-card.people .alert-stat-label { color: #409eff; }

/* 列表工具栏 */
.alert-list-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 0 2px;
}
.alert-filter-tabs {
  display: flex; align-items: center; gap: 4px;
}
.alert-filter-tab {
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  cursor: pointer; transition: all .2s; color: var(--text-3);
  font-weight: 500; user-select: none;
}
.alert-filter-tab:hover { color: var(--text-2); background: #f5f7fa; }
.alert-filter-tab.active {
  color: var(--primary); background: #ecf5ff;
  box-shadow: inset 0 0 0 1px #d9ecff;
}
.alert-filter-tab .alert-filter-count {
  font-size: 11px; margin-left: 2px; opacity: .7;
}
.alert-toggle-btn {
  font-size: 11px; color: var(--text-3); cursor: pointer;
  padding: 3px 8px; border-radius: 4px; border: none; background: transparent;
  transition: all .2s;
}
.alert-toggle-btn:hover { color: var(--primary); background: #f5f7fa; }

/* 预警卡片列表 */
.alert-cards {
  max-height: 320px; overflow-y: auto;
  border-radius: 10px;
  padding: 2px;
}
.alert-cards::-webkit-scrollbar { width: 4px; }
.alert-cards::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 2px; }

.alert-card {
  display: flex; align-items: stretch;
  background: var(--bg-card); border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 8px; overflow: hidden;
  transition: all .2s; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.alert-card:last-child { margin-bottom: 0; }
.alert-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-color: #d0d7de; transform: translateY(-1px);
}
.alert-card-bar {
  width: 4px; flex-shrink: 0;
}
.alert-card-bar.high { background: linear-gradient(to bottom, #f56c6c, #ff7875); }
.alert-card-bar.attention { background: linear-gradient(to bottom, #e6a23c, #f0b34a); }

.alert-card-body {
  flex: 1; min-width: 0; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.alert-card-main {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.alert-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  font-weight: 600; color: #fff; white-space: nowrap; flex-shrink: 0;
}
.alert-tag.high { background: linear-gradient(135deg, #f56c6c, #ff7875); }
.alert-tag.attention { background: linear-gradient(135deg, #e6a23c, #f0b34a); }
.alert-indicator {
  font-size: 14px; font-weight: 600; color: var(--text-1);
}
.alert-value {
  font-size: 13px; color: var(--text-2); font-weight: 500;
  font-family: 'SF Mono', monospace;
}
.alert-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-3);
}
.alert-card-meta span {
  display: inline-flex; align-items: center; gap: 3px;
}
.alert-card-msg {
  font-size: 12px; color: var(--text-2);
  line-height: 1.4; padding: 4px 8px;
  background: #fafafa; border-radius: 4px;
  border-left: 2px solid #e4e7ed;
}
.alert-card-msg:empty { display: none; }

.alert-resolve-btn {
  align-self: center;
  margin: 0 12px;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid #d9ecff; color: var(--primary);
  background: #ecf5ff; cursor: pointer; white-space: nowrap;
  transition: all .2s; flex-shrink: 0;
}
.alert-resolve-btn:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(64,158,255,.35);
}
.alert-resolve-btn:active { transform: scale(.97); }

/* 空状态 */
.alert-empty {
  color: var(--text-3); font-size: 13px; text-align: center;
  padding: 24px; background: #fafafa; border-radius: 8px;
}
