/* ============================================================
 * 阿里云白名单管理平台 · 样式
 * ============================================================ */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #303133;
}

/* ---------- 登录页 ---------- */
.login-wrap {
  height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f6feb 0%, #0d3a8f 100%);
}
.login-box {
  width: 400px; background: #fff; border-radius: 12px; padding: 40px 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}
.login-title { text-align: center; margin-bottom: 28px; }
.login-title h1 { font-size: 20px; margin: 12px 0 6px; color: #303133; }
.login-title p { font-size: 13px; color: #909399; margin: 0; }
.login-btn { width: 100%; }

/* ---------- 布局 ---------- */
.layout { height: 100%; }
.aside {
  background: #1d2b3a; color: #fff; display: flex; flex-direction: column;
}
.logo {
  height: 60px; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; font-size: 16px; font-weight: 600; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.menu { border-right: none; flex: 1; }
.aside .el-menu { --el-menu-bg-color: transparent; --el-menu-text-color: #b6c2d0; --el-menu-active-color: #fff; --el-menu-hover-bg-color: rgba(255,255,255,.06); }
.aside .el-menu-item.is-active { background: #1f6feb; }
.aside .el-menu-item { height: 50px; line-height: 50px; }
.header {
  height: 60px; background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-title { font-size: 16px; font-weight: 600; }
.header-user { display: flex; align-items: center; gap: 8px; color: #606266; }
.main { padding: 20px; overflow: auto; }

/* ---------- 通用 ---------- */
.mt16 { margin-top: 16px; }
.mb12 { margin-bottom: 12px; }
.mr6 { margin-right: 6px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar h3 { margin: 0; }
.company-title { margin: 0 8px; font-size: 16px; }
.hint { color: #909399; font-size: 13px; }
.card-header { display: flex; align-items: center; justify-content: space-between; }
.pager { display: flex; justify-content: flex-end; margin-top: 16px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat-card {
  background: #fff; border-radius: 8px; padding: 20px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.stat-num { font-size: 30px; font-weight: 700; color: #1f6feb; }
.stat-num.green { color: #67c23a; }
.stat-label { font-size: 13px; color: #909399; margin-top: 6px; }

/* 执行区 */
.exec-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.exec-label { width: 90px; line-height: 32px; color: #606266; flex-shrink: 0; }
.exec-ips { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
