/* 全局共享样式文件 - 所有HTML页面都会引用此文件 */

/* 键盘导航焦点样式 - 深色背景下的可见性 */
:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* 平滑滚动效果 */
html {
  scroll-behavior: smooth;
}

/* 图片渲染优化 */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* 文本选中颜色 - 配合单色调色板 */
::selection {
  background: #333333;
  color: #ffffff;
}

/* particles.js 背景容器样式 */
#particles-js,
.particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* particles.js 画布样式 */
.particles-js-canvas-el {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0.65;
  mix-blend-mode: screen;
}

/* 内容容器样式 - 确保内容在粒子之上 */
.particles-content,
.particles-card,
.main-content {
  position: relative;
  z-index: 10;
}

/* 禁用粒子效果的页面级别标志 */
.no-particles #particles-js,
.no-particles .particles-js-canvas-el {
  display: none !important;
}