/* 轮播图样式 */
.carousel-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 70px;
}

.carousel {
    position: relative;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    max-width: 800px;
    width: 90%;
}

.carousel-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.carousel-content .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
    margin: 0;
    padding: 0;
}

.carousel-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式轮播图 */
@media (max-width: 992px) {
    .carousel-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .carousel-section {
        height: 260px;
    }
    .carousel-content h2 {
        font-size: 2rem;
    }
    .carousel-content p {
        font-size: 1rem;
    }
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .carousel-content h2 {
        font-size: 1.5rem;
    }
    .carousel-content p {
        font-size: 0.9rem;
    }
    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}