.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalBgIn 0.3s ease;
}

.qr-content {
    background: linear-gradient(145deg, #fff, #f8f9fa);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: modalContentIn 0.4s ease;
    min-width: 320px;
    position: relative;
    max-width: 380px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-header {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.qr-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
}

.qr-subtitle {
    font-size: 14px;
    color: #666;
}

.qr-scan-area {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    position: relative;
}

#qrcode {
    margin: 0 auto 25px;
    width: 220px;
    height: 220px;
    padding: 15px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-tips {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.qr-tips .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 10px;
    background: rgba(77,130,255,0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.qr-tips .step:hover {
    background: rgba(77,130,255,0.1);
    transform: translateY(-2px);
}

.qr-tips .step i {
    font-size: 24px;
    color: #4d82ff;
    margin-bottom: 2px;
}

.qr-tips .step span {
    font-size: 13px;
    white-space: nowrap;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.qr-close {
    padding: 10px 35px;
    background: #4d82ff;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    border: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(77,130,255,0.2);
    min-width: 100px;
}

.qr-close:hover {
    background: #3366ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(77,130,255,0.3);
}

.qr-tip-box {
    margin: -5px auto 20px;
    padding: 12px 15px;
    max-width: 220px; /* 与二维码宽度保持一致 */
    background-color: rgba(77, 130, 255, 0.05);
    border: 1px solid rgba(77, 130, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.qr-tip-icon {
    font-size: 24px;
}

.qr-tip-text {
    flex: 1;
    text-align: center; /* 修改为居中对齐 */
}

.qr-tip-text p {
    margin: 0;
    line-height: 1.5;
    text-align: center; /* 确保段落也是居中的 */
}

.qr-tip-text p:first-child {
    color: #4d82ff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px; /* 稍微增加一点间距 */
}

.qr-tip-text p:last-child {
    color: #666;
    font-size: 12px;
}

/* 动画部分保持不变 */
@keyframes modalBgIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalContentIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .qr-content {
        width: 85%;
        padding: 20px;
        min-width: auto;
        margin: 15px;
    }
    
    .qr-title {
        font-size: 16px;
    }
    
    .qr-subtitle {
        font-size: 12px;
    }
    
    #qrcode {
        width: 180px;
        height: 180px;
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .qr-tips {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 5px;
    }

    .qr-tips .step {
        padding: 10px 5px;
    }
    
    .qr-tips .step i {
        font-size: 20px;
    }
    
    .qr-tips .step span {
        font-size: 12px;
    }

    .qr-close {
        padding: 8px 25px;
        font-size: 13px;
    }

    .qr-tip-box {
        max-width: 180px; /* 移动端跟随二维码宽度 */
        padding: 10px 12px;
        margin: -8px auto 15px;
    }
    
    .qr-tip-text p:first-child {
        font-size: 13px;
    }
    
    .qr-tip-text p:last-child {
        font-size: 11px;
    }
}
