/* 粒子效果和音乐模块样式 */

/* 粒子画布 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 音频播放器隐藏 */
#background-audio {
    display: none;
}

/* 音乐控制按钮 */
.music-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 126, 95, 0.2);
    border: 1px solid rgba(255, 126, 95, 0.3);
    color: #feb47b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
}

.music-btn:hover {
    background: rgba(255, 126, 95, 0.3);
    transform: scale(1.1);
}

.music-btn.active {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
}

.music-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* 音量控制滑块 */
.volume-control {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 200px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 126, 95, 0.2);
    padding: 15px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.volume-control label {
    color: #feb47b;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.volume-control input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff7e5f;
    cursor: pointer;
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff7e5f;
    cursor: pointer;
    border: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .music-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .music-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .volume-control {
        bottom: 70px;
        right: 10px;
        width: 180px;
    }
}

@media (max-width: 480px) {
    .music-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .music-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .volume-control {
        bottom: 60px;
        right: 10px;
        width: 160px;
    }
}

/* 粒子效果主题变体 */
.particles-theme-light #particles-canvas {
    background: transparent;
}

.particles-theme-blue #particles-canvas {
    background: transparent;
}

/* 动画效果 */
@keyframes musicPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.music-btn.playing {
    animation: musicPulse 2s infinite;
}

/* 性能优化类 */
.particles-performance-low {
    /* 减少粒子数量和效果的类 */
}

.particles-performance-high {
    /* 增加粒子数量和效果的类 */
}