/* SEZ 远程更新 · 液态玻璃风格 */
:root {
  --bg: #070b16;
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .12);
  --text: #eaf0ff;
  --muted: #9aa7c7;
  --blue: #3d7bff;
  --blue-2: #6aa1ff;
  --ok: #3ddc97;
  --bad: #ff5c6c;
  --warn: #ffc861;
  --radius: 18px;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}

.aurora {
  position: fixed;
  inset: -20% -10%;
  z-index: -1;
  background:
    radial-gradient(45% 35% at 20% 12%, rgba(61, 123, 255, .40), transparent 60%),
    radial-gradient(40% 32% at 85% 18%, rgba(120, 80, 255, .32), transparent 62%),
    radial-gradient(50% 40% at 50% 95%, rgba(20, 180, 255, .22), transparent 65%);
  filter: blur(30px);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -3%, 0) scale(1.06); }
}

a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 通用 ---------- */
.glass {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 14px 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 14px 0;
  padding: 10px 14px;
  border-radius: 16px;
  flex-wrap: wrap;
}

.brand { font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

h1, h2, h3 { margin: 0 0 10px; font-weight: 650; letter-spacing: .2px; }
h2 { font-size: 17px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
.center { text-align: center; }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }

.card { padding: 16px; margin: 14px 0; }

/* ---------- 统计 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.stat { padding: 14px 12px; text-align: center; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }

/* ---------- 表单 ---------- */
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.span2 { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 13px;
  color: #c9d4ee;
}
input[type=text], input[type=password], input[type=file], select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(109, 160, 255, .8);
  box-shadow: 0 0 0 3px rgba(61, 123, 255, .18);
}
input[type=file] { padding: 9px; font-size: 13px; }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { width: auto; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn.primary {
  background: linear-gradient(180deg, #4b86ff, #2a63e8);
  border-color: rgba(120, 165, 255, .7);
  box-shadow: 0 10px 24px rgba(42, 99, 232, .35);
}
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin-top: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  vertical-align: top;
  white-space: nowrap;
}
.table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.table tr:hover td { background: rgba(255, 255, 255, .03); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  background: rgba(255, 255, 255, .1);
  color: var(--muted);
}
.badge.ok { background: rgba(61, 220, 151, .16); color: var(--ok); }
.badge.bad { background: rgba(255, 92, 108, .18); color: var(--bad); }

.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row-actions form { display: inline; }
.mini {
  padding: 5px 9px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.mini:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.mini.danger { color: #ff9aa4; border-color: rgba(255, 92, 108, .35); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.tab.active { background: rgba(61, 123, 255, .22); color: #cfe0ff; border-color: rgba(109, 160, 255, .55); }

/* ---------- 公告 ---------- */
.ann-list { display: grid; gap: 10px; margin-top: 14px; }
.ann {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  border-left: 3px solid var(--blue);
}
.ann.warn { border-left-color: var(--warn); }
.ann.danger { border-left-color: var(--bad); }
.ann-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.ann-body { margin: 6px 0 8px; color: #d6def5; font-size: 13.5px; }

/* ---------- 复制 ---------- */
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code {
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
  overflow-x: auto;
  white-space: nowrap;
}
pre.code {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
  color: #cfe0ff;
}

/* ---------- flash / 登录 ---------- */
.flash {
  margin: 12px 0;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  background: rgba(61, 220, 151, .14);
  border: 1px solid rgba(61, 220, 151, .35);
  color: #b9ffdf;
}
.flash.bad { background: rgba(255, 92, 108, .14); border-color: rgba(255, 92, 108, .38); color: #ffc3c9; }

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background:
    radial-gradient(50% 40% at 20% 10%, rgba(61, 123, 255, .35), transparent 60%),
    radial-gradient(45% 40% at 85% 90%, rgba(120, 80, 255, .3), transparent 62%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 26px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05));
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card form { margin-top: 18px; display: grid; gap: 12px; }
.auth-card .btn { width: 100%; margin-top: 4px; }
.logo {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-weight: 800;
  background: linear-gradient(160deg, #6aa1ff, #2a63e8);
  box-shadow: 0 10px 26px rgba(61, 123, 255, .45);
  margin-bottom: 14px;
}

.title { font-size: 20px; }

footer { margin: 26px 0 10px; }

@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-form { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  .topbar { margin: 10px 10px 0; }
  .wrap { padding: 10px 10px 30px; }
}
