html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6f9;
}
.login-bg {
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#1f2937 0%,#374151 100%);
}
.login-card {
  width: 380px; padding: 28px 32px; background:#fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.login-card h2 {
  text-align: center; margin: 0 0 16px; color: #1f2937; letter-spacing: 4px;
}
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px; background: #001529; color: #fff;
}
.app-header .title { font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.app-header .right { display: flex; align-items: center; gap: 10px; }
.brand { height:56px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;letter-spacing:2px;border-bottom:1px solid #1f2937; }
.el-aside { background: #001529 !important; }
.el-menu { border-right: none !important; }
.section-title { font-size: 16px; font-weight: 600; margin: 0 0 16px; color: #1f2937; padding-left: 8px; border-left: 4px solid #409eff; }
.page-wrap { padding: 4px; }
.page-title { margin:0 0 8px; font-size:20px; font-weight:600; color:#1f2937; }
.stat-card { text-align: center; padding: 14px 8px; border-radius: 8px; color:#fff; overflow: hidden; }
.stat-card .num { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card .lbl { font-size: 12px; opacity:.85; margin-top: 4px;}
.bg-1 { background: linear-gradient(135deg,#409eff,#0d6efd); }
.bg-2 { background: linear-gradient(135deg,#67c23a,#28a745); }
.bg-3 { background: linear-gradient(135deg,#e6a23c,#d9822b); }
.bg-4 { background: linear-gradient(135deg,#f56c6c,#dc3545); }
.bg-5 { background: linear-gradient(135deg,#909399,#5a6268); }
.bg-6 { background: linear-gradient(135deg,#9b59b6,#8e44ad); }
.muted { color:#909399; font-size: 12px; }
.toolbar { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.code-pre { background:#0d1117;color:#c9d1d9;padding:12px;border-radius:6px;max-height:420px;overflow:auto;font-family: monospace;font-size:12px; }

/* 服务器卡片 */
.srv-card { transition: all .2s; }
.srv-card.srv-current { border:2px solid #67c23a; }
.srv-card.srv-disabled { opacity: .55; }
.srv-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.srv-name { font-size:16px; font-weight:600; color:#1f2937; }
.srv-body { font-size: 13px; color: #4b5563; line-height: 1.8; }
.srv-body .muted { display:inline-block; width: 56px; }
.srv-actions { margin-top: 14px; display:flex; gap:6px; flex-wrap:wrap; }

/* 移动端响应 */
@media (max-width: 768px) {
  .el-aside { width: 64px !important; }
  .brand { font-size:0; }
  .el-menu-item span { display: none; }
  .app-header .title { font-size: 14px; }
  .app-header .right > span { display:none; }
}

/* 表格紧凑：单行显示，不换行 */
.el-table .el-table__cell { padding: 6px 0 !important; }
.el-table .cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }

/* 详情弹窗内容区域确保有高度 */
.el-dialog__body { min-height: 200px; }
.el-tabs__content { min-height: 150px; }
