@charset "utf-8";
@import url(./var.css);

/* 动画 */
@keyframes debounce {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
  }
}

.page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 70%, #1a1a2e 100%);
  padding-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

/* 背景装饰 */
.page::before,
.page::after,
.page .bg-element-1,
.page .bg-element-2,
.page .bg-element-3 {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite;
}

.page::before {
  top: -30%;
  left: -20%;
  width: 60%;
  height: 60%;
  animation-delay: 0s;
}

.page::after {
  top: 50%;
  right: -10%;
  width: 40%;
  height: 40%;
  animation-delay: -8s;
  animation-duration: 30s;
}

.page .bg-element-1 {
  bottom: -20%;
  left: 10%;
  width: 30%;
  height: 30%;
  animation-delay: -16s;
  animation-duration: 22s;
}

.page .bg-element-2 {
  top: 20%;
  right: 20%;
  width: 20%;
  height: 20%;
  animation-delay: -4s;
  animation-duration: 18s;
}

.page .bg-element-3 {
  bottom: 30%;
  right: 30%;
  width: 15%;
  height: 15%;
  animation-delay: -12s;
  animation-duration: 28s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(15%, -15%) scale(1.1);
  }
  50% {
    transform: translate(5%, 10%) scale(0.9);
  }
  75% {
    transform: translate(-10%, 5%) scale(1.05);
  }
}

/* 光效 */
.page .light-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  animation: lightShift 15s ease-in-out infinite;
}

@keyframes lightShift {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }
  100% {
    transform: translateX(100%) translateY(100%);
  }
}

.wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 0.5rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-self: center;
  margin: 0.8rem 0 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 1.2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.logo-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.logo-wrap:hover {
  transform: translateY(-0.08rem);
  box-shadow: 0 0.3rem 1rem rgba(79, 172, 254, 0.2);
  border-color: rgba(79, 172, 254, 0.3);
}

.logo-wrap:hover::before {
  left: 100%;
}

.logo {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  box-shadow: 0 0.08rem 0.3rem rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  background-size: 200% auto;
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0.12rem 0.4rem rgba(79, 172, 254, 0.4);
  background-position: right center;
  animation: logoRotate 2s ease-in-out infinite;
}

@keyframes logoRotate {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.05) rotate(5deg);
  }
}

.logo-title {
  font-size: 0.42rem;
  font-weight: 800;
  color: #ffffff;
  margin-left: 0.25rem;
  text-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.4s ease;
}

.logo-title::after {
  content: '';
  position: absolute;
  bottom: -0.05rem;
  left: 0;
  width: 100%;
  height: 0.04rem;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-radius: 0.02rem;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.logo-wrap:hover .logo-title {
  color: #4facfe;
  text-shadow: 0 0.08rem 0.2rem rgba(79, 172, 254, 0.4);
}

.logo-wrap:hover .logo-title::after {
  transform: scaleX(1);
}

.download-button {
  width: 4.5rem;
  height: 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #4facfe 100%);
  background-size: 200% auto;
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 0.36rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0.2rem 0.8rem rgba(79, 172, 254, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.download-button::before,
.download-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
}

.download-button::after {
  animation-delay: -1.5s;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.download-button:active {
  opacity: 0.9;
  transform: scale(0.95);
  box-shadow: 0 0.15rem 0.4rem rgba(79, 172, 254, 0.6);
}

.download-button:hover {
  background-position: right center;
  box-shadow: 0 0.3rem 1.2rem rgba(79, 172, 254, 0.6);
  transform: translateY(-0.08rem);
}

.download-button:hover::before,
.download-button:hover::after {
  animation-duration: 2s;
}

/* 下载按钮脉冲效果 */
.download-button.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
  }
  70% {
    box-shadow: 0 0 0 1rem rgba(79, 172, 254, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
  }
}

.company {
  font-size: 0.32rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.3);
  margin-bottom: 0.8rem;
  text-align: center;
  letter-spacing: 0.06rem;
  position: relative;
  padding: 0 0.4rem;
}

.company::before,
.company::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0.6rem;
  height: 0.02rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateY(-50%);
}

.company::before {
  left: 0;
}

.company::after {
  right: 0;
}

.policy {
  margin: 0.6rem 0;
  font-size: 0.28rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  position: relative;
  transition: all 0.4s ease;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.policy::after {
  content: '';
  position: absolute;
  bottom: -0.05rem;
  left: 0;
  width: 100%;
  height: 0.04rem;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-radius: 0.02rem;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.policy:hover {
  color: #ffffff;
  transform: translateY(-0.05rem);
  background: rgba(79, 172, 254, 0.1);
  border-color: rgba(79, 172, 254, 0.3);
  box-shadow: 0 0.1rem 0.4rem rgba(79, 172, 254, 0.2);
}

.policy:hover::after {
  transform: scaleX(1);
}

/* 已安装提示 */
.open-tips {
  margin-top: 0.8rem;
  font-size: 0.34rem;
  font-weight: bold;
  line-height: 0.48rem;
  color: #4facfe;
  display: none;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 0.3rem;
  background: rgba(79, 172, 254, 0.1);
  border: 1px solid rgba(79, 172, 254, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 0.15rem 0.6rem rgba(79, 172, 254, 0.2);
  transition: all 0.4s ease;
}

.open-tips:hover {
  transform: translateY(-0.05rem);
  box-shadow: 0 0.2rem 0.8rem rgba(79, 172, 254, 0.3);
  background: rgba(79, 172, 254, 0.15);
}

.open-tips.show {
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(0.3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.browser-tips {
  font-size: 0.28rem;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06rem;
  display: none;
  text-align: center;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-tips.show {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 内容容器 */
.wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 0.8rem;
  position: relative;
  z-index: 10;
}

/* 页面加载动画 */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 1.2rem;
  height: 1.2rem;
  border: 0.15rem solid rgba(255, 255, 255, 0.1);
  border-top: 0.15rem solid #4facfe;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 0.5rem;
}

.loading-text {
  color: #ffffff;
  font-size: 0.32rem;
  font-weight: 500;
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-text {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* 元素进入动画 */
.animate-in {
  opacity: 0;
  transform: translateY(0.5rem);
  animation: animateIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }

@keyframes animateIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 微信环境提示 */

.tips {
  display: none;
  position: fixed;
  top: 0.3rem;
  right: 0.3rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 0.2rem;
  padding: 0.2rem 0.4rem;
  color: #fff;
  font-size: 0.3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.tips::before {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  top: -0.2rem;
  right: 0.4rem;
  display: block;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
  border-width: 0 0.2rem 0.2rem 0.2rem;
  filter: drop-shadow(0 -0.05rem 0.1rem rgba(0, 0, 0, 0.2));
}

.tips.show {
  display: block;
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tips.ani {
  animation: debounce 1s, slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%) translateY(-50%);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 0.1rem;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.05rem;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4facfe, #00f2fe);
  border-radius: 0.05rem;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00f2fe, #4facfe);
}

/* 文本选择效果 */
::selection {
  background: rgba(79, 172, 254, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(79, 172, 254, 0.3);
  color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 移动设备样式 */
  .app-swiper {
    width: 95%;
    margin: 0.5rem auto 0;
  }
  
  .download-button {
    width: 3.8rem;
    height: 0.9rem;
    font-size: 0.32rem;
  }
  
  .logo-wrap {
    margin: 0.6rem 0 0.4rem;
    padding: 0.25rem 0.5rem;
  }
  
  .logo {
    width: 0.9rem;
    height: 0.9rem;
  }
  
  .logo-title {
    font-size: 0.38rem;
  }
  
  .company {
    font-size: 0.28rem;
    margin-bottom: 0.6rem;
  }
  
  .policy {
    font-size: 0.24rem;
    margin: 0.4rem 0;
    padding: 0.08rem 0.25rem;
  }
  
  .open-tips {
    font-size: 0.3rem;
    margin-top: 0.6rem;
    padding: 0.15rem 0.4rem;
  }
  
  .browser-tips {
    font-size: 0.24rem;
    margin-top: 0.6rem;
    padding: 0.15rem 0.3rem;
  }
  
  .tips {
    top: 0.2rem;
    right: 0.2rem;
    font-size: 0.26rem;
    padding: 0.15rem 0.3rem;
  }
  
  .loading-spinner {
    width: 1rem;
    height: 1rem;
  }
  
  .loading-text {
    font-size: 0.28rem;
  }
  
  /* 减少背景元素数量，提升移动设备性能 */
  .page .bg-element-3 {
    display: none;
  }
  
  /* 简化动画，提升移动设备性能 */
  .page::before,
  .page::after,
  .page .bg-element-1,
  .page .bg-element-2 {
    animation-duration: 30s;
  }
  
  /* 关闭鼠标跟随效果，提升移动设备性能 */
  .mouse-follow {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* 平板设备样式 */
  .app-swiper {
    width: 85%;
    max-width: 600px;
  }
  
  .download-button {
    width: 4.2rem;
    height: 0.95rem;
  }
  
  .wrap {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (min-width: 1025px) {
  /* 桌面设备样式 */
  .app-swiper {
    width: 70%;
    max-width: 800px;
    margin: 1rem auto 0;
  }
  
  .wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .download-button {
    width: 4.8rem;
    height: 1.1rem;
    font-size: 0.38rem;
  }
  
  .logo-wrap {
    margin: 1rem 0 0.8rem;
    padding: 0.35rem 0.7rem;
  }
  
  .logo {
    width: 1.2rem;
    height: 1.2rem;
  }
  
  .logo-title {
    font-size: 0.48rem;
    margin-left: 0.3rem;
  }
  
  .company {
    font-size: 0.36rem;
    margin-bottom: 1rem;
  }
  
  .policy {
    font-size: 0.3rem;
    margin: 0.8rem 0;
    padding: 0.15rem 0.4rem;
  }
  
  .open-tips {
    font-size: 0.38rem;
    margin-top: 1rem;
    padding: 0.25rem 0.7rem;
  }
  
  .browser-tips {
    font-size: 0.32rem;
    margin-top: 1rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* 增强桌面设备的视觉效果 */
  .page::before,
  .page::after,
  .page .bg-element-1,
  .page .bg-element-2,
  .page .bg-element-3 {
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  }
  
  /* 增强轮播图效果 */
  .swiper-slide {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* 横屏适配 */
@media (orientation: landscape) {
  .app-swiper {
    max-height: 60vh;
  }
  
  .app-swiper img,
  .app-swiper video {
    height: 100%;
    object-fit: cover;
  }
  
  .wrap {
    padding: 0 2rem;
  }
}

/* 高DPI屏幕适配 */
@media (-webkit-device-pixel-ratio: 2), (resolution: 192dpi) {
  .logo {
    border-width: 1px;
  }
  
  .download-button,
  .policy,
  .open-tips,
  .browser-tips {
    border-width: 0.5px;
  }
}

/* swiper */
.app-swiper {
  width: 92%;
  margin: 0.8rem auto 0;
  border-radius: 0.3rem;
  overflow: hidden;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.app-swiper img, .app-swiper video {
  width: 100%;
  border-radius: 0.3rem;
  transition: transform 0.5s ease;
}

.app-swiper img:hover, .app-swiper video:hover {
  transform: scale(1.02);
}

.swiper-pagination-placeholder {
  height: 0.8rem;
  background: transparent;
}

/* 轮播图导航美化 */
.swiper-pagination {
  bottom: 0.3rem !important;
}

.swiper-pagination-bullet {
  width: 0.14rem;
  height: 0.14rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  margin: 0 0.08rem !important;
  opacity: 1;
  transition: all 0.3s ease;
  box-shadow: 0 0.02rem 0.06rem rgba(0, 0, 0, 0.2);
}

.swiper-pagination-bullet-active {
  width: 0.4rem;
  height: 0.14rem;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-radius: 0.07rem;
  box-shadow: 0 0.04rem 0.12rem rgba(79, 172, 254, 0.6);
  transform: translateY(-0.02rem);
}

.swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
  box-shadow: 0 0.03rem 0.09rem rgba(0, 0, 0, 0.3);
}

/* 轮播图过渡效果 */
.swiper-slide {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide-prev,
.swiper-slide-next {
  opacity: 0.7;
  transform: scale(0.95);
}

.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}
