.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 30px 0;
    color: #000000;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.section {
    margin: 50px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #1a2a6c;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a2a6c;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.carousels-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.carousel-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.carousel-wrapper:hover {
    transform: translateY(-10px);
}

.carousel-container {
    position: relative;
    height: 580px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.carousel-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.slide-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 90%;
    opacity: 0.9;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-play-pause {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-play-pause:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-title {
    text-align: center;
    padding: 20px;
    background: #1a2a6c;
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1.3rem;

}

.carousel-btn:hover {

    border-color: white;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 使用CSS绘制的箭头 */
.fallback-arrow {
    display: block;
    width: 20px;
    height: 25px;
    position: relative;
}

/* 左箭头 */
.fallback-arrow.left::before,
.fallback-arrow.left::after {
    content: "";
    position: absolute;
    background-color: white;
    width: 25px;
    height: 4px;
    border-radius: 2px;
    top: 50%;
    left: 0;
}

.fallback-arrow.left::before {
    transform: translateY(-50%) rotate(-45deg);
    transform-origin: left bottom;
}

.fallback-arrow.left::after {
    transform: translateY(-50%) rotate(45deg);
    transform-origin: left top;
}

/* 右箭头 */
.fallback-arrow.right::before,
.fallback-arrow.right::after {
    content: "";
    position: absolute;
    background-color: white;
    width: 25px;
    height: 4px;
    border-radius: 2px;
    top: 50%;
    right: 0;
}

.fallback-arrow.right::before {
    transform: translateY(-50%) rotate(45deg);
    transform-origin: right bottom;
}

.fallback-arrow.right::after {
    transform: translateY(-50%) rotate(-45deg);
    transform-origin: right top;
}


/* 响应式设计 */
@media (max-width: 1100px) {
    .carousels-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .carousel-container {
        height: 350px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 300px;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-content h3 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
