/* 悬浮二维码样式 */
.floating-qrcode {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.qrcode-button {
    width: 60px;
    height: 60px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.qrcode-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.qrcode-button i {
    font-size: 28px;
    color: white;
}

.qrcode-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease;
    min-width: 240px;
}

.qrcode-popup-title {
    text-align: center;
    margin-bottom: 16px;
}

.qrcode-popup-title p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.qrcode-image-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    padding: 8px;
}

.qrcode-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 小提示气泡 */
.qrcode-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-qrcode:hover .qrcode-tooltip {
    opacity: 0;
}

.qrcode-button:hover ~ .qrcode-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-qrcode {
        bottom: 20px;
        right: 20px;
    }
    
    .qrcode-button {
        width: 50px;
        height: 50px;
    }
    
    .qrcode-button i {
        font-size: 24px;
    }
    
    .qrcode-popup {
        right: -10px;
        padding: 20px;
        min-width: 200px;
    }
    
    .qrcode-image-container {
        width: 160px;
        height: 160px;
    }
    
    .qrcode-popup-title p {
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.6);
    }
}

.qrcode-button {
    animation: pulse 2s infinite;
}

.qrcode-button:hover {
    animation: none;
}

