.game-category-shell {
  position: relative !important;
}

uni-page-body.game-category-page {
  height: var(--game-category-viewport-height, var(--app-height, 100dvh)) !important;
  max-height: var(--game-category-viewport-height, var(--app-height, 100dvh)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

uni-page-body.game-category-page .banner-box,
uni-page-body.game-category-page .notice-box {
  width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

uni-page-body.game-category-page .notice-box {
  height: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

uni-page-body.game-category-page .notice-box .center {
  height: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

/* 恢复原生公告轮播，不再隐藏 swiper */
uni-page-body.game-category-page .notice-box .center .swiper {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

uni-page-body.game-category-page .notice-box .game-notice-static {
  display: none !important;
}

.index-menu-box.game-category-ready {
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding-left: 76px !important;
  min-height: 220px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
}

.game-category-sidebar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 76px;
  background: #f5f6f8;
  border-right: 1px solid #e7e7e7;
  box-sizing: border-box;
  overflow: hidden;
  will-change: height;
}

.game-category-sidebar.game-category-sticky {
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

.game-category-button {
  box-sizing: border-box;
  min-height: 58px;
  padding: 10px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  border-bottom: 1px solid #e7e7e7;
  background: #f5f6f8;
  cursor: pointer;
}

.game-category-button.active {
  color: #d81e06;
  font-weight: 600;
  background: #fff;
  border-left: 4px solid #d81e06;
  padding-left: 1px;
}

.index-menu-box.game-category-ready > .item {
  box-sizing: border-box;
  width: 33.333333% !important;
}

.index-menu-box.game-category-ready > .item.game-category-hidden {
  display: none !important;
}

@media (max-width: 420px) {
  .index-menu-box.game-category-ready {
    padding-left: 68px !important;
  }

  .game-category-sidebar {
    width: 68px;
  }

  .game-category-button {
    min-height: 54px;
    font-size: 13px;
  }
}
