:root {
  --bg: #04060c;
  --bg2: #070b16;
  --ink: #e8eefc;
  --ink-dim: #8b9ac0;
  --ink-mute: #59688c;
  --cyan: #3ee9ff;
  --violet: #8b6bff;
  --pink: #ff6ec7;
  --green: #3ddc97;
  --amber: #ffc857;
  --red: #ff5d73;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-hi: rgba(255, 255, 255, 0.18);
  --radius: 20px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--bg); color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------- 液态背景 ---------------- */
.liquid {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, #0b1428 0%, #04060c 55%, #02040a 100%);
}
.liquid .blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: .55; mix-blend-mode: screen; will-change: transform;
}
.b1 { width: 62vmax; height: 62vmax; left: -22vmax; top: -24vmax;
  background: radial-gradient(circle at 35% 35%, #1b6dff 0%, #0a2f7a 45%, transparent 70%);
  animation: drift1 26s ease-in-out infinite; }
.b2 { width: 54vmax; height: 54vmax; right: -18vmax; top: -10vmax;
  background: radial-gradient(circle at 50% 50%, #8b6bff 0%, #3a1d8a 50%, transparent 72%);
  animation: drift2 32s ease-in-out infinite; }
.b3 { width: 58vmax; height: 58vmax; left: 18vmax; bottom: -30vmax;
  background: radial-gradient(circle at 50% 50%, #00d0c0 0%, #064a52 50%, transparent 72%);
  animation: drift3 38s ease-in-out infinite; }
.b4 { width: 40vmax; height: 40vmax; right: 6vmax; bottom: -16vmax;
  background: radial-gradient(circle at 50% 50%, #ff3d9a 0%, #5a0f38 55%, transparent 75%);
  opacity: .38; animation: drift1 44s ease-in-out infinite reverse; }

@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(12vmax, 8vmax, 0) scale(1.14); }
  66% { transform: translate3d(-8vmax, 14vmax, 0) scale(.92); }
}
@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  40% { transform: translate3d(-14vmax, 12vmax, 0) scale(.9); }
  70% { transform: translate3d(-6vmax, -8vmax, 0) scale(1.18); }
}
@keyframes drift3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10vmax, -14vmax, 0) scale(1.2); }
}

/* 液态折射纹理 */
.liquid .caustics {
  position: absolute; inset: -20%; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  animation: caustics 20s linear infinite;
}
@keyframes caustics {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------------- 布局 ---------------- */
.shell { position: relative; z-index: 2; display: flex; min-height: 100vh; }
.side {
  width: 232px; flex: 0 0 232px; padding: 26px 16px;
  display: flex; flex-direction: column; gap: 8px;
  border-right: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  backdrop-filter: blur(26px) saturate(150%);
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 20px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 11px; position: relative; flex: 0 0 34px;
  background: conic-gradient(from 140deg, var(--cyan), var(--violet), var(--pink), var(--cyan));
  box-shadow: 0 0 24px -4px rgba(62, 233, 255, .6);
  animation: spin 9s linear infinite;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 8px;
  background: #05070e;
}
.brand .mark::before {
  content: ""; position: absolute; inset: 11px; border-radius: 4px; z-index: 2;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand b { font-size: 15px; letter-spacing: .3px; display: block; line-height: 1.2; }
.brand span { font-size: 11px; color: var(--ink-mute); letter-spacing: .5px; }

.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 13px;
  color: var(--ink-dim); font-size: 13.5px; cursor: pointer; border: 1px solid transparent;
  transition: .22s cubic-bezier(.2,.7,.3,1); user-select: none;
}
.nav-item:hover { color: var(--ink); background: var(--glass); }
.nav-item.on {
  color: var(--ink);
  background: linear-gradient(100deg, rgba(62,233,255,.14), rgba(139,107,255,.12));
  border-color: rgba(62,233,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 6px 22px -12px rgba(62,233,255,.8);
}
.nav-item i { font-style: normal; font-size: 15px; width: 18px; text-align: center; opacity: .9; }
.side .spacer { flex: 1; }
.side .who {
  padding: 12px; border-radius: 14px; border: 1px solid var(--stroke);
  background: var(--glass); font-size: 12.5px; display: flex; align-items: center; gap: 10px;
}
.side .who .av {
  width: 30px; height: 30px; border-radius: 10px; flex: 0 0 30px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: grid; place-items: center; font-weight: 700; color: #04060c; font-size: 13px;
}
.side .who .nm { flex: 1; overflow: hidden; }
.side .who .nm b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .who .nm span { color: var(--ink-mute); font-size: 10.5px; }
.side .who .out { cursor: pointer; color: var(--ink-mute); font-size: 16px; }
.side .who .out:hover { color: var(--red); }

.main { flex: 1; min-width: 0; padding: 30px 34px 60px; max-width: 1280px; }

/* ---------------- 通用 ---------------- */
h1 { font-size: 25px; margin: 0 0 6px; letter-spacing: -.4px; font-weight: 650; }
h2 { font-size: 16px; margin: 0 0 14px; font-weight: 600; letter-spacing: -.1px; }
h3 { font-size: 13.5px; margin: 0 0 10px; font-weight: 600; color: var(--ink-dim); }
.sub { color: var(--ink-mute); font-size: 13px; margin: 0 0 22px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.card {
  position: relative; border-radius: var(--radius); padding: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.022));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: radial-gradient(600px 160px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.09), transparent 60%);
  transition: opacity .3s;
}
.card.pad0 { padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid var(--stroke-hi);
  background: var(--glass-2); color: var(--ink); font-size: 13.5px; font-family: var(--font);
  cursor: pointer; transition: .2s cubic-bezier(.2,.7,.3,1); white-space: nowrap; font-weight: 500;
}
.btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn.primary {
  border: none; color: #04070e;
  background: linear-gradient(100deg, var(--cyan), #6fd6ff 45%, var(--violet));
  box-shadow: 0 10px 30px -10px rgba(62,233,255,.75), inset 0 1px 0 rgba(255,255,255,.4);
  font-weight: 650;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: rgba(255,93,115,.3); background: rgba(255,93,115,.08); }
.btn.sm { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; font-family: var(--font);
  background: rgba(4, 8, 18, .55); border: 1px solid var(--stroke);
  color: var(--ink); font-size: 13.5px; outline: none; transition: .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(62,233,255,.5); box-shadow: 0 0 0 3px rgba(62,233,255,.1);
  background: rgba(4, 8, 18, .8);
}
input::placeholder { color: var(--ink-mute); }
label { display: block; font-size: 12px; color: var(--ink-dim); margin: 0 0 7px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 100px;
  font-size: 11.5px; border: 1px solid var(--stroke); background: var(--glass);
  color: var(--ink-dim);
}
.pill.ok { color: var(--green); border-color: rgba(61,220,151,.3); background: rgba(61,220,151,.1); }
.pill.bad { color: var(--red); border-color: rgba(255,93,115,.3); background: rgba(255,93,115,.1); }
.pill.warn { color: var(--amber); border-color: rgba(255,200,87,.3); background: rgba(255,200,87,.1); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.35; transform:scale(.8);} }

/* ---------------- 统计块 ---------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 13px; margin-bottom: 20px; }
.stat {
  padding: 17px 18px; border-radius: 17px; position: relative; overflow: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  border: 1px solid var(--stroke); backdrop-filter: blur(20px);
}
.stat .k { font-size: 11.5px; color: var(--ink-mute); letter-spacing: .4px; margin-bottom: 8px; }
.stat .v { font-size: 27px; font-weight: 650; letter-spacing: -.8px; line-height: 1;
  background: linear-gradient(120deg, #fff, #a9c6ff 60%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .u { font-size: 11px; color: var(--ink-mute); margin-top: 5px; }

/* ---------------- 列表 ---------------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 15px;
  background: var(--glass); border: 1px solid var(--stroke); cursor: pointer;
  transition: .22s cubic-bezier(.2,.7,.3,1);
}
.item:hover {
  background: var(--glass-2); border-color: var(--stroke-hi); transform: translateY(-1px);
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.9);
}
.item .ic {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 38px; display: grid; place-items: center;
  font-size: 15px; background: linear-gradient(150deg, rgba(62,233,255,.2), rgba(139,107,255,.16));
  border: 1px solid rgba(62,233,255,.2);
}
.item .t { flex: 1; min-width: 0; }
.item .t b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .t span { font-size: 11.5px; color: var(--ink-mute); font-family: var(--mono); }
.item .meta { font-size: 11.5px; color: var(--ink-mute); text-align: right; }

.empty { text-align: center; padding: 54px 20px; color: var(--ink-mute); font-size: 13px; }
.empty .big { font-size: 40px; margin-bottom: 14px; opacity: .35; }

/* ---------------- 表格 ---------------- */
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { text-align: left; padding: 9px 12px; color: var(--ink-mute); font-weight: 500;
  border-bottom: 1px solid var(--stroke); font-size: 11.5px; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.045); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.025); }
code, .mono { font-family: var(--mono); font-size: 12px; }
code { background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--stroke); word-break: break-all; }
pre {
  background: rgba(2, 6, 14, .72); border: 1px solid var(--stroke); border-radius: 13px;
  padding: 15px 17px; overflow: auto; font-family: var(--mono); font-size: 12px;
  line-height: 1.7; margin: 0; color: #c9d8f5;
}
pre .c { color: #5b6b8f; }
pre .s { color: #7ee7a8; }
pre .k { color: #8fb8ff; }

.copy {
  cursor: pointer; border: 1px dashed var(--stroke-hi); background: rgba(255,255,255,.03);
  padding: 9px 13px; border-radius: 11px; font-family: var(--mono); font-size: 12px;
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  transition: .2s; word-break: break-all;
}
.copy:hover { border-color: rgba(62,233,255,.5); background: rgba(62,233,255,.06); }
.copy .hint { font-size: 10.5px; color: var(--ink-mute); white-space: nowrap; font-family: var(--font); }

/* ---------------- 登录 ---------------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; z-index: 2; }
.gate .box { width: 100%; max-width: 396px; }
.gate .logo { display: flex; justify-content: center; margin-bottom: 22px; }
.gate .mark { width: 54px; height: 54px; border-radius: 17px; position: relative;
  background: conic-gradient(from 140deg, var(--cyan), var(--violet), var(--pink), var(--cyan));
  box-shadow: 0 0 44px -6px rgba(62,233,255,.65); animation: spin 11s linear infinite; }
.gate .mark::after { content: ""; position: absolute; inset: 4px; border-radius: 13px; background: #05070e; }
.gate .mark::before { content: ""; position: absolute; inset: 17px; border-radius: 6px; z-index: 2;
  background: radial-gradient(circle, var(--cyan), transparent 70%); }
.gate h1 { text-align: center; font-size: 22px; margin-bottom: 8px; }
.gate .tag { text-align: center; color: var(--ink-mute); font-size: 12.5px; margin-bottom: 26px; }

/* ---------------- 弹层 ---------------- */
.mask {
  position: fixed; inset: 0; z-index: 60; background: rgba(2,4,10,.72);
  backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px;
  animation: fade .22s ease both;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal { width: 100%; max-width: 480px; animation: pop .28s cubic-bezier(.2,.9,.3,1.05) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97) } to { opacity: 1; transform: none } }

.drop {
  border: 1.5px dashed rgba(255,255,255,.18); border-radius: 16px; padding: 30px 20px;
  text-align: center; cursor: pointer; transition: .22s; background: rgba(255,255,255,.02);
}
.drop:hover, .drop.over { border-color: rgba(62,233,255,.6); background: rgba(62,233,255,.07); }
.drop .ico { font-size: 28px; margin-bottom: 10px; opacity: .7; }
.drop b { display: block; font-size: 13.5px; margin-bottom: 5px; }
.drop span { font-size: 11.5px; color: var(--ink-mute); }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--stroke); }
.tab { padding: 9px 15px; font-size: 13px; color: var(--ink-mute); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .2s; }
.tab.on { color: var(--ink); border-bottom-color: var(--cyan); }
.tab:hover { color: var(--ink-dim); }

.bar { height: 5px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .5s; }

.chip { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 100px;
  background: rgba(255,255,255,.07); border: 1px solid var(--stroke); color: var(--ink-dim);
  margin-right: 5px; }
.chip.g { color: var(--green); }
.chip.r { color: var(--red); }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: rgba(10,16,30,.94); border: 1px solid var(--stroke-hi); color: var(--ink);
  padding: 12px 22px; border-radius: 14px; font-size: 13px; z-index: 99; opacity: 0;
  transition: .3s; backdrop-filter: blur(20px); box-shadow: var(--shadow); pointer-events: none;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.25);
  border-top-color: var(--cyan); border-radius: 50%; animation: sp .8s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg) } }

.logbox { font-family: var(--mono); font-size: 11.5px; line-height: 1.85; max-height: 320px;
  overflow: auto; background: rgba(2,6,14,.6); border-radius: 13px; padding: 14px 16px;
  border: 1px solid var(--stroke); color: #a8bcdd; white-space: pre-wrap; word-break: break-all; }
.logbox .t { color: #46567a; }
.logbox .e { color: #ff8092; }
.logbox .s { color: #6fe0a8; }

.hint { font-size: 11.5px; color: var(--ink-mute); line-height: 1.7; }
.mt8 { margin-top: 8px } .mt14 { margin-top: 14px } .mt20 { margin-top: 20px }
.mb0 { margin-bottom: 0 } .mb14 { margin-bottom: 14px } .mb20 { margin-bottom: 20px }
.fx { display: flex; align-items: center; gap: 10px } .between { justify-content: space-between }
.wrap { flex-wrap: wrap } .center { align-items: center } .end { justify-content: flex-end }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.right { text-align: right } .c { text-align: center }
.scrollx { overflow-x: auto; }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { width: 100%; flex: none; height: auto; position: static; flex-direction: row;
    overflow-x: auto; padding: 12px; gap: 6px; align-items: center;
    border-right: none; border-bottom: 1px solid var(--stroke); }
  .brand { padding: 0 10px 0 4px; flex: 0 0 auto; }
  .brand span { display: none; }
  .nav-item { padding: 9px 12px; white-space: nowrap; font-size: 12.5px; }
  .nav-item span { display: none; }
  .nav-item i { font-size: 17px; }
  .side .spacer { display: none; }
  .side .who { margin-left: auto; padding: 8px; flex: 0 0 auto; }
  .side .who .nm { display: none; }
  .main { padding: 20px 16px 48px; }
  h1 { font-size: 21px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat .v { font-size: 22px; }
  .grid2 { grid-template-columns: 1fr; }
  .item { padding: 13px 14px; gap: 11px; }
  .item .meta { display: none; }
  pre { font-size: 11px; }
}
