/* 全站手机端共用 — 全部限定 body.page-h5，不影响 PC */
@media (max-width: 992px) {
  html.page-h5,
  body.page-h5 {
    --h5-header: 60px;
    --h5-tabbar: 48px;
    --h5-main-h: calc(100svh - var(--h5-header) - var(--h5-tabbar));
  }

  @supports (height: 100dvh) {
    html.page-h5,
    body.page-h5 {
      --h5-main-h: calc(100dvh - var(--h5-header) - var(--h5-tabbar));
    }
  }

  /* 顶栏：固定 60px */
  body.page-h5 .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: var(--h5-header);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  body.page-h5 .header-inner {
    height: var(--h5-header);
    padding: 0 15px;
    position: relative;
  }

  body.page-h5 .header-logo img {
    height: 36px;
  }

  body.page-h5 .nav-btn {
    display: block;
    margin-left: auto;
    margin-right: 12px;
  }

  body.page-h5 .btn-contact {
    width: 70px;
    height: 28px;
    line-height: 28px;
    font-size: 11px;
  }

  body.page-h5 .nav {
    display: none;
    position: absolute;
    top: var(--h5-header);
    left: 0;
    width: 100%;
    margin: 0;
    background: #08111F;
  }

  body.page-h5 .nav.show {
    display: block;
  }

  body.page-h5 .nav-list {
    flex-direction: column;
    gap: 0;
  }

  body.page-h5 .nav-item a {
    line-height: 50px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  body.page-h5 .nav-item:hover a,
  body.page-h5 .nav-item.active a {
    border-bottom: 1px solid #E10600;
  }

  body.page-h5 .nav,
  body.page-h5 .btn-contact,
  body.page-h5 .nav-btn {
    display: none;
  }

  body.page-h5 .header-inner {
    justify-content: space-between;
  }

  body.page-h5 .header-contact {
    display: block;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  body.page-h5 .header-contact img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* 底栏：固定 56px */
  body.page-h5 .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    width: 100%;
    height: var(--h5-tabbar);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background: #05070B;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  body.page-h5 .tabbar-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(13px, calc(28 / 1080 * 100vw), 14px);
    color: #fff;
    position: relative;
  }

  body.page-h5 .tabbar-item.active {
    color: #E10600;
  }

  body.page-h5 .tabbar-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: #E10600;
  }

  /*
   * 锁视口子页壳层（核心能力 / 了解我们首页等）：
   * 中间一块 fixed，top=头高、bottom=底栏高，不用 padding-bottom 留黑缝。
   */
  body.page-h5.page-about1,
  body.page-h5.page-hxnl,
  body.page-h5.page-jjf,
  body.page-h5.page-cj-detail,
  body.page-h5.page-contact {
    height: 100svh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #05070B;
  }

  body.page-h5.page-about1 .page-main,
  body.page-h5.page-hxnl .page-main,
  body.page-h5.page-jjf .page-main,
  body.page-h5.page-cj-detail .page-main,
  body.page-h5.page-contact .contact-main {
    position: fixed;
    top: var(--h5-header);
    right: 0;
    bottom: var(--h5-tabbar);
    left: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
  }
}
