/* NZWL performance fallbacks — low-end GPU / reduced motion */

/* 低端：关粒子、关 rays/grain、关几乎所有 backdrop-filter */
html.nzwl-perf-low .nzwl-particle,
html.nzwl-perf-low .particle,
html.nzwl-perf-low #nzwl-particles,
html.nzwl-perf-low #nzwl-particles-fixed,
html.nzwl-perf-low .nzwl-particles-fixed,
html.nzwl-perf-low .nzwl-stage-bg__particles {
  display: none !important;
  animation: none !important;
}
html.nzwl-perf-low .nzwl-stage-bg__rays,
html.nzwl-perf-low .nzwl-stage-bg__grain {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}
html.nzwl-perf-low body.nzwl-skin *,
html.nzwl-perf-low body.nzwl-skin *::before,
html.nzwl-perf-low body.nzwl-skin *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* 低端：弱化大阴影 */
html.nzwl-perf-low body.nzwl-skin .nzwl-page-content,
html.nzwl-perf-low body.nzwl-skin .nzwl-mod,
html.nzwl-perf-low body.nzwl-skin .nzwl-card,
html.nzwl-perf-low body.nzwl-skin .nzwl-ld-col,
html.nzwl-perf-low body.nzwl-skin .nzwl-share-form,
html.nzwl-perf-low body.nzwl-skin .nzwl-share-list-wrap {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

/* 系统减少动态：强制关动画粒子 */
@media (prefers-reduced-motion: reduce) {
  .nzwl-particle,
  .particle,
  #nzwl-particles-fixed,
  .nzwl-particles-fixed {
    display: none !important;
    animation: none !important;
  }
}

/* 平板及以下：默认不渲染固定粒子层（stage.js 也会跳过） */
@media (max-width: 900px) {
  #nzwl-particles-fixed,
  .nzwl-particles-fixed {
    display: none !important;
  }
}

/* 粒子本身再轻一点（覆盖皮肤里的重 box-shadow） */
body.nzwl-skin .nzwl-particle,
.nzwl-particles-fixed .nzwl-particle {
  box-shadow: 0 0 6px rgba(240, 199, 94, 0.4) !important;
  will-change: auto !important;
  filter: none !important;
  backdrop-filter: none !important;
}
