:root {
  --bg: #eaf5ff;
  --panel: #ffffff;
  --panel-soft: #f5f9ff;
  --line: #d9e7f6;
  --line-strong: #b8d6f4;
  --text: #26384c;
  --heading: #22364d;
  --muted: #6c7f94;
  --brand: #3d9cff;
  --brand-2: #20c7c8;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --shadow: 0 18px 44px rgba(40, 92, 140, .12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(120deg, #eef7ff 0%, #dcefff 48%, #c8ddff 100%);
}
button, input, textarea, select { font: inherit; }
.app { display: flex; min-height: 100vh; }
.side {
  width: 276px;
  min-width: 276px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: auto;
  padding: 26px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(226,246,255,.82));
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; min-height: 58px; margin-bottom: 30px; padding: 0 12px; }
.logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #45d4ce, #4397ff);
  box-shadow: 0 12px 22px rgba(55,146,204,.25);
}
.brandName { color: var(--heading); font-size: 24px; font-weight: 900; line-height: 1; }
.brandSub { margin-top: 7px; color: #8395ab; font-size: 13px; font-weight: 800; }
.nav { display: grid; gap: 10px; }
.nav button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #607086;
  font-size: 17px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}
.nav button:hover { background: rgba(255,255,255,.6); border-color: rgba(185,216,248,.65); }
.nav button.active { color: var(--heading); background: rgba(229,244,255,.96); border-color: #c9e2fb; }
.navIcon { width: 26px; text-align: center; flex: 0 0 auto; }
.main { flex: 1; min-width: 0; }
.top {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 30px;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.topEyebrow { margin-bottom: 6px; color: #8aa0b8; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; color: var(--heading); font-size: 24px; line-height: 1.2; font-weight: 900; }
.topActions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.keyInput, .input, .textarea, select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--heading);
  outline: none;
}
.keyInput { width: 260px; height: 46px; padding: 0 14px; }
.input, select { width: 100%; min-height: 46px; padding: 0 14px; }
.textarea { width: 100%; min-height: 150px; padding: 12px 14px; resize: vertical; font-family: Consolas, monospace; }
.page { width: 100%; max-width: 1480px; margin: 0 auto; padding: 28px 36px 36px; }
.hide { display: none !important; }
.card, .heroCard, .metricCard, .credentialCard {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(218,231,246,.92);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.card { padding: 24px; margin-bottom: 22px; }
.heroCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  margin-bottom: 22px;
}
.heroCard h2, .card h2 { color: var(--heading); margin: 0 0 10px; font-size: 24px; font-weight: 900; }
.heroCard p, .muted { color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.splitGrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); gap: 22px; }
.metricCard { padding: 20px; min-width: 0; }
.metricCard p { margin: 0 0 12px; color: var(--muted); font-weight: 800; }
.metricCard strong { display: block; color: var(--heading); font-size: 30px; line-height: 1.1; overflow-wrap: anywhere; }
.metricCard span { display: block; color: #8da0b6; margin-top: 12px; font-size: 13px; }
.btn, .iconBtn {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--heading);
  font-weight: 850;
  cursor: pointer;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; white-space: nowrap; }
.btn:hover, .iconBtn:hover { border-color: var(--line-strong); background: #f8fbff; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 14px 28px rgba(61,156,255,.25); }
.btn.soft { background: #eef7ff; border-color: #c9e4ff; color: #2b6eb5; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.iconBtn { width: 46px; height: 46px; display: inline-grid; place-items: center; font-size: 22px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: #607086;
  font-size: 12px;
  font-weight: 900;
}
.status.ok { background: rgba(16,185,129,.14); color: #047857; }
.status.warn { background: rgba(245,158,11,.16); color: #b45309; }
.status.bad { background: rgba(239,68,68,.14); color: #b91c1c; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: #72849a; font-size: 13px; }
.code {
  white-space: pre-wrap;
  overflow: auto;
  padding: 14px;
  border: 1px solid #dce8f6;
  border-radius: 12px;
  background: #0c1729;
  color: #dbeafe;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
}
.credentialCard { padding: 18px; display: grid; gap: 12px; }
.credentialCard h3 { margin: 0; color: var(--heading); font-size: 18px; }
.toast {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 18px 48px rgba(15,23,42,.26);
}
.modal { display: none; position: fixed; inset: 0; z-index: 30; align-items: center; justify-content: center; padding: 24px; background: rgba(15,23,42,.34); }
.dialog { width: min(980px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(15,23,42,.25); }
.dialogHead { min-height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.dialogHead h2 { margin: 0; color: var(--heading); }
#modalBody { overflow: auto; padding: 22px 24px; }
@media (max-width: 960px) {
  .app { display: block; }
  .side { width: auto; min-width: 0; height: auto; position: relative; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top { align-items: stretch; flex-direction: column; }
  .topActions { justify-content: flex-start; }
  .keyInput { width: 100%; }
  .page { padding: 22px; }
  .heroCard, .splitGrid { display: block; }
}
