/* 新增：隐藏作为数据源的原始图片 */
.carousel-container .carousel-source-img {
    display: none;
}

/* --- 以下样式与之前保持一致 --- */

.carousel-container {
    position: relative;
    width: 600px;
    /* 设定宽度 */
    height: 400px;
    /* 设定高度 */
    margin: 50px auto;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
}

/* 导航按钮 */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    opacity: 0.8;
}

.carousel-nav-btn:hover {
    opacity: 1;
}

#prev-btn {
    left: 10px;
}

#next-btn {
    right: 10px;
}

/* 指示点 */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}
/* CSS for the 2-Item Auto Carousel */

/* 1. 容器：显示两张图片的视窗，水平居中 */
#test2.sysh_con {
    position: relative;
    width: 410px;
    /* 2张图 * 200px + 1个间距 * 10px = 410px */
    height: 120px;
    /* 图片高度 */
    margin: 0 auto;
    /* 容器水平居中 */
    overflow: hidden;
    /* 隐藏超出视窗的内容 */
    padding: 0;
}

/* 2. 轮播列表的父元素：使用 Flexbox 实现 ul 垂直居中 */
#test2 .pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 垂直居中的关键 */
    display: flex;
    align-items: center;
    /* 垂直居中对齐 ul */
}

/* 3. 滚动列表 (ul) */
#test2 .pic ul {
    list-style: none;
    margin: 0;
    padding: 0;

    /* 滚动关键：通过 left 属性移动 */
    position: relative;
    left: 0;

    white-space: nowrap;
    /* 强制所有列表项在一行显示 */
    height: 100%;

    /* 确保 ul 里面的 li 也能对齐 */
    display: flex;
    align-items: center;
}

/* 4. 列表项 (li) */
#test2 .pic ul li {
    display: inline-block;
    /* 水平排列 */
    width: 200px;
    /* 图片宽度 */
    margin-right: 10px;
    /* 列表项之间的间距 */
    text-align: center;
    vertical-align: middle;
    height: 120px;
}

#test2 .pic ul li img {
    display: inline-block;
    width: 200px;
    height: 120px;
}