 /*模态框主体样式*/
 .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/*模态框公共样式*/
.modal-content {
    background-color: #fefefe;
    margin: 50px auto 0;
    padding: 20px;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    animation: modal-show 0.3s;
}

/* 正常大小 */
.modal-normal {
    width: 600px;
}

/* 中等大小 */
.modal-medium {
    width: 400px;
}

/* 迷你大小 */
.modal-mini {
    width: 250px;
}

/* 隐藏 */
.modal-hide {
    animation: modal-hide 0.3s;
}

/* 展示动画 */
@keyframes modal-show {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 隐藏动画 */
@keyframes modal-hide {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-50px);
    }
}

/*关闭按钮*/
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255,0,0,0);
}

/*关闭按钮的鼠标点击和经过样式*/
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255,0,0,0);
}