/* ==========================================================================
   估价大玩家 · 后台管理站  admin.css
   纯 vanilla CSS：设计令牌 + 组件库 + 动画
   约定：所有交互动画只使用 transform / opacity（骨架屏除外），
   全部尊重 prefers-reduced-motion。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌 */
  --blue:        #2b6cff;
  --blue-hover:  #1e56d8;
  --blue-light:  #eaf1ff;

  /* 中性色 */
  --bg:          #f3f6fc;
  --card:        #ffffff;
  --border:      #e5e7eb;
  --border-soft: #f0f1f3;
  --text:        #111827;
  --text-2:      #6b7280;
  --text-3:      #9ca3af;

  /* 状态色 */
  --green:  #16a34a;
  --red:    #dc2626;
  --orange: #d97706;
  --gray:   #6b7280;
  --green-bg:  #e9f9f0;
  --red-bg:    #fef2f2;
  --red-line:  #fecaca;
  --orange-bg: #fdf6ec;
  --orange-line:#f3d9b0;
  --gray-bg:   #f3f4f6;

  /* 圆角 / 阴影 */
  --r-card: 18px;
  --r-ctl:  8px;
  --r-tag:  6px;
  --shadow-hover: 0 6px 20px rgba(43, 108, 255, .10);

  /* 字体 */
  --font: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 缓动 */
  --ease-out:   cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* 侧栏 */
  --sb-w:   76px;
  --sb-w-open: 228px;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  /* 冷蓝灰底 + 两层淡蓝光晕 + 极淡网格纹理 */
  background-color: var(--bg);
  background-image:
    radial-gradient(640px 460px at 10% -6%, rgba(84, 142, 246, .12), rgba(84, 142, 246, 0) 62%),
    radial-gradient(760px 540px at 94% 106%, rgba(103, 163, 255, .12), rgba(103, 163, 255, 0) 64%),
    linear-gradient(rgba(59, 110, 220, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 110, 220, .035) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px, 26px 26px;
  background-attachment: fixed;
  /* 全站数字等宽，金额/统计不错位 */
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--blue-light); }

/* 细滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d4d9e0; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c0c7d1; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. 图标（内联 SVG，stroke 1.5 统一风格） ---------- */
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .18s var(--ease-out);
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* ---------- 4. 布局骨架 ---------- */
.layout { display: flex; min-height: 100vh; }

/* ---------- 5. 侧边栏（深蓝渐变 + 双层光晕，收起 76 / 展开 228） ---------- */
.sidebar {
  position: sticky; top: 0;
  width: var(--sb-w); height: 100vh; flex: none;
  display: flex; flex-direction: column;
  padding: 14px 10px;
  background:
    radial-gradient(circle at 20% 6%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at 78% 94%, rgba(103, 163, 255, 0.20), transparent 28%),
    linear-gradient(165deg, #347af4 0%, #2362dd 45%, #184bb8 100%);
  box-shadow: 12px 0 38px rgba(29, 74, 163, 0.16);
  overflow: hidden; white-space: nowrap;
  transition: width .3s var(--ease-out);
  z-index: 20;
}
.sidebar:hover,
.sidebar.pinned { width: var(--sb-w-open); }

/* 侧栏内滚动条适配深蓝底 */
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .34); }

.sidebar__logo {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px; margin-bottom: 14px;
}
/* Logo 为浅色图，垫白色圆角底块 */
.sidebar__mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .96);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(8, 42, 124, .18);
  overflow: hidden;
}
.sidebar__mark img { width: 30px; height: 30px; object-fit: contain; display: block; }
.sidebar__name { font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: #fff; }

/* 折叠态下文字淡出 */
.sidebar .lbl {
  opacity: 0; transform: translateX(-4px);
  transition: opacity .18s ease, transform .24s var(--ease-out);
}
.sidebar:hover .lbl,
.sidebar.pinned .lbl { opacity: 1; transform: translateX(0); }

/* 菜单项 */
.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 43px; padding: 0 14px;
  border-radius: 11px;
  color: rgba(234, 242, 255, 0.86); font-size: 13.5px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.nav-item:hover .icon { transform: scale(1.08); }

/* 激活项：白渐变胶囊 + 蓝字 + 投影 */
.nav-item.is-active {
  background: linear-gradient(135deg, #ffffff, #edf4ff);
  color: #245ed8;
  font-weight: 600;
  box-shadow: 0 9px 22px rgba(8, 42, 124, 0.24);
}

/* 导航数字角标：展开时在文字右侧，收起时吸附到图标右上角 */
.nav-badge {
  margin-left: auto; flex: none;
  min-width: 17px; height: 17px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f43f5e; color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(8, 42, 124, .28);
}
.sidebar:not(:hover):not(.pinned) .nav-badge {
  position: absolute; top: 5px; left: 31px;
  margin-left: 0;
  min-width: 15px; height: 15px; padding: 0 4px;
  font-size: 9.5px;
}

/* 钉住按钮 */
.pin-btn {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.11);
  cursor: pointer;
  border-radius: 11px;
  color: rgba(234, 242, 255, 0.86); font-size: 13.5px;
  transition: background .15s ease, color .15s ease;
}
.pin-btn:hover { background: rgba(255, 255, 255, 0.17); color: #fff; }
.pin-btn .icon { transition: transform .24s var(--ease-spring); }
.sidebar.pinned .pin-btn .icon { transform: rotate(45deg); }

/* ---------- 6. 主区域 & 顶栏 ---------- */
.main {
  flex: 1; min-width: 0;
  padding: 20px 28px 40px;
}
.main__inner { max-width: 1400px; margin: 0 auto; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.topbar__title { font-size: 18px; font-weight: 600; }
.topbar__sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 7. 卡片 ---------- */
.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(222, 231, 244, 0.84);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: 0 8px 26px rgba(34, 60, 105, 0.045);
}
.card + .card,
.stat-grid + .card { margin-top: 16px; }

/* 二级块（卡片内部条目：参数项、生成结果行等） */
.sub-block {
  background: #fafcff;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s var(--ease-out);
}
.sub-block:hover {
  border-color: #c9d8ef;
  box-shadow: 0 8px 18px rgba(34, 60, 105, 0.06);
  transform: translateY(-2px);
}

.card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.card__title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card__title .icon { color: var(--text-3); }
.card__desc { font-size: 12px; color: var(--text-3); }

/* ---------- 8. 统计卡 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(222, 231, 244, 0.84);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: 0 8px 26px rgba(34, 60, 105, 0.045);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-card__label {
  font-size: 12px; color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
}
.stat-card__num {
  margin-top: 6px;
  font-size: 28px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-card__num--green  { color: var(--green); }
.stat-card__num--red    { color: var(--red); }
.stat-card__num--blue   { color: var(--blue); }
.stat-card__num--orange { color: var(--orange); }
.stat-card__foot { margin-top: 4px; font-size: 12px; color: var(--text-3); }

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-ctl);
  background: none; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--text);
  white-space: nowrap; user-select: none;
  transition: all .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); box-shadow: var(--shadow-hover); }

.btn--secondary { background: var(--card); border-color: var(--border); color: var(--text); }
.btn--secondary:hover { border-color: #cfd4dc; background: var(--bg); }

.btn--warn { background: var(--card); border-color: var(--orange-line); color: var(--orange); }
.btn--warn:hover { background: var(--orange-bg); }

.btn--danger { background: var(--card); border-color: var(--red-line); color: var(--red); }
.btn--danger:hover { background: var(--red-bg); }

.btn--warn-solid  { background: var(--orange); color: #fff; }
.btn--warn-solid:hover { background: #c56a05; }
.btn--danger-solid { background: var(--red); color: #fff; }
.btn--danger-solid:hover { background: #b91c1c; }

.btn--ghost { color: var(--text-2); }
.btn--ghost:hover { background: var(--bg); color: var(--text); }

.btn--sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn--block { width: 100%; height: 40px; font-size: 14px; }

/* 加载态按钮（提交中） */
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before {
  content: "";
  width: 14px; height: 14px; flex: none;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 10. 表单 ---------- */
.field { position: relative; margin-bottom: 14px; }
.field > .icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}
.field > .input { padding-left: 38px; }

.label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  background: var(--card); color: var(--text);
  font-family: inherit; font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input, .select { height: 38px; padding: 0 12px; }
.textarea { padding: 8px 12px; min-height: 84px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.input--sm { height: 30px; font-size: 13px; }

/* 自定义勾选框 */
.check {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin: 0; flex: none;
  border: 1.5px solid #d1d5db; border-radius: 4px;
  background: var(--card); cursor: pointer;
  position: relative; vertical-align: middle;
  transition: background .15s ease, border-color .15s ease;
}
.check:hover { border-color: var(--blue); }
.check:checked { background: var(--blue); border-color: var(--blue); }
.check:checked::after {
  content: "";
  position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check:indeterminate { background: var(--blue); border-color: var(--blue); }
.check:indeterminate::after {
  content: "";
  position: absolute; left: 3px; top: 6px;
  width: 8px; height: 2px; background: #fff; border-radius: 1px;
}

/* 开关 toggle（滑块 spring 过渡） */
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__track {
  width: 36px; height: 20px; flex: none;
  background: #d1d5db; border-radius: 999px;
  padding: 2px;
  transition: background .2s ease;
}
.toggle__thumb {
  display: block; width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease-spring);
}
.toggle input:checked + .toggle__track { background: var(--blue); }
.toggle input:checked + .toggle__track .toggle__thumb { transform: translateX(16px); }
.toggle__label { font-size: 13px; color: var(--text-2); }

/* ---------- 11. 标签 / 状态点 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border-radius: var(--r-tag);
  font-size: 12px; font-weight: 500; line-height: 18px;
  white-space: nowrap;
}
.tag--green  { background: var(--green-bg);  color: var(--green); }
.tag--red    { background: var(--red-bg);    color: var(--red); }
.tag--orange { background: var(--orange-bg); color: var(--orange); }
.tag--blue   { background: var(--blue-light);color: var(--blue-hover); }
.tag--gray   { background: var(--gray-bg);   color: var(--gray); }

.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; display: inline-block; }
.dot--on  { background: var(--green); animation: pulse 1.8s ease-in-out infinite; }
.dot--off { background: #cbd5e1; }
.dot--warn { background: var(--orange); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 12. 表格 ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  padding: 8px 12px;
  color: var(--text-2); font-size: 12px; font-weight: 500;
  text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: #f9fafb; }
.table tbody tr.is-checked { background: var(--blue-light); }
.table tbody tr.is-checked:hover { background: #e0ebff; }
.table tbody tr:last-child td { border-bottom: none; }

/* 固定高度可滚动表格（长列表用） */
.tbl-scroll { max-height: 420px; overflow-y: auto; }
.tbl-scroll thead th { position: sticky; top: 0; background: var(--card); z-index: 2; }

/* 批量操作条 */
.table-bar {
  display: none;
  align-items: center; gap: 10px;
  margin-bottom: 10px; padding: 8px 12px;
  background: var(--blue-light); border-radius: var(--r-ctl);
  font-size: 12px; color: var(--blue-hover);
  animation: enter .3s var(--ease-out) both;
}
.table-bar.show { display: flex; }

/* ---------- 13. 分页 ---------- */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 14px; }
.pagination__info { margin-right: auto; font-size: 12px; color: var(--text-3); }
.page-btn {
  min-width: 28px; height: 28px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-tag);
  background: var(--card); color: var(--text-2);
  font-size: 12px; cursor: pointer;
  transition: all .15s ease;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 14. Tabs（下划线滑动） ---------- */
.tabs {
  position: relative;
  display: inline-flex; gap: 2px;
  border-bottom: 1px solid var(--border);
}
.tab {
  height: 32px; padding: 0 12px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--text-2);
  transition: color .15s ease;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--blue); font-weight: 600; }
.tabs__ink {
  position: absolute; bottom: -1px; left: 0;
  width: 1px; height: 2px;
  background: var(--blue); border-radius: 2px;
  transform-origin: left center;
  transition: transform .2s var(--ease-out);
  will-change: transform;
}

/* ---------- 15. 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__mask {
  position: absolute; inset: 0;
  background: rgba(17, 24, 39, .45);
}
.modal__panel {
  position: relative;
  width: 420px; max-width: 100%;
  background: var(--card); border-radius: var(--r-card);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(17, 24, 39, .18);
  transform: scale(.96); opacity: 0;
  transition: transform .24s var(--ease-out), opacity .24s ease;
}
.modal.is-open .modal__panel { transform: scale(1); opacity: 1; }
.modal__title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.modal__desc { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.modal__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 20px;
}

/* ---------- 16. Toast ---------- */
.toast-wrap {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 8px;
  min-width: 220px; max-width: 340px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  box-shadow: 0 8px 28px rgba(17, 24, 39, .12);
  font-size: 13px;
  animation: toast-in .3s var(--ease-out) both;
  pointer-events: auto;
}
.toast.is-out { animation: toast-out .25s ease both; }
.toast .icon { flex: none; }
.toast--success .icon { color: var(--green); }
.toast--error   .icon { color: var(--red); }
.toast--info    .icon { color: var(--blue); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateY(8px); }
}

/* ---------- 17. 进度条（细） ---------- */
.progress {
  height: 4px; border-radius: 999px;
  background: #eef0f3; overflow: hidden;
}
.progress__fill {
  height: 100%; width: 0;
  border-radius: 999px;
  background: var(--blue);
  transition: width .9s var(--ease-out);
}
.progress__fill--warn   { background: var(--orange); }
.progress__fill--danger { background: var(--red); }
.progress__fill--green  { background: var(--green); }

/* ---------- 18. 骨架屏 / 空状态 ---------- */
.skeleton {
  position: relative; overflow: hidden;
  background: #eef0f3; border-radius: var(--r-tag);
}
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton--line { height: 12px; margin: 8px 0; }
.skeleton--block { height: 100%; width: 100%; }

.empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 48px 20px;
  text-align: center; color: var(--text-3);
}
.empty__art { color: #d4d9e0; margin-bottom: 8px; }
.empty__title { font-size: 14px; font-weight: 600; color: var(--text-2); }
.empty__desc { font-size: 12px; }

/* ---------- 19. 图表（内联 SVG 折线图） ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.chart__legend {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 16px; margin-top: 10px;
  font-size: 12px; color: var(--text-2);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-line { width: 16px; height: 2px; border-radius: 2px; display: inline-block; }
.legend-line--dash {
  height: 0; border-top: 2px dashed var(--orange); border-radius: 0;
}
.chart__tip {
  position: absolute; z-index: 5;
  padding: 8px 10px;
  background: rgba(17, 24, 39, .92);
  border-radius: var(--r-tag);
  color: #e5e7eb; font-size: 11px; line-height: 1.7;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  font-variant-numeric: tabular-nums;
}
.chart__tip.show { opacity: 1; transform: translateY(0); }
.chart__tip .t-green { color: #4ade80; }
.chart__tip .t-blue  { color: #93c5fd; }
.chart__tip .t-orange{ color: #fbbf24; }

/* ---------- 20. 登录页 ---------- */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: 400px; max-width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(222, 231, 244, 0.84);
  border-radius: var(--r-card);
  padding: 36px 32px 28px;
  box-shadow: 0 18px 48px rgba(34, 60, 105, .10);
}
/* 品牌 Logo 为浅色图，垫白色圆角底块 */
.login-card__mark {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid rgba(222, 231, 244, .9);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(34, 60, 105, .08);
  margin-bottom: 18px;
  overflow: hidden;
}
.login-card__mark img { width: 40px; height: 40px; object-fit: contain; display: block; }
.login-card__title { font-size: 20px; font-weight: 700; }
.login-card__sub {
  font-size: 11px; letter-spacing: .14em;
  color: var(--text-3); text-transform: uppercase;
  margin: 4px 0 24px;
}
.login-alert {
  display: none;
  align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 10px 12px;
  background: var(--red-bg);
  border: 1px solid var(--red-line);
  border-radius: var(--r-ctl);
  color: var(--red); font-size: 13px;
}
.login-alert.show { display: flex; animation: shake .4s ease; }
.login-tip { margin-top: 16px; text-align: center; font-size: 12px; color: var(--text-3); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ---------- 21. 服务器状态网格 ---------- */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.sv-item {
  padding: 16px;
  background: #fafcff;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s var(--ease-out);
}
.sv-item:hover {
  border-color: #c9d8ef;
  box-shadow: 0 8px 18px rgba(34, 60, 105, 0.06);
  transform: translateY(-2px);
}
.sv-item__label { font-size: 12px; color: var(--text-2); }
.sv-item__value {
  margin-top: 4px;
  font-size: 20px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.sv-item__sub { margin-top: 2px; font-size: 12px; color: var(--text-3); }
.sv-item .progress { margin-top: 12px; }

/* 网络统计块 */
.net-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.net-stat {
  padding: 14px 16px;
  background: #fafcff;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s var(--ease-out);
}
.net-stat:hover {
  border-color: #c9d8ef;
  box-shadow: 0 8px 18px rgba(34, 60, 105, 0.06);
  transform: translateY(-2px);
}
.net-stat__label { font-size: 12px; color: var(--text-2); }
.net-stat__num {
  margin-top: 4px; font-size: 22px; font-weight: 700;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.net-stat__num--green  { color: var(--green); }
.net-stat__num--blue   { color: var(--blue); }
.net-stat__num--orange { color: var(--orange); }
.net-stat__peak { margin-top: 2px; font-size: 12px; color: var(--text-3); }

/* ---------- 22. 工具类 ---------- */
.flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.text-dim { color: var(--text-2); }
.text-weak { color: var(--text-3); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: Consolas, "JetBrains Mono", monospace; font-size: 12.5px; }
.mt-16 { margin-top: 16px; }
[hidden] { display: none !important; }

/* ---------- 23. 入场动画（卡片交错：translateY(12px)+fade，60ms 递增） ---------- */
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-in {
  animation: enter .5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

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

/* ---------- 25. 响应式 ---------- */
@media (max-width: 720px) {
  .main { padding: 16px 16px 32px; }
  .login-card { padding: 28px 22px 22px; }
}
