/* 轮播容器：自适应宽度，最大宽度限制，高度自适应 */
.carousel-container {
    position: relative;
    width: 100%; /* 自适应宽度：占屏幕90% */
    height: auto;
    overflow: hidden;
}

/* 轮播轨道：绝对定位填满容器，横向排列 */
.carousel-track {
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
}

/* 轮播项：自适应宽高，与轨道一致 */
.carousel-item {
    flex: 0 0 100%; /* 关键：占轨道100%宽度，实现自适应，无需固定像素 */
    width: 100%;
    height: 100%;
    position: relative;
}
.carousel-item::before {
    position: absolute;
    left: 0px;
    top: 0px;
    content: "";
    width: 100%;
    height: 300px;
    z-index: 22;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0px, rgb(0, 0, 0, 0.65) 100%);
}
.carousel-item::after {
    content: "";
    position: absolute;
    left: 0px;
    top: auto;
    right: 0px;
    bottom: 0px;
    height: 300px;
    background-image: linear-gradient(rgba(0, 0, 0, 0) 0px, rgb(0, 0, 0, 0.65) 100%);
    z-index: 21;
    opacity: 1;
}

@media screen and (max-width: 760px) {
    .carousel-item::before ,
    .carousel-item::after {
        height: 30px;
    }
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，填充容器，不变形 */
}


/* 指示器容器：自适应间距 */
.carousel-indicators {
    position: absolute;
    bottom: clamp(10px, 2vw, 20px); /* 底部间距自适应 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(8px, 1.5vw, 10px); /* 指示器间距自适应 */
    z-index: 10;
}

/* 指示器按钮：自适应大小 */
.indicator {
    width: clamp(8px, 1.5vw, 12px); /* 宽度自适应 */
    height: clamp(8px, 1.5vw, 12px); /* 高度自适应 */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    flex-shrink: 0;
}

/* 活跃状态指示器 */
.indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* 媒体查询：可选，针对小屏幕（手机）做额外优化 */
@media (max-width: 480px) {
    .carousel-container {
        width: 95%; /* 手机端占屏幕95%，更充分利用空间 */
        margin: 20px auto; /* 减小上下间距 */
    }
}

.title2 {
    /* transform: translateY(-100px);
    opacity: 0;
    width: 100%; */
}

.card-content {
    background: transparent;
    transform: translateY(100px);
    opacity: 0;
    width: 100%;
}

.text-content {
    /* background: transparent;
    transform: translateY(100px);
    opacity: 0;
    width: 100%; */
}

.card4 {
    border: 1px solid #2E54A1;
    height: 100px;
    border-radius: 10px;
    transition-property: all;
    overflow: hidden;
    padding: 10px;
    box-shadow: black;
    transform: translateY(100px);
    opacity: 0;
}

.card4 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}