/* 赛博朋克风格霓虹背景 - 粉蓝渐变警灯效果 */

/* 创建全局背景容器 */
body {
    background-color: #000;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 确保所有内容都在背景之上 */
body > *:not(.pink-blue-siren):not(.neon-pink-glow):not(.neon-blue-glow):not(.neon-mixed-glow):not(.scan-lines):not(.floating-particles):not(.glitch-overlay) {
    position: relative;
    z-index: 1;
}

/* 创建全息网格效果 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: -1px -1px;
    z-index: -3;
    opacity: 0.3;
    animation: gridMove 15s linear infinite;
}

/* 网格移动动画 */
@keyframes gridMove {
    0% {
        background-position: -1px -1px;
    }
    100% {
        background-position: -41px -41px;
    }
}

/* 创建粉蓝渐变霓虹灯光效果 - 模拟警灯 */
.pink-blue-siren {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(10,10,20,1) 50%, rgba(0,0,0,1) 100%);
}

/* 粉色霓虹光效 - 增强覆盖范围 */
.neon-pink-glow {
    position: fixed;
    top: -50%;
    right: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.25) 0%, rgba(255, 0, 255, 0.1) 40%, rgba(0, 0, 0, 0) 70%);
    filter: blur(120px);
    z-index: -3;
    animation: sirenPulsePink 3s ease-in-out infinite alternate;
}

/* 蓝色霓虹光效 - 增强覆盖范围 */
.neon-blue-glow {
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.25) 0%, rgba(0, 255, 255, 0.1) 40%, rgba(0, 0, 0, 0) 70%);
    filter: blur(120px);
    z-index: -3;
    animation: sirenPulseBlue 3s ease-in-out infinite alternate;
}

/* 中心混合光效 */
.neon-mixed-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 100, 255, 0.15) 0%, rgba(0, 200, 255, 0.15) 50%, rgba(0, 0, 0, 0) 80%);
    filter: blur(150px);
    z-index: -3;
    transform: translate(-50%, -50%);
    animation: mixedGlowPulse 4s ease-in-out infinite;
}

/* 警灯脉冲动画 - 粉色 */
@keyframes sirenPulsePink {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* 警灯脉冲动画 - 蓝色 */
@keyframes sirenPulseBlue {
    0% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* 中心混合光效动画 */
@keyframes mixedGlowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* 扫描线效果 */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 98%, 
        rgba(0, 255, 255, 0.15) 98%, 
        rgba(0, 255, 255, 0.15) 98.5%, 
        transparent 98.5%, 
        transparent 100%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 4px;
    }
}

/* 浮动粒子效果 */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.floating-particles::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.4);
    animation: floatParticle 15s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translate(20vw, 100vh) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(80vw, -100vh) scale(1.2);
        opacity: 0;
    }
}

/* 霓虹文字效果 - 增强版粉蓝交替闪烁 */
.neon-text {
    position: relative;
    animation: neonAlternate 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 5px rgba(255, 0, 255, 0.7),
        0 0 10px rgba(255, 0, 255, 0.5),
        0 0 20px rgba(255, 0, 255, 0.3);
}

/* 霓虹按钮悬停效果 */
.neon-text:hover {
    animation: neonPulse 1s ease-in-out infinite;
    text-shadow: 
        0 0 8px rgba(0, 255, 255, 0.9),
        0 0 15px rgba(0, 255, 255, 0.7),
        0 0 30px rgba(0, 255, 255, 0.5);
}

/* 增强版霓虹脉冲动画 */
@keyframes neonPulse {
    0%, 100% {
        color: #ff80ff;
        text-shadow: 
            0 0 8px rgba(255, 0, 255, 0.9),
            0 0 15px rgba(255, 0, 255, 0.7),
            0 0 30px rgba(255, 0, 255, 0.5);
    }
    50% {
        color: #80ffff;
        text-shadow: 
            0 0 8px rgba(0, 255, 255, 0.9),
            0 0 15px rgba(0, 255, 255, 0.7),
            0 0 30px rgba(0, 255, 255, 0.5);
    }
}

@keyframes neonAlternate {
    0% {
        color: #ff80ff;
        text-shadow: 
            0 0 2px #ff00ff,
            0 0 4px #ff00ff,
            0 0 8px #ff00ff;
    }
    100% {
        color: #80ffff;
        text-shadow: 
            0 0 2px #00ffff,
            0 0 4px #00ffff,
            0 0 8px #00ffff;
    }
}

/* 导航栏增强效果 */
#navbar {
    background-color: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* 按钮霓虹效果 */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.8), rgba(0, 255, 255, 0.8));
    border: none;
    color: #000;
    font-weight: bold;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* 卡片悬停效果 */
.card-hover {
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.7);
}

.card-hover:hover {
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.3);
    border-color: rgba(255, 0, 255, 0.5);
}

/* 故障艺术效果 - 简化版 */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, transparent 98.5%, #ff00ff 98.5%, #ff00ff 99%, transparent 99%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 98%, #00ffff 98%, #00ffff 98.5%, transparent 98.5%, transparent 100%);
    background-size: 30px 30px, 20px 20px;
    background-position: 0 0, 4px 4px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
    animation: glitchMove 5s linear infinite;
}

@keyframes glitchMove {
    0% {
        background-position: 0 0, 4px 4px;
    }
    100% {
        background-position: 30px 30px, 24px 24px;
    }
}

/* 下划线霓虹效果 */
.underline-animation {
    position: relative;
}

.underline-animation::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    transition: width 0.3s ease;
}

.underline-animation:hover::after {
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body::before {
        background-size: 30px 30px;
    }
    
    .neon-pink-glow,
    .neon-blue-glow {
        width: 100%;
        height: 100%;
    }
}