/**
 * 邀请二维码功能样式 - 全局化版本
 * 与现有UI风格保持一致，无隔离前缀
 */

/* 邀请二维码模态框样式 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1050;
}

.qr-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-modal.hiding {
    pointer-events: none;
}

.qr-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    max-width: 480px;
    width: 92%;
    max-height: 96vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 头部样式 */
.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
    position: relative;
}

.qr-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1890ff, #36cfc9);
}

.qr-title {
    font-size: 18px;
    font-weight: 700;
    color: #1890ff;
    letter-spacing: 0.5px;
}

.close-btn {
    background: rgba(0, 0, 0, 0.08);
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(24, 144, 255, 0.1);
    color: #1890ff;
}

/* 内容区域 */
.qr-content {
    padding: 20px;
    position: relative;
    min-height: 0;
}

/* 二维码区域 */
.qr-code-section {
    text-align: center;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 16px;
    min-height: 160px;
    border: 2px solid rgba(24, 144, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.qr-code-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 144, 255, 0.03);
    pointer-events: none;
    border-radius: 14px;
}

.qr-scan-text {
    font-size: 15px;
    color: #595959;
    margin-bottom: 14px;
    font-weight: 600;
    position: relative;
    letter-spacing: 0.3px;
}

.qr-scan-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1890ff, #36cfc9);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.3);
}

.qr-stats-text {
    font-size: 14px;
    color: #52c41a;
    margin-bottom: 14px;
    font-weight: 600;
    text-align: center;
    background: rgba(82, 196, 26, 0.1);
    padding: 10px 18px;
    border-radius: 16px;
    border: 1px solid rgba(82, 196, 26, 0.25);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.15);
    display: none;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.copy-url-btn {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    min-width: 140px;
    transition: all 0.2s ease;
}

.copy-url-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.copy-url-btn:hover::before {
    left: 100%;
}

.copy-url-btn:hover {
    box-shadow: 0 12px 32px rgba(24, 144, 255, 0.4);
}

.copy-url-btn:active {
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.3);
}

/* 文案框样式 */
.qr-code-section .qr-message-box {
    margin-top: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border-left: 4px solid #1890ff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.qr-code-section .qr-message-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 144, 255, 0.03);
    pointer-events: none;
    border-radius: 12px;
}

.qr-code-section .qr-message-content {
    font-size: 13px;
    color: #595959;
    line-height: 1.8;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}



/* 中等屏幕样式 */
@media (max-width: 768px) {
    .qr-container {
        width: 95%;
        max-width: 500px;
        max-height: 94vh;
        overflow-y: auto;
    }
    
    .qr-header {
        padding: 16px 20px 12px;
    }
    
    .qr-title {
        font-size: 18px;
    }
    
    .qr-content {
        padding: 16px;
    }
    
    .qr-code-container {
        padding: 12px;
        min-height: 130px;
        margin-bottom: 12px;
    }
    
    .qr-scan-text {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .qr-stats-text {
        font-size: 14px;
        margin-bottom: 12px;
        padding: 10px 14px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .copy-url-btn {
        padding: 10px 18px;
        font-size: 15px;
        margin-bottom: 12px;
        min-width: 110px;
    }
    
    .qr-code-section .qr-message-box {
        margin-top: 8px;
        padding: 12px;
    }
    
    .qr-code-section .qr-message-content {
        font-size: 13px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .qr-container {
        width: 98%;
        max-width: 460px;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .qr-header {
        padding: 12px 16px 8px;
    }
    
    .qr-title {
        font-size: 16px;
    }
    
    .qr-content {
        padding: 12px;
    }
    
    .qr-code-container {
        padding: 10px;
        min-height: 120px;
        margin-bottom: 10px;
    }
    
    .qr-scan-text {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .qr-stats-text {
        font-size: 13px;
        margin-bottom: 10px;
        padding: 8px 12px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .copy-url-btn {
        padding: 8px 16px;
        font-size: 14px;
        margin-bottom: 10px;
        min-width: 100px;
    }
    
    .qr-code-section .qr-message-box {
        margin-top: 6px;
        padding: 10px;
    }
    
    .qr-code-section .qr-message-content {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* 超小屏幕样式 */
@media (max-width: 320px) {
    .qr-container {
        width: 98%;
        max-width: 420px;
        max-height: 98vh;
        overflow-y: auto;
    }
    
    .qr-header {
        padding: 10px 12px 6px;
    }
    
    .qr-title {
        font-size: 14px;
    }
    
    .qr-content {
        padding: 10px;
    }
    
    .qr-code-container {
        padding: 8px;
        min-height: 100px;
        margin-bottom: 8px;
    }
    
    .qr-scan-text {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .qr-stats-text {
        font-size: 11px;
        margin-bottom: 8px;
        padding: 6px 10px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .copy-url-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-bottom: 8px;
        min-width: 80px;
    }
    
    .qr-code-section .qr-message-box {
        margin-top: 4px;
        padding: 8px;
    }
    
    .qr-code-section .qr-message-content {
        font-size: 11px;
        line-height: 1.3;
    }
}