:root {
  --sg-bg: #f3f6fb;
  --sg-surface: #ffffff;
  --sg-ink: #1f2a37;
  --sg-muted: #6b7280;
  --sg-accent: #0f766e;
  --sg-border: #e5e7eb;
  --sg-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--sg-ink);
  background: var(--sg-bg);
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1200px 500px at 10% -10%, #dbeafe 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #ccfbf1 0%, transparent 50%),
    var(--sg-bg);
}
a { color: inherit; text-decoration: none; }
.muted { color: var(--sg-muted); }
.page-card {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: 16px;
  box-shadow: var(--sg-shadow);
  padding: 20px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar .spacer { flex: 1; }
.pager {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.side {
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  color: #ecfeff;
  padding: 20px 14px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 22px;
}
.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.16);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.login-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}
.login-brand h1 {
  margin: 0;
}
.side .el-menu {
  border-right: none;
  background: transparent;
}
.side .el-menu-item {
  color: #ecfeff !important;
  border-radius: 10px;
  margin-bottom: 6px;
}
.side .el-menu-item.is-active,
.side .el-menu-item:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}
.main { display: flex; flex-direction: column; min-width: 0; }
.top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sg-border);
}
.user-box { display: flex; align-items: center; gap: 10px; }
.content { padding: 20px 24px 32px; }
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-panel {
  width: min(480px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--sg-border);
  border-radius: 20px;
  box-shadow: var(--sg-shadow);
  padding: 28px;
}
.login-panel h1 { margin: 0 0 8px; font-size: 24px; }
.login-panel .desc { margin: 0 0 18px; color: var(--sg-muted); }
.full { width: 100%; }
.row { display: flex; gap: 8px; width: 100%; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
}
