﻿/*动态额外类*/
.hidden {
    display: none !important;
}
.item-animate-fade-toggle {
    opacity: 1 !important;
}
.sheet-animate-slide-toggle {
    transform: translateX(0) !important;
}
/*聊天用户不在线的图片变灰滤镜*/
.user-offline img {
    /*-ms-filter: grayscale(1);*/
    /*filter: grayscale(1);*/
}
/*整体结构*/
.chat-container {
    position: relative;
    height: 100vh;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
}
.chat-bg {
    background-color: #f5f7fa;
}
.chat-window {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    background: #ffffff;
    box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
    flex-direction: row;
    width: 1024px;
    height: 650px;
    margin: 11vh auto 0;
    /*border-radius: 4px;*/
    overflow: hidden;
    /*border: 1px solid #bdbdbd;*/
}
.chat-body-container {
    width: calc(100% - 260px);
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}
.chat-header {
    width: 100%;
    height: 50px;
    background-color: #3a86ff;
    position: relative;
}
.chat-header-content{
    height: 50px;
    line-height: 50px;
    padding-left: 20px;
    font-size: 15px;
    color: #fff;
}
.chat-header .chat-close {
    position: absolute;
    top:50%;
    right: 5px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    text-align: center;
    cursor: pointer;
}
.chat-header .chat-close img {
    max-width: 20px;
    margin-top: 10px;
}
.chat-window .chat-body .chat-console {
    height: 160px;
    width: 100%;
}
/*侧栏客户信息*/
.chat-window .chat-aside {
    width: 260px;
    height: 100%;
    border-left: 1px solid #999999;
}
.chat-aside .chat-self {
    position: relative;
    padding: 25px;
    background-color: #FF7029;
    margin-right: -1px;
}
.chat-self > div {
    display: inline-block;
    vertical-align: middle;
}
.chat-self .self-avatar {
    height: 54px;
    width: 54px;
    padding: 1px;
    background-color: #ffffff;
    margin-right: 10px;
}
.chat-self .self-intro {
    width: calc(100% - 80px);
}
.chat-self .intro-name {
    color: #FFFFFF;
    font-size: 14px;
    margin-bottom: 3px;
}
.chat-self .intro-desc {
    color: #FFFFFF;
    font-size: 13px;
}
.chat-self .intro-desc > span:nth-last-child(n+2) {
    margin-right: 10px;
}
.chat-self .intro-desc > div {
    display: inline-block;
    vertical-align: middle;
}
.chat-self .intro-level {
    height: 20px;
    width: 20px;
    margin-right: 5px;
}
.chat-self .intro-country {
    height: 20px;
    width: 20px;
    margin-top: 3px;
}
/*侧栏后台用户*/
.chat-aside .chat-user-section {
    position: relative;
    height: 100%;
    padding: 20px 0;
}
.chat-aside .chat-user-section .chat-top-loading {
    position: absolute;
    top: 0;
    left: 0;
    height: 60px;
    width: 100%;
    padding: 20px;
    opacity: 0;
    transition: .2s ease;
}
.chat-aside .chat-user-section .chat-bottom-loading {
    position: absolute;
    top: 0;
    left: 0;
    height: 60px;
    width: 100%;
    padding: 20px;
    opacity: 0;
    transition: .2s ease;
}
.chat-user-section .chat-user-list {
}
.chat-user-section .chat-user-item {
    position: relative;
    opacity: 0;
    padding: 10px 25px;
    cursor: default;
    transition: .2s ease;
}
.chat-user-section .chat-user-item:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    height: 1px;
    width: calc(100% - 30px);
    background-color: #868686;
}
.chat-user-item > div {
    display: inline-block;
    vertical-align: middle;
}
.chat-user-item .user-img {
    margin-left: 5px;
    margin-right: 15px;
}
.chat-user-item .user-img img {
    height: 47px;
    width: 47px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}
.chat-user-item .user-content {
    width: calc(100% - 80px);
}
.chat-user-item .user-name {
    color: #363636;
    font-size: 14px;
    line-height: 27px;
}
.chat-user-item .user-desc {
    color: #969696;
    font-size: 12px;
    line-height: 27px;
}

/*中间主要内容*/
.chat-window .chat-body {
    width: 100%;
    height: calc(100% - 50px);
}
/*消息内容*/
.chat-window .chat-body .chat-content {
    position: relative;
    height: calc(100% - 160px);
    width: 100%;
    padding: 10px 15px 10px 0;
    overflow: hidden;
    border-bottom: 1px solid #A8A8A8;
}
.chat-window .chat-body .chat-content:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 60px;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 12%, rgba(255, 255, 255, 0.00) 75%);
    pointer-events: none;
}
/*消息相关*/
.chat-window .chat-body .chat-message-content {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.chat-message-content .chat-message-more {
    line-height: 50px;
    text-align: center;
    opacity: 0;
    transition: .2s ease;
}
.chat-message-content .chat-message-more span {
    font-size: 14px;
    cursor: pointer;
}
.chat-message-content .chat-message-more span:hover {
    text-decoration: underline;
}
.chat-message-content .chat-message-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 60px;
    width: 100%;
    padding: 20px;
    opacity: 0;
    transition: .2s ease;
    transform: translate(-50%,-50%);
    text-align: center;
}
.chat-message-content .chat-message-list {
    width: 100%;
    padding: 20px 10px 5px 15px;
    margin-bottom: 0;
    overflow: hidden;
}
/*消息*/
.message-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-content: flex-start;
    margin-bottom: 10px;
    cursor: default;
    opacity: 0;
    transition: .2s ease;
}
.message-item:last-child {
    margin-bottom: 0;
}
.message-item .item-img {
    width: 50px;
    height: 50px;
}
.message-item .item-img .img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    margin: auto;
}
.message-item .item-img .img-wrapper img {
    height: 40px;
    width: 40px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}
.message-item .item-content {
    width: 70%;
    margin-left: 10px;
    margin-right: 10px;
}
.message-item .item-name {
}
.message-item .item-bubble {
    display: inline-block;
    position: relative;
    padding: 8px 12px;
    min-height: 40px;
    color: #363636;
    font-size: 13px;
    background-color: #F3F3F3;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    /*white-space: pre-wrap;*/
    word-break: break-word;
    line-height: 24px;
}
.message-item .item-bubble>a {
    color: #363636;
    font-size: 16px;
    line-height: 27px;
    text-decoration: underline !important;
}
.message-item .item-bubble:before {
    content: '';
    position: absolute;
    top: 15px;
    left: -5px;
    height: 10px;
    width: 10px;
    background-color: #F3F3F3;
    transform: rotate(-45deg);
}
.message-item .item-bubble:hover {
    background-color: #eee;
}
.message-item .item-bubble:hover:before {
    background-color: #eee;
}
.message-item .item-bubble img.emoji-img {
    width: 24px;
    height: 24px;
    margin-left: 1px;
    margin-right: 1px;
    vertical-align: bottom;
}
.message-item .item-bubble .attachments-img-component {
    position: relative;
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    overflow: hidden;
}
.message-item .item-bubble .attachments-img-component:hover .attachments-func {
    opacity: 1;
}
.message-item .item-bubble .attachments-img-component .attachments-func {
    opacity: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    transition: .2s;
}
.message-item .item-bubble .attachments-img-component .attachments-func a {
    color: #393939;
    opacity: .5;
    transition: .2s;
    font-size: 18px;
    margin-left: 2px;
}
.message-item .item-bubble .attachments-img-component .attachments-func a:hover {
    opacity: 1;
}
.message-item .item-bubble .attachments-img-component img.attachments-img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
}
.message-item .item-bubble .attachments-file-component {
    width: 250px;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 8px 8px 4px 8px;
}
.message-item .item-bubble .attachments-file-component .image-wrapper {
    width: 50px;
    height: 50px;
    display: inline-block;
    vertical-align: top;
}
.message-item .item-bubble .attachments-file-component .image-wrapper img {
    max-height: 50px;
    max-width: 50px;
}
.message-item .item-bubble .attachments-desc {
    display: inline-block;
    vertical-align: top;
    width: 170px;
    margin-left: 10px;
}
.message-item .item-bubble .attachments-desc .attachments-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    height: 32px;
    -webkit-line-clamp: 2;
    color: #111111;
    font-size: 13px;
    line-height: 16px;
}
.message-item .item-bubble .attachments-desc .attachments-size {
    color: #999;
    font-size: 12px;
}
.message-item .item-bubble .attachments-desc .attachments-size span.pull-right{

}
.message-item .item-time {
    width: 100%;
    color: #777777;
}
.message-item.self-msg {
    flex-direction: row-reverse;
}
.message-item.self-msg .item-content {
    text-align: right;
}
.message-item.self-msg .item-bubble {
    text-align: left;
    background-color: #96ec69;
    transition: background-color .2s;
}
.message-item.self-msg .item-bubble:before {
    left: unset;
    right: -5px;
    transform: rotate(135deg);
    background-color: #96ec69;
    transition: background-color .2s;
}
.message-item.self-msg .item-bubble:hover {
    background-color: #96ec69;
}
.message-item.self-msg .item-bubble:hover:before {
    background-color: #96ec69;
}
.message-item.self-msg .item-time {
    text-align: right;
}
/*提示*/
.message-item.msg-tip .msg-tip-content {
    min-width: 150px;
    max-width: 400px;
    text-align: center;
    color: #7b8b90;
    font-size: 12px;
    margin: auto;
    background-color: rgba(0, 0, 0, .1);
    border-radius: 19px;
    padding: 2px 33px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.message-item.msg-tip .msg-tip-content:empty {
    display: none;
}
/*控制栏区域*/
.chat-console .console-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
    width: 100%;
    padding: 5px 20px;
}
/*应用菜单*/
.chat-console .console-menu .menu-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}
.chat-console .console-menu .menu-item i {
    font-size: 20px;
}
.chat-console .console-menu .menu-item:hover {
    background-color: #E7E8E9;
}
.chat-console .console-menu .menu-item:nth-last-child(n+2) {
    margin-right: 10px;
}
/*输入框*/
.chat-console .console-content {
    height: calc(100% - 40px);
    width: 100%;
    padding: 0 18px 16px 20px;
}
.chat-console .console-content:after {
    display: block;
    height: 0;
    clear: both;
}
.chat-console .console-content .console-input {
    border: 0;
    outline: 0;
    height: calc(100% - 30px);
    width: 100%;
    background-color: transparent;
    margin-bottom: 10px;
    resize: unset;
}
.chat-console .console-content .btn-chat-send {
    float: right;
    height: 22px;
    width: 55px;
    padding: 0 10px;
    border: 0;
    outline: 0;
    font-size: 12px;
    text-align: center;
    background-color: #ebebeb;
}
.chat-console .console-content .btn-chat-send:hover {
    float: right;
    border: 0;
    outline: 0;
    text-align: center;
    background-color: #c9c9c9;
}
/*其他动态*/
/*表情选择显示*/
.emoji-list {
    display: none;
    position: absolute;
    bottom: 35px;
    left: 0px;
    padding: 2px 0 2px 2px;
    width: 245px;
    overflow: hidden;
    border: 1px solid #bdc0c1;
    background-color: #FFFFFF;
    box-shadow: 0 -2px 10px #d6d5d5;
    border-radius: 3px;
    cursor: default;
}
.emoji-list.emoji-list-active {
    display: block;
}
.emoji-item {
    display: inline-block;
    vertical-align: top;
    float: left;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 3px;
}
.emoji-item:hover {
    border: 1px solid #bdc0c1;
}
.emoji-item:after {
    clear: bottom;
}
.emoji-item .emoji-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.emoji-item .emoji-wrapper img {
    width: 25px;
    height: 25px;
}
/*上传文件*/
input.chat-file-upload {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
/*遮罩相关*/
/*背景遮罩*/
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #000000;
    opacity: 0;
    transition: opacity .2s ease;
}
.dialog-overlay.overlay-active {
    opacity: .5;
}
/*对话框包裹层*/
.dialog-wrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}
/*通用对话框*/
.common-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 50px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    cursor: default;
    opacity: 0;
    transform: translate(-50%, calc(-50% - 10px));
    transition: .2s ease;
}
.common-dialog.dialog-active {
    opacity: 1;
    transform: translate(-50%, -50%);
}
/*提示对话框*/
.alert-dialog {
    display: flex;
    padding: 10px 15px 8px 15px;
    color: #f13535;
    font-size: 16px;
    background: #ffffff;
    text-align: center;
    border-radius: 4px;
}
.alert-dialog.touchable {
    cursor: pointer;
}
.alert-dialog .shown-icon {
    height: 25px;
    width: 20px;
    margin-right: 7px;
}
.alert-dialog .shown-icon img {
    margin-top: -5px;
}
/*通用对话框*/
.primary-dialog {
    padding: 20px;
    font-size: 14px;
    background: #ffffff;
}
.primary-dialog .dialog-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 8px;
}
.primary-dialog .dialog-header .header-title{
    color: #868686;
    font-size: 14px;
}
.primary-dialog .dialog-header .header-close{
    height: 20px;
    width: 20px;
}
.primary-dialog .dialog-body{
    margin-bottom: 20px;
}
.primary-dialog .dialog-bottom{
    text-align: center;
}
.primary-dialog .dialog-bottom .dialog-btn{
    height: 30px;
    min-width: 100px;
    padding: 0 10px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 0 !important;
    outline: 0 !important;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    transition: .3s ease;
}
.primary-dialog .dialog-bottom .dialog-btn:nth-last-child(n+2){
    margin-right: 20px;
}
.primary-dialog .dialog-bottom .dialog-btn.dialog-confirm{
    color: #ffffff;
    background-color: #FF7029;
}
.primary-dialog .dialog-bottom .dialog-btn.dialog-confirm:hover{
    background-color: #ff611b;
}
.primary-dialog .dialog-bottom .dialog-btn.dialog-cancel{
    color: #666666;
    background-color: #D8D8D8;
}
.primary-dialog .dialog-bottom .dialog-btn.dialog-cancel:hover{
    background-color: #d1d1d1;
}
.primary-dialog .dialog-close{
    cursor: pointer;
}
/*特殊*/
.smartphoto {
    z-index: 4000 !important;
}
/*特殊消息*/
.message-item .msg-content {
    white-space: normal;
}
/*通用问题*/
.message-item .msg-content.msg-question {
}
.message-item .msg-content.msg-question .question-title{
    color: #363636;
    font-size: 16px;
    line-height: 27px;
    font-family: TitilliumWeb-SemiBold;
}
.message-item .msg-content.msg-question .question-list{
}
.message-item .msg-content.msg-question .question-item{
    color: #363636;
    font-size: 16px;
    line-height: 27px;
    text-decoration: underline;
}
.message-item .msg-content.msg-question .question-item span{
    cursor: pointer;
}
/*链接卡片*/
.message-item .msg-content.msg-link {
    min-height: 110px;
}
.message-item .msg-content.msg-link a {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}
.message-item .msg-content.msg-link .item-link-img{
    height: 110px;
    width: 110px;
    margin-right: 10px;
    background-color: #FFFFFF;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    text-align: center;
}
.message-item .msg-content.msg-link .item-link-img .mmfont{
    color: #363636;
    font-size: 32px;
}
/*白板内容*/
.message-item .msg-content.msg-link .item-link-content{
    height: 100%;
    max-width: 170px;
    overflow: hidden;
    color: #363636;
    font-size: 14px;
    font-family: TitilliumWeb-SemiBold;
    line-height: 23px;
}
/*商品*/
.message-item .msg-content.msg-link.msg-link-product .item-link-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    max-width: 170px;
    overflow: hidden;
}
.message-item .msg-content.msg-link.msg-link-product .item-link-content .item-link-product-title{
    color: #363636;
    font-size: 14px;
    font-family: TitilliumWeb-SemiBold;
    line-height: 23px;
    margin-bottom: 10px;
}
.message-item .msg-content.msg-link.msg-link-product .item-link-content .item-link-product-sn{
    color: #363636;
    font-size: 12px;
    line-height: 23px;
    margin-bottom: 5px;
}
.message-item .msg-content.msg-link.msg-link-product .item-link-content .item-link-product-icon-list{
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.message-item .msg-content.msg-link.msg-link-product .item-link-content .item-link-product-icon{
    height: 15px;
    width: 45px;
}
.message-item .msg-content.msg-link.msg-link-product .item-link-content .item-link-product-icon:nth-last-child(n+2){
    margin-right: 8px;
}
/*订单*/
.message-item .msg-content.msg-link.msg-link-order .item-link-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    max-width: 170px;
    overflow: hidden;
}
.message-item .msg-content.msg-link.msg-link-order .item-link-content .item-link-contact-company,
.message-item .msg-content.msg-link.msg-link-order .item-link-content .item-link-contact-name,
.message-item .msg-content.msg-link.msg-link-order .item-link-content .item-link-contact-tel
{
    color: #363636;
    font-size: 14px;
    font-family: TitilliumWeb-SemiBold;
    line-height: 23px;
}
.message-item .msg-content.msg-link.msg-link-order .item-link-content .item-link-contact-tel {
    margin-bottom: 5px;
}
.message-item .msg-content.msg-link.msg-link-order .item-link-content .item-link-order-sn{
    color: #363636;
    font-size: 12px;
    line-height: 23px;
}
.message-item .msg-content.msg-link.msg-link-order .item-link-content .item-link-order-sn .sn-title{
    font-family: TitilliumWeb-SemiBold;
}

/*右边栏*/
.chat-aside .chat-section {
    margin: 10px;
    border-top: 3px solid #0a8ddf;
    background-color: #f2f2f2;
    padding: 10px 15px;
}
.chat-aside .chat-section .section-title {
    font-size: 15px;
    padding: 2px 0;
}

.chat-aside .chat-section .section-body {
    margin: 10px 0;
    min-height: 60px;
}
.chat-aside .chat-section .section-body .section-link-item {
    font-size: 12px;
    padding-bottom: 10px;
    line-height: 22px;
}
.chat-aside .chat-section .section-body  a{
    color: #505458;
    cursor: pointer;
}
.chat-aside .chat-section .section-body .section-icon-item {
    display: inline-block;
    width: 23%;
    vertical-align: top;
    text-align: center;
    font-size: 12px;
}
.chat-aside .chat-section .section-body .section-icon-item span{
    display: block;
}
.chat-aside .chat-section .section-icon-item .item-icon{
    width: 32px;
    height: 32px;
    border: 1px solid #e2e2e2;
    border-radius: 50%;
    margin: 0 auto;
    margin-bottom: 5px;
    background-color: #ffffff;
    display: table-cell;
    vertical-align: middle;
}

.chat-aside .chat-section .section-icon-item .item-icon img {
    width: 16px;
}
@media (max-width: 1024px) {
    .chat-window {
        width: 100%;
        margin: 0;
        height: 100%;
    }
    .pop-chat.mobile {
        left: 10%;
        top: 10%;
        width: 80%;
    }
    .chat-container{
        height: 600px;
    }
    .pop-chat .pop-chat-body{
        height: unset;
    }
}

@media (max-width: 768px) {
    .pop-chat.mobile {
        left: 0;
        top: 10%;
        width: 100%;
        height: 90vh;
    }
    .chat-container{
        height: 100%;
    }
    .pop-chat .pop-chat-body{
        height: 100%;
    }
    .chat-window {
        width: 100%;
        margin: 0;
        height: 100%;
    }
    .chat-body-container{
        width: 100%;
    }
    .chat-window .chat-aside {
        display: none;
    }
    .chat-window .chat-body .chat-content{
        padding: 10px;
    }
    .chat-header .chat-close{
        display: block;
    }
    .chat-message-content .chat-message-list{
        padding: 20px 5px 5px 5px;
    }
    .message-item .item-img{
        width: 45px;
        height: 45px;
    }
    .chat-console .console-content {
        height: calc(100% - 40px);
        padding: 0 10px 16px 10px;
    }
    .chat-console .console-content .btn-chat-send{
        height: 30px;
        width: 65px;
        position: absolute;
        bottom: 10px;
        right: 10px;
    }
}
