html,
body {
  margin: 0;
  padding: 0;
  color: #000000;
  font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
}

html {
  background: #eadfdd;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  max-width: 720px;
  margin: 0 auto;
  background: #f1f5f5;
  padding: 0 8px 12px;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar {
  position: fixed;
  top: 0;
  z-index: 99;
  width: 100%;
  max-width: 720px;
  height: 60px;
  overflow: hidden;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  background: #66cdaa;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo-img {
  width: 208px;
  height: 56px;
  object-fit: contain;
  padding-top: 6px;
}

.bank-img {
  width: 75px;
  height: 50px;
  object-fit: contain;
  margin-right: 3px;
}

.page {
  padding-top: 0;
}

.lottery-top {
  padding: 6px 10px 12px;
  border: 1px solid #dfe4e4;
  background: #f1f5f5;
}

.brand-row {
  display: block;
  width: 100%;
  padding: 0;
  background: #fff;
}

.brand-row img {
  display: block;
  width: 198px;
  max-width: 62%;
  height: auto;
}

.promo-banner {
  display: block;
  margin-top: 8px;
}

.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.current-draw {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  background: #fff;
}

.draw-title-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: 0;
  background: #fff3a6;
  color: #014b18;
  text-align: center;
}

.draw-title-row button {
  display: block;
  min-width: 0;
  padding: 4px 2px 5px;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  white-space: nowrap;
}

.draw-title-row button.active {
  background: rgba(255, 255, 255, 0.35);
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100px;
  overflow: hidden;
  margin-bottom: -5px;
  background: #66cdaa;
}

.hero-banner a,
.hero-banner img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-banner img {
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.banner-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
}

.banner-dots span.active {
  width: 26px;
  background: #ca0d00;
}

.date-strip {
  margin: 20px 0 0;
  border-radius: 7px;
  overflow: hidden;
  background: #42f56d;
}

.date-strip {
  padding: 9px 6px;
  color: #000;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
  text-align: center;
}

.date-strip .box,
.date-strip .riqi {
  margin: 0;
  padding: 0;
}

.date-strip strong {
  font-weight: 900;
}

.mini-wrap {
  width: 100%;
  overflow-x: hidden;
  background: #fff;
  color: #222;
  font-family: "Microsoft YaHei", Helvetica, Arial, sans-serif;
}

.mini-wrap *,
.mini-wrap *::before,
.mini-wrap *::after {
  box-sizing: border-box;
}

.mini-wrap a {
  text-decoration: none;
}

.mini-loading {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
  background: #fff;
}

.mini-fallback {
  color: #e63a12;
  text-decoration: none;
}

.mini-strip {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  background: #fff;
  padding: 4px 4px 3px;
}

.mini-side {
  flex: 0 0 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #714000;
  text-decoration: none;
}

.mini-qishu {
  line-height: 1.1;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-record {
  margin-top: 3px;
  padding: 1px 3px;
  background: #ffef00;
  color: #ff0000;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
}

.mini-ball-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mini-opening-ball {
  opacity: 0;
  transform: translateY(7px) scale(0.86);
  animation: mini-open-ball 0.34s cubic-bezier(0.2, 0.9, 0.24, 1.2) forwards;
  animation-delay: var(--mini-open-delay, 0ms);
  will-change: opacity, transform;
}

@keyframes mini-open-ball {
  0% {
    opacity: 0;
    transform: translateY(7px) scale(0.86);
  }

  65% {
    opacity: 1;
    transform: translateY(-1px) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mini-chip {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 30px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-red {
  background: #ef2212;
}

.mini-blue {
  background: #3c93f6;
}

.mini-green {
  background: #22bf2b;
}

.mini-waiting {
  border: 1px dashed #d2d6dc;
  background: #f3f5f7;
  color: #8a9199;
}

.mini-meta {
  margin-top: 2px;
  color: #161616;
  font-size: 12px;
  line-height: 1.05;
  white-space: nowrap;
  font-weight: 800;
}

.mini-ball-pending .mini-meta {
  color: #8a9199;
}

.mini-special {
  flex: 1.08 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 3px;
}

.mini-bonus {
  flex: 1 1 0;
  min-width: 0;
}

.mini-flush {
  flex: 0 0 14px;
  width: 14px;
  height: 30px;
  border: 0;
  border-radius: 2px;
  background: #ffef00;
  color: #ff5200;
  font-size: 11px;
  font-weight: 700;
  font-family: "Microsoft YaHei", Helvetica, Arial, sans-serif;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mini-flush span + span {
  margin-top: 1px;
}

.mini-history-row {
  padding: 0 4px 4px;
  background: #fff;
  text-align: right;
  line-height: 1;
}

.mini-history-link {
  display: inline-flex;
  min-width: 76px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff4b00;
  border-radius: 2px;
  background: #fffdf2;
  color: #ff0000;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.mini-history-link:active {
  background: #fff0d7;
}

.nav-box {
  margin: 14px 0;
  overflow: hidden;
  border-radius: 5px;
  background: #66cdaa;
}

.list-title {
  min-height: 28px;
  margin: 0;
  padding: 1px 2px 3px;
  background: linear-gradient(transparent, #f7f3f3);
  color: #000;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 0 10px #e5e5e5;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 5%;
  padding: 6px 4px 8px;
  background: #66cdaa;
}

.icon-grid li {
  min-width: 0;
  text-align: center;
}

.icon-grid a {
  display: block;
  font-weight: 900;
}

.icon-grid img {
  display: block;
  width: min(180px, 100%);
  height: auto;
  margin: 0 auto;
  border: 0;
}

.icon-grid span {
  display: block;
  min-height: 20px;
  margin-top: -1px;
  color: #000;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.play-page {
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid #d8e8e3;
  border-radius: 5px;
  background: #fff;
}

.play-head {
  position: relative;
  min-height: 36px;
  padding: 5px 76px 6px;
  background: linear-gradient(transparent, #f7f3f3), #66cdaa;
  color: #000;
  text-align: center;
}

.play-title {
  margin: 0;
  overflow: hidden;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 0 10px #e5e5e5;
}

.play-home-link {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  padding: 3px 8px;
  border-radius: 4px;
  background: #fff;
  color: #078839;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.play-content {
  min-height: 240px;
  padding: 10px;
  background: #fff;
  color: #111;
}

.play-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 1px dashed #80d5a6;
  border-radius: 5px;
  background: #f2fff7;
  color: #13863a;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 900;
  text-align: center;
}

.play-source-meta {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 5px;
  background: #f2fff7;
  color: #11642d;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  word-break: break-all;
}

.play-scraped-html {
  overflow-x: visible;
  color: #111;
  font-size: 15px;
  line-height: 1.6;
  word-break: normal;
}

.play-scraped-html img {
  max-width: 100%;
  height: auto;
}

.play-scraped-html table {
  width: auto;
  min-width: 100%;
  max-width: none;
  border-collapse: collapse;
  table-layout: auto;
}

.play-scraped-html a {
  color: #067a31;
  font-weight: 700;
}

.play-only-content .box.pad {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 10px;
  border: 4px solid #ff9800;
  border-radius: 5px;
  background: #fff;
}

.play-only-content .box.pad table {
  width: auto !important;
  min-width: 100%;
  max-width: none;
  table-layout: auto;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}

.play-only-content .box.pad td,
.play-only-content .box.pad th {
  padding: 2px 6px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  vertical-align: middle;
}

.small-grid span,
.sponsor-grid span {
  font-size: 18px;
}

.domain-box {
  padding-bottom: 4px;
}

.domain-box img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.site-footer {
  margin: 10px 0 0;
  padding: 8px 8px 18px;
  border-radius: 5px 5px 0 0;
  background: #66cdaa;
  color: #000;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 3px 0;
}

.site-footer a {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 5px;
  background: #fff;
  color: #000;
  font-weight: 900;
}

.knowledge-section {
  margin: 26px 0 0;
  overflow: hidden;
  border: 2px solid #66cdaa;
  border-radius: 5px 5px 0 0;
  background: #fff;
}

.knowledge-title {
  margin: 0;
  padding: 4px 6px 6px;
  background: linear-gradient(to bottom, #60cda8, #f1f5f5);
  color: #000;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

.knowledge-content {
  background: #fff;
}

.knowledge-section .sx {
  color: #000;
  font-size: 17px;
  line-height: 1.45;
}

.knowledge-section .sx table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.knowledge-section .sx th {
  padding: 6px 3px;
  border: 1px solid #d8cfb2;
  background: #eeeeee;
  color: #000;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  text-align: center;
}

.knowledge-section .sx td {
  padding: 7px 4px;
  border: 1px solid #d8cfb2;
  color: #000;
  text-align: center;
  vertical-align: middle;
  word-break: normal;
}

.knowledge-section .sx .a-left {
  text-align: left;
}

.knowledge-section .sx ul,
.knowledge-section .sx li,
.knowledge-section .sx dl,
.knowledge-section .sx dt,
.knowledge-section .sx dd {
  margin: 0;
  padding: 0;
}

.knowledge-section .sx ul {
  list-style: none;
}

.knowledge-section .sx .sx1 {
  display: flex;
  flex-wrap: wrap;
  padding: 8px 0;
}

.knowledge-section .sx .sx1 li {
  width: 33.333333%;
  padding: 6px 2px;
  text-align: center;
}

.knowledge-section .sx img {
  width: 40px;
  height: 40px;
  border: 0;
  vertical-align: middle;
}

.knowledge-section .sx span {
  display: inline-block;
  min-width: 21px;
  height: 21px;
  margin: 2px 1px;
  padding: 0 3px;
  background: #ff0000;
  color: #fff;
  font-size: 13px;
  line-height: 21px;
  font-weight: 900;
  text-align: center;
}

.knowledge-section .sx span.blue {
  background: #3366ff;
}

.knowledge-section .sx span.green {
  background: #009933;
}

.site-footer strong {
  font-size: 16px;
}

.site-footer .footer-rule {
  max-width: 430px;
  height: 1px;
  margin: 8px auto;
  background: rgba(0, 0, 0, 0.65);
}

@media screen and (min-width: 721px) {
  .hero-banner {
    padding-bottom: 150px;
  }
}

@media screen and (max-width: 520px) {
  body {
    padding: 0 6px 10px;
  }

  .lottery-top {
    padding: 5px 8px 10px;
  }

  .brand-row img {
    width: 196px;
  }

  .promo-banner img {
    border-radius: 12px;
  }

  .draw-title-row button {
    font-size: 15px;
  }

  .date-strip {
    font-size: 15px;
  }

  .mini-strip {
    gap: 2px;
    padding: 3px;
  }

  .mini-side {
    flex-basis: 56px;
  }

  .mini-chip {
    height: 27px;
    font-size: 15px;
  }

  .mini-meta {
    font-size: 10px;
    line-height: 1;
  }

  .mini-special {
    flex: 0.84 1 0;
    gap: 2px;
  }

  .mini-flush {
    flex-basis: 11px;
    width: 11px;
    height: 27px;
    font-size: 10px;
  }

  .nav-box {
    margin: 10px 0;
  }

  .list-title {
    font-size: 20px;
  }

  .icon-grid {
    gap: 8px 4%;
    padding: 5px 2px 7px;
  }

  .icon-grid img {
    width: min(120px, 100%);
  }

  .icon-grid span {
    font-size: 15px;
  }

  .play-head {
    min-height: 32px;
    padding: 5px 64px 6px;
  }

  .play-title {
    font-size: 20px;
  }

  .play-home-link {
    left: 6px;
    padding: 3px 6px;
    font-size: 12px;
  }

  .play-content {
    min-height: 200px;
    padding: 8px;
  }

  .play-empty {
    min-height: 150px;
    font-size: 16px;
  }

  .small-grid span,
  .sponsor-grid span {
    font-size: 14px;
  }

  .site-footer {
    font-size: 13px;
  }

  .knowledge-title {
    font-size: 22px;
  }

  .knowledge-section .sx {
    font-size: 15px;
  }

  .knowledge-section .sx th {
    font-size: 16px;
  }

  .knowledge-section .sx .sx1 li {
    padding: 5px 1px;
  }

  .knowledge-section .sx span {
    min-width: 19px;
    height: 19px;
    margin: 2px 1px;
    padding: 0 2px;
    font-size: 12px;
    line-height: 19px;
  }
}

@media screen and (max-width: 380px) {
  .list-title {
    font-size: 17px;
  }

  .icon-grid {
    gap: 7px 3%;
  }

  .icon-grid span {
    font-size: 13px;
  }

  .knowledge-section .sx .sx1 li {
    width: 50%;
  }
}
