/*
 * oFFSeek VPS Report 3.0.15
 * 现有 Logo 放大、垂直居中与左侧位置修复
 *
 * 目标：处理上传图片内部存在大面积透明留白时，Logo 主体在导航栏中显得过小的问题。
 * 本文件不替换 Logo，不修改上传资源，仅调整顶部品牌的展示窗口与裁切方式。
 */

.brand-image-only {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 340px !important;
  height: 54px !important;
  max-width: min(34vw, 340px) !important;
  overflow: hidden !important;
  line-height: 0 !important;
  position: relative !important;
  top: 2px !important;
}

/*
 * 使用 cover 裁掉源图片上下的大面积透明留白，让真正的图标与文字占满导航栏窗口。
 * 图片本身不会被修改。
 */
.brand-image-only .brand-logo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
}

/* 没有上传图片 Logo 时，仍然只显示网站名称文字。 */
.brand-text-only {
  width: auto !important;
  height: auto !important;
  max-width: 320px !important;
  overflow: visible !important;
}

@media (min-width: 1121px) {
  .brand-image-only {
    width: 340px !important;
    height: 54px !important;
    max-width: 340px !important;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .brand-image-only {
    width: 280px !important;
    height: 50px !important;
    max-width: 280px !important;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .brand-image-only {
    width: 260px !important;
    height: 48px !important;
    max-width: calc(100vw - 110px) !important;
  }
}

@media (max-width: 680px) {
  .brand-image-only {
    width: 235px !important;
    height: 44px !important;
    max-width: calc(100vw - 105px) !important;
  }
}

@media (max-width: 430px) {
  .brand-image-only {
    width: 210px !important;
    height: 42px !important;
    max-width: calc(100vw - 100px) !important;
  }
}

@media (max-width: 360px) {
  .brand-image-only {
    width: 185px !important;
    height: 40px !important;
    max-width: calc(100vw - 94px) !important;
  }
}


/* 3.0.14：小屏顶部栏视觉中心略低，额外下移 1px。 */
@media (max-width: 680px) {
  .brand-image-only {
    top: 3px !important;
  }
}


/* 3.0.15：缩小品牌区域与页面左边缘之间的视觉空隙。 */
@media (min-width: 1121px) {
  .brand-image-only,
  .brand-text-only {
    margin-left: -12px !important;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .brand-image-only,
  .brand-text-only {
    margin-left: -10px !important;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .brand-image-only,
  .brand-text-only {
    margin-left: -14px !important;
  }
}

@media (max-width: 680px) {
  .brand-image-only,
  .brand-text-only {
    margin-left: -18px !important;
  }
}

@media (max-width: 430px) {
  .brand-image-only,
  .brand-text-only {
    margin-left: -20px !important;
  }
}

@media (max-width: 360px) {
  .brand-image-only,
  .brand-text-only {
    margin-left: -16px !important;
  }
}
