/**
 * 小屏覆盖：需在 page_impt_*.css 之后加载，修正首页 Banner（min-width:1920px）
 * 与顶栏 Logo 在 ≤768px 下的裁切/放大问题。
 */

@media screen and (max-width: 768px) {
  .main.pagebox {
    overflow-x: hidden;
  }

  /* 顶栏：缩小 Logo，避免被顶栏高度裁切；与汉堡按钮同一行对齐 */
  #w_fimg-1591760002779 {
    max-width: 55vw;
    margin-top: 0;
  }

  #w_fimg-1591760002779 .p_dimage,
  #w_fimg-1591760002779 .e_image {
    overflow: visible;
    max-height: none;
  }

  #w_fimg-1591760002779 .p_dimage img {
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  #w_grid-1591760002771 > div > .p_gridbox {
    display: flex;
    align-items: center;
  }

  #w_grid-1591760002771 > div > .p_gridbox > .p_gridCell {
    float: none;
    overflow: visible;
  }

  #c_portalResnav_main-15917601220560638 .header {
    min-height: 0;
    height: 48px;
    display: flex;
    align-items: center;
  }

  #c_portalResnav_main-15917601220560638 .header .container {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }

  #c_portalResnav_main-15917601220560638 #navToggle {
    height: 48px;
    padding: 12px 10px;
    box-sizing: border-box;
  }

  /* 各页顶部大容器：小屏取消 700px 下限，避免撑出大块空白 */
  #w_grid-1591760007591 {
    min-height: 0 !important;
  }

  /* 首页 Banner：取消「伪全屏」放大，按屏宽自适应 */
  #c_portalResEbizads_banner-15917706360993654 .Banner-A1,
  #c_portalResEbizads_banner-15917706360993654 .swiper-container,
  #c_portalResEbizads_banner-15917706360993654 .Banner-A1 .swiper-container {
    height: auto !important;
    min-height: 0 !important;
  }

  /* 覆盖 Swiper fade 效果在 swiper-wrapper 上添加的 inline transform/height */
  #c_portalResEbizads_banner-15917706360993654 .swiper-wrapper {
    height: auto !important;
    display: block !important;
    transform: none !important;
    -webkit-transform: none !important;
  }

  /* 覆盖 Swiper fade 效果在 slide 上添加的 inline position:absolute / opacity */
  #c_portalResEbizads_banner-15917706360993654 .swiper-slide {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    min-height: 0 !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
  }

  #c_portalResEbizads_banner-15917706360993654 .listBox {
    height: auto !important;
    overflow: visible !important;
  }

  #c_portalResEbizads_banner-15917706360993654 .bannerPicBox,
  #c_portalResEbizads_banner-15917706360993654 .swiper-slide-active .bannerPicBox {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    transition: none !important;
  }

  #c_portalResEbizads_banner-15917706360993654 .bannerPic {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    object-fit: contain;
  }

  /* Banner 外层 grid 容器：确保不被压成 0 */
  #w_grid-1591770515942,
  #content_box-1591770515942-0 {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* 页脚 Logo 略缩小，避免挤版 */
  #w_fimg-1591760019147 {
    max-width: 160px;
  }

  #w_fimg-1591760019147 .p_dimage img {
    max-height: 48px;
  }
}
