* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}
button {
  display: none;
}
body {
  background: #01271a;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .left {
  width: 70%;
}
.header .right {
  width: 30%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .right a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffab00;
  position: relative;
}
.header .right a:hover .qrcode {
  display: block;
}
.header .right a .qrcode {
  display: none;
  position: absolute;
  top: 110%;
  left: -60%;
  padding: 10px;
  background: #303030;
  border-radius: 10px;
}
.banner img {
  border-radius: 15px;
}
.link {
  background: #013121;
  padding: 20px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
}
.link .top {
  color: #f8e694;
  font-weight: bold;
  display: flex;
  justify-content: center;
}
.link .top p {
  line-height: 33px;
  padding: 0 20px;
}
.link .btm {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.link .btm a {
  margin-bottom: 20px;
  width: 45%;
  background: #209310;
  color: #fff;
  padding: 15px;
  border-radius: 999em;
  text-align: center;
  position: relative;
}
.link .btm a:last-child {
  opacity: 0;
}
.link .btm a img {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
}
.onlineService {
  display: none;
}
.jackpot {
  background-image: url(../imgs/jackpot.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1111 / 332;
  display: block;
  position: relative;
}
.jackpot .number-container {
  position: absolute;
  top: 86%;
  left: 50.5%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 5px;
  height: 44%;
  width: 55%;
}
.jackpot .number-container div {
  background-image: url(../imgs/number_bg.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 50%;
  width: auto;
  aspect-ratio: 41 / 72;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 50px;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  /* 确保数字不溢出 */
}
.jackpot .number-container div p {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  transform: translateY(0%);
}
.jackpot .number-container .bgnone {
  background: none;
}
.hotGames {
  display: flex;
  flex-direction: column;
}
.hotGames .top {
  color: #f8e694;
  font-weight: bold;
  display: flex;
  justify-content: center;
  padding: 20px;
}
.hotGames .top p {
  line-height: 33px;
  padding: 0 20px;
}
.hotGames .btm {
  display: flex;
}
.hotGames .btm .left {
  width: 70%;
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
}
.hotGames .btm .left .box {
  width: 25%;
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}
.hotGames .btm .left .box img {
  margin-bottom: 5px;
}
.hotGames .btm .right {
  width: 30%;
}
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #bbbbbb;
}
.footer .top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  button {
    display: block;
    position: fixed;
    right: -3%;
    top: 25%;
    z-index: 998;
    border: none;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #00675795;
    color: #fff;
    transition: all 0.5s;
  }
  body {
    text-align: center;
  }
  .container {
    width: 100% !important;
    margin: 0 auto;
  }
  .header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
  }
  .header .left {
    width: 50%;
    display: flex;
    justify-content: center;
  }
  .header .left img {
    width: 75%;
  }
  .header .right {
    position: fixed;
    right: 0%;
    top: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: space-around;
    background: #00675799;
    box-shadow: 0 0 10px #000;
    border-radius: 15px;
    padding: 20px;
    z-index: 999;
    transform: translateX(130%);
    transition: 0.5s all;
    height: 25vh;
  }
  .header .right a:first-child {
    display: none;
  }
  .banner {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .banner img {
    width: 90vw;
  }
  .link {
    display: flex;
    flex-direction: column;
    background: none;
  }
  .link .top {
    color: #f8e694;
    display: flex;
    justify-content: center;
  }
  .link .top p {
    width: 30vw;
    font-size: 12px;
    white-space: nowrap;
  }
  .link .top img {
    width: 35vw;
  }
  .link .btm {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .link .btm a {
    margin-bottom: 10px;
    width: 95%;
    height: 45px;
    background: #209310;
    color: #fff;
    font-size: 16px;
    border-radius: 999em;
    text-align: center;
    position: relative;
  }
  .link .btm a:last-child {
    display: none;
  }
  .link .btm a img {
    position: absolute;
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
    width: 30px;
  }
  .onlineService {
    display: flex;
    justify-content: center;
    background-image: url(../imgs/image-15.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 70px;
    font-size: 16px;
  }
  .onlineService .left {
    color: #ffab00;
    display: flex;
    align-items: center;
    justify-content: start;
  }
  .onlineService .left img {
    width: 40px;
  }
  .onlineService .right {
    color: #fff;
    display: flex;
    align-items: center;
  }
  .jackpot {
    background-image: url(../imgs/jackpot.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 95vw;
    /* 适配父级 */
    aspect-ratio: 1111 / 332;
    /* 让高度自动调整 */
    display: block;
    position: relative;
    /* 让子元素可以绝对定位 */
  }
  .jackpot .number-container {
    position: absolute;
    top: 86%;
    left: 50.5%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 5px;
    height: 44%;
    width: 55%;
  }
  .jackpot .number-container div {
    background-image: url(../imgs/number_bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 50%;
    /* 限制高度，不让它变大 */
    width: auto;
    /* 让宽度跟随原始比例 */
    aspect-ratio: 41 / 72;
    /* 保持原始比例 */
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  .jackpot .number-container div p {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
  }
  .jackpot .number-container .bgnone {
    background: none;
  }
  .hotGames {
    display: flex;
    flex-direction: column;
  }
  .hotGames .top {
    color: #f8e694;
    display: flex;
    justify-content: center;
  }
  .hotGames .top p {
    width: 30vw;
    font-size: 12px;
    white-space: nowrap;
  }
  .hotGames .top img {
    width: 35vw;
  }
  .hotGames .btm {
    display: flex;
  }
  .hotGames .btm .left {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }
  .hotGames .btm .left .box {
    width: 25%;
    color: #fff;
    text-align: center;
    font-size: 9px;
    white-space: nowrap;
  }
  .hotGames .btm .left .box img {
    margin-bottom: 10px;
    width: 80%;
  }
  .hotGames .btm .right {
    display: none;
    width: 30%;
  }
  .footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #dddddd;
    margin-bottom: 10px;
  }
  .footer .top {
    display: none;
  }
  .footer .btm {
    font-size: 16px;
  }
}
