/* 右下角浮动联系图标 */
.floating-contact-icons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.contact-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.contact-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* WhatsApp图标样式 */
.whatsapp-icon {
    background: #25D366;
}

.whatsapp-icon:hover {
    background: #20BA5A;
}

/* 微信图标样式 */
.wechat-icon {
    background: #07C160;
}

.wechat-icon:hover {
    background: #06AD56;
}

/* 微信二维码弹出框 */
.wechat-qrcode {
    position: absolute;
    right: 75px;
    bottom: 0;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 200px;
}

.wechat-qrcode::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.wechat-icon.active .wechat-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.wechat-qrcode img {
    width: 180px;
    height: 180px;
    display: block;
    margin: 0 auto 10px;
    border-radius: 5px;
}

.wechat-qrcode p {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* 响应式设计 - 移动端 */
@media screen and (max-width: 768px) {
    .floating-contact-icons {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon img {
        width: 28px;
        height: 28px;
    }
    
    .wechat-qrcode {
        position: fixed;
        right: 15px;
        left: auto;
        bottom: 80px;
        transform: translateY(10px);
        min-width: auto;
        max-width: calc(100vw - 30px);
        width: auto;
        padding: 15px;
    }
    
    .wechat-qrcode::after {
        right: 10px;
        left: auto;
        top: auto;
        bottom: -10px;
        transform: rotate(90deg);
    }
    
    .wechat-icon.active .wechat-qrcode {
        transform: translateY(0);
    }
    
    .wechat-qrcode img {
        width: 150px;
        height: 150px;
        max-width: calc(100vw - 60px);
    }
    
    .wechat-qrcode p {
        font-size: 12px;
    }
}

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

.contact-icon {
    animation: float 3s ease-in-out infinite;
}

.contact-icon:nth-child(2) {
    animation-delay: 0.5s;
}
