*{padding:0;margin:0}
.floatRight{float: right;}
.clear{clear: both;}
.visitorBody{
    background-color: #4c4c4c;
}
.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;
}
#app {
    width: 100%;
    height: 100%;
}
.chatBg .el-tabs__header{margin: 0;}


.visitorFaceBtn{
    float: left;
    margin-left: 5px;
}

.visitorFaceBox{
    position: absolute;
    bottom: 85px;
}
.visitorIconBtns{
    margin-right: 8px;
    transform: scale(0.8);
}
.visitorIconBtns:hover{
    color:#484848;
}

.kefuFaceBox{
    position: absolute;
    bottom: 0px;
    z-index: 999;
}

.faceBox{
    width: 100%;
    background: #fff;
    z-index: 99999999;
    padding: 2px;
}
.faceBoxList{
    list-style: none;
    padding: 0;
    margin: 0;
}
.faceBoxList li{
    cursor: pointer;
    float: left;
    border: 1px solid #e8e8e8;
    width: 28px;
    overflow: hidden;
    margin: -1px 0 0 -1px;
    padding: 4px 2px;
    text-align: center;
}

@-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-container{
    height: 100%;
}
.el-aside {
    height: 100%;
    background: #fff;
}
.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%;
    background: #fff;
    overflow-x: hidden;
}
.onlineUsers {
    padding: 10px 4px;
    height: 40px;
    font-size: 14px;
    border-bottom: solid 1px #f1f1f1;
    border-left: 4px solid #fff;
    display: flex;
    cursor: pointer;
}
.onlineUsers a{
    color: #333;
}
.onlineUsers:hover, .onlineUsers.cur {
    background-color: rgb(238 247 255);
    border-left: 4px solid #4299e2;
}
.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: 840px;
    margin: 0 auto;
    box-shadow: 2px 2px 6px rgba(0,0,0,.3);
    border-top: none;
    overflow: hidden;
}
.chatContext{
    width: 100%;
    text-align: left;
    position: relative;
    background: rgb(245,245,245);
}
.chatBox{
    /*overflow-y: auto;*/
    overflow-x: hidden;
    background: rgb(245,245,245);
    /*margin-bottom: 80px;*/
}
.chatVisitorPage{
    height: calc(100% - 86px);
    overflow-y: auto;
}
.chatVisitorPage .chatBox{
    padding: 5px 4px;
}
.chatBox .el-col{margin:10px 0;}
.chatUser{
    font-size: 12px;
    white-space: nowrap;
    color: #999;
    text-align: left;
    margin: -5px 0px 3px 0px;
}
.chatMainPage{
    margin-top: 1px;
}
.chatContent {
    background-color: rgb(255,255,255);
    color: #000;
    border: 1px solid rgb(237,237,237);
    min-height: 20px;
    padding: 8px 15px;
    word-break: break-all;
    position: relative;
    border-radius: 5px;
    display: inline-block;
    line-height: 21px;
    font-size: 14px;
}
.chatContent2 {
    border-radius: 8px 8px 8px 0px;
    padding: 10px 15px;
}
.chatBoxMe{
    margin-top: 10px;
}
.chatBoxMe .chatContent2 {
    border-radius: 8px 8px 0px 8px;
    background-color: #cde0ff;
    color: #000;
}
a{color: #07a9fe;text-decoration: none;}


.chatBoxMe .chatContent{float: right;}
.chatBoxMe .chatContent:after{border-left-color: rgba(152,225,101,1);border-right:none;left:auto;right: -5px;}
.chatBoxMe .chatContent:before{border-left-color: rgb(152,225,101);border-right:none;right: -5px;left: auto;}
.chatBoxMe .el-col-3{float: right;text-align: right;}
.chatBoxMe .chatUser{text-align: right}
.btnArea{width: 10%;float: right;}


.chatTitle{height: 30px;line-height: 30px;color: #1989fa}
.chatBoxSend{
    position: relative;
    padding-top: 5px;
    background: #fff;
    width: 100%;
    height: 80px;
    z-index: 99;
    border-top: 1px solid #e4e4e4;
}
.chatBoxSendBtn{float: right;margin: 12px 4px 0 0;}
.footContact{text-align: center;
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
}
.footContact a{font-size: 12px;color: #999;text-decoration: none;}
.chatTime{text-align: center;color: #bbb;margin: 12px 0;font-size: 12px;}
.chatTime span{display: inline-block;padding: 2px 5px;background: rgb(218,218,218);color: #fff;}
.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;
}
.replyItem:hover{
    background-color: #f0f9eb;
    color: #67C23A;
}
.replyContent{
    padding: 0 10px;
}
.replySearch{
    margin: 5px 7px;
    width: 96% !important;
}
.iconBtnsBox{
    display: flex;
    align-items: center;
    color: #7e7e7e;
    height: 35px;
}
.iconBtnsBox .iconBtn{
    margin-right: 10px;
    cursor: pointer;
}
.kefuMainBg{background: #f5f5f5;border-right: 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;
    height: 135px;
    bottom: 0px;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e5e5e5;
}
.kefuFuncBox .faceBox{
    position: absolute;
    bottom:100px;
}
.kefuFolderBtn{vertical-align: middle;}
.visitorReply{
    font-size: 14px;
    line-height: 24px;
}
.visitorReplyTitle{

}
.visitorReplyContent{
    color:#007aff;
    cursor: pointer;
}
.kefuSendBtn{
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
}
.clear{clear:both;}


.chatEntTitle {
    display: none;
    width: 100%;
    z-index: 9;
    margin: 0 auto;
    height: 56px;
    overflow: hidden;
    font-size: 16px;
    color: #fff;
    overflow: hidden;
    background-color: rgb(11 113 236);
    background-image: url(../images/visitor_title_bg.png);
    background-size: auto 72px;
    background-position: center 0;
    align-items: center;
}
.chatEntTitle span {
    margin-right: 10px;
}
.chatEntTitle .el-badge__content.is-fixed.is-dot {
    right: 17px;
    bottom: -5px;
    top: unset;
}
.chatEntBox{
    height: 100%;
    position: relative;
}
.chatArticle{
    display: none;
}
.visitorIconBox{
    display: flex;
    align-items: center;
    color:#9c9c9c;
}
.visitorIconBox .iconBtn{
    margin-right: 10px;
    cursor: pointer;
}
.productCard{
    cursor: pointer;
    padding: 5px;
    border-radius: 2px;
    width: auto;
    max-width: 730px;
    display: flex;
    border-radius: 5px;
}
.productCard img{
    width: 100px;
    height: 100px;
    margin-right: 15px;
}
.productCard .productCardPrice{
    color: #ff7736;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
}
.productCard .productCardTitle{
    color: #333;
}
@media screen and (min-width: 900px) {
    .chatCenter {
        max-height: 650px;
        box-shadow: 0 2px 8px rgba(0,0,0,.15);
        border-radius: 8px;
    }
    .chatVisitorPage {
        height: calc(100% - 156px);
    }
    .chatEntTitle{display: flex;}
    .chatEntTitleLogo {
        margin-left: 15px;
    }
    .visitorBody {
        display: flex;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-align: center;
        align-items: center;
    }
    .chatEntBox {
        width: calc(100% - 265px);
        float: left;
        border-right: 1px solid #e6e6e6;
    }
    .chatArticle {
        display: block;
        width: 260px;
        float: right;
        overflow-y: auto;
    }
    .hotQuestionTitle {
        padding: 10px 10px 10px 10px;
        border-bottom: 1px solid rgba(0,0,0,.09);
        font-size: 16px;
        display: flex;
    }
    .hotQuestionTitle .fire {
        width: 20px;
        margin-right: 10px;
        color: rgb(250, 84, 28);
    }
}
.visitorEditorArea{
}
.visitorEditorArea  textarea {
    padding: 7px 0 7px 8px;
    font-size:16px;
    line-height: 21px;
    border: none;
}
.visitorEditorBtn{
    position: absolute;
    right: 10px;
    bottom: 2px;
}
.mainLeftMenu {
    width: 70px;
    float: left;
    height: 100%;
    text-align: center;
    background-color: #0a2f5a;
    position: relative;
}
.menuLeftItem {
    height: 55px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    padding-top: 12px;
    width: 100%;
}
.menuLeftItem i, .menuLeftItem .el-badge {
    display: block;
    margin-bottom: 2px;
    font-size: 20px;
}
.menuLeftItem span {
    font-size: 12px;
}
.menuLeftItemLogout {
    position: absolute;
    bottom: 0px;
}
.mainRight {
    width: calc(100% - 70px);
    height: 100%;
    float: left;
}
.mainIframe {
    width: 100%;
    height: 100%;
}
.menuLeftItem:active, .menuLeftItem.active {
    background: #2b5a96;
}
.chatNotice {
    text-align: center;
    margin: 12px 0px;
}
.chatNoticeContent {
    display: inline-block;
    word-break: break-all;
    color: rgba(0,0,0,.45);
    margin: 0 24px;
    max-width: calc(100% - 48px);
    background-color: #fff;
    border-radius: 16px;
    font-size: 12px;
    padding: 4px 16px;
}
.chatRow {
    display: flex;
}
.chatRowAvator {
    margin-right: 10px;
    flex-shrink: 0;
}
.chatBoxMe .chatRow {
    float: right;
}
.chatBoxMe .chatRowAvator {
    margin-left: 10px;
}
.allNotice{
    font-size: 12px;
    margin: 10px 0px;
    line-height: 23px;
    color: #666;
}
.chatArea .el-textarea__inner{
    border: none;
}
.tongji{
    display: flex;
}
.tongji .tongjiItem{
    background: #fff;
    margin: 10px;
    border-radius: 5px;
    width: 100%;
}
.tongji .tongjiHeader{
    font-size: 14px;
    font-weight: bold;
    padding: 10px 15px;
    border-bottom: 1px solid #e8eaec;
    color:#17233d;
}
.tongji .tongjiBody{
    font-size: 30px;
    margin: 0px 10px;
    padding: 10px 0px;
    border-bottom: 1px solid #e8eaec;
    color: #515a6e;
}
.tongji .tongjiFooter{
    font-size: 14px;
    margin: 10px 10px;
    color: #515a6e;
}
.tongji .tongjiFooter span{
    color: red;
    padding: 0 3px;
}
    /* 定义滚动条的宽度、高度和背景色 */
::-webkit-scrollbar {
    width: 8px;
    height: 10px;
    background-color: #f5f5f5;
}

/* 定义滚动条滑块的样式 */
::-webkit-scrollbar-thumb {
    background-color: #c5c5c5;
}



/* 定义滚动条滑块在 hover 状态下的样式 */
::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

/* ===== 表格滚动容器：去掉外层滚动条，只保留表格内部一个滚动条（避免移动端双滚动条） ===== */
.table-scroll {
    overflow: visible !important;
    max-width: 100%;
}

/* ===== 移动端：表格容器改为可横向滚动，避免宽表格溢出屏幕 ===== */
@media (max-width: 768px) {
    .table-scroll {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    .table-scroll .el-table {
        min-width: 100%;
    }
    /* 移动端全局约束：防止任意固定宽元素撑破屏幕 */
    .wrap, .card, #app {
        max-width: 100%;
        box-sizing: border-box;
    }
    .el-dialog {
        width: 92% !important;
        margin-top: 6vh !important;
    }
    .el-select, .el-date-editor, .el-input-number {
        max-width: 100%;
    }
}

/* ===== PC 端（宽屏）隐藏滚动条：客服/站长后台除左侧菜单外不出现滚动条；手机端保留滚动条 ===== */
@media (min-width: 769px) {
    body {
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* IE/Edge */
    }
    body::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }
    /* 表格横向滚动容器等仍可内部滚动，但隐藏滚动条外观，保留功能 */
    .table-scroll::-webkit-scrollbar,
    .el-table__body-wrapper::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
}
/* ===== ���������ͳһ��ʽ��+-��ť�������ͬ�ߣ�һ��ʽԲ����� ===== */
.el-input-number {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .2s;
}
.el-input-number:hover { border-color: #c0c4cc; }
.el-input-number:focus-within { border-color: #409EFF; }
.el-input-number .el-input { margin: 0; }
.el-input-number .el-input__inner {
    border: none;
    border-radius: 0;
    padding-left: 42px;
    padding-right: 42px;
    text-align: center;
}
.el-input-number__decrease,
.el-input-number__increase {
    top: -1px;
    bottom: -1px;
    height: auto;
    width: 40px;
    border: none;
    border-radius: 0;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.el-input-number__decrease { left: 0; border-right: 1px solid #dcdfe6; }
.el-input-number__increase { right: 0; border-left: 1px solid #dcdfe6; }
.el-input-number__decrease:hover:not(.is-disabled),
.el-input-number__increase:hover:not(.is-disabled) { color: #409EFF; background: #f0f2f5; }
.el-input-number.is-disabled { background: #f5f7fa; }

/* ===== 引用消息块（QQ风格，咨询页/客服端共用） ===== */
.quote-block {
    position: relative;
    background: #E5E5E5;
    color: #000;
    border-radius: 4px;
    padding: 5px 26px 5px 8px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    max-width: 100%;
    cursor: pointer;
}
.quote-block .quote-meta { display: block; font-size: 11px; opacity: .75; margin-bottom: 1px; }
.quote-block .quote-text { word-break: break-all; }
/* 自己消息里的引用块：深蓝底白字 */
.kefuMe .quote-block, .chatBoxMe .quote-block { background: #0089E4; color: #fff; }
/* 右侧“↑ + 上方短横线”定位图标 */
.quote-goto { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 12px; height: 16px; opacity: .85; }
.quote-goto::before { content: ''; display: block; width: 10px; height: 2px; background: currentColor; margin: 0 auto 2px; border-radius: 1px; }
.quote-goto::after { content: '↑'; display: block; font-size: 12px; line-height: 1; text-align: center; font-weight: 700; }
/* 引用定位高亮 */
.msg-highlight { animation: msgHighlightFlash 2s ease; }
@keyframes msgHighlightFlash {
    0% { background-color: #ffd666; box-shadow: 0 0 0 4px rgba(255,214,102,.7); }
    60% { background-color: #ffecb3; }
    100% { background-color: transparent; box-shadow: none; }
}
/* ===== 视频消息 ===== */
.chatContent video { max-width: 260px !important; border-radius: 8px; }
/* ===== 语音消息气泡（在线播放，宽度随时长变化） ===== */
/* ===== 微信样式语音气泡 ===== */
.voice-msg { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 10px; box-sizing: border-box; cursor: pointer; }
.voice-msg .vp-btn { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #eef1f6; display: inline-flex; align-items: center; justify-content: center; }
.voice-msg .vp-tri { width: 0; height: 0; border-left: 9px solid #333; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; margin-left: 2px; }
.voice-msg .vp-wave { flex: 0 1 auto; overflow: hidden; min-width: 0; display: inline-flex; align-items: center; gap: 3px; }
.voice-msg .vp-wave i { flex: 0 0 auto; width: 3px; border-radius: 2px; background: #333; opacity: .85; }
.voice-msg .vp-sec { flex: 0 0 auto; font-size: 13px; color: #333; white-space: nowrap; }
.voice-msg.playing .vp-tri { border: none; width: 9px; height: 12px; margin-left: 0;
    background: linear-gradient(90deg, #333 0 3px, transparent 3px 6px, #333 6px 9px); }
.voice-msg.playing .vp-wave i { animation: vpWave .8s ease-in-out infinite; }
.voice-msg.playing .vp-wave i:nth-child(2n) { animation-delay: .15s; }
.voice-msg.playing .vp-wave i:nth-child(3n) { animation-delay: .3s; }
@keyframes vpWave { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.kefuMe .voice-msg .vp-btn, .chatBoxMe .voice-msg .vp-btn { background: rgba(255,255,255,.28); }
.kefuMe .voice-msg .vp-tri, .chatBoxMe .voice-msg .vp-tri { border-left-color: #fff; }
.kefuMe .voice-msg .vp-wave i, .chatBoxMe .voice-msg .vp-wave i { background: #fff; }
.kefuMe .voice-msg .vp-sec, .chatBoxMe .voice-msg .vp-sec { color: #fff; }
.kefuMe .voice-msg.playing .vp-tri, .chatBoxMe .voice-msg.playing .vp-tri { background: linear-gradient(90deg, #fff 0 3px, transparent 3px 6px, #fff 6px 9px); }
.voice-text { margin-top: 5px; font-size: 13px; color: #606266; white-space: normal; word-break: break-all; line-height: 1.5; border-top: 1px dashed #eef1f6; padding-top: 5px; }

/* ===== 全局界面美化（所有页面统一风格） ===== */
.el-button--primary { background: linear-gradient(90deg,#3f6fe0,#4f8cff) !important; border-color: transparent !important; border-radius: 8px !important; }
.el-button--primary:hover, .el-button--primary:focus { background: linear-gradient(90deg,#3f6fe0,#4f8cff) !important; opacity: .92 !important; border-color: transparent !important; }
.el-button--primary.is-plain { background: #ecf3ff !important; color: #3f6fe0 !important; border-color: #bcd3ff !important; }
.el-button--success { border-radius: 8px !important; }
.el-button--danger { border-radius: 8px !important; }
.el-button--warning { border-radius: 8px !important; }
.el-table th.el-table__cell { background: #f5f8fd !important; color: #1f2d3d !important; font-weight: 600 !important; }
.el-table { border-radius: 8px; }
.el-input__inner { border-radius: 8px; }
.el-textarea__inner { border-radius: 8px; }
.el-dialog { border-radius: 12px !important; }
.el-tabs__item.is-active { color: #3f6fe0 !important; }
.el-tabs__active-bar { background: linear-gradient(90deg,#3f6fe0,#4f8cff) !important; }
.el-pagination.is-background .el-pager li:not(.disabled).active { background: linear-gradient(90deg,#3f6fe0,#4f8cff) !important; }

/* ===== 功能页统一横幅 ===== */
.page-banner {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    margin: 0;
    background: linear-gradient(90deg, #1f2d3d 0%, #2b4a7d 55%, #3f6fe0 100%);
    color: #fff;
    border-radius: 14px;
    padding: 20px 26px;
    box-shadow: 0 6px 20px rgba(31,45,61,.25);
    position: relative;
    overflow: hidden;
}
.page-banner::after {
    content: "";
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
    top: -80px; right: -40px;
}
.page-banner h1 { margin: 0; font-size: 19px; letter-spacing: 2px; font-weight: 700; }
.page-banner p { margin: 6px 0 0; font-size: 12px; opacity: .8; letter-spacing: 1px; }
