.buy-home-scroll .user-header.compact {
  min-height: 180px;
  background-image: url("../images/a_top_big_bg.png");
  background-size: cover;
  background-position: center top;
  padding: 18px 15px 24px;
}

.buy-home-scroll .user-header.compact .avatar {
  width: 54px;
  height: 54px;
  border: 0;
}

.buy-home-scroll .home-panel {
  margin-top: -10px;
  border-radius: 0;
}

.buy-home-scroll .win-panel {
  min-height: 58px;
  border-top: 10px solid var(--bg-gray);
  border-bottom: 1px solid #eeeeee;
}

.buy-home-scroll .lottery-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 8px;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
}

.buy-home-scroll .lottery-section .section-title {
  grid-column: 1 / -1;
}

.buy-home-scroll .lottery-item {
  min-width: 0;
  min-height: 110px;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 18px 12px;
  border-right: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

.buy-home-scroll .lottery-icon {
  width: 62px;
  height: 62px;
  border-radius: 8px;
}

.buy-home-scroll .lottery-info {
  flex: 1;
  width: auto;
  min-width: 0;
  margin: 0 12px 0 0;
  text-align: left;
}

.buy-home-scroll .lottery-name {
  color: #2d4639;
  font-size: 17px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-home-scroll .lottery-desc {
  display: block;
  margin-top: 8px;
  color: #999999;
  font-size: 15px;
}

.buy-home-scroll .lottery-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  border-top: 0;
}

.buy-home-scroll .lottery-grid-item {
  min-height: 86px;
  flex-direction: column;
  justify-content: center;
  padding: 15px 8px;
  border-right: 0;
  border-bottom: 0;
}

.buy-home-scroll .lottery-grid-icon {
  width: 45px;
  height: 45px;
}

.buy-home-scroll .lottery-grid-name {
  margin: 5px 0 0;
  color: inherit;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.buy-home-scroll .lottery-section.h5-playing-section,
.buy-home-scroll .lottery-section.h5-playing-section .lottery-item {
  display: block;
}

.buy-home-scroll .lottery-section.h5-playing-section {
  border-top: 0;
}

.buy-home-scroll .lottery-section.h5-playing-section .lottery-item {
  min-height: 0;
  padding: 12px 15px;
  border-right: 0;
  border-bottom: 1px solid #f5f5f5;
}

.buy-home-scroll .lottery-section.h5-playing-section .lottery-icon {
  float: left;
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

.buy-home-scroll .lottery-section.h5-playing-section .lottery-info {
  margin: 0 0 0 52px;
}

.buy-home-scroll .lottery-section.h5-playing-section .lottery-name {
  font-size: 14px;
  font-weight: 500;
}

.buy-home-scroll .lottery-section.h5-playing-section .lottery-desc {
  margin-top: 2px;
  font-size: 12px;
}

.buy-home-scroll .lottery-item::after,
.buy-home-scroll .lottery-grid-item::after {
  content: none !important;
}

.buy-home-scroll .lottery-section:not(.h5-playing-section) .list-arrow,
.buy-home-scroll .lottery-section:not(.h5-playing-section) .lottery-arrow,
.buy-home-scroll .lottery-section:not(.h5-playing-section) [class*="arrow"] {
  display: none !important;
}

.award-grid {
  gap: 2px;
}

.award-card {
  min-height: 132px;
  padding: 16px 14px;
}

.award-card-name {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.35;
}

.award-card-period {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.35;
}

.award-card-balls {
  gap: 7px;
}

.award-card-balls .ball,
.award-record-page .ball {
  width: 34px;
  height: 34px;
  font-size: 16px;
  font-weight: 600;
}

.award-record-page .record-title {
  font-size: 16px;
  line-height: 1.45;
}

.award-record-page .record-meta {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.list-item[data-action="bank"],
.list-item[data-action="pwd"],
.list-item[data-action="qq-kf"],
.list-item[data-action="person"],
.list-item[data-action="sysset"] {
  height: 56px;
  padding: 0 14px;
}

.list-item[data-action="bank"] .list-item-title,
.list-item[data-action="pwd"] .list-item-title,
.list-item[data-action="qq-kf"] .list-item-title,
.list-item[data-action="person"] .list-item-title,
.list-item[data-action="sysset"] .list-item-title {
  font-size: 16px;
}

.list-item[data-action="bank"] .list-item-icon,
.list-item[data-action="pwd"] .list-item-icon,
.list-item[data-action="qq-kf"] .list-item-icon,
.list-item[data-action="person"] .list-item-icon,
.list-item[data-action="sysset"] .list-item-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.list-item[data-action="bank"] .list-arrow,
.list-item[data-action="pwd"] .list-arrow,
.list-item[data-action="qq-kf"] .list-arrow,
.list-item[data-action="person"] .list-arrow,
.list-item[data-action="sysset"] .list-arrow {
  width: 10px;
}

.buy-detail-page {
  background: #f4f4f4;
  display: block;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.buy-detail-page .page-scroll {
  flex: none;
  overflow: visible;
}

.buy-detail-page .topbar {
  position: sticky;
  top: 0;
  z-index: 130;
}

.buy-detail-page .topbar,
.buy-detail-page .buy-issue-bar,
.buy-detail-page .last-award {
  background-image: url("../images/a_top_big_bg.png");
  background-size: cover;
  background-position: center top;
}

.buy-detail-page .topbar {
  background-color: #182026;
}

.h5-buy-top-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 108px;
  position: sticky;
  top: calc(var(--topbar-height) + var(--safe-top));
  z-index: 120;
  background-image: url("../images/a_top_big_bg.png");
  background-size: cover;
  background-position: center top;
}

.buy-detail-page .buy-issue-bar {
  display: block;
  min-height: 0;
  padding: 12px 8px 14px 42px;
  border-bottom: 0;
  color: #8f929a;
  background: none;
}

.buy-detail-page .issue-text,
.buy-detail-page .issue-deadline {
  color: #8f929a;
  font-size: 13px;
  line-height: 1.5;
}

.buy-detail-page .countdown {
  margin-top: 8px;
}

.buy-detail-page .countdown-box {
  min-width: 36px;
  height: 32px;
  padding: 0 7px;
  border-radius: 4px;
  background: #050607;
  color: #ffffff;
  font-size: 15px;
  line-height: 32px;
}

.buy-detail-page .countdown-sep {
  color: #8f929a;
}

.buy-detail-page .last-award {
  min-height: 0;
  padding: 12px 16px 14px 6px;
  border-bottom: 0;
  color: #8f929a;
  background: none;
}

.buy-detail-page .last-award > div:first-child {
  margin-bottom: 10px !important;
  color: #8f929a !important;
  font-size: 13px !important;
  text-align: right;
}

.buy-detail-page .last-award > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.buy-detail-page .last-award .ball,
.buy-detail-page .award-card-balls .ball {
  margin-right: 6px;
  background: radial-gradient(circle at 35% 25%, #ff8b70 0, #f44639 42%, #c81d1b 100%);
  box-shadow: inset -2px -3px 4px rgba(90, 0, 0, .22), inset 1px 2px 3px rgba(255, 255, 255, .45);
}

.buy-detail-page .play-header {
  position: relative;
  min-height: 54px;
  padding: 0 36px 0 38px;
  border-top: 10px solid #f4f4f4;
  border-bottom: 1px solid #eeeeee;
}

.buy-detail-page .play-header::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 15px;
  width: 4px;
  height: 28px;
  background: url("../images/home_div_v.png") center / 100% 100% no-repeat;
}

.buy-detail-page .play-header::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 13px;
  margin-top: -6px;
  background: url("../images/a_right_cion.png") center / contain no-repeat;
}

.buy-detail-page .play-type-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  font-size: 15px;
  font-weight: 400;
}

.buy-detail-page .play-type-name::before {
  content: "玩法";
  flex: 0 0 auto;
  color: #222222;
}

.buy-detail-page .play-type-desc {
  margin-top: 13px;
  padding: 10px;
  border-radius: 6px;
  background: #f1f1f1;
  color: #81868b;
  font-size: 12px;
  line-height: 1.45;
}

.buy-detail-page .dim-section {
  margin-bottom: 0;
  padding: 13px 22px 10px;
  background: #ffffff;
  border-bottom: 8px solid #f4f4f4;
}

.buy-detail-page .dim-label {
  display: inline-flex;
  min-width: 52px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 0 12px;
  background: #00c8c8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.buy-detail-page .dim-quick-tools {
  float: right;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.buy-detail-page .quick-tool-btn {
  min-width: 32px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: #eef2f2;
  color: #72787d;
  font-size: 14px;
}

.buy-detail-page .dim-balls {
  clear: both;
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: 10px 7px;
}

.buy-detail-page .ball-cell {
  width: auto;
}

.buy-detail-page .ball-cell .ball-selectable {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: url("../images/buy_detail_02.png") center / contain no-repeat;
  color: #183a2c;
  font-size: 25px;
  line-height: 40px;
}

.buy-detail-page .ball-cell .ball-selectable.selected {
  background: url("../images/buy_detail_01.png") center / contain no-repeat;
  color: #ffffff;
}

.buy-detail-page .ball-omit {
  margin-top: 5px;
  color: #888888;
  font-size: 12px;
}

.buy-detail-page .bet-list-actions {
  display: flex;
  gap: 20px;
  padding: 20px 22px 12px;
  background: #ffffff;
}

.buy-detail-page .bet-list-actions .btn-block,
.buy-detail-page .bet-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 3px;
  margin-top: 0;
  font-size: 16px;
}

.buy-detail-page .bet-list-actions .btn-block::before {
  content: "";
  width: 20px;
  height: 20px;
  background: center / contain no-repeat;
}

.buy-detail-page .bet-list-actions [data-action="clear-bet-list"]::before {
  background-image: url("../images/buy_detail_03.png");
}

.buy-detail-page .bet-list-actions [data-action="add-bet-list"]::before {
  background-image: url("../images/buy_detail_04.png");
}

.buy-detail-page .bet-list-actions .btn-outline,
.buy-detail-page .bet-actions .btn-outline {
  background: #53676a;
  border: 0;
  color: #ffffff;
}

.buy-detail-page .bet-list-actions .btn-green,
.buy-detail-page .bet-actions .btn-green,
.buy-detail-page .bet-actions .btn-red {
  background: #00c8c8;
}

.buy-detail-page .bet-list-actions [data-action="clear-bet-list"] {
  order: 1;
}

.buy-detail-page .bet-list-actions [data-action="add-bet-list"] {
  order: 2;
}

.buy-detail-page .section-title {
  position: relative;
  padding: 12px 22px 10px 36px;
  border-bottom: 0;
  background: #ffffff;
  color: #222222;
  font-size: 17px;
  font-weight: 400;
}

.buy-detail-page .section-title::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 14px;
  width: 4px;
  height: 22px;
  background: url("../images/home_div_v.png") center / 100% 100% no-repeat;
}

.buy-detail-page .bet-list-preview {
  min-height: 138px;
  max-height: none;
  margin: 0 22px 0;
  padding: 14px 12px;
  background: #f7f7f7;
  color: #333333;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-all;
}

.buy-detail-page .scheme-tabs {
  margin: 0;
  border-radius: 0;
}

.modal-overlay:has(.h5-play-modal),
.modal-overlay.h5-play-modal-overlay {
  align-items: flex-end;
  background: rgba(0, 0, 0, .45);
}

.modal-content.h5-play-modal {
  max-height: 76vh;
  padding: 18px 20px 16px;
  border-radius: 0;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 20px;
}

.h5-play-modal .modal-title {
  grid-column: 1 / -1;
  height: auto;
  margin: 0;
  border-bottom: 0;
  color: #222222;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.h5-play-modal .modal-option {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: #eceef1;
  color: #2d4639;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
}

.h5-play-modal .modal-option.active,
.h5-play-modal .modal-option.h5-selected {
  background: #ef6262;
  color: #ffffff;
}

.h5-play-modal-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  margin-top: 2px;
}

.h5-play-modal-actions button {
  height: 72px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  font-size: 18px;
}

.h5-modal-cancel {
  background: #53676a;
}

.h5-modal-confirm {
  background: linear-gradient(180deg, #f66a68 0%, #f15151 100%);
}

.modal-overlay.h5-scheme-modal-overlay {
  align-items: flex-end;
  background: rgba(0, 0, 0, .45);
}

.h5-scheme-modal {
  padding: 18px 20px 16px;
  border-radius: 0;
}

.h5-scheme-modal .modal-title {
  margin: 0 0 20px;
  color: #222222;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
}

.h5-scheme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.h5-scheme-option {
  height: 54px;
  border: 0;
  border-radius: 4px;
  background: #eceef1;
  color: #2d4639;
  font-size: 16px;
}

.h5-scheme-option.active {
  background: #ef6262;
  color: #ffffff;
}

.h5-period-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--safe-top) + 10px);
  z-index: 9999;
  max-width: min(92vw, 430px);
  transform: translateX(-50%);
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(245, 245, 245, .96);
  color: #1f2328;
  font-size: 17px;
  line-height: 1.35;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.h5-period-toast.show {
  opacity: 1;
}

@media (min-width: 390px) {
  .buy-detail-page .dim-balls {
    grid-template-columns: repeat(10, minmax(32px, 1fr));
  }
}

.buy-detail-page .play-type-name::before {
  content: "\73a9\6cd5";
}

.buy-detail-page .h5-bet-list-title {
  padding: 12px 22px 10px 22px;
  background: #ffffff;
  color: #222222;
  font-size: 17px;
  font-weight: 400;
}

.buy-detail-page .h5-bet-list-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  margin-right: 8px;
  vertical-align: -4px;
  background: url("../images/home_div_v.png") center / 100% 100% no-repeat;
}

.buy-detail-page .bet-list-preview {
  min-height: 168px;
  margin: 0 6px 14px;
  background: #f4f4f4;
}

.buy-detail-page .bet-bottom.h5-app-bet-bottom {
  padding: 0 0 calc(8px + var(--safe-bottom));
  border-top: 8px solid #f4f4f4;
  background: #ffffff;
  position: static !important;
  flex-shrink: 0;
}

.buy-detail-page .h5-app-bet-bottom .h5-bet-row,
.buy-detail-page .h5-app-bet-bottom .bet-controls,
.buy-detail-page .h5-app-bet-bottom .scheme-tabs {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  border-radius: 0;
  background: #ffffff;
  color: #2d4639;
  font-size: 16px;
}

.buy-detail-page .h5-bet-row-label,
.buy-detail-page .h5-app-bet-bottom .h5-row-label {
  flex: 0 0 auto;
  color: #2d4639;
  font-size: 16px;
}

.buy-detail-page .h5-app-bet-bottom .bet-controls::before {
  content: "\500d\6570\ff1a";
  flex: 1;
  color: #2d4639;
  font-size: 16px;
}

.buy-detail-page .h5-app-bet-bottom .bet-controls {
  gap: 0;
}

.buy-detail-page .h5-app-bet-bottom .bet-controls > span:first-child {
  display: none !important;
}

.buy-detail-page .h5-app-bet-bottom .tool-btn,
.buy-detail-page .h5-app-bet-bottom .multiple-input {
  width: 64px;
  height: 40px;
  scroll-margin-top: 180px;
  margin: 0;
  border: 1px solid #eeeeee;
  border-radius: 0;
  background: #fbfbfb;
  color: #333333;
  font-size: 20px;
}

.buy-detail-page .h5-app-bet-bottom .multiple-input {
  border-left: 0;
  border-right: 0;
  color: #999999;
  font-size: 18px;
}

.buy-detail-page .h5-app-bet-bottom .bet-total {
  display: none;
}

.buy-detail-page .h5-app-bet-bottom .h5-selected-row {
  justify-content: space-between;
}

.buy-detail-page .h5-app-bet-bottom .h5-selected-value {
  margin-left: 8px;
  color: #2d4639;
  font-size: 16px;
}

.buy-detail-page .h5-app-bet-bottom .h5-selected-value span {
  color: #ff4a4f;
}

.buy-detail-page .h5-app-bet-bottom .h5-chase-row .check-toggle {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #cccccc;
}

.buy-detail-page .h5-app-bet-bottom .h5-chase-row .check-toggle::after {
  width: 24px;
  height: 24px;
}

.buy-detail-page .h5-app-bet-bottom .h5-chase-row .check-toggle.on::after {
  transform: translateX(20px);
}

.buy-detail-page .h5-app-bet-bottom .scheme-tabs {
  position: relative;
  justify-content: flex-end;
  padding-left: 112px;
}

.buy-detail-page .h5-app-bet-bottom .scheme-tabs::before {
  content: "\6295\73a9\65b9\5f0f\ff1a";
  position: absolute;
  left: 8px;
  color: #2d4639;
  font-size: 16px;
}

.buy-detail-page .h5-app-bet-bottom .scheme-tab {
  display: none;
}

.buy-detail-page .h5-app-bet-bottom .scheme-tab.active {
  display: inline-flex;
  width: auto;
  min-width: 64px;
  height: 56px;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
  color: #2d4639;
  font-size: 16px;
}

.buy-detail-page .h5-app-bet-bottom .scheme-tabs::after {
  content: "";
  width: 9px;
  height: 15px;
  margin-left: 8px;
  background: url("../images/a_right_cion.png") center / contain no-repeat;
  opacity: .55;
}

.buy-detail-page .h5-app-bet-bottom .bet-actions {
  display: block;
  padding: 18px 28px 0;
}

.buy-detail-page .h5-app-bet-bottom .h5-total-row {
  min-height: 42px;
  padding: 14px 28px 0;
  color: #ff4a4f;
  font-size: 16px;
  text-align: center;
}

.buy-detail-page .h5-app-bet-bottom .bet-actions button[data-action="submit-bet"] {
  width: 100%;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ff585d 0%, #ff3f44 100%);
  color: #ffffff;
  font-size: 18px;
}
