.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 350px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    border-radius: 20px;
}

.carousel-slide {
    display: flex;
    transition: transform 0.8s ease;
    width: 100%;
    height: 100%;
    position: relative;
}

/* ✅✅✅ 核心修复：给图片外层的a标签加样式 【BUG根源就在这】 */
.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    flex-shrink: 0; /* 禁止a标签被压缩，每个a占满100%宽度 */
}

/* 图片自适应铺满样式 不变 */
.carousel-slide img {
    padding: 0;
    margin: 0;
    border: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 左上角申请轮播图按钮 - 透明背景+白色字体+白色细边框 不变 */
.apply-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px 16px;
	border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    transition: all 0.3s ease;
}
.apply-btn:hover {
    background-color: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* 前后按钮样式 不变 */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 10;
}

.prev {
    left: 10px;
    transform: translateY(-50%) translateX(-100px);
}

.next {
    right: 10px;
    transform: translateY(-50%) translateX(100px);
}

.carousel-container:hover .prev {
    transform: translateY(-50%) translateX(0);
}
.carousel-container:hover .next {
    transform: translateY(-50%) translateX(0);
}

/* 右下角缩小版圆点导航 不变 */
.dots {
    text-align: center;
    padding: 10px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    transform: translateX(0);
    z-index: 10;
    display: flex;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.dot.active {
    background-color: rgb(33, 117, 243);
}

/* 响应式设计 不变+同步适配a标签 */
@media (max-width: 768px) {
    .carousel-container {
        height: 190px;
    }
    .carousel-slide {
        height: 100%;
    }
    .carousel-slide a {
        width: 100%;
        height: 100%;
        flex-shrink: 0;
    }
    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .prev, .next {
        width: 30px;
        height: 30px;
    }
    .dots {
        bottom: 10px;
        right: 10px;
    }
    .dot {
        height: 6px;
        width: 6px;
        margin: 0 3px;
    }
    .apply-btn {
        padding: 5px 12px;
        font-size: 12px;
        border: 1px solid #fff;
    }
}