.carousel {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

img {
    width: 100%;
    vertical-align: middle;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; /* 圆的直径 */
    height: 30px; /* 圆的直径 */
    background-color: #1f2d3d1c;
    border: none;
    cursor: pointer;
    border-radius: 50%; /* 使按钮变成圆形 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* 调整箭头大小 */
    color: white; /* 箭头颜色 */
    line-height: 30px;
    text-align: center;
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.3s; /* 平滑过渡效果 */
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel:hover .prev,
.carousel:hover .next {
    opacity: 1; /* 当鼠标悬停时显示按钮 */
}

.indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.indicator {
    width: 30px; /* 更宽的横线 */
    height: 2px; /* 更薄的线 */
    background-color: #BBBBBB4C;
    margin: 0 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.indicator.active {
    background-color: #ffffff; /* 激活状态的颜色 */
}
.indicator:hover {
    background-color: #ffffff; /* 悬停时的颜色 */
}
