/**
 * 下注页结构：左侧竖栏 → 顶部横向 Tab；选项 2 列 → 4 列卡片（参考图1）
 * 不改业务逻辑，仅覆盖 DOM 布局。
 */

/* ========== 主区域：上下结构 ========== */
.container .list-contet {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

/* ========== 分类：横向可滚动 Tab ========== */
.container .list-contet .left {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  flex: 0 0 auto !important;
  border-right: none !important;
  border-bottom: 1px solid #c9d8ef;
  background: #f5f8fc;
  display: block !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x !important;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.container .list-contet .left::-webkit-scrollbar {
  height: 3px;
}

.container .list-contet .left .scroll-view,
.container .list-contet .left uni-scroll-view,
.container .list-contet .left .uni-scroll-view {
  width: 100% !important;
  max-width: 100% !important;
  height: 46px !important;
  display: block !important;
  overflow: visible !important;
  white-space: nowrap !important;
  touch-action: pan-x !important;
}

.container .list-contet .left .uni-scroll-view-content,
.container .list-contet .left .scroll-view {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  height: 46px !important;
  white-space: nowrap !important;
  vertical-align: top;
}

.container .list-contet .left .type-item {
  height: 46px !important;
  min-width: 76px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  color: #445 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.container .list-contet .left .type-item:before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

.container .list-contet .left .type-item.active {
  color: #1a6fd4 !important;
  background: #fff !important;
  border-bottom-color: #1a6fd4 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.container .list-contet .left .type-item.has:not(.active) {
  color: #d81e06 !important;
  background: transparent !important;
}

/* ========== 右侧选项区全宽 ========== */
.container .list-contet .right {
  flex: 1 1 auto !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #eef3f9;
}

.container .list-contet .right .scroll-view {
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box;
  padding: 8px 8px 12px !important;
}

/* ========== 分组标题 ========== */
.type-one .item-title,
.type-one .title {
  background: transparent !important;
  border-bottom: none !important;
  color: #5a6b82 !important;
  font-size: 15px !important;
  line-height: 34px !important;
  text-align: left !important;
  padding: 4px 6px 2px !important;
  font-weight: 600;
}

/* ========== 选项：默认四列；特肖等带多球的项整行 ========== */
.type-one .item-flex {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  border: none !important;
  background: transparent !important;
  padding: 0 2px 8px !important;
}

/* 原 2 列补位空格隐藏，避免占位 */
.type-one .item-flex-item:empty {
  display: none !important;
}

.type-one .item-flex-item {
  width: calc(25% - 4.5px) !important;
  max-width: calc(25% - 4.5px) !important;
  min-width: 0 !important;
  flex: 0 0 calc(25% - 4.5px) !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 10px 4px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  background: #fff;
  border: 1px solid #b7cceb !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* 特肖 / 连码等：内部球多，必须一行一个（恢复原样） */
.type-one .item-flex-item.line,
.type-one .item-flex-item.bet-item-full,
.type-one .item-flex-item:has(.ball-view),
.type-one .item-flex-item:has(.label.ball ~ .label.ball ~ .label.ball) {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  align-items: center !important;
  overflow: visible !important;
}

.type-one .item-flex-item.bet-item-full .ball-view,
.type-one .item-flex-item:has(.ball-view) .ball-view {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-content: center !important;
  gap: 2px !important;
}

.type-one .item-flex-item.noBorder {
  border: 1px solid #b7cceb !important;
}

.type-one .item-flex-item .label {
  margin: 0 0 6px 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: center;
}

.type-one .item-flex-item .label:not(.ball):not(.circle) {
  color: #222 !important;
}

/* 六合彩球号：PNG 球心偏浅，必须用深色字（白字会「顺色」看不见） */
.type-one .item-flex-item .label.circle,
.type-one .item-flex-item .label.ball,
.type-one .item-flex-item .label.ball-red,
.type-one .item-flex-item .label.ball-blue,
.type-one .item-flex-item .label.ball-green {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 34px !important;
  border-radius: 50% !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  color: #222 !important;
  -webkit-text-fill-color: #222 !important;
  background-color: transparent !important;
  background-position: 50% !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.type-one .item-flex-item .label.ball-red {
  background-image: url(/static/ball-red.png) !important;
}

.type-one .item-flex-item .label.ball-blue {
  background-image: url(/static/ball-blue.png) !important;
}

.type-one .item-flex-item .label.ball-green {
  background-image: url(/static/ball-green.png) !important;
}

.type-one .item-flex-item.hot .label.ball,
.type-one .item-flex-item.active .label.ball,
.type-one .item-flex-item.hot .label.ball-red,
.type-one .item-flex-item.hot .label.ball-blue,
.type-one .item-flex-item.hot .label.ball-green {
  color: #222 !important;
  -webkit-text-fill-color: #222 !important;
}

.type-one .item-flex-item .value {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1a6fd4 !important;
  line-height: 1.25 !important;
  text-align: center;
}

.type-one .item-flex-item .input-box {
  width: 90% !important;
  margin-top: 4px !important;
  padding: 0 !important;
}

.type-one .item-flex-item .input-box .input {
  height: 24px !important;
  font-size: 12px !important;
  padding: 0 4px !important;
}

/* 选中态：原组件用 .hot（不是 .active） */
.type-one .item-flex-item.hot,
.item-flex-item.hot,
.type-one .item-flex-item.active,
.item-flex-item.active {
  background: rgba(26, 111, 212, 0.22) !important;
  border-color: #1a6fd4 !important;
  box-shadow: inset 0 0 0 1px #1a6fd4 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.type-one .item-flex-item.hot .value,
.type-one .item-flex-item.active .value {
  color: #0d4ea8 !important;
  font-weight: 700 !important;
}

.type-one .item-flex-item.hot .label:not(.ball):not(.circle),
.type-one .item-flex-item.active .label:not(.ball):not(.circle) {
  color: #0d4ea8 !important;
}

/* 号码类三列格子：略收紧边距，保留三列 */
.type-one .list {
  gap: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #b7cceb;
}

.type-one .list-item {
  min-height: 54px;
  border-color: #d5e2f5 !important;
  font-size: 15px !important;
}

.type-one .list-item.active,
.type-one .list-item.hot,
.type-one .tag-item.active,
.type-one .tag-item.hot,
.type-one .o-item.hot {
  background: rgba(26, 111, 212, 0.22) !important;
  box-shadow: inset 0 0 0 1px #1a6fd4;
}

/* 特码顶部 tag */
.type-one .tag-item {
  border-color: #c9d8ef !important;
}

/* ========== 顶部开奖区略收紧 ========== */
.container .top-two-mod,
.container .top-mod {
  background: #fff;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 8px !important;
  padding-right: 10px !important;
  overflow: hidden !important;
}

.container .top-mod .right {
  max-width: 40% !important;
  min-width: 0 !important;
  padding-right: 4px !important;
  box-sizing: border-box !important;
}

.container .top-mod .right .name,
.container .top-mod .right .reload {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.container > .tag {
  background: #fff;
  border-bottom: 1px solid #e8eef6;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 10px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.container > .tag .left {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 重置：余额 与 快捷 中间（加大） */
.container > .tag .bet-reset-mid {
  flex: 0 0 auto;
  margin: 0;
}

.container > .tag .bet-reset-mid .btn.reset-proxy {
  margin: 0 !important;
  min-width: 72px !important;
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 34px !important;
  color: #333 !important;
  background: #f0f0f0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.container > .tag .right {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  padding-right: 2px !important;
  white-space: nowrap !important;
}

/* 旧的单独重置条去掉 */
.container .bet-reset-bar {
  display: none !important;
}

.container .footer .button-box .btn.reset {
  display: none !important;
}

/* ========== 底栏一行：左金额区紧凑，右合计+下注 ========== */
.container .footer {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: #000;
  overflow: hidden !important;
  padding-right: 0 !important;
}

.container .footer .input-box {
  flex: 0 0 40% !important;
  width: 40% !important;
  max-width: 40% !important;
  height: auto !important;
  min-height: 50px;
  min-width: 0 !important;
  padding: 6px 6px 6px 8px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  white-space: nowrap !important;
  overflow: hidden;
  writing-mode: horizontal-tb !important;
  font-size: 12px !important; /* 金额 小一号 */
  color: #333 !important;
}

.container .footer .input-box,
.container .footer .input-box * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

/* 金额框缩约三分之一，不拉长占白 */
.container .footer .input-box .input,
.container .footer .input-box uni-input {
  flex: 0 0 58px !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}

.container .footer .input-box .btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 52px !important;
  max-width: 68px !important;
  margin: 0 0 0 2px !important;
  padding: 0 6px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  height: 32px !important;
  white-space: normal !important;
}

.container .footer .button-box {
  flex: 1 1 60% !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
  background: #000 !important;
}

/* 一共X注 大一号 */
.container .footer .button-box .text {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  text-align: left !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.container .footer .button-box .btn.confirm {
  flex: 0 0 auto !important;
  margin: 0 8px 0 0 !important;
  min-width: 72px !important;
  height: 36px !important;
  font-size: 15px !important;
}
