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

.carousel {
    width: 300px;
    height: 200px;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}
.carousel img {
    user-select:none;
    -webkit-user-drag:none;
}

.carousel > .carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.carousel > .carousel-track > .carousel-slide {
    flex: 0 0 100%;
}

/* 左右按钮 — 极简 */
.carousel .carousel-btn {
    width: 30px;
    aspect-ratio: 1;
    font-size: 12px;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev::before {
    content: "◀";
    display: block;
    line-height: 1;
}

.carousel-btn.next::before {
    content: "▶";
    display: block;
    line-height: 1;
}

.carousel .carousel-btn.prev {
    left: 10px;
}

.carousel .carousel-btn.next {
    right: 10px;
}

/* 指示器圆点 — 极简 */
.carousel .carousel-dots {
    height: 25px;
    padding: 5px 10px;
    bottom: 15px;
    gap: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    background: rgba(0, 0, 0, 0.25);
}

.carousel .carousel-dots > .carousel-dot {
    height: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    touch-action: manipulation;
}

.carousel .carousel-dots > .carousel-dot.active {
    background: #fff;
}