/* 轮播图容器 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: #000;
}

/* 轮播图幻灯片 */
.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 轮播图图片 */
.swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide-active img {
    opacity: 1;
}

.swiper-lazy-preloader {
    width: 42px !important;
    height: 42px !important;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    z-index: 10;
    transform-origin: 50%;
    box-sizing: border-box;
    border: 4px solid var(--primary-color, #007bff);
    border-radius: 50%;
    border-top-color: transparent;
    background: none !important;
    animation: swiper-preloader-spin 1s infinite linear;
}

@keyframes swiper-preloader-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* 轮播图内容 */
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-content h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2em;
    margin-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.5;
    opacity: 0.95;
}

/* 导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    width: 44px;
    height: 44px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(0,0,0,0.5);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
}

/* 分页器样式 */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.9);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .slide-content {
        padding: 40px 30px;
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .slide-content p {
        font-size: 1em;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }

    .slide-content {
        padding: 30px 20px;
        max-width: 95%;
    }

    .slide-content h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .slide-content p {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}