/* wormhole-bg.css - 虫洞星际跃迁背景 */
.wormhole-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9999;
    background: linear-gradient(135deg, #0c0c1d 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

/* 虫洞核心漩涡 */
.wormhole-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(106, 17, 203, 0.8) 0%,
        rgba(37, 117, 252, 0.6) 30%,
        rgba(106, 17, 203, 0.4) 60%,
        transparent 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: wormholePulse 4s ease-in-out infinite;
    filter: blur(1px);
}

/* 虫洞漩涡环 */
.vortex-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: vortexSpin 8s linear infinite;
}

.vortex-ring-1 {
    width: 300px;
    height: 300px;
    border-top-color: rgba(106, 17, 203, 0.8);
    border-right-color: rgba(37, 117, 252, 0.6);
    animation-delay: 0s;
    animation-duration: 12s;
}

.vortex-ring-2 {
    width: 500px;
    height: 500px;
    border-bottom-color: rgba(106, 17, 203, 0.6);
    border-left-color: rgba(37, 117, 252, 0.4);
    animation-delay: -2s;
    animation-duration: 15s;
}

.vortex-ring-3 {
    width: 800px;
    height: 800px;
    border-top-color: rgba(106, 17, 203, 0.4);
    border-right-color: rgba(37, 117, 252, 0.3);
    animation-delay: -4s;
    animation-duration: 18s;
}

/* 星际粒子流 */
.particle-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleWarp 3s linear infinite;
}

.particle-1 { top: 10%; left: 20%; width: 2px; height: 2px; animation-delay: 0s; animation-duration: 4s; }
.particle-2 { top: 30%; left: 80%; width: 3px; height: 3px; animation-delay: 0.5s; animation-duration: 3.5s; }
.particle-3 { top: 70%; left: 10%; width: 1px; height: 1px; animation-delay: 1s; animation-duration: 5s; }
.particle-4 { top: 80%; left: 60%; width: 2px; height: 2px; animation-delay: 1.5s; animation-duration: 4.5s; }
.particle-5 { top: 20%; left: 40%; width: 3px; height: 3px; animation-delay: 2s; animation-duration: 3s; }

/* 跃迁光带 */
.warp-streak {
    position: absolute;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(106, 17, 203, 0.6) 20%,
        rgba(37, 117, 252, 0.8) 50%,
        rgba(106, 17, 203, 0.6) 80%,
        transparent 100%);
    animation: warpStreak 6s linear infinite;
    opacity: 0;
}

.warp-streak-1 { left: 25%; animation-delay: 0s; }
.warp-streak-2 { left: 50%; animation-delay: 2s; }
.warp-streak-3 { left: 75%; animation-delay: 4s; }

/* 星云背景 */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    animation: nebulaFloat 20s ease-in-out infinite;
}

.nebula-1 {
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.3), transparent 70%);
    animation-delay: 0s;
}

.nebula-2 {
    top: 60%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 117, 252, 0.2), transparent 70%);
    animation-delay: -5s;
}

.nebula-3 {
    bottom: 20%;
    left: 40%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 119, 198, 0.15), transparent 70%);
    animation-delay: -10s;
}

/* 动画关键帧 */
@keyframes wormholePulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

@keyframes vortexSpin {
    0% { 
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    50% { 
        transform: translate(-50%, -50%) rotate(180deg) scale(1.05);
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

@keyframes particleWarp {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(-400px, 200px) scale(1.5);
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(-800px, 400px) scale(0.5);
        opacity: 0;
    }
}

@keyframes warpStreak {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes nebulaFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    25% { 
        transform: translate(50px, -30px) scale(1.1);
    }
    50% { 
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% { 
        transform: translate(-50px, -50px) scale(1.05);
    }
}

/* 手机端优化 */
@media (max-width: 768px) {
    .wormhole-core {
        width: 120px;
        height: 120px;
    }
    .vortex-ring-1 { width: 180px; height: 180px; }
    .vortex-ring-2 { width: 300px; height: 300px; }
    .vortex-ring-3 { width: 480px; height: 480px; }
    .nebula-1 { width: 180px; height: 180px; }
    .nebula-2 { width: 240px; height: 240px; }
    .nebula-3 { width: 150px; height: 150px; }
}