html.hf-draw-result-route,
html.hf-draw-detail-route,
html.hf-draw-result-route body,
html.hf-draw-detail-route body,
html.hf-draw-result-route #app {
  background: #f5f5f5 !important;
}

html.hf-draw-result-route #app .nav-tabs {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.hf-draw-detail-route #app,
html.hf-draw-detail-route body {
  background: #f9f9f9 !important;
}

html.hf-draw-detail-route #app .nav-tabs,
html.hf-draw-detail-route #app .v5-footer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.hf-draw-detail-route body > .van-overlay,
html.hf-draw-detail-route body > .van-popup,
html.hf-draw-detail-route body > .activity-popup-overlay,
html.hf-draw-detail-route #app .activity-popup-overlay,
html.hf-draw-detail-route #app .v5-auth-modal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#app .hf-draw-result,
#app .hf-draw-detail,
#app .hf-draw-detail *,
#app .hf-draw-result * {
  box-sizing: border-box !important;
  -webkit-tap-highlight-color: transparent !important;
}

#app .hf-draw-result {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1200 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: calc(50px + env(safe-area-inset-bottom)) !important;
  background: #f5f5f5 !important;
  color: #111827 !important;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

#app .hf-draw-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  height: 45px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #bf2935 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  line-height: 45px !important;
}

#app .hf-draw-list {
  background: #fff !important;
  padding-left: 14px !important;
}

#app .hf-draw-row {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 84px !important;
  padding: 12px 30px 11px 0 !important;
  border-bottom: 1px solid #e5e5e5 !important;
  background: #fff !important;
  cursor: pointer !important;
}

#app .hf-draw-row:active {
  background: #fafafa !important;
}

#app .hf-draw-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#app .hf-draw-title-line {
  display: flex !important;
  align-items: baseline !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

#app .hf-draw-name {
  flex: 0 0 auto !important;
  max-width: 48% !important;
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  text-overflow: ellipsis !important;
}

#app .hf-draw-issue {
  min-width: 0 !important;
  margin-left: 9px !important;
  overflow: hidden !important;
  color: #8f969e !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  text-overflow: ellipsis !important;
}

#app .hf-draw-balls {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin-top: 9px !important;
  min-height: 31px !important;
}

#app .hf-draw-ball {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 10px 6px 0 !important;
  border-radius: 50% !important;
  background: #bf2935 !important;
  color: #fff !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 30px !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
}

#app .hf-draw-ball.two-digit {
  font-size: 16px !important;
}

#app .hf-draw-arrow {
  position: absolute !important;
  right: 15px !important;
  top: 50% !important;
  width: 14px !important;
  height: 24px !important;
  margin-top: -12px !important;
  color: #dedede !important;
  font-size: 34px !important;
  font-weight: 200 !important;
  line-height: 22px !important;
}

#app .hf-draw-loading,
#app .hf-draw-empty {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 180px !important;
  background: #fff !important;
  color: #999 !important;
  font-size: 14px !important;
}

#app .hf-draw-refresh {
  position: absolute !important;
  right: 14px !important;
  top: 8px !important;
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 30px !important;
}

html.hf-draw-result-route #app .v5-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: calc(50px + env(safe-area-inset-bottom)) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
  background: #fff !important;
  border-top: 1px solid #e5e5e5 !important;
  box-shadow: 0 0 8px rgba(0,0,0,.10) !important;
  z-index: 1300 !important;
}

html.hf-draw-result-route #app .v5-footer .footer-content {
  height: 50px !important;
  align-items: center !important;
}

html.hf-draw-result-route #app .v5-footer .tab-item {
  flex: 1 1 20% !important;
  justify-content: center !important;
  color: #999 !important;
}

html.hf-draw-result-route #app .v5-footer .tab-item .van-icon {
  font-size: 21px !important;
  line-height: 21px !important;
}

html.hf-draw-result-route #app .v5-footer .tab-item span {
  margin-top: 2px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 14px !important;
}

html.hf-draw-result-route #app .v5-footer .tab-item.active,
html.hf-draw-result-route #app .v5-footer .tab-item.active span,
html.hf-draw-result-route #app .v5-footer .tab-item.active .van-icon {
  color: #bf2935 !important;
}

#app .hf-draw-detail {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 50px 0 calc(54px + env(safe-area-inset-bottom)) !important;
  background: #f9f9f9 !important;
  color: #111827 !important;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

#app .hf-detail-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2147483001 !important;
  width: 100% !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #bf2935 !important;
  color: #fff !important;
}

html[data-ui-contain="1"] #app .hf-detail-header,
html[data-ui-contain="1"] #app .hf-detail-buy {
  width: var(--app-max-width) !important;
  max-width: var(--app-max-width) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

#app .hf-detail-title {
  width: 100% !important;
  padding: 0 58px !important;
  overflow: hidden !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 50px !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#app .hf-detail-back {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#app .hf-detail-back span {
  display: block !important;
  height: 50px !important;
  margin-top: -1px !important;
  color: #fff !important;
  font-size: 40px !important;
  font-family: Arial, sans-serif !important;
  font-weight: 200 !important;
  line-height: 45px !important;
}

#app .hf-detail-list {
  width: 100% !important;
  padding-left: 15px !important;
  background: #f9f9f9 !important;
}

#app .hf-detail-row {
  width: 100% !important;
  min-height: 94px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 13px 13px 13px 0 !important;
  border-bottom: 1px solid #e5e5e5 !important;
  background: #f9f9f9 !important;
}

#app .hf-detail-left {
  flex: 1 0 auto !important;
  min-width: auto !important;
  overflow: visible !important;
}

#app .hf-detail-meta {
  display: block !important;
  min-width: auto !important;
  overflow: visible !important;
  color: #111827 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  white-space: nowrap !important;
}

#app .hf-detail-balls {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0 !important;
  margin-top: 11px !important;
}

#app .hf-detail-ball {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 33px !important;
  height: 33px !important;
  margin-right: 10px !important;
  border-radius: 50% !important;
  background: #bf2935 !important;
  color: #fff !important;
  font-size: 25px !important;
  font-weight: 500 !important;
  line-height: 33px !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
}

#app .hf-detail-ball.two-digit {
  font-size: 17px !important;
}

#app .hf-detail-stats {
  flex: 0 0 auto !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  color: #000 !important;
}

#app .hf-detail-stat {
  min-width: 0 !important;
  height: 66px !important;
  display: block !important;
  margin: 0 0 0 21px !important;
  padding: 0 !important;
  list-style: none !important;
}

#app .hf-detail-stat:first-child {
  margin-left: 0 !important;
}

#app .hf-detail-stat-label,
#app .hf-detail-stat-value {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #000 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

#app .hf-detail-stat-value {
  margin-top: 11px !important;
}

#app .hf-detail-stat-blue {
  min-width: 42px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 8px !important;
  padding: 0 8px !important;
  border-radius: 9px !important;
  background: #0091ff !important;
  color: #fff !important;
  line-height: 28px !important;
}

#app .hf-detail-buy {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483001 !important;
  width: 100% !important;
  height: calc(54px + env(safe-area-inset-bottom)) !important;
  min-height: calc(54px + env(safe-area-inset-bottom)) !important;
  padding: 0 0 env(safe-area-inset-bottom) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #bf2935 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 54px !important;
  text-align: center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#app .hf-detail-loading,
#app .hf-detail-empty {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 220px !important;
  color: #999 !important;
  font-size: 14px !important;
}

#app .v5-footer .footer-content {
  display: flex !important;
}

@media (max-width: 360px) {
  #app .hf-draw-name {
    max-width: 44% !important;
    font-size: 14px !important;
  }
  #app .hf-draw-issue {
    margin-left: 7px !important;
    font-size: 12px !important;
  }
  #app .hf-draw-ball {
    width: 28px !important;
    height: 28px !important;
    margin-right: 8px !important;
    font-size: 19px !important;
    line-height: 28px !important;
  }
}

@media (max-width: 390px) {
  #app .hf-detail-list {
    padding-left: 13px !important;
  }
  #app .hf-detail-row {
    min-height: 88px !important;
    padding-right: 11px !important;
  }
  #app .hf-detail-meta {
    font-size: 14px !important;
    line-height: 18px !important;
  }
  #app .hf-detail-ball {
    width: 29px !important;
    height: 29px !important;
    margin-right: 7px !important;
    font-size: 22px !important;
    line-height: 29px !important;
  }
  #app .hf-detail-stats {
    flex-basis: auto !important;
    width: auto !important;
  }
  #app .hf-detail-stat {
    margin-left: 14px !important;
    height: 60px !important;
  }
  #app .hf-detail-stat:first-child {
    margin-left: 0 !important;
  }
  #app .hf-detail-stat-label,
  #app .hf-detail-stat-value {
    font-size: 14px !important;
  }
  #app .hf-detail-stat-blue {
    min-width: 38px !important;
    height: 26px !important;
    padding: 0 6px !important;
    line-height: 26px !important;
  }
}
