.ambient-shapes {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-shapes i {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(212, 159, 0, 0.14);
  border-radius: 42% 58% 64% 36%;
  background: rgba(255, 221, 92, 0.055);
  animation: ambient-drift 18s ease-in-out infinite alternate;
}

.ambient-shapes i:nth-child(1) { left: -70px; top: 18%; }
.ambient-shapes i:nth-child(2) { right: -90px; top: 42%; width: 260px; height: 260px; animation-delay: -6s; }
.ambient-shapes i:nth-child(3) { left: 15%; top: 66%; width: 100px; height: 100px; animation-delay: -12s; }
.ambient-shapes i:nth-child(4) { right: 18%; top: 78%; width: 130px; height: 130px; animation-delay: -9s; }
.ambient-shapes i:nth-child(5) { left: 43%; top: 31%; width: 70px; height: 70px; animation-delay: -3s; }

.section h2 {
  position: relative;
  width: fit-content;
  background-image: linear-gradient(100deg, var(--ink) 30%, #c18e00 48%, var(--ink) 66%);
  background-size: 260% 100%;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: heading-glint 8s ease-in-out infinite;
}

.universe h2 {
  background-image: linear-gradient(100deg, #fff 30%, var(--yellow) 48%, #fff 66%);
}

.download h2 {
  background-image: linear-gradient(100deg, #fff 30%, var(--yellow) 48%, #fff 66%);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(255,255,255,.62), transparent 34%);
  opacity: 0;
  transition: opacity .3s;
}

.feature:hover::before {
  opacity: 1;
}

.stats {
  position: relative;
}

.stats::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.36) 49%, transparent 63%);
  transform: translateX(-130%);
  animation: stats-glint 7s ease-in-out infinite;
}

.universe-stage {
  animation: universe-glow 5s ease-in-out infinite;
}

.download {
  animation: download-glow 4s ease-in-out infinite;
}

.qr-card .qr-pulse::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow-deep), transparent);
  box-shadow: 0 0 12px var(--yellow);
  animation: qr-scan 2.8s ease-in-out infinite;
}

.cta::after {
  content: "";
  position: absolute;
  inset: -80% -35%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 43%, rgba(255,255,255,.55) 49%, transparent 56%);
  transform: translateX(-80%) rotate(10deg);
  animation: cta-shine 6s ease-in-out infinite;
}

.fx-burst {
  position: fixed;
  z-index: 130;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--yellow);
  pointer-events: none;
  animation: burst-away .72s cubic-bezier(.15,.75,.2,1) forwards;
}

@keyframes ambient-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); border-radius: 42% 58% 64% 36%; }
  100% { transform: translate3d(45px, -70px, 0) rotate(34deg); border-radius: 63% 37% 42% 58%; }
}

@keyframes heading-glint {
  0%, 32% { background-position: 100% 50%; }
  58%, 100% { background-position: -100% 50%; }
}

@keyframes stats-glint {
  0%, 62% { transform: translateX(-130%); }
  88%, 100% { transform: translateX(130%); }
}

@keyframes universe-glow {
  0%, 100% { box-shadow: 0 26px 80px rgba(0,0,0,.28), 0 0 0 rgba(255,213,47,0); }
  50% { box-shadow: 0 26px 80px rgba(0,0,0,.28), 0 0 32px rgba(255,213,47,.18); }
}

@keyframes download-glow {
  0%, 100% { box-shadow: 10px 11px 0 var(--yellow-deep), 0 0 0 rgba(255,213,47,0); }
  50% { box-shadow: 10px 11px 0 var(--yellow-deep), 0 0 35px rgba(255,213,47,.18); }
}

@keyframes qr-scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  95% { transform: translateY(185px); opacity: 0; }
}

@keyframes cta-shine {
  0%, 64% { transform: translateX(-80%) rotate(10deg); }
  90%, 100% { transform: translateX(80%) rotate(10deg); }
}

@keyframes burst-away {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) rotate(180deg) scale(.15);
  }
}

@media (max-width: 850px) {
  .ambient-shapes i {
    opacity: .6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-shapes i,
  .section h2,
  .stats::after,
  .universe-stage,
  .download,
  .qr-card .qr-pulse::after,
  .cta::after {
    animation: none !important;
  }

  .fx-burst {
    display: none;
  }
}

/* 扫码区内容始终高于装饰层，防止文字与二维码被圆环覆盖或挤出。 */
.download::before,
.download::after {
  z-index: 0;
  pointer-events: none;
}

.download > div {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.download > div:first-child {
  max-width: 610px;
}

.download > div:first-child p {
  max-width: 580px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.download .download-badges {
  position: relative;
  z-index: 3;
}

.download .qr-card {
  z-index: 3;
}

/* 实时数据卡与下一个深色模块保持呼吸空间。 */
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  margin-bottom: 120px;
  padding: 0;
}

.stats > .stats-head {
  grid-column: 1 / -1;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-right: 0;
  border-bottom: 1px solid rgba(23, 24, 22, 0.28);
  background: rgba(255, 255, 255, 0.24);
}

.stats-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-head > div > i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #18a957;
  box-shadow: 0 0 0 5px rgba(24, 169, 87, 0.14);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.stats-head > div > strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.stats-head small {
  color: #6d5400;
  font-size: 10px;
  font-weight: 700;
}

.stats > .live-stat {
  position: relative;
  min-height: 190px;
  padding: 34px 28px;
}

.live-stat > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-stat > div > strong {
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

.live-stat > div > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18a957;
  opacity: 0.7;
}

.live-stat em {
  position: absolute;
  right: 24px;
  bottom: 25px;
  padding: 5px 8px;
  border: 1px solid rgba(23, 24, 22, 0.25);
  border-radius: 99px;
  color: #6d5400;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.live-stat.is-updating > div > strong {
  animation: number-change 0.55s cubic-bezier(.2, 1.5, .3, 1);
}

.live-stat.is-error > div > i,
.stats.is-error .stats-head > div > i {
  background: #8e8e84;
  box-shadow: none;
}

@keyframes live-pulse {
  0%,
  100% { opacity: 0.45; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes number-change {
  0% { opacity: 0.35; transform: translateY(9px) scale(0.88); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .download {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 36px;
    padding-inline: 48px;
  }

  .stats {
    margin-bottom: 90px;
  }
}

@media (max-width: 760px) {
  .download {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 32px;
  }

  .download > div:first-child {
    max-width: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 76px;
  }

  .stats > .stats-head {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }

  .stats > .live-stat {
    min-height: 160px;
  }
}

/* 跑马灯更轻快。 */
.ticker-track {
  animation-duration: 14s;
}

/* 减少大面积黑灰，仅用深色做轮廓和少量收尾。 */
.universe {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 36%, rgba(255, 213, 47, 0.32), transparent 30%),
    linear-gradient(145deg, #fffdf7, #fff3b6);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.universe::before {
  background: rgba(255, 213, 47, 0.26);
}

.universe .kicker {
  color: #8f6c00;
}

.universe .section-heading > p,
.universe-copy p {
  color: var(--muted);
}

.universe h2,
.download h2 {
  background-image: linear-gradient(100deg, var(--ink) 30%, #b18100 48%, var(--ink) 66%);
}

.universe-stage {
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 76% 48%, rgba(255, 213, 47, 0.28), transparent 38%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 9px 10px 0 var(--yellow-deep);
}

.tag {
  border-color: rgba(23, 24, 22, 0.28);
  background: var(--yellow-soft);
  color: #6d5300;
}

.collection-core {
  border-color: rgba(23, 24, 22, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 70px rgba(255, 196, 0, 0.24);
}

.collection-orbit::before,
.collection-orbit::after {
  border-color: rgba(23, 24, 22, 0.28);
}

.collect-item {
  border-color: var(--ink);
  background: #fffdf4;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(126, 92, 0, 0.14);
}

.collect-item b {
  color: #8f6c00;
}

.download {
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 50%, rgba(255, 213, 47, 0.45), transparent 28%),
    linear-gradient(125deg, #fffdf7 0 60%, #fff0a3 100%);
  box-shadow: 10px 11px 0 var(--yellow-deep);
}

.download::before {
  border-color: rgba(23, 24, 22, 0.16);
  box-shadow:
    0 0 0 45px rgba(255, 213, 47, 0.08),
    0 0 0 46px rgba(23, 24, 22, 0.13);
}

.download p {
  color: var(--muted);
}

.download-badges span {
  border-color: rgba(23, 24, 22, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

footer {
  background: #2d291c;
}

/* 文案保持稳定清晰，不使用金色扫光动画。 */
.section h2,
.universe h2,
.download h2 {
  color: var(--ink);
  background: none;
  animation: none;
  -webkit-text-fill-color: currentColor;
}

#ecosystem {
  padding-bottom: 140px;
}
