﻿.float-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    position: relative;
    width: 48px;
    height: 48px;
    background-color: var(--mainColor);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.float-btn:hover {
    background-color: #dc3545;
    transform: scale(1.1);
}

.btn-icon {
    width: 100%;
    height: 100%;
    background-image: url('../image/tip2.png');
    background-size: 48px 192px;
    border-radius: 50%;
}

.qq-btn .btn-icon {
    background-position: 0 0;
}

.phone-btn .btn-icon {
    background-position: 0 -48px;
}

.qrcode-btn .btn-icon {
    background-position: 0 -96px;
}

.top-btn .btn-icon {
    background-position: 0 -144px;
}

.qq-btn .tooltip-text {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qq-btn .tooltip-text::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.qq-btn:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    right: 55px;
}

.tooltip-bubble {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

.qrcode-btn .tooltip-bubble img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}

.tooltip-bubble::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: white;
}

.tooltip-bubble::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 9px solid transparent;
    border-left-color: #e0e0e0;
    z-index: -1;
}

.phone-btn:hover .tooltip-bubble,
.qrcode-btn:hover .tooltip-bubble {
    opacity: 1;
    visibility: visible;
    right: 55px;
}