/* ========================================================================== */
/*                           简洁联系悬浮组件                                */
/* ========================================================================== */

/* 联系悬浮组件 - 简洁实现 */
.contact-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 悬浮按钮 */
.contact-float__btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.contact-float__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: white;
    text-decoration: none;
}

/* 信息面板 */
.contact-float__panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s ease;
}

.contact-float__panel.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* 面板头部 */
.contact-float__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #333;
}

.contact-float__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-float__close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* 面板内容 */
.contact-float__content {
    padding: 20px;
    text-align: center;
}

.contact-float__qr {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0 auto 16px;
    display: block;
}

.contact-float__info {
    margin: 16px 0;
    text-align: center;
}

.contact-float__number,
.contact-float__email {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin: 4px 0;
    padding: 4px 8px;
    background: rgba(37, 211, 102, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(37, 211, 102, 0.1);
}

.contact-float__content p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.contact-float__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
}

.contact-float__link:hover {
    background: linear-gradient(135deg, #128C7E, #0f7a6b);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-float {
        right: 15px;
    }
    
    .contact-float__btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .contact-float__panel {
        width: 260px;
        bottom: 65px;
    }
    
    .contact-float__content {
        padding: 16px;
    }
    
    .contact-float__qr {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .contact-float {
        right: 10px;
    }
    
    .contact-float__btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .contact-float__panel {
        width: 240px;
        bottom: 60px;
    }
    
    .contact-float__qr {
        width: 90px;
        height: 90px;
    }
}
