/* 背景图片滚动效果样式 */

/* 背景容器样式 */
#bg-scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* 背景图片项通用样式 */
#bg-scroll-container > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out, transform 0.1s ease-out;
}

/* 确保内容区域在背景之上 */
body {
    position: relative;
    z-index: 1;
}

/* 调整主内容区域的背景透明度，使其更好地与背景图片融合 */
.main-content {
    background-color: rgba(0, 0, 0, 0.1); /* 轻微的半透明黑色背景 */
    backdrop-filter: blur(10px); /* 背景模糊效果 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    #bg-scroll-container > div {
        background-size: cover;
    }
    
    .main-content {
        background-color: rgba(0, 0, 0, 0.2); /* 在移动设备上增加不透明度以提高可读性 */
        backdrop-filter: blur(8px);
    }
}

/* 加载动画 */
#bg-scroll-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #333, #555);
    z-index: 10;
    animation: fadeOut 1s ease-in-out 0.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* 确保背景效果不会干扰其他元素 */
.header, .footer, .music-player-container {
    position: relative;
    z-index: 2;
}

/* 调整卡片和项目的背景透明度以适应滚动背景 */
.item_bg_color {
    background-color: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(15px);
}

/* 优化深色主题下的文本可读性 */
.dark-theme .main_text_color {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}