/* ==================== 飘窗客服样式 ==================== */

/* 客服飘窗主容器 */
.service-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 客服图标按钮 */
.service-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0088ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.service-item:hover {
    background-color: #0066cc;
    transform: scale(1.1);
}

/* 联系方式弹窗 */
.service-popup {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 180px;
    z-index: 10000;
}

/* 弹窗箭头 */
.service-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white;
}

/* 二维码样式 */
.qrcode-img {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto;
}

/* 联系方式文本样式 */
.contact-text {
    font-size: 16px;
    color: #333;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

/* 悬停显示弹窗 */
.service-item:hover .service-popup {
    display: block;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .service-item {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .service-popup {
        min-width: 150px;
        padding: 10px;
    }
    .qrcode-img {
        width: 120px;
        height: 120px;
    }
}
