/* ==========================================================================
   基础重置和公共样式
   ========================================================================== */
body, html { 
  margin: 0; 
  padding: 0; 
}

/* 默认隐藏PC和移动端容器 */
#app, #md-app { 
  display: none; 
}

/* 隐藏类 */
.hide { 
  display: none !important; 
}

/* ==========================================================================
   PC端样式
   ========================================================================== */
#app .bg img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

#app .main {
  text-align: center;
  padding: 20px;
}

#app .slogan {
  font-size: 18px;
  margin: 10px 0;
  font-weight: bold;
  color: #333;
}

#app .btn {
  margin-top: 20px;
}

#app .btn img {
  cursor: pointer;
  margin: 0 10px;
  transition: transform 0.2s ease;
}

#app .btn img:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   移动端样式
   ========================================================================== */
#md-app .swiper {
  margin-top: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#md-app .btn {
  text-align: center;
  padding: 15px 0;
}

#md-app .btn .down {
  cursor: pointer;
  max-width: 80%;
  margin: 0 auto;
  display: block;
}

/* ==========================================================================
   轮播图样式 - 满屏显示
   ========================================================================== */
.swiper-container {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  position: relative;
  /* 触摸优化 */
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* 硬件加速 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
}

.swiper-wrapper {
  width: 100% !important;
  height: 100% !important;
  /* 硬件加速 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.swiper-slide {
  width: 100% !important;
  height: 100% !important;
  position: relative;
  overflow: hidden;
  /* 硬件加速 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.swiper-slide-bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.swiper-pagination-bullet-active {
  background-color: #ff69b4 !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #ff69b4 !important;
}

/* ==========================================================================
   在线客服
   ========================================================================== */
.kf { 
  position: fixed; 
  top: 30%; 
  right: 5px; 
  animation: kf 2s infinite; 
  z-index: 999; 
}

.kf img { 
  width: 100px; 
}

/* 旧的复制按钮样式已移除，使用新的布局样式 */

/* ==========================================================================
   隐藏轮播图导航按钮
   ========================================================================== */
.swiper-button-prev,
.swiper-button-next {
  display: none !important;
}

/* ==========================================================================
   新布局样式
   ========================================================================== */

/* 顶部Logo区域已移除 */

/* 左上角Logo */
.top-logo {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 999;
  width: 80px;
  height: 80px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 轮播图区域 */
.carousel-section {
  height: 100vh; /* 铺满整个页面 0-100% */
  width: 100%;
  position: relative;
}

.carousel-section .swiper {
  height: 100%;
  width: 100%;
}

.carousel-section .swiper-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 底部信息区域 */
.info-section {
  height: 0; /* 隐藏底部信息区域，因为不需要了 */
  background: white;
  display: none; /* 完全隐藏 */
  flex-direction: column;
  margin-bottom: 0; /* 移除底部边距 */
}

/* 下载按钮区域已移除 */

/* 下载图标样式 */
.download-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 复制信息区域 - 底部浮动 */
.copy-info-row {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  height: 80px;
  padding: 10px 15px;
  box-sizing: border-box;
}

.copy-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
  margin: 0 2px;
  border: 2px solid #39a5db;
  border-radius: 8px;
  padding: 5px;
  height: 100%;
  box-sizing: border-box;
}

/* 移除这个规则，让所有按钮都有完整的边框 */

.copy-item:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  animation-play-state: paused;
  border-color: #2980b9;
}

.copy-item:hover .copy-value,
.copy-item:hover .copy-label {
  color: #000;
}

/* 中间下载按钮悬停效果 */
#copy-download:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.1);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-color: #2980b9;
}

#copy-download:hover .copy-value,
#copy-download:hover .copy-label {
  color: #000;
}

/* 移除旧的边框样式，使用彩虹边框 */

.copy-value {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 2px;
}

.copy-label {
  font-size: 11px;
  color: #000;
  text-align: center;
  line-height: 1.1;
}

/* 中间下载按钮区域 */
#copy-download {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid #39a5db;
  border-radius: 8px;
  animation: downloadPulse 2s ease-in-out infinite;
  padding: 8px 5px;
  position: relative;
}

#copy-download .copy-value,
#copy-download .copy-label {
  color: #000;
  animation: downloadTextPulse 2s ease-in-out infinite;
}

/* 下载按钮脉冲动画 */
@keyframes downloadPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 下载按钮文字脉冲动画 */
@keyframes downloadTextPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   移动端注册教程按钮
   ========================================================================== */
#iosshow {
  z-index: 999999;
  display: none;
  position: fixed;
  left: 3%;
  top: 51%;
  transform: translateY(-50%);
  background-color: #007bffba;
  color: #fff;
  pointer-events: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-image: url('./static/image/zc.gif');
  background-size: 100% auto;
  background-position: center;
  border: none;
}

/* ==========================================================================
   弹窗样式
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 90%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 0.9;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 80%;
  max-width: none;
  text-align: center;
  border-radius: 30px;
  overflow: hidden;
  position: absolute;
  top: 20px;
  bottom: 100px;
  left: 10%;
  right: 10%;
  height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 30px;
}

#exit-popup, #overlay {
  display: none;
}

/* ==========================================================================
   响应式媒体查询
   ========================================================================== */

/* 平板与桌面设备 (750px+) */
@media screen and (min-width: 750px) {
  .kf {
    top: 15px;
    left: 500px;
    transform: none;
  }
  
  /* 针对平板设备的优化 */
  #md-app .btn .down {
    max-width: 60%;
  }
}

/* 大屏设备 (1200px+) */
@media screen and (min-width: 1200px) {
  #app .main {
    padding: 30px;
  }
  
  #app .slogan {
    font-size: 24px;
    margin: 20px 0;
  }
}

/* 移动设备横屏优化 */
@media screen and (max-height: 500px) and (orientation: landscape) {
  #iosshow {
    top: 70%;
  }
  
  .qyid {
    top: 60%;
  }
}

/* 小屏设备轮播图优化 (750px以下) */
@media screen and (max-width: 750px) {
  /* 确保轮播图区域铺满整个页面 */
  .carousel-section {
    height: 100vh !important;
  }
  
  .swiper-container,
  .swiper-slide,
  .swiper-slide-bg {
    width: 100% !important;
    height: 100% !important;
  }
  
  .swiper-slide-bg {
    object-fit: fill !important;
  }
  
  /* 确保底部浮动按钮正确显示 */
  .copy-info-row {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 80px !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
  }
}

/* 大屏设备轮播图优化 (751px以上) */
@media screen and (min-width: 751px) {
  #md-app .swiper {
    width: 100%;
    height: 100%;
  }
  
  .swiper-container,
  .swiper-slide,
  .swiper-slide-bg {
    width: 100% !important;
    height: 100% !important;
  }
  
  .swiper-slide-bg {
    object-fit: fill !important;
  }
}