/* 投注大厅：图2风格游戏卡片 */

body.hm-page-hall #main {
  background: #f2f3f5 !important;
}

body.hm-page-hall .tab-slide {
  background: #f2f3f5 !important;
}

/* 顶部「信用 / 官方 / 体彩」必须可点，且置于卡片列表之上 */
body.hm-page-hall .tab-slide .vux-tab-wrap,
body.hm-page-hall .tab-slide .vux-tab,
body.hm-page-hall .tab-slide .main-tab,
body.hm-page-hall .tab-slide .vux-tabitem,
body.hm-page-hall .tab-slide .vux-tab-item {
  pointer-events: auto !important;
  position: relative;
  z-index: 40;
  touch-action: manipulation;
}

/* Vue scoped：.tab-swiper.vux-center 默认 min-height ~200px，压掉 */
body.hm-page-hall .tab-slide .tab-swiper.vux-center {
  min-height: 0 !important;
  padding-bottom: 0 !important;
  height: auto !important;
}

/* 隐藏原圆图标网格，改由卡片列表展示 */
body.hm-page-hall .tab-slide .vux-swiper-clA,
body.hm-page-hall .tab-slide .vux-slider,
body.hm-page-hall .tab-slide .vux-swiper-item,
body.hm-page-hall .tab-slide .tab-swiper ul {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.hm-page-hall .tab-slide .tab-swiper {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
  pointer-events: none !important;
  position: relative !important;
  z-index: 0 !important;
}

body.hm-page-hall .tab-slide .tab-swiper,
body.hm-page-hall .tab-slide .tab-swiper * {
  pointer-events: none !important;
}

/* 隐藏 Vue 原二级分类栏（样式易被全局 flex 冲乱） */
body.hm-page-hall .tab-slide .vux-nav,
body.hm-page-hall .tab-slide .vux-nav .vux-tab,
body.hm-page-hall .tab-slide .vux-nav .vux-tab-item {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#hm_hall_cats.hc-cat-bar {
  display: none;
  padding: 8px 0 6px;
  position: relative;
  z-index: 30;
  pointer-events: auto;
  touch-action: pan-x;
  background: #f2f3f5;
}

body.hm-page-hall #hm_hall_cats.hc-cat-bar {
  display: block !important;
}

.hc-cat-scroll {
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 0 12px 2px;
  scrollbar-width: none;
  touch-action: pan-x;
  width: 100%;
}

.hc-cat-scroll::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

body.hm-page-hall .tab-slide .tab-swiper > div:not(.vux-nav):not(#hm_hall_cards):not(#hm_hall_cats) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* 原 Vue 分类栏在 tab-swiper 内，一并隐藏 */
body.hm-page-hall .tab-slide .tab-swiper > .vux-nav {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.hc-cat-item {
  -webkit-tap-highlight-color: transparent;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  color: #666;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 8px 14px;
  touch-action: pan-x;
  white-space: nowrap;
}

.hc-cat-item.is-active {
  background: #e73b3b;
  border-color: #e73b3b;
  color: #fff;
}

body.hm-page-hall #hm_hall_cards.hc-root {
  position: relative;
  z-index: 20;
  pointer-events: auto !important;
}

body.hm-page-hall #hm_hall_cards.hc-root,
body.hm-page-hall #hm_hall_cards.hc-root * {
  pointer-events: auto !important;
}

body.hm-page-hall #main > #hm_hall_cats.hc-cat-bar,
body.hm-page-hall #main > #hm_hall_cards.hc-root {
  display: block !important;
}

/* 信用内容外包一层匿名 div，避免它被写死高度 */
body.hm-page-hall .tab-slide > div:not(.vux-tab-wrap):not(#hm_hall_cards):not(#hm_hall_cats):not(.gd-jiantou):not(.gd-txt) {
  height: auto !important;
  min-height: 0 !important;
}

#hm_hall_cards.hc-root {
  display: none;
  padding: 10px 12px 12px;
  box-sizing: border-box;
}

body.hm-page-hall #hm_hall_cards.hc-root {
  display: block !important;
}

.hc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hc-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.hc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f3f5;
}

.hc-info {
  min-width: 0;
  flex: 1;
}

.hc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) auto;
  grid-template-rows: auto auto;
  column-gap: 6px;
  row-gap: 4px;
  align-items: center;
}

.hc-name {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hc-cd {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  color: #e73b3b;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.hc-btn {
  grid-column: 3;
  grid-row: 2;
  display: inline-block;
  flex-shrink: 0;
  width: auto;
  border: none;
  border-radius: 8px;
  background: #e73b3b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 5px 10px;
  line-height: 1.2;
  box-sizing: border-box;
  white-space: nowrap;
  position: relative;
  z-index: 21;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hc-meta {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-period {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-last {
  margin-bottom: 0;
}

.hc-balls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.hc-balls-empty {
  font-size: 12px;
  color: #bbb;
}

.hc-ball-wrap {
  display: inline-flex;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  box-sizing: border-box;
}

.hc-balls.is-six .hc-ball-wrap {
  width: 22px;
  height: 22px;
}

.hc-balls.is-pk10 .hc-ball-wrap {
  width: 18px;
  height: 18px;
  margin-right: 3px;
  flex: 0 0 18px;
}

.hc-ball {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  overflow: hidden;
}

.hc-balls.is-pk10 .hc-ball {
  font-size: 9px;
}

.hc-ball.red { background: #e73b3b; }
.hc-ball.blue { background: #2f7de0; }
.hc-ball.green { background: #2f9e5b; }

.hc-plus {
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  margin: 0 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #8a8a8a;
  text-align: center;
  line-height: 22px;
}

.hc-btn:active {
  opacity: 0.9;
}

.hc-empty,
.hc-loading {
  padding: 28px 12px;
  text-align: center;
  font-size: 13px;
  color: #999;
  background: #fff;
  border-radius: 12px;
}

.hc-third-list .hc-third {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hc-third-main {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.hc-third-icon {
  border-radius: 10px;
  flex-shrink: 0;
  height: 52px;
  object-fit: contain;
  width: 52px;
}

.hc-third-info {
  min-width: 0;
}

.hc-third-info .hc-name {
  margin: 0 0 4px;
}

.hc-third-info .hc-meta {
  color: #999;
  font-size: 12px;
  margin: 0;
}

.hc-third-btn {
  flex-shrink: 0;
  margin-top: 0 !important;
  white-space: nowrap;
}
