/**
 * 聊天室样式 v1.0.0
 * Copyright 2011-2016 mengkunsoft, Inc.
 * Licensed under MIT 
 */
 *, ::before, ::after {
    box-sizing: border-box;
}
 html,body{
        height: 100%;
        margin: 0;
        padding: 0;
    }
body{
 /* 全局强制微软雅黑（最高优先级） */
 font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
 font-size:1rem;	
max-width:800px;
margin:0 auto;      
}
.mk-chat-box{
 /* 覆盖原有 font-family，强制微软雅黑 */
 font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
 font-size:16px;
 width: 100%;
 padding: 0;
 position:relative;
 overflow-y: scroll;
 overflow-x: hidden;
 height: calc(100% - 130px);
 border: 1px solid #eceff1;
 border-bottom:0;
}
/* 强制所有子元素也使用微软雅黑 */
body, body * {
 font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
}
a{color:#454545}
.top{background-color: #eceff1;height:40px;line-height:40px;text-align:center;}
.foot{line-height:50px;text-align:center;font-size:12px;}
.write{height:40px;width: 100%;}
.write input { 
    font-size: 16px;
    float: left;
    width: calc(100% - 60px);
    height: 40px;
    padding: 0 10px;
    border-radius:0;
    border: 0;
    outline: none;
    background:#eceff1;
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 400;
}
#fresh{color:#fff}
.send{color:#fff;text-decoration:none;width:60px; background-color: #007bff;display:inline-block;height: 40px;line-height:40px;text-align:center}
.send.disabled{background-color: #cccccc;}
.mk-chat-box .msg{
    margin: 4px 6px;
    position: relative;
    min-height: 40px;
    border: 0;
}
.mk-chat-box .right{
    text-align: right;
    margin-left: 64px;
}
.mk-chat-box .left{
    text-align: left;
    margin-right: 64px;
}

.mk-chat-box img.head{
    width: 32px;
    height: 32px;
    top: 8px;
    position: absolute;
    -moz-border-radius: 100%;
    -webkit-border-radius: 100%;
    border-radius: 100%;
    -moz-user-select: none;
    -o-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mk-chat-box .right img.head{
    right: 0;
}
.mk-chat-box .left img.head{
    left: 0;
}

.mk-chat-box .name{
    color: #8b8b8b;
    font-size: 12px;
    display: block;
    line-height: 18px;
}
.mk-chat-box .right .name{
    margin: 0 48px 2px 0;
}
.mk-chat-box .left .name{
    margin: 0 0 2px 48px;
}

.mk-chat-box .content{
    word-break: break-all;
    word-wrap: break-word;
    text-align: left;
    position: relative;
    display: inline-block;
    font-size: 14px;
    padding: 6px;
    line-height: 18px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    min-width: 9px;
    min-height: 18px;
}
.mk-chat-box .content img{
    width: 100%;
    *:width: auto;
    *:max-width: 100%;
    height: auto;
}
.mk-chat-box .content a{
    color: #0072C1;
    margin: 0 5px;
    cursor: hand;
}
.mk-chat-box .right .content{
    margin: 0 48px 0 0;
    border: 1px solid #78cdf8;
    background: #78cdf8;
}
.mk-chat-box .left .content{
    margin: 0 0 0 48px;
    border: 1px solid #CDD7E2;
    background: #CDD7E2;
}

.mk-chat-box .content:after{
    content: "";
    position: absolute;
    border-bottom: 8px solid rgba(255, 255, 255, 0);
}
.mk-chat-box .right .content:after{
    right: -12px;
    top: 8px;
    border-left: 12px solid #78cdf8;
}
.mk-chat-box .left .content:after{
    left: -12px;
    top: 8px;
    border-right: 12px solid #cdd7e2;
}
.mk-chat-box .tips{
    margin: 12px;
    text-align: center;
    font-size: 12px;
}
.mk-chat-box .tips span{
    display: inline-block;
    padding: 4px;
    background-color: #cccccc;
    color: #ffffff;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

.mk-chat-box .tips .tips-primary{
    background-color: #428bca !important;
}
.mk-chat-box .tips .tips-success{
    background-color: #5cb85c !important;
}
.mk-chat-box .tips .tips-info{
    background-color: #5bc0de !important;
}
.mk-chat-box .tips .tips-warning{
    background-color: #f0ad4e !important;
}
.mk-chat-box .tips .tips-danger{
    background-color: #d9534f !important;
}

.mk-chat-box::-webkit-scrollbar{width:8px;height:8px}
.mk-chat-box::-webkit-scrollbar-button:vertical{display:none}
.mk-chat-box::-webkit-scrollbar-track:vertical{background-color:transparent;}
.mk-chat-box::-webkit-scrollbar-track-piece{background-color:transparent;}
.mk-chat-box::-webkit-scrollbar-thumb:vertical{background-color:rgba(204,204,204,.3);border-radius:8px}
.mk-chat-box::-webkit-scrollbar-thumb:vertical:hover,
.mk-chat-box::-webkit-scrollbar-thumb:vertical:active {background-color: #8C8C8C}

.pagination{background-color: #fff;padding: 15px 0;width:100%;font-size:14px}
.pagination span,.pagination a{text-align: center;display: inline-block;text-decoration: none;border: 1px #CCC solid;padding:3px 10px;margin-left: -1px;box-sizing: border-box;line-height:24px;}
.pagination a:nth-child(2){border-bottom-left-radius: 4px;border-top-left-radius: 4px;}
.pagination a:last-child{border-bottom-right-radius: 4px;border-top-right-radius: 4px;}
.pagination .info{margin-right:5px;border-radius: 4px;}
.pagination .current{position: relative;color: #fff;background-color: #2d6dcc;border-color: #2d6dcc;font-weight: bold;z-index: 1;}
.pagination a:hover{color:#2d6dcc}
.black{background:#20201d}
.black .top {background:#333;color:#fff}
.black .mk-chat-box{border: 1px solid #333;}
.black .foot,.black .foot a,.black .top a{color:#fff}
.black .mk-chat-box .tips span {background-color:#20201d;}
.black .mk-chat-box .tips .tips-warning {background-color:#555 !important;}
.black .write input{background-color:#333;color:#fff}
/* 名字青色 */
.msg .name.cheater {
    color: #00ffff !important;
    font-weight: bold;
}
/* 消息整体浅青色背景 */
.msg.cheater-msg .content {
    border-color: #00ffff !important;
    background-color: rgba(0, 255, 255, 0.15) !important;
}