* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: #faf1f8;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.page-container {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.page-container::-webkit-scrollbar {
  display: none;
}

.screen {
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
}

/* ========== 第一屏 ========== */
.screen-1 {
  background-color: #ffe0eb;
}

.bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 主视觉区 —— 始终水平垂直居中，用 vw 适配各种分辨率 */
.main-visual {
  position: absolute;
  top: 50%;
  left: 31%;
  transform: translate(-50%, -55%);
  z-index: 2;
}

/* 小狐狸 —— 位置固定不变 */
.mascot {
  width: 25vw;
  height: 25vw;
}

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

/* 标题 —— 紧贴小狐狸右侧 */
.title-section {
  position: absolute;
  top: 50%;
  left: calc(100% + 1.5vw);
  transform: translateY(-50%);
  width: 30vw;
}

.title-section img {
  width: 100%;
  height: auto;
  display: block;
}

/* 装饰元素 */
.deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.deco-mess {
 top: 26%;
    left: 11%;
    width: 9vw;
}

.deco-user {
  bottom: 25%;
    left: 10%;
    width: 10vw;
}

.deco-xx {
      top: 38%;
    right: 15%;
    width: 8vw;
}

.deco-yy {
  bottom: 22%;
    right: 14%;
    width: 9vw;
}

/* 下载按钮 */
.download-btns {
  position: absolute;
  bottom: 32vh;
    left: 56%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 1.5vw;
}

.btn-download {
  display: inline-block;
}

.btn-download img {
  width: 10vw;
  height: 6vh;
  display: block;
}

/* 备案信息 */
.footer {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  font-size: 1.2vh;
  color: #999;
  line-height: 1.8;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #999;
  text-decoration: none;
}

.footer a:hover {
  color: #666;
}

/* ========== 第二屏 ========== */
.screen-2 {
  background-color: #fce4f0;
}

/* 手机界面 */
.phone {
  position: absolute;
    left: 16vw;
    top: 57%;
    transform: translateY(-55%) rotate(-2deg);
    width: 32vw;
    z-index: 2;
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1vw 2vw rgba(255, 100, 150, 0.2));
}

/* 标题 */
.screen2-title {
      position: absolute;
    top: 17%;
    right: 22vw;
    width: 21vw;
    z-index: 2;
}

.screen2-title img {
  width: 100%;
  height: auto;
  display: block;
}

/* 描述文字 */
.screen2-desc {
  position: absolute;
    top: 40%;
    right: 25vw;
    width: 19vw;
    z-index: 2;
}

.screen2-desc img {
  width: 100%;
  height: auto;
  display: block;
}

/* 小狐狸 */
.mascot2 {
      position: absolute;
    right: 5vw;
    bottom: 18%;
    width: 20vw;
    height: 20vw;
    z-index: 2;
}

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

/* 装饰元素 */
.s2-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.s2-qiu {
  left: 53vw;
    bottom: 20%;
    width: 6vw;
}

.s2-messj {
  left: 45vw;
    top: 31%;
    width: 9vw;
}

.s2-messs {
      right: 49vw;
    top: 11%;
    width: 8vw;
}

.s2-messx {
      left: 4vw;
    top: 33%;
    width: 11vw;
}

.s2-yxsb{
      left: 4vw;
    bottom: 13%;
    width: 13vw;
}

/* 底部徽章 */
.screen2-badges {
 position: absolute;
    bottom: 9vh;
    left: 66%;
    transform: translateX(-50%);
    width: 26vw;
    z-index: 3;
}

.screen2-badges img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== 第三屏 ========== */
.screen-3 {
  background-color: #f0e4f8;
}

/* 第三屏手机界面（右侧） */
.phone-3 {
 position: absolute;
    right: 11vw;
    top: 57%;
    transform: translateY(-55%) rotate(-2deg);
    width: 34vw;
    z-index: 2;
}

.phone-3 img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1vw 2vw rgba(180, 100, 255, 0.2));
}

/* 左侧标题+描述（合二为一） */
.screen3-title {
 position: absolute;
    top: 25%;
    left: 10vw;
    width: 21vw;
    z-index: 2;
}

.screen3-title img {
  width: 100%;
  height: auto;
  display: block;
}

/* 小狐狸 */
.mascot3 {
  position: absolute;
    left: 27vw;
    bottom: 8%;
    width: 20vw;
    height: 20vw;
    z-index: 2;
}

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

/* 装饰元素 */
.s3-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.s3-user {
  left: 49vw;
    top: 11%;
    width: 9vw;
}

.s3-mess {
 right: 2vw;
    top: 29%;
    width: 12vw;
}

.s3-01 {
 right: 4vw;
    top: 18%;
    width: 3vw;
}

.s3-02 {
  right: 43vw;
    bottom: 43%;
    width: 10vw;
}

.s3-03 {
      right: 4vw;
    bottom: 13%;
    width: 12vw;
}

/* 底部徽章 */
.screen3-badges {
 position: absolute;
    bottom: 14vh;
    left: 18%;
    transform: translateX(-50%);
    width: 20vw;
    z-index: 3;
}

.screen3-badges img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== 第四屏 ========== */
.screen-4 {
  background-color: #f8e8f4;
}

/* 第四屏手机界面（与第二屏一致） */
.phone-4 {
  position: absolute;
    left: 14vw;
    top: 57%;
    transform: translateY(-55%) rotate(-2deg);
    width: 34vw;
    z-index: 2;
}

.phone-4 img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1vw 2vw rgba(255, 100, 150, 0.2));
}


/* 标题 */
.screen4-title {
   position: absolute;
    top: 20%;
    right: 25vw;
    width: 21vw;
    z-index: 2;
}

.screen4-title img {
  width: 100%;
  height: auto;
  display: block;
}

/* 描述文字 */
.screen4-desc {
      position: absolute;
    bottom: 7%;
    right: 10vw;
    width: 38vw;
    z-index: 2;
}

.screen4-desc img {
  width: 100%;
  height: auto;
  display: block;
}

/* 小狐狸 */

.mascot4 {
      position: absolute;
    right: 5vw;
    bottom: 12%;
    width: 20vw;
    height: 20vw;
    z-index: 2;
}

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

/* 装饰元素 */
.s4-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.s4-dg {
  left: 5vw;
    top: 32%;
    width: 10vw;
}

.s4-ej {
 right: 48vw;
    top: 14%;
    width: 9vw;
}

.s4-01 {
  right: 44vw;
    bottom: 17%;
    width: 8vw;
}

.s4-02 {
  left: 7vw;
    bottom: 10%;
    width: 10vw;
}

/* 底部徽章（4个） */
.screen4-badges {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  width: 50vw;
  z-index: 3;
}

.screen4-badges img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右侧滚动指示 */
.scroll-nav {
  position: fixed;
  right: 1.5vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.nav-dot {
  width: 0.6vw;
  height: 0.6vw;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  background: rgba(255, 180, 200, 0.5);
  transition: all 0.3s ease;
  display: block;
}

.nav-dot.active {
  background: #ff6b9d;
  transform: scale(1.4);
}

/* ========== 入场动画 ==========
   使用独立的 translate 属性，不覆盖元素原有 transform 定位。
   初始：下移 6vh + 透明；激活：归位 + 不透明。
   transition-delay 由 JS 按 data-delay 设置。
*/
.reveal {
  opacity: 0;
  translate: 0 6vh;
  transition: opacity 0.8s ease, translate 0.8s ease;
}

.screen-active .reveal {
  opacity: 1;
  translate: 0 0;
}

/* 尊重无障碍：减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

/* ========== 响应式：PC / 手机 ========== */
.pc-only {
  position: absolute;
  inset: 0;
  display: block;
}

.mobile-only {
  position: absolute;
  inset: 0;
  display: none;
}

/* 手机端通用结构 */
.mobile-wrap {
  overflow: hidden;
}

.mobile-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-download {
  position: absolute;
  bottom: 22vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 3vh;
  width: 70vw;
  z-index: 2;
}

.btn-mobile {
  display: block;
  width: 100%;
}

.btn-mobile img {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-footer {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 3.2vw;
  color: #666;
  line-height: 1.6;
  z-index: 2;
  width: 90vw;
}

.mobile-footer p {
  margin: 0;
}

.mobile-footer a {
  color: #666;
  text-decoration: none;
}

/* 手机端样式 */
@media screen and (max-width: 768px) {
  /* 禁用滚动，只显示第一屏 */
  html, body {
    overflow: hidden;
  }

  .page-container {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .page-container::-webkit-scrollbar {
    display: none;
  }

  /* PC 端隐藏，手机端显示 */
  .pc-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  /* 只显示第一屏，其他隐藏 */
  .screen-2,
  .screen-3,
  .screen-4 {
    display: none;
  }

  /* 手机端隐藏滚动指示点 */
  .scroll-nav {
    display: none;
  }
}
