* {
  box-sizing: border-box;
}

html,
body,
.page {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #111a44;
  color: #fff;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

button {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-page {
  display: block;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #101a44 url("../img/bg.96a6d066.webp") top center / 100% auto no-repeat;
  padding: 18px 16px calc(126px + env(safe-area-inset-bottom));
}

.mobile-top {
  position: absolute;
  right: 0;
  top: 0;
  width: 90px;
  height: 209px;
  background: url("../img/top-bg.0990518e.webp") center / 100% 100% no-repeat;
}

.mobile-header {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 67px;
  border: 0;
  background: url("../img/headerBox.f07a815a.webp") center / 100% 100% no-repeat;
  display: block;
}

.tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4px;
  height: 37px;
  margin: 12px 0;
  padding: 4px;
  border-radius: 24px;
  background: #1c2f5d;
}

.tab {
  flex: 1;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

.tab.active {
  background: linear-gradient(90deg, #195ef8, #c355ff);
}

.mobile-content {
  display: none;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 343 / 804;
  border: 0;
  background-color: transparent;
  background-position: top center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

@supports not (aspect-ratio: 1 / 1) {
  .mobile-content {
    height: 804px;
  }
}

.mobile-content.active {
  display: block;
}

.content-hot {
  background-image: url("../img/content1.2ec93587.webp");
}

.content-darkweb {
  background-image: url("../img/content2.8dfe28a2.webp");
}

.content-cartoon {
  background-image: url("../img/content3.997f7d4a.webp");
}

.contact-list {
  position: fixed;
  right: 0;
  top: 187px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 18px 0 0 18px;
  background: rgba(45, 44, 47, 0.9);
}

.contact-list:empty {
  display: none;
}

.contact-btn {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.mobile-bottom {
  position: fixed;
  left: 0;
  bottom: calc(25px + env(safe-area-inset-bottom));
  z-index: 4;
  width: 100%;
  height: 93px;
  background: url("../img/bottomBox1.9ec286b9.webp") center / 100% 100% no-repeat;
}

.mobile-download {
  position: absolute;
  right: 20px;
  top: 36px;
  width: 100px;
  height: 34px;
  border: 0;
  background: url("../img/down-btn.f9b2ba4b.gif") center / 100% 100% no-repeat;
}

.mobile-tip {
  position: fixed;
  left: 0;
  bottom: env(safe-area-inset-bottom);
  z-index: 4;
  width: 100%;
  height: 25px;
  background: url("../img/storeBagTips.98048daf.png") center / 100% 100% no-repeat;
}

.pc-page {
  display: none;
  position: relative;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background: #0e1742 url("../img/bg.8134426c.webp") center / cover no-repeat;
}

.pc-logo {
  position: fixed;
  left: 44px;
  top: 34px;
  width: 240px;
  height: 73px;
  background: url("../img/logo.d462b835.png") center / 100% 100% no-repeat;
}

.pc-figure {
  position: absolute;
  right: 68px;
  bottom: 0;
  width: 943px;
  height: 1001px;
  max-width: 49vw;
  max-height: 92vh;
  background: url("../img/figure.3148207b.webp") no-repeat;
  background-size: contain;
  background-position: right bottom;
}

.pc-contacts {
  position: fixed;
  right: 48px;
  top: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.pc-contacts:empty {
  display: none;
}

.pc-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  left: 6.875vw;
  bottom: 11.2vh;
  width: min(636px, 33.125vw);
  aspect-ratio: 636 / 161;
  background: url("../img/down-bg.0c281876.png") center / 100% 100% no-repeat;
}

.qr-placeholder {
  width: 25.314%;
  height: 100%;
  border-radius: 8.075%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25.314%;
  overflow: hidden;
}

.qr-placeholder img,
.qr-placeholder canvas {
  width: 98.1% !important;
  height: 98.1% !important;
}

.pc-contacts .contact-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #d8e3ff);
  color: #2443a8;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (min-width: 751px) {
  .mobile-page {
    display: none;
  }

  .pc-page {
    display: block;
  }
}

@media (max-width: 374px) {
  .mobile-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .tab {
    font-size: 14px;
  }

  .contact-list {
    top: 156px;
    padding: 10px 6px;
  }

  .contact-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}

@media (min-width: 430px) and (max-width: 750px) {
  .mobile-page {
    max-width: 430px;
    margin: 0 auto;
  }
}
