/* 首页头部：平板 / 手机导航 */
@media (max-width: 1199px) {
  .header {
    min-width: 0 !important;
    height: 56px;
    padding: 0 12px;
    align-items: center;
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    gap: 8px;
  }

  .header .left {
    width: auto;
    height: auto;
    flex: 1 1 auto;
    flex-shrink: 0;
    min-width: 0;
  }

  .header .left .logo11 {
    width: auto;
    height: auto;
  }

  .header .left .logo11 img {
    position: static;
    margin: 0;
    width: 110px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 120;
    flex-shrink: 0;
    order: 3;
  }

  .mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
  }

  .header.mobile-menu-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header.mobile-menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .header.mobile-menu-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header .middle {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    min-width: 0 !important;
    width: 100%;
    background: rgba(0, 14, 69, 0.98);
    z-index: 110;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: hidden;
    order: 10;
  }

  .header.mobile-menu-open .middle {
    transform: translateX(0);
    visibility: visible;
  }

  .header .middle .middle_nav {
    flex-direction: column;
    padding: 8px 0 48px;
    height: auto;
    width: 100%;
  }

  .header .middle .middle_nav li {
    margin: 0;
    line-height: 1.4;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 20px;
    text-align: left;
    height: auto;
  }

  .header .middle .middle_nav li::after,
  .header .middle .middle_nav li::before {
    display: none;
  }

  .header .navbar3-wrapper {
    position: static !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 8px;
    padding: 8px 0;
    display: none;
  }

  .header .middle .middle_nav li.nav-expanded .navbar3-wrapper {
    display: block;
  }

  .header .navbar3-wrapperTips {
    display: none !important;
  }

  .header .navbar3 {
    max-height: 55vh;
    overflow-y: auto;
    padding: 8px 12px !important;
    flex-direction: column !important;
    max-width: 100% !important;
    min-height: 0 !important;
  }

  .header .navbar3 .navbar3Content,
  .header .navbar3 .navbar3Flex {
    width: 100% !important;
    max-width: 100% !important;
  }

  .header .navbar3 .navbar3-itemFlex,
  .header .navbar3Item {
    flex-wrap: wrap;
  }

  .header .navbar3-item-content {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .header .navbar3-item-content .itemimg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .header .niNameFlex {
    flex: 1;
    min-width: 0;
  }

  .header .niDetail {
    white-space: normal;
    line-height: 1.4;
  }

  .header .niName {
    font-size: 14px;
  }

  .header .niDetail {
    font-size: 12px;
    line-height: 1.4;
  }

  .header .right {
    width: auto;
    flex-shrink: 0;
    order: 2;
    margin-left: auto;
  }

  .header .right .right1 span {
    display: none;
  }

  .header .right .right2 {
    display: none;
  }

  .header .right .right1 .img-box {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 1200px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .header {
    padding: 0 10px;
    height: 52px;
  }

  .header .left .logo11 img {
    width: 96px;
  }

  .header .middle {
    top: 52px;
  }
}
