/**
 * 主题14 站点 Logo 尺寸（导航 / 页脚）
 */
:root {
    --theme14-nav-logo-max-h: 46px;
    --theme14-nav-logo-max-w: min(180px, 34vw);
    --theme14-footer-logo-max-h: 44px;
    --theme14-footer-logo-max-w: min(170px, 32vw);
}

@media (max-width: 991.98px) {
    :root {
        --theme14-nav-logo-max-h: 38px;
        --theme14-nav-logo-max-w: min(155px, 42vw);
        --theme14-footer-logo-max-h: 36px;
        --theme14-footer-logo-max-w: min(150px, 38vw);
    }
}

.header-logo a.main-logo img,
.header-logo a.stiky-logo img {
    max-height: var(--theme14-nav-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme14-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(--theme14-nav-logo-max-h) + 8px);
}

.header-logo a.main-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.header-logo a.stiky-logo {
    display: none;
}

.sticky-nav .header-logo a.main-logo {
    display: none !important;
}

.sticky-nav .header-logo a.stiky-logo {
    display: inline-flex !important;
    align-items: center;
    line-height: 0;
}

.itexpert-footer-logo img {
    max-height: var(--theme14-footer-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme14-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(--theme14-nav-logo-max-h) !important;
    max-width: var(--theme14-nav-logo-max-w) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.header-logo img.lozad[data-src],
.itexpert-footer-logo img.lozad[data-src],
.header-logo,
.itexpert-footer-logo {
    background: transparent !important;
    background-image: none !important;
}

.header-logo a img,
.itexpert-footer-logo img {
    background-color: transparent !important;
    background-size: auto !important;
}
