/* 默认样式 */
* {
    margin: 0;
    padding: 0;

    a {
        text-decoration: none;
    }
    li {
        list-style: none;
    }
}

/* 轮播图盒子 */
.box {
    width: 940px;
    height: 505px;
    margin: 70px auto;
    position: relative;
    overflow: hidden;

    /* 上、下一页 */
    .prev,
    .next {
        opacity: 0;
        display: inline-block;
        cursor: pointer;
        width: 50px;
        height: 50px;
        position: absolute;
        top: 50%;
        color: #d2d0d0;
        z-index: 33;
        text-align: center;
        font-size: 40px;
        transform: translateY(-25px);
    }

    /* 上一页不同的属性 */
    .prev {
        left: 0;
        border-radius: 0 25% 25% 0;
    }

    /* 下一页不同的属性 */
    .next {
        right: 0;
        border-radius: 25% 0 0 25%;
    }

    /* 图片容器 */
    .images {
        position: absolute;
        top: 0;
        left: 0;
        width: 1000%;

        /* 图片 */
        li {
            list-style: none;
            float: left;

            img {
                width: 900px;
                height: 483px;
            }
        }
    }

    /* 小圆点盒子 */
    .dots {
        position: absolute;
        bottom: 10px;
        left: 50%;
        height: 13px;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, .3);
        border-radius: 7px;
        display: flex;

        /* 小圆点 */
        li {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border-color: white;
            background-color: rgb(0, 0, 0, 0.2);
            margin: 2px 5px;
            cursor: pointer;
        }

        /* 选择的小圆点 */
        .active {
            background-color: rgb(247, 243, 243);
        }
    }
}

/* 鼠标移入盒子显示上、下按钮 */
.box:hover .prev,
.box:hover .next {
    opacity: 1;
}

/* 鼠标移入上、下按钮，背景模糊 */
.box .prev:hover,
.box .next:hover {
    background-color: rgba(0, 0, 0, 0.2);
}
