.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}


.fade-in-linear-enter-active,.fade-in-linear-leave-active {
    transition: 0.2s;
}

.fade-in-linear-enter-from,.fade-in-linear-leave-to {
    opacity: 0
}

.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active {
    transition: 0.2s
}


.overlay.is-message-box .overlay-message-box{
    text-align: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 16px;
    overflow: auto;
}
.overlay.is-message-box .overlay-message-box{
    top: 150px;
    bottom: auto;
}
.message-box {
    display: inline-block;
    max-width: 420px;
    width: 100%;
    padding-bottom: 10px;
    vertical-align: middle;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ebeef5;
    font-size: 18px;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
    text-align: left;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    opacity: 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}
/* 添加激活状态 */
.message-box--active {
    opacity: 1;
}
.overlay.is-message-box .overlay-message-box::after {
    content: " ";
    display: inline-block;
    height: 100%;
    width: 0;
    vertical-align: middle;
}

.fade-in-linear-enter-active .overlay-message-box {
    -webkit-animation: msgbox-fade-in 0.3s;
    animation: msgbox-fade-in 0.3s
}

.fade-in-linear-leave-active .overlay-message-box {
    animation: msgbox-fade-in 0.3s reverse
}

@-webkit-keyframes msgbox-fade-in {
    0% {
        transform: translate3d(0,-20px,0);
        opacity: 0
    }

    100% {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

@keyframes msgbox-fade-in {
    0% {
        transform: translate3d(0,-20px,0);
        opacity: 0
    }

    100% {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

@-webkit-keyframes msgbox-fade-out {
    0% {
        transform: translate3d(0,0,0);
        opacity: 1
    }

    100% {
        transform: translate3d(0,-20px,0);
        opacity: 0
    }
}

@keyframes msgbox-fade-out {
    0% {
        transform: translate3d(0,0,0);
        opacity: 1
    }

    100% {
        transform: translate3d(0,-20px,0);
        opacity: 0
    }
}


.message-box-header {
    position: relative;
    padding: 15px;
    padding-bottom: 10px;
}
.message-box-title {
    padding-left: 0;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1;
    color: #303133;
}
.message-box-close {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
    border: none;
    outline: 0;
    background: 0 0;
    font-size: 16px;
    cursor: pointer;
}
.icon-close {
    --color: inherit;
    height: 1em;
    width: 1em;
    line-height: 1em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    fill: currentColor;
    color: #909399;
    font-size: inherit;
}
.message-box-content {
    padding: 10px 15px;
    color: #606266;
    font-size: 14px;
}
.message-box-container {
    position: relative;
}
.icon-warning {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px !important;
    color: #e6a23c;
    height: 1em;
    width: 1em;
    line-height: 1em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.message-box-message {
    padding-left: 36px;
    padding-right: 12px;
    word-break: break-word;
    margin: 0;
}
.message-box-btns {
    padding: 5px 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
.message-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    height: 32px;
    white-space: nowrap;
    cursor: pointer;
    color: #606266;
    text-align: center;
    box-sizing: border-box;
    outline: 0;
    transition: .1s;
    font-weight: 500;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    vertical-align: middle;
    -webkit-appearance: none;
    background-color: #ffffff;
    border: 1px solid #dcdfe6;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
}

.message-box-btns button:nth-child(2) {
    margin-left: 10px;
}
.message-button>span {
    display: inline-flex;
    align-items: center;
}
.button-confirm {
    background-color: #0097e0;
    cursor: pointer;
    color: #fff;
    border-color: #0097e0;
}
.button-cancel:focus,.button-cancel:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
    outline: 0;
}
.button-confirm:focus,.button-confirm:hover {
    color: #ffffff;
    background-color: #1eb1f9;
    outline: 0;
    border-color: #79bbff;
}





.move-up-enter-active,
.move-up-leave-active {
    animation-duration: .3s;
    animation-fill-mode: both;
    animation-play-state: paused;
}
.move-up-enter-active {
    animation-name: moveUpIn;
    animation-play-state: running;
    opacity: 0;
    animation-timing-function: ease-in-out;
}
.move-up-leave-active {
    animation-name: moveUpOut;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
}
@keyframes moveUpIn {
    0% {
        transform-origin: 0 0;
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform-origin: 0 0;
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes moveUpOut {
    0% {
        transform-origin: 0 0;
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform-origin: 0 0;
        transform: translateY(-100%);
        opacity: 0;
    }
}

.top-message {
    position: fixed;
    top: 16px;
    left: 0;
    width: 100%;
    text-align: center;
}
.top-message-warp {
    padding: 8px;
    text-align: center;
    transition: height 0.3s ease-in-out, padding 0.3s ease-in-out;
}
.top-message-warp:first-child {
    margin-top: -8px;
}
.top-message-content {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    background: #fff;
    position: relative;
}
.top-message-text {
    display: flex;
    align-items: center;
}
.top-message .icon-message-success {
    font-size: 24px !important;
    color: #67C23A;
    height: 1em;
    width: 1em;
    line-height: 1em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
}
.top-message .icon-message-error {
    font-size: 24px !important;
    color: #f56c6c;
    height: 1em;
    width: 1em;
    line-height: 1em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
}