﻿.clearfix:before,
.clearfix:after {
    content: '.';
    display: block;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    font-size: 0;
    line-height: 0;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1;
}

.wechat-box {
    font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #394043;
    user-select: text;
    position: fixed;
    right: 38px;
    bottom: 0;
    z-index: 1000;
}

.wechat-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wechat-box ul li {
    margin: 0;
    padding: 0;
}

.chat-list-time {
    text-align:center
}
.chat-list-time > span {
    display: inline-block;
    padding: 3px 10px;
    background-color: #C4C4C4;
    color: #ffffff;
    font-size: 14px;
    border-radius: 3px;
}
.wechat-box .wechat-shandow {
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.45);
}

.wechat-box .wechat-wrap {
    position: relative;
    float: right;
    height: 40px;
    /* height: 452px; */
    z-index: 2;
    background: #fff;
}

.wechat-box .wechat-head {
    position: relative;
    top: 0;
    left: 0;
    width: 203px;
    height: 40px;
    padding-left: 36px;
    line-height: 40px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.wechat-box .head-wechat-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 16px;
    height: 16px;
    background: url(../images/wechat-sprite.png) no-repeat 0 -90px #fff;
    cursor: pointer;
}

.wechat-box .wechat-head-num {
    visibility: hidden;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    background: #e4393c;
}

.wechat-box .wechat-head-closebtn {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    float: right;
    width: 40px;
    height: 40px;
    text-indent: 999em;
    overflow: hidden;
    cursor: pointer;
}

.wechat-box .wechat-head-close-icon {
    position: absolute;
    top: 13px;
    right: 12px;
    width: 16px;
    height: 16px;
    background: url(../images/wechat-sprite.png) no-repeat -32px -74px #fff;
    cursor: pointer;
}

.wechat-box .wechat-head-closebtn:hover .wechat-head-close-icon {
    background: url(../images/wechat-sprite.png) no-repeat -48px -74px #fff;
}

.wechat-box .wechat-body {
    position: relative;
    visibility:hidden;
    height: 411px;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

.wechat-box .wechat-login-box {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.wechat-box .wechat-body-item {
    position: relative;
    height: 71px;
    overflow: hidden;
    cursor: pointer;
}

.wechat-box .wechat-body-item-info {
    position: relative;
    height: 70px;
    margin-left: 15px;
    border-bottom: 1px solid #e9f0ec;
    overflow: hidden;
    opacity: 1;
    transition: opacity .2s;
}

.wechat-box .wechat-body-item-info table {
    width: 100%;
    padding: 0;
    border-collapse: collapse;
}

.wechat-box .wechat-item-avatar {
    position: relative;
    width: 40px;
    height: 70px;
    line-height: 70px;
}

.wechat-box .wechat-item-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
    background: #f5f5f5;
}

.wechat-box .wechat-item-newmsg-badge {
    position: absolute;
    left: 60%;
    top: 16px;
    display: inline-block;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    background: #e4393c;
    font-style: normal;
}

.wechat-box .wechat-item-content {
    height: 40px;
    padding: 15px 3px 15px 12px;
}

.wechat-box .wechat-item-content span {
    display: block;
    width: 150px;
    line-height: 20px;
    white-space: nowrap;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wechat-box .wechat-item-content .name {
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.wechat-box .wechat-item-content .text {
    color: #777;
    font-size: 12px;
}

.wechat-box .wechat-item-time {
    position: absolute;
    right: 8px;
    top: 6px;
    color: #999;
    font-size: 12px;
}

.wechat-box .wechat-window {
    display: none; 
    position: relative;
    float: right;
    width: 388px;
    height: 452px;
    border-right: 1px solid #ddd;
    background: #e6e6e6;
    z-index: 5;
}

.wechat-box .window-loading,
.wechat-box .wechat-loading {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    text-align: center;
    background: rgba(0, 0, 0, .5);
}

.wechat-box .wechat-loading {
    line-height: 370px;
}

.wechat-box .chat-in .chat-text a 
{
    color: #009de8;
    cursor: pointer;
}
.wechat-box .chat-out .chat-text a 
{
    color: #fff;
    cursor: pointer;
}
.wechat-box .window-loading {
    line-height: 452px;
}

.wechat-box .window-loading-icon,
.wechat-box .wechat-loading-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(../images/loading.gif);
    background-size: 20px 20px;
    vertical-align: middle;
}

.wechat-box .window-loading-text,
.wechat-box .wechat-loading-text {
    font-size: 16px;
    margin-left: 6px;
    color: #ddd;
    line-height: 20px;
    vertical-align: middle;
}

.wechat-box .wechat-window-head {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 40px;
    line-height: 40px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.wechat-box .wechat-window-head .circle {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #55c211;
    margin: 0 2px 0 14px;
    border-radius: 50%;
    text-indent: 999em;
    overflow: hidden;
    vertical-align: middle;
}

.wechat-box .wechat-window-name {
    display: inline-block;
    font: 400 14px/40px "microsoft yahei", "\5FAE\8F6F\96C5\9ED1", "simhei", "\9ED1\4F53", "san-serif";
    color: #333;
    max-width: 310px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.wechat-box .wechat-window-closebtn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.wechat-box .wechat-window-close-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 16px;
    height: 16px;
    background: url(../images/wechat-sprite.png) no-repeat 0 -74px #fff;
    cursor: pointer;
}

.wechat-box .wechat-window-closebtn:hover .wechat-window-close-icon {
    background: url(../images/wechat-sprite.png) no-repeat -16px -74px #fff;
}

.wechat-box .wechat-window-body {
    position: absolute;
    left: 0;
    right: 0;
    top: 41px;
    bottom: 130px;
    overflow-x: hidden;
    overflow-y: auto;
}

.wechat-box .wechat-window-msgcontainer {
    margin: 0;
    padding: 0;
    list-style: none;
}
.wechat-box .get-history-box 
{
    margin: 16px 0;
    text-align: center;
}
.wechat-box .get-history-btn .get-history-icon 
{
    display: none;
    width: 16px;
    height: 16px;
    margin-top: -3px;
    margin-right: 3px;
    background: url(../images/loading.gif);
    background-size: 16px 16px;
    vertical-align: middle;
}
.wechat-box .get-history-loading .get-history-icon 
{
    display: inline-block;
}
.wechat-box .get-history-btn 
{
    font-size: 12px;
    line-height: 16px;
    color: #009de8;
    text-decoration: underline;
    cursor: pointer;
}
.wechat-box .wechat-window-msgcontainer .chat-time {
    margin: 16px 0!important;
    padding: 0 10px!important;
    color: #aaa;
    font-size: 12px;
    text-align: center;
}

.wechat-box .wechat-window-msgcontainer .chat-block {
    margin: 16px 0!important;
}

.wechat-box .wechat-window-msgcontainer .chat-avatar {
    width: 59px;
    text-align: center;
}

.wechat-box .wechat-window-msgcontainer .chat-out .chat-avatar {
    float: right;
}

.wechat-box .wechat-window-msgcontainer .chat-in .chat-avatar {
    float: left;
}

.wechat-box .send-status-box {
    width: 30px;
    height: 38px;
    text-align: center;
    line-height: 38px;
}

.wechat-box .chat-in .send-status-box {
    float: left;
    margin-left: 6px;
}

.wechat-box .chat-out .send-status-box {
    float: right;
    margin-right: 6px;
}

.wechat-box .send-msg-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    cursor: pointer;
}

.wechat-box .send-msg-icon-loading {
    background: url(../images/loading.gif);
    background-size: 18px 18px;
}

.wechat-box .send-msg-icon-error 
{
    display: none;
    width: 18px;
    height: 18px;
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    font-style: normal;
    border-radius: 50%;
    background: #e4393c;
}

.wechat-box .wechat-window-msgcontainer .chat-avatar a {
    display: inline-block;
    vertical-align: top;
    height: 34px;
}

.wechat-box .agentList-cur 
{
    background: #e6e6e6;
}

.wechat-box .wechat-window-msgcontainer .chat-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e6e6e6;
}

.wechat-box .wechat-window-msgcontainer .chat-content {
    position: relative;
    max-width: 224px;
    min-height: 14px;
    padding: 10px;
    border-radius: 5px;
    word-break: break-all;
}

.wechat-box .wechat-window-msgcontainer .chat-out .chat-content {
    float: right;
    color: #fff;
    background: #009de8;
}

.wechat-box .wechat-window-msgcontainer .chat-in .chat-content {
    float: left;
    color: #333;
    background: #fff;
}

.wechat-box .wechat-window-msgcontainer .chat-out .chat-arrow {
    position: absolute;
    top: 9px;
    right: -6px;
    width: 6px;
    height: 8px;
    background: url(../images/wechat-sprite.png) no-repeat -16px -90px #e6e6e6;
}

.wechat-box .wechat-window-msgcontainer .chat-in .chat-arrow {
    position: absolute;
    top: 9px;
    left: -6px;
    width: 6px;
    height: 8px;
    background: url(../images/wechat-sprite.png) no-repeat -22px -90px #e6e6e6;
}

.wechat-box .wechat-house-card {
    display: block;
    width: 224px;
    height: 54px;
    font-size: 0;
    overflow: hidden;
    color: #fff;
    text-decoration: underline;
}

.wechat-box .wechat-house-card .house-image {
    box-sizing: border-box;
    float: left;
    width: 54px;
    height: 54px;
    background: #e6e6e6;
    border-radius: 3px;
}

.wechat-box .chat-out .wechat-house-card .house-image {
    border: 1px solid #fff;
}

.wechat-box .wechat-house-card .house-card-detail {
    display: inline-block;
    width: 155px;
    height: 54px;
    margin-left: 11px;
    color: #333;
    font-size: 12px;
    line-height: 12px;
    overflow: hidden;
}

.wechat-box .wechat-house-card .house-card-title,
.wechat-box .wechat-house-card .house-card-describe,
.wechat-box .wechat-house-card .house-card-price {
    display: block;
    width: 155px;
    padding-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wechat-box .chat-out .wechat-house-card .house-card-title,
.wechat-box .chat-out .wechat-house-card .house-card-describe,
.wechat-box .chat-out .wechat-house-card .house-card-price {
    color: #fff;
}

.wechat-box .wechat-house-card .house-card-title {
    font-size: 14px;
    font-weight: 700;
    height: 20px;
    line-height: 20px;
}

.wechat-box .wechat-house-card .house-card-describe em {
    margin-right: 6px;
    font-weight: 400;
    font-style: normal;
}

.wechat-box .chat-content .chat-text {
    line-height: 18px;
    word-break: break-word;
}

.wechat-box .chat-content .chat-text img {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

.wechat-box .wechat-window-footer {
    box-sizing: border-box;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 130px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.wechat-box .wechat-window-editor {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #777;
    outline: none;
    line-height: 22px;
    resize: none;
    word-break: break-all;
}

.wechat-box .iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10;
}

.wechat-box .wechat-window-editor img {
    font-size: 0;
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

.wechat-box .wechat-window-editor:focus {
    color: #333;
}

.wechat-box .wechat-window-footer .editor-footer {
    margin-top: 12px;
    height: 32px;
    line-height: 32px;
}

.wechat-box .wechat-window-footer .send-btn,
.wechat-box .login-btn,
.wechat-box .get-data-btn {
    border: 0;
    width: 82px;
    height: 32px;
    line-height: 30px;
    color: #fff;
    text-align: center;
    background: #e4393c;
    border-radius: 5px;
    user-select: none;
    cursor: pointer;
    outline: none;
}

.wechat-box .wechat-window-footer .send-btn {
    float: right;
}

.wechat-box .wechat-window-footer .send-btn:hover,
.wechat-box .login-btn:hover,
.wechat-box .get-data-btn:hover {
    background: #009de8;
}

.wechat-box .wechat-window-footer .emoji-btn {
    float: left;
    margin-top: 7px;
    margin-left: 8px;
    width: 18px;
    height: 18px;
    background: url(../images/wechat-sprite.png) no-repeat -28px -90px #fff;
    cursor: pointer;
}

.wechat-box .wechat-window-footer .emoji-btn:hover {
    background: url(../images/wechat-sprite.png) no-repeat -46px -90px #fff;
}

.wechat-box .wechat-body-no-info {
    box-sizing: border-box;
    padding-top: 70px;
}

.wechat-box .wechat-body-no-info .head-img-box {
    height: 74px;
    text-align: center;
}

.wechat-box .wechat-body-no-info .head-img {
    display: block;
    position: relative;
    top: 0;
    left: 50%;
    margin-left: -34px;
    width: 68px;
    height: 74px;
    background: url(../images/wechat-sprite.png) no-repeat 0 0 #fff;
}

.wechat-box .no-login-text {
    margin: 17px auto 20px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.wechat-box .login-box {
    text-align: center;
}

.wechat-box .emoji-wrap {
    display: none;
    position: absolute;
    bottom: 44px;
    z-index: 100;
    width: 467px;
    height: 185px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
}

.wechat-box .emoji-box {
    margin: 0;
    padding: 0;
    list-style: none;
    height: 185px;
    border: 1px solid #D9D9D9;
    border-right: 0;
    border-radius: 3px;
}

.wechat-box .emoji-item-box {
    float: left;
    border: 1px solid #D9D9D9;
    height: 22px;
    width: 26px;
    text-align: center;
    overflow: hidden;
    margin: -1px 0 0 -1px!important;
    padding: 4px 2px!important;
    cursor: pointer;
}

.wechat-box .emoji-item-box:hover {
    position: relative;
    z-index: 2;
    border-color: #009de8;
}

.wechat-box .emoji-item-box img {
    width: 22px;
    height: 22px;
}

.wechat-box .loading-spot {
    display: inline-block;
    height: 1em;
    line-height: 1;
    text-align: left;
    vertical-align: -.25em;
    overflow: hidden;
    color: #ddd;
    margin-left: -2px;
    letter-spacing: 3px;
}

.wechat-box .loading-spot::before {
    display: block;
    content: '...\A..\A.';
    white-space: pre-wrap;
    animation: loadingSpot 2s infinite step-start both;
}

@keyframes loadingSpot {
    33% {
        transform: translateY(-2em);
    }
    66% {
        transform: translateY(-1em);
    }
}

.wechat-box .chat-img-box 
{
    font-size: 0;
}
.wechat-box .chat-img-box img {
    max-width: 100%;
    cursor: pointer;
}
.wechat-box .had-show-all 
{
    display: none;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-bottom: 1px solid #e9f0ec;
}
.wechat-box .get-agentList-error,
.wechat-box .wechatWindow-error 
{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    text-align: center;
    background: rgba(0, 0, 0, .5);
}
.wechat-box .agentList-error-content,
.wechat-box .wechatWindow-error-content 
{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    margin: auto;
}
.wechat-box .agentList-error-content 
{
    height: 100px;
}
.wechat-box .wechatWindow-error-content 
{
    height: 50px;
}
.wechat-box .agentList-error-text 
{
    line-height: 46px;
}
.wechat-box .wechatWindow-error-text 
{
    line-height: 32px;
    margin-right: 15px;
}
.wechat-box .chat-audio 
{
    position: relative;
    left: 0;
    top: 0;
    z-index: 1;
    min-width: 50px;
    height: 18px;
    cursor: pointer;
    user-select: none;
}
.wechat-box .audio-icon 
{
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
}
.wechat-box .audio-time 
{
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 12px;
}






.wechat-layer 
{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, .5);
}
.wechat-layer-close 
{
    position: absolute;
    right: 24px;
    top: 29px;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    font-size: 0;
    display: block;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    z-index: 100;
}
.big-wechat-img 
{
    display: block;
    position: relative;
    height: calc(100vh * 0.8);
    max-width: calc(100vh * 0.8 * 3 / 2);
    margin: 10vh auto;
    overflow: hidden;
}
.send-tip {
    float: right;
    margin-right: 10px;
    font-size: 12px;
    color: #666;
}