/*
 * Keep the imported fixed header useful without letting its historical
 * logo/search/navigation stack reserve 160px of a phone viewport. The shared
 * channel fallback owns mobile channel navigation, so this header keeps only
 * the runtime logo and the complete search form in one bounded row.
 */
@media (max-width: 767px) {
  .xiazai-nbyy-site-theme .qy-header,
  .xiazai-nbyy-site-theme .qy-header .header-wrap {
    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .header-inner.container.container-x {
    position: static !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    height: 72px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .xiazai-nbyy-site-theme .qy-header .header-inner > .row {
    display: grid !important;
    grid-template-columns: 106px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 10px !important;
    width: 100% !important;
    height: 72px !important;
    margin: 0 !important;
  }

  .xiazai-nbyy-site-theme .qy-header .qy-logo {
    grid-column: 1 !important;
    width: 106px !important;
    max-width: 106px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .logo-link {
    display: flex !important;
    align-items: center !important;
    width: 106px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .logo-link img {
    display: block !important;
    width: 106px !important;
    max-width: 106px !important;
    height: auto !important;
    max-height: 38px !important;
    object-fit: contain !important;
  }

  .xiazai-nbyy-site-theme .qy-header .qy-nav[data-template-native-channel-nav="true"] {
    display: none !important;
  }

  .xiazai-nbyy-site-theme .qy-header .qy-header-side {
    grid-column: 2 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search,
  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search form,
  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search .search-box {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search .search-box {
    display: flex !important;
    height: 40px !important;
    border-radius: 6px !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search .search-box-in {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 8px !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search .search-box-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    padding: 9px 0 !important;
    font-size: 13px !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search .search-box-out {
    display: inline-flex !important;
    flex: 0 0 58px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 40px !important;
    padding: 0 !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search .search-box-out::before {
    top: 10px !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search .search-box-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    width: 100% !important;
    height: 40px !important;
    line-height: 40px !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search .qy20-header-svg-search {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 40px !important;
  }

  .xiazai-nbyy-site-theme .qy-header.home2020 .qy-search .search-box-btnTxt {
    margin-left: 0 !important;
    font-size: 12px !important;
    line-height: 40px !important;
  }
}
