/* css/qr-friend.css — 个人二维码 / 扫一扫 */

.profile-qr-card {
    text-align: center;
    padding: 22px 16px 20px;
}

.profile-qr-canvas-wrap {
    display: inline-flex;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-qr-canvas-wrap canvas {
    display: block;
    width: 220px;
    height: 220px;
    max-width: 70vw;
    max-height: 70vw;
}

.profile-qr-uid-line {
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

.profile-qr-uid-line strong {
    color: #1a1a1a;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.profile-qr-tip {
    margin: 8px 0 16px;
    font-size: 13px;
    color: #999;
}

.chat-home-scan-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.chat-qr-scan-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 24px;
}

.chat-qr-scan-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 62vh;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
}

.chat-qr-scan-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-qr-scan-canvas {
    display: none;
}

.chat-qr-scan-mask {
    pointer-events: none;
    position: absolute;
    inset: 14%;
    border: 2px solid rgba(82, 165, 94, 0.95);
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
}

.chat-qr-scan-hint {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 0;
}

@media (max-width: 380px) {
    .chat-home-search-row {
        flex-wrap: wrap;
    }
}
