/* H5 顶栏 + 抽屉 + 悬浮（对齐 H5NavBar / H5Fixed） */

.mobile_nav_con {
  display: none;
}

.mobile-drawer {
  display: none;
}

.h5_fixed {
  display: none;
}

@media (max-width: 768px) {
  /* 彻底隐藏 PC 顶栏，避免与 H5 顶栏重叠 */
  body .site-header,
  body .site-header.site-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  #mobile-nav.mobile_nav_con {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 0 8px 0 0;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  }

  #mobile-nav .mobile-nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0 4px 0 10px;
    line-height: 0;
  }

  #mobile-nav .left_logo {
    width: auto;
    height: 32px;
    max-width: 140px;
    margin: 0;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
  }

  #mobile-nav .mobile_nav_con_right {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 6px;
  }

  /* 极窄屏：缩短电话展示，避免顶栏挤爆 */
  @media (max-width: 400px) {
    #mobile-nav .phone_text {
      max-width: 72px;
      font-size: 11px;
    }
    #mobile-nav .login-link {
      padding: 0 8px;
    }
    #mobile-nav .left_logo {
      width: auto;
      height: 28px;
      max-width: 120px;
    }
  }

  #mobile-nav .phone_icon {
    color: #1890ff;
    font-size: 14px;
    flex-shrink: 0;
  }

  #mobile-nav .phone_text {
    color: #1890ff;
    font-weight: 700;
    font-size: 12px;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    text-decoration: none;
  }

  #mobile-nav .login-link {
    flex-shrink: 0;
    height: 28px;
    line-height: 28px;
    border-radius: 4px;
    font-size: 12px;
    padding: 0 10px;
    background: #1890ff !important;
    border: none;
    color: #fff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  #mobile-nav .right_icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    flex-shrink: 0;
    cursor: pointer;
  }

  /* 抽屉 */
  .mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: #fff;
  }

  .mobile-drawer.is-open {
    display: block;
  }

  .mobile-drawer .nav_inner_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0 8px 0 0;
  }

  .mobile-drawer .nav_inner_box .left_logo {
    width: auto;
    height: 32px;
    max-width: 140px;
    margin: 0 8px 0 12px;
    object-fit: contain;
  }

  .mobile-drawer .nav_close_icon {
    width: 22px;
    margin-right: 12px;
    cursor: pointer;
  }

  .mobile-drawer .menu_box {
    display: flex;
    height: calc(100% - 50px);
    border-top: 1px solid #ebeef2;
  }

  .mobile-drawer .left_menu {
    width: 110px;
    background: #f3f4f6;
    padding: 16px 0;
    overflow: auto;
  }

  .mobile-drawer .menu_fir {
    padding: 0 16px;
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    color: #1b254a;
    cursor: pointer;
  }

  .mobile-drawer .menu_fir.active {
    background: #fff;
  }

  .mobile-drawer .right_detail {
    flex: 1;
    padding: 16px;
    overflow: auto;
  }

  .mobile-drawer .menu_link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #ebeef2;
    color: #1b254a;
    font-size: 15px;
  }

  /* PC 侧栏隐藏 */
  .side-fixed {
    display: none !important;
  }

  .h5_fixed {
    display: flex !important;
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 900;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .h5_fixed .h5-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    color: #1677ff;
    font-size: 18px;
    position: relative;
  }

  .h5_fixed .h5-btn.phone {
    background: #1677ff;
    color: #fff;
  }

  .h5_fixed .h5-consult-label {
    position: absolute;
    left: -6px;
    top: -6px;
    background: #1677ff;
    color: #fff;
    font-size: 11px;
    border-radius: 999px;
    padding: 1px 6px;
    white-space: nowrap;
  }

  .h5_fixed .h5-panel {
    display: none;
    position: absolute;
    right: 56px;
    bottom: 0;
    width: 190px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.15);
  }

  .h5_fixed .h5-panel.is-show {
    display: block;
  }

  .h5_fixed .h5-panel img {
    width: 100%;
    border-radius: 6px;
  }

  .page-main {
    padding-top: 50px !important;
  }

  .page-home .page-main {
    padding-top: 0 !important;
  }

  /* 小屏用 H5Bottom，隐藏 PC 底栏 */
  body .site-footer,
  body footer.site-footer {
    display: none !important;
  }

  .h5-bottom {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    background: url("../images/syImg/footer/footerBg.png") no-repeat center center;
    background-size: cover;
    padding-top: 4.267vw;
  }

  .h5-bottom .footer_logo {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    padding-bottom: 4.267vw;
    margin-bottom: 6.4vw;
  }

  .h5-bottom .footer_logo img {
    display: block;
    width: 35.2vw;
    height: 9.6vw;
    object-fit: contain;
  }

  .h5-bottom .footer_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 0 4.8vw;
    box-sizing: border-box;
  }

  .h5-bottom .footer_list .item {
    width: 24%;
    color: #fff;
    font-size: 3.733vw;
    border-right: 1px solid #fff;
    margin-bottom: 4.267vw;
    text-decoration: none;
    box-sizing: border-box;
  }

  .h5-bottom .footer_list .item:last-child {
    border-right: none;
  }

  .h5-bottom .gzh_con {
    display: flex;
    justify-content: center;
    padding: 0 21.333vw;
    margin: 2.667vw 0;
    box-sizing: border-box;
    text-align: center;
  }

  .h5-bottom .gzh_item {
    font-size: 3.2vw;
    color: rgba(255, 255, 255, 0.8);
    line-height: 4.8vw;
  }

  .h5-bottom .gzh_item img {
    display: block;
    width: 21.333vw;
    height: 21.333vw;
    margin: 0 auto 3.2vw;
    padding: 1.333vw;
    border-radius: 1.333vw;
    background: #fff;
    box-sizing: border-box;
  }

  .h5-bottom .email {
    text-align: center;
    font-size: 3.733vw;
    line-height: 6.4vw;
    color: #fff;
  }

  .h5-bottom .copy_right {
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    margin-top: 6.4vw;
    color: rgba(255, 255, 255, 0.8);
    font-size: 3.2vw;
    line-height: 5.333vw;
    padding: 2.667vw 12.8vw;
    text-align: center;
    box-sizing: border-box;
  }

  .h5-bottom .copy_right p {
    margin: 0;
  }

  .h5-bottom .copy_right a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
  }

  .h5-bottom .copy_right a:hover {
    text-decoration: underline;
  }
}

.h5-bottom {
  display: none;
}

@media (min-width: 769px) {
  .h5_fixed,
  #mobile-nav,
  .mobile-drawer,
  .h5-bottom {
    display: none !important;
  }
}
