﻿#chatbox {
    position: fixed;
    top: 91px;
    right: 0;
    bottom: 41px;
    left: 0;
    overflow: hidden;
    overflow-y: auto;
    margin: 0 auto;
    padding: 15px;
}

    #chatbox ul {
        overflow-x: hidden;
    }

        #chatbox ul li {
            position: relative;
            margin-bottom: 10px;
            padding-left: 60px;
            min-height: 68px;
            font-size: 0;
        }

.chat-text, .chat-user {
    display: inline-block;
    vertical-align: top;
    font-size: 15px;
}

.chat-user {
    position: absolute;
    left: 3px;
}

    .chat-user img {
        width: 40px;
        height: 40px;
        border-radius: 100%;
    }

    .chat-user cite {
        position: absolute;
        top: -2px;
        left: 40px;
        width: 500px;
        color: #999;
        text-align: left;
        white-space: nowrap;
        font-style: normal;
        font-size: 12px;
    }

        .chat-user cite img {
            position: absolute;
            width: 14px;
            height: 14px;
            border-radius: 0;
            vertical-align: middle;
        }

        .chat-user cite i {
            padding-left: 10px;
            font-style: normal;
        }

.chat-text {
    position: relative;
    margin-top: 25px;
    padding: 8px 15px;
    min-height: 22px;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
    line-height: 22px;
    word-break: break-all;
}

    .chat-text:after {
        position: absolute;
        top: 13px;
        left: -10px;
        overflow: hidden;
        width: 0;
        height: 0;
        border-color: #fff transparent transparent;
        border-style: solid dashed dashed;
        border-width: 10px;
        content: '';
    }

    .chat-text a {
        color: #33df83;
    }

    .chat-text img {
        max-width: 100%;
        vertical-align: middle;
    }

/*右边*/
.chat-main ul .chat-mine {
    padding-right: 60px;
    padding-left: 0;
    text-align: right;
}

.chat-mine .chat-user {
    right: 3px;
    left: auto;
}

    .chat-mine .chat-user cite {
        right: 40px;
        left: auto;
        text-align: right;
    }

        .chat-mine .chat-user cite i {
            padding-right: 10px;
            padding-left: 0;
        }

.chat-mine .chat-text {
    margin-left: 0;
    background-color: #5fb878;
    color: #fff;
    text-align: left;
}

    .chat-mine .chat-text:after {
        right: -10px;
        left: auto;
        border-top-color: #5fb878;
    }

/*公告*/
.gong {
    padding-right: 10px;
    padding-left: 40px;
    height: 40px;
    background: #fff url(gong.png) no-repeat 10px 10px;
    line-height: 40px;
}

    .gong a {
        display: block;
        overflow: hidden;
        padding-right: 10px;
        color: #999;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 400;
        font-size: 13px;
    }

/*底部*/
.chat-footer {
    position: fixed;
    right: 10px;
    bottom: 0px;
    left: 10px;
    margin: 0 auto;
    height: 42px;
}

.chat-send {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

    .chat-send input {
        padding-left: 5px;
        height: 40px;
        border: 0;
        border-radius: 3px;
        background-color: #fff;
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        flex: 1;
    }

    .chat-send button {
        margin-left: 5px;
        padding: 0 20px;
        height: 40px;
        border: 0;
        border-radius: 3px;
        background-color: #5fb878;
        color: #fff;
    }

    .chat-send .button-disabled, .chat-send .button-disabled:active {
        background-color: #d2d2d2 !important;
        color: #fff !important;
        cursor: not-allowed !important;
    }

.chat-tool {
    margin-right: 5px;
    width: 50px;
    height: 40px;
    border: 0;
    border-radius: 3px;
    background-color: #fff;
    font-size: 0;
    line-height: 40px;
}

    .chat-tool span {
        position: relative;
        display: inline-block;
        margin: 0 15px;
        vertical-align: top;
        font-size: 28px;
        cursor: pointer;
    }

/*表情*/
.face {
    position: fixed;
    right: 10px;
    bottom: 42px;
    left: 10px;
    display: inline-block;
    overflow: auto;
    margin: 0 auto;
    padding: 5px;
    padding-left: 5px;
    max-height: 115px;
    border: none;
    border-radius: 0;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,.1);
    text-align: left;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-duration: .2s;
    animation-duration: .2s;
}

.plfacebox {
    position: relative;
}

    .plfacebox li {
        position: relative;
        float: left;
        display: inline-block;
        padding: 5px;
    }

        .plfacebox li img {
            width: 20px;
            height: 20px;
            max-width: 100%;
            vertical-align: middle;
        }

/*点击加载*/
.loading {
    display: flex;
    padding: 5px 20px 20px;
    color: #afafaf;
    text-align: center;
    justify-content: center;
    align-items: center;
}

    .loading:after, .loading:before {
        display: block;
        width: 50px;
        height: 1px;
        background-color: #c4c3c3;
        content: '';
    }

    .loading:before {
        margin-right: 20px;
    }

    .loading:after {
        margin-left: 20px;
    }
