h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffd700;
    font-size: 2.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.description {
    text-align: center;
    color: #aaa;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 轮播容器 */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
}

/* 轮播轨道 */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* 单张图片容器 */
.carousel-slide {
    flex: 0 0 25%; /* 4张图片，每张占25%宽度 */
    padding: 10px;
    box-sizing: border-box;
}

.carousel-item {
    background: rgba(40, 40, 70, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.carousel-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.carousel-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-content h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.carousel-content p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 左右箭头按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
    left: 10px;
}

.carousel-btn.next-btn {
    right: 10px;
}

/* 指示器 */
.indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #ffd700;
    transform: scale(1.3);
}

/* 控制按钮 */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.control-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background: #444;
}

.control-btn.active {
    background: #ff416c;
}

/* 图片索引指示器 */
.slide-counter {
    text-align: center;
    margin-top: 15px;
    color: #aaa;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 33.33%; /* 平板显示3张 */
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 50%; /* 中等屏幕显示2张 */
    }
    
    .carousel-item {
        height: 380px;
    }
    
    .carousel-img {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .carousel-slide {
        flex: 0 0 100%; /* 手机显示1张 */
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
}