/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 300%;
    height: 100%;
    animation: carouselAnimation 15s infinite ease-in-out;
}

/* 轮播图自动播放动画 */
@keyframes carouselAnimation {
    0%, 25% { transform: translateX(0); }
    35%, 60% { transform: translateX(-33.33%); }
    70%, 100% { transform: translateX(-66.66%); }
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 渐变背景样式 */
.carousel-slide.gradient-blue {
    background: linear-gradient(135deg, #290fd2 0%, #7b00fe 100%);
    box-shadow: inset 0 0 100px rgba(41, 15, 210, 0.3);
}

.carousel-slide.gradient-purple {
    background: linear-gradient(135deg, #3004e1 0%, #3a1693 100%);
    box-shadow: inset 0 0 100px rgba(48, 4, 225, 0.3);
}

.carousel-slide.gradient-pink {
    background: linear-gradient(135deg, #2e10db 0%, #151bc2 100%);
    box-shadow: inset 0 0 100px rgba(46, 16, 219, 0.3);
}

/* 装饰性元素 */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/grid-pattern.svg');
    opacity: 0.1;
}

/* 科技感装饰元素 */
.tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.tech-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 20s infinite linear;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.tech-circle:nth-child(1) {
    width: 160px;
    height: 160px;
    top: 15%;
    left: 10%;
    animation-duration: 25s;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.tech-circle:nth-child(2) {
    width: 240px;
    height: 240px;
    bottom: 20%;
    right: 15%;
    animation-duration: 30s;
    animation-direction: reverse;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.tech-circle:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 25%;
    animation-duration: 20s;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
}

.tech-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform-origin: left;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.tech-line:nth-child(4) {
    width: 60%;
    top: 30%;
    left: 20%;
    animation: pulse 3s infinite alternate;
}

.tech-line:nth-child(5) {
    width: 40%;
    bottom: 40%;
    right: 20%;
    animation: pulse 2s infinite alternate-reverse;
}

/* 新增科技粒子效果 */
.tech-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

.tech-particle:nth-child(6) {
    top: 25%;
    left: 30%;
    animation-duration: 20s;
}

.tech-particle:nth-child(7) {
    top: 60%;
    left: 70%;
    animation-duration: 25s;
    animation-direction: reverse;
}

.tech-particle:nth-child(8) {
    top: 40%;
    left: 80%;
    animation-duration: 18s;
}

.tech-particle:nth-child(9) {
    top: 70%;
    left: 40%;
    animation-duration: 22s;
}

/* 新增光晕效果 */
.tech-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 0, 254, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    animation: glowPulse 4s infinite alternate;
}

.tech-glow:nth-child(10) {
    top: 10%;
    right: 20%;
    animation-duration: 5s;
}

.tech-glow:nth-child(11) {
    bottom: 10%;
    left: 15%;
    animation-duration: 6s;
    animation-direction: reverse;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(20px); opacity: 0; }
}

@keyframes glowPulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tech-circle {
        display: none;
    }
    
    .tech-line {
        display: none;
    }
}