/**
 * 手机端底部菜单：全宽均分（支持 5 项）
 */
@media (max-width: 991.98px) {
  .m-navbar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    z-index: 1040;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bs-body-bg, #fff);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .m-navbar ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: space-between;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 0;
  }

  .m-navbar ul li {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: center;
  }

  .m-navbar ul li a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 52px;
    padding: 6px 2px !important;
    font-size: 11px;
    line-height: 1.15;
    text-decoration: none;
    box-sizing: border-box;
  }

  .m-navbar ul li a i {
    font-size: 18px;
    line-height: 1;
  }

  .m-navbar ul li a span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 避免页面内容被底栏挡住 */
  body.ptg-has-m-navbar {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
