* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f0f2f5;
  color: #303133;
}
a { color: #1677ff; text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sider {
  width: 220px;
  background: #001529;
  color: #fff;
  flex-shrink: 0;
}
.brand {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav a {
  display: block;
  color: rgba(255,255,255,.75);
  padding: 14px 20px;
}
.nav a:hover, .nav a.active {
  background: #1677ff;
  color: #fff;
}
.main { flex: 1; display: flex; flex-direction: column; }
.header {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.content { padding: 20px; }
.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 12px; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat .label { color: #909399; font-size: 13px; }
.stat .num { font-size: 32px; font-weight: 700; margin-top: 8px; color: #1677ff; }
.alert {
  background: #e6f4ff;
  border: 1px solid #91caff;
  color: #0958d9;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.alert.warn { background: #fff7e6; border-color: #ffd591; color: #d46b08; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
input[type=text], input[type=password], input[type=url], textarea, select {
  width: 100%;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
label.field { display: block; margin-bottom: 14px; font-size: 13px; color: #606266; }
label.field > span { display: block; margin-bottom: 6px; }
.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  background: #eef2f7;
  color: #303133;
}
.btn.primary { background: #1677ff; color: #fff; }
.btn.danger { background: #ff4d4f; color: #fff; }
.btn.link { background: transparent; color: #1677ff; padding: 0; margin-right: 10px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid #ebeef5; padding: 12px 10px; text-align: left; font-size: 14px; }
th { background: #fafafa; color: #909399; }
.code { font-family: Consolas, monospace; color: #1677ff; }
.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sider { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d39c4, #061178);
}
.login-card {
  width: 400px;
  max-width: calc(100% - 32px);
  background: #fff;
  border-radius: 12px;
  padding: 28px;
}
.login-card h1 { margin: 0 0 8px; text-align: center; font-size: 22px; }
.login-card .tip { color: #909399; font-size: 12px; text-align: center; margin-top: 14px; }
.ok { color: #52c41a; }
.err { color: #ff4d4f; }
.comp-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.comp-list label {
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.comp-list input { margin-right: 6px; }
.actions { display: flex; gap: 10px; margin-top: 8px; }
.hint { color: #909399; font-size: 12px; margin-top: 6px; }
