:root {
  --page-width: 750px;
  --page-background: #000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  background: var(--page-background);
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.page-shell {
  position: relative;
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin: 0 auto;
  padding-top: min(13.0667vw, 98px);
  background: #000 url("../images/page-background.jpg") top center / 100% auto no-repeat;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1000;
  width: min(100%, var(--page-width));
  transform: translateX(-50%);
}

.top-download-button {
  display: block;
  position: absolute;
  top: 50%;
  right: -3%;
  width: 36.2%;
  aspect-ratio: 204 / 56;
  transform: translateY(-50%);
  background: url("../images/customer-service.png") center / contain no-repeat;
}

.hero-section,
.primary-download,
.route-section,
.entry-list,
.recommend-section {
  width: 100%;
}

.primary-download {
  margin-top: -1.33%;
  text-align: center;
}

.primary-download .main-download-link {
  display: block;
  display: block;
  width: 53.8667%;
  aspect-ratio: 404 / 132;
  margin: 0 auto;
  background: url("../images/download-button.png") center / contain no-repeat;
  animation: downloadPulse 1s ease-in-out infinite;
}

.route-section {
  padding-top: 1.4%;
}

.route-title {
  width: 75.4667%;
  margin: 0 auto;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3333%;
  padding: 3.7333% 3.2%;
}

.route-list .h5btn {
  display: grid;
  place-items: center;
  aspect-ratio: 226 / 86;
  background: url("../images/route-button.png") center / 100% 100% no-repeat;
  color: #fff;
  font-size: clamp(14px, 4.2667vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.entry-list {
  padding: 0 3.4667%;
}

.entry-list > * {
  display: block;
  width: 100%;
  margin: 0.8% 0;
}

.image-button {
  width: 100%;
}

.recommend-section {
  padding: 2.6667% 3.3333%;
}

.copyright {
  width: 100%;
  padding: 2.2% 2% 3%;
  color: #fff;
  font-size: clamp(12px, 3.2vw, 24px);
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
}

@keyframes downloadPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .primary-download .main-download-link {
    animation: none;
  }
}

/* APP 下载卡片：右侧按钮覆盖在效果图指定位置 */
.download-entry {
  position: relative;
  width: 100%;
  margin: 1.15% 0;
  overflow: hidden;
  border-radius: clamp(18px, 5.2vw, 39px);
}

.download-entry .entry-banner {
  width: 100%;
}

.entry-download-button {
  position: absolute;
  top: 50%;
  right: 5.7%;
  z-index: 2;
  display: block;
  width: 27%;
  overflow: hidden;
  border-radius: 999px;
  transform: translateY(-50%);
  cursor: pointer;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.38));
  animation: appButtonBreath 1.15s ease-in-out infinite;
  will-change: transform, filter;
}

.entry-download-button::after {
  position: absolute;
  inset: 5% 2%;
  content: "";
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.75) 48%, transparent 68%);
  transform: translateX(-145%);
  animation: buttonShine 2.3s ease-in-out infinite;
}

.entry-download-button img {
  width: 100%;
}

/* H5 三个线路按钮：呼吸、轻微浮动和扫光，错峰播放 */
.route-list .h5btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .42));
  animation: h5ButtonFloat 1.35s ease-in-out infinite;
  will-change: transform, filter;
}

.route-list .h5btn:nth-child(2) {
  animation-delay: -.45s;
}

.route-list .h5btn:nth-child(3) {
  animation-delay: -.9s;
}

.route-list .h5btn::before {
  position: absolute;
  z-index: -1;
  top: -35%;
  left: -48%;
  width: 34%;
  height: 170%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  transform: skewX(-20deg);
  animation: h5ButtonShine 2.6s ease-in-out infinite;
}

.route-list .h5btn:nth-child(2)::before {
  animation-delay: .55s;
}

.route-list .h5btn:nth-child(3)::before {
  animation-delay: 1.1s;
}

/* 页面右侧在线客服 */
.floating-customer-service {
  position: fixed;
  top: 44%;
  right: max(6px, calc((100vw - 750px) / 2 + 7px));
  z-index: 1200;
  display: block;
  width: clamp(72px, 16.1333vw, 121px);
  transform: translateY(-50%);
  filter: drop-shadow(0 7px 8px rgba(0,0,0,.5));
  animation: customerServiceFloat 1.8s ease-in-out infinite;
  will-change: transform, filter;
}

.floating-customer-service img {
  width: 100%;
}

.floating-customer-service::after {
  position: absolute;
  inset: -5%;
  z-index: -1;
  content: "";
  border-radius: 26px;
  box-shadow: 0 0 18px rgba(255, 212, 88, .72);
  opacity: .35;
  animation: customerServiceGlow 1.8s ease-in-out infinite;
}

@keyframes appButtonBreath {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .38)) brightness(1);
  }
  50% {
    transform: translateY(-50%) scale(.92);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .28)) brightness(1.12);
  }
}

@keyframes buttonShine {
  0%, 50% { transform: translateX(-145%); opacity: 0; }
  62% { opacity: .9; }
  85%, 100% { transform: translateX(145%); opacity: 0; }
}

@keyframes h5ButtonFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .42)) brightness(1);
  }
  50% {
    transform: translateY(-4%) scale(.96);
    filter: drop-shadow(0 6px 8px rgba(255, 80, 28, .42)) brightness(1.12);
  }
}

@keyframes h5ButtonShine {
  0%, 48% { left: -48%; opacity: 0; }
  58% { opacity: .9; }
  80%, 100% { left: 118%; opacity: 0; }
}

@keyframes customerServiceFloat {
  0%, 100% {
    transform: translateY(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateY(-50%) translateY(-8px) scale(1.035);
  }
}

@keyframes customerServiceGlow {
  0%, 100% { opacity: .25; transform: scale(.96); }
  50% { opacity: .65; transform: scale(1.03); }
}

@media (max-width: 420px) {
  .floating-customer-service {
    top: 48%;
    right: 4px;
    width: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-download-button,
  .entry-download-button::after,
  .route-list .h5btn,
  .route-list .h5btn::before,
  .floating-customer-service,
  .floating-customer-service::after {
    animation: none !important;
  }
}
