﻿.chatContainer,.chatContainer div, .chatContainer ul, .chatContainer li, .chatContainer p{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
/* 设置滚动条的样式 */
::-webkit-scrollbar {
    width:8px;
}
/* 滚动条 */
::-webkit-scrollbar-track {
    border-radius:8px;

}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    border-radius:3px;
    background:#D7D7DD;
    -webkit-box-shadow:#ccc;
}
::-webkit-scrollbar-thumb:window-inactive {
    background: #D7D7DD;
}
/*按钮样式*/
.btn-default-styles {
    outline: none;
    resize: none;
    border: none;
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    background: #bbb;
    color: #fff;
    border-radius: 4px;
}
.btn-default-styles:focus {
    outline: none;
}
.btn-default-styles:hover {
    background: #c5c5c5;
    animation: anniu 1s infinite;
}
.btn-default-styles:active {
    box-shadow: 0 2px 3px rgba(0, 0, 0, .2) inset;
}
.chatContainer{
    /*
    left: 0;
    right: 0;
    bottom: 20px;
    bottom: 20px;
    text-align: center;
    background: black;

    绝对居中，需要调整
    宽度的一半 370/2=185
    高度的一半 570/2=285  chatBox-head + chatBox-info=75+495=570
    */
    position: fixed;
    width: 370px;
    height: 570px;
    top: 50%;
    left: 50%;
    margin: auto;
    margin: -285px 0px 0px -185px;
}
.chatBtn{
    width: 50px;
    height: 50px;
    background: #01bef0;
    color: #fff;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    right: 0;
    overflow: hidden;
}
.chatBtn:hover{
    background: #01b3df;
    box-shadow: none;
}
.chatBtn>i{
    font-size: 25px;
}
.chatBox{
    bottom: 0;
    width: 370px;
    min-width: 320px;
    height: 570px;
    border-radius: 10px;
    background: #f5ecff;
    position: absolute;
    overflow: hidden;
    border: solid 1px #d5d5d5;
    box-shadow: 1px 1px 2px #c0c0c0;
    z-index: 105;
}
.chatBox-head{
    /* 聊天背景 */
    width: 100%;
    height: 75px;
    background: #08A2E9;
    background-image: linear-gradient(-45deg, #6DCEFB, #08A2E9);
    position: absolute;
    top: 0;
    left: 0;
}
.chatBox-head-one{
    width: 100%;
    height: 75px;
    line-height: 75px;
    color: #fff;
    font-size: 20px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}
.chatBox-head-two{
    width: 100%;
    height: 75px;
    color: #fff;
    padding: 10px 10px;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.chat-search{
    width: 100%;
    height: 55px;
    line-height: 55px;
    color: #fff;
    background: #ACF5F5;
    background-image: linear-gradient(-45deg, #B6E6E6, #ACF5F5);
    text-align: center;
    top: 0;
    left: 0;
}
.chat-return{
    float: left;
    width: 55px;
    height: 55px;
    line-height: 55px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    margin-right: 5px;
}
.chat-return:hover{
    background: #0188b7;
}
.chat-close{
    float: right;
    width: 55px;
    height: 55px;
    line-height: 55px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}
.chat-close:hover{
    background: #0188b7;
}
.chat-people{:hover
    display: inline-block;
    vertical-align: middle;
    line-height: 55px;
    margin-left: 5px;
}
.chat-people>div:nth-of-type(1){
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eee;
    overflow: hidden;
}
.chat-people>div:nth-of-type(1)>img{
    width: 50px;
    height: 50px;
}
.chat-people>div:nth-of-type(2){
    width: 165px;
    text-align: left;
    height: 55px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#ChatInfoID {
    display: none;
}

.ChatInfoHead {
    margin-top: 4px;
}

.ChatInfoHeadImg {
    border-radius:50%;
    border:2px solid #fff;
}
.chatBox-info{
    width: 100%;
    height: 495px;
    background: #E2E2DF;
    background-image: linear-gradient(-45deg, #F4F4F3, #E2E2DF);
    text-align: left;
    position: absolute;
    top: 75px;
    left: 0;
}
.chatBox-list{
    margin-top: 0px;
    width: 100%;
    overflow-y: auto;
}

.chat-list-people{
    width:100%;
}
.chat-list-people:hover{
    width: 100%;
    cursor: pointer;
    background: #fff;
    background-image: linear-gradient(-45deg, #F4F4F3, #EFFCD0);
    display: inline-block;
}

.chat-list-people>div{
    height: 55px;
    display: inline-block;
    vertical-align: middle;
    margin-left: -10px;
}
.chat-list-people>div:nth-of-type(1){
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    overflow: hidden;
}
.chat-list-people>div:nth-of-type(1)>img{
    width: 40px;
    height: 40px;
}
.chat-name{
    width: auto;
}
.chat-name>p{
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.chat-name>p:nth-of-type(1){
    line-height: 55px;
}
.chat-list-people>div.message-num{
    display: inline-block;
    height: auto;
    min-width: 10px;
    padding: 3px 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 10px;
    margin-right: 15px;
    margin-top: 18px;
    color: #fff;
    background: #f46266;
    float: right;
    display:none;
}

.chat-message {
    word-wrap:break-word;
}

.chat-message hr {
    height:1px;
    border:none;
    border-top:1px dashed #B9BDBE;
}

.chat-head a {
    text-decoration: none;
    color: #fff;
    outline: none;
}

.chat-head a:hover{
    color: #84DEEE;
}

.chat-message a {
    text-decoration: none;
    color: #32A1BB;
    outline: none;
}

.chat-message a:hover{
    color: #F56A4B;
}

.chatBox-kuang{
    width: 100%;
    height: 495px;
    display: none;
    overflow-y: scroll;
}
.chatBox-content{
    width: 100%;
}
.chatBox-content-here{
    width: 100%;
    overflow-y: scroll;
}
.clearfloat:after{
    display:block;
    clear:both;
    content:"";
    visibility:hidden;
    height:0
}
.clearfloat{
    zoom:1;
    margin: 10px 10px;
}
.clearfloat .right{
    float: right;
}
.author-name{
    text-align: center;
    margin: 15px 0 5px 0;
    color: #888;
}
.clearfloat .chat-message{
    max-width: 252px;
    text-align: left;
    padding: 8px 12px;
    border-radius: 4px;
    word-wrap:break-word;
    display: inline-block;
    position: relative;
}
.clearfloat .left .chat-message{
    background: #FFF;
    min-height: 36px;
}
.clearfloat .left .chat-message:before{
    position: absolute;
    content: "";
    top: 8px;
    left: -6px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #FFF;
}
.clearfloat .right{
    text-align: right;
}
.clearfloat .right .chat-message{
    background: #fff;
    color: #000;
    text-align: left;
    min-height: 36px;
}
.clearfloat .right .chat-message:before{
    position: absolute;
    content: "";
    top: 8px;
    right: -6px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #fff;
}
.clearfloat .chat-avatars{
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eee;
    vertical-align: top;
    overflow: hidden;
}
.clearfloat .chat-avatars>img{
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.clearfloat .left .chat-avatars{
    margin-right: 10px;
}
.clearfloat .right .chat-avatars{
    margin-left: 10px;
}
.chatBox-send{
    width: 100%;
    padding: 10px 5px;
    background: #eee;
    border-top: 1px #D0D0D0 solid;
    position: absolute;
    bottom: 0;
    left: 0;
}
.div-textarea{
    width: 100px;
    min-height: 20px;
    max-height: 100px;
    _height: 120px;
    margin-left: 10px;
    padding: 3px;
    outline: 0;
    background: #fff;
    border-radius: 4px;
    font-size: 16px;
    line-height: 20px;
    word-wrap: break-word;
    overflow-x: hidden;
    overflow-y: auto;
    /*纯文本*/
    user-modify: read-write-plaintext-only;
    -webkit-user-modify: read-write-plaintext-only;
    -moz-user-modify: read-write-plaintext-only;

}
.div-textarea:empty:before{
    content: attr(placeholder);   /* placeholder 是HTML5中input的属性,但该属性并不支持除input以外的元素*/
    color: #ccc;
}
/*焦点时内容为空*/
.div-textarea:focus:before{
    content:none;
}

.div-textarea:focus{
    box-shadow: 0 0 15px rgba(82, 168, 236, 0.6);
}
.chatBox-send>div{
    float: left;
}
.chatBox-send>div:nth-of-type(3){
    font-size: 0;
}
.chatBox-send>div button{
    padding: 1px 4px;
    margin-left: 6px;
}
#chat-emoji{
    position: relative;
}
.hidden{
    display: none;
}
.emoji-photo{
    width: 200px;
    height: 160px;
    background: #ffffff;
    position: absolute;
    top: -160px;
    right: 25px;
    text-align: left;
    border-radius: 5px;
    border: solid 1px #c5c5c5;
    display: none;
}
.emoji-photo::before{
    content: '';
    position: absolute;
    border-top: solid 7px #c5c5c5;
    border-left: solid 9px transparent;
    border-right: solid 9px transparent;
    bottom: -7px;
    right: 26px;
}
.emoji-photo::after{
    content: '';
    position: absolute;
    border-top: solid 7px #fff;
    border-left: solid 10px transparent;
    border-right: solid 10px transparent;
    bottom: -5px;
    right: 30px;
}
.emoji-photo>ul{
    margin: 0;
    width: 200px;
    height: 160px;
    padding: 3px 2px;
    list-style: none;
}
.emoji-photo>ul>li{
    float: left;
    height: 30px;
    margin-left: 2px;
}
.emoji-picker-image{
    display: inline-block;
    width: 30px;
    height: 30px;
    background: url(/img/emoji.png) no-repeat;
    background-size: 200px auto;
    cursor: pointer;
}
.emoji-photo>ul>li span.emoji-picker-image:hover{
    border: solid 1px #f5f5f5;
}
.chat-message img{
    width: auto;
    max-width: 220px;
    min-width: 10px;
    height: auto;
    min-height: 10px;
}

@media all and (max-width: 768px) {
    .chatBox{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}
@media all and (max-width: 370px){
    .chat-name{
        width: 250px;
    }
    .chat-people>div:nth-of-type(2){
        width: 120px;
    }
    .clearfloat .chat-message{
        max-width: 240px;
    }
}

#box drag {
    cursor: move;
    margin: auto;
    height: 275px;
}

.stranger {
    color: #776B33;
    font-weight: 300;
    font-style: italic;
}

.stranger-id {
    color: #ccc;
    font-weight: 200;
    font-style: italic;
}

.stranger-words {
    color: #A4BE89;
    font-weight: 200;
    font-style: italic;
}

