/* 平台四个首页共用的轻量卡片布局（2026-11-20） */
.home-kpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:16px; }
.home-kpi { border:1px solid var(--border,#e5e7eb); border-radius:10px; padding:12px 14px; background:var(--bg-card,#fff); min-width:0; }
.home-kpi-label { color:#64748b; font-size:12px; line-height:1.4; }
.home-kpi-value { font-size:22px; font-weight:700; margin-top:4px; line-height:1.2; }
.home-kpi-sub { color:#94a3b8; font-size:11px; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-kpi.tone-ok .home-kpi-value { color:#16a34a; }
.home-kpi.tone-warn .home-kpi-value { color:#d97706; }
.home-kpi.tone-error .home-kpi-value { color:#dc2626; }
.home-kpi.tone-unknown .home-kpi-value { color:#64748b; }
.home-issues { margin-bottom:16px; }
.home-issue { display:flex; align-items:flex-start; gap:10px; padding:9px 12px; border-radius:8px; margin-bottom:8px; border:1px solid; font-size:13px; }
.home-issue:last-child { margin-bottom:0; }
.home-issue.error { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.home-issue.warn { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.home-issue.info, .home-issue.unknown { background:#f8fafc; border-color:#e2e8f0; color:#475569; }
.home-issue.ok { background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.home-issue-title { font-weight:600; }
.home-issue-detail { color:inherit; opacity:.82; margin-top:2px; line-height:1.55; }
.home-issue-action { margin-left:auto; white-space:nowrap; }
.home-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:16px; }
.home-grid > .card { margin-bottom:0; min-width:0; }
.home-kv { display:flex; justify-content:space-between; gap:16px; padding:5px 0; border-bottom:1px solid #f1f5f9; font-size:13px; }
.home-kv:last-child { border-bottom:0; }
.home-kv-label { color:#64748b; flex:none; }
.home-kv-value { text-align:right; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-kv-value.mono { font-family:'Menlo','Consolas',monospace; font-size:12px; }
.home-meter { margin:10px 0 14px; }
.home-meter:last-child { margin-bottom:0; }
.home-meter-top { display:flex; justify-content:space-between; font-size:12px; color:#475569; margin-bottom:4px; }
.home-bar { height:8px; border-radius:999px; background:#e2e8f0; overflow:hidden; }
.home-bar-fill { height:100%; border-radius:999px; background:#3b82f6; }
.home-bar-fill.ok { background:#22c55e; }
.home-bar-fill.warn { background:#f59e0b; }
.home-bar-fill.error { background:#ef4444; }
.home-queue-row { padding:8px 0; border-bottom:1px solid #f1f5f9; }
.home-queue-row:last-child { border-bottom:0; }
.home-queue-top { display:flex; align-items:center; gap:8px; font-size:13px; margin-bottom:5px; flex-wrap:wrap; }
.home-queue-name { font-weight:600; }
.home-queue-num { margin-left:auto; color:#64748b; font-size:12px; }
.home-badge { display:inline-block; padding:1px 7px; border-radius:999px; font-size:11px; line-height:18px; font-weight:600; }
.home-badge.ok { background:#dcfce7; color:#166534; }
.home-badge.warn { background:#fef3c7; color:#92400e; }
.home-badge.error { background:#fee2e2; color:#991b1b; }
.home-badge.unknown, .home-badge.info { background:#e2e8f0; color:#475569; }
.home-badge.off { background:#f1f5f9; color:#94a3b8; }
.home-link-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.home-link { display:flex; gap:10px; align-items:flex-start; padding:11px 12px; border:1px solid #e2e8f0; border-radius:9px; cursor:pointer; background:#fff; transition:border-color .15s, box-shadow .15s; }
.home-link:hover { border-color:#93c5fd; box-shadow:0 2px 10px rgba(37,99,235,.10); }
.home-link-icon { font-size:20px; line-height:1.2; }
.home-link-label { font-weight:600; font-size:13px; }
.home-link-desc { color:#94a3b8; font-size:11px; line-height:1.45; margin-top:2px; }
.home-empty { color:#94a3b8; font-size:13px; padding:10px 0; text-align:center; }
.home-mono { font-family:'Menlo','Consolas',monospace; font-size:12px; }
.home-nowrap { white-space:nowrap; }
@media (max-width:1100px) { .home-grid { grid-template-columns:minmax(0,1fr); } }
