/**
 * B2B悬浮聊天按钮样式
 */

/* 悬浮按钮容器 */
.b2b-float-chat-container {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 单个按钮 */
.b2b-float-chat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 50px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 60px;
    justify-content: center;
}

.b2b-float-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #fff;
}

.b2b-float-chat-btn svg {
    flex-shrink: 0;
}

.b2b-float-chat-btn span {
    white-space: nowrap;
}

/* WhatsApp按钮 */
.b2b-float-chat-whatsapp {
    background: #25d366;
}

.b2b-float-chat-whatsapp:hover {
    background: #20ba5a;
    color: #fff;
}

/* Zalo按钮 */
.b2b-float-chat-zalo {
    background: #0068ff;
}

.b2b-float-chat-zalo:hover {
    background: #0052cc;
    color: #fff;
}

/* 微信按钮 */
.b2b-float-chat-wechat {
    background: #07c160;
}

.b2b-float-chat-wechat:hover {
    background: #06ad56;
    color: #fff;
}

/* 微信弹窗 */
.b2b-wechat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-wechat-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.b2b-wechat-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.b2b-wechat-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.b2b-wechat-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.b2b-wechat-modal-content h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.b2b-wechat-qr {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
}

.b2b-wechat-id {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.b2b-wechat-id strong {
    color: #07c160;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .b2b-float-chat-container {
        right: 16px;
        bottom: 100px;
        gap: 10px;
    }
    
    .b2b-float-chat-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .b2b-float-chat-btn span {
        display: none;
    }
    
    .b2b-float-chat-btn {
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%;
    }
    
    .b2b-wechat-modal-content {
        padding: 24px;
    }
    
    .b2b-wechat-qr {
        max-width: 180px;
    }
}
