/* =========================================================
   悬浮按钮 + 二维码弹窗（内容框）
   依赖：common.css（变量、.modal-overlay）
   ========================================================= */

/* ----- 悬浮按钮 ----- */
.float-buttons {
    position: fixed;
    left: 10px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    pointer-events: none;
}

@media (min-width: 600px) {
    .float-buttons {
        left: calc(50% - 320px + 16px);
    }
}

.float-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(254, 83, 83, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(254, 83, 83, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s;
    text-align: center;
    line-height: 1.2;
    text-decoration: none;
}

.float-btn i {
    font-size: 16px;
    line-height: 1;
}

.float-btn span {
    display: none;
}

.float-btn:active {
    transform: scale(0.92);
}

.float-btn.group {
    background: rgba(46, 160, 88, 0.85);
    box-shadow: 0 4px 12px rgba(46, 160, 88, 0.24);
}

/* ----- 二维码弹窗内容框 ----- */
.qr-dialog {
    background: #fff;
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.2s;
    padding: 20px;
}

.modal-overlay.active .qr-dialog {
    transform: scale(1);
}

.qr-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.qr-subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}

.qr-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin:0 auto 16px auto;
}

.qr-btn {
    width: 100%;
    padding: 12px 0;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}