        /* ===== ESXi 风格首页 ===== */
        body{font-family:"Segoe UI","Microsoft YaHei","PingFang SC",system-ui,sans-serif;-webkit-font-smoothing:antialiased;}

        /* 顶部指标条（ESXi 式紧凑横条） */
        .top-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:8px;}
.stat-item{background:#fff;border-radius:4px;padding:18px 22px;box-shadow:0 1px 3px rgba(0,0,0,0.03),0 4px 12px rgba(0,0,0,0.03);border:1px solid #eef2f6;display:flex;align-items:center;gap:14px;}
.stat-icon{width:44px;height:44px;background:#eff6ff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;color:var(--primary);}
.stat-info h4{font-size:18px;font-weight:600;color:#475569;margin-bottom:4px;}
.stat-info span{font-size:.85rem;color:var(--text-sub);}
.stat-info h4 .stat-sub{font-size:11px;font-weight:400;color:#94a3b8;margin-left:6px;white-space:nowrap;}
.stat-item.is-warn .stat-icon{background:#fff1f0;color:#e05a4f;}
.stat-item.is-warn .stat-info h4{color:#e05a4f;}
.icon-blue{background:var(--primary);}
.icon-green{background:var(--success);}
.icon-orange{background:var(--warning);}
.icon-purple{background:#8b5cf6;}
        .esxi-metric{flex:1;background:#fff;padding:12px 16px;display:flex;align-items:center;gap:10px;}
        .esxi-mi{width:32px;height:32px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:14px;color:#fff;flex-shrink:0;}
        .mi-blue{background:#3b82f6;} .mi-green{background:#10b981;} .mi-orange{background:#f59e0b;} .mi-purple{background:#8b5cf6;}
        .mi-cyan{background:#06b6d4;} .mi-red{background:#ef4444;} .mi-teal{background:#14b8a6;} .mi-indigo{background:#6366f1;}
        .esxi-body{flex:1;min-width:0;}
        .esxi-label{font-size:.7rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;}
        .esxi-val{font-size:1.15rem;font-weight:700;color:#0f172a;line-height:1.2;}
        .esxi-val small{font-size:.7rem;font-weight:500;color:#94a3b8;}
        .esxi-sub{font-size:.7rem;color:#94a3b8;}

        /* 主工作区：三栏布局（左节点列表 + 中详情 + 右摘要） */
        .esxi-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:8px;}
        @media(max-width:1200px){.esxi-workspace{grid-template-columns:1fr;}}
        @media(max-width:900px){.esxi-workspace{grid-template-columns:1fr;}}

        /* ── 节点状态圆点（详情/切换标签复用）── */
        .esxi-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
        .dot-on{background:#10b981;box-shadow:0 0 0 2px rgba(16,185,129,.25);}
        .dot-off{background:#94a3b8;}
.dot-warn{background:#f59e0b;box-shadow:0 0 0 2px rgba(245,158,11,.25);}
        /* ── 节点切换标签（横向可滑动）── */
        .esxi-node-tabs{display:flex;gap:6px;padding:10px 16px;border-bottom:1px solid var(--border);overflow-x:auto;background:#fafbfc;scrollbar-width:thin;}
        .esxi-node-tab{display:flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--border);border-radius:4px;background:#fff;cursor:pointer;font-size:0.88rem;color:#475569;white-space:nowrap;transition:all .15s;flex-shrink:0;}
        .esxi-node-tab:hover{border-color:#3b82f6;color:#2563eb;}
        .esxi-node-tab.active{border-color:#3b82f6;color:#1e293b;font-weight:600;}
        .esxi-tab-name{white-space:nowrap;}

        /* ── 中间：节点详情面板（ESXi 主机摘要风格）── */
        .esxi-main{background:#fff;border:1px solid var(--border);border-radius:4px;overflow:hidden;min-height:520px;}
        .esxi-main-head{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;}
        .esxi-mh-left{display:flex;align-items:center;gap:10px;}
        .esxi-mh-icon{width:40px;height:40px;border-radius:4px;background:#eff6ff;display:flex;align-items:center;justify-content:center;color:#2563eb;font-size:18px;}
        .esxi-mh-title{font-size:1rem;font-weight:600;color:#334155;}
        .esxi-mh-status{font-size:0.80rem;font-weight:600;padding:3px 10px;border-radius:4px;}
        .st-ok{background:#f0fdf4;color:#16a34a;} .st-warn{background:#fffbeb;color:#d97706;} .st-err{background:#fef2f2;color:#dc2626;}
        .esxi-mh-actions{display:flex;gap:6px;}
        .esxi-act-btn{height:30px;padding:0 12px;border:1px solid var(--border);border-radius:4px;background:#fff;font-size:0.82rem;color:#475569;cursor:pointer;display:flex;align-items:center;gap:5px;transition:all .15s;}
        .esxi-act-btn:hover{border-color:#3b82f6;color:#2563eb;background:#eff6ff;}

        /* 资源横条区（ESXi CPU/内存/存储） */
        .esxi-res-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1px;background:#e2e8f0;margin:16px 20px 0;border-radius:4px;overflow:hidden;}
        .esxi-res-cell{background:#fff;padding:14px 16px;}
        .esxi-res-label{font-size:0.80rem;color:#94a3b8;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between;}
        .esxi-res-pct{font-size:0.84rem;font-weight:600;}
        .pct-good{color:#5a85e3;} .pct-warn{color:#d97706;} .pct-crit{color:#dc2626;}
        .esxi-bar-wrap{height:5px;background:#eef2f7;border-radius:4px;overflow:hidden;margin-bottom:6px;}
        .esxi-bar-fill{height:100%;border-radius:4px;transition:width .5s;}
        .bf-good{background:#60a5fa;} .bf-warn{background:#fcd34d;} .bf-crit{background:#fca5a5;}
        .esxi-res-detail{font-size:0.80rem;color:#64748b;display:flex;justify-content:space-between;}

        /* 详情键值对区 */
        .esxi-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;padding:16px 20px;border-top:1px solid #f1f5f9;}
        .esxi-kv{display:flex;justify-content:space-between;padding:6px 0;font-size:.8rem;}
        .esxi-kk{color:#64748b;}
        .esxi-vv{color:#1e293b;font-weight:500;}

        /* VM 列表区 */
        .esxi-vm-section{padding:0 20px 16px;}
        /* VM 表通栏（右侧事件卡已移除） */
        .esxi-split-row{display:grid;grid-template-columns:1fr;gap:8px;margin:0 20px 8px;}
        @media(max-width:1000px){.esxi-split-row{grid-template-columns:1fr;}}
        .esxi-split-card{background:#fff;border:1px solid var(--border);border-radius:4px;overflow:hidden;display:flex;flex-direction:column;}
        .esxi-split-head{padding:11px 14px 11px 16px;border-bottom:1px solid var(--border);font-size:0.95rem;font-weight:500;color:#475569;font-family:'Segoe UI','Microsoft YaHei','PingFang SC',system-ui,sans-serif;display:flex;align-items:center;gap:8px;}
        .esxi-vm-head{padding:11px 14px 11px 16px;border-bottom:1px solid var(--border);font-size:0.95rem;font-weight:500;color:#475569;font-family:"Segoe UI","Microsoft YaHei","PingFang SC",system-ui,sans-serif;display:flex;align-items:center;gap:8px;}
        .vm-table{width:100%;border-collapse:collapse;}
        .vm-table th{text-align:left;padding:14px 16px;background:#f8fafc;border-bottom:1px solid #eef2f6;font-size:0.88rem;font-weight:500;color:#64748b;font-family:"Segoe UI","Microsoft YaHei","PingFang SC",system-ui,sans-serif;}
        .vm-table td{padding:14px 16px;border-bottom:1px solid #f0f2f8;font-size:0.88rem;vertical-align:middle;font-family:"Segoe UI","Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#475569;line-height:1.5;}
        .vm-table tr:last-child td{border-bottom:none;}
        .vm-table tr:hover td{background-color:#fafcff;}
        .esxi-split-card .vm-table th,.esxi-split-card .vm-table td{overflow:hidden;}
        .vm-state{font-size:.7rem;font-weight:600;padding:2px 7px;border-radius:4px;}
        .vs-run{background:#f0fdf4;color:#16a34a;} .vs-stop{background:#f1f5f9;color:#64748b;} .vs-err{background:#fef2f2;color:#dc2626;}
        /* 状态标签（抄 /nodes + /vm-list 统一风格） */
        .status-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 12px 4px 0;border-radius:4px;font-size:.82rem;font-weight:500;color:#475569;}
        .dot-green{width:8px;height:8px;background:#10b981;border-radius:50%;display:inline-block;}
        .dot-gray{width:8px;height:8px;background:#9ca3af;border-radius:50%;display:inline-block;}
        .detail-status{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:4px;font-size:.8rem;font-weight:500;}
        .detail-status.running{background:#e8f5e9;color:#2e7d32;}
        .detail-status.stopped{background:#f5f5f5;color:#888;}

        /* ── 右侧：集群摘要 + 事件流 ── */
        .esxi-right{display:flex;flex-direction:column;gap:8px;}
        .esxi-card{background:#fff;border:1px solid var(--border);border-radius:4px;overflow:hidden;}
        .esxi-card-head{padding:11px 14px 11px 16px;border-bottom:1px solid var(--border);font-size:0.95rem;font-weight:500;color:#475569;font-family:'Segoe UI','Microsoft YaHei','PingFang SC',system-ui,sans-serif;display:flex;align-items:center;gap:8px;}
        .esxi-cluster-sum{padding:12px 14px;}
        .esxi-cs-row{display:flex;justify-content:space-between;padding:5px 0;font-size:0.88rem;color:#475569;}
        .esxi-cs-k{color:#64748b;}
        .esxi-cs-v{color:#1e293b;font-weight:600;}

        /* 事件列表 */
        .esxi-event-list{list-style:none;margin:0;padding:6px 0;}
        .esxi-event-item{padding:10px 14px;display:flex;gap:10px;border-bottom:1px solid #f8fafc;font-size:0.88rem;color:#475569;}
        .esxi-event-item:last-child{border-bottom:none;}
        .ee-ok{background:#f0fdf4;color:#16a34a;} .ee-warn{background:#fffbeb;color:#d97706;} .ee-err{background:#fef2f2;color:#dc2626;} .ee-info{background:#eff6ff;color:#2563eb;}
        .ee-body{flex:1;min-width:0;}
        .ee-title{color:#1e293b;font-weight:500;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        .ee-meta{color:#94a3b8;font-size:.7rem;}

        /* 小型趋势图容器 */
        .esxi-chart{padding:10px 12px;}

        @media(max-width:900px){
            .esxi-right{display:none;}
            .top-stat-row{grid-template-columns:repeat(2,1fr);}
            .esxi-metric{min-width:45%;}
        }
    

        /* 趋势图工具条：三张卡共用一个节点范围 + 时间范围，避免每卡重复控件 */
        .esxi-chart-bar{display:flex;align-items:center;gap:6px;padding:6px 10px;background:#fff;border:1px solid var(--border);border-radius:4px;}
        .esxi-chart-bar-label{font-size:.8rem;color:#64748b;font-weight:500;margin-right:auto;white-space:nowrap;}
        .esxi-chart-bar select{height:22px;max-width:110px;padding:0 4px;border:1px solid var(--border);border-radius:3px;background:#fff;color:#475569;font-size:11px;cursor:pointer;}

        /* VM 表头不换行：窄窗口下表头若折成两行会撑高左栏，破坏左右底边对齐 */
        .esxi-split-card .vm-table th{white-space:nowrap;}
