/* 共享背景自定义层：视频背景与类型覆盖规则（前台 / 后台通用，独立模块） */

#bg-custom-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

/* 纯色 / 预设 / 视频类型下，关闭站点内置背景图层，避免两层叠加 */
body[data-bg-type="color"]::before,
body[data-bg-type="preset"]::before,
body[data-bg-type="video"]::before {
    background-image: none !important;
}
body[data-bg-type="color"]::after,
body[data-bg-type="preset"]::after,
body[data-bg-type="video"]::after {
    background-image: none !important;
}

/* 图片类型保留内置背景层，仅替换其图片源（--bg-img），无需额外规则 */
