/* 客服按钮容器 - 使用transform定位，适配不同屏幕 */
        .cs-button-container {
            position: fixed;
            z-index: 9999;
            cursor: move;
            user-select: none;
            touch-action: none;
            right: 30px;
            bottom: 30px;
        }

        /* 主客服按钮 */
        .cs-main-button {
            width: 65px;
            height: 65px;
            background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 32px rgba(0, 114, 255, 0.4);
            position: relative;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            animation: pulse 2s infinite;
        }

        .cs-main-button:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 40px rgba(0, 114, 255, 0.6);
        }

        .cs-main-button.dragging {
            animation: none;
            transform: scale(1.15);
            box-shadow: 0 15px 50px rgba(0, 114, 255, 0.7);
        }

        /* 脉冲动画 */
        @keyframes pulse {
            0% {
                box-shadow: 0 8px 32px rgba(0, 114, 255, 0.4), 0 0 0 0 rgba(0, 114, 255, 0.7);
            }
            70% {
                box-shadow: 0 8px 32px rgba(0, 114, 255, 0.4), 0 0 0 12px rgba(0, 114, 255, 0);
            }
            100% {
                box-shadow: 0 8px 32px rgba(0, 114, 255, 0.4), 0 0 0 0 rgba(0, 114, 255, 0);
            }
        }

        /* 动态客服图标 - GIF动图 */
        .cs-icon {
            width: 95%;
            height: 95%;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        /* SVG动画图标（备选方案） */
        .cs-icon-svg {
            width: 40px;
            height: 40px;
            fill: white;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
        }

        /* 未读消息提示 */
        .cs-unread-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4757;
            color: white;
            font-size: 11px;
            font-weight: bold;
            padding: 3px 7px;
            border-radius: 10px;
            animation: bounce 1s infinite;
            box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
        }

        @keyframes bounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        /* 点击波纹效果 */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.6);
            transform: scale(0);
            animation: ripple-animation 0.6s ease-out;
            pointer-events: none;
        }

        @keyframes ripple-animation {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* 客服弹窗 - 居中显示 */
        .cs-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            width: 360px;
            max-width: 90vw;
            background: white;
            border-radius: 20px;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 9998;
            pointer-events: none;
            display: none;
        }

        .cs-popup.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
            pointer-events: auto;
            display: block;
        }

        /* 弹窗头部 */
        .cs-popup-header {
            background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
            color: white;
            padding: 20px;
            position: relative;
            text-align: center;
        }

        .cs-popup-header h3 {
            font-size: 18px;
            margin-bottom: 5px;
        }

        .cs-popup-header p {
            font-size: 13px;
            opacity: 0.9;
        }

        /* 关闭按钮 */
        .cs-close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 30px;
            height: 30px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .cs-close-btn:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg);
        }

        /* 弹窗内容 */
        .cs-popup-content {
            padding: 20px;
        }

        /* 二维码区域 */
        .cs-qr-section {
            text-align: center;
            padding: 20px;
            background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
            border-radius: 16px;
            margin-bottom: 15px;
        }

        .cs-qr-section h4 {
            font-size: 15px;
            color: #333;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .cs-qr-wrapper {
            position: relative;
            display: inline-block;
        }

        .cs-qr-code {
            width: 150px;
            height: 150px;
            background: white;
            border-radius: 10px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 114, 255, 0.15);
            position: relative;
            overflow: hidden;
        }

        /* 扫码提示动画 */
        .cs-scan-hint {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, transparent, rgba(0, 114, 255, 0.2), transparent);
            animation: scan 2.5s infinite;
        }

        @keyframes scan {
            0% { transform: translateY(-100%); }
            100% { transform: translateY(100%); }
        }

        .cs-qr-pulse {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 160px;
            height: 160px;
            border: 2px solid #0072ff;
            border-radius: 12px;
            transform: translate(-50%, -50%);
            animation: qr-pulse 2s infinite;
            pointer-events: none;
        }

        @keyframes qr-pulse {
            0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
            50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.4; }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
        }

        .cs-qr-tip {
            font-size: 12px;
            color: #666;
            margin-top: 10px;
        }

        /* 联系方式 */
        .cs-contact-simple {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            border: 2px solid transparent;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .cs-contact-simple:hover {
            border-color: #0072ff;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 114, 255, 0.2);
        }

        .cs-contact-simple h5 {
            font-size: 14px;
            color: #333;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .cs-contact-simple p {
            font-size: 18px;
            color: #0072ff;
            font-weight: bold;
            letter-spacing: 2px;
        }

        /* 遮罩层 */
        .cs-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 9997;
            backdrop-filter: blur(5px);
        }

        .cs-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* 智能提示 */
        .cs-smart-tip {
            position: fixed;
            background: white;
            padding: 12px 16px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            opacity: 0;
            transform: scale(0.9);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            max-width: 220px;
            z-index: 9996;
            pointer-events: none;
        }

        .cs-smart-tip.active {
            opacity: 1;
            transform: scale(1);
        }

        .cs-smart-tip h5 {
            font-size: 13px;
            color: #333;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .cs-smart-tip p {
            font-size: 12px;
            color: #666;
            line-height: 1.5;
        }

        .cs-smart-tip-icon {
            font-size: 16px;
        }

        /* 复制提示 */
        .cs-copy-toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            background: #0072ff;
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 10000;
            pointer-events: none;
        }

        .cs-copy-toast.active {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        /* 浮动动画 */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        .cs-main-button.floating {
            animation: pulse 2s infinite, float 3s ease-in-out infinite;
        }

        /* 震动动画 */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
            20%, 40%, 60%, 80% { transform: translateX(4px); }
        }

        .cs-main-button.shake {
            animation: shake 0.5s ease-in-out;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .cs-button-container {
                right: 20px;
                bottom: 20px;
            }

            .cs-main-button {
                width: 55px;
                height: 55px;
            }

            .cs-icon {
                width: 38px;
                height: 38px;
            }

            .cs-popup {
                width: 320px;
                max-width: 85vw;
            }

            .cs-popup-content {
                padding: 15px;
            }

            .cs-qr-code {
                width: 130px;
                height: 130px;
            }

            .cs-smart-tip {
                max-width: 180px;
                padding: 10px 14px;
            }

            .cs-smart-tip h5 {
                font-size: 12px;
            }

            .cs-smart-tip p {
                font-size: 11px;
            }
        }

        /* 极小屏幕适配 */
        @media (max-width: 360px) {
            .cs-popup {
                width: 300px;
                max-width: 92vw;
            }

            .cs-qr-code {
                width: 120px;
                height: 120px;
            }
        }

        /* 引导遮罩 */
        .cs-guide-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10001;
            display: none;
            backdrop-filter: blur(8px);
        }

        .cs-guide-overlay.active {
            display: block;
        }

        .cs-guide-content {
            position: absolute;
            bottom: 100px;
            right: 20px;
            left: 20px;
            background: white;
            padding: 20px;
            border-radius: 16px;
            max-width: 300px;
            margin: 0 auto;
            transform: scale(0.9);
            opacity: 0;
            animation: guide-appear 0.5s ease forwards;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        @keyframes guide-appear {
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .cs-guide-content h4 {
            color: #333;
            margin-bottom: 10px;
            font-size: 16px;
        }

        .cs-guide-content p {
            color: #666;
            font-size: 13px;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .cs-guide-skip {
            padding: 10px 25px;
            background: #0072ff;
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            width: 100%;
        }

        .cs-guide-skip:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
        }