
.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 600px;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #fff;
}

/* 轨道 */
.track {
    display: flex;
    height: 100%;
    width: 100%;
}
.track {
    display: flex;
    width: 100%;
    /* 关键代码：添加过渡效果 */
    /* property: transform, duration: 0.5s, timing-function: ease-in-out */
    transition: transform 0.5s ease-in-out;
    
    /* 可选：提升动画性能，告诉浏览器该属性即将变化 */
    will-change: transform; 
}
/* 幻灯片 */
.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 极简指示器：底部小圆点 */
.indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #888;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active { background: #111; }
    
@media only screen and (max-width:1000px){
    .carousel {
        height: 400px;

    }
}