/* c-message组件样式 */

.c-message {
    position: fixed;
    top: 60px;
    left: 50%;
    /* transform:translateX(-50%); */
    min-height: 40px;
    line-height: 40px;
    background: #fff;
    width: 430px;
    color: #666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .52), 0 0 6px rgba(0, 0, 0, .04);
    border-radius: 4px;
    z-index: 9999;
}

.c-message--main {
    padding-left: 15px;
    padding-right: 20px;
}

.c-message--icon {
    color: #fff;
    width: 24px;
    height: 24px;
    text-align: center;
    position: absolute;
    left: 15px;
    top: 40px;
    line-height: 40px;
}
.c-color--success{
    background-color: #f0f9eb;
    border-color: #e1f3d8;
}
.c-color--success .c-message--tip{
    color: #67c23c;
}

.c-color--error{
    background-color: #fef0f0;
    border-color: #fde2e2;
}
.c-color--error .c-message--tip{
    color: #f56c6c;
}

.c-color--info{
    background-color: #edf2fc;
    border-color: #edf2fc;
}
.c-color--info .c-message--tip{
    color: #909399;
}
.c-color--warning{
    background-color: #fdf6ec;
    border-color: #faecd8;
}
.c-color--warning .c-message--tip{
    color: #e6a23c;
}


.c-message--success {
    background: url(../images/icon_success.png) no-repeat 0 50%;
}

.c-message--error {
    background: url(../images/icon_error.png) no-repeat 0 50%;
}

.c-message--info {
    background: url(../images/icon_help.png) no-repeat 0 50%;
}

.c-message--warning {
    background: url(../images/icon_note.png) no-repeat 0 50%;
}

.c-message--question {
    background: url(../images/icon_question.png) no-repeat 0 50%;
}

.c-message--close {
    position: absolute;
    right: 10px;
    color: #999;
    text-decoration: none;
    cursor: pointer;
    font-size: 22px;
    top: 0;
    line-height: 34px;
    display: block;
    height: 40px;
}

.c-message--close:hover {
    color: #666;
}

@keyframes messageFadeInDown {
    0% {
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0)
    }
    100% {
        -webkit-transform: none;
        transform: none
    }
}

.c-message.messageFadeInDown {
    -webkit-animation-duration: .6s;
    animation-duration: .6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: messageFadeInDown;
    animation-name: messageFadeInDown;
}

@keyframes messageFadeOutUp {
    0% {
        opacity: 1
    }
    100% {
        opacity: 0;
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%)
    }
}

.c-message.messageFadeOutUp {
    -webkit-animation-duration: .6s;
    animation-duration: .6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both ;
    -webkit-animation-name: messageFadeOutUp;
    animation-name: messageFadeOutUp
}

.c-message--tip {
    font-size: 14px;
    margin-left: 25px;
}
.c-message--icon-tip{
    color: #fff;
    width: 24px;
    height: 24px;
    text-align: center;
    position: absolute;
    left: 10px;
    top: 8px;
    line-height: 40px;
}

.c-message--body {
    font-size: 14px;
    line-height: 25px;
    margin-bottom: 10px;
    margin-left: 30px;
}

.c-message--title {
    font-size: 16px;
    font-weight: bolder;
}

.c-message--button {
    margin-bottom: 10px;
    text-align: right;
}

.btn-confirm {
    background-color: #1677FF;
    border-color: #1677FF;
    margin-left: 10px;
    color: #fff;
}