* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f4f6f9;
  color: #1f2329;
}

/* 登录 */
.login-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 600px at 20% 10%, #1b4fd6 0%, #0f2a6b 45%, #091a43 100%);
}
.login-card {
  width: 380px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.login-card h1 { font-size: 22px; margin: 0 0 6px; }
.login-card img.login-logo {
  width: 64px; height: 64px;
  display: block; margin: 0 auto 14px;
}
.login-card p.sub { color: #8a9099; font-size: 13px; margin: 0 0 24px; }
.login-card .el-button { width: 100%; height: 42px; font-size: 15px; }

/* 布局 */
.layout { display: flex; height: 100%; }
.sidebar {
  width: 208px;
  background: #0f172a;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar .brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar .brand img {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: inline-block;
  flex-shrink: 0;
}
.sidebar .nav { padding: 8px; flex: 1; overflow: auto; }
.sidebar .nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: 8px; color: #cbd5e1; text-decoration: none; font-size: 14px;
}
.sidebar .nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar .nav a.active { background: #1d4ed8; color: #fff; }
.sidebar .foot { padding: 12px 16px; font-size: 12px; color: #64748b; border-top: 1px solid rgba(255,255,255,.08); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid #e8eaf0;
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.topbar .title { font-size: 16px; font-weight: 600; }
.topbar .right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #6b7280; }
.content { flex: 1; overflow: auto; padding: 18px 20px 40px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.card {
  background: #fff; border-radius: 12px; padding: 16px 18px; border: 1px solid #eef0f5;
}
.card .label { font-size: 13px; color: #8a9099; margin-bottom: 8px; }
.card .value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.card .hint { font-size: 12px; color: #98a2b3; margin-top: 6px; }
.card.accent .value { color: #1d4ed8; }
.card.ok .value { color: #059669; }
.card.warn .value { color: #d97706; }

.panel { background: #fff; border-radius: 12px; border: 1px solid #eef0f5; padding: 16px 18px; margin-bottom: 16px; }
.panel h3 { font-size: 15px; margin: 0 0 12px; font-weight: 600; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.muted { color: #8a9099; font-size: 12px; }
.tag-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot-green { background: #10b981; }
.dot-gray { background: #c0c4cc; }
.dot-red { background: #ef4444; }
.mockbar {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  padding: 8px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
.code-box { background: #0b1220; color: #c9d5e8; border-radius: 8px; padding: 10px 12px; font-size: 12px; overflow: auto; max-height: 220px; white-space: pre-wrap; }
