/* 全站通用客服悬浮窗样式，所有页面引入 */
:root {
    --gold: #c89b3c;
    --main-color: #334155;
    --assist-gray: #e5e7eb;
    --bg-color: #fefefe;
}

/* 右侧悬浮客服按钮 */
.float-kf-btn {
    position: fixed;
    right: 30px;
    bottom: 120px;
    width: 60px;
    height: 60px;
    line-height:60px;
    background:#c89b3c;
    color:#fff;
    border-radius:50%;
    text-align:center;
    cursor:pointer;
    z-index:99999;
    pointer-events:auto !important;
}
.float-kf-btn:hover {
    opacity: 0.9;
}

/* 客服弹窗遮罩 */
.kf-mask {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}
/* 客服弹窗主体 */
.kf-box {
    width: 720px;
    height: 560px;
    background: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    display: flex;
    overflow: hidden;
}
/* 对话区域 */
.chat-area {
    width: 60%;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}
/* 侧边微信二维码区域 */
.wx-qrcode-area {
    width: 40%;
    padding: 30px 20px;
    text-align: center;
}
.wx-qrcode-area img {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.wx-tip {
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

/* 对话头部 */
.chat-header {
    height: 50px;
    line-height: 50px;
    background: var(--main-color);
    color: #fff;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}
.close-kf {
    cursor: pointer;
    font-size: 22px;
}
/* 聊天记录区域 */
.chat-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f8f8;
}
/* 输入框区域 */
.chat-input-wrap {
    height: 80px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap:10px;
}
.chat-input-wrap textarea {
    flex:1;
    height: 60px;
    padding:8px;
    border:1px solid #ddd;
    border-radius:4px;
    resize:none;
}
.send-btn {
    width: 80px;
    height: 60px;
    background: var(--gold);
    border:none;
    color:#fff;
    border-radius:4px;
    cursor:pointer;
}
/* 聊天消息样式 */
.msg-item {
    margin-bottom:12px;
}
.msg-self {
    text-align:right;
}
.msg-bubble {
    display:inline-block;
    padding:8px 12px;
    border-radius:6px;
    max-width:80%;
}
.msg-self .msg-bubble {
    background:#7cb342;
    color:#fff;
}
.msg-other .msg-bubble {
    background:#fff;
    border:1px solid #eee;
}