/* 首页特定样式 */

/* 轮播图区域 */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, #9B59B6, #3498DB, #2ECC71, #F1C40F, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleGlow 4s ease-in-out infinite;
}

@keyframes heroTitleGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(155, 89, 182, 0.5));
    }
    25% {
        filter: brightness(1.1) drop-shadow(0 0 25px rgba(52, 152, 219, 0.6));
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 30px rgba(46, 204, 113, 0.7));
    }
    75% {
        filter: brightness(1.1) drop-shadow(0 0 25px rgba(241, 196, 15, 0.6));
    }
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

/* 轮播图控制按钮 */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
}

.slider-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: linear-gradient(45deg, rgba(155, 89, 182, 0.9), rgba(52, 152, 219, 0.9));
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.6);
}

/* 轮播图指示点 */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: linear-gradient(45deg, #F1C40F, #FF6B6B);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.8);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(241, 196, 15, 0.8);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 107, 107, 1);
    }
}

/* 游戏展示区域 */
.games-section {
    padding: 80px 0;
    position: relative;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(155, 89, 182, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(46, 204, 113, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(241, 196, 15, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: sectionBgShift 10s ease-in-out infinite;
}

@keyframes sectionBgShift {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.games-section .container {
    position: relative;
    z-index: 2;
}

/* 特殊动画效果 */
.game-card {
    animation: cardFloat 3s ease-in-out infinite;
}

.game-card:nth-child(even) {
    animation-delay: 1s;
}

.game-card:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .slider-controls {
        padding: 0 15px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .games-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 350px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .games-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

/* 特殊视觉效果 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(155, 89, 182, 0.05) 3px,
            rgba(155, 89, 182, 0.05) 6px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(52, 152, 219, 0.05) 3px,
            rgba(52, 152, 219, 0.05) 6px
        );
    pointer-events: none;
    z-index: 1;
    animation: heroBgMove 20s linear infinite;
}

@keyframes heroBgMove {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 100px 100px, -100px 100px;
    }
}

/* 脉冲效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.8);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0);
    }
}

.play-btn:hover {
    animation: pulse 1.5s infinite;
}
