/**
 * 悬浮联系方式插件样式
 */

/* 引入Font Awesome图标 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* 容器样式 */
.floating-contact-container {
    position: fixed;
    bottom: 70px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 位置控制 */
.floating-contact-right {
    right: 20px;
}

.floating-contact-left {
    left: 20px;
}

/* 按钮基本样式 */
.floating-contact-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.floating-contact-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 图标样式 */
.floating-contact-button i {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 联系信息面板 */
.floating-contact-info {
    position: absolute;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 12px;
    min-width: 180px;
    max-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

/* 右侧位置的信息面板 */
.floating-contact-right .floating-contact-info {
    right: 60px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
}

.floating-contact-right .floating-contact-button:hover .floating-contact-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

/* 左侧位置的信息面板 */
.floating-contact-left .floating-contact-info {
    left: 60px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
}

.floating-contact-left .floating-contact-button:hover .floating-contact-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

/* 信息内容样式 */
.info-content {
    color: #333;
}

.info-content p {
    margin: 0 0 8px 0;
    font-weight: bold;
    color: #333;
}

.info-content a {
    color: #0073aa;
    text-decoration: none;
    display: inline-block;
    word-break: break-all;
}

.info-content a:hover {
    text-decoration: underline;
}

/* 微信和WhatsApp特定样式 */
.wechat-info, .whatsapp-info {
    top: 0;
    transform: translateY(-80%) scale(0.8) !important;
}

.floating-contact-button:hover .wechat-info,
.floating-contact-button:hover .whatsapp-info {
    transform: translateY(-80%) scale(1) !important;
}

/* 二维码容器 */
.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qrcode-container img {
    max-width: 80%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
}

.qrcode-container p {
    text-align: center;
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #555;
}

/* 特定按钮样式 */
.phone-button {
    background-color: #4CAF50;
}

.email-button {
    background-color: #2196F3;
}

.wechat-button {
    background-color: #09B83E;
}

.whatsapp-button {
    background-color: #25D366;
}

.rocket-button {
    background-color: #FF5722;
}

.back-to-top {
    background-color: #607D8B;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .floating-contact-button {
        width: 45px;
        height: 45px;
    }
    
    .floating-contact-button i {
        font-size: 20px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .floating-contact-info {
        min-width: 160px;
        max-width: 200px;
        padding: 10px;
    }
    
    .floating-contact-right .floating-contact-info {
        right: 55px;
    }
    
    .floating-contact-left .floating-contact-info {
        left: 55px;
    }
    
    /* 移动端二维码样式调整 */
    .wechat-info, .whatsapp-info {
        transform: translateY(-85%) scale(0.8) !important;
    }
    
    .floating-contact-button:hover .wechat-info,
    .floating-contact-button:hover .whatsapp-info {
        transform: translateY(-85%) scale(1) !important;
    }
    
    .qrcode-container img {
        max-width: 75%;
    }
}

@media (max-width: 480px) {
    .floating-contact-container {
        bottom: 15px;
    }
    
    .floating-contact-right {
        right: 15px;
    }
    
    .floating-contact-left {
        left: 15px;
    }
    
    .floating-contact-button {
        width: 40px;
        height: 40px;
    }
    
    .floating-contact-button i {
        font-size: 18px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .floating-contact-info {
        min-width: 140px;
        max-width: 180px;
        padding: 8px;
    }
    
    /* 小屏幕二维码样式调整 */
    .wechat-info, .whatsapp-info {
        transform: translateY(-90%) scale(0.8) !important;
    }
    
    .floating-contact-button:hover .wechat-info,
    .floating-contact-button:hover .whatsapp-info {
        transform: translateY(-90%) scale(1) !important;
    }
    
    .qrcode-container img {
        max-width: 70%;
    }
    
    .qrcode-container p {
        font-size: 12px;
        margin-top: 3px;
    }
}