.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,
.notice-box {
  width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

/*
 * 公告条半截死循环根因：
 * 1) 打包 scoped CSS 写死 height:70rpx + uni-swiper 竖向滚动
 * 2) 旧补丁把 swiper 压到 28px，字号/行高一变就裁半截
 * 3) 未上传 / ?v= 未变 → 浏览器继续吃旧 CSS（不是本地写回服务器）
 */
.notice-box,
uni-page-body.game-category-page .notice-box {
  height: 48px !important;
  min-height: 48px !important;
  max-height: none !important;
  /* 打包样式是 height:70rpx + padding:10rpx，不压掉 padding 仍会裁半截 */
  padding: 0 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.notice-box .left,
.notice-box .right,
uni-page-body.game-category-page .notice-box .left,
uni-page-body.game-category-page .notice-box .right {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  min-height: 48px !important;
  line-height: 48px !important;
  overflow: visible !important;
}

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

.notice-box .center .swiper,
.notice-box .center uni-swiper,
uni-page-body.game-category-page .notice-box .center .swiper,
uni-page-body.game-category-page .notice-box .center uni-swiper {
  display: block !important;
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  overflow: hidden !important;
}

/* uni-swiper 内部层也必须同高，否则竖向滚动会裁半截字 */
.notice-box .center uni-swiper .uni-swiper-wrapper,
.notice-box .center uni-swiper .uni-swiper-slides,
.notice-box .center uni-swiper .uni-swiper-slide,
.notice-box .center uni-swiper .uni-swiper-slide-frame,
uni-page-body.game-category-page .notice-box .center uni-swiper .uni-swiper-wrapper,
uni-page-body.game-category-page .notice-box .center uni-swiper .uni-swiper-slides,
uni-page-body.game-category-page .notice-box .center uni-swiper .uni-swiper-slide,
uni-page-body.game-category-page .notice-box .center uni-swiper .uni-swiper-slide-frame {
  height: 36px !important;
  min-height: 36px !important;
}

.notice-box .center .swiper-item,
.notice-box .center uni-swiper-item,
.notice-box .center .text,
uni-page-body.game-category-page .notice-box .center .swiper-item,
uni-page-body.game-category-page .notice-box .center uni-swiper-item,
uni-page-body.game-category-page .notice-box .center .text {
  height: 36px !important;
  min-height: 36px !important;
  line-height: 36px !important;
  font-size: 14px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

.notice-box .game-notice-static,
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;
  }
}
