.carousel{
    width: 100%;
    height: 100%;
    position: relative;
}
/* 轮播内容 */
.carousel-container{
    position: relative;
    width: 100%;
    height: 100%;
}

/* fade模式样式 */
.fade .carousel-container li{
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
.fade .carousel-container li img{
    width: 100%;
    height: 100%;
}
.fade .carousel-container li.active{
    display: block;
    opacity: 1;
    animation: carousel-fade 0.5s linear 0s 1 normal;
    animation-fill-mode: forwards;
}
@keyframes carousel-fade {
    0%{opacity: 0}
    100%{opacity: 1}
}

/* right模式样式 */
.right .carousel-container{
    overflow: hidden;
}
.right .carousel-container li{
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
.right .carousel-container li.active{
    display: block;
    opacity: 1;
    animation: carousel-right 0.5s linear 0s 1 normal;
    animation-fill-mode: forwards;
}
@keyframes carousel-right {
    0%{opacity: 0;transform: translateX(500px);}
    100%{opacity: 1;transform: translateX(0px);}
}
.right .carousel-container li.hide{
    display: block;
    opacity: 0;
    animation: carousel-right-hide 0.5s linear 0s 1 normal;
}
@keyframes carousel-right-hide {
    0%{opacity: 1;transform: translateX(0px);}
    100%{opacity: 0;transform: translateX(-500px);}
}

/* 索引按钮组 */
.carousel-indexGroup{
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.carousel-indexGroup li{
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    transition: 0.3s;
    margin: 0 15px;
    cursor: pointer;
}
.carousel-indexGroup li.active{
    background: rgb(63, 63, 213);
}