.roles-tab {
    display: flex;
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 99999;
}

.roles-tab i {
    width:  1.49333rem;
    width: 1.49333rem;
    height: .53333rem;
    line-height: .53333rem;
    background-size: 100% 100%;
    text-align: center;
    font-size: .34667rem;
    font-style: normal;
    color: #C08D47;
    cursor: pointer;
}
.roles-tab .active {
    background: url(../images/r-label_e4a6027.png) no-repeat center 0;
    width: 1.49333rem;
    height: .53333rem;
    line-height: .53333rem;
    background-size: 100% 100%;
    text-align: center;
    font-size: .34667rem;
    font-style: normal;
    color: #f6f6f6;
}

.leo2,.leo3 {
    display: none;
}

        /* 全局样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            height: 200vh; /* 用于测试滚动效果 */
            background-color: #f5f5f5;
        }

        /* 悬浮客服按钮样式 */
        .float-service {
            position: fixed;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            z-index: 1000;
            /* 保持简单的过渡效果 */
            transition: transform 0.3s ease;
        }

        .float-service img {
            /* 使用图片实际大小，移除所有边框和阴影 */
            width: 70px;
            height: 160px;
            display: block;
            border: none;
            outline: none;
            box-shadow: none;
        }

        .float-service:hover {
            transform: translateY(-50%) scale(1.05);
            /* 移除hover时的阴影 */
            box-shadow: none;
        }

        /* 二维码弹窗样式 */
        .qr-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1100;
        }

        .qr-modal.active {
            display: flex;
        }

        .qr-content {
            background-color: #ffffff;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .qr-image {
            width: 200px;
            height: 200px;
            margin-bottom: 15px;
            border: 2px solid #f0f0f0;
            border-radius: 8px;
            /* 确保图片正确显示 */
            display: block;
            object-fit: cover;
        }

        .qr-title {
            font-size: 18px;
            font-weight: bold;
            color: #333333;
            margin-bottom: 10px;
        }

        .qr-tip {
            font-size: 11px;
            font-weight: bold;
            color: #333333;
            margin-bottom: 10px;
        }

        .qr-desc {
            font-size: 14px;
            color: #666666;
            margin-bottom: 20px;
        }

        .close-btn {
            background-color: #07C160;
            color: #ffffff;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s ease;
        }

        .close-btn:hover {
            background-color: #06b355;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .float-service {
                /* 在移动端仍保持图片实际大小 */
                width: auto;
                height: auto;
                right: 10px;
            }

            .qr-image {
                width: 150px;
                height: 150px;
            }

            .qr-content {
                padding: 15px;
            }
        }