/* 群二维码弹窗样式 */
.qrcode-float-btn {
    position: fixed !important;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #07c160, #06ad56);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
    cursor: move;
    z-index: 99999 !important; /* 提高z-index，确保在所有元素之上 */
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
    user-select: none;
    will-change: transform;
    transform: translateZ(0);
    pointer-events: auto !important; /* 确保可以点击 */
}

.qrcode-float-btn:hover {
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 6px 16px rgba(7, 193, 96, 0.6);
}

.qrcode-float-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    pointer-events: none;
}

.qrcode-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.qrcode-modal-overlay.show {
    display: flex;
}

.qrcode-modal {
    background: #0f172a;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.qrcode-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.qrcode-modal-title {
    color: #e2e8f0;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.qrcode-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.qrcode-modal-close:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

/* 大区选择网格 */
.qrcode-server-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.qrcode-server-item {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 500;
}

.qrcode-server-item:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.qrcode-server-item:active {
    transform: translateY(0);
}

/* 二维码展示区域 */
.qrcode-display-container {
    text-align: center;
    padding: 20px 0;
}

.qrcode-display-title {
    color: #38bdf8;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.qrcode-display-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: #fff;
    padding: 10px;
}

.qrcode-display-tip {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qrcode-server-grid {
        grid-template-columns: 1fr;
    }
    
    .qrcode-modal {
        padding: 24px;
        width: 95%;
    }
    
    .qrcode-float-btn {
        width: 50px;
        height: 50px;
    }
    
    .qrcode-float-btn img {
        width: 32px;
        height: 32px;
    }
}

