/**
 * ============================================
 * floating-contact.css - 字体图标悬浮联系方式
 * ============================================
 */

/* ===== 悬浮容器 ===== */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== 每个联系方式按钮 ===== */
.contact-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 按钮链接 ===== */
.btn-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
}

/* ===== Font Awesome 图标 ===== */
.btn-link .icon-fa {
    font-size: 24px;
    display: block;
    line-height: 1;
    transition: color 0.3s ease;
}

/* ===== 标签文字 ===== */
.btn-link .label {
    font-size: 10px;
    margin-top: 2px;
    opacity: 0.8;
    transition: color 0.3s ease;
}

/* ===== 悬停按钮效果 ===== */
.contact-btn:hover .btn-link {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ===== 每个按钮不同颜色 ===== */
#contact-phone:hover .btn-link {
    background: #25D366;
    color: #fff;
}

#contact-wechat:hover .btn-link {
    background: #07C160;
    color: #fff;
}

#contact-qq:hover .btn-link {
    background: #12B7F5;
    color: #fff;
}

/* ===== 悬浮弹出信息 ===== */
.popup-info {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== 小三角箭头 ===== */
.popup-info::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid rgba(0, 0, 0, 0.85);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* ===== 悬浮时显示 ===== */
.contact-btn:hover .popup-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-4px);
}

/* ===== 电话弹出 ===== */
.phone-popup .popup-text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== 二维码弹出 ===== */
.qr-popup {
    padding: 12px;
    white-space: normal;
    min-width: 160px;
}

.qr-popup::after {
    border-left-color: rgba(0, 0, 0, 0.85);
}

.qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    display: block;
    background: #fff;
    padding: 4px;
}

.qr-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .floating-contact {
        right: 12px;
        bottom: 80px;
        gap: 10px;
    }

    .btn-link {
        width: 48px;
        height: 48px;
    }

    .btn-link .icon-fa {
        font-size: 20px;
    }

    .btn-link .label {
        font-size: 9px;
    }

    .popup-info {
        right: 56px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .qr-popup {
        min-width: 130px;
        padding: 10px;
    }

    .qr-code {
        width: 100px;
        height: 100px;
    }

    .qr-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        right: 8px;
        bottom: 70px;
        gap: 8px;
    }

    .btn-link {
        width: 40px;
        height: 40px;
    }

    .btn-link .icon-fa {
        font-size: 16px;
    }

    .btn-link .label {
        display: none;
    }

    .qr-code {
        width: 80px;
        height: 80px;
    }
}