*{padding:0;margin:0}
body.chatPageBody{background: #eef2f7;min-height: 100vh;display: flex;align-items: center;justify-content: center;padding: clamp(16px, 4vw, 48px) clamp(16px, 5vw, 64px);box-sizing: border-box;}
.floatRight{float: right;}
.clear{clear: both;}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}
.el-menu.el-menu--horizontal{
    border-bottom: none;
    padding-bottom: 4px;
}
.el-menu--horizontal>.el-menu-item.is-active{
    border-bottom: 3px solid #409EFF;
}
.chatBg .el-tabs__header{margin: 0;}
.faceBtn, .faceBtn:after, .faceBtn {
    border: 1px solid;
}
.iconBtns{
    border-top: 0;
    color: #94a3b8;
    padding: 6px 6px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.iconBtns .iconBtn{
    margin: 0 !important;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease, background .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    background: #f1f5fb;
    border: 1px solid #e5eaf3;
    line-height: 1;
    overflow: visible;
}
.iconBtn > [class*=icono-]{
    margin: 0 !important;
    position: relative;
    top: 0;
    left: 0;
}
.iconBtns .iconBtn:hover{
    color: #64748b;
    transform: translateY(-1px);
    background: #e9f0ff;
}
.visitorFaceBtn{
    float: none;
    margin-left: 0;
}
.visitorFaceBox{
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(100% + 10px);
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    border-radius: 14px;
    border: 1px solid #e6ebf3;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15,23,42,.12);
    overflow: hidden;
    box-sizing: border-box;
}
.kefuFaceBox{
    position: absolute;
    bottom: 0px;
    z-index: 999;
}
.faceBtn {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    height: 28px;
    width: 28px;
    display: inline-block;
    vertical-align: middle;
    font-style: normal;
    color: #9da0a0;
    text-align: left;
    text-indent: -9999px;
    direction: ltr;
    position: relative;
    cursor: pointer;
}
.faceBtn:before {
    content: '';
    pointer-events: none;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    box-shadow: 8px 0 0 0, 0 0 0 2px inset;
    height: 4px;
    width: 4px;
    left: 7px;
    position: absolute;
    top: 29%;
}
.faceBtn:after {
    content: '';
    pointer-events: none;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    border-top-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
    height: 15px;
    left: 50%;
    position: absolute;
    top: 10%;
    width: 15px;
}
.imageBtn {
    width: 32px;
    height: 23px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    font-style: normal;
    color: #9da0a0;
    text-align: left;
    text-indent: -9999px;
    direction: ltr;
    border: 1px solid;
}
.imageBtn:before {
    content: '';
    position: absolute;
    width: 17px;
    height: 16px;
    left: -2px;
    top: 10px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    box-shadow: inset 0 0 0 32px, 10px -6px 0 0;
}
.imageBtn:after {
    content: '';
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    position: absolute;
    width: 3px;
    height: 3px;
    box-shadow: inset 0 0 0 32px;
    top: 5px;
    right: 5px
}
.visitorFolderBtn{
    float: none;
    margin-left: 0;
}
.folderBtn {
    display: inline-block;
    background-color: transparent;
    overflow: hidden;
    font-size: 1px;
}
.folderBtn:before {
    content: '';
    float: left;
    background-color: #9da0a0;
    width: 15px;
    height: 3px;
    margin-left: 2px;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    box-shadow: 2px 2px 0 0 #9da0a0;
}
.folderBtn:after {
    content: '';
    float: left;
    clear: left;
    background-color: #d4d6d6;
    width: 33px;
    height: 22px;
    border-radius: 1px;
}
.visitorImageBtn{
    float: none;
    margin-left: 0;
    margin-top: 2px;
}
.faceBox{
    width: 100%;
    background: #ffffff;
    z-index: 20;
    padding: 12px;
    display: none;
    max-height: min(40vh, 280px);
    overflow-y: auto;
    box-sizing: border-box;
}
.faceBoxList{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 8px;
}
.faceBoxList li{
    cursor: pointer;
    border: 1px solid #e6ebf3;
    width: 100%;
    overflow: hidden;
    padding: 8px 6px;
    text-align: center;
    border-radius: 10px;
    background: #f8fafc;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.faceBoxList li:hover{
    background: #edf3ff;
    border-color: #cfe0ff;
    transform: translateY(-1px);
}

@-webkit-keyframes bounce-up {
    25% {-webkit-transform: translateY(10px);}
    50%, 100% {-webkit-transform: translateY(0);}
    75% {-webkit-transform: translateY(-10px);}
}

@keyframes bounce-up {
    25% {transform: translateY(10px);}
    50%, 100% {transform: translateY(0);}
    75% {transform: translateY(-10px);}
}
.animate-bounce-up{ -webkit-animation: bounce-up 1.4s linear infinite;animation: bounce-up 1.4s linear infinite;}
.mainLogo{
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}
.mainVersion{
    margin-left: 5px;
    font-size: 12px;
}
.el-submenu__title i{
    color: #fff;
}
.el-container{
    height: 100%;
}
.el-aside{
    height: 100%;
    background: #222d32;
}
.textDark {color: #343a40;}
.bgInfo {background-color: #17a2b8}
.bgSuccess {background-color: #28a745}
.bgDanger {background-color: #dc3545}
.bgInfo {background-color: #17a2b8}
.smallBox {
    border-radius: .25rem;
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    display: block;
    margin-bottom: 20px;
    position: relative;
    padding: 10px;
    color: #fff;
}
.settingMain h2{
    margin-bottom: 20px;
}
.settingMain h3{
    font-size: 24px;
    margin-bottom: 10px;
}
.bigPic{
    background: #ccc;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: none;
    text-align: center;
}
/*客服聊天主板*/
.chatBg{background: #fff;border: solid 1px #e6e6e6;overflow: hidden;}
.chatLeft{height:100%;overflow:auto;}
.chatLeft .el-tabs__nav,.chatRight .el-tabs__nav {
    margin-left: 20px;
}
.chatRight{
    height: 100%;
    overflow: scroll;
    overflow: scroll!important;
}
.onlineUsers {
    padding: 4px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    border-bottom: solid 1px #e6e6e6;
}
.onlineUsers a{
    color: #333;
}
.onlineUsers:hover,.onlineUsers.cur{background-color: #f0f9eb;color: #67C23A;}
.imgGray {-webkit-filter: grayscale(100%);-ms-filter: grayscale(100%);filter: grayscale(100%);filter: gray;color:#888;}
.hasLastMsg{line-height: normal;}
.lastNewMsg{font-size: 12px;color: #7f7f7f;margin-top: 4px;overflow: hidden;height: 16px;}
/*客服页*/
.chatKfPageApp{
    max-width: 800px;
    margin:0 auto;
}
.chatCenter{background: #fff;max-width: 920px;width: min(920px, 100%);margin: 0 auto;border: 1px solid #e6ebf3;border-radius: 16px;box-shadow: 0 16px 36px rgba(15,23,42,.12);overflow: hidden;height: clamp(540px, 72vh, 760px);max-height: calc(100vh - 2 * clamp(16px, 4vw, 48px));display: flex;flex-direction: column;box-sizing: border-box;}
html, body, body.chatPageBody{height: 100%; overflow: hidden;}
body.chatPageBody{background: #eef2f7;}
.chatContext{
    width: 100%;
    text-align: left;
    position: relative;
    margin-bottom: 0;
    background: #f5f7fb;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chatBox{
    overflow-x: hidden;
    background: #f5f7fb;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.chatVisitorPage{
    height: auto;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}
.chatVisitorPage .chatBox{
    padding: 6px 16px 14px;
}
.chatBox .el-col{margin:12px 0;}
.chatBox .el-col-3{width: 52px;max-width: 52px;}
.chatBox .el-col-21{width: calc(100% - 52px);max-width: calc(100% - 52px);}
.chatUser{
    font-size: 12px;
    white-space: nowrap;
    color: #94a3b8;
    text-align: left;
    margin-top: -12px;
}
.chatMainPage{
    margin-top: 1px;
}
.chatContent{
    background-color: #fff;
    color: #1f2937;
    border: 1px solid #e6ebf3;
    padding: 10px 16px;
    word-break: break-all;
    position: relative;
    border-radius: 16px;
    display: inline-block;
    line-height: 1.55;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(15,23,42,.06);
}
a{color: #3b82f6;text-decoration: none;}
.chatContent img{max-width: 100%;height: auto;border-radius: 10px;}
.chatContent:before,.chatContent:after {
    content: "";
    display: block;
    position: absolute;
    width:0;
    height: 0;
    border: 6px solid transparent;
    border-right-color: #fff;
    left: -10px;
    top: 12px;
    z-index:1;
}
.chatContent:after {
    display: none;
}
/*.chatContent:after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: -10px;*/
/*    top: 13px;*/
/*    width: 0;*/
/*    height: 0;*/
/*    border-style: dashed;*/
/*    border-color: transparent;*/
/*    overflow: hidden;*/
/*    border-width: 10px;*/
/*    border-top-style: solid;*/
/*    border-top-color: rgb(255,255,255);*/
/*}*/
.chatBoxMe .chatContent{float: right;background-color: #e0ecff;border: 1px solid #cfe0ff;}
.chatBoxMe .chatContent:after{display: none;}
.chatBoxMe .chatContent:before{border-left-color: #e0ecff;border-right:none;right: -6px;left: auto;}
.chatBoxMe .el-col-3{float: right;text-align: right;}
.chatBoxMe .chatUser{text-align: right}
.chatArea{float: left;width: 85%;margin: 6px 0 0 4px;}
.chatArea .el-textarea__inner{padding: 4px 6px}
.btnArea{width: 10%;float: right;}
@media screen and (max-width: 500px) {
    body, body.chatPageBody{background: #fff;padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);}
    body.chatPageBody{display: block;align-items: stretch;justify-content: flex-start;}
    .chatCenter{border: none;box-shadow:none;margin: 0;border-radius: 0;width: 100%;max-width: 100%;height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));}
    @supports (height: 100svh) {
        .chatCenter{height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));}
    }
    .chatArea {width: 70%;}
    .btnArea{width: 20%;}
    .iconBtns{flex-wrap: wrap;row-gap: 6px;}
    .chatBoxSend{padding: 12px 12px calc(22px + env(safe-area-inset-bottom));}
    .chatInputRow{gap: 8px;}
    .chatSendBtn{min-width: 68px;}
    .chatVisitorPage .chatBox{padding: 4px 10px 12px;}
}

.chatHeader{
    height: clamp(48px, 7vh, 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #f8fafc;
    background: linear-gradient(90deg, #7ba7ff 0%, #5e94ff 50%, #7bbcff 100%);
    flex: 0 0 auto;
}
.chatHeaderMain{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.chatHeaderAvatar{
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.chatHeaderTitle{
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.2px;
}
.chatHeaderStatus{
    font-size: 12px;
    opacity: 0.85;
}
.chatBoxSend{background: #ffffff;position: relative;bottom: auto;width: 100%;max-width: none;z-index: 99;border-top: 1px solid #e8edf5;box-shadow: 0 -8px 18px rgba(15,23,42,.06);padding: 14px 16px calc(20px + env(safe-area-inset-bottom));flex: 0 0 auto;box-sizing: border-box;}
.chatInputRow{display: flex;align-items: stretch;gap: 10px;width: 100%;}
.chatBoxSend .el-input-group,
.chatBoxSend .el-input,
.chatBoxSend .el-input__inner,
.chatBoxSend .el-input-group__append,
.chatBoxSend .el-button{display: none !important;}
.chatInput{flex: 1 1 auto;min-width: 0;resize: none;height: 44px;line-height: 22px;border-radius: 12px;border: 1px solid #dfe7f3;background: #f7f9fd;padding: 10px 12px;font-size: 14px;color: #1f2937;box-sizing: border-box;outline: none;}
.chatInput:focus{border-color: #8ab4ff;box-shadow: 0 0 0 3px rgba(90,140,255,.15);background: #fff;}
.chatSendBtn{flex: 0 0 auto;min-width: 80px;height: 44px;border-radius: 12px;border: 0;background: #5c92ff;color: #fff;font-size: 13px;font-weight: 600;padding: 0 18px;cursor: pointer;}
.chatSendBtn:hover{background: #4a83ff;}
.chatSendBtn:disabled{background: #c7d7f8;color: #ffffff;cursor: not-allowed;}
body.embedChat{overflow: hidden;padding: 0;background: #fff;}
body, body.chatPageBody{overscroll-behavior: none;}
body.embedChat.chatPageBody{padding: 0;}
body.embedChat .chatCenter{height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));width: 100%;max-width: 100%;margin: 0;border-radius: 0;box-shadow: none;}
@supports (height: 100svh) {
    body.embedChat .chatCenter{height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));}
}
body.embedChat .chatContext{min-height: 0;}
body.embedChat .chatVisitorPage{min-height: 0;overflow-y: auto;}
body.embedChat .chatBoxSend{position: relative;padding-bottom: calc(18px + env(safe-area-inset-bottom));}
body.keyboard-open .chatBoxSend{position: relative;}
body.embedChat .visitorFaceBox{left: 8px;right: 8px;bottom: calc(100% + 8px);}
.chatBoxSendBtn{float: right;margin: 12px 4px 0 0;}

.chatBoxSend .el-input-group{
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 10px;
    box-sizing: border-box;
    flex-wrap: nowrap;
}
.chatBoxSend .el-input-group__prepend,
.chatBoxSend .el-input-group__append{
    flex: 0 0 auto;
}
.chatBoxSend .el-input__inner{
    border-radius: 12px;
    border-color: #dfe7f3;
    background: #f7f9fd;
    min-height: 46px;
    line-height: 22px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
}
.chatBoxSend .el-input-group__append{
    border-radius: 12px;
    border-color: #dfe7f3;
    background: #eef2f8;
    padding: 4px;
    margin-left: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
}
.chatBoxSend .el-input-group__append .el-button,
.chatBoxSend .el-button{
    flex: 0 0 auto;
}
.chatBoxSend .el-input{
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
}
.chatBoxSend .el-input__inner{
    flex: 1 1 auto;
}
.chatBoxSend .el-input-group__append .el-button{
    margin: 0 2px;
    min-height: 40px;
    width: auto;
    white-space: nowrap;
}
.chatBoxSend .el-button{
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    background: #5c92ff;
    border-color: #5c92ff;
    color: #fff;
    min-width: 64px;
}
.chatBoxSend .el-input-group__append .el-button,
.chatBoxSend .el-button{
    flex: 0 0 auto;
}
.chatBoxSend .el-button:hover,
.chatBoxSend .el-button:focus{
    background: #4a83ff;
    border-color: #4a83ff;
    color: #fff;
}
.footContact{text-align: center;}
.footContact a{font-size: 12px;color: #999;text-decoration: none;}
.chatTime{text-align: center;color: #94a3b8;margin: 14px 0;font-size: 12px;}
.chatTime span{display: inline-block;padding: 3px 12px;background: #e8edf6;color: #8a98ac;border-radius: 999px;}
.chatTimeHide{display: none;}
.visitorInfo .el-menu-item{
    font-size: 12px;
}
.chatRightTitle{
    color: #303133;
    height: 40px;
    line-height: 40px;
    padding:0 10px;
    font-size: 14px;
    border-bottom:1px solid #E4E7ED;
}
.chatRightTitle a{
    float: right;
    text-decoration: none;
    color: #519eff;
}
.replyBox{
    font-size: 12px;
    min-height: 300px;
    background: #fff;
    border: solid 1px #e6e6e6;
    margin-top: 5px;
    margin-bottom: 50px;
}
.replyItem:hover{
    background-color: #f0f9eb;
    color: #67C23A;
}
.replyContent{
    padding: 0 10px;
}
.replySearch{
    margin: 5px 7px;
    width: 96% !important;
}
.iconBtnsBox{
    position: relative;
    margin-top: 4px;
}
.kefuMainBg{background: #f5f5f5;border: solid 1px #e6e6e6;boder-top:none;}
.kefuFuncBtns{background:#fff;margin: 2px 0px;color: #7f7f7f;border-bottom: 1px solid #e6e6e6;font-size: 12px;padding: 5px 0px;}

.kefuFuncBox{
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding-bottom: 10px;
    background: #fff;
}
.kefuFuncBox .el-textarea{width: 99%;}
.kefuFolderBtn{vertical-align: middle;}
.visitorReply{
    font-size: 14px;
    line-height: 24px;
}
.visitorReplyTitle{
    color: #6b7280;
    margin-bottom: 2px;
}
.visitorReplyContent{
    color:#2563eb;
    cursor: pointer;
}
.visitorReplyContent:hover{
    color: #1d4ed8;
    text-decoration: underline;
}
.iconBtnsBox .kefuSendBtn{margin-right: 4px;float: right;}
.clear{clear:both;}
