* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 轮播容器 */
.carousel-container {
    position: relative;
    max-width: 1600px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 轮播内容 */
.carousel-content {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 2s ease;
}

/* 轮播项 */
.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    object-fit: cover; /* 保持图片比例，覆盖容器 */
}

/* 切换按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-btn:hover {
    background-color: #ff4444;
    color: white;
}

/* 指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.indicator.active {
    background-color: white;
    width: 20px;
    border-radius: 5px;
}

/* 自适应样式 */
@media (max-width: 768px) {
    .carousel-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 120px;
    }
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}