/* 微信客服悬浮按钮样式 */
.wechat-service {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.wechat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #07c160 0%, #06a654 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.wechat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

.wechat-button::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: rgba(7, 193, 96, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.wechat-qrcode {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    width: 200px;
    text-align: center;
    border: 2px solid #07c160;
}

.wechat-qrcode.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.wechat-qrcode::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.wechat-qrcode::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 19px;
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 11px solid #07c160;
}

.wechat-qrcode img {
    width: 160px;
    height: 160px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.wechat-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.wechat-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wechat-service {
        bottom: 20px;
        right: 20px;
    }
    
    .wechat-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .wechat-qrcode {
        width: 180px;
        right: -50px;
    }
    
    .wechat-qrcode::before,
    .wechat-qrcode::after {
        right: 70px;
    }
}