.kefu-float {
    position: fixed;
    right: 18px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 180;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
        "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

.kefu-float__btn {
    width: 56px;
    min-height: 64px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(2, 6, 23, 0.9);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0 7px;
}

.kefu-float__btn:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.kefu-float__btn:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.75);
    outline-offset: 3px;
}

.kefu-float__icon {
    width: 28px;
    height: 28px;
    display: block;
    color: rgba(7, 193, 96, 0.98);
}

.kefu-float__label {
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.2px;
    opacity: 0.95;
    color: rgba(2, 6, 23, 0.74);
}

.kefu-float__panel {
    position: absolute;
    right: 68px;
    top: 50%;
    bottom: auto;
    width: 240px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 12, 28, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    padding: 14px 14px 12px;
    transform: translate(10px, -50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.kefu-float[data-open="true"] .kefu-float__panel {
    opacity: 1;
    transform: translate(0, -50%);
    visibility: visible;
    pointer-events: auto;
}

.kefu-float__panel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.kefu-float__title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.kefu-float__close {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}

.kefu-float__close:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.75);
    outline-offset: 2px;
}

.kefu-float__qr {
    width: 180px;
    height: 180px;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
}

.kefu-float__hint {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

@media (max-width: 520px) {
    .kefu-float {
        right: 12px;
        top: 50%;
        bottom: auto;
    }

    .kefu-float__panel {
        right: 68px;
        top: 50%;
        bottom: auto;
        width: 220px;
    }

    .kefu-float__qr {
        width: 168px;
        height: 168px;
    }
}
