@charset "UTF-8";

.floating-bar {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--app-primary, #1976D2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.25);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(25, 118, 210, 0.35);
}
.floating-btn.wechat {
    background: #07c160;
    box-shadow: 0 4px 20px rgba(7, 193, 96, 0.25);
}
.floating-btn.wechat:hover {
    box-shadow: 0 8px 35px rgba(7, 193, 96, 0.35);
}
.floating-btn.qq {
    background: #12B7F5;
    box-shadow: 0 4px 20px rgba(18, 183, 245, 0.25);
}
.floating-btn.qq:hover {
    box-shadow: 0 8px 35px rgba(18, 183, 245, 0.35);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    animation: rippleEffect 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes rippleEffect {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(6); opacity: 0; }
}

.go-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.go-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 2rem 1.5rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}
@keyframes modalIn {
    0% { transform: scale(0.8) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-box .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}
.modal-box .close-btn:hover {
    color: #333;
}

.modal-box .qrcode-img {
    max-width: 200px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    border: 1px solid #eee;
}

.modal-box .wechat-id {
    font-size: 1.25rem;
    font-weight: 700;
    color: #07c160;
    margin-bottom: 0.5rem;
}

.modal-box .wechat-tip {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .floating-bar {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    .floating-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    .modal-box {
        padding: 1.5rem;
    }
    .modal-box .qrcode-img {
        max-width: 160px;
    }
}