/* ============================================================
   特特电竞 TETE ESPORTS · 管理端样式
   深色战术电竞终端 · 无第三方依赖
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #07060a;
  --bg-2: #0a080f;
  --panel-grad: linear-gradient(150deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  --panel-solid: #0d0b13;
  --panel-soft: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --text: #f7f4fa;
  --text-2: #b3adc0;
  --text-3: #766f85;
  --mint: #ff2d78;
  --mint-soft: #ff5c9d;
  --mint-dim: rgba(255,45,120,.14);
  --blue: #7aa2ff;
  --gold: #ffb020;
  --danger: #ff4d5e;
  --radius: 12px;
  --sidebar-w: 208px;
  --topbar-h: 56px;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shadow: 0 18px 44px rgba(0,0,0,.55);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 74% -10%, rgba(70, 110, 160, .13), transparent 62%),
    radial-gradient(760px 520px at 6% 106%, rgba(255, 45, 120, .045), transparent 66%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 185, 215, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 185, 215, .026) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, #000 10%, transparent 78%);
}

[hidden] { display: none !important; }

h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

::selection { background: rgba(255, 45, 120, .26); color: #fff; }

:focus-visible { outline: 2px solid rgba(255, 45, 120, .55); outline-offset: 2px; }

/* ---------- Scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: rgba(155, 185, 215, .22) transparent; }

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(155, 185, 215, .16);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(155, 185, 215, .3);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner { background: transparent; }

/* ---------- Small utilities ---------- */
.micro {
  font-size: 10.9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.mono { font-family: var(--mono); letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--text-3); }
.strong { color: var(--text); font-weight: 600; }
.req { color: var(--danger); }
.hint { font-size: 12.1px; color: var(--text-3); margin-top: 4px; }

/* ============================================================
   通用控件
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  color: var(--text-2);
  font-size: 13.8px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, .05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 14px; height: 14px; flex: 0 0 auto; }

.btn--primary {
  color: var(--mint);
  border-color: rgba(255, 45, 120, .34);
  background: linear-gradient(180deg, rgba(255, 45, 120, .16), rgba(255, 45, 120, .07));
  box-shadow: 0 0 0 1px rgba(255, 45, 120, .04) inset;
}
.btn--primary:hover {
  color: #052a20;
  border-color: rgba(255, 45, 120, .55);
  background: linear-gradient(180deg, #e8c866, #ff2d78);
}
.btn--danger {
  color: var(--danger);
  border-color: rgba(255, 107, 122, .3);
  background: linear-gradient(180deg, rgba(255, 107, 122, .14), rgba(255, 107, 122, .05));
}
.btn--danger:hover {
  color: #2a050b;
  border-color: rgba(255, 107, 122, .55);
  background: linear-gradient(180deg, #ff8b96, #ff6b7a);
}
.btn--danger-ghost {
  color: var(--danger);
  border-color: rgba(255, 107, 122, .22);
  background: transparent;
}
.btn--ghost { background: transparent; }
.btn--lg { height: 42px; font-size: 15.5px; border-radius: 9px; }
.btn--sm { height: 28px; padding: 0 10px; font-size: 13.2px; border-radius: 7px; }
.btn--xs { height: 24px; padding: 0 8px; font-size: 12.6px; border-radius: 6px; gap: 4px; }
.btn--block { width: 100%; }

.icon-btn {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, .05); border-color: var(--border); color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn.is-spinning svg { animation: spin .85s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin-bottom: 12px; }
.field > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.6px;
  color: var(--text-2);
  letter-spacing: .02em;
}
.field > label .micro { font-size: 9.8px; letter-spacing: .14em; }
.field__err { display: none; font-size: 12.1px; color: var(--danger); }
.field.has-error .field__err { display: block; }

.input, .select, .textarea {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(9, 15, 24, .72);
  color: var(--text);
  font-size: 14.4px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(155, 185, 215, .2); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(255, 45, 120, .46);
  box-shadow: 0 0 0 3px rgba(255, 45, 120, .07);
  background: rgba(9, 15, 24, .9);
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid {
  border-color: rgba(255, 107, 122, .62);
  box-shadow: 0 0 0 3px rgba(255, 107, 122, .07);
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select option { background: #0b121d; color: var(--text); }
.select--sm { width: auto; min-width: 104px; height: 30px; font-size: 13.8px; }

.textarea { height: auto; min-height: 74px; padding: 8px 10px; resize: vertical; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .field--full { grid-column: 1 / -1; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(9, 15, 24, .4);
  color: var(--text-2);
  font-size: 13.8px;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.check input { width: 13px; height: 13px; accent-color: var(--mint); margin: 0; }
.check:hover { border-color: rgba(155, 185, 215, .22); }
.check:has(input:checked) {
  border-color: rgba(255, 45, 120, .34);
  color: var(--mint);
  background: rgba(255, 45, 120, .06);
}

.form-error {
  margin-top: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 107, 122, .28);
  border-radius: 7px;
  background: rgba(255, 107, 122, .07);
  color: var(--danger);
  font-size: 13.2px;
}

/* ============================================================
   登录页
   ============================================================ */
.login {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
body.is-login .login { display: flex; }
body.is-login { overflow: hidden; }

.login__glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 50% 8%, rgba(255, 45, 120, .07), transparent 68%),
    radial-gradient(760px 520px at 82% 92%, rgba(80, 120, 190, .1), transparent 70%);
}
.login__grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 185, 215, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 185, 215, .035) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%);
}

.login__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 404px;
  padding: 30px 30px 20px;
  border: 1px solid rgba(155, 200, 230, .15);
  border-radius: 14px;
  background: linear-gradient(158deg, rgba(19, 30, 47, .94), rgba(6, 10, 17, .98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, .66), inset 0 1px 0 rgba(255, 255, 255, .045);
}
.login__card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 120, .6), transparent);
}
.login__card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 16px;
  height: 16px;
  border-right: 1px solid rgba(255, 45, 120, .3);
  border-bottom: 1px solid rgba(255, 45, 120, .3);
  border-radius: 0 0 3px 0;
  pointer-events: none;
}

.login__brand { display: flex; align-items: center; gap: 13px; }
.logo-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 45, 120, .26);
  border-radius: 12px;
  background: radial-gradient(120% 120% at 30% 0%, rgba(255, 45, 120, .18), rgba(255, 45, 120, .04));
  color: var(--mint);
  box-shadow: inset 0 0 20px rgba(255, 45, 120, .07);
}
.logo-mark svg { width: 26px; height: 26px; }

.login__brand-txt h1 {
  font-size: 20.7px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.login__brand-txt h1 span { font-weight: 500; color: var(--text-2); font-size: 17.2px; }
.login__brand-txt .micro { margin-top: 4px; font-size: 9.8px; letter-spacing: .17em; }

.login__desc {
  margin: 18px 0 20px;
  font-size: 13.2px;
  color: var(--text-3);
  letter-spacing: .02em;
}

.login__form .field { margin-bottom: 14px; }
.login__form .field > label { font-size: 13.2px; }
.login__form .input { height: 38px; font-size: 15px; background: rgba(9, 15, 24, .78); }

.input-eye { position: relative; }
.input-eye .input { padding-right: 38px; }
.eye-btn {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
}
.eye-btn:hover { color: var(--text-2); background: rgba(255, 255, 255, .04); }
.eye-btn svg { width: 15px; height: 15px; }

.login__error {
  margin: 2px 0 12px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 107, 122, .3);
  border-radius: 8px;
  background: rgba(255, 107, 122, .08);
  color: #ff9aa4;
  font-size: 13.2px;
  line-height: 1.5;
}

.login__submit {
  width: 100%;
  margin-top: 4px;
  color: #04241a;
  border-color: rgba(255, 45, 120, .5);
  background: linear-gradient(180deg, #e8c866, #c9a227);
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 10px 26px rgba(34, 190, 150, .16);
}
.login__submit:hover { color: #2a1e06; background: linear-gradient(180deg, #e8c866, #ff2d78); }
.login__submit svg { width: 16px; height: 16px; }
.login__submit:disabled { opacity: .6; }

.login__hint {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(155, 185, 215, .1);
  text-align: center;
  font-size: 12.6px;
  color: var(--text-3);
}
.login__hint b { color: var(--text-2); font-family: var(--mono); font-weight: 600; letter-spacing: .03em; }

.login__foot {
  margin-top: 14px;
  text-align: center;
  font-size: 9.2px;
  letter-spacing: .16em;
  color: rgba(92, 106, 120, .75);
}

/* ============================================================
   应用框架
   ============================================================ */
.shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 16, 26, .98), rgba(5, 8, 14, .99));
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 45, 120, .35), transparent);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 45, 120, .24);
  border-radius: 8px;
  color: var(--mint);
  background: rgba(255, 45, 120, .07);
}
.brand__mark svg { width: 18px; height: 18px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand__txt strong { font-size: 15.5px; font-weight: 700; letter-spacing: .02em; }
.brand__txt span { margin-top: 3px; font-size: 8.6px; letter-spacing: .2em; color: var(--text-3); }

.sidebar__label { padding: 18px 18px 8px; font-size: 9.8px; }

.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.4px;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.nav__item svg { width: 16px; height: 16px; flex: 0 0 auto; opacity: .82; }
.nav__item:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.nav__item.is-active {
  color: var(--mint);
  background: linear-gradient(90deg, rgba(255, 45, 120, .13), rgba(255, 45, 120, .02));
}
.nav__item.is-active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(255, 45, 120, .7);
}
.nav__item.is-active svg { opacity: 1; }

.sidebar__spacer { flex: 1; }

.admin-box {
  margin: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(9, 15, 24, .6);
}
.admin-box__row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.admin-box__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.admin-box__meta strong {
  font-size: 13.8px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-box__meta .micro { font-size: 8.6px; letter-spacing: .13em; margin-top: 2px; }
.admin-box .btn { margin-top: 10px; justify-content: flex-start; color: var(--text-3); }
.admin-box .btn:hover { color: var(--danger); border-color: rgba(255, 107, 122, .24); background: rgba(255, 107, 122, .05); }

.sidebar__ver { padding: 0 14px 12px; text-align: center; font-size: 8.6px; letter-spacing: .16em; opacity: .8; }

/* 主区域 */
.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 14, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.8px; }
.crumb__root { color: var(--text-3); white-space: nowrap; }
.crumb__sep { color: rgba(92, 106, 120, .6); }
.crumb__cur { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar__right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.topbar__divider { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  font-size: 13.8px;
  color: var(--text-2);
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 22px 52px;
  min-width: 0;
}

/* ============================================================
   页面头部 / 卡片
   ============================================================ */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}
.page-title::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mint), rgba(255, 45, 120, .18));
  box-shadow: 0 0 10px rgba(255, 45, 120, .35);
}
.page-sub {
  margin-top: 5px;
  font-size: 10.9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-grad);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  min-width: 0;
}
.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}
.card__title { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.card__eyebrow { margin-bottom: 4px; font-size: 9.8px; letter-spacing: .18em; }
.card__side { display: flex; align-items: center; gap: 10px; font-size: 12.6px; color: var(--text-3); flex: 0 0 auto; }
.card__body { padding: 2px 16px 16px; }
.card__link { font-size: 12.6px; color: var(--mint); text-decoration: none; opacity: .9; }
.card__link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   仪表盘
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 13px;
}
.stat {
  position: relative;
  padding: 12px 14px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel-grad);
  overflow: hidden;
  min-width: 0;
}
.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(130px 70px at 106% -10%, rgba(255, 45, 120, .08), transparent 70%);
  pointer-events: none;
}
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat__top .micro { font-size: 9.2px; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat__ic { display: grid; place-items: center; color: var(--text-3); flex: 0 0 auto; }
.stat__ic svg { width: 14px; height: 14px; }
.stat__val {
  margin-top: 7px;
  font-size: 26.4px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__meta {
  margin-top: 6px;
  font-size: 12.1px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat--mint { border-color: rgba(255, 45, 120, .2); }
.stat--mint .stat__val { color: var(--mint); }
.stat--mint .stat__ic { color: rgba(255, 45, 120, .6); }
.stat--gold .stat__val { color: var(--gold); }
.stat--gold .stat__ic { color: rgba(240, 198, 116, .55); }
.stat--blue .stat__val { color: var(--blue); }
.stat--blue .stat__ic { color: rgba(145, 168, 255, .55); }

.alert-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 13px;
  padding: 9px 14px;
  border: 1px solid rgba(240, 198, 116, .24);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(240, 198, 116, .1), rgba(240, 198, 116, .015));
  color: var(--gold);
  font-size: 13.8px;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.alert-bar:hover { border-color: rgba(240, 198, 116, .44); background: linear-gradient(90deg, rgba(240, 198, 116, .15), rgba(240, 198, 116, .03)); }
.alert-bar__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 2s ease-in-out infinite;
}
.alert-bar strong { font-variant-numeric: tabular-nums; font-weight: 700; }
.alert-bar__cta { margin-left: auto; font-size: 12.1px; letter-spacing: .06em; opacity: .85; white-space: nowrap; }
.alert-bar--quiet {
  border-color: var(--border);
  background: rgba(9, 15, 24, .4);
  color: var(--text-3);
  cursor: default;
}
.alert-bar--quiet:hover { border-color: var(--border); background: rgba(9, 15, 24, .4); }
.alert-bar--quiet .alert-bar__dot { background: var(--text-3); box-shadow: none; animation: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 13px;
  margin-bottom: 13px;
  align-items: stretch;
}
.stack { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.stack > .card { flex: 1; display: flex; flex-direction: column; }
.stack > .card > .card__body { flex: 1; }

/* 柱状趋势图 */
.chart { padding-top: 4px; }
.chart__bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}
.bar-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  text-align: center;
}
.bar-col__val {
  font-size: 11.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-col__track {
  position: relative;
  height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background-image: linear-gradient(to top, rgba(155, 185, 215, .045) 1px, transparent 1px);
  background-size: 100% 44px;
  background-position: 0 100%;
}
.bar-col__bar {
  width: 64%;
  max-width: 26px;
  min-height: 3px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, rgba(255, 45, 120, .9), rgba(255, 45, 120, .12));
  box-shadow: 0 0 18px rgba(255, 45, 120, .1);
  transition: height .55s cubic-bezier(.2, .7, .3, 1), background .15s ease;
}
.bar-col:hover .bar-col__bar {
  background: linear-gradient(180deg, var(--mint-soft), rgba(255, 45, 120, .26));
  box-shadow: 0 0 22px rgba(255, 45, 120, .22);
}
.bar-col__date { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bar-col__meta { font-size: 9.8px; color: rgba(92, 106, 120, .85); white-space: nowrap; }

/* 状态 / 平台分布 */
.dist { display: flex; flex-direction: column; gap: 12px; }
.dist__row { min-width: 0; }
.dist__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 13.2px;
  color: var(--text-2);
}
.dist__dot { width: 6px; height: 6px; border-radius: 2px; flex: 0 0 auto; }
.dist__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist__val { color: var(--text); font-variant-numeric: tabular-nums; font-size: 13.8px; }
.dist__pct {
  width: 38px;
  text-align: right;
  color: var(--text-3);
  font-size: 12.1px;
  font-variant-numeric: tabular-nums;
}
.dist__track { height: 5px; border-radius: 3px; background: rgba(155, 185, 215, .07); overflow: hidden; }
.dist__fill {
  height: 100%;
  border-radius: 3px;
  opacity: .85;
  transition: width .5s cubic-bezier(.2, .7, .3, 1);
}
.dist__fill--mint { background: linear-gradient(90deg, rgba(255, 45, 120, .55), var(--mint)); }
.dist__fill--blue { background: linear-gradient(90deg, rgba(145, 168, 255, .5), var(--blue)); }

/* ============================================================
   表格
   ============================================================ */
.table-card { overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.4px;
}
.data-table th {
  padding: 0 14px 9px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-size: 9.8px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.data-table th.num, .data-table td.num { text-align: right; }
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(155, 185, 215, .055);
  vertical-align: middle;
  color: var(--text-2);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .13s ease; }
.data-table tbody tr:hover { background: rgba(255, 45, 120, .032); }
.data-table .row-click { cursor: pointer; }
.data-table .row-click:focus-visible { outline-offset: -2px; }

.data-table th:first-child, .data-table td:first-child { padding-left: 16px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 16px; }

.table-card > .data-table { padding: 0 0 4px; }
.table-card > .data-table th { padding-top: 10px; }

.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(155, 185, 215, .06);
  font-size: 12.6px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.table-meta__count { color: var(--text-2); }
.table-meta__count b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }

.cell-title {
  font-size: 14.4px;
  color: var(--text);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
}
.cell-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.cell-tags { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.rank {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(155, 185, 215, .05);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12.1px;
  font-weight: 600;
}
.rank--1 { color: var(--gold); border-color: rgba(240, 198, 116, .34); background: rgba(240, 198, 116, .1); }
.rank--2 { color: #cfd8e4; border-color: rgba(207, 216, 228, .26); background: rgba(207, 216, 228, .07); }
.rank--3 { color: #d9a06a; border-color: rgba(217, 160, 106, .28); background: rgba(217, 160, 106, .08); }

/* 胶囊 / 标签 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.1px;
  line-height: 1;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.pill--mint { color: var(--mint); background: rgba(255, 45, 120, .09); border-color: rgba(255, 45, 120, .22); }
.pill--mint-soft { color: var(--mint-soft); background: rgba(138, 255, 217, .08); border-color: rgba(138, 255, 217, .2); }
.pill--blue { color: var(--blue); background: rgba(145, 168, 255, .09); border-color: rgba(145, 168, 255, .22); }
.pill--gold { color: var(--gold); background: rgba(240, 198, 116, .09); border-color: rgba(240, 198, 116, .24); }
.pill--danger { color: var(--danger); background: rgba(255, 107, 122, .09); border-color: rgba(255, 107, 122, .24); }
.pill--muted { color: var(--text-3); background: rgba(155, 185, 215, .05); border-color: rgba(155, 185, 215, .12); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(155, 185, 215, .045);
  color: var(--text-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.tag--pc { color: var(--mint); border-color: rgba(255, 45, 120, .2); background: rgba(255, 45, 120, .055); }
.tag--mobile { color: var(--blue); border-color: rgba(145, 168, 255, .2); background: rgba(145, 168, 255, .06); }

/* 人 / 头像 */
.person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.person__meta { min-width: 0; line-height: 1.3; }
.person__name {
  font-size: 14.4px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.person__sub { margin-top: 2px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 168, 255, .2);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(145, 168, 255, .16), rgba(145, 168, 255, .04));
  color: var(--blue);
  font-size: 13.8px;
  font-weight: 600;
  line-height: 1;
}
.avatar--sm { width: 22px; height: 22px; border-radius: 6px; font-size: 11.5px; }
.avatar--mint {
  border-color: rgba(255, 45, 120, .22);
  background: linear-gradient(145deg, rgba(255, 45, 120, .16), rgba(255, 45, 120, .04));
  color: var(--mint);
}

.chip-line { display: inline-flex; align-items: center; gap: 8px; font-size: 12.6px; color: var(--text-3); }
.chip-line b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============================================================
   筛选栏 / Tabs / 搜索
   ============================================================ */
.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 11px;
  margin-bottom: 11px;
}
.filterbar__right { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 11, 18, .7);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  font-size: 13.2px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.tab:hover { color: var(--text-2); background: rgba(255, 255, 255, .035); }
.tab.is-active {
  color: var(--mint);
  background: rgba(255, 45, 120, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 120, .2);
}
.tab__cnt {
  font-size: 10.9px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(155, 185, 215, .07);
}
.tab.is-active .tab__cnt { color: var(--mint); background: rgba(255, 45, 120, .12); }

.search { position: relative; display: flex; align-items: center; }
.search svg {
  position: absolute;
  left: 9px;
  width: 14px;
  height: 14px;
  color: var(--text-3);
  pointer-events: none;
}
.search .input {
  width: 196px;
  height: 30px;
  padding-left: 29px;
  font-size: 13.8px;
  border-radius: 8px;
}
.search .input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ============================================================
   空态 / 错误态 / 骨架屏
   ============================================================ */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 48px 22px;
  text-align: center;
  color: var(--text-3);
}
.empty svg { width: 34px; height: 34px; opacity: .45; margin-bottom: 4px; }
.empty strong { font-size: 14.4px; font-weight: 500; color: var(--text-2); }
.empty span { font-size: 12.6px; max-width: 320px; line-height: 1.6; }
.empty .btn { margin-top: 10px; }
.empty--error svg { color: var(--danger); opacity: .6; }

.sk {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(155, 185, 215, .055);
  min-height: 10px;
}
.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(155, 185, 215, .09), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.sk-line { height: 10px; }
.sk-stat { padding: 13px 14px; }
.sk-stat .sk { margin-bottom: 9px; }
.sk-stat .sk:last-child { margin-bottom: 0; }
.sk-chart { height: 174px; border-radius: 8px; }
.sk-row {
  display: flex;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(155, 185, 215, .05);
}
.sk-row .sk { height: 11px; }
.sk-block { height: 44px; }

/* ============================================================
   弹窗
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 18px 32px;
  background: rgba(2, 5, 9, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity .16s ease;
}
.modal-overlay.is-open { opacity: 1; }

.modal {
  position: relative;
  width: 100%;
  margin: auto 0;
  border: 1px solid rgba(155, 200, 230, .16);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(19, 30, 47, .98), rgba(7, 12, 20, .995));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .66), inset 0 1px 0 rgba(255, 255, 255, .04);
  transform: translateY(10px) scale(.992);
  transition: transform .18s cubic-bezier(.2, .7, .3, 1);
  min-width: 0;
}
.modal-overlay.is-open .modal { transform: none; }
.modal::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 45, 120, .7), transparent);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.modal__head h2 { margin-top: 3px; font-size: 17.2px; font-weight: 600; letter-spacing: .01em; }
.modal__sub { margin-top: 4px; font-size: 12.6px; color: var(--text-3); line-height: 1.5; }
.modal__body { padding: 16px 18px 4px; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--border);
  background: rgba(9, 15, 24, .3);
  border-radius: 0 0 13px 13px;
}
.modal__foot .btn { min-width: 74px; }

.confirm-msg { font-size: 14.4px; line-height: 1.7; color: var(--text-2); }
.confirm-msg strong { color: var(--text); font-variant-numeric: tabular-nums; }
.confirm-detail {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(6, 11, 18, .6);
  font-size: 12.6px;
  color: var(--text-3);
  line-height: 1.7;
}
.confirm-detail b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.confirm-note { margin-top: 9px; font-size: 12.1px; color: var(--gold); }

/* ============================================================
   抽屉
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(2, 5, 9, .64);
  opacity: 0;
  transition: opacity .2s ease;
}
.drawer-overlay.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 121;
  width: 460px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(155, 200, 230, .15);
  background: linear-gradient(200deg, #0b121d 0%, #0b121d 55%, #05080e 100%);
  box-shadow: -26px 0 64px rgba(0, 0, 0, .52);
  transform: translateX(100%);
  transition: transform .24s cubic-bezier(.2, .7, .3, 1);
  min-width: 0;
}
.drawer.is-open { transform: none; }
.drawer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 140px;
  background: linear-gradient(180deg, rgba(255, 45, 120, .5), transparent);
}

.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid var(--border);
}
.drawer__title { margin-top: 4px; font-size: 18.4px; font-weight: 600; line-height: 1.4; word-break: break-word; }
.drawer__id { margin-top: 4px; font-size: 11.5px; color: var(--text-3); letter-spacing: .07em; }
.drawer__body { flex: 1; overflow-y: auto; padding: 14px 18px 22px; }
.drawer__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(9, 15, 24, .55);
  flex-wrap: wrap;
}
.drawer__readonly {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.6px;
  color: var(--text-3);
}
.drawer__statusrow { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; flex-wrap: wrap; }

.dsec { margin-bottom: 18px; }
.dsec:last-child { margin-bottom: 4px; }
.dsec__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 9.8px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dsec__title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.dsec__title .cnt {
  order: 3;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: .02em;
}

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.kv__k { font-size: 10.9px; color: var(--text-3); letter-spacing: .05em; }
.kv__v { margin-top: 2px; font-size: 14.4px; color: var(--text); word-break: break-word; }

.money-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(155, 185, 215, .08);
  font-size: 13.2px;
  color: var(--text-3);
}
.money-row:last-child { border-bottom: 0; }
.money-row strong { font-size: 15px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.money-row.highlight { padding: 9px 10px; margin-top: 4px; border: 1px solid rgba(255, 45, 120, .18); border-radius: 8px; background: rgba(255, 45, 120, .05); }
.money-row.highlight span { color: var(--mint); }
.money-row.highlight strong { font-size: 18.4px; color: var(--mint); }

.member {
  margin-bottom: 8px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(9, 15, 24, .55);
}
.member:last-child { margin-bottom: 0; }
.member__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.seat-badge {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 168, 255, .18);
  border-radius: 5px;
  background: rgba(145, 168, 255, .09);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10.9px;
}
.member__name {
  flex: 1;
  min-width: 0;
  font-size: 14.4px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 12.1px;
  color: var(--text-3);
}
.member__meta b { color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.member__empty { margin-top: 7px; font-size: 12.1px; color: var(--text-3); }

.report {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 2px solid rgba(255, 45, 120, .3);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 45, 120, .035);
  font-size: 13.2px;
  line-height: 1.65;
  color: var(--text-2);
}
.report__goal { margin-bottom: 3px; font-size: 12.1px; color: var(--mint); }
.report__time { margin-top: 4px; font-size: 10.9px; color: var(--text-3); }
.report__imgs { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.report__imgs img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  cursor: zoom-in;
}

/* ============================================================
   Toast
   ============================================================ */
.toast-stack {
  position: fixed;
  top: 68px;
  right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(11, 18, 29, .97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
  color: var(--text);
  font-size: 13.8px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  word-break: break-word;
}
.toast.is-show { opacity: 1; transform: none; }
.toast__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px currentColor;
  color: var(--blue);
}
.toast--success .toast__dot { background: var(--mint); color: var(--mint); }
.toast--error { border-color: rgba(255, 107, 122, .32); }
.toast--error .toast__dot { background: var(--danger); color: var(--danger); }
.toast--info .toast__dot { background: var(--blue); color: var(--blue); }

/* 滚动锁定 */
body.no-scroll { overflow: hidden; }

/* 截图放大 */
.screenshot-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(2, 5, 9, .85);
  cursor: zoom-out;
}
.screenshot-overlay img { max-width: 100%; max-height: 88vh; border-radius: 8px; border: 1px solid var(--border-strong); }

.noscript {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 300;
  padding: 10px 16px;
  border: 1px solid rgba(255, 107, 122, .3);
  border-radius: 8px;
  background: #1a0b10;
  color: #ff9aa4;
  font-size: 13.8px;
  white-space: nowrap;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --sidebar-w: 64px; }
  .sidebar { width: 64px; }
  .main { margin-left: 64px; }
  .brand { justify-content: center; padding: 0; }
  .brand__txt, .sidebar__label, .admin-box__meta, .sidebar__ver { display: none; }
  .nav { padding: 10px 8px; }
  .nav__item { justify-content: center; height: 42px; padding: 0; }
  .nav__item span { display: none; }
  .nav__item.is-active::before { left: -8px; }
  .admin-box { padding: 8px; }
  .admin-box .btn { justify-content: center; padding: 0; }
  .admin-box .btn span { display: none; }
  .admin-box .btn svg { width: 15px; height: 15px; }
  .admin-box__row { justify-content: center; }

  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content { padding: 18px 18px 44px; }
  .topbar { padding: 0 18px; }
}

@media (max-width: 900px) {
  .hide-md { display: none !important; }
  .search .input { width: 160px; }
}

@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__user { display: none; }
  .topbar__divider { display: none; }
  .content { padding: 16px 12px 40px; }
  .page-title { font-size: 20.7px; }
  .filterbar { padding: 8px; }
  .search { flex: 1; }
  .search .input { width: 100%; min-width: 130px; }
  .filterbar__right { width: 100%; }
  .page-head { align-items: flex-start; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .kv-grid { grid-template-columns: 1fr 1fr; }
  .modal-overlay { padding: 24px 12px; }
  .login__card { padding: 26px 22px 18px; }
  .login__brand-txt h1 { font-size: 18.4px; }
  .login__brand-txt h1 span { font-size: 15px; }
  .toast-stack { top: 64px; right: 12px; left: 12px; max-width: none; }
  .toast { width: 100%; }
}

@media (max-width: 420px) {
  .login__brand { gap: 10px; }
  .logo-mark { width: 40px; height: 40px; border-radius: 10px; }
  .logo-mark svg { width: 22px; height: 22px; }
  .login__brand-txt h1 span { display: block; font-size: 13.8px; margin-top: 2px; }
  .stat__val { font-size: 23px; }
}

@media (max-height: 640px) {
  .login { align-items: flex-start; padding: 18px; }
  .login__card { margin: 0 auto; }
}

/* ============================================================
   动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .sk::after { animation: none; }
}

/* ============================================================
   分页器
   ============================================================ */
.pager-host:empty { display: none; }
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.pager__info { font-size: 12.6px; color: var(--text-3); }
.pager__info b { color: var(--text); }
.pager__ctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager__label { font-size: 12.6px; color: var(--text-2); white-space: nowrap; }
.pager__label b { color: var(--text); }
.pager .select { width: auto; min-width: 104px; }



select, .select { color-scheme: dark; }
select option, .select option, option { background-color: #0d0b13; color: var(--text); }
