/**
 * site-footer.css · 全站页脚扩展（自定义栏 + 二维码）
 */

.vs-foot-custom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    width: 100%;
    align-items: start;
}

.vs-foot-custom__slot {
    min-width: 0;
    font-size: 13px;
    line-height: 1.6;
}

.vs-foot-custom__slot--left {
    text-align: left;
}

.vs-foot-custom__slot--center {
    text-align: center;
}

.vs-foot-custom__slot--right {
    text-align: right;
}

/* 友链 / IP 徽章等：统一高度，避免 PNG/SVG 原始尺寸忽大忽小 */
.vs-foot-custom__slot a {
    display: inline-block;
    margin: 0 8px 8px 0;
    vertical-align: middle;
    line-height: 1;
}

.vs-foot-custom__slot img,
.vs-foot-custom__slot svg {
    display: inline-block !important;
    vertical-align: middle;
    max-height: 24px;
    width: auto !important;
    height: auto !important;
    max-width: 160px;
    object-fit: contain;
}

.vs-foot-qr-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-left: auto;
    flex-shrink: 0;
}

.vs-foot-qr {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
}

.vs-foot-qr__item {
    margin: 0;
    text-align: center;
}

.vs-foot-qr__img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
}

.vs-foot-qr__label {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .vs-foot-custom {
        grid-template-columns: 1fr;
    }

    .vs-foot-custom__slot,
    .vs-foot-custom__slot--left,
    .vs-foot-custom__slot--center,
    .vs-foot-custom__slot--right {
        text-align: center;
    }

    .vs-foot-custom__slot a {
        margin: 0 6px 8px;
    }

    .vs-foot-qr-wrap,
    .vs-foot-qr {
        width: 100%;
        justify-content: flex-end;
    }
}
