/* 响应式设计 - 让页面根据屏幕大小自动缩放 */

/* 大屏幕优化 (1920px以上) */
@media screen and (min-width: 1920px) {
  .logo_left {
    margin-left: 10%;
  }
  
  .content {
    right: 5%;
  }
  
  .banner {
    background-size: cover;
  }
  
  .context {
    width: 70%;
  }
  
  .tab1, .tab2 {
    width: 70%;
  }
  
  .footer-box {
    width: 70%;
  }
}

/* 超大屏幕优化 (2560px以上) */
@media screen and (min-width: 2560px) {
  .logo_left {
    margin-left: 15%;
  }
  
  .content {
    right: 10%;
  }
  
  .context {
    width: 75%;
  }
  
  .tab1, .tab2 {
    width: 75%;
  }
  
  .footer-box {
    width: 75%;
  }
  
  .carousel-container {
    transform: scale(1.2);
  }
}

/* 中等屏幕优化 (1366px-1919px) */
@media screen and (max-width: 1366px) {
  .logo_left {
    margin-left: 5%;
  }
  
  .content {
    right: 3%;
    width: 30%;
  }
  
  .context {
    width: 80%;
  }
  
  .tab1, .tab2 {
    width: 80%;
  }
  
  .footer-box {
    width: 80%;
  }
  
  .banner {
    height: 500px;
  }
  
  .carousel-container {
    transform: scale(0.9);
  }
}

/* 小屏幕优化 (1024px-1365px) */
@media screen and (max-width: 1024px) {
  .logo_left {
    margin-left: 3%;
  }
  
  .logo_left img {
    width: 60px;
    height: 60px;
  }
  
  .logo_left span {
    font-size: 24px;
  }
  
  .content {
    right: 2%;
    width: 35%;
  }
  
  .context {
    width: 90%;
    margin-top: 250px;
  }
  
  .tab1, .tab2 {
    width: 90%;
  }
  
  .footer-box {
    width: 90%;
    flex-direction: column;
  }
  
  .banner {
    height: 450px;
  }
  
  .carousel-container {
    transform: scale(0.8);
    right: -50px;
  }
  
  .context-box {
    flex-direction: column;
  }
  
  .context-img {
    margin-bottom: 30px;
  }
  
  .nav {
    display: none;
  }
}

/* 图片加载优化 */
img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.3s ease-in-out;
}

/* 图片加载时的占位符 */
img[src=""] {
  background-color: #f0f0f0;
  min-height: 100px;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 性能优化 - 硬件加速 */
.banner, .carousel-container, .context, .tab1, .tab2, .footer {
  transform: translateZ(0);
  will-change: transform;
}

/* 减少重绘和重排 */
.logo, .nav {
  contain: layout style;
}
