/**
 * 主题13 站点 Logo 尺寸（导航 / 页脚）
 */
:root {
    --theme13-nav-logo-max-h: 50px;
    --theme13-nav-logo-max-w: min(185px, 34vw);
    --theme13-footer-logo-max-h: 48px;
    --theme13-footer-logo-max-w: min(175px, 32vw);
}

@media (max-width: 991.98px) {
    :root {
        --theme13-nav-logo-max-h: 42px;
        --theme13-nav-logo-max-w: min(160px, 42vw);
        --theme13-footer-logo-max-h: 40px;
        --theme13-footer-logo-max-w: min(155px, 38vw);
    }
}

.header-logo a.main-logo img,
.header-logo a.stiky-logo img {
    max-height: var(--theme13-nav-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme13-nav-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
    vertical-align: middle;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    max-height: calc(var(--theme13-nav-logo-max-h) + 8px);
}

.header-logo a.main-logo {
    display: inline-flex !important;
    align-items: center;
    line-height: 0;
}

/* 仅保留一个导航 logo；若残留 stiky-logo 节点也强制隐藏 */
.header-logo a.stiky-logo {
    display: none !important;
}

.sticky-nav .header-logo a.main-logo {
    display: inline-flex !important;
}

.sticky-nav .header-logo a.stiky-logo {
    display: none !important;
}

.footer-logo img {
    max-height: var(--theme13-footer-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme13-footer-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
}

header img[src*="logo/img"],
header img[data-src*="logo/img"],
header img[src*="resource/logo"],
header img[data-src*="resource/logo"] {
    max-height: var(--theme13-nav-logo-max-h) !important;
    max-width: var(--theme13-nav-logo-max-w) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.header-logo img.lozad[data-src],
.footer-logo img.lozad[data-src],
.header-logo,
.footer-logo {
    background: transparent !important;
    background-image: none !important;
}

.header-logo a img,
.footer-logo img {
    background-color: transparent !important;
    background-size: auto !important;
}
