/* 响应式设计样式 */

/* 基础响应式设置 */
img {
  max-width: 100%;
  height: auto;
}

/* 气泡标签位置修复 */
.banner-title {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

/* 响应式气泡标签 */
.responsive-label {
  position: absolute;
  z-index: 2;
  transform-origin: top right;
}

.responsive-label img {
  display: block;
  max-width: none;
}

.responsive-label span {
  position: absolute;
  white-space: nowrap;
  text-align: center;
  font-weight: 700;
  width: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform-origin: center;
}

/* 懒加载图片样式 */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* 下载按钮图标处理 */
.download-item a img {
  width: auto;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}

/* 特性列表图标处理 */
.header-content ul li a img {
  transition: transform 0.3s ease;
}

.header-content ul li:hover a img {
  transform: scale(1.1);
}

/* 移动设备上的图标优化 */
@media screen and (max-width: 767px) {
  .header-content ul li a img {
    width: 40px;
    height: auto;
  }
  
  .download-item a img {
    height: 20px;
  }
}

.width_1200,
.header-top,
.header-content,
.format-img-box,
.intro-item,
.scen-content {
  width: 100%;
  max-width: 1200px;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* 性能优化 - 移动端减少不必要的动画效果，提高性能 */
.mobile-device .banner-h1 h1,
.mobile-device .banner-p1,
.mobile-device .banner-label {
  will-change: auto !important; /* 移除 will-change 优化性能 */
  transform: none !important;
  transition: none !important;
}

/* 优化动画效果 - 移动端使用更轻量的动画 */
.mobile-device .header-content ul li:hover {
  transform: none !important;
}

.mobile-device .intro-img img:nth-child(2) {
  display: none !important; /* 隐藏背景动画图片提升性能 */
}

/* 移动导航菜单 */
.mobile-menu-button {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  z-index: 1000;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu-button span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
  padding-top: 70px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu.active a {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.2s;
}

.mobile-menu a:nth-child(2) {
  transition-delay: 0.1s;
}

.mobile-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 平板设备 (768px 到 991px) */
@media screen and (max-width: 991px) {
  html, body {
    min-width: auto !important;
    overflow-x: hidden;
  }
  
  .mobile-menu-button {
    display: flex;
  }
  
  .header-right {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .header-box {
    height: auto;
    min-height: 100vh;
  }
  
  .header-content {
    height: auto;
    padding-bottom: 50px;
  }
  
  .banner-h1 h1 {
    font-size: 60px;
    line-height: 70px;
  }
  
  /* 修复气泡标签位置 */
  .banner-label {
    right: -40px;
    top: -20px;
    transform: scale(0.8);
  }
  
  .banner-label img {
    width: 100%;
    height: auto;
  }
  
  .banner-label span {
    font-size: 14px;
    left: 11px;
    top: 9px;
  }
  
  .header-content ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 40px;
  }
  
  .header-content ul li {
    margin-right: 30px;
    margin-bottom: 20px;
  }
  
  .header-content .download-box {
    flex-direction: column;
  }
  
  .header-content .download-box a,
  .format-box .download-box a,
  .bottom-download-box .download-box a {
    width: 280px;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .intro-item {
    flex-direction: column;
  }
  
  .intro-item:nth-child(2n) .intro-text {
    order: 1;
  }
  
  .intro-item:nth-child(2n) .intro-img {
    order: 2;
  }
  
  .intro-text {
    margin-bottom: 30px;
  }
  
  .intro-item:nth-child(2n) .intro-text p,
  .intro-item:nth-child(2n+1) .intro-text p {
    width: 100%;
    text-align: center;
  }
  
  .intro-item:nth-child(2n) .intro-text h1 {
    text-align: center;
  }
  
  .intro-item:nth-child(2n) .intro-text ul {
    justify-content: center;
  }
  
  .scen-content {
    flex-direction: column;
  }
  
  .scen-left, .scen-right {
    margin-bottom: 30px;
  }
  
  .scen-top, .scen-bottom {
    margin-bottom: 30px;
  }
}

/* 移动设备 (小于 768px) */
@media screen and (max-width: 767px) {
  .header-left h1 {
    font-size: 16px;
  }
  
  .header-right .download-box a {
    width: 140px;
    height: 36px;
    font-size: 14px;
  }
  
  .banner-h1 h1 {
    font-size: 40px;
    line-height: 50px;
  }
  
  /* 进一步修复气泡标签位置 */
  .banner-label {
    right: -30px;
    top: -15px;
    transform: scale(0.7);
  }
  
  .banner-label span {
    font-size: 12px;
    left: 10px;
    top: 8px;
  }
  
  .banner-p1 span {
    font-size: 18px;
    line-height: 24px;
    margin: 0 10px;
  }
  
  .banner-p1 i {
    width: 60px;
  }
  
  .header-content ul li {
    margin-right: 15px;
  }
  
  .header-content ul li a img {
    width: 40px;
    height: 40px;
  }
  
  .header-content ul li a h2 {
    font-size: 16px;
  }
  
  .header-content .download-box a,
  .format-box .download-box a,
  .bottom-download-box .download-box a {
    width: 240px;
    height: 60px;
    font-size: 18px;
  }
  
  .intro-title h1,
  .intro-item:nth-child(2n+1) .intro-text h1,
  .intro-item:nth-child(2n) .intro-text h1 {
    font-size: 28px;
    line-height: 36px;
    text-align: center;
  }
  
  .intro-text ul li {
    font-size: 16px;
    margin-right: 10px;
    padding: 6px 8px;
  }
  
  .scen-top, .scen-bottom {
    flex-direction: column;
  }
  
  .scen-top .scen-top-item:nth-child(1),
  .scen-top .scen-top-item:nth-child(2),
  .scen-bottom .scen-bottom-item:nth-child(1),
  .scen-bottom .scen-bottom-item:nth-child(2) {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .bottom-download-title h1 {
    font-size: 32px;
    line-height: 40px;
  }
  
  .bottom-download-p1 span {
    font-size: 20px;
    line-height: 28px;
  }
  
  .footer-box {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }
  
  .footer-box i {
    display: none;
  }
  
  .footer-box span {
    margin-bottom: 10px;
  }
}

/* 特小屏幕设备 (小于 480px) */
@media screen and (max-width: 479px) {
  .banner-h1 h1 {
    font-size: 32px;
    line-height: 40px;
  }
  
  /* 特小屏幕气泡标签位置 */
  .banner-label {
    right: -20px;
    top: -10px;
    transform: scale(0.6);
  }
  
  .banner-label span {
    font-size: 11px;
    left: 9px;
    top: 7px;
  }
  
  .banner-p1 {
    height: auto;
    padding: 15px 0;
  }
  
  .banner-p1 i {
    width: 40px;
  }
  
  .header-content ul {
    flex-wrap: wrap;
  }
  
  .header-content ul li {
    width: 40%;
    margin-bottom: 15px;
  }
  
  .common-a {
    width: 200px;
    height: 50px;
    font-size: 15px;
  }
} 

/* 超小屏幕设备 (小于 375px) */
@media screen and (max-width: 374px) {
  .banner-h1 h1 {
    font-size: 28px;
    line-height: 36px;
  }
  
  /* 超小屏幕气泡标签位置 */
  .banner-label {
    right: -15px;
    top: -8px;
    transform: scale(0.5);
  }
  
  .banner-label span {
    font-size: 10px;
    left: 8px;
    top: 6px;
  }
  
  .header-content ul li {
    width: 45%;
    margin-right: 8px;
  }
  
  .header-content ul li a h2 {
    font-size: 14px;
  }
}

/* 添加深色模式支持 */
@media (prefers-color-scheme: dark) {
  .mobile-menu-button {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .mobile-menu-button span {
    background-color: #000;
  }
  
  .mobile-menu {
    background-color: rgba(255, 255, 255, 0.9);
  }
  
  .mobile-menu a {
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .mobile-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
} 