/* 移动端响应式设计优化 - 增强版媒体查询 */

/* 平板设备 (768px-980px) */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid, .form-layout, .cta-box { 
    grid-template-columns: 1fr; 
    display: grid;
  }
  
  /* 优势卡片平板适配 */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
  
  .advantage-card {
    min-height: 260px;
  }
  
  .advantage-image {
    height: 180px;
    margin: -20px -20px 16px -20px;
  }
  
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  
  .nav { gap: 14px; }
  .nav-wrap { flex-wrap: wrap; justify-content: center; }
  
  .hero { padding: 60px 0 40px; }
  .hero-grid { gap: 30px !important; }
  
  .image-carousel { 
    width: 100% !important; 
    height: 300px !important; 
  }
  .carousel-track, .carousel-slide { height: 300px !important; }
  .carousel-slide img { height: 300px !important; }
  
  .logo-en { font-size: 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; text-align: center; }
}

/* 小手机设备 (576px-768px) */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  
  .logo-cn { font-size: 16px; letter-spacing: 1px; }
  .logo-content { gap: 8px; }
  .logo-icon { width: 40px; height: 40px; }
  
  .nav { 
    justify-content: center; 
    gap: 10px;
    margin-top: 10px;
  }
  .nav a { font-size: 14px; }
  
  .section { padding: 50px 0; }
  .card { padding: 20px; }
  .cta-box { padding: 24px; }
  .direction-image-full {
    max-height: 250px;   /* 增加高度 */
    min-height: 160px;
  }
  .services-image {
    width: 90%;  /* 小手机设备上增大 */
  }
  .cta-section {
    padding: 30px 0;  /* 在小手机设备上减少内边距 */
  }
  
  .space-icon { width: 40px; height: 40px; }
  
  .carousel-dots { bottom: 10px; }
  .slide-caption { bottom: 8px !important; padding: 10px 16px; }
  .slide-caption h3 { font-size: 18px; margin-bottom: 4px; }
  .slide-caption p { font-size: 12px; }
  
  input, select, textarea { padding: 10px 12px; }
}

/* 超小手机设备 (<576px) */
@media (max-width: 576px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 16px; }
  
  .logo-cn { font-size: 14px; }
  .logo-en { font-size: 9px; }
  .logo-text { display: none; }
  .logo-content { gap: 6px; }
  .logo-icon { width: 36px; height: 36px; }
  
  .nav { 
    gap: 8px; 
    margin-top: 5px;
  }
  .nav a { font-size: 12px; padding: 4px 6px; }
  
  .hero { padding: 40px 0 30px; }
  .hero-slogan { font-size: 16px; margin-bottom: 16px; }
  .hero-intro { font-size: 14px; }
  
  .image-carousel { height: 200px !important; }
  .carousel-track, .carousel-slide { height: 200px !important; }
  .carousel-slide img { height: 200px !important; }
  
  .slide-caption { bottom: 5px !important; padding: 8px 12px; }
  .slide-caption h3 { font-size: 14px; }
  .slide-caption p { font-size: 11px; }
  
  .space-icon { width: 30px; height: 30px; }
  .card h3 { gap: 8px; }
  
  .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  
.section { padding: 40px 0; }
  .direction-image-full {
    max-height: 200px;   /* 增加高度 */
    min-height: 140px;
  }
  .services-image {
    width: 95%;  /* 超小手机设备上接近满宽 */
    border-radius: 10px;
  }
  .cta-section {
    padding: 25px 0;  /* 在超小手机设备上进一步减少内边距 */
  }

  /* 优势卡片手机端适配 */
  .advantage-cards {
    gap: 12px;
  }
  
  .advantage-card {
    min-height: 240px;
  }
  
  .advantage-content h3 {
    font-size: 18px;
  }
  
  .advantage-content p {
    font-size: 14px;
  }

  .btn { padding: 10px 18px; font-size: 14px; }
}

/* 横向手机模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 30px 0; }
  .image-carousel { height: 250px !important; }
  .carousel-track, .carousel-slide { height: 250px !important; }
  .carousel-slide img { height: 250px !important; }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1400px) {
  .container { width: min(1300px, calc(100% - 60px)); }
  h1 { font-size: 42px; }
  h2 { font-size: 36px; }
}

/* 打印样式优化 */
@media print {
  .site-header, .site-footer, .hero-actions, .image-carousel { display: none !important; }
  body { background: white; color: black; }
  .container { width: 100%; max-width: 100%; }
}