*{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: 60px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    border-bottom: 2px solid #d9001b;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-sizing: border-box;
}
.chatEntTitle .brandWrap {
    display: flex;
    align-items: center;
    min-width: 0;
}
.chatEntTitle .brandLogo {
    height: 26px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-right: 4px;
    flex-shrink: 0;
}
.chatEntTitle .brandName {
    font-size: 18px;
    font-weight: 700;
    color: #c8161d;
    letter-spacing: 1px;
    white-space: nowrap;
}
.chatEntTitle .brandDivider {
    width: 1px;
    height: 20px;
    background: #ccc;
    margin: 0 14px;
    flex-shrink: 0;
}
.chatEntTitle .brandSub {
    font-size: 15px;
    color: #666;
    white-space: nowrap;
}
.chatEntTitle .ipv6Tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    flex-shrink: 0;
}
.chatEntTitle .ipv6Tag span {
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}
.chatEntTitle .ipv6Tag b {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    color: #d9001b;
    border: 1px solid #d9001b;
    border-radius: 8px;
    padding: 1px 8px;
}
.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: 100%;
        float: left;
        border-right: none;
    }
    .chatArticle {
        display: none;
    }
    .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;
}
/* ==== 品牌化客服页：发送按钮 & 输入框占位 ==== */
.visitorEditorArea .el-textarea__inner::placeholder {
    color: #b8b8b8;
    font-size: 14px;
}
.visitorEditorBtn.el-button--primary {
    background-color: #ff7a9c;
    border-color: #ff7a9c;
    border-radius: 16px;
    padding: 7px 18px;
}
.visitorEditorBtn.el-button--primary:hover {
    background-color: #ff5f88;
    border-color: #ff5f88;
}
.visitorEditorBtn.el-button--primary.is-disabled,
.visitorEditorBtn.el-button--primary.is-disabled:hover {
    background-color: #ffd0dd;
    border-color: #ffd0dd;
    color: #fff;
}

/* ==================== 在线服务页 · 细节优化 ==================== */

/* --- 1. 修复右侧访客头像被裁切：抵消 gutter 负边距、取消过时的 float --- */
.chatVisitorPage .el-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
}
.chatBoxMe .chatContent { float: none !important; }
.chatBoxMe .chatContent:before,
.chatBoxMe .chatContent:after { display: none !important; }  /* 移除过时的绿色小三角 */
.kefuMe { box-sizing: border-box; min-width: 0; }
.chatBox .chatContent { max-width: calc(100% - 56px); }

/* --- 2. 头像精致化：白底圆框 + 轻阴影，银联方块放大铺满 --- */
.chatVisitorPage .chatBox .el-avatar {
    background: #fff !important;
    border: 1px solid #eef0f2;
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
}
.chatVisitorPage .kefuMsgAvatar > img { object-fit: cover !important; transform: scale(1.15); }
.chatVisitorPage .visitorMsgAvatar { background: #ffe3ec !important; }

/* --- 3. 时间戳：灰底方角 -> 半透明圆角胶囊 --- */
.chatTime { margin: 16px 0 10px; }
.chatTime span {
    padding: 3px 12px;
    background: rgba(0,0,0,.26);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    letter-spacing: .2px;
}

/* --- 4. 消息气泡：柔和阴影 + 更协调的圆角/配色 --- */
.chatBox .chatContent {
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: none;
    line-height: 1.65;
    word-break: break-word;
}
.chatContent2 { border-radius: 4px 14px 14px 14px !important; }
.chatBoxMe .chatContent2 {
    border-radius: 14px 4px 14px 14px !important;
    background: #dcecff;
    color: #1a1a1a;
}

/* --- 5. 品牌条微调：更轻盈 --- */
.chatEntTitle { height: 58px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.chatEntTitle .brandLogo { height: 24px; }
.chatEntTitle .brandSub { font-weight: 500; }

/* --- 6. 输入区：图标间距、输入框圆角、按钮阴影 --- */
.chatBoxSend { padding: 10px 14px; height: 84px; box-sizing: border-box; }
.visitorIconBox .iconBtn { margin-right: 12px; color: #909399; transition: color .2s; }
.visitorIconBox .iconBtn:hover { color: #ff7a9c; }
.visitorEditorArea .el-textarea__inner {
    border-radius: 8px;
    background: #f7f8fa;
    padding: 8px 10px;
}
.visitorEditorBtn.el-button--primary { box-shadow: 0 2px 6px rgba(255,122,156,.35); }

/* --- 7. 聊天区滚动条美化 --- */
.chatVisitorPage::-webkit-scrollbar { width: 6px; }
.chatVisitorPage::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 3px; }
.chatVisitorPage::-webkit-scrollbar-track { background: transparent; }


/* --- 8. 访客头像贴边裁切修复 + 品牌 logo 放大 (20261120c) --- */
.chatVisitorPage .el-row { margin: 0 !important; padding: 0 !important; }
.chatVisitorPage .kefuMe { padding-right: 2px; box-sizing: border-box; }
.chatVisitorPage .visitorMsgAvatar { margin-right: 2px !important; }

/* --- 9. 银联 logo 高清化 (20261120d)：裁掉原图大片留白，按 3:1 显示 --- */
.chatEntTitle .brandLogo {
    height: 34px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

/* --- 10. 客服头像满幅 + 访客头像不贴边 (20261120e) --- */
/* 客服头像：银联方块满幅填充，去掉之前的白底小图缩放 */
.chatVisitorPage .kefuMsgAvatar,
.chatVisitorPage .kefuMsgAvatar > img {
    border: none !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.12) !important;
    transform: none !important;      /* 取消旧的 scale(1.15) */
    object-fit: cover !important;
}
/* 访客头像：给右侧留足边距，避免贴容器右边缘被裁 */
.chatVisitorPage .chatBox { padding: 8px 14px !important; }
.chatVisitorPage .kefuMe { padding-right: 0 !important; }
.chatVisitorPage .visitorMsgAvatar { margin-right: 0 !important; }

/* --- 11. 顶部按图改版 (20261120f)：左 logo + 右「在线服务」，去掉 IPv6 --- */
.chatEntTitle .titleRight {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* --- 12. 头像改用原生 img 后的强制圆形 (20261120g) --- */
.chatVisitorPage img.kefuMsgAvatar,
.chatVisitorPage img.visitorMsgAvatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
    max-width: none !important;
    flex-shrink: 0 !important;
    display: block !important;
    background: #fff;
    border: 1px solid #eef0f2;
    box-sizing: border-box;
}


/* ==================== 在线服务 · 复刻页视觉同步 (20261121a) ==================== */
html, body.visitorBody { background:#f8f9fd !important; margin:0; padding:0; }
#app.chatCenter { width:100%; min-height:100vh; height:auto; background:#f8f9fd; }

/* 顶部品牌条 */
.brand-bar { height:118px; background:#fbfbfe; border-bottom:3px solid #c8102e; display:flex; align-items:center; gap:16px; padding-left:54px; box-sizing:border-box; }
.brand-logo { height:88px; width:auto; display:block; }
.brand-online { display:flex; align-items:center; gap:7px; margin-top:46px; }
.brand-dot { width:10px; height:10px; border-radius:50%; background:#3f9e4d; }
.brand-online span { color:#3f9e4d; font-size:20px; font-weight:400; }

/* 聊天区（滚动容器） */
.chat-body.chatVisitorPage { padding:34px 40px; min-height:calc(100vh - 118px - 190px); display:flex; flex-direction:column; gap:30px; box-sizing:border-box; overflow-y:auto; background:#f8f9fd; }
.chat-body .chatNotice { text-align:center; cursor:pointer; }
.chat-body .chatNoticeContent { color:#07a9fe; }
.chat-body .chatBox { display:flex; flex-direction:column; gap:30px; background:transparent !important; padding:0 !important; margin:0 !important; max-width:none !important; }
.chat-body .chatBox .chatTime { align-self:center; background:#f3f4f6; color:#89888e; font-size:16px; padding:7px 16px; border-radius:8px; margin:0 !important; }
.chat-body .chatBox .chatTime span { background:transparent !important; color:inherit !important; padding:0 !important; }

/* 欢迎胶囊 */
.welcome { display:flex; justify-content:center; }
.welcome span { display:inline-block; padding:9px 18px; background:#fdfdfd; color:#59616b; font-size:15px; font-weight:400; border-radius:12px; box-shadow:0 2px 8px rgba(90,100,120,.08); }

/* 消息行：头像与气泡垂直居中 */
.row { display:flex; align-items:center; }
.row.visitor { justify-content:flex-end; gap:14px; }
.row.kefu { justify-content:flex-start; gap:16px; }
.avatar { width:68px; height:68px; border-radius:11px; object-fit:cover; flex:none; display:block; }

/* 气泡：白底圆角蓝灰字 */
.bubble-white, .bubble-blue { background:#fdfdfd; color:#59616b; display:flex; align-items:center; gap:40px; padding:18px 26px; border-radius:14px; box-shadow:0 2px 8px rgba(90,100,120,.08); font-size:20px; font-weight:400; min-width:480px; max-width:70%; }
.bubble-blue { gap:14px; padding:14px 20px; min-width:0; }
.bubble-white span, .bubble-blue span { word-break:break-all; }
.bubble-white i, .bubble-blue i { font-size:15px; color:#9aa0ac; font-style:normal; position:relative; top:10px; margin-left:auto; white-space:nowrap; }

/* 底部时间戳 */
.chat-time { text-align:center; margin-top:auto; padding-top:40px; }
.chat-time span { display:inline-block; background:#f3f4f6; color:#89888e; font-size:16px; padding:7px 16px; border-radius:8px; }

/* 底部输入区 */
.input-bar { height:190px; background:#fff; border-top:1px solid #eef0f6; padding:20px 40px; box-sizing:border-box; }
.tool-icons { display:flex; align-items:center; gap:24px; margin-bottom:20px; }
.tool-icons .iconBtn { font-size:26px; color:#9aa0ac; cursor:pointer; line-height:1; }
.input-row { display:flex; align-items:center; gap:22px; }
.input-box { flex:1; height:60px; background:#f5f6fd; box-sizing:border-box; border:none; outline:none; border-radius:14px; padding:0 26px; color:#333; font-size:18px; font-family:inherit; }
.input-box::placeholder { color:#aeb3c0; }
.btn-send { width:130px; height:60px; flex:none; background:#dcb0b4; color:#fff; border:none; border-radius:14px; font-size:19px; cursor:pointer; box-shadow:0 2px 8px rgba(220,176,180,.20); transition:background .2s, box-shadow .2s; }
.btn-send.active { background:#ff4d4f; box-shadow:0 2px 8px rgba(255,77,79,.30); }
.btn-send.active:hover { background:#e8393b; box-shadow:0 4px 12px rgba(255,77,79,.40); }
.btn-send:disabled { opacity:1; -webkit-opacity:1; }

/* ==================== 输入区吸底修复 (20261121b) ==================== */
/* 让输入框和发送按钮始终固定在页面底部，聊天记录只在中间区域滚动 */
html, body.visitorBody {
  height:100% !important;
  overflow:hidden !important;
  display:block !important;
}
#app.chatCenter {
  height:100vh !important;
  min-height:100vh !important;
  max-height:none !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}
.brand-bar { flex:0 0 118px !important; }
.chat-body.chatVisitorPage {
  flex:1 1 auto !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow-y:auto !important;
}
.input-bar {
  flex:0 0 190px !important;
  height:190px !important;
  position:relative !important;
  z-index:20 !important;
  box-shadow:0 -2px 10px rgba(90,100,120,.06) !important;
}

/* 工具图标改为内联 SVG 后替代 element-ui 图标字体 */
.tool-icons svg { width:26px; height:26px; stroke:#9aa0ac; fill:none; stroke-width:1.8; cursor:pointer; flex:none; }

/* ==================== 手机端响应式适配 (20261121e) ==================== */
@media screen and (max-width: 768px) {
  /* 顶部品牌条：整体缩小，logo 与在线服务不再溢出屏幕 */
  .brand-bar { height:76px !important; flex:0 0 76px !important; padding-left:16px !important; gap:10px !important; border-bottom-width:2px !important; }
  .brand-logo { height:46px !important; }
  .brand-online { margin-top:20px !important; gap:5px !important; }
  .brand-dot { width:8px !important; height:8px !important; }
  .brand-online span { font-size:15px !important; white-space:nowrap; }

  /* 聊天区：收紧留白，气泡允许换行、不再被截断 */
  .chat-body.chatVisitorPage { padding:18px 14px !important; gap:20px !important; }
  .welcome span { font-size:13px !important; padding:7px 14px !important; border-radius:10px !important; }
  .row.kefu, .row.visitor { gap:10px !important; }
  .avatar { width:46px !important; height:46px !important; border-radius:9px !important; }
  .bubble-white {
    min-width:0 !important;
    max-width:calc(100vw - 96px) !important;
    font-size:15px !important;
    line-height:1.65 !important;
    padding:12px 14px !important;
    gap:12px !important;
    border-radius:12px !important;
    box-sizing:border-box !important;
    word-break:break-word !important;
    flex-wrap:wrap !important;
  }
  .bubble-blue {
    max-width:calc(100vw - 96px) !important;
    padding:12px 14px !important;
    gap:10px !important;
    border-radius:12px !important;
    box-sizing:border-box !important;
  }
  .bubble-white i, .bubble-blue i { font-size:12px !important; top:4px !important; margin-left:auto !important; align-self:flex-end !important; }
  .chat-time { padding-top:12px !important; }
  .chat-time span { font-size:13px !important; padding:6px 12px !important; }

  /* 底部输入区：完整显示输入框与发送按钮 */
  .input-bar { flex:0 0 112px !important; height:112px !important; padding:12px 14px !important; }
  .tool-icons { gap:18px !important; margin-bottom:12px !important; }
  .tool-icons svg { width:22px !important; height:22px !important; }
  .input-row { gap:10px !important; }
  .input-box { height:46px !important; font-size:15px !important; padding:0 14px !important; border-radius:12px !important; }
  .btn-send { width:88px !important; height:46px !important; font-size:15px !important; border-radius:12px !important; }
}

/* ==================== iOS Safari 全机型适配 (20261120b) ==================== */

/* ---------- 全局 iOS 修正 ---------- */
html {
  /* 阻止 iOS 横屏时文字自动放大 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body.visitorBody {
  /* 关闭 iOS 长按菜单与点击高亮 */
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* 惯性滚动 */
  -webkit-overflow-scrolling: touch;
}
body.visitorBody input,
body.visitorBody button,
body.visitorBody textarea {
  /* iOS 输入框去掉默认圆角与内阴影 */
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
body.visitorBody ::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* ---------- 视口高度: iOS Safari 的 100vh 包含地址栏, 会导致溢出 ---------- */
/* 现代 iOS 支持 dvh/svh/lvh, 老版本回退到 -webkit-fill-available */
@supports (height: 100dvh) {
  #app.chatCenter {
    height: 100dvh !important;
    min-height: 100dvh !important;
  }
  .chat-body.chatVisitorPage {
    min-height: calc(100dvh - 118px - 190px) !important;
  }
}
@supports not (height: 100dvh) {
  html, body.visitorBody {
    height: -webkit-fill-available !important;
    min-height: -webkit-fill-available !important;
  }
  #app.chatCenter {
    height: -webkit-fill-available !important;
    min-height: -webkit-fill-available !important;
  }
}

/* ---------- 刘海屏 / Home 指示条安全区 ---------- */
.brand-bar {
  padding-left: max(54px, env(safe-area-inset-left)) !important;
  padding-right: max(54px, env(safe-area-inset-right)) !important;
}
.input-bar {
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}

/* ---------- 手机端: iOS 专属微调 ---------- */
@media screen and (max-width: 768px) {
  /* 顶栏：适配刘海安全区 */
  .brand-bar {
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
  }

  /* 输入区：底部留出 Home 指示条空间 */
  .input-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  /* 输入框字号必须 >= 16px, 否则 iOS 聚焦时会自动放大整个页面 */
  .input-box {
    font-size: 16px !important;
    /* 16px 下 iOS 仍会缩放, 加 max-height 兜底 */
    line-height: 1.4 !important;
    /* iOS Safari 的 flex item 默认 min-width:auto, 不加这行输入框不会收缩, 会把发送按钮顶出屏幕 */
    min-width: 0 !important;
    width: 0 !important;
  }
  .btn-send {
    font-size: 16px !important;
    flex: 0 0 auto !important;
  }

  /* 气泡文字 >= 14px 提升可读性, 同时避免 iOS 文本自动放大 */
  .bubble-white,
  .bubble-blue {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
  }
  .bubble-white i, .bubble-blue i { font-size: 13px !important; }
  .welcome span { font-size: 15px !important; }
  .chat-time span { font-size: 14px !important; }

  /* 触摸目标 >= 44px (Apple HIG) */
  .tool-icons svg { width:26px !important; height:26px !important; }
  .tool-icons { gap:22px !important; }

  /* 键盘弹出时避免输入框被遮挡: 用动态视口高度 */
  .chat-body.chatVisitorPage {
    min-height: calc(100dvh - 76px - 112px) !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* ---------- 超窄屏 iPhone SE (320px) ---------- */
@media screen and (max-width: 359px) {
  .brand-bar { height:68px !important; flex:0 0 68px !important; padding-left:max(12px, env(safe-area-inset-left)) !important; }
  .brand-logo { height:40px !important; }
  .brand-online { margin-top:17px !important; }
  .brand-online span { font-size:14px !important; }
  .chat-body.chatVisitorPage { padding:14px 10px !important; gap:16px !important; }
  .avatar { width:40px !important; height:40px !important; }
  .bubble-white, .bubble-blue { max-width:calc(100vw - 74px) !important; padding:10px 12px !important; }
  .input-bar { flex:0 0 104px !important; height:104px !important; padding:10px 8px !important; }
  .input-row { gap:8px !important; }
  .input-box {
    height:42px !important;
    padding:0 10px !important;
    /* iOS Safari flex item 默认 min-width:auto, 不加这行输入框不会收缩, 会把发送按钮顶出屏幕 */
    min-width:0 !important;
    width:0 !important;
  }
  .btn-send { width:66px !important; height:42px !important; flex:0 0 66px !important; }
}

/* ---------- iPhone Pro Max / 大屏手机 ---------- */
@media screen and (min-width: 430px) and (max-width: 768px) {
  .brand-logo { height:54px !important; }
  .brand-online span { font-size:17px !important; }
  .input-box { height:50px !important; }
  .btn-send { height:50px !important; width:96px !important; }
}

/* ---------- 横屏: 压缩顶栏, 给聊天区更多空间 ---------- */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .brand-bar { height:58px !important; flex:0 0 58px !important; }
  .brand-logo { height:38px !important; }
  .brand-online { margin-top:16px !important; }
  .chat-body.chatVisitorPage { padding:12px 16px !important; gap:14px !important; }
  .input-bar { flex:0 0 96px !important; height:96px !important; padding:8px 14px !important; }
  .input-box { height:40px !important; }
  .btn-send { height:40px !important; }
}

/* ---------- iPad 适配: 客服页居中收窄 ---------- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  #app.chatCenter { max-width:820px; margin:0 auto; box-shadow:0 0 24px rgba(90,100,120,.10); }
}
