
#container{
  display: flex;
  justify-content: center; /* 水平居中 */
}

.layui-carousel {
  width: 100%; /* 确保容器宽度适中 */
}
.layui-carousel img {
  width: 100%; /* 确保图片宽度适中 */
  height: auto; /* 保持图片比例 */
  object-fit: contain;
}

#buttons{
    position: absolute;
    height: 10px;
    width: 80%;
    z-index: 2;
    bottom: 20px;
    left: 20px;
}

#buttons span{
    cursor: pointer;
    float: left;
    border: 1px solid #fff;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin-right: 8px; 
}

#desc{
    font-size: 16px;
    color: #222;
    z-index: 3;
    position: absolute;
    left: 20px;
    bottom: 40px;
}

@keyframes longbtn{
    0%{width: 10px;}
    100%{width: 20px;}
}

#buttons .on{
    background: #ccc;
    border-radius: 15px;
    animation: longbtn 0.5s ease; 
    width: 20px;
} 

.arrow{
    cursor: pointer;
    display: none;
    line-height: 39px;
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: 2;
    top: 150px;
    background: #fff;;
}

.arrow:hover{
    background: RGBA(0,0,0,0.7);
}

#prev{
    left: 10px;
}

#next{
    right: 10px;
}