/* 全局共享样式文件 - 所有HTML页面都会引用此文件 */

/* 设置黑色背景 */
body {
    background-color: #000000;
    margin: 0;
    padding: 0;
}

/* 键盘导航焦点可见性 - 深色背景优化 */
: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;
}