body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 手机端动态背景层；PC 端默认隐藏，移动端由 JS 写入当前轮播图。 */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: none;
  opacity: 0.86;
  transform: none;
  transition: background-image 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
  display: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0,0,0,0.24);
  pointer-events: none;
}
:root {
  /* PC 端导航、主图、底部分类共用宽度。 */
  --page-width: 1100px;
}
.navbar,
.main-content,
.footer-btns,
.mobile-page {
  position: relative;
  z-index: 1;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page-width), calc(100% - 32px));
  box-sizing: border-box;
  margin: 0 auto;
  background: #000;
  padding: 8px 0;
}
.logo img {
  width: 142px;
  height: 38px;
  object-fit: contain;
}
.nav-links a {
  color: #fff;
  margin-left: 32px;
  text-decoration: none;
  font-size: 12px;
}
.main-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 10px;
  position: relative;
}

.route-placeholder {
  display: none;
  padding: 20px;
  color: #666;
  font-size: 18px;
}

.route-placeholder h3 {
  margin-top: 50%;
  text-align: center;
}

/* PC 主视觉轮播：无指示器，三张图片淡入淡出。 */
.hero-carousel {
  position: relative;
  width: min(var(--page-width), calc(100% - 32px));
  height: auto;
  aspect-ratio: 1100 / 470;
  overflow: hidden;
  border-radius: 8px;
  background: #222;
}
.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: carouselFade 12s infinite;
}
.hero-carousel img:nth-child(1) {
  animation-delay: 0s;
}
.hero-carousel img:nth-child(2) {
  animation-delay: 4s;
}
.hero-carousel img:nth-child(3) {
  animation-delay: 8s;
}
@keyframes carouselFade {
  0%,
  28% {
    opacity: 1;
  }
  33%,
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.qr-section {
  position: absolute;
  right: 40px;
  top: 40px;
}
.qr-box {
  position: relative;
  overflow: hidden;
  background: rgba(34, 34, 34, 0.48);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 18px 20px 16px;
  text-align: center;
  width: 236px;
  box-sizing: border-box;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.qr-img {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  padding: 6px;
  background: #fff;
  box-sizing: border-box;
  object-fit: contain;
}
.qr-text {
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 8px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.qr-desc {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.72);
  margin-bottom: 14px;
  font-weight: 600;
}
.qr-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.qr-btns button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.88);
  border-radius: 50%;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1;
}
.footer-btns {
  display: flex;
  justify-content: center;
  width: min(var(--page-width), calc(100% - 32px));
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  gap: 8px;
}
.footer-btns button {
  position: relative;
  overflow: hidden;
  flex: 1;
  height: clamp(300px, calc(100vh - 546px), 520px);
  font-size: 88px;
  font-weight: 900;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.footer-btns button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.36;
  transform: scale(1.06);
  filter: blur(8px);
  transition: opacity 0.35s ease, transform 0.45s ease, filter 0.45s ease;
}
.footer-btns button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.38), rgba(0,0,0,0.72));
  opacity: 1;
  transition: opacity 0.35s ease;
}
.footer-btns button span {
  position: relative;
  z-index: 2;
  display: inline-block;
  line-height: 1.15;
  transition: opacity 0.35s ease;
}
.footer-btns button:nth-child(1)::before {
  background-image: url("images/banImg4.js");
}
.footer-btns button:nth-child(2)::before {
  background-image: url("images/banImg5.js");
}
.footer-btns button:nth-child(3)::before {
  background-image: url("images/banImg6.js");
}
.footer-btns button:hover {
  background: #333;
  box-shadow: 0 8px 24px rgba(0,0,0,0.42);
  transform: translateY(-2px);
}
.footer-btns button:hover::before {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.footer-btns button:hover::after {
  opacity: 0.45;
}
.footer-btns button:hover span {
  opacity: 0;
}

.mobile-page {
  display: none;
}

/* 手机端独立布局。图片资源都放在 images/mobile/，按连续编号自动加载。 */
@media (max-width: 768px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #080808;
  }

  .page-bg {
    display: block;
    filter: blur(3px);
    transform: scale(1.02);
  }

  .navbar,
  .main-content,
  .footer-btns {
    display: none;
  }

  .mobile-page {
    position: relative;
    display: block;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 18px 14px 76px 0;
    overflow: hidden;
    background: transparent;
  }

  .mobile-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .mobile-titlebar,
  .mobile-hero,
  .mobile-scroll-section,
  .mobile-slogan,
  .mobile-downloads {
    position: relative;
    z-index: 1;
  }

  .mobile-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .mobile-brand img {
    display: block;
    width: 142px;
    height: 38px;
    object-fit: contain;
  }

  .mobile-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    margin-right: 12px;
  }

  .mobile-actions button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    overflow: hidden;
  }

  .mobile-actions img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-hero {
    /* 只控制额外间距；左右图的主要距离由下方 translateX 百分比决定。 */
    --mobile-slide-gap: 0px;
    width: min(304px, 100%);
    height: 304px;
    max-height: 304px;
    min-height: 304px;
    margin: 0 auto 18px;
    overflow: visible;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
  }

  .mobile-hero.is-dragging {
    cursor: grabbing;
  }

  .mobile-hero img {
    position: absolute;
    top: 0;
    left: 50%;
    /* 中间大图宽度，数值越大主图越宽。 */
    width: 304px;
    height: 304px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.45);
    transform-origin: center;
    will-change: transform, opacity;
    transition: transform 0.55s ease, opacity 0.55s ease;
  }

  .mobile-hero img.is-active {
    z-index: 3;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  .mobile-hero img.is-right {
    z-index: 1;
    opacity: 0.72;
    /* 右侧小图位置：百分比越小越靠近中间图。 */
    transform: translateX(calc(40% + var(--mobile-slide-gap))) scale(0.72);
  }

  .mobile-hero img.is-left {
    z-index: 1;
    opacity: 0.72;
    /* 左侧小图位置：负数绝对值越小越靠近中间图。 */
    transform: translateX(calc(-140% - var(--mobile-slide-gap))) scale(0.72);
  }

  .mobile-hero img.is-hidden {
    z-index: 0;
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }

  .mobile-scroll-section {
    margin-top: 14px;
  }

  .mobile-scroll-section h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
  }

  .mobile-scroll-section h2::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
    background: #ffad12;
    vertical-align: -2px;
  }

  .mobile-marquee {
    width: 100%;
    overflow: hidden;
  }

  .marquee-track {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
  }

  .mobile-marquee img {
    display: block;
    width: 46vw;
    max-width: 220px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  }

  .marquee-right .marquee-track {
    animation: scrollRight 16s linear infinite;
  }

  .marquee-left .marquee-track {
    animation: scrollLeft 16s linear infinite;
  }

  .mobile-slogan {
    margin: 24px 0 0;
    text-align: center;
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 8px;
    font-weight: 500;
  }

  .mobile-slogan span {
    color: #ffad12;
    font-weight: 900;
  }

  .mobile-downloads {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 18px;
    z-index: 5;
    display: flex;
    gap: 28px;
    margin-top: 0;
  }

  .mobile-downloads button {
    flex: 1;
    height: 46px;
    border: none;
    border-radius: 5px;
    background: #ffa70b;
    color: #000;
    box-shadow: 0 6px 16px rgba(0,0,0,0.26);
    font-family: inherit;
  }

  .mobile-downloads strong,
  .mobile-downloads small {
    display: block;
    line-height: 1.05;
  }

  .mobile-downloads strong {
    font-size: 16px;
    font-weight: 900;
  }

  .mobile-downloads small {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
  }
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 5px));
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(calc(-50% - 5px));
  }
  to {
    transform: translateX(0);
  }
}
