/* 悬浮客服样式 */
.floating-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-item {
    width: 65px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.service-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

/* 咨询客服 */
.customer-service {
    padding: 14px 5px;
    background: linear-gradient(135deg, #5B8DEE 0%, #0063F7 100%);
    border-radius: 20px 20px 20px 0;
    text-align: center;
}

.service-avatar {
    width: 50px;
    height: 50px;
    margin: 0 auto 7px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.customer-service .service-label {
    font-size: 12px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

/* 弹窗 */
.service-popup {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 16px;
    width: 216px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.service-item:hover .service-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.popup-header {
    padding: 9px 12px;
    background: linear-gradient(135deg, #5B8DEE 0%, #0063F7 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

.popup-qrcode {
    padding: 15px;
    text-align: center;
    background: #fafafa;
}

.popup-qrcode img {
    width: 139px;
    height: 139px;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    display: block;
    margin: 0 auto;
}

.popup-tips {
    padding: 9px;
    text-align: center;
    font-size: 11px;
    color: #666;
    background: #fafafa;
}

.popup-contacts {
    padding: 12px 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
}

.contact-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.contact-item i {
    font-size: 15px;
    color: #5B8DEE;
}

.contact-value {
    font-size: 12px;
    font-weight: 600;
    color: #0063F7;
    letter-spacing: 0.5px;
}

/* 关注我们 */
.follow-us {
    padding: 18px 5px;
    text-align: center;
    background: white;
}

.service-icon {
    font-size: 24px;
    color: #5B8DEE;
    margin-bottom: 7px;
    display: block;
}

.follow-us .service-label,
.back-top .service-label {
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.popup-account {
    padding: 12px 15px;
    text-align: center;
}

.account-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.account-desc {
    font-size: 10px;
    color: #999;
}

/* 回到顶部 */
.back-top {
    padding: 18px 5px;
    text-align: center;
    background: white;
}

/* 响应式 */
@media (max-width: 768px) {
    .floating-service {
        right: 10px;
        gap: 12px;
    }
    
    .service-item {
        width: 60px;
    }
    
    .customer-service {
        padding: 12px 8px;
    }
    
    .service-avatar {
        width: 44px;
        height: 44px;
    }
    
    .service-popup {
        width: 180px;
        margin-right: 12px;
    }
    
    .popup-qrcode img {
        width: 120px;
        height: 120px;
    }
}
