@keyframes floatOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatCoreInner {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, calc(-50% - 6px)) scale(1.04); }
}

@keyframes floatLabelIn {
    0% { opacity: 0; transform: translateY(-50%) translateX(10px); }
    100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.floating-btn {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 39;
    text-decoration: none;
    width: 64px;
    height: 64px;
}

.floating-btn__orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    border: 2px dashed rgba(0, 194, 255, .35);
    animation: floatOrbit 8s linear infinite;
    pointer-events: none;
    box-sizing: border-box;
}

.floating-btn__core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2aabee 0%, #1a8cd8 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(42, 171, 238, .45),
                0 0 0 3px rgba(0, 150, 255, .15);
    transition: box-shadow .25s;
    animation: floatCoreInner 3.5s ease-in-out infinite;
}

.floating-btn__core img {
    width: 28px;
    height: 28px;
    display: block;
}

.floating-btn__label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--1w-surface, #141b2d);
    border: 1px solid rgba(0, 150, 255, .3);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    transition: opacity .25s, transform .25s;
}

.floating-btn__label::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--1w-surface, #141b2d);
    border-right: 1px solid rgba(0, 150, 255, .3);
    border-top: 1px solid rgba(0, 150, 255, .3);
}

.floating-btn:hover {
    animation-play-state: paused;
}

.floating-btn:hover .floating-btn__core {
    animation-play-state: paused;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 28px rgba(42, 171, 238, .6),
                0 0 0 4px rgba(0, 194, 255, .2);
}

.floating-btn:hover .floating-btn__label {
    opacity: 1;
    animation: floatLabelIn .3s ease forwards;
}

.floating-btn:hover .floating-btn__orbit {
    animation-play-state: paused;
    border-color: rgba(0, 194, 255, .6);
}

@media (min-width: 1500px) {
    .floating-btn {
        right: calc((100vw - 1440px) / 2 + 20px);
    }
}

@media (max-width: 768px) {
    .floating-btn {
        right: 14px;
        top: auto;
        bottom: 100px;
        transform: none;
        width: 54px;
        height: 54px;
    }

    .floating-btn__core {
        width: 48px;
        height: 48px;
        animation: none;
        transform: translate(-50%, -50%);
    }

    .floating-btn:hover .floating-btn__core {
        transform: translate(-50%, -50%) scale(1.1);
    }

    .floating-btn__core img {
        width: 24px;
        height: 24px;
    }

    .floating-btn__label {
        opacity: 1;
        right: calc(100% + 8px);
        font-size: 11px;
        padding: 6px 10px;
    }
}
