/**
 * 主题16 站点 Logo 尺寸（导航 / 页脚）
 * 单 Logo：.logo a.main_sticky img，无双 Logo 切换规则。
 */
:root {
    --theme16-nav-logo-max-h: 51px;
    --theme16-nav-logo-max-w: min(188px, 34vw);
    --theme16-footer-logo-max-h: 49px;
    --theme16-footer-logo-max-w: min(178px, 32vw);
}

@media (max-width: 991.98px) {
    :root {
        --theme16-nav-logo-max-h: 43px;
        --theme16-nav-logo-max-w: min(162px, 42vw);
        --theme16-footer-logo-max-h: 41px;
        --theme16-footer-logo-max-w: min(158px, 38vw);
    }
}

.logo a.main_sticky img {
    max-height: var(--theme16-nav-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme16-nav-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
    vertical-align: middle;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    max-height: calc(var(--theme16-nav-logo-max-h) + 8px);
}

.logo a.main_sticky {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.widge-thumb img {
    max-height: var(--theme16-footer-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme16-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(--theme16-nav-logo-max-h) !important;
    max-width: var(--theme16-nav-logo-max-w) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.logo a.main_sticky img.lozad[data-src],
.widge-thumb img.lozad[data-src],
.logo,
.widge-thumb {
    background: transparent !important;
    background-image: none !important;
}

.logo a.main_sticky img,
.widge-thumb img {
    background-color: transparent !important;
    background-size: auto !important;
}
