
section {
    margin-top: 10px;
}
.index-type:hover {
    color: var(--color);
}

/* 轮播图容器 */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.3rem;
}

/* 轮播图包装器 */
.carousel-wrapper {
    display: flex;
    width: 100%;
    height: 0;
    padding-bottom: 40%; /* 宽高比 2.5:1 */
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

/* 轮播图轨道 */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /*transition: transform 0.3s ease-out;*/
}

.carousel-track.dragging {
    transition: none;
}

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

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    pointer-events: none; /* 防止拖拽时触发图片点击 */
}

/* 指示器 */
/* 指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;           /* 保持底部距离 */
    right: 30px;            /* 改为右对齐 */
    left: auto;             /* 移除左对齐 */
    transform: none;         /* 移除居中变换 */
    display: flex;
    gap: 10px;
    z-index: 10;
}


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

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding-bottom: 56.25%; /* 16:9 */
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding-bottom: 66.67%; /* 3:2 */
    }
}