    /* ===========================================
           CSS重置 - 防止外部样式冲突
           =========================================== */
        .whatsapp-container,
        .whatsapp-container * {
            box-sizing: border-box !important;
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
            outline: none !important;
            text-decoration: none !important;
            font-family: Arial, sans-serif !important;
            font-weight: normal !important;
            text-transform: none !important;
            letter-spacing: normal !important;
        }

        /* ===========================================
           WhatsApp浮动组件 - 增强版CSS
           =========================================== */
        
        /* 主容器 - 控制组件在页面中的位置 */
        .whatsapp-container {
            position: fixed !important;
            bottom: 220px !important;    /* 调整这个值来改变距离底部的间距 */
            right: 20px !important;     /* 调整这个值来改变距离右侧的间距 */
            z-index: 999999 !important; /* 确保始终在最上层显示 */
            width: auto !important;
            height: auto !important;
        }

        /* 聊天弹窗容器 */
        .chat-popup {
            position: absolute !important;
            bottom: 80px !important;    /* 相对于按钮上方的距离 */
            right: 0 !important;
            width: 280px !important;    /* 弹窗宽度 */
            background: white !important;
            border-radius: 12px !important;
            box-shadow: 0 8px 30px rgba(0,0,0,0.3) !important;
            /* 初始状态：隐藏 */
            opacity: 0 !important;
            visibility: hidden !important;
            transform: translateY(30px) !important;
            /* 动画过渡效果 */
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
            z-index: 1000000 !important;
            overflow: hidden !important;
            font-size: 14px !important;
            line-height: 1.4 !important;
        }

        /* 弹窗激活状态 - 显示时的样式 */
        .chat-popup.active {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
        }

        /* 聊天窗口头部 - 包含头像和用户信息 */
        .chat-header {
            background: #128C7E !important;  /* WhatsApp深绿色 */
            color: white !important;
            padding: 16px 20px !important;
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            position: relative !important;
            /* 优化字体渲染，防止动画时模糊 */
            -webkit-font-smoothing: antialiased !important;
            -moz-osx-font-smoothing: grayscale !important;
            text-rendering: optimizeLegibility !important;
        }

        /* 头像容器 - 包含头像和在线状态指示器 */
        .chat-avatar-container {
            position: relative !important;
            flex-shrink: 0 !important;
        }

        /* 用户头像 */
        .chat-avatar {
            width: 40px !important;
            height: 40px !important;
            border-radius: 50% !important;
            overflow: hidden !important;  /* 确保图片被裁剪为圆形 */
        }

        .chat-avatar img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;  /* 保持图片比例并填满容器 */
        }

        /* 在线状态指示器 - 小绿点 */
        .online-indicator {
            position: absolute !important;
            bottom: 0px !important;     /* 相对于头像容器的位置 */
            right: 0px !important;
            width: 12px !important;     /* 绿点大小 */
            height: 12px !important;
            background: #25D366 !important;  /* WhatsApp绿色 */
            border: 2px solid white !important;  /* 白色边框 */
            border-radius: 50% !important;
            z-index: 10 !important;
        }

        /* 用户信息区域 */
        .chat-header-info h3 {
            font-size: 16px !important;
            font-weight: 600 !important;
            margin: 0 0 2px 0 !important;
            color: white !important;
            /* 防止动画时文字模糊 */
            -webkit-transform: translateZ(0) !important;
            transform: translateZ(0) !important;
            will-change: auto !important;
        }

        .chat-header-info .status {
            font-size: 13px !important;
            opacity: 0.9 !important;     /* 稍微透明，显示次要信息 */
            margin: 0 !important;
            color: white !important;
            /* 防止动画时文字模糊 */
            -webkit-transform: translateZ(0) !important;
            transform: translateZ(0) !important;
            will-change: auto !important;
        }

        /* 聊天内容区域 */
        .chat-body {
            /* WhatsApp聊天背景图片 */
            background-image: url('https://static.elfsight.com/apps/all-in-one-chat/patterns/background-whatsapp.jpg') !important;
            background-size: cover !important;
            background-position: center !important;
            background-repeat: no-repeat !important;
            padding: 16px !important;
            min-height: 120px !important;
            position: relative !important;
        }

        /* 时间显示 */
        .chat-time {
            text-align: center !important;
            font-size: 12px !important;
            color: #999 !important;
            margin-bottom: 12px !important;
        }

        /* 消息气泡 */
        .message-bubble {
            background: white !important;
            border-radius: 12px !important;
            padding: 12px 16px !important;
            margin-bottom: 16px !important;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
            position: relative !important;
            max-width: 85% !important;
            /* 初始状态：隐藏，用于动画效果 */
            opacity: 0 !important;
            transform: translateY(10px) !important;
            transition: all 0.3s ease !important;
        }

        /* 消息气泡显示状态 */
        .message-bubble.show {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }

        /* 消息文本 */
        .message-text {
            font-size: 14px !important;
            line-height: 1.4 !important;
            color: #333 !important;
            margin: 0 0 8px 0 !important;
        }

        /* 表情符号 */
        .message-emoji {
            font-size: 16px !important;
        }

        /* WhatsApp聊天按钮 */
        .chat-button {
            background: #25D366 !important;  /* WhatsApp绿色 */
            color: white !important;
            border: none !important;
            border-radius: 25px !important;  /* 圆角按钮 */
            padding: 12px 24px !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            width: 100% !important;
            transition: background 0.2s !important;
            text-decoration: none !important;
            display: inline-block !important;
            text-align: center !important;
        }

        /* 聊天按钮悬停效果 */
        .chat-button:hover {
            background: #1DA851 !important;  /* 更深的绿色 */
            color: white !important;
            text-decoration: none !important;
        }

        /* 帮助提示气泡 */
        .help-bubble {
            position: absolute !important;
            bottom: 70px !important;    /* 相对于按钮上方的位置 */
            right: 10px !important;
            background: white !important;
            border: 2px dashed #25D366 !important;  /* 绿色虚线边框 */
            border-radius: 20px !important;
            padding: 8px 16px !important;
            font-size: 12px !important;
            color: #333 !important;
            white-space: nowrap !important;  /* 防止文字换行 */
            opacity: 1 !important;
            visibility: visible !important;
            transition: all 0.3s ease !important;
            animation: pulse 2s infinite !important;  /* 脉动动画 */
            z-index: 999998 !important;
            font-family: Arial, sans-serif !important;
            font-weight: normal !important;
            text-transform: none !important;
            letter-spacing: normal !important;
        }

        /* 气泡隐藏状态 */
        .help-bubble.hidden {
            opacity: 0 !important;
            visibility: hidden !important;
            transform: translateY(10px) !important;
        }

        /* 气泡小箭头 */
        .help-bubble::after {
            content: '' !important;
            position: absolute !important;
            bottom: -8px !important;
            right: 20px !important;
            width: 0 !important;
            height: 0 !important;
            border-left: 8px solid transparent !important;
            border-right: 8px solid transparent !important;
            border-top: 8px solid #25D366 !important;
        }

        /* 脉动动画 */
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        /* WhatsApp主按钮 - 增强防冲突版 */
        .whatsapp-btn {
            width: 60px !important;      /* 按钮大小 */
            height: 60px !important;
            background: #25D366 !important;  /* WhatsApp绿色 */
            border-radius: 50% !important;   /* 圆形按钮 */
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;  /* 绿色阴影 */
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
            border: none !important;
            position: relative !important;
            overflow: hidden !important;
            z-index: 999999 !important;
            
            /* 新增：重置可能影响形状的属性 */
            padding: 0 !important;
            margin: 0 !important;
            box-sizing: border-box !important;
            min-width: 60px !important;
            min-height: 60px !important;
            max-width: 60px !important;
            max-height: 60px !important;
            font-family: Arial, sans-serif !important;
            font-size: 14px !important;
            font-weight: normal !important;
            text-decoration: none !important;
            text-transform: none !important;
            letter-spacing: normal !important;
            line-height: normal !important;
        }

        /* 按钮悬停效果 - 增强版 */
        .whatsapp-btn:hover {
            transform: scale(1.1) !important;  /* 放大效果 */
            box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5) !important;
            background: #1DA851 !important;  /* 深绿色悬停效果 */
            color: white !important;
            border: none !important;
        }

        /* 按钮激活状态（显示X图标时）保持绿色 */
        .whatsapp-btn.active {
            background: #25D366 !important;
            box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
        }

        .whatsapp-btn.active:hover {
            box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5) !important;
            background: #1DA851 !important;
        }

        /* 图标容器 */
        .icon-container {
            position: relative !important;
            width: 24px !important;
            height: 24px !important;
        }

        /* 图标基础样式 */
        .icon {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 24px !important;
            height: 24px !important;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
            fill: white !important;
        }

        /* WhatsApp图标显示状态 */
        .whatsapp-icon {
            opacity: 1 !important;
            transform: rotate(0deg) scale(1) !important;
        }

        /* 关闭图标隐藏状态 */
        .close-icon {
            opacity: 0 !important;
            transform: rotate(-180deg) scale(0.8) !important;
        }

        /* 按钮激活时的图标切换动画 */
        .whatsapp-btn.active .whatsapp-icon {
            opacity: 0 !important;
            transform: rotate(180deg) scale(0.8) !important;
        }

        .whatsapp-btn.active .close-icon {
            opacity: 1 !important;
            transform: rotate(0deg) scale(1) !important;
        }

        /* ===========================================
           响应式设计 - 移动端适配
           =========================================== */
        @media (max-width: 768px) {
            .chat-popup {
                width: 280px !important;
                right: -10px !important;  /* 移动端稍微调整位置 */
            }
            
            .whatsapp-container {
                bottom: 15px !important;  /* 移动端距离底部稍近 */
                right: 15px !important;   /* 移动端距离右侧稍近 */
            }

            .help-bubble {
                font-size: 11px !important;
                padding: 6px 12px !important;
                bottom: 65px !important;
            }
        }