/* Focused mobile corrections for JuUI controls and board navigation. */
#fanhui-top .gs-inner,
#fanhui-top .gs-inner > a {
  align-items: center !important;
  display: flex !important;
  height: 1.8rem !important;
  justify-content: center !important;
  width: 100% !important;
}

#fanhui-top .gs-inner > a .svg-icon {
  display: block !important;
  height: 1.25rem !important;
  line-height: 1.25rem !important;
  margin: 0 !important;
  position: static !important;
  transform: none !important;
  width: 1.25rem !important;
}

#nv_portal .gc-list-fl,
#nv_forum .gc-list-fl {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#nv_portal .gc-list-fl::-webkit-scrollbar,
#nv_forum .gc-list-fl::-webkit-scrollbar,
#nv_portal .xuan-xin::-webkit-scrollbar,
#nv_forum .xuan-xin::-webkit-scrollbar {
  display: none;
}

/* Keep the paired account actions visually balanced in the shared header. */
#nv_portal .denglu-zhuce,
#nv_forum .denglu-zhuce {
  align-items: center !important;
  display: inline-flex !important;
  gap: 6px !important;
}

#nv_portal .denglu-zhuce a,
#nv_forum .denglu-zhuce a {
  align-items: center !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 72px !important;
  float: none !important;
  height: 36px !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-width: 72px !important;
  padding: 0 !important;
  width: 72px !important;
}

@media (max-width: 767px) {
  #nv_portal .denglu-zhuce,
  #nv_forum .denglu-zhuce {
    gap: 5px !important;
  }

  #nv_portal .denglu-zhuce a,
  #nv_forum .denglu-zhuce a {
    flex-basis: 56px !important;
    font-size: 13px !important;
    height: 32px !important;
    min-width: 56px !important;
    width: 56px !important;
  }

  #nv_portal .gc-xuan,
  #nv_forum .gc-xuan,
  #nv_portal .gc-list-bt .gc-xuan,
  #nv_forum .gc-list-bt .gc-xuan {
    height: auto !important;
    margin: 6px 0 10px !important;
    overflow: visible !important;
    width: 100% !important;
  }

  #nv_portal .xuan-xin,
  #nv_forum .xuan-xin {
    align-items: center !important;
    background: transparent !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    height: auto !important;
    justify-content: flex-start !important;
    min-height: 40px !important;
    overflow-x: auto !important;
    padding: 3px 1px !important;
    scroll-snap-type: x proximity;
    width: 100% !important;
  }

  #nv_portal .xuan-xin .list-lei,
  #nv_forum .xuan-xin .list-lei {
    align-items: center;
    display: inline-flex !important;
    flex: 1 1 0 !important;
    height: 32px !important;
    justify-content: center;
    line-height: 32px !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    scroll-snap-align: start;
    width: auto !important;
  }

  #nv_portal .gc-list-fl,
  #nv_forum .gc-list-fl {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 8px 0 4px !important;
    overflow-x: auto !important;
    padding: 2px 1px 8px !important;
    scroll-snap-type: x proximity;
    width: 100% !important;
  }

  #nv_portal .gc-list-fl .list-tz,
  #nv_forum .gc-list-fl .list-tz {
    flex: 0 0 auto !important;
    min-width: 68px;
    scroll-snap-align: start;
    text-align: center;
  }

  #nv_forum .boardnav .sq-body-bg {
    margin: 0 0 10px !important;
  }

  #nv_forum .boardnav .square-left {
    max-height: none !important;
    padding: 12px !important;
  }

  #nv_forum .boardnav .sq-left-bk {
    align-items: center;
    display: flex;
    min-height: 34px !important;
    padding: 0 4px !important;
  }

  #nv_forum .boardnav .sq-left-gz {
    line-height: 1.65 !important;
    margin-top: 8px !important;
    max-height: none !important;
  }

  #nv_forum .boardnav #pgt .lt-ms-ft {
    align-items: center;
    display: flex !important;
    justify-content: flex-start;
    margin: 4px 0 !important;
  }
}
