/**
 * 主题17 站点 Logo 尺寸（导航 / 页脚）
 * 双 Logo 显示切换由 style.css 控制，此处仅限 img 尺寸。
 */
:root {
    --theme17-nav-logo-max-h: 55px;
    --theme17-nav-logo-max-w: min(195px, 34vw);
    --theme17-footer-logo-max-h: 53px;
    --theme17-footer-logo-max-w: min(185px, 32vw);
}

@media (max-width: 991.98px) {
    :root {
        --theme17-nav-logo-max-h: 47px;
        --theme17-nav-logo-max-w: min(168px, 42vw);
        --theme17-footer-logo-max-h: 45px;
        --theme17-footer-logo-max-w: min(162px, 38vw);
    }
}

.logo a.main_sticky_main_l img,
.logo a.main_sticky_l img {
    max-height: var(--theme17-nav-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme17-nav-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
    vertical-align: middle;
}

.logo {
    line-height: 0;
    max-height: calc(var(--theme17-nav-logo-max-h) + 8px);
}

.dizil-description-area a img {
    max-height: var(--theme17-footer-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--theme17-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(--theme17-nav-logo-max-h) !important;
    max-width: var(--theme17-nav-logo-max-w) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.logo a.main_sticky_main_l img.lozad[data-src],
.logo a.main_sticky_l img.lozad[data-src],
.dizil-description-area a img.lozad[data-src],
.logo,
.dizil-description-area a {
    background: transparent !important;
    background-image: none !important;
}

.logo a img,
.dizil-description-area a img {
    background-color: transparent !important;
    background-size: auto !important;
}
