/* N37 统一标志尺寸（2026-11-29）
   目标：全站公司标志统一放大，视觉一致。
   规则：顶栏 46px 高；页内小位置 36px；白色单据用浅色版。
*/
img[src*="logo-n37-darkbg"],
img[src*="logo-n37-lightbg"],
img[src*="logo-n37-ai"]{
  height:46px !important;
  width:auto !important;
  max-width:240px !important;
  object-fit:contain !important;
  vertical-align:middle !important;
}

/* 顶栏/品牌区统一 48px */
header img[src*="logo-n37-"],
.topbar img[src*="logo-n37-"],
.top img[src*="logo-n37-"],
.brand img[src*="logo-n37-"],
.brand-logo[src*="logo-n37-"],
.doc-top img[src*="logo-n37-"]{
  height:48px !important;
  max-width:260px !important;
}

/* 页脚与内嵌小位（不要过大） */
footer img[src*="logo-n37-"],
.footer img[src*="logo-n37-"],
.ml-logo img[src*="logo-n37-"],
.ml-brand-top img[src*="logo-n37-"]{
  height:38px !important;
  max-width:200px !important;
}

/* 登录卡左上标志容器同步放大，避免被容器裁切 */
.ml-logo{ width:auto !important; min-width:46px !important; height:46px !important; padding:3px 6px !important; }
.ml-logo img{ height:38px !important; width:auto !important; object-fit:contain !important; }

/* 打印/对账单等白色单据：浅色版标志稍小，避免压版 */
@media print{
  img[src*="logo-n37-"]{ height:40px !important; }
}

/* ===== v2：压过页面原有小尺寸规则（2026-11-29）===== */
body:not(.admin-mode) .topbar .brand img,
body:not(.admin-mode) .topbar .brand .brand-logo,
body:not(.admin-mode)[data-layout="a"] .topbar .brand img,
body:not(.admin-mode)[data-layout="b"] .topbar .brand img{
  height:48px !important;
  width:auto !important;
  max-width:260px !important;
}

/* 条款/隐私/404 等小方框 logo 容器：放开裁切并放大 */
.logo{ width:auto !important; height:auto !important; min-width:46px !important; min-height:46px !important; overflow:visible !important; border-radius:10px !important; }
.logo img{ height:46px !important; width:auto !important; }

/* 官网与其它页面的头部标志 */
header .logo img, .nav .logo img, .topbar .logo img, .doc-head img{
  height:52px !important; width:auto !important; max-width:280px !important;
}
