:root {
  --black: #070a09;
  --deep-green: #0f3127;
  --green: #194637;
  --orange: #ff7a21;
  --orange-soft: #ffb073;
  --text: #f3f0e8;
  --muted: #b8c2bb;
  --line: rgba(243, 240, 232, 0.16);
  --panel: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 122, 33, 0.26), transparent 30%),
    radial-gradient(circle at 0% 28%, rgba(255, 122, 33, 0.1), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(25, 70, 55, 0.65), transparent 32%),
    linear-gradient(135deg, var(--black) 0%, #0a1511 46%, var(--deep-green) 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-brand {
  margin-bottom: 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 0.92fr);
  gap: 58px;
  align-items: center;
  min-height: 720px;
  padding: 72px 7vw 62px;
}

.tag {
  display: inline-flex;
  margin-top: 20px;
  margin-bottom: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 122, 33, 0.44);
  border-radius: 4px;
  color: var(--orange-soft);
  background: rgba(255, 122, 33, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  font-size: 66px;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.dl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 204px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: default;
  font-family: inherit;
}

.dl-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-btn.ios {
  border-color: rgba(255, 122, 33, 0.52);
  background: linear-gradient(180deg, #ff8b38, #f16019);
  color: #fff4ea;
  box-shadow: 0 14px 32px rgba(255, 122, 33, 0.28);
  cursor: pointer;
}

.dl-btn.ios:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 176, 115, 0.9);
  box-shadow: 0 20px 44px rgba(255, 122, 33, 0.4);
}

.dl-btn.miniapp:hover {
  border-color: var(--orange);
}

.dl-btn.disabled {
  color: rgba(243, 240, 232, 0.62);
}

.dl-btn.miniapp {
  color: #f6f2ea;
}

.qr-popover {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  z-index: 8;
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 156px;
  padding: 12px;
  border: 1px solid rgba(255, 122, 33, 0.32);
  border-radius: 8px;
  background: rgba(8, 13, 11, 0.96);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.qr-popover img {
  width: 118px;
  height: 118px;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
}

.qr-popover small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.miniapp:hover .qr-popover,
.miniapp:focus-visible .qr-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-right {
  display: grid;
  place-items: center;
}

.carousel {
  position: relative;
  width: min(100%, 620px);
  height: 620px;
  overflow: visible;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.carousel img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 310px;
  opacity: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(0.72);
  transition: transform 500ms ease, opacity 500ms ease, filter 500ms ease;
}

.carousel img.is-center {
  z-index: 5;
  opacity: 1;
  filter: saturate(1) brightness(1) drop-shadow(0 28px 34px rgba(0, 0, 0, 0.46));
  transform: translate(-50%, -50%) scale(1);
}

.carousel img.is-left {
  z-index: 3;
  opacity: 0.38;
  filter: saturate(0.75) brightness(0.72) drop-shadow(0 22px 26px rgba(0, 0, 0, 0.36));
  transform: translate(-102%, -50%) scale(0.72);
}

.carousel img.is-right {
  z-index: 3;
  opacity: 0.38;
  filter: saturate(0.75) brightness(0.72) drop-shadow(0 22px 26px rgba(0, 0, 0, 0.36));
  transform: translate(2%, -50%) scale(0.72);
}

.carousel img.is-hidden {
  z-index: 1;
  opacity: 0;
  filter: saturate(0.75) brightness(0.76) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.3));
  transform: translate(-50%, -50%) scale(0.72);
}

.site-footer {
  margin-top: 24px;
  padding: 50px 7vw 24px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 6, 0.72);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 420px));
  justify-content: center;
  gap: 74px;
}

.footer-block + .footer-block {
  padding-left: 74px;
  border-left: 1px solid var(--line);
}

.footer-block {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-block h2 {
  margin-bottom: 4px;
  color: var(--orange-soft);
  font-size: 24px;
  line-height: 1.2;
}

.footer-block p,
.footer-block a {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.footer-block a {
  color: var(--text);
  font-weight: 400;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.footer-bottom span,
.footer-bottom a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.police-beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.police-beian img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 68px;
  }

  h1 {
    font-size: 56px;
  }

  .intro {
    font-size: 18px;
  }

  .carousel {
    width: min(100%, 560px);
    height: 560px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .footer-block + .footer-block {
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand span {
    font-size: 23px;
  }

  .hero,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 36px;
  }

  .intro {
    font-size: 16px;
    line-height: 1.75;
  }

  .carousel img.is-left,
  .carousel img.is-right {
    opacity: 0.26;
  }

  .carousel img {
    width: 240px;
  }

  .carousel img.is-left {
    transform: translate(-86%, -50%) scale(0.72);
  }

  .carousel img.is-right {
    transform: translate(-14%, -50%) scale(0.72);
  }

  .download-row {
    gap: 8px;
  }

  .dl-btn {
    width: 100%;
    max-width: 248px;
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .qr-popover {
    left: auto;
    right: 0;
    transform: translate(0, 8px);
  }

  .miniapp:hover .qr-popover,
  .miniapp:focus-visible .qr-popover {
    transform: translate(0, 0);
  }
}
