/* 站点广告与二维码展示 */
.site-ad-slot {
    margin-bottom: 1rem;
}

.site-ad-card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.site-ad-heading {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .65rem;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    background: #fafafa;
    color: #6c757d;
    font-size: 12px;
}

.site-ad-label {
    border: 1px solid #ced4da;
    border-radius: 2px;
    padding: 0 .3rem;
    line-height: 18px;
    color: #6c757d;
}

.site-ad-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .5rem;
    overflow: hidden;
}

.site-ad-content > a {
    display: block;
    max-width: 100%;
}

.site-ad-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.site-ad-content iframe {
    max-width: 100%;
}

.qr-code-list {
    display: flex;
    flex-direction: column;
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: 1rem 0;
    text-align: center;
}

.qr-code-item + .qr-code-item {
    border-top: 1px solid #eee;
}

.qr-code-image-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    transition: box-shadow .2s ease, transform .2s ease;
}

.qr-code-image-link:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transform: translateY(-1px);
}

.qr-code-item img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border: 0;
    border-radius: 2px;
    background: #fff;
}

.qr-code-meta {
    width: 100%;
    min-width: 0;
    padding-top: 0;
}

.qr-code-meta p {
    line-height: 1.5;
    word-break: break-word;
}

.qr-code-scan-hint {
    margin-top: .25rem;
    font-size: 12px;
    color: #8a8a8a;
}

@media (max-width: 575.98px) {
    .qr-code-image-link {
        padding: 8px;
    }
}
