/* ============================================================
 * admin.css —— 深蓝科技风 · 毛玻璃数据大屏
 *
 * 设计语言（参考监控大屏视觉）：
 *   1. 底色为深海蓝渐变 + 缓慢流动的青蓝光晕；
 *   2. 所有面板是暗色玻璃：blur + 顶部 1px 高光 + 霓虹描边；
 *   3. 数据用衬线数字 + 无衬线小字标签，霓虹青 #38BDF8 为主色；
 *   4. 不支持 backdrop-filter 时退回实色深蓝底保证可读。
 *
 * 依赖 style.css 的字体变量；本文件只负责后台的皮肤与骨架。
 * ============================================================ */

:root {
  --ink: #E8F1FF;
  --ink-2: #C6D8F2;
  --ink-3: #7E97BC;
  --muted: rgba(178, 203, 238, .62);
  --brand: #38BDF8;
  --brand-deep: #7DD3FC;

  --glass-fill: rgba(13, 33, 66, .55);
  --glass-fill-strong: rgba(16, 40, 78, .72);
  --glass-stroke: rgba(96, 165, 250, .22);
  --glass-blur: 22px;
  --glass-shadow:
    0 2px 12px -4px rgba(2, 12, 32, .55),
    0 30px 70px -30px rgba(2, 10, 28, .85);
  --glass-inner:
    inset 0 1px 0 rgba(148, 197, 255, .22),
    inset 0 -1px 0 rgba(148, 197, 255, .06);
  --neon: 0 0 22px -6px rgba(56, 189, 248, .5);

  --ok: #34D399;
  --warn: #FBBF24;
  --bad: #F87171;

  --side-w: 244px;
}

/* ---------- 环境光：深海蓝 ---------- */
.adm-body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 720px at 6% -10%, rgba(30, 64, 140, .55) 0%, rgba(30, 64, 140, 0) 60%),
    radial-gradient(900px 640px at 102% -6%, rgba(14, 116, 144, .4) 0%, rgba(14, 116, 144, 0) 58%),
    radial-gradient(1000px 760px at 50% 116%, rgba(37, 78, 168, .45) 0%, rgba(37, 78, 168, 0) 62%),
    linear-gradient(180deg, #0A1730 0%, #0B1E3A 55%, #081428 100%);
  background-attachment: fixed;
}

/* 极细颗粒，避免大面积渐变出现色带 */
.adm-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

.adm-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.adm-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.adm-blob.b1 {
  width: 460px; height: 460px; top: -140px; left: 6%;
  background: radial-gradient(circle at 40% 40%, rgba(56, 130, 246, .5), rgba(56, 130, 246, 0) 70%);
  animation: drift-a 28s ease-in-out infinite alternate;
}
.adm-blob.b2 {
  width: 420px; height: 420px; top: -100px; right: 2%;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .38), rgba(34, 211, 238, 0) 70%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
.adm-blob.b3 {
  width: 560px; height: 480px; bottom: -200px; left: 20%;
  background: radial-gradient(circle at 50% 50%, rgba(59, 76, 230, .35), rgba(59, 76, 230, 0) 70%);
  animation: drift-a 40s ease-in-out infinite alternate-reverse;
}
.adm-blob.b4 {
  width: 340px; height: 340px; bottom: 4%; right: 8%;
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 190, .35), rgba(14, 165, 190, 0) 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(46px, 34px, 0) scale(1.1); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(-52px, 26px, 0) scale(.95); }
}

/* ---------- 玻璃基类（各面板共用） ---------- */
.adm-gate-card,
.adm-side,
.adm-top,
.adm-panel,
.kpi,
.adm-table,
.adm-empty,
.adm-drawer {
  position: relative;
  background:
    linear-gradient(158deg, rgba(17, 42, 82, .82) 0%, rgba(10, 27, 56, .62) 48%, rgba(14, 36, 72, .74) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-shadow), var(--glass-inner);
}

/* 面板顶部一条霓虹高光，模拟大屏描边 */
.adm-panel::before,
.kpi::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, .55), rgba(56, 189, 248, 0));
  pointer-events: none;
}

/* 不支持 backdrop-filter 时退回实色深蓝底，保证可读 */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .adm-gate-card, .adm-side, .adm-top, .adm-panel, .kpi,
  .adm-table, .adm-empty, .adm-drawer { background: rgba(11, 29, 58, .97); }
}

/* ---------- 登录门 ---------- */
.adm-gate {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.adm-gate-card {
  width: min(460px, 100%);
  border-radius: 28px;
  padding: 44px 42px 34px;
  animation: rise .6s var(--ease) both;
  border-color: rgba(96, 165, 250, .3);
  box-shadow: var(--glass-shadow), var(--glass-inner), 0 0 46px -12px rgba(56, 189, 248, .35);
}
.adm-gate-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, .7), rgba(56, 189, 248, 0));
}
.adm-gate-mark {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 22px;
  color: var(--brand-deep);
  background: linear-gradient(150deg, rgba(56, 189, 248, .22), rgba(37, 78, 168, .3));
  border: 1px solid rgba(96, 165, 250, .4);
  box-shadow: var(--neon), inset 0 1px 0 rgba(148, 197, 255, .3);
}
.adm-gate-mark svg { width: 26px; height: 26px; stroke-width: 1.5; }
.adm-gate-card h1 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .08em;
  margin: 2px 0 12px;
  color: var(--ink);
}
.adm-gate-sub {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 26px;
}
.adm-gate-sub code {
  font-size: 11.5px;
  background: rgba(56, 189, 248, .12);
  color: var(--brand-deep);
  border-radius: 5px;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.adm-gate-card .field { margin-bottom: 18px; }
.adm-gate-card .field span { color: var(--ink-2); }
.adm-gate-card .field input {
  height: 48px;
  background: rgba(7, 20, 44, .6);
  border-color: rgba(96, 165, 250, .28);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(2, 12, 32, .5);
}
.adm-gate-card .field input::placeholder { color: rgba(126, 151, 188, .55); }
.adm-gate-card .field input:focus {
  background: rgba(10, 27, 56, .85);
  border-color: rgba(56, 189, 248, .6);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .14);
}
.adm-gate-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color .2s;
}
.adm-gate-back:hover { color: var(--brand); }

/* ---------- 骨架 ---------- */
.adm-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  min-height: 100vh;
}

/* ---------- 侧栏 ---------- */
.adm-side {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 14px 16px;
  border-radius: 26px;
  overflow: hidden;
}
/* 侧栏顶部一层柔光，增强玻璃厚度感 */
.adm-side::before {
  content: "";
  position: absolute;
  top: -40%; left: -30%;
  width: 160%; height: 70%;
  background: radial-gradient(closest-side, rgba(56, 130, 246, .18), rgba(56, 130, 246, 0) 70%);
  pointer-events: none;
}
.adm-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  position: relative;
}
.adm-logo-mark {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand-deep);
  background: linear-gradient(150deg, rgba(56, 189, 248, .22), rgba(37, 78, 168, .3));
  border: 1px solid rgba(96, 165, 250, .4);
  box-shadow: var(--neon), inset 0 1px 0 rgba(148, 197, 255, .3);
}
.adm-logo-mark svg { width: 20px; height: 20px; stroke-width: 1.5; }
.adm-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.adm-logo-text b {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ink);
}
.adm-logo-text i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--muted);
  margin-top: 4px;
}

.adm-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}
.adm-nav-label {
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 12px 6px;
}
.adm-nav-label:first-child { padding-top: 0; }
.adm-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.adm-nav button svg {
  width: 17px; height: 17px;
  flex: none;
  stroke-width: 1.5;
  opacity: .55;
  transition: opacity .2s, color .2s;
}
.adm-nav button:hover { background: rgba(56, 130, 246, .12); color: var(--ink); }
.adm-nav button:hover svg { opacity: .8; }
.adm-nav button.active {
  color: var(--brand-deep);
  font-weight: 500;
  background: linear-gradient(135deg, rgba(56, 130, 246, .22), rgba(34, 211, 238, .1));
  box-shadow:
    inset 0 1px 0 rgba(148, 197, 255, .25),
    0 0 0 1px rgba(56, 189, 248, .25),
    0 12px 24px -16px rgba(2, 12, 32, .9);
}
.adm-nav button.active svg { opacity: 1; color: var(--brand); }

.adm-side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 10px 0;
  border-top: 1px solid rgba(148, 197, 255, .1);
  font-size: 12.5px;
  color: var(--muted);
}
.adm-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: .04em;
}
.adm-status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .16);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }
  50%      { box-shadow: 0 0 0 6px rgba(52, 211, 153, .05); }
}
.adm-side-foot a:hover, .adm-side-foot button:hover { color: var(--brand); }
.adm-side-foot button { text-align: left; }

/* ---------- 主区 ---------- */
.adm-main { min-width: 0; padding-bottom: 32px; }

.adm-top {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-radius: 22px;
  margin-bottom: 16px;
}
.adm-crumb {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.adm-crumb b { color: var(--brand); font-weight: 500; }
.adm-crumb span { margin: 0 4px; opacity: .5; }
.adm-top h2 {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
}
.adm-top p#viewSub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.adm-top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.adm-saved { font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }

/* 通用按钮（后台更紧凑） */
.adm-body .btn { padding: 10px 20px; font-size: 13px; }
.adm-body .btn-primary {
  background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 60%, #1D4ED8 100%);
  box-shadow: 0 10px 26px -10px rgba(37, 99, 235, .75), inset 0 1px 0 rgba(148, 197, 255, .35);
}
.adm-body .btn-primary:hover {
  background: linear-gradient(135deg, #38BDF8 0%, #3B82F6 60%, #2563EB 100%);
  box-shadow: 0 14px 32px -10px rgba(56, 189, 248, .8);
}
.adm-body .btn-outline {
  background: rgba(56, 130, 246, .12);
  border-color: rgba(96, 165, 250, .35);
  color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(148, 197, 255, .18);
}
.adm-body .btn-outline:hover {
  background: rgba(56, 130, 246, .24);
  border-color: rgba(56, 189, 248, .55);
  color: var(--brand-deep);
}
.adm-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: rgba(56, 130, 246, .1);
  border: 1px solid rgba(96, 165, 250, .28);
  box-shadow: inset 0 1px 0 rgba(148, 197, 255, .16);
  transition: background .2s, color .2s, box-shadow .2s;
}
.adm-ghost svg { width: 14px; height: 14px; stroke-width: 1.7; }
.adm-ghost:hover { background: rgba(56, 130, 246, .22); color: var(--brand-deep); }
.adm-ghost:active svg { transform: rotate(180deg); transition: transform .4s var(--ease); }

/* 视图入场 */
.adm-view > * { animation: rise .5s var(--ease) both; }
.adm-view > *:nth-child(2) { animation-delay: .05s; }
.adm-view > *:nth-child(3) { animation-delay: .1s; }
.adm-view > *:nth-child(4) { animation-delay: .15s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
 * 概览看板
 * ============================================================ */
.dash { display: flex; flex-direction: column; gap: 16px; }

/* --- KPI 卡 --- */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi {
  border-radius: 22px;
  padding: 18px 20px 0;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.kpi:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, .45);
  box-shadow: 0 3px 12px -6px rgba(2, 12, 32, .5), 0 34px 64px -30px rgba(2, 10, 28, .9), var(--neon), var(--glass-inner);
}
.kpi::after {
  content: "";
  position: absolute;
  top: -60px; right: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .6;
}
.kpi.tone-rose::after  { background: radial-gradient(circle, rgba(56, 189, 248, .4), rgba(56, 189, 248, 0) 68%); }
.kpi.tone-sage::after  { background: radial-gradient(circle, rgba(52, 211, 153, .35), rgba(52, 211, 153, 0) 68%); }
.kpi.tone-sand::after  { background: radial-gradient(circle, rgba(251, 191, 36, .3), rgba(251, 191, 36, 0) 68%); }
.kpi.tone-lilac::after { background: radial-gradient(circle, rgba(129, 140, 248, .38), rgba(129, 140, 248, 0) 68%); }

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.kpi-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi-icon {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(96, 165, 250, .3);
  box-shadow: inset 0 1px 0 rgba(148, 197, 255, .2);
}
.kpi-icon svg { width: 14px; height: 14px; stroke-width: 1.6; }
.kpi.tone-sage .kpi-icon { color: var(--ok); background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); }
.kpi.tone-sand .kpi-icon { color: var(--warn); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); }
.kpi.tone-lilac .kpi-icon { color: #A5B4FC; background: rgba(129, 140, 248, .14); border-color: rgba(129, 140, 248, .35); }

.kpi-value {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.kpi-value em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.kpi-value.hero {
  background: linear-gradient(115deg, #E8F1FF 0%, #7DD3FC 55%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kpi-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(52, 211, 153, .12);
  color: var(--ok);
}
.kpi-delta.down { background: rgba(248, 113, 113, .12); color: var(--bad); }
.kpi-delta.flat { background: rgba(148, 197, 255, .1); color: var(--muted); }
.kpi-spark {
  position: relative;
  z-index: 1;
  margin: 14px -20px -1px;
  height: 54px;
  opacity: .95;
}
.kpi-spark svg { display: block; width: 100%; height: 100%; }

/* --- 面板 --- */
.adm-panel { border-radius: 22px; padding: 20px 22px 18px; }
.adm-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(148, 197, 255, .1);
}
.adm-panel-head h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
}
.adm-panel-head p {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}
.adm-panel-tools { display: flex; align-items: center; gap: 8px; flex: none; }

/* 分段控件（7 / 14 / 30 天） */
.adm-seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(7, 20, 44, .55);
  border: 1px solid rgba(96, 165, 250, .22);
  box-shadow: inset 0 1px 0 rgba(148, 197, 255, .12);
}
.adm-seg button {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}
.adm-seg button:hover { color: var(--ink-2); }
.adm-seg button.on {
  color: #062A4D;
  font-weight: 600;
  background: linear-gradient(135deg, #7DD3FC, #38BDF8);
  box-shadow: 0 4px 12px -4px rgba(56, 189, 248, .6);
}

/* 图例 */
.adm-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.adm-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.adm-legend i {
  width: 7px; height: 7px;
  border-radius: 2px;
  display: block;
}
.adm-legend b {
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.adm-legend.stack { flex-direction: column; gap: 9px; margin-top: 16px; }
.adm-legend.stack span { width: 100%; justify-content: space-between; }
.adm-legend.stack span b { margin-left: auto; font-size: 12.5px; }

/* --- 布局网格 --- */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 16px;
}
.dash-grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
}

/* 图表 */
.adm-chart { width: 100%; }
.adm-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.adm-chart-axis { font-size: 10px; fill: rgba(163, 196, 240, .7); font-family: var(--font-sans); letter-spacing: .04em; }

/* 环形图 */
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.donut { width: 158px; height: 158px; }
.donut-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  fill: var(--ink);
}
.donut-cap { font-size: 9.5px; fill: rgba(163, 196, 240, .6); letter-spacing: .16em; }

/* 列表 */
.adm-list { display: flex; flex-direction: column; }
.adm-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 197, 255, .09);
}
.adm-list-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.adm-list-rank {
  width: 20px;
  flex: none;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.adm-list-main { flex: 1; min-width: 0; }
.adm-list-main b {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-list-main span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.adm-list-val {
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.adm-list-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: none;
}
.adm-list-side .st { padding: 2px 7px; font-size: 10px; }

/* 细进度条 */
.adm-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 197, 255, .12);
  overflow: hidden;
  margin-top: 7px;
}
.adm-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, .5), rgba(56, 189, 248, .95));
  box-shadow: 0 0 8px -2px rgba(56, 189, 248, .8);
  transition: width .8s var(--ease);
}
.adm-bar.sage i { background: linear-gradient(90deg, rgba(52, 211, 153, .5), rgba(52, 211, 153, .9)); box-shadow: 0 0 8px -2px rgba(52, 211, 153, .8); }

/* 空态 */
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 190px;
  color: var(--muted);
  text-align: center;
}
.dash-empty svg { width: 30px; height: 30px; color: var(--ink-3); stroke-width: 1.3; margin-bottom: 2px; }
.dash-empty b { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dash-empty span { font-size: 11.5px; max-width: 260px; line-height: 1.8; }

/* 状态胶囊 */
.st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  letter-spacing: .02em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.st i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: block; }
.st-paid { background: rgba(52, 211, 153, .14); color: #34D399; }
.st-pending { background: rgba(251, 191, 36, .13); color: #FBBF24; }
.st-closed { background: rgba(148, 197, 255, .09); color: var(--muted); }

/* ---------- 表格 ---------- */
.adm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 22px;
  overflow: hidden;
  font-size: 13px;
}
.adm-table th {
  text-align: left;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(7, 20, 44, .5);
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 197, 255, .12);
  white-space: nowrap;
}
.adm-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 197, 255, .08);
  vertical-align: middle;
  color: var(--ink-2);
}
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr { transition: background .2s; }
.adm-table tbody tr:hover { background: rgba(56, 130, 246, .1); }
.adm-table .num { font-variant-numeric: tabular-nums; }
.adm-table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--muted);
}

.adm-thumb {
  width: 42px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(7, 20, 44, .5);
  border: 1px solid rgba(96, 165, 250, .25);
  box-shadow: 0 6px 14px -10px rgba(2, 12, 32, .8), inset 0 1px 0 rgba(148, 197, 255, .16);
  flex: none;
}
.adm-thumb svg, .adm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-name { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.adm-name b { font-weight: 500; color: var(--ink); display: block; }
.adm-name span { font-size: 11px; color: var(--muted); }

.adm-chip {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 130, 246, .12);
  border: 1px solid rgba(96, 165, 250, .25);
  color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(148, 197, 255, .14);
}
.adm-chip.brand {
  background: linear-gradient(135deg, rgba(56, 189, 248, .2), rgba(37, 99, 235, .16));
  color: var(--brand-deep);
  border-color: rgba(56, 189, 248, .4);
}
.adm-chip.off { background: rgba(248, 113, 113, .12); color: #F87171; border-color: rgba(248, 113, 113, .3); }

.adm-row-actions { display: flex; gap: 3px; justify-content: flex-end; }
.adm-row-actions button {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background .18s, color .18s, transform .18s;
}
.adm-row-actions button svg { width: 15px; height: 15px; }
.adm-row-actions button:hover {
  background: rgba(56, 130, 246, .22);
  color: var(--brand-deep);
  box-shadow: 0 6px 14px -10px rgba(2, 12, 32, .9);
  transform: translateY(-1px);
}
.adm-row-actions button.danger:hover { background: rgba(248, 113, 113, .16); color: #F87171; }

.adm-empty {
  text-align: center;
  padding: 52px 20px;
  color: var(--muted);
  font-size: 13px;
  border-radius: 22px;
  border-style: dashed;
  border-color: rgba(96, 165, 250, .3);
}

/* ---------- 设置卡片 ---------- */
.adm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
}
.adm-card {
  position: relative;
  background: linear-gradient(158deg, rgba(17, 42, 82, .8), rgba(10, 27, 56, .6));
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-stroke);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: var(--glass-shadow), var(--glass-inner);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.adm-card:hover { transform: translateY(-2px); }
.adm-card h4 {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 9px;
  color: var(--ink);
}
.adm-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 18px;
  flex: 1;
}
.adm-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: rgba(56, 189, 248, .12);
  color: var(--brand-deep);
  padding: 1px 5px;
  border-radius: 5px;
}
.adm-card .btn { align-self: flex-start; }

/* ---------- 图片上传字段 ---------- */
.adm-image-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.adm-image-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex: none;
  overflow: hidden;
  background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(96, 165, 250, .25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-image-thumb i { font-size: 11px; color: var(--muted); font-style: normal; }
.adm-image-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.adm-image-actions input[type="text"] { width: 100%; }
.adm-image-actions .btn { align-self: flex-start; }

/* ---------- 站点 / 支付 / 密码 设置卡 ---------- */
.site-card { margin-bottom: 18px; }
.site-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 4px 0 16px;
}
.site-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.site-form label.full { grid-column: 1 / -1; }
.site-form input, .site-form select {
  border: 1px solid rgba(96, 165, 250, .25);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  background: rgba(7, 20, 44, .55);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.site-form select { font: inherit; }
.site-form select option { background: #0B1D3A; color: var(--ink); }
.site-form input::placeholder { color: rgba(126, 151, 188, .5); }
.site-form input:focus, .site-form select:focus {
  border-color: rgba(56, 189, 248, .6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .14);
}
@media (max-width: 640px) { .site-form { grid-template-columns: 1fr; } }

/* 支付通道分组块 */
.pay-block {
  border: 1px solid rgba(96, 165, 250, .18);
  border-radius: 16px;
  padding: 14px 16px 4px;
  margin-bottom: 14px;
  background: rgba(7, 20, 44, .35);
}
.pay-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pay-block-head b {
  font-size: 13px;
  color: var(--brand-deep);
  letter-spacing: .05em;
}
.pay-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.pay-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pay-switch i {
  width: 34px; height: 19px;
  border-radius: 999px;
  background: rgba(148, 197, 255, .15);
  border: 1px solid rgba(96, 165, 250, .3);
  position: relative;
  transition: background .2s, border-color .2s;
}
.pay-switch i::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .2s, background .2s;
}
.pay-switch input:checked + i {
  background: linear-gradient(135deg, rgba(56, 189, 248, .4), rgba(37, 99, 235, .45));
  border-color: rgba(56, 189, 248, .6);
  box-shadow: var(--neon);
}
.pay-switch input:checked + i::after {
  transform: translateX(15px);
  background: var(--brand-deep);
}
.pay-switch span { font-size: 11.5px; color: var(--muted); }

/* ---------- 抽屉 ---------- */
.adm-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 10, 26, .5);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  transition: opacity .26s;
}
.adm-drawer-mask.show { opacity: 1; }
.adm-drawer {
  position: absolute;
  top: 12px; right: 12px; bottom: 12px;
  width: min(580px, calc(100% - 24px));
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  transform: translateX(26px);
  transition: transform .34s var(--ease);
  box-shadow: 0 40px 90px -40px rgba(2, 10, 28, .9), var(--glass-inner);
  overflow: hidden;
  border-color: rgba(96, 165, 250, .28);
}
.adm-drawer-mask.show .adm-drawer { transform: none; }
.adm-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(148, 197, 255, .1);
}
.adm-drawer-head h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink);
}
.adm-drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.adm-drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 24px;
  border-top: 1px solid rgba(148, 197, 255, .1);
  background: rgba(7, 20, 44, .45);
}

/* ---------- 表单 ---------- */
.adm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.adm-form .full { grid-column: 1 / -1; }
.adm-form label { display: block; }
.adm-form label > span {
  display: block;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--muted);
  margin-bottom: 6px;
}
.adm-form input, .adm-form select, .adm-form textarea {
  width: 100%;
  padding: 10px 13px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: rgba(7, 20, 44, .55);
  border: 1px solid rgba(96, 165, 250, .28);
  border-radius: 11px;
  box-shadow: inset 0 1px 2px rgba(2, 12, 32, .4);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.adm-form select option { background: #0B1D3A; color: var(--ink); }
.adm-form input::placeholder, .adm-form textarea::placeholder { color: rgba(126, 151, 188, .5); }
.adm-form textarea { resize: vertical; min-height: 82px; line-height: 1.75; }
.adm-form input:focus, .adm-form select:focus, .adm-form textarea:focus {
  outline: none;
  background: rgba(10, 27, 56, .85);
  border-color: rgba(56, 189, 248, .6);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .12);
}
.adm-form .hint { font-size: 11px; color: var(--muted); margin-top: 5px; }

.adm-colors { display: flex; gap: 10px; }
.adm-colors input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 3px;
  background: rgba(7, 20, 44, .55);
  border-radius: 10px;
  cursor: pointer;
}

.adm-preview {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(96, 165, 250, .25);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(17, 42, 82, .7), rgba(10, 27, 56, .45));
  box-shadow: inset 0 1px 0 rgba(148, 197, 255, .16), 0 14px 30px -24px rgba(2, 10, 28, .9);
  margin-bottom: 20px;
}
.adm-preview-media {
  width: 118px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 12px 26px -18px rgba(2, 10, 28, .9);
}
.adm-preview-media svg, .adm-preview-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-preview-text b { font-size: 13.5px; display: block; margin-bottom: 5px; color: var(--ink); }
.adm-preview-text span { font-size: 11.5px; color: var(--muted); line-height: 1.75; display: block; }

/* ---------- 滚动条 ---------- */
.adm-drawer-body::-webkit-scrollbar,
.adm-side::-webkit-scrollbar { width: 6px; }
.adm-drawer-body::-webkit-scrollbar-thumb,
.adm-side::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, .3);
  border-radius: 999px;
}

/* ---------- Toast ---------- */
.adm-body .toast {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(9, 26, 54, .94);
  color: var(--ink);
  border: 1px solid rgba(96, 165, 250, .3);
  box-shadow: 0 18px 40px -20px rgba(2, 10, 28, .9), var(--neon);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .dash-grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .adm-shell { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .adm-side {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    overflow-x: auto;
    border-radius: 20px;
  }
  .adm-side::before { display: none; }
  .adm-logo-text { display: none; }
  .adm-nav { flex-direction: row; gap: 4px; }
  .adm-nav-label { display: none; }
  .adm-nav button { padding: 8px 12px; }
  .adm-nav button span { font-size: 12.5px; }
  .adm-side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; gap: 12px; border: 0; padding: 0; flex: none; }
  .adm-status { display: none; }
  .adm-top { position: static; flex-wrap: wrap; padding: 16px 18px; }
  .adm-main { padding-bottom: 24px; }
  .adm-form { grid-template-columns: 1fr; }
  .adm-table { display: block; overflow-x: auto; white-space: nowrap; }
  .adm-drawer { top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: 92vh; border-radius: 24px 24px 0 0; transform: translateY(30px); }
}
@media (max-width: 620px) {
  .kpi-row { grid-template-columns: minmax(0, 1fr); }
  .adm-gate-card { padding: 34px 26px 28px; }
  .adm-top-actions { width: 100%; justify-content: space-between; }
  .adm-saved { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
