/*
 * The formal MingPan page is the reference for every phone-sized product
 * route. Keep the same horizontal destinations visible after each route
 * transition; do not replace them with an avatar-only header or a drawer.
 */
.xn-mobile-unified-header {
  display: none !important;
}

@media (max-width: 900px) {
  .xn-app:not(.xn-app--home) .xn-header {
    height: 60px;
    border-bottom: 1px solid rgba(23, 47, 67, .09);
    background: rgba(253, 253, 251, .97) !important;
    box-shadow: 0 7px 22px rgba(23, 47, 67, .05) !important;
    -webkit-backdrop-filter: blur(16px) saturate(112%);
    backdrop-filter: blur(16px) saturate(112%);
  }

  .xn-app:not(.xn-app--home) .xn-header__inner,
  .xn-app:not(.xn-app--home) .xn-mobile-nav {
    display: none !important;
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-header {
    display: grid !important;
    width: 100%;
    min-height: 60px;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: stretch;
    padding: 0 10px;
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-brand {
    display: grid;
    min-width: 0;
    align-content: center;
    color: #143a5d;
    text-decoration: none;
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-brand span {
    font-family: var(--xn-inner-serif, "Songti SC", STSong, SimSun, serif);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: .12em;
    line-height: 1.05;
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-brand small {
    margin-top: 4px;
    color: rgba(20, 58, 93, .5);
    font-family: var(--xn-inner-sans, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 6px;
    font-weight: 700;
    letter-spacing: .26em;
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-nav {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-nav a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    color: #76828b;
    font-family: var(--xn-inner-serif, "Songti SC", STSong, SimSun, serif);
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 500;
    letter-spacing: .025em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-nav a.is-active {
    color: #173452;
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-nav a.is-active::after {
    position: absolute;
    right: max(5px, 13%);
    bottom: 8px;
    left: max(5px, 13%);
    height: 1px;
    background: #b08b56;
    content: "";
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-nav a:focus-visible {
    z-index: 1;
    outline: 2px solid rgba(176, 139, 86, .72);
    outline-offset: -4px;
  }
}

@media (max-width: 360px) {
  .xn-app:not(.xn-app--home) .xn-mobile-unified-header {
    grid-template-columns: 65px minmax(0, 1fr);
    padding-inline: 7px;
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-brand span {
    font-size: 17px;
  }

  .xn-app:not(.xn-app--home) .xn-mobile-unified-nav a {
    font-size: 10px;
  }
}
