/* ==========================================================================
   哪吒服务器监控 · 样式
   主题：深色科技风
   背景：完整移植首页 https://www.mitao666.top/ 的 #pk-hero 配方
         （双色 radial-gradient 底 + 44px 青色网格 + 三个模糊光晕球）
   所有组件自包含，避免被主题样式污染
   ========================================================================== */

/* --------------------------------------------------------------------------
   页面外壳与背景层（对齐首页 pk-hero）
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   主题变量（配色主题通过 .nzm-theme-* 覆盖这些变量来整体换肤）
   -------------------------------------------------------------------------- */
.nzm-page {
  /* 页面层 */
  --nzm-page-bg: #070b14;
  --nzm-page-text: #dbe4f5;
  --nzm-glow-1: rgba(64, 28, 84, .55);
  --nzm-glow-2: rgba(14, 52, 84, .55);
  --nzm-grid-line: rgba(77, 227, 255, .07);
  --nzm-orb-a: #ff6ec7;
  --nzm-orb-b: #4de3ff;
  --nzm-orb-c: #ffb4a2;
  --nzm-orb-opacity: .5;
  --nzm-orb-blur: 72px;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);

  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1100px 560px at 72% -8%, var(--nzm-glow-1) 0%, transparent 60%),
    radial-gradient(900px 520px at 8% 108%, var(--nzm-glow-2) 0%, transparent 55%),
    var(--nzm-page-bg);
  color: var(--nzm-page-text);
  /* 上下留白撑满内容区，避免出现浅色主题底色断层 */
  padding: 40px 20px 56px;
  min-height: 100vh;
  /* 注意：这里不能用 overflow:hidden —— 会让 .nzm-modal（position:fixed）
     的定位基准从视口变成此容器，导致弹窗错位。光晕溢出一律交给 .nzm-bg 裁切。 */
}

/* 短代码所在页面：把主题的底色一并染色，避免上下出现断层 */
body.nzm-page-active,
body.nzm-page-active .site-content,
body.nzm-page-active #content,
body.nzm-page-active main {
  background: #070b14 !important;
}
body.nzm-page-active.nzm-theme-light,
body.nzm-page-active.nzm-theme-light .site-content,
body.nzm-page-active.nzm-theme-light #content,
body.nzm-page-active.nzm-theme-light main {
  background: #eef1f7 !important;
}
body.nzm-page-active.nzm-theme-slate,
body.nzm-page-active.nzm-theme-slate .site-content,
body.nzm-page-active.nzm-theme-slate #content,
body.nzm-page-active.nzm-theme-slate main {
  background: #10141c !important;
}
/* 深色系新主题 */
body.nzm-page-active.nzm-theme-midnight,
body.nzm-page-active.nzm-theme-midnight .site-content,
body.nzm-page-active.nzm-theme-midnight #content,
body.nzm-page-active.nzm-theme-midnight main {
  background: #060b1a !important;
}
body.nzm-page-active.nzm-theme-forest,
body.nzm-page-active.nzm-theme-forest .site-content,
body.nzm-page-active.nzm-theme-forest #content,
body.nzm-page-active.nzm-theme-forest main {
  background: #05100c !important;
}
body.nzm-page-active.nzm-theme-sunset,
body.nzm-page-active.nzm-theme-sunset .site-content,
body.nzm-page-active.nzm-theme-sunset #content,
body.nzm-page-active.nzm-theme-sunset main {
  background: #100520 !important;
}
/* 浅色系新主题 */
body.nzm-page-active.nzm-theme-paper,
body.nzm-page-active.nzm-theme-paper .site-content,
body.nzm-page-active.nzm-theme-paper #content,
body.nzm-page-active.nzm-theme-paper main {
  background: #f4f1ea !important;
}
body.nzm-page-active.nzm-theme-rose,
body.nzm-page-active.nzm-theme-rose .site-content,
body.nzm-page-active.nzm-theme-rose #content,
body.nzm-page-active.nzm-theme-rose main {
  background: #fdf2f6 !important;
}

.nzm-page *,
.nzm-page *::before,
.nzm-page *::after { box-sizing: border-box; }

/* 背景承载层：网格 + 光晕球（裁切在内部完成，不影响弹窗） */
.nzm-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

/* 44px 青色网格，用椭圆遮罩让中间清晰、边缘淡出 */
.nzm-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--nzm-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--nzm-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  /* 监控页内容比首页 hero 高得多，遮罩范围放宽，避免网格被压没 */
  -webkit-mask-image: var(--nzm-grid-mask);
          mask-image: var(--nzm-grid-mask);
}

/* 三个漂浮光晕球（跟随视口，保证滚动时始终有光晕） */
.nzm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--nzm-orb-blur));
  opacity: var(--nzm-orb-opacity);
  animation: nzm-float 9s ease-in-out infinite;
}
.nzm-orb-1 { width: 380px; height: 380px; background: var(--nzm-orb-a); top: -90px; right: 6%; }
.nzm-orb-2 { width: 300px; height: 300px; background: var(--nzm-orb-b); top: 46vh;  left: 4%;  animation-delay: -3s; }
.nzm-orb-3 { width: 220px; height: 220px; background: var(--nzm-orb-c); top: 26vh;  left: 58%; opacity: calc(var(--nzm-orb-opacity) * .64); animation-delay: -6s; }

@keyframes nzm-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-28px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .nzm-orb { animation: none; }
}

.nzm {
  /* 底色 —— 页面已有深色光晕背景，卡片改用「实底 + 半透明白叠加」
     并配合 backdrop-filter 毛玻璃，避免被底层光晕吃掉对比度 */
  --nzm-bg: rgba(13, 20, 36, .62);
  --nzm-bg-soft: rgba(13, 20, 36, .42);
  --nzm-bg-sunken: rgba(255, 255, 255, .07);
  --nzm-bg-solid: #1a1622;
  --nzm-border: rgba(255, 255, 255, .09);
  --nzm-border-strong: rgba(255, 255, 255, .17);

  /* 文字（深色底上用浅色字） */
  --nzm-text: #f2f0f7;
  --nzm-text-2: #bab4c8;
  --nzm-text-3: #837c93;

  /* 主题色：粉紫 */
  --nzm-primary: #ff6b9d;
  --nzm-primary-2: #a855f7;
  --nzm-primary-soft: rgba(255, 107, 157, .14);
  --nzm-grad: linear-gradient(135deg, #ff6b9d 0%, #c026d3 55%, #a855f7 100%);

  /* 状态色 */
  --nzm-green: #34d399;
  --nzm-green-soft: rgba(52, 211, 153, .14);
  --nzm-red: #fb7185;
  --nzm-red-soft: rgba(251, 113, 133, .14);
  --nzm-orange: #fbbf24;
  --nzm-orange-soft: rgba(251, 191, 36, .14);
  --nzm-cyan: #22d3ee;

  --nzm-radius: 14px;
  --nzm-radius-sm: 9px;
  --nzm-shadow: 0 2px 8px rgba(0, 0, 0, .28);
  --nzm-shadow-hover: 0 8px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 107, 157, .22);
  --nzm-glow: 0 0 20px rgba(255, 107, 157, .28);

  /* 卡片毛玻璃强度（明亮主题下关掉，避免糊成一片） */
  --nzm-card-blur: blur(12px) saturate(1.15);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--nzm-text);
  line-height: 1.6;
  font-size: 14px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.nzm *, .nzm *::before, .nzm *::after { box-sizing: border-box; }

/* --------------------------------------------------------------------------
   头部
   -------------------------------------------------------------------------- */
.nzm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.nzm-head-left { min-width: 0; }

.nzm-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--nzm-text);
}

.nzm-sub {
  display: block;
  font-size: 13px;
  color: var(--nzm-text-3);
  margin-top: 2px;
}

.nzm-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nzm-updated {
  font-size: 12px;
  color: var(--nzm-text-3);
  margin-right: 2px;
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.nzm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--nzm-radius-sm);
  background: var(--nzm-bg-soft);
  color: var(--nzm-text-2);
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}

.nzm-btn:hover { background: var(--nzm-bg-sunken); color: var(--nzm-text); }
.nzm-btn:active { transform: translateY(1px); }
.nzm-btn:disabled { opacity: .55; cursor: not-allowed; }

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

.nzm-btn-primary {
  background: var(--nzm-grad);
  color: #fff;
  border: none;
  box-shadow: 0 3px 14px rgba(255, 107, 157, .3);
}
.nzm-btn-primary:hover {
  background: linear-gradient(135deg, #ff85b0 0%, #d136e0 55%, #b975f9 100%);
  color: #fff;
  box-shadow: 0 5px 20px rgba(255, 107, 157, .42);
}

.nzm-btn-danger {
  background: var(--nzm-bg);
  border-color: rgba(251, 113, 133, .35);
  color: var(--nzm-red);
}
.nzm-btn-danger:hover { background: var(--nzm-red-soft); }

.nzm-btn-lg { padding: 10px 22px; font-size: 14px; }

.nzm-btn .nzm-ico-refresh,
.nzm-btn .nzm-ico-gear,
.nzm-btn .nzm-ico-sliders { font-size: 13px; }
.nzm-ico-refresh::before { content: "⟳"; }
.nzm-ico-gear::before { content: "⚙"; }
.nzm-ico-sliders::before { content: "☰"; }

/* 刷新中的静态反馈（不使用旋转动画） */
.nzm-btn.is-loading .nzm-ico-refresh { display: inline-block; opacity: .45; }

/* --------------------------------------------------------------------------
   提示条
   -------------------------------------------------------------------------- */
.nzm-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--nzm-radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.nzm-alert[data-type="error"] { background: var(--nzm-red-soft); color: #fda4af; border-color: rgba(251,113,133,.32); }
.nzm-alert[data-type="warn"]  { background: var(--nzm-orange-soft); color: #fcd34d; border-color: rgba(251,191,36,.32); }
.nzm-alert[data-type="ok"]    { background: var(--nzm-green-soft); color: #6ee7b7; border-color: rgba(52,211,153,.32); }
.nzm-alert[data-type="info"]  { background: var(--nzm-primary-soft); color: #ffa8c8; border-color: rgba(255,107,157,.32); }

/* --------------------------------------------------------------------------
   空状态
   -------------------------------------------------------------------------- */
.nzm-empty {
  text-align: center;
  padding: 52px 24px;
  background: var(--nzm-bg-soft);
  border: 1px dashed var(--nzm-border-strong);
  border-radius: var(--nzm-radius);
}
.nzm-empty-ico { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.nzm-empty h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.nzm-empty p { margin: 0 0 16px; color: var(--nzm-text-2); font-size: 13px; }
.nzm-tip { margin-top: 14px !important; font-size: 12px !important; color: var(--nzm-text-3) !important; }
.nzm-tip a { color: var(--nzm-primary); text-decoration: none; }
.nzm-tip a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   概览统计
   -------------------------------------------------------------------------- */
.nzm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.nzm-stat {
  position: relative;
  overflow: hidden;
  background: var(--nzm-bg);
  -webkit-backdrop-filter: var(--nzm-card-blur);
          backdrop-filter: var(--nzm-card-blur);
  border: 1px solid var(--nzm-border);
  border-radius: var(--nzm-radius);
  padding: 14px 16px;
  box-shadow: var(--nzm-shadow);
  color: var(--nzm-text);
  transition: border-color .18s, box-shadow .18s, background .18s, transform .18s;
}
.nzm-stat:hover {
  border-color: var(--nzm-border-strong);
  box-shadow: var(--nzm-shadow-hover);
  transform: translateY(-2px);
}
/* 单调色号标记：让「总数 / 在线 / 离线 / 流量」四张卡一眼区分开，
   同时跟随主题的强调色与语义色，不写死颜色 */
.nzm-stat::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--nzm-stat-accent, var(--nzm-primary));
  opacity: .85;
}
.nzm-stat:nth-child(2) { --nzm-stat-accent: var(--nzm-green); }
.nzm-stat:nth-child(3) { --nzm-stat-accent: var(--nzm-red); }
.nzm-stat:nth-child(4) { --nzm-stat-accent: var(--nzm-cyan); }

/* 统计卡的数值：与 .nzm-stat-value 用主题字色，避免浅色主题出现白底白字 */
.nzm-stat-label {
  font-size: 12px;
  color: var(--nzm-text-3);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nzm-stat-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1.2;
  color: var(--nzm-text);
  font-variant-numeric: tabular-nums;
}
.nzm-stat-value small { font-size: 13px; font-weight: 400; color: var(--nzm-text-3); margin-left: 3px; }
.nzm-stat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.nzm-stat-dot.is-online { background: var(--nzm-green); box-shadow: 0 0 0 3px var(--nzm-green-soft); }
.nzm-stat-dot.is-offline { background: var(--nzm-red); box-shadow: 0 0 0 3px var(--nzm-red-soft); }

/* ---- 统计卡随卡片样式变化 ----------------------------------------------
   统计卡与服务器卡片共用一套样式语言：选了哪种卡片样式，
   顶部的概览统计也跟着变成对应的形态，视觉上才是一套东西。
   ---------------------------------------------------------------------- */

/* compact：四张卡压成一行紧凑条，去掉左侧色条只留小圆点 */
.nzm-grid[data-style="compact"] ~ .nzm-stats,
.nzm-stats[data-style="compact"] {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.nzm-stats[data-style="compact"] .nzm-stat { padding: 10px 12px; }
.nzm-stats[data-style="compact"] .nzm-stat::after { width: 2px; }
.nzm-stats[data-style="compact"] .nzm-stat-value { font-size: 19px; }

/* minimal：极简，去边框去阴影，只靠底色块区分 */
.nzm-stats[data-style="minimal"] .nzm-stat {
  border-color: transparent;
  box-shadow: none;
  background: var(--nzm-bg-sunken);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.nzm-stats[data-style="minimal"] .nzm-stat::after { display: none; }
.nzm-stats[data-style="minimal"] .nzm-stat:hover {
  border-color: var(--nzm-border);
  box-shadow: none;
  transform: none;
}
.nzm-stats[data-style="minimal"] .nzm-stat-value { font-size: 21px; }

/* gradient：顶部渐变条，与 gradient 卡片头部呼应 */
.nzm-stats[data-style="gradient"] .nzm-stat {
  padding-top: 17px;
  border-color: var(--nzm-border);
}
.nzm-stats[data-style="gradient"] .nzm-stat::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--nzm-grad);
}
.nzm-stats[data-style="gradient"] .nzm-stat::after { display: none; }
.nzm-stats[data-style="gradient"] .nzm-stat:nth-child(2)::before {
  background: linear-gradient(90deg, var(--nzm-green), var(--nzm-cyan));
}
.nzm-stats[data-style="gradient"] .nzm-stat:nth-child(3)::before {
  background: linear-gradient(90deg, var(--nzm-red), var(--nzm-orange));
}
.nzm-stats[data-style="gradient"] .nzm-stat:nth-child(4)::before {
  background: linear-gradient(90deg, var(--nzm-cyan), var(--nzm-primary-2));
}

/* neon：渐变描边 + 外发光，和 neon 卡片同一套语言 */
.nzm-stats[data-style="neon"] .nzm-stat {
  background:
    linear-gradient(var(--nzm-bg-solid), var(--nzm-bg-solid)) padding-box,
    var(--nzm-grad) border-box;
  border: 1.5px solid transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow: var(--nzm-shadow), var(--nzm-glow);
}
.nzm-stats[data-style="neon"] .nzm-stat::after { display: none; }
.nzm-stats[data-style="neon"] .nzm-stat:hover {
  box-shadow: var(--nzm-shadow-hover), var(--nzm-glow);
}
.nzm-stats[data-style="neon"] .nzm-stat-value {
  text-shadow: 0 0 14px var(--nzm-primary-soft);
}

/* outlined：只留描边，不填充，适合极简站点 */
.nzm-stats[data-style="outlined"] .nzm-stat {
  background: transparent;
  border: 1.5px solid var(--nzm-border-strong);
  box-shadow: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.nzm-stats[data-style="outlined"] .nzm-stat:hover {
  background: var(--nzm-bg-sunken);
  border-color: var(--nzm-primary);
  box-shadow: none;
}

/* banner：横向通铺一条，数值放大，适合只看几个总览数字 */
.nzm-stats[data-style="banner"] {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--nzm-border);
  border-radius: var(--nzm-radius);
  overflow: hidden;
  background: var(--nzm-bg);
  -webkit-backdrop-filter: var(--nzm-card-blur);
          backdrop-filter: var(--nzm-card-blur);
}
.nzm-stats[data-style="banner"] .nzm-stat {
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--nzm-border);
  box-shadow: none;
  background: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  padding: 16px 18px;
}
.nzm-stats[data-style="banner"] .nzm-stat:last-child { border-right: none; }
.nzm-stats[data-style="banner"] .nzm-stat::after { display: none; }
.nzm-stats[data-style="banner"] .nzm-stat:hover {
  background: var(--nzm-bg-sunken);
  transform: none;
  box-shadow: none;
  border-color: var(--nzm-border);
}
.nzm-stats[data-style="banner"] .nzm-stat-value { font-size: 26px; }

/* 窄屏：banner 换行后右侧分隔线会显得奇怪，改为只留底边 */
@media (max-width: 720px) {
  .nzm-stats[data-style="banner"] { grid-template-columns: repeat(2, 1fr); }
  .nzm-stats[data-style="banner"] .nzm-stat:nth-child(2n) { border-right: none; }
  .nzm-stats[data-style="banner"] .nzm-stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--nzm-border);
  }
}
@media (max-width: 480px) {
  .nzm-stats[data-style="banner"] { grid-template-columns: 1fr; }
  .nzm-stats[data-style="banner"] .nzm-stat {
    border-right: none;
    border-bottom: 1px solid var(--nzm-border);
  }
  .nzm-stats[data-style="banner"] .nzm-stat:last-child { border-bottom: none; }
}

/* --------------------------------------------------------------------------
   工具条
   -------------------------------------------------------------------------- */
.nzm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.nzm-toolbar-left, .nzm-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.nzm-chip {
  padding: 5px 13px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--nzm-border);
  background: var(--nzm-bg);
  color: var(--nzm-text-2);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.nzm-chip:hover { border-color: var(--nzm-border-strong); }
.nzm-chip.is-active {
  background: var(--nzm-primary-soft);
  border-color: rgba(255, 107, 157, .42);
  color: #ff9dc0;
  font-weight: 500;
}

.nzm-select {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--nzm-border);
  border-radius: var(--nzm-radius-sm);
  background: var(--nzm-bg);
  color: var(--nzm-text-2);
  cursor: pointer;
  font-family: inherit;
  outline: none;
}
.nzm-select:focus { border-color: var(--nzm-primary); }

/* --------------------------------------------------------------------------
   网格容器
   -------------------------------------------------------------------------- */
.nzm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  align-items: start;
}

.nzm-grid[data-style="compact"] { grid-template-columns: 1fr; gap: 8px; }
.nzm-grid[data-style="minimal"] { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
/* neon 是横向宽卡（头部 + 三环 + 信息区并排），必须整行铺开 */
.nzm-grid[data-style="neon"] { grid-template-columns: 1fr; gap: 12px; }

/* --------------------------------------------------------------------------
   骨架屏
   -------------------------------------------------------------------------- */
.nzm-skeleton {
  height: 190px;
  border-radius: var(--nzm-radius);
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 25%,
    rgba(255,255,255,.09) 37%,
    rgba(255,255,255,.04) 63%);
  background-size: 400% 100%;
  animation: nzm-shimmer 1.4s ease infinite;
}
@keyframes nzm-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* --------------------------------------------------------------------------
   服务器卡片 · 标准样式
   -------------------------------------------------------------------------- */
.nzm-card {
  background: var(--nzm-bg);
  -webkit-backdrop-filter: var(--nzm-card-blur);
          backdrop-filter: var(--nzm-card-blur);
  border: 1px solid var(--nzm-border);
  border-radius: var(--nzm-radius);
  padding: 16px;
  box-shadow: var(--nzm-shadow);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.nzm-card:hover {
  box-shadow: var(--nzm-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--nzm-border-strong);
}
.nzm-card.is-offline { opacity: .72; }
.nzm-card.is-offline:hover { opacity: 1; }

/* 卡片头部 */
.nzm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.nzm-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}
.nzm-flag { font-size: 17px; line-height: 1; flex-shrink: 0; }
.nzm-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--nzm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nzm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  flex-shrink: 0;
}
.nzm-badge.is-online { background: var(--nzm-green-soft); color: #0a7a1e; }
.nzm-badge.is-offline { background: var(--nzm-red-soft); color: #a8071a; }

/* 卡片操作按钮组 */
.nzm-card-acts {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .18s ease;
  flex-shrink: 0;
}
.nzm-card:hover .nzm-card-acts { opacity: 1; }

.nzm-icon-btn {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--nzm-border);
  background: var(--nzm-bg);
  color: var(--nzm-text-2);
  cursor: pointer;
  font-size: 13px;
  transition: all .15s ease;
  padding: 0;
  font-family: inherit;
  line-height: 1;
}
.nzm-icon-btn:hover {
  background: var(--nzm-primary-soft);
  border-color: rgba(255, 107, 157, .42);
  color: #ff9dc0;
}

/* 数据行 */
.nzm-rows { display: flex; flex-direction: column; gap: 9px; }

.nzm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.nzm-row-label { color: var(--nzm-text-2); white-space: nowrap; }
.nzm-row-value {
  color: var(--nzm-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* 带进度条的行 */
.nzm-meter { margin-top: -2px; }
.nzm-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 5px;
}
.nzm-meter-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.nzm-meter-val.is-hot { color: var(--nzm-red); }
.nzm-meter-val.is-warm { color: var(--nzm-orange); }

.nzm-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--nzm-bg-sunken);
  overflow: hidden;
}
.nzm-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--nzm-green);
  transition: width .5s cubic-bezier(.4, 0, .2, 1), background-color .3s ease;
  min-width: 2px;
}
.nzm-bar-fill.is-warm { background: var(--nzm-orange); }
.nzm-bar-fill.is-hot { background: var(--nzm-red); }
.nzm-bar-fill.is-cool { background: #3b82f6; }

.nzm-meter-sub {
  font-size: 11.5px;
  color: var(--nzm-text-3);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

/* 分隔线 */
.nzm-divider {
  height: 1px;
  background: var(--nzm-border);
  margin: 12px 0;
}

/* 备注 */
.nzm-note {
  font-size: 12px;
  color: var(--nzm-text-3);
  background: var(--nzm-bg-soft);
  border-radius: 6px;
  padding: 7px 10px;
  margin-top: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   卡片样式 · 紧凑列表（横向一行）
   -------------------------------------------------------------------------- */
.nzm-grid[data-style="compact"] .nzm-card {
  padding: 11px 14px;
  border-radius: var(--nzm-radius-sm);
}
.nzm-grid[data-style="compact"] .nzm-card:hover { transform: none; }

.nzm-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.nzm-compact-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 160px;
  flex: 1;
}
.nzm-compact-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 2;
}
.nzm-compact-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 74px;
}
.nzm-compact-metric-label {
  font-size: 11px;
  color: var(--nzm-text-3);
}
.nzm-compact-metric-value {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.nzm-compact-metric-value.is-hot { color: var(--nzm-red); }
.nzm-compact-metric-value.is-warm { color: var(--nzm-orange); }

/* --------------------------------------------------------------------------
   卡片样式 · 极简
   -------------------------------------------------------------------------- */
.nzm-grid[data-style="minimal"] .nzm-card { padding: 13px; }
.nzm-grid[data-style="minimal"] .nzm-card-name { font-size: 14px; }
.nzm-minimal-ring {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.nzm-ring {
  width: 46px; height: 46px;
  flex-shrink: 0;
  position: relative;
}
.nzm-ring svg { transform: rotate(-90deg); display: block; }
.nzm-ring-bg { stroke: var(--nzm-bg-sunken); }
.nzm-ring-fg { transition: stroke-dashoffset .6s ease, stroke .3s ease; }
.nzm-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.nzm-minimal-info { min-width: 0; flex: 1; }
.nzm-minimal-name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nzm-minimal-os { font-size: 11.5px; color: var(--nzm-text-3); }

.nzm-minilist { display: flex; flex-direction: column; gap: 6px; }
.nzm-minirow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}
.nzm-minirow span:first-child { color: var(--nzm-text-2); }
.nzm-minirow span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   卡片样式 · 渐变（头部彩色）
   -------------------------------------------------------------------------- */
.nzm-grid[data-style="gradient"] .nzm-card {
  padding: 0;
  overflow: hidden;
  /* 保留细边框，避免深色背景上卡片边界消失 */
  border: 1px solid var(--nzm-border);
  box-shadow: var(--nzm-shadow);
}
.nzm-grad-head {
  padding: 14px 16px;
  /* 与站点主视觉统一：粉紫渐变（原来是亮色主题遗留的蓝色） */
  background: linear-gradient(135deg, #ff6b9d 0%, #c026d3 55%, #a855f7 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nzm-grad-head .nzm-card-name { color: #fff; }
.nzm-grad-head .nzm-badge.is-online { background: rgba(255,255,255,.22); color: #fff; }
.nzm-grad-head .nzm-badge.is-offline { background: rgba(0,0,0,.22); color: #fff; }
.nzm-grad-head .nzm-icon-btn {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.nzm-grad-head .nzm-icon-btn:hover { background: rgba(255,255,255,.3); color: #fff; }
.nzm-grad-os {
  font-size: 11.5px;
  opacity: .9;
  margin-top: 3px;
  display: block;
}
.nzm-grad-body { padding: 14px 16px; }

/* 离线卡片的渐变头部置灰 */
.nzm-card.is-offline .nzm-grad-head {
  background: linear-gradient(135deg, #4a4458 0%, #5f5870 100%);
}

/* --------------------------------------------------------------------------
   卡片样式 · 霓虹（neon）
   参考站点首页风格：深底 + 粉紫渐变描边 + 发光效果，头部大号图标
   -------------------------------------------------------------------------- */
.nzm-grid[data-style="neon"] { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.nzm-grid[data-style="neon"] .nzm-card {
  padding: 0;
  border-radius: 16px;
  /* 渐变描边：padding-box 实底 + border-box 渐变，靠 transparent border 透出 */
  background:
    linear-gradient(#17131f, #17131f) padding-box,
    linear-gradient(135deg, rgba(255,107,157,.55), rgba(168,85,247,.45), rgba(34,211,238,.35)) border-box;
  border: 1.5px solid transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  /* 内外双层光晕，强化霓虹感 */
  box-shadow:
    0 4px 20px rgba(0, 0, 0, .4),
    0 0 0 1px rgba(255, 107, 157, .08),
    0 0 22px rgba(168, 85, 247, .12);
  overflow: hidden;
}
.nzm-grid[data-style="neon"] .nzm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .55), 0 0 26px rgba(255, 107, 157, .26);
}
.nzm-grid[data-style="neon"] .nzm-card.is-offline {
  background:
    linear-gradient(#141118, #141118) padding-box,
    linear-gradient(135deg, rgba(120,113,140,.4), rgba(90,85,105,.3)) border-box;
  opacity: .8;
}
.nzm-grid[data-style="neon"] .nzm-card.is-offline:hover { opacity: 1; }

/* 头部：名称 + 状态 + 大图标 */
.nzm-neon-head {
  position: relative;
  padding: 15px 16px 13px;
  background: linear-gradient(135deg, rgba(255,107,157,.16) 0%, rgba(168,85,247,.10) 55%, rgba(34,211,238,.06) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nzm-card.is-offline .nzm-neon-head {
  background: linear-gradient(135deg, rgba(120,113,140,.14) 0%, rgba(90,85,105,.08) 100%);
}
.nzm-neon-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}
.nzm-neon-flag { font-size: 20px; line-height: 1; flex-shrink: 0; }
.nzm-neon-name {
  font-size: 15.5px;
  font-weight: 600;
  color: #f7f5fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .2px;
}
.nzm-neon-os {
  display: block;
  font-size: 11px;
  color: var(--nzm-text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 三环形指标区 */
.nzm-neon-rings {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 16px 14px 12px;
}
.nzm-neon-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.nzm-neon-ring-item .nzm-ring { width: 54px; height: 54px; }
.nzm-neon-ring-item .nzm-ring svg { width: 54px; height: 54px; }
.nzm-neon-ring-item .nzm-ring-text { font-size: 13px; }
.nzm-neon-ring-label {
  font-size: 11px;
  color: var(--nzm-text-3);
  letter-spacing: .3px;
}

/* 底部信息条 */
.nzm-neon-foot {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nzm-neon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--nzm-text-2);
  gap: 10px;
}
.nzm-neon-row > span:last-child {
  color: #e6e2ee;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nzm-neon-actions {
  display: flex;
  gap: 6px;
  margin-top: 3px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, .08);
}
.nzm-neon-actions .nzm-btn { flex: 1; font-size: 12px; padding: 6px 10px; }
.nzm-grid[data-style="neon"] .nzm-card-acts { opacity: 1; }

/* --------------------------------------------------------------------------
   卡片样式 · 描边（outlined）
   无填充，只有描边 + 大号数值，最克制的一种；适合浅色站点与打印
   -------------------------------------------------------------------------- */
.nzm-grid[data-style="outlined"] { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.nzm-grid[data-style="outlined"] .nzm-card {
  background: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border: 1.5px solid var(--nzm-border-strong);
  box-shadow: none;
  padding: 15px 16px;
}
.nzm-grid[data-style="outlined"] .nzm-card:hover {
  background: var(--nzm-bg-sunken);
  border-color: var(--nzm-primary);
  box-shadow: none;
}
.nzm-grid[data-style="outlined"] .nzm-card.is-offline {
  border-style: dashed;
  opacity: .75;
}
.nzm-out-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--nzm-border);
  min-width: 0;
}
.nzm-out-flag { font-size: 19px; line-height: 1; flex-shrink: 0; }
.nzm-out-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--nzm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.nzm-out-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.nzm-out-cell { text-align: center; min-width: 0; }
.nzm-out-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.6px;
  color: var(--nzm-text);
  font-variant-numeric: tabular-nums;
}
.nzm-out-num small { font-size: 12px; font-weight: 500; color: var(--nzm-text-3); }
.nzm-out-cap {
  font-size: 11px;
  color: var(--nzm-text-3);
  margin-top: 2px;
  letter-spacing: .3px;
}

/* --------------------------------------------------------------------------
   卡片样式 · 横条（banner）
   整行通铺、左侧状态色竖条 + 右侧指标并排，服务器多时最省纵向空间
   -------------------------------------------------------------------------- */
.nzm-grid[data-style="banner"] { grid-template-columns: 1fr; gap: 8px; }

.nzm-grid[data-style="banner"] .nzm-card {
  padding: 0;
  border: 1px solid var(--nzm-border);
  border-left: 3px solid var(--nzm-green);
  border-radius: var(--nzm-radius-sm);
  box-shadow: var(--nzm-shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
}
.nzm-grid[data-style="banner"] .nzm-card.is-offline {
  border-left-color: var(--nzm-red);
  opacity: .8;
}
.nzm-grid[data-style="banner"] .nzm-card:hover {
  transform: translateX(3px);
  border-color: var(--nzm-border-strong);
  border-left-color: var(--nzm-primary);
}
.nzm-grid[data-style="banner"] .nzm-card.is-offline:hover {
  border-left-color: var(--nzm-red);
}
.nzm-ban-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 0 1 240px;
}
.nzm-ban-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
.nzm-ban-meta { min-width: 0; flex: 1; }
.nzm-ban-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--nzm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nzm-ban-os {
  font-size: 11px;
  color: var(--nzm-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.nzm-ban-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.nzm-ban-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 62px;
}
.nzm-ban-metric-cap {
  font-size: 10.5px;
  color: var(--nzm-text-3);
  letter-spacing: .3px;
  white-space: nowrap;
}
.nzm-ban-metric-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--nzm-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nzm-ban-bar {
  width: 54px;
  height: 5px;
  border-radius: 3px;
  background: var(--nzm-bg-sunken);
  overflow: hidden;
}
.nzm-ban-bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--nzm-primary);
}
.nzm-ban-bar > i.is-warm { background: var(--nzm-orange); }
.nzm-ban-bar > i.is-hot  { background: var(--nzm-red); }

@media (max-width: 720px) {
  .nzm-grid[data-style="banner"] .nzm-card { flex-wrap: wrap; gap: 10px; }
  .nzm-ban-left { flex: 1 1 100%; }
  .nzm-ban-metrics { flex: 1 1 100%; justify-content: space-between; gap: 10px; }
}

/* --------------------------------------------------------------------------
   卡片样式 · 仪表（gauge）
   大号圆环做主角，右侧竖排指标；单卡信息密度最高
   -------------------------------------------------------------------------- */
.nzm-grid[data-style="gauge"] { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.nzm-gauge-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  min-width: 0;
}
.nzm-gauge-flag { font-size: 19px; line-height: 1; flex-shrink: 0; }
.nzm-gauge-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--nzm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.nzm-gauge-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nzm-gauge-dial {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.nzm-gauge-dial svg { width: 88px; height: 88px; transform: rotate(-90deg); }
.nzm-gauge-dial .nzm-ring-bg { stroke: var(--nzm-bg-sunken); }
.nzm-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.nzm-gauge-big {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.nzm-gauge-big small { font-size: 11px; font-weight: 500; }
.nzm-gauge-cap {
  font-size: 9.5px;
  color: var(--nzm-text-3);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.nzm-gauge-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nzm-gauge-item { min-width: 0; }
.nzm-gauge-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--nzm-text-3);
  margin-bottom: 3px;
}
.nzm-gauge-item-top > b {
  color: var(--nzm-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.nzm-gauge-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--nzm-bg-sunken);
  overflow: hidden;
}
.nzm-gauge-bar > i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--nzm-primary);
}
.nzm-gauge-bar > i.is-warm { background: var(--nzm-orange); }
.nzm-gauge-bar > i.is-hot  { background: var(--nzm-red); }
.nzm-gauge-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--nzm-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  color: var(--nzm-text-3);
}
.nzm-gauge-foot b {
  color: var(--nzm-text-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.nzm-foot {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--nzm-text-3);
  text-align: center;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   弹窗
   注意：本站主题（子比）对 overlay 类元素有全局样式，会污染 z-index /
   background / transform，导致弹窗透明、无法点击。这里统一用 !important
   强制隔离，确保弹窗始终不透明、可交互、层级最高。
   -------------------------------------------------------------------------- */
.nzm-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2147483000 !important;   /* 高于主题所有浮层 */
  background: transparent !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.nzm-modal[hidden] { display: none !important; }

.nzm-modal-mask {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  background: rgba(0, 0, 0, .58) !important;
  opacity: 1 !important;
  transform: none !important;
  cursor: pointer;
  z-index: 1 !important;
}
@keyframes nzm-fade { from { opacity: 0; } to { opacity: 1; } }

.nzm-modal-box {
  position: relative !important;
  z-index: 2 !important;
  background: #1a1622 !important;
  background-color: #1a1622 !important;
  background-image: linear-gradient(160deg, #221b2e 0%, #17131f 100%) !important;
  opacity: 1 !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 16px !important;
  width: 100% !important;
  max-width: 520px !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 107, 157, .1) !important;
  overflow: hidden !important;
  transform: none !important;
  filter: none !important;
  margin: 0 !important;
  color: #f2f0f7 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
.nzm-modal-wide { max-width: 740px !important; }

/* 弹窗内部元素，防止主题改动字体与颜色 */
.nzm-modal-box * {
  box-sizing: border-box;
}
.nzm-modal-box h3 {
  margin: 0 !important;
  color: #f2f0f7 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
.nzm-modal-box p { margin: 0; }
.nzm-modal-box label { color: #f2f0f7 !important; }
.nzm-modal-box ol, .nzm-modal-box ul { margin: 0 !important; padding-left: 20px !important; }
.nzm-modal-box li { color: #bab4c8 !important; line-height: 1.9 !important; }
.nzm-modal-box b { color: #ff9dc0 !important; font-weight: 600; }

.nzm-modal-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  min-height: auto !important;
  gap: 12px;
}
.nzm-modal-head h3 { margin: 0 !important; font-size: 16px; font-weight: 600; flex: 1; min-width: 0; }
.nzm-modal-x {
  border: none !important;
  background: transparent !important;
  font-size: 26px !important;
  line-height: 1 !important;
  color: #837c93 !important;
  cursor: pointer !important;
  padding: 0 6px !important;
  margin: 0 !important;
  font-family: inherit !important;
  transition: color .15s ease, background .15s ease;
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  pointer-events: auto !important;
  position: relative;
  z-index: 3;
  box-shadow: none !important;
  text-decoration: none !important;
}
.nzm-modal-x:hover {
  color: #ff9dc0 !important;
  background: rgba(255, 107, 157, .14) !important;
}

.nzm-modal-body {
  padding: 18px 20px !important;
  overflow-y: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: transparent !important;
  color: #f2f0f7 !important;
}

.nzm-modal-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 14px 20px !important;
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
  background: rgba(0, 0, 0, .22) !important;
  flex-shrink: 0 !important;
  flex-wrap: wrap;
}
.nzm-modal-foot-right { display: flex; gap: 8px; margin-left: auto; }

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */
.nzm-field { margin-bottom: 16px; }
.nzm-field > label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--nzm-text);
  margin-bottom: 6px;
}

.nzm-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--nzm-text);
  background: var(--nzm-bg);
  border: 1px solid var(--nzm-border);
  border-radius: var(--nzm-radius-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nzm-input:focus {
  border-color: rgba(255, 107, 157, .6);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, .14);
}
.nzm-input[readonly] { background: var(--nzm-bg-soft); color: var(--nzm-text-2); cursor: default; }
.nzm-textarea { min-height: 68px; resize: vertical; line-height: 1.5; }

.nzm-input-wrap { position: relative; }
.nzm-input-wrap .nzm-input { padding-right: 40px; }
.nzm-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  padding: 4px 7px;
  color: var(--nzm-text-3);
  line-height: 1;
  border-radius: 5px;
  font-family: inherit;
}
.nzm-eye:hover { background: var(--nzm-bg-sunken); }

.nzm-hint {
  font-size: 12px;
  color: var(--nzm-text-3);
  margin: 6px 0 0;
  line-height: 1.6;
}
.nzm-hint.is-ok { color: #0a7a1e; }
.nzm-hint.is-err { color: var(--nzm-red); }

/* 开关 */
.nzm-switches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.nzm-switch, .nzm-switch-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--nzm-text-2);
  cursor: pointer;
  padding: 7px 10px;
  border: 1px solid var(--nzm-border);
  border-radius: var(--nzm-radius-sm);
  background: var(--nzm-bg);
  transition: all .15s ease;
  user-select: none;
}
.nzm-switch:hover, .nzm-switch-row:hover { border-color: var(--nzm-border-strong); background: var(--nzm-bg-soft); }
.nzm-switch input, .nzm-switch-row input { accent-color: var(--nzm-primary); cursor: pointer; margin: 0; }
.nzm-switch-row { padding: 9px 12px; }

/* 步骤说明 */
.nzm-steps {
  background: rgba(255, 107, 157, .06);
  border: 1px solid rgba(255, 107, 157, .14);
  border-radius: var(--nzm-radius-sm);
  padding: 13px 16px;
  margin-top: 16px;
}
.nzm-steps-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #ff9dc0; }
.nzm-steps ol { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--nzm-text-2); line-height: 1.9; }
.nzm-steps b { color: #ffd0e0; }

/* 验证结果 */
.nzm-verify {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--nzm-radius-sm);
  font-size: 13px;
  line-height: 1.6;
}
.nzm-verify.is-ok { background: var(--nzm-green-soft); color: #6ee7b7; border: 1px solid rgba(52,211,153,.32); }
.nzm-verify.is-err { background: var(--nzm-red-soft); color: #fda4af; border: 1px solid rgba(251,113,133,.32); }

/* 代码块 */
.nzm-code-wrap {
  position: relative;
  background: #0f0c16;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--nzm-radius-sm);
  padding: 14px 14px 46px;
  margin-top: 8px;
}
.nzm-code {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #d7d3e0;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 200px;
  overflow-y: auto;
}
.nzm-copy {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

/* 后台标签页 */
.nzm-admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--nzm-border);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.nzm-admin-tab {
  padding: 9px 14px;
  font-size: 13px;
  border: none;
  background: none;
  color: var(--nzm-text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  transition: all .15s ease;
}
.nzm-admin-tab:hover { color: var(--nzm-text); }
.nzm-admin-tab.is-active {
  color: #ff9dc0;
  border-bottom-color: #ff6b9d;
  font-weight: 500;
}

/* Token 表格 */
.nzm-token-table { display: flex; flex-direction: column; gap: 8px; }
.nzm-token-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--nzm-bg-soft);
  border-radius: var(--nzm-radius-sm);
  font-size: 13px;
  flex-wrap: wrap;
}
.nzm-token-user { font-weight: 600; min-width: 90px; }
.nzm-token-mask {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  color: var(--nzm-text-2);
  background: var(--nzm-bg);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--nzm-border);
}
.nzm-token-time { font-size: 11.5px; color: var(--nzm-text-3); margin-left: auto; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nzm-grid { grid-template-columns: 1fr; }
  .nzm-grid[data-style="minimal"] { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .nzm-head { align-items: stretch; }
  .nzm-head-right { justify-content: flex-start; }
  .nzm-updated { width: 100%; order: -1; }
  .nzm-stats { grid-template-columns: repeat(2, 1fr); }
  .nzm-modal { padding: 10px; }
  .nzm-modal-box { max-height: 92vh; }
  .nzm-compact { gap: 10px; }
  .nzm-compact-metrics { gap: 12px; }
  .nzm-card-acts { opacity: 1; }
}

@media (max-width: 480px) {
  .nzm-stats { grid-template-columns: 1fr; }
  .nzm-stat-value { font-size: 20px; }
  .nzm-switches { grid-template-columns: 1fr 1fr; }
  .nzm-toolbar-right { width: 100%; }
  .nzm-toolbar-right .nzm-select { flex: 1; }
}

/* --------------------------------------------------------------------------
   打印 / 深色系统偏好下保持可读（本站为亮色主题，这里仅做保险）
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .nzm *, .nzm *::before, .nzm *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   配色主题
   --------------------------------------------------------------------------
   每套主题需要同时定两件事，否则会出现「卡片与背景撞色、看不清」：
     ① 页面层变量（--nzm-page-bg / --nzm-glow-* / --nzm-grid-line / --nzm-orb-*）
     ② 卡片层变量（--nzm-bg / --nzm-border / --nzm-text*）
   设计准则：卡片与背景的**明度差**至少 8~10%，或改用描边/阴影把边界拉开。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 深邃暗夜（默认）—— 深蓝黑底 + 明显更亮的卡片，对比最强
   -------------------------------------------------------------------------- */
.nzm-theme-deep {
  --nzm-page-bg: #05070d;
  --nzm-page-text: #dbe4f5;
  --nzm-glow-1: rgba(64, 28, 84, .48);
  --nzm-glow-2: rgba(14, 52, 84, .46);
  --nzm-grid-line: rgba(77, 227, 255, .07);
  --nzm-orb-a: #ff6ec7;
  --nzm-orb-b: #4de3ff;
  --nzm-orb-c: #ffb4a2;
  --nzm-orb-opacity: .42;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);
}
.nzm-theme-deep .nzm {
  /* 卡片抬亮到 #1b2337 一档，与 #05070d 底拉开明显差距 */
  --nzm-bg: #1b2337;
  --nzm-bg-soft: rgba(27, 35, 55, .82);
  --nzm-bg-sunken: rgba(255, 255, 255, .08);
  --nzm-bg-solid: #1b2337;
  /* 边框要够亮，否则实底卡片之间会黏成一片 */
  --nzm-border: rgba(255, 255, 255, .16);
  --nzm-border-strong: rgba(255, 255, 255, .30);
  --nzm-text: #f2f5fb;
  --nzm-text-2: #c2ccdf;
  --nzm-text-3: #8b97ae;
  --nzm-shadow: 0 3px 14px rgba(0, 0, 0, .45);
  --nzm-shadow-hover: 0 10px 32px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 107, 157, .3);
  --nzm-card-blur: none;   /* 实底更清晰，不再叠毛玻璃 */
}

/* --------------------------------------------------------------------------
   2. 石墨蓝灰 —— 冷调中性，克制耐看
   -------------------------------------------------------------------------- */
.nzm-theme-slate {
  --nzm-page-bg: #0f1319;
  --nzm-page-text: #d8dee9;
  --nzm-glow-1: rgba(40, 60, 90, .40);
  --nzm-glow-2: rgba(28, 48, 72, .38);
  --nzm-grid-line: rgba(120, 170, 220, .055);
  --nzm-orb-a: #5b7fb8;
  --nzm-orb-b: #4d9bb5;
  --nzm-orb-c: #6d7fa8;
  --nzm-orb-opacity: .34;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);
}
.nzm-theme-slate .nzm {
  --nzm-bg: #1c222c;
  --nzm-bg-soft: rgba(28, 34, 44, .8);
  --nzm-bg-sunken: rgba(255, 255, 255, .07);
  --nzm-bg-solid: #1c222c;
  --nzm-border: rgba(160, 185, 215, .19);
  --nzm-border-strong: rgba(160, 185, 215, .34);
  --nzm-text: #e8edf5;
  --nzm-text-2: #b3bece;
  --nzm-text-3: #7e8a9c;
  --nzm-primary: #6ea8fe;
  --nzm-primary-2: #8b9cf7;
  --nzm-primary-soft: rgba(110, 168, 254, .16);
  --nzm-grad: linear-gradient(135deg, #6ea8fe 0%, #8b9cf7 55%, #a78bfa 100%);
  --nzm-shadow: 0 3px 12px rgba(0, 0, 0, .4);
  --nzm-shadow-hover: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(110, 168, 254, .3);
  --nzm-card-blur: none;
}

/* --------------------------------------------------------------------------
   3. 通透玻璃 —— 半透明磨砂，靠描边和光晕拉开层次
   -------------------------------------------------------------------------- */
.nzm-theme-glass {
  --nzm-page-bg: #090c15;
  --nzm-page-text: #dde6f5;
  --nzm-glow-1: rgba(88, 40, 120, .58);
  --nzm-glow-2: rgba(20, 70, 110, .55);
  --nzm-grid-line: rgba(120, 200, 255, .06);
  --nzm-orb-a: #c084fc;
  --nzm-orb-b: #38bdf8;
  --nzm-orb-c: #f0abfc;
  --nzm-orb-opacity: .5;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);
}
.nzm-theme-glass .nzm {
  /* 透明度高，但描边明显加强，靠边框把卡片轮廓拉出来 */
  --nzm-bg: rgba(255, 255, 255, .07);
  --nzm-bg-soft: rgba(255, 255, 255, .045);
  --nzm-bg-sunken: rgba(255, 255, 255, .11);
  --nzm-bg-solid: #161d2e;
  --nzm-border: rgba(255, 255, 255, .22);
  --nzm-border-strong: rgba(255, 255, 255, .4);
  --nzm-text: #f4f7fd;
  --nzm-text-2: #c6d0e2;
  --nzm-text-3: #94a1ba;
  --nzm-shadow: 0 4px 22px rgba(0, 0, 0, .38);
  --nzm-shadow-hover: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .3);
  --nzm-card-blur: blur(18px) saturate(1.5);
}

/* --------------------------------------------------------------------------
   4. 赛博霓虹 —— 高饱和紫青，光晕拉满
   -------------------------------------------------------------------------- */
.nzm-theme-cyber {
  --nzm-page-bg: #04060e;
  --nzm-page-text: #d6f2ff;
  --nzm-glow-1: rgba(120, 20, 140, .6);
  --nzm-glow-2: rgba(0, 90, 130, .55);
  --nzm-grid-line: rgba(0, 240, 255, .1);
  --nzm-orb-a: #ff2fb9;
  --nzm-orb-b: #00e5ff;
  --nzm-orb-c: #a855f7;
  --nzm-orb-opacity: .55;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);
}
.nzm-theme-cyber .nzm {
  --nzm-bg: #131a2e;
  --nzm-bg-soft: rgba(19, 26, 46, .8);
  --nzm-bg-sunken: rgba(255, 255, 255, .08);
  --nzm-bg-solid: #131a2e;
  --nzm-border: rgba(0, 229, 255, .3);
  --nzm-border-strong: rgba(0, 229, 255, .55);
  --nzm-text: #eaf9ff;
  --nzm-text-2: #9fc8dd;
  --nzm-text-3: #6d90a6;
  --nzm-primary: #00e5ff;
  --nzm-primary-2: #a855f7;
  --nzm-primary-soft: rgba(0, 229, 255, .14);
  --nzm-grad: linear-gradient(135deg, #00e5ff 0%, #a855f7 60%, #ff2fb9 100%);
  --nzm-cyan: #00e5ff;
  --nzm-shadow: 0 3px 16px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 229, 255, .12);
  --nzm-shadow-hover: 0 12px 38px rgba(0, 0, 0, .6), 0 0 26px rgba(0, 229, 255, .3);
  --nzm-card-blur: none;
}

/* --------------------------------------------------------------------------
   5. 明亮白昼 —— 浅底深字，白天/强光环境下最清晰
   -------------------------------------------------------------------------- */
.nzm-theme-light {
  --nzm-page-bg: #eef1f7;
  --nzm-page-text: #1a2233;
  --nzm-glow-1: rgba(255, 107, 157, .18);
  --nzm-glow-2: rgba(80, 180, 255, .16);
  --nzm-grid-line: rgba(60, 110, 180, .07);
  --nzm-orb-a: #ffb3d1;
  --nzm-orb-b: #a5d8ff;
  --nzm-orb-c: #ffd9c4;
  --nzm-orb-opacity: .38;
  --nzm-orb-blur: 90px;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);
}
.nzm-theme-light .nzm {
  --nzm-bg: #ffffff;
  --nzm-bg-soft: rgba(255, 255, 255, .8);
  --nzm-bg-sunken: rgba(20, 35, 60, .05);
  --nzm-bg-solid: #ffffff;
  --nzm-border: rgba(20, 35, 60, .12);
  --nzm-border-strong: rgba(20, 35, 60, .24);
  --nzm-text: #1a2233;
  --nzm-text-2: #4d5a70;
  --nzm-text-3: #7c8798;
  --nzm-primary: #d6438a;
  --nzm-primary-2: #8b3ddb;
  --nzm-primary-soft: rgba(214, 67, 138, .1);
  --nzm-grad: linear-gradient(135deg, #d6438a 0%, #a53bc4 55%, #8b3ddb 100%);
  --nzm-green: #0f9d58;
  --nzm-green-soft: rgba(15, 157, 88, .12);
  --nzm-red: #d93b52;
  --nzm-red-soft: rgba(217, 59, 82, .1);
  --nzm-orange: #c77700;
  --nzm-orange-soft: rgba(199, 119, 0, .12);
  --nzm-cyan: #0b7fa8;
  --nzm-shadow: 0 2px 10px rgba(20, 35, 60, .09);
  --nzm-shadow-hover: 0 10px 28px rgba(20, 35, 60, .16), 0 0 0 1px rgba(214, 67, 138, .25);
  --nzm-glow: 0 0 18px rgba(214, 67, 138, .2);
  --nzm-card-blur: none;
}

/* 明亮主题下，进度条槽底 / 环形底改用深色半透明（深色主题下是浅色叠加） */
.nzm-theme-light .nzm-bar { background: rgba(20, 35, 60, .09); }
.nzm-theme-light .nzm-ring-bg { stroke: rgba(20, 35, 60, .11); }

/* 明亮主题下弹窗也要跟着变亮 */
.nzm-theme-light .nzm-modal-box {
  background: #ffffff !important;
  color: #1a2233 !important;
  border-color: rgba(20, 35, 60, .12) !important;
}
.nzm-theme-light .nzm-modal-head { border-bottom-color: rgba(20, 35, 60, .1) !important; }
.nzm-theme-light .nzm-modal-foot { border-top-color: rgba(20, 35, 60, .1) !important; }
.nzm-theme-light .nzm-input {
  background: #f6f8fc !important;
  color: #1a2233 !important;
  border-color: rgba(20, 35, 60, .16) !important;
}
.nzm-theme-light .nzm-code {
  background: #f2f5fa !important;
  color: #1f2a3d !important;
  border-color: rgba(20, 35, 60, .12) !important;
}

/* --------------------------------------------------------------------------
   6. 午夜蓝调 —— 深海军蓝底 + 宝蓝高亮，比 slate 更蓝更沉
   -------------------------------------------------------------------------- */
.nzm-theme-midnight {
  --nzm-page-bg: #060b1a;
  --nzm-page-text: #d6e2ff;
  --nzm-glow-1: rgba(30, 60, 160, .5);
  --nzm-glow-2: rgba(12, 40, 100, .45);
  --nzm-grid-line: rgba(120, 170, 255, .075);
  --nzm-orb-a: #3b6fd4;
  --nzm-orb-b: #38bdf8;
  --nzm-orb-c: #818cf8;
  --nzm-orb-opacity: .42;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);
}
.nzm-theme-midnight .nzm {
  --nzm-bg: #16203c;
  --nzm-bg-soft: rgba(22, 32, 60, .82);
  --nzm-bg-sunken: rgba(255, 255, 255, .08);
  --nzm-bg-solid: #16203c;
  --nzm-border: rgba(130, 175, 255, .2);
  --nzm-border-strong: rgba(130, 175, 255, .36);
  --nzm-text: #eef3ff;
  --nzm-text-2: #b9c8e8;
  --nzm-text-3: #7e8fb5;
  --nzm-primary: #5b9dff;
  --nzm-primary-2: #818cf8;
  --nzm-primary-soft: rgba(91, 157, 255, .16);
  --nzm-grad: linear-gradient(135deg, #5b9dff 0%, #4f46e5 55%, #818cf8 100%);
  --nzm-cyan: #38bdf8;
  --nzm-shadow: 0 3px 14px rgba(0, 0, 0, .48);
  --nzm-shadow-hover: 0 10px 32px rgba(0, 0, 0, .62), 0 0 0 1px rgba(91, 157, 255, .32);
  --nzm-card-blur: none;
}

/* --------------------------------------------------------------------------
   7. 暗夜森林 —— 墨绿底 + 薄荷绿高亮，低视觉疲劳
   -------------------------------------------------------------------------- */
.nzm-theme-forest {
  --nzm-page-bg: #05100c;
  --nzm-page-text: #d3f0e2;
  --nzm-glow-1: rgba(20, 80, 60, .5);
  --nzm-glow-2: rgba(10, 50, 45, .45);
  --nzm-grid-line: rgba(110, 231, 183, .075);
  --nzm-orb-a: #34d399;
  --nzm-orb-b: #6ee7b7;
  --nzm-orb-c: #a7f3d0;
  --nzm-orb-opacity: .36;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);
}
.nzm-theme-forest .nzm {
  --nzm-bg: #14261f;
  --nzm-bg-soft: rgba(20, 38, 31, .82);
  --nzm-bg-sunken: rgba(255, 255, 255, .07);
  --nzm-bg-solid: #14261f;
  --nzm-border: rgba(134, 239, 172, .19);
  --nzm-border-strong: rgba(134, 239, 172, .34);
  --nzm-text: #eafaf2;
  --nzm-text-2: #b3d4c4;
  --nzm-text-3: #7ba892;
  --nzm-primary: #34d399;
  --nzm-primary-2: #6ee7b7;
  --nzm-primary-soft: rgba(52, 211, 153, .16);
  --nzm-grad: linear-gradient(135deg, #34d399 0%, #14b8a6 55%, #22d3ee 100%);
  --nzm-cyan: #6ee7b7;
  --nzm-shadow: 0 3px 14px rgba(0, 0, 0, .46);
  --nzm-shadow-hover: 0 10px 30px rgba(0, 0, 0, .58), 0 0 0 1px rgba(52, 211, 153, .32);
  --nzm-card-blur: none;
}

/* --------------------------------------------------------------------------
   8. 暮色橙紫 —— 紫底 + 落日橙，暖调里最抢眼的一套
   -------------------------------------------------------------------------- */
.nzm-theme-sunset {
  --nzm-page-bg: #100520;
  --nzm-page-text: #ffe3d1;
  --nzm-glow-1: rgba(120, 40, 140, .5);
  --nzm-glow-2: rgba(150, 60, 30, .42);
  --nzm-grid-line: rgba(255, 178, 120, .08);
  --nzm-orb-a: #f97316;
  --nzm-orb-b: #c026d3;
  --nzm-orb-c: #fbbf24;
  --nzm-orb-opacity: .46;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);
}
.nzm-theme-sunset .nzm {
  --nzm-bg: #241436;
  --nzm-bg-soft: rgba(36, 20, 54, .82);
  --nzm-bg-sunken: rgba(255, 255, 255, .08);
  --nzm-bg-solid: #241436;
  --nzm-border: rgba(255, 190, 140, .2);
  --nzm-border-strong: rgba(255, 190, 140, .36);
  --nzm-text: #fff1e6;
  --nzm-text-2: #e0c4d4;
  --nzm-text-3: #a88fa4;
  --nzm-primary: #fb923c;
  --nzm-primary-2: #c026d3;
  --nzm-primary-soft: rgba(251, 146, 60, .16);
  --nzm-grad: linear-gradient(135deg, #fb923c 0%, #e11d8f 50%, #c026d3 100%);
  --nzm-cyan: #fbbf24;
  --nzm-shadow: 0 3px 15px rgba(0, 0, 0, .5);
  --nzm-shadow-hover: 0 10px 34px rgba(0, 0, 0, .62), 0 0 0 1px rgba(251, 146, 60, .34);
  --nzm-card-blur: none;
}

/* --------------------------------------------------------------------------
   9. 素纸浅灰 —— 米白底，比 light 更暖更柔，长时间盯着不刺眼
   -------------------------------------------------------------------------- */
.nzm-theme-paper {
  --nzm-page-bg: #f4f1ea;
  --nzm-page-text: #2a2620;
  --nzm-glow-1: rgba(210, 180, 140, .28);
  --nzm-glow-2: rgba(150, 170, 190, .22);
  --nzm-grid-line: rgba(90, 80, 70, .06);
  --nzm-orb-a: #e8d5b7;
  --nzm-orb-b: #cfe0e8;
  --nzm-orb-c: #f0dcc8;
  --nzm-orb-opacity: .5;
  --nzm-orb-blur: 90px;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);
}
.nzm-theme-paper .nzm {
  --nzm-bg: #fffdf8;
  --nzm-bg-soft: rgba(255, 253, 248, .82);
  --nzm-bg-sunken: rgba(60, 50, 40, .06);
  --nzm-bg-solid: #fffdf8;
  --nzm-border: rgba(60, 50, 40, .13);
  --nzm-border-strong: rgba(60, 50, 40, .26);
  --nzm-text: #2a2620;
  --nzm-text-2: #5c5348;
  --nzm-text-3: #8a8074;
  --nzm-primary: #b45309;
  --nzm-primary-2: #8b5e34;
  --nzm-primary-soft: rgba(180, 83, 9, .1);
  --nzm-grad: linear-gradient(135deg, #b45309 0%, #a16207 55%, #7c6b52 100%);
  --nzm-green: #15803d;
  --nzm-green-soft: rgba(21, 128, 61, .12);
  --nzm-red: #b91c1c;
  --nzm-red-soft: rgba(185, 28, 28, .1);
  --nzm-orange: #a16207;
  --nzm-orange-soft: rgba(161, 98, 7, .12);
  --nzm-cyan: #0e7490;
  --nzm-shadow: 0 2px 10px rgba(60, 50, 40, .1);
  --nzm-shadow-hover: 0 10px 26px rgba(60, 50, 40, .16), 0 0 0 1px rgba(180, 83, 9, .24);
  --nzm-glow: 0 0 18px rgba(180, 83, 9, .18);
  --nzm-card-blur: none;
}

/* --------------------------------------------------------------------------
   10. 樱花粉 —— 浅粉底，轻盈柔和，适合偏内容向的站点
   -------------------------------------------------------------------------- */
.nzm-theme-rose {
  --nzm-page-bg: #fdf2f6;
  --nzm-page-text: #3b1f2b;
  --nzm-glow-1: rgba(244, 114, 182, .22);
  --nzm-glow-2: rgba(192, 132, 252, .18);
  --nzm-grid-line: rgba(190, 100, 150, .06);
  --nzm-orb-a: #f9a8d4;
  --nzm-orb-b: #d8b4fe;
  --nzm-orb-c: #fecdd3;
  --nzm-orb-opacity: .5;
  --nzm-orb-blur: 90px;
  --nzm-grid-mask: radial-gradient(ellipse 96% 90% at 50% 32%, #000 42%, transparent 92%);
}
.nzm-theme-rose .nzm {
  --nzm-bg: #ffffff;
  --nzm-bg-soft: rgba(255, 255, 255, .82);
  --nzm-bg-sunken: rgba(120, 40, 80, .06);
  --nzm-bg-solid: #ffffff;
  --nzm-border: rgba(190, 60, 120, .14);
  --nzm-border-strong: rgba(190, 60, 120, .28);
  --nzm-text: #3b1f2b;
  --nzm-text-2: #6b4356;
  --nzm-text-3: #947a86;
  --nzm-primary: #db2777;
  --nzm-primary-2: #9333ea;
  --nzm-primary-soft: rgba(219, 39, 119, .1);
  --nzm-grad: linear-gradient(135deg, #db2777 0%, #c026d3 50%, #9333ea 100%);
  --nzm-green: #15803d;
  --nzm-green-soft: rgba(21, 128, 61, .12);
  --nzm-red: #be123c;
  --nzm-red-soft: rgba(190, 18, 60, .1);
  --nzm-orange: #b45309;
  --nzm-orange-soft: rgba(180, 83, 9, .12);
  --nzm-cyan: #0e7490;
  --nzm-shadow: 0 2px 10px rgba(150, 50, 90, .1);
  --nzm-shadow-hover: 0 10px 26px rgba(150, 50, 90, .16), 0 0 0 1px rgba(219, 39, 119, .26);
  --nzm-glow: 0 0 18px rgba(219, 39, 119, .18);
  --nzm-card-blur: none;
}

/* 浅色系的通用补偿：进度条槽底、环形底、弹窗、输入框都要跟着变亮。
   不逐个主题写，用一条规则覆盖全部浅色主题，避免以后加主题时漏改。 */
.nzm-theme-light .nzm-bar,
.nzm-theme-paper .nzm-bar,
.nzm-theme-rose .nzm-bar { background: rgba(20, 35, 60, .09); }
.nzm-theme-light .nzm-ring-bg,
.nzm-theme-paper .nzm-ring-bg,
.nzm-theme-rose .nzm-ring-bg { stroke: rgba(20, 35, 60, .11); }

.nzm-theme-light .nzm-modal-box,
.nzm-theme-paper .nzm-modal-box,
.nzm-theme-rose .nzm-modal-box {
  background: #ffffff !important;
  color: var(--nzm-text) !important;
  border-color: var(--nzm-border) !important;
}
.nzm-theme-light .nzm-modal-head,
.nzm-theme-paper .nzm-modal-head,
.nzm-theme-rose .nzm-modal-head { border-bottom-color: rgba(20, 35, 60, .1) !important; }
.nzm-theme-light .nzm-modal-foot,
.nzm-theme-paper .nzm-modal-foot,
.nzm-theme-rose .nzm-modal-foot { border-top-color: rgba(20, 35, 60, .1) !important; }
.nzm-theme-light .nzm-input,
.nzm-theme-paper .nzm-input,
.nzm-theme-rose .nzm-input {
  background: #f8f6f8 !important;
  color: var(--nzm-text) !important;
  border-color: var(--nzm-border-strong) !important;
}
.nzm-theme-light .nzm-code,
.nzm-theme-paper .nzm-code,
.nzm-theme-rose .nzm-code {
  background: #f3f0f3 !important;
  color: #1f2a3d !important;
  border-color: var(--nzm-border) !important;
}

/* ==========================================================================
   服务器详情弹窗（点击卡片打开）
   ========================================================================== */

/* 卡片可点击 */
.nzm-grid .nzm-card { cursor: pointer; }
.nzm-grid .nzm-card .nzm-icon-btn,
.nzm-grid .nzm-card .nzm-btn { cursor: pointer; }

.nzm-modal-detail { max-width: 880px !important; }
.nzm-detail-body { min-height: 220px; }

.nzm-detail-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.nzm-detail-flag { font-size: 22px; line-height: 1; }
.nzm-detail-titling {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.nzm-detail-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--nd-strong, #f2f0f7);
  line-height: 1.3;
  word-break: break-all;
}
.nzm-detail-os {
  font-size: 12.5px;
  color: var(--nd-sub, #9b93ad);
}

.nzm-detail-sec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nd-strong, #f2f0f7);
  margin: 18px 0 10px;
  padding-left: 9px;
  border-left: 3px solid var(--nzm-primary, #ff6b9d);
  line-height: 1.3;
}
.nzm-detail-sec:first-of-type { margin-top: 0; }
.nzm-detail-sec-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--nd-sub, #9b93ad);
}

.nzm-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

.nzm-dcell {
  background: var(--nd-cell-bg, rgba(255, 255, 255, .045));
  border: 1px solid var(--nd-cell-border, rgba(255, 255, 255, .07));
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.nzm-dcell-label {
  font-size: 11px;
  color: var(--nd-sub, #9b93ad);
  letter-spacing: .02em;
}
.nzm-dcell-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nd-strong, #f2f0f7);
  line-height: 1.35;
  word-break: break-all;
}
.nzm-dcell-value.is-hot { color: var(--nzm-red, #fb7185) !important; }
.nzm-dcell-value.is-warm { color: var(--nzm-orange, #fbbf24) !important; }
.nzm-d-online { color: var(--nzm-green, #34d399) !important; }
.nzm-d-offline { color: var(--nzm-red, #fb7185) !important; }

.nzm-dcopy {
  border: 1px solid var(--nd-cell-border, rgba(255, 255, 255, .14));
  background: transparent;
  color: var(--nd-sub, #9b93ad);
  font-size: 10.5px;
  border-radius: 6px;
  padding: 1px 7px;
  margin-left: 6px;
  cursor: pointer;
  vertical-align: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.nzm-dcopy:hover {
  color: var(--nzm-primary, #ff6b9d);
  border-color: var(--nzm-primary, #ff6b9d);
}

.nzm-dfull {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--nd-cell-bg, rgba(255, 255, 255, .045));
  border: 1px solid var(--nd-cell-border, rgba(255, 255, 255, .07));
  border-radius: 10px;
  padding: 9px 11px;
  margin-top: 8px;
}
.nzm-dfull-value {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--nd-strong, #f2f0f7);
  line-height: 1.5;
  word-break: break-all;
}

/* 趋势图 */
.nzm-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 10px;
}
.nzm-chart-card {
  background: var(--nd-cell-bg, rgba(255, 255, 255, .045));
  border: 1px solid var(--nd-cell-border, rgba(255, 255, 255, .07));
  border-radius: 10px;
  padding: 10px 12px 8px;
  min-width: 0;
}
.nzm-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.nzm-chart-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--nd-strong, #f2f0f7);
}
.nzm-chart-val {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nd-strong, #f2f0f7);
  white-space: nowrap;
}
.nzm-chart-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.nzm-chart-body { line-height: 0; }
.nzm-spark {
  width: 100%;
  height: 86px;
  display: block;
}
.nzm-spark-grid {
  stroke: var(--nd-grid, rgba(255, 255, 255, .08));
  stroke-width: 1;
}
.nzm-chart-legend {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--nd-sub, #9b93ad);
}
.nzm-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nzm-chart-empty {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--nd-sub, #9b93ad);
  line-height: 1.5;
}

.nzm-detail-foot-hint {
  font-size: 11.5px;
  color: var(--nd-sub, #9b93ad);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .nzm-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .nzm-chart-grid { grid-template-columns: 1fr; }
}

/* 浅色主题（light / paper / rose）下弹窗整体变白，详情内容跟着适配 */
.nzm-theme-light .nzm-detail-name,
.nzm-theme-paper .nzm-detail-name,
.nzm-theme-rose .nzm-detail-name { color: #1a2233; }
.nzm-theme-light .nzm-detail-os,
.nzm-theme-paper .nzm-detail-os,
.nzm-theme-rose .nzm-detail-os,
.nzm-theme-light .nzm-detail-sec-sub,
.nzm-theme-paper .nzm-detail-sec-sub,
.nzm-theme-rose .nzm-detail-sec-sub,
.nzm-theme-light .nzm-detail-foot-hint,
.nzm-theme-paper .nzm-detail-foot-hint,
.nzm-theme-rose .nzm-detail-foot-hint,
.nzm-theme-light .nzm-dcell-label,
.nzm-theme-paper .nzm-dcell-label,
.nzm-theme-rose .nzm-dcell-label,
.nzm-theme-light .nzm-chart-legend,
.nzm-theme-paper .nzm-chart-legend,
.nzm-theme-rose .nzm-chart-legend,
.nzm-theme-light .nzm-chart-empty,
.nzm-theme-paper .nzm-chart-empty,
.nzm-theme-rose .nzm-chart-empty { color: #6b7280; }
.nzm-theme-light .nzm-dcell-value,
.nzm-theme-paper .nzm-dcell-value,
.nzm-theme-rose .nzm-dcell-value,
.nzm-theme-light .nzm-dfull-value,
.nzm-theme-paper .nzm-dfull-value,
.nzm-theme-rose .nzm-dfull-value,
.nzm-theme-light .nzm-chart-title,
.nzm-theme-paper .nzm-chart-title,
.nzm-theme-rose .nzm-chart-title,
.nzm-theme-light .nzm-chart-val,
.nzm-theme-paper .nzm-chart-val,
.nzm-theme-rose .nzm-chart-val,
.nzm-theme-light .nzm-detail-sec,
.nzm-theme-paper .nzm-detail-sec,
.nzm-theme-rose .nzm-detail-sec { color: #1f2937; }
.nzm-theme-light .nzm-dcell,
.nzm-theme-paper .nzm-dcell,
.nzm-theme-rose .nzm-dcell,
.nzm-theme-light .nzm-dfull,
.nzm-theme-paper .nzm-dfull,
.nzm-theme-light .nzm-chart-card,
.nzm-theme-paper .nzm-chart-card,
.nzm-theme-rose .nzm-chart-card {
  background: #f6f8fc;
  border-color: rgba(20, 35, 60, .1);
}
.nzm-theme-light .nzm-spark-grid,
.nzm-theme-paper .nzm-spark-grid,
.nzm-theme-rose .nzm-spark-grid { stroke: rgba(20, 35, 60, .1); }
.nzm-theme-light .nzm-dcopy,
.nzm-theme-paper .nzm-dcopy,
.nzm-theme-rose .nzm-dcopy {
  color: #6b7280;
  border-color: rgba(20, 35, 60, .18);
}

/* ==========================================================================
   TCP Ping 行 + Docker 项目区（v1.6.0）
   ========================================================================== */

.nzm-ping-val { font-variant-numeric: tabular-nums; }
.nzm-ping-val.nzm-ping-good { color: var(--nzm-green, #34d399) !important; }
.nzm-ping-val.nzm-ping-warn { color: var(--nzm-orange, #fbbf24) !important; }
.nzm-ping-val.nzm-ping-bad  { color: var(--nzm-red, #fb7185) !important; }
.nzm-ping-na { opacity: .62; }

.nzm-ping-refresh {
  border: none;
  background: transparent;
  color: var(--nzm-text-3, #837c93);
  font-size: 12px;
  line-height: 1;
  padding: 2px 5px;
  margin-left: 4px;
  border-radius: 5px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
  vertical-align: 1px;
}
.nzm-ping-refresh:hover {
  color: var(--nzm-primary, #ff6b9d);
  background: var(--nzm-primary-soft, rgba(255, 107, 157, .14));
}

/* Docker 项目区 */
.nzm-docker-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nzm-docker-item {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  background: var(--nd-cell-bg, rgba(255, 255, 255, .045));
  border: 1px solid var(--nd-cell-border, rgba(255, 255, 255, .07));
  border-radius: 10px;
  padding: 9px 12px;
}
.nzm-docker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nzm-docker-dot.is-up { background: var(--nzm-green, #34d399); box-shadow: 0 0 6px rgba(52, 211, 153, .5); }
.nzm-docker-dot.is-down { background: var(--nzm-red, #fb7185); box-shadow: 0 0 6px rgba(251, 113, 133, .45); }
.nzm-docker-dot.is-idle { background: var(--nd-sub, #9b93ad); opacity: .55; }
.nzm-docker-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--nd-strong, #f2f0f7);
  min-width: 0;
}
.nzm-docker-ports { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.nzm-docker-port {
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-radius: 5px;
  padding: 1px 7px;
  line-height: 1.5;
}
.nzm-docker-port.is-up {
  color: var(--nzm-green, #34d399);
  background: var(--nzm-green-soft, rgba(52, 211, 153, .14));
}
.nzm-docker-port.is-down {
  color: var(--nzm-red, #fb7185);
  background: var(--nzm-red-soft, rgba(251, 113, 133, .14));
}
.nzm-docker-note {
  font-size: 11px;
  color: var(--nd-sub, #9b93ad);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.nzm-docker-empty {
  font-size: 12px;
  color: var(--nd-sub, #9b93ad);
  background: var(--nd-cell-bg, rgba(255, 255, 255, .045));
  border: 1px dashed var(--nd-cell-border, rgba(255, 255, 255, .1));
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.6;
}

/* 后台设置 textarea 等宽字体 */
.nzm-mono { font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 1.6; }

/* 浅色主题适配 */
.nzm-theme-light .nzm-docker-name,
.nzm-theme-paper .nzm-docker-name,
.nzm-theme-rose .nzm-docker-name { color: #1f2937; }
.nzm-theme-light .nzm-docker-note,
.nzm-theme-paper .nzm-docker-note,
.nzm-theme-rose .nzm-docker-note,
.nzm-theme-light .nzm-docker-empty,
.nzm-theme-paper .nzm-docker-empty,
.nzm-theme-rose .nzm-docker-empty { color: #6b7280; }
.nzm-theme-light .nzm-docker-item,
.nzm-theme-paper .nzm-docker-item,
.nzm-theme-rose .nzm-docker-item {
  background: #f6f8fc;
  border-color: rgba(20, 35, 60, .1);
}
.nzm-theme-light .nzm-ping-refresh,
.nzm-theme-paper .nzm-ping-refresh,
.nzm-theme-rose .nzm-ping-refresh { color: #9ca3af; }

/* ==========================================================================
   国旗图标（flagcdn 图片，替代 Windows 下退化成字母码的旗帜 emoji）
   ========================================================================== */

.nzm-flag-img {
  width: 21px;
  height: 15px;
  max-width: none;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: -2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
  flex-shrink: 0;
  display: inline-block;
}
.nzm-detail-flag .nzm-flag-img {
  width: 26px;
  height: 18.5px;
  vertical-align: 0;
}
.nzm-dcell .nzm-flag-img { margin-right: 2px; }

/* 浅色主题下边框描边加深一点 */
.nzm-theme-light .nzm-flag-img,
.nzm-theme-paper .nzm-flag-img,
.nzm-theme-rose .nzm-flag-img { box-shadow: 0 0 0 1px rgba(20, 35, 60, .18); }
