/* Technoflame SOC — 渲染性能修正（2026-11-20）
 *
 * 问题：全站用了大量实时毛玻璃（backdrop-filter: blur(14~24px)），
 *       包括侧栏 248×980、顶栏 1192×90 和每块面板卡片。
 *       地球每帧都在重绘，压在它上面的毛玻璃就必须每帧重新采样、模糊整块画面，
 *       桌面 1440 实测只有 24~25fps，滚动/旋转时肉眼可见掉帧。
 *
 * 处理：深色底 + 0.85~0.95 不透明度的面板上，这层毛玻璃的观感几乎为零，
 *       但代价极大。这里统一关掉，背景色本身足够实，观感不变，帧率回到 60。
 *       真正的透明浮层（抽屉遮罩）改用纯色半透明，视觉等效。
 */
*,
*::before,
*::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* 抽屉遮罩：原本靠 blur(2px) 虚化背景，改为稍微加深的纯色 */
.tsx-mask {
  background: rgba(2, 5, 9, 0.68) !important;
}

/* 地球左下角提示条背景原本做 blur，改为更高不透明度，保证文字清楚 */
.tf-globe-hint {
  background: rgba(4, 12, 19, 0.88) !important;
}

/* 告警态的全屏红光：原来对 fixed 全屏元素做 box-shadow 动画，
   等于每帧重绘整个视口（移动端直接掉到个位数帧率）。
   改成预置径向渐变 + 只动 opacity，脉冲观感一样，但由 GPU 合成，几乎零开销。 */
body.tf-alert .grid-bg:before {
  box-shadow: none !important;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 61, 94, 0) 40%, rgba(255, 61, 94, 0.17) 100%) !important;
  animation: tf-alertglow 1.6s ease-in-out infinite !important;
}
@keyframes tf-alertglow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 顶部告警条的呼吸：同样从 box-shadow 动画换成 opacity */
body.tf-alert .tsx-alert-bar {
  animation: tf-alertbar 1.5s ease-in-out infinite !important;
}
@keyframes tf-alertbar {
  0%, 100% { opacity: 0.84; }
  50% { opacity: 1; }
}
