/**
 * 主题9 站点 Logo 尺寸（light/dark 切换由 main-LTR.css 控制）
 */
:root {
    --theme9-nav-logo-max-h: 38px;
    --theme9-nav-logo-max-w: min(150px, 32vw);
    --theme9-footer-logo-max-h: 37px;
    --theme9-footer-logo-max-w: min(145px, 30vw);
}

@media (max-width: 991.98px) {
    :root {
        --theme9-nav-logo-max-h: 30px;
        --theme9-nav-logo-max-w: min(130px, 40vw);
        --theme9-footer-logo-max-h: 29px;
        --theme9-footer-logo-max-w: min(120px, 38vw);
    }
}

.header-logo .logo-img {
    max-height: var(--theme9-nav-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme9-nav-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
}

.footer-logo {
    max-height: var(--theme9-footer-logo-max-h) !important;
    height: auto !important;
    width: auto !important;
    max-width: var(--theme9-footer-logo-max-w) !important;
    object-fit: contain !important;
}

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(--theme9-nav-logo-max-h) !important;
    max-width: var(--theme9-nav-logo-max-w) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.header-logo .logo-img.lozad[data-src],
.footer-logo.lozad[data-src] {
    background: transparent !important;
    background-image: none !important;
}

.header-logo .logo-img,
.footer-logo {
    background-color: transparent !important;
    background-size: auto !important;
}
