*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #fff;
  background: linear-gradient( 180deg, #010000 0%, #08006F 100%);
  min-height: 100vh;
}

a{
  text-decoration: none;
}
a:hover{
  text-decoration: none;
}

.container {
  margin: 0 auto;
  padding-bottom: 120px;
}

.header {
  background: url("./assets/v2/topbg.png") no-repeat center top;
  background-size: contain;
  padding: 120px 20px 0;
  text-align: center;
  position: relative;
  height: 540px;
}

.logo-wrapper {
  margin-bottom: 40px;
}

.logo {
  /* width: 50px;
      height: 50px; */
}

.main-title {
  font-size: 60px;
  font-weight: 500;
  margin: 0 0 20px;
  letter-spacing: 4px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.sub-title {
  font-size: 28px;
  color: #9B4FFF;
  margin: 0;
  letter-spacing: 2px;
  margin-bottom: 160px;
}

.download-section {
  padding: 40px 0 100px;
  text-align: center;
}

.section-title {
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 14px;
  letter-spacing: 2px;
}

.download-cards {
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1440px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto;
}

.download-card {
  /* width: 688px; */
  height: 245px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  line-height: 1.2;
}

.download-card:hover {
   transform: translateY(-3px);
}


.download-card.android {
  background: url("./assets/v2/androidBg.png") no-repeat center;
  background-size: cover;
}

.download-card.iphone {
  background: url("./assets/v2/iphoneBg.png") no-repeat center;
  background-size: cover;
}

.download-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
}

.download-title {
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 10px;
  text-decoration: none;
  color: #fff;
}

.download-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.android-title{
  color: #AB6BFF;
}
.download-card:hover .android-title {
  text-decoration: underline;
}

.manual-section {
  padding: 40px 0 80px;
  text-align: center;
}

.manual-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 40px;
}

.manual-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.manual-card {
  background: url("./assets/v2/glassBg.png") no-repeat center;
  background-size: cover;
  border-radius: 16px;
  padding: 40px 20px 50px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: fit-content;
}

.manual-card:hover {
  background: url("./assets/v2/glassBg-active.png") no-repeat center;
  background-size: cover;
  transform: translateY(-5px);
  box-shadow: 6px 6px 12px 0px rgba(7,0,65,0.35), -6px -6px 12px 0px rgba(7,0,65,0.35), inset 8px -8px 16px 0px rgba(255,255,255,0.04);
}

.manual-image {
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  object-fit: contain;
}

.manual-name {
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 8px;
}

.manual-desc-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 40px;
  line-height: 1.2;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  color: #AB6BFF;
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
.manual-card:hover .download-link {
  text-decoration: underline;
  color: #C083FF
}

.download-link:hover {
  color: #DDA0DD;
}

.download-link-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 1024px) {
  .manual-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
  padding-bottom: 0;
}
  .header {
    padding: 80px 15px 20px;
    height: auto;
     background: url("./assets/v2/topbg.png") no-repeat center top;
  background-size: cover;
  }

  .logo {
    /* width: 36px;
        height: 36px; */
  }
  .main-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .sub-title {
    font-size: 14px;
    margin-bottom: 100px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .download-section {
    padding: 0 0 40px;
  }

  .download-cards {
    grid-template-columns: 1fr;
  }

  .download-icon {
    width: 50px;
    height: 50px;
  }

  .download-title {
    font-size: 18px;
  }
  .download-subtitle {
    font-size: 14px;
  }

  .manual-cards {
    grid-template-columns: 1fr;
  }

  .manual-card {
    padding: 24px 16px;
    align-items: center;
  }

  .manual-image {
    height: 120px;
  }

  .manual-name {
    font-size: 20px;
  }
  .download-link {
    font-size: 16px;
  }
  .download-link-icon {
    width: 20px;
    height: 20px;
  }
}

.download-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-visible {
  display: flex;
}

.modal-content {
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 40px 30px 30px;
  background-image: url("./assets/v2/modelBg.png");
  background-color: #00004A;
  /* background-image: linear-gradient(141deg, #0E0334 0%, #00004A 100%), url("./assets/v2/modelBg.png"); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: inset 8px 11px 100px 0px rgba(163,98,255,0.3);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.modal-close img {
  width: 32px;
  height: 32px;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px;
}

.modal-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.modal-body-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(155,79,255,0.3);
}

.release-notes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.release-notes li {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  padding-left: 20px;
  position: relative;
  margin-bottom: 12px;
}

.release-notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #AB6BFF;
  border-radius: 50%;
  position: absolute;
  left: 0;
  margin-top: -3px;
  top: 50%;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px 20px;
  }

  .modal-title {
    font-size: 22px;
  }

  .modal-logo {
    width: 60px;
    height: 60px;
  }

  .release-notes li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {

  .header {
    padding: 60px 10px 20px;
  }

  .main-title {
    font-size: 24px;
  }

  .download-cards {
    gap: 20px;
  }

  .download-card {
    height: 180px;
  }

}


 /* 微信内：引导用系统浏览器打开 */
    .wx-browser-tip {
      display: none;
      position: fixed;
      z-index: 10000;
      top: max(12px, env(safe-area-inset-top, 0px));
      right: max(12px, env(safe-area-inset-right, 0px));
      width: min(260px, calc(100vw - 24px));
      padding: 14px;
      background: rgba(18, 8, 48, 0.94);
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 14px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
      font-size: 13px;
      line-height: 1.55;
      color: #f3f0ff;
      pointer-events: auto;
      -webkit-tap-highlight-color: transparent;
    }

    .wx-browser-tip.is-visible {
      display: block;
    }

    .wx-browser-tip::before {
      content: "";
      position: absolute;
      top: -6px;
      right: 48px;
      width: 12px;
      height: 12px;
      background: rgba(18, 8, 48, 0.94);
      border-right: 1px solid rgba(255, 255, 255, 0.22);
      border-top: 1px solid rgba(255, 255, 255, 0.22);
      transform: rotate(-45deg);
    }

    .wx-browser-tip p {
      margin: 0;
    }

    .wx-browser-tip strong {
      font-weight: 600;
      color: #fff;
    }

    .wx-browser-tip__close {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 28px;
      height: 28px;
      padding: 0;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
    }

    .wx-browser-tip__close:active {
      background: rgba(255, 255, 255, 0.2);
    }