.pc-div,
.mobile-div {
  display: none;
}
/* pc */
@media (min-width: 861px) {
.home {
  position: relative;
  overflow: hidden;
  background: url(../images/1.jpg) no-repeat top center;
  width: 100%;
  height: 100vh;
  perspective: 340px;
  background-color: #0c0d18;
}
/* 中间文字 */
.slogan {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  mix-blend-mode: screen;
}

.en {
  width: 1011px;
  height: 139px;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
  letter-spacing: 2px;
  margin-bottom: 53px;
  opacity: 0;
  animation: textIn 1.5s ease-out forwards;
}

/* 中文标语 */
.cn {
  margin: 0 auto;
  width: 793px;
  height: 120px;
  /* font-size: 2.5vw; */
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
  opacity: 0;
  animation: textIn 1.5s ease-out 0.3s forwards, glow 2s ease-in-out infinite;
}

/* 关键帧动画 */
@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes textIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(1.2);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
  }
  50% {
    text-shadow: 0 0 25px rgba(0, 210, 255, 0.9);
  }
}
.map {
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 0;
  margin: 0 auto;
  width: 1663px;
  margin-left: -831.5px; /* 1663/2=831.5 */
  height: 321px;
  background: url(../images/map.png) no-repeat top center;
  background-size: 100%;

  /* 新增动画相关属性 */
  opacity: 0;
  transform: translateY(50px); /* 初始下移量 */
  animation: mapReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes mapReveal {
  0% {
    opacity: 0;
    transform: translateY(50px); /* 从下方50px开始 */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* 上升到最终位置 */
  }
}
.map {
  animation-delay: 0.3s; /* 延迟出现 */
  transition: transform 0.6s ease-out; /* 添加滚动交互 */
}

/* 通过JS监听滚动添加类 */
.map.scrolled {
  transform: translateY(20px);
}
.map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  animation: maskFade 1s forwards;
}

@keyframes maskFade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
}
/* 手机 */
@media (max-width: 860px) {
  .mobile_home {
    position: relative;
    overflow: hidden;
    background: url(../images/mo_1.jpg) no-repeat top center;
    background-size: 100%;
    width: 100%;
    height: 100vh;
    /* perspective: 340px; */
    background-color: #0c0d18;
  }
  .titleCenter {
  }
  /* 中间文字 */
  .mobile_home .slogan {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;

    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    mix-blend-mode: screen;
  }

  .mobile_home .en {
    margin: 0 20px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
    letter-spacing: 2px;
    margin-bottom: 53px;
    opacity: 0;
    animation: textIn 1.5s ease-out forwards;
  }

  /* 中文标语 */
  .mobile_home .cn {
    margin: 0 80px;

    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    opacity: 0;
    animation: textIn 1.5s ease-out 0.3s forwards, glow 2s ease-in-out infinite;
  }

  /* 关键帧动画 */
  @keyframes rotate {
    from {
      transform: translate(-50%, -50%) rotate(0);
    }
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }

  @keyframes textIn {
    0% {
      opacity: 0;
      transform: translateY(30px) scale(1.2);
      filter: blur(10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes pulse {
    0%,
    100% {
      opacity: 0.6;
      transform: scale(1);
    }
    50% {
      opacity: 0.8;
      transform: scale(1.05);
    }
  }

  @keyframes glow {
    0%,
    100% {
      text-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    }
    50% {
      text-shadow: 0 0 25px rgba(0, 210, 255, 0.9);
    }
  }
  .mobile_home .map {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    background: url(/images/map2.png) no-repeat top center;
    background-size: 100%;

    /* 新增动画相关属性 */
    opacity: 0;
    transform: translateY(50px); /* 初始下移量 */
    animation: mapReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  @keyframes mapReveal {
    0% {
      opacity: 0;
      transform: translateY(50px); /* 从下方50px开始 */
    }
    100% {
      opacity: 1;
      transform: translateY(0); /* 上升到最终位置 */
    }
  }
  .mobile_home.map {
    animation-delay: 0.3s; /* 延迟出现 */
    transition: transform 0.6s ease-out; /* 添加滚动交互 */
  }

  /* 通过JS监听滚动添加类 */
  .mobile_home .map.scrolled {
    transform: translateY(20px);
  }
}