:root {
  --primary: #1476ff;
  --primary-deep: #0a2f68;
  --accent: #65d455;
  --gold: #ffd348;
  --ink: #ffffff;
  --panel: rgba(16, 22, 28, 0.78);
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  background: #10251d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: #10251d;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legacy-hidden-mount {
  display: none !important;
}

.landing-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.02) 38%, rgba(0, 0, 0, 0.34) 100%),
    url("assets/bg.jpg") center center / cover no-repeat;
}

.landing-page::after {
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 0%, rgba(4, 27, 19, 0.62) 100%);
}

.topbar {
  position: absolute;
  z-index: 5;
  top: clamp(12px, 2.1vh, 24px);
  left: clamp(16px, 2.2vw, 34px);
  right: clamp(16px, 1.8vw, 30px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-wrap,
.brand-logo-art {
  display: block;
}

.brand-logo-art {
  width: clamp(178px, 14.5vw, 290px);
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}

.brand-name {
  font-size: 0;
}

.social-nav {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.5vw, 26px);
}

.social-links {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.4vw, 22px);
}

.social-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  gap: 4px;
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.68);
  transition: transform 160ms ease, filter 160ms ease;
}

.social-link .item-icon-image {
  width: clamp(34px, 2.5vw, 46px);
  height: clamp(34px, 2.5vw, 46px);
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.38));
}

.social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.nav-divider {
  width: 1px;
  height: clamp(36px, 3.2vw, 52px);
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.top-payment {
  display: flex;
}

.payment-link {
  display: inline-flex;
  align-items: center;
  min-height: clamp(48px, 3.8vw, 64px);
  padding: 0 clamp(18px, 1.7vw, 30px);
  gap: clamp(9px, 0.9vw, 14px);
  border-radius: 999px;
  color: #2a1a00;
  background: linear-gradient(180deg, #ffe46a 0%, #ffbf24 100%);
  box-shadow: 0 8px 16px rgba(58, 37, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: clamp(17px, 1.2vw, 24px);
  font-weight: 900;
  white-space: nowrap;
  transition: transform 160ms ease, filter 160ms ease;
}

.payment-link .item-icon-image {
  width: clamp(30px, 2.6vw, 46px);
  height: clamp(30px, 2.6vw, 46px);
  object-fit: contain;
}

.payment-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.payment-art-link {
  justify-content: center;
  min-width: clamp(198px, 12.1vw, 231px);
  min-height: clamp(52px, 3.2vw, 61px);
  padding: 0 clamp(18px, 1.1vw, 24px) 0 clamp(58px, 3.8vw, 72px);
  border-radius: 999px;
  color: #1b1a16;
  background: url("assets/260519/13.png") center / 100% 100% no-repeat;
  box-shadow: 0 8px 16px rgba(58, 37, 0, 0.18);
  font-size: clamp(18px, 1.2vw, 23px);
  text-shadow: none;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.hero-subtitle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.bottom-hud {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(18px, 5.4vh, 58px);
  display: grid;
  grid-template-columns: minmax(340px, 381px) clamp(112px, 8vw, 132px) minmax(420px, 470px);
  align-items: center;
  justify-content: center;
  column-gap: clamp(18px, 1.5vw, 26px);
  row-gap: clamp(16px, 1.25vw, 22px);
  width: min(1060px, 96vw);
  transform: translateX(-50%);
}

.promo-grid {
  display: grid;
  min-width: 0;
}

.promo-card {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: clamp(108px, 9vw, 136px);
  padding: clamp(12px, 1.1vw, 16px) clamp(16px, 1.5vw, 24px) clamp(12px, 1.1vw, 16px) clamp(112px, 8.8vw, 150px);
  overflow: visible;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  color: #24680c;
  background:
    radial-gradient(circle, rgba(71, 168, 55, 0.13) 0 1px, transparent 1.5px) 0 0 / 12px 12px,
    linear-gradient(105deg, rgba(255, 255, 255, 0.92) 0 61%, rgba(255, 244, 168, 0.98) 61% 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.promo-mascot {
  position: absolute;
  z-index: 2;
  left: clamp(-54px, -4vw, -34px);
  bottom: clamp(-13px, -0.7vw, -8px);
  width: clamp(142px, 11.2vw, 184px);
  max-width: none;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.32));
}

.promo-content {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: end;
  gap: clamp(7px, 0.65vw, 10px);
  min-width: 0;
}

.promo-copy {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #3f9f16;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.promo-label {
  font-size: clamp(20px, 1.8vw, 32px);
}

.promo-value {
  font-size: clamp(38px, 4.3vw, 64px);
  line-height: 0.95;
}

.promo-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(34px, 2.8vw, 42px);
  padding: 0 clamp(17px, 1.35vw, 22px);
  border-radius: 999px;
  color: #7b3a00;
  background: linear-gradient(180deg, #ffe768, #ffb923);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 900;
  white-space: nowrap;
}

.promo-action::after {
  margin-left: 8px;
  content: "›";
  font-size: 1.2em;
}

.promo-art-card {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.promo-art {
  display: block;
  width: 100%;
  height: auto;
  max-width: 381px;
  user-select: none;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.28));
}

.download-qr {
  position: relative;
  z-index: 5;
  display: grid;
  top: 20px;
  width: 100%;
  justify-items: center;
  gap: 4px;
  margin: 0;
  padding: clamp(7px, 0.7vw, 10px);
  border-radius: 8px;
  color: #244015;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.download-qr-image {
  display: block;
  /* The QR asset already has an even quiet zone; fill the card content box so desktop side gutters stay symmetrical. */
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.download-qr-caption {
  font-size: clamp(10px, 0.78vw, 13px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.download-panel {
  position: relative;
  top: 20px;
  display: grid;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 0.8vw, 12px);
}

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(28px, 2.4vw, 38px) 1fr;
  align-items: center;
  column-gap: clamp(8px, 0.8vw, 13px);
  min-height: clamp(54px, 3.4vw, 62px);
  padding: 0 clamp(42px, 3vw, 52px) 0 clamp(15px, 1.1vw, 18px);
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: url("assets/260519/11.png") center / 100% 100% no-repeat;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
  font-size: clamp(15px, 1.15vw, 20px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 160ms ease, filter 160ms ease;
}

.download-card .item-icon {
  display: block;
  width: clamp(28px, 2.4vw, 38px);
  height: clamp(28px, 2.4vw, 38px);
  overflow: hidden;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.download-card .item-icon-image {
  /* 下载按钮图标使用 assets/260519 的原始美术切图，避免平台 SVG fallback 改变图标造型。 */
  width: clamp(28px, 2.4vw, 36px);
  height: clamp(28px, 2.4vw, 36px);
  object-fit: contain;
  filter: none;
}

/* 新按钮底图已经带右下角下载角标，保留 DOM 兼容旧脚本但不再重复绘制。 */
.download-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  display: none;
  place-items: center;
  width: clamp(38px, 3vw, 46px);
  height: clamp(38px, 3vw, 46px);
  border-radius: 999px 0 7px 0;
  background: linear-gradient(180deg, #87e87b, #47b850);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: transparent;
  font-size: 0;
}

.download-arrow::before {
  display: block;
  width: clamp(17px, 1.35vw, 21px);
  height: clamp(17px, 1.35vw, 21px);
  margin: 8px 0 0 8px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4v20M8 16l8 8 8-8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.download-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hero-badges {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #fff;
}

.hero-badge-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 clamp(18px, 1.6vw, 28px);
  background: url("assets/260519/2.png") center / 100% 100% no-repeat;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 clamp(11px, 1vw, 18px);
  white-space: nowrap;
}

.hero-badge + .hero-badge::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 15px;
  content: "";
  background: url("assets/260519/6.png") center / contain no-repeat;
}

.hero-badge .item-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  font-size: 0;
}

.hero-badge .item-icon-image {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
}

.hero-support {
  color: #ffe79e;
  white-space: nowrap;
}

.hero-support-art {
  display: block;
  width: clamp(260px, 17vw, 326px);
  height: auto;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.qr-modal-card {
  position: relative;
  width: min(360px, 86vw);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  color: #17341f;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.qr-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #243028;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.qr-modal-image {
  width: min(240px, 68vw);
  aspect-ratio: 1;
  object-fit: cover;
}

.qr-modal-caption {
  margin: 10px 0 0;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .topbar {
    gap: 16px;
  }

  .social-nav {
    gap: 12px;
  }

  .bottom-hud {
    grid-template-columns: minmax(334px, 360px) clamp(100px, 9.5vw, 112px) minmax(330px, 430px);
    column-gap: 14px;
    row-gap: 14px;
    width: min(960px, 96vw);
  }

  .download-card {
    font-size: 15px;
  }
}

@media (max-width: 820px) {
  body {
    overflow-y: auto;
  }

  .landing-page {
    min-height: max(100svh, 780px);
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.58) 100%),
      url("assets/bg.jpg") 59% top / auto 100% no-repeat;
  }

  .topbar {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    align-items: center;
    justify-content: flex-start;
    min-height: 72px;
    padding: 8px 9px;
    gap: 7px;
    overflow: hidden;
    background: rgba(16, 20, 20, 0.66);
    backdrop-filter: blur(2px);
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand-logo-art {
    width: clamp(82px, 22vw, 104px);
  }

  .social-nav {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    grid-template-columns: 145px 112px;
    align-items: center;
    width: 262px;
    transform: translateY(-50%);
    min-width: 0;
    gap: 5px;
  }

  .social-links {
    flex: 0 0 145px;
    width: 145px;
    justify-content: space-between;
    gap: 0;
    min-width: 0;
    overflow: visible;
  }

  .social-link {
    flex: 0 0 25px;
    width: 25px;
    min-width: 0;
    gap: 2px;
    font-size: 9px;
    letter-spacing: 0;
  }

  .social-link .item-label {
    display: none;
  }

  .social-link .item-icon-image {
    width: 23px;
    height: 23px;
  }

  .nav-divider {
    display: none;
  }

  .payment-link {
    min-height: 38px;
    padding: 0 11px;
    gap: 6px;
    border-radius: 999px;
    font-size: 13px;
  }

  .payment-art-link {
    min-width: 112px;
    max-width: 112px;
    min-height: clamp(31px, 7.7vw, 36px);
    padding: 0 8px 0 clamp(33px, 8vw, 40px);
    font-size: clamp(12px, 3.1vw, 14px);
  }

  .payment-link .item-icon-image {
    width: 25px;
    height: 25px;
  }

  .hero {
    min-height: calc(max(100svh, 780px) - 72px);
  }

  .bottom-hud {
    position: absolute;
    left: 50%;
    bottom: 18px;
    grid-template-columns: minmax(0, 1fr) 80px;
    width: min(94vw, 430px);
    margin: 0;
    transform: none;
    transform: translateX(-50%);
    gap: 10px 8px;
    align-items: center;
  }

  .promo-grid {
    align-self: stretch;
    min-width: 0;
  }

  .promo-card {
    min-height: 106px;
    padding: 13px 13px 12px 84px;
  }

  .promo-art-card {
    min-height: 0;
    padding: 0;
  }

  .promo-art {
    width: 100%;
    max-width: 100%;
  }

  .promo-mascot {
    left: -36px;
    bottom: -9px;
    width: 126px;
  }

  .promo-content {
    gap: 7px;
  }

  .promo-label {
    font-size: clamp(20px, 6vw, 27px);
  }

  .promo-value {
    font-size: clamp(42px, 12vw, 54px);
  }

  .promo-action {
    min-height: 31px;
    padding: 0 15px;
    font-size: 15px;
  }

  .download-qr {
    top: 0;
    padding: 6px;
  }

  .download-qr-image {
    width: 66px;
  }

  .download-qr-caption {
    font-size: 9px;
  }

  .download-panel {
    top: 0;
    grid-column: 1 / -1;
  }

  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 8px;
  }

  .download-card {
    grid-template-columns: 29px 1fr;
    column-gap: 7px;
    min-height: 52px;
    padding: 0 35px 0 12px;
    font-size: clamp(14px, 4vw, 17px);
  }

  .download-card .item-icon {
    width: 29px;
    height: 29px;
  }

  .download-card .item-icon-image {
    width: 29px;
    height: 29px;
  }

  .download-arrow {
    width: 36px;
    height: 36px;
  }

  .download-arrow::before {
    width: 17px;
    height: 17px;
    margin: 7px 0 0 7px;
  }

  .hero-badges {
    gap: 5px;
  }

  .hero-badge-strip {
    min-height: 30px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero-badge {
    min-height: 30px;
    padding: 0 8px;
  }

  .hero-badge .item-icon {
    width: 18px;
    height: 18px;
  }

  .hero-badge .item-icon-image {
    width: 18px;
    height: 18px;
  }

  .hero-support {
    margin-top: 5px;
    text-align: center;
    font-size: 16px;
    line-height: 1.1;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8);
  }

  .hero-support-art {
    width: min(300px, 78vw);
  }
}

@media (max-width: 520px) {
  .topbar {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .brand {
    width: auto;
    justify-content: flex-start;
  }

  .social-nav {
    width: 262px;
    justify-content: initial;
  }

  .bottom-hud {
    grid-template-columns: minmax(0, 1fr) 80px;
    width: calc(100vw - 18px);
  }

  .download-qr {
    width: auto;
    justify-self: center;
  }

  .hero-badges {
    padding: 0 8px;
  }
}

@media (max-height: 700px) and (min-width: 821px) {
  .hero-center {
    top: 60vh;
  }

  .bottom-hud {
    bottom: 16px;
    transform: translateX(-50%) scale(0.9);
    transform-origin: bottom center;
  }
}
