/* ===== 主题色覆盖（穿搭风格玫粉） ===== */
:root {
  --el-color-primary: #ec5b7a;
  --el-color-primary-light-3: #f1889f;
  --el-color-primary-light-5: #f5a6b6;
  --el-color-primary-light-7: #f9c4cf;
  --el-color-primary-light-8: #fbd3db;
  --el-color-primary-light-9: #fdeef1;
  --el-color-primary-dark-2: #d94a68;
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f4f5f9;
  color: #2b2f3a;
}

/* ===== 登录页 ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ec5b7a 0%, #f08a6b 50%, #f5c16c 100%);
  position: relative;
  overflow: hidden;
}
.login-wrap::before, .login-wrap::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12);
}
.login-wrap::before { width: 420px; height: 420px; top: -140px; left: -120px; }
.login-wrap::after { width: 360px; height: 360px; bottom: -140px; right: -100px; }
.login-card {
  position: relative; z-index: 1; width: 380px;
  background: #fff; border-radius: 20px; padding: 44px 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.login-logo {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  background: linear-gradient(135deg, #ec5b7a, #f08a6b);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.login-title { text-align: center; font-size: 22px; font-weight: 700; }
.login-sub { text-align: center; color: #8a90a2; margin: 6px 0 28px; font-size: 13px; }
.login-tip { text-align: center; color: #8a90a2; font-size: 12px; margin-top: 18px; }

/* ===== 主布局 ===== */
.layout { display: flex; height: 100vh; }
.sidebar {
  width: 224px; background: #262a36; color: #a8aec2;
  display: flex; flex-direction: column; flex-shrink: 0;
}
.brand {
  height: 64px; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; color: #fff; font-weight: 700; font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #ec5b7a, #f08a6b);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-group { padding: 10px 20px 6px; font-size: 11px; color: #6b7184; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; cursor: pointer; color: #a8aec2;
  font-size: 14px; transition: all .15s; position: relative;
}
.nav-item .ic { width: 18px; text-align: center; font-size: 16px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-item.active { color: #fff; background: rgba(236,91,122,0.16); }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: #ec5b7a;
}
.sidebar-foot { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: #6b7184; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 64px; background: #fff; border-bottom: 1px solid #eef0f4;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.topbar h1 { font-size: 18px; font-weight: 700; margin: 0; }
.content { flex: 1; overflow-y: auto; padding: 20px 24px; }

/* ===== 统计卡片 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff; border-radius: 12px; padding: 20px; position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(20,24,40,0.05), 0 6px 20px rgba(20,24,40,0.04);
}
.stat-card .label { color: #8a90a2; font-size: 13px; }
.stat-card .value { font-size: 28px; font-weight: 700; margin-top: 8px; }
.stat-card .sub { color: #8a90a2; font-size: 12px; margin-top: 4px; }
.stat-card .badge {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; background: #fdeef1;
}

/* ===== 通用卡片 ===== */
.panel {
  background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(20,24,40,0.05), 0 6px 20px rgba(20,24,40,0.04);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-title { font-size: 15px; font-weight: 700; margin: 0; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-box { width: 100%; height: 260px; }

/* ===== 表格辅助 ===== */
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #f0f1f5; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #8a90a2; }
.cell-actions { display: flex; gap: 4px; flex-wrap: wrap; }

/* ===== 系统配置 ===== */
.config-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 900px) { .config-grid { grid-template-columns: 1fr; } }
.config-item { border: 1px solid #eef0f4; border-radius: 10px; padding: 14px 16px; }
.config-item .ck { font-weight: 600; font-size: 13px; }
.config-item .rm { color: #8a90a2; font-size: 12px; margin-bottom: 8px; }

/* 调整 Element Plus 小间距 */
.content .el-table { border-radius: 8px; }

/* ===== 环境变量 / 部署须知 ===== */
.deploy-tip { color: #5a6072; font-size: 13px; line-height: 1.8; margin-top: 12px; }
.deploy-tip code {
  background: #f0f1f5; border-radius: 4px; padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #d94a68;
}
.deploy-tip ul { padding-left: 20px; margin: 8px 0; }
.deploy-tip p { margin: 6px 0; }
