/* 全站手机端共用 — 全部限定 body.page-h5，不影响 PC */
@media (max-width: 992px) {
  html.page-h5,
  body.page-h5 {
    --h5-header: 60px;
    --h5-tabbar: 56px;
    --h5-safe-top: env(safe-area-inset-top, 0px);
    --h5-safe-bottom: env(safe-area-inset-bottom, 0px);
    --h5-main-h: calc(100svh - var(--h5-header) - var(--h5-tabbar) - var(--h5-safe-top) - var(--h5-safe-bottom));
  }

  @supports (height: 100dvh) {
    html.page-h5,
    body.page-h5 {
      --h5-main-h: calc(100dvh - var(--h5-header) - var(--h5-tabbar) - var(--h5-safe-top) - var(--h5-safe-bottom));
    }
  }

  body.page-h5 .header {
    height: calc(var(--h5-header) + var(--h5-safe-top));
    padding-top: var(--h5-safe-top);
    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: 60px;
    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;
  }

  body.page-h5 .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(var(--h5-tabbar) + var(--h5-safe-bottom));
    padding-bottom: var(--h5-safe-bottom);
    box-sizing: border-box;
    background: #05070B;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 200;
  }

  body.page-h5 .tabbar-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    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;
  }
}
