/* 全站悬浮客服按钮 */
.float-service {
    position: fixed;
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8c96a 0%, #d4af37 50%, #b8941f 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.float-service.float-service--placed {
    right: auto;
    bottom: auto;
}

.float-service.float-service--dragging {
    cursor: grabbing;
    touch-action: none;
    transition: none;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.float-service:active:not(.float-service--dragging) {
    transform: scale(0.94);
}

.float-service img {
    width: 26px;
    height: 26px;
    display: block;
    filter: brightness(0.15);
}

.float-service__pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.5);
    animation: float-service-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes float-service-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* 有底部导航时抬高位置 */
body.has-footer-nav .float-service {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}
