/***浮动客服窗口样式（仅作用于客服组件，避免覆盖全站字体与布局）*/
.float-customer-wrap,
.float-customer-wrap * {
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }

        /* 右侧悬浮客服容器 */
        .float-customer-wrap {
            position: fixed;
            right: 30px;
            bottom: 80px;
            z-index: 9999;
        }

        /* 悬浮客服按钮 */
        .float-kefu-btn {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #1677FF, #4096ff);
            border-radius: 50%;
            box-shadow: 0 4px 16px rgba(22, 119, 255, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .float-kefu-btn:hover {
            transform: scale(1.08);
            box-shadow: 0 6px 20px rgba(22, 119, 255, 0.45);
        }
        .float-kefu-btn svg {
            width: 28px;
            height: 28px;
            fill: #fff;
        }

        /* 聊天弹窗外层 */
        .chat-popup-box {
            width: 360px;
            height: 480px;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 4px 30px rgba(0,0,0,0.15);
            position: absolute;
            right: 0;
            bottom: 75px;
            overflow: hidden;
            display: none;
            flex-direction: column;
        }

        /* 弹窗头部 */
        .chat-header {
            background: #1677FF;
            color: #fff;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .chat-left-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .service-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .service-avatar svg {
            width: 20px;
            fill: #1677FF;
        }
        .chat-title h4 {
            font-size: 15px;
            font-weight: 500;
        }
        .chat-title span {
            font-size: 12px;
            opacity: 0.85;
        }
        .chat-close {
            cursor: pointer;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 聊天消息区域 */
        .chat-content {
            flex: 1;
            padding: 16px;
            background: #f7f8fa;
            overflow-y: auto;
        }
        .msg-item {
            margin-bottom: 14px;
            display: flex;
        }
        .msg-service {
            gap: 8px;
        }
        .msg-user {
            flex-direction: row-reverse;
            gap: 8px;
        }
        .msg-avatar-sm {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            flex-shrink: 0;
            background: #1677FF;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .msg-text {
            max-width: 75%;
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.5;
        }
        .msg-service .msg-text {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-top-left-radius: 4px;
        }
        .msg-user .msg-text {
            background: #1677FF;
            color: #fff;
            border-top-right-radius: 4px;
        }

        /* 底部输入区域 */
        .chat-input-area {
            padding: 12px 16px;
            border-top: 1px solid #eee;
            display: flex;
            gap: 10px;
        }
        #chat-input {
            flex: 1;
            height: 42px;
            padding: 0 14px;
            border: 1px solid #dcdfe6;
            border-radius: 22px;
            outline: none;
            font-size: 14px;
            transition: border 0.2s;
        }
        #chat-input:focus {
            border-color: #1677FF;
        }
        .send-btn {
            width: 78px;
            height: 42px;
            background: #1677FF;
            color: #fff;
            border: none;
            border-radius: 22px;
            cursor: pointer;
            font-size: 14px;
            transition: opacity 0.2s;
        }
        .send-btn:hover {
            opacity: 0.85;
        }

        /* 移动端适配 */
        @media screen and (max-width: 480px) {
            .float-customer-wrap {
                right: 15px;
                bottom: 60px;
            }
            .chat-popup-box {
                width: calc(100vw - 30px);
                height: 70vh;
            }
            .float-kefu-btn {
                width: 52px;
                height: 52px;
            }
 }