/* PPanel 轻量性能优化与视觉替代样式（零 DOM 侵入，纯 GPU 合成） */

/* 1. 消除首页 TextGenerateEffect 的 blur(10px) 高斯模糊重绘卡顿 */
main span[style*="blur"] {
  filter: none !important;
  opacity: 1 !important;
  transition: opacity 0.25s ease-out !important;
}

@keyframes ppanel-gentle-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

/* 2. Hero 主视觉占位替换（原 269KB Lottie；路径相对于 /assets/custom-opt.css） */
main > div.grid .aspect-video.w-full:empty {
  background: url("./visuals/hero.svg") center / contain no-repeat;
  animation: ppanel-gentle-float 6s ease-in-out infinite;
  will-change: transform;
}

/* 3. Stats 三大特性图标替换（原 users 37KB + servers 495KB + locations 1.7MB Lottie） */
main section > div:nth-child(1) .size-24:empty {
  background: url("./visuals/users.svg") center / contain no-repeat;
}
main section > div:nth-child(2) .size-24:empty {
  background: url("./visuals/servers.svg") center / contain no-repeat;
}
main section > div:nth-child(3) .size-24:empty {
  background: url("./visuals/locations.svg") center / contain no-repeat;
}

/* 4. GlobalMap 全球节点地图替换（原 746KB Lottie，同时取消过度放大裁切） */
main section .aspect-video.w-full .size-full.scale-150:empty {
  transform: none !important;
  background: url("./visuals/global-map.svg") center / contain no-repeat;
}

/* 5. 用户端与管理端登录页视觉替换（原 962KB Lottie） */
.aspect-square[class*="w-[275px]"]:empty,
.hidden.aspect-square.w-full:empty {
  background: url("./visuals/login.svg") center / contain no-repeat;
  animation: ppanel-gentle-float 7s ease-in-out infinite;
  will-change: transform;
}
