/**
 * 主题1 站点 Logo（对齐主题2）
 * 按容器 class 限高，不依赖 URL 含 logo/img（扁平 hash 路径同样生效）。
 * 仅限尺寸 + 透明背景，不加 blend/filter。
 */
:root {
    --site-nav-logo-max-h: 46px;
    --site-nav-logo-max-w: min(180px, 34vw);
    --site-footer-logo-max-h: 40px;
    --site-footer-logo-max-w: min(160px, 30vw);
}

@media (max-width: 991.98px) {
    :root {
        --site-nav-logo-max-h: 38px;
        --site-nav-logo-max-w: min(150px, 42vw);
        --site-footer-logo-max-h: 34px;
        --site-footer-logo-max-w: min(140px, 38vw);
    }
}

/* 导航 Logo */
.header .navbar-brand,
.navbar-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    max-height: calc(var(--site-nav-logo-max-h) + 8px);
    background: transparent !important;
    background-image: none !important;
}

.header .navbar-brand img,
.navbar-brand img {
    max-height: var(--site-nav-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--site-nav-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
    vertical-align: middle;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    background-size: auto !important;
}

/* 页脚 Logo */
.footer-area a.footer-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    background: transparent !important;
    background-image: none !important;
}

.footer-area a.footer-logo img,
.footer-logo img {
    max-height: var(--site-footer-logo-max-h) !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: var(--site-footer-logo-max-w) !important;
    object-fit: contain !important;
    object-position: left center;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    background-size: auto !important;
}
