/* ========================================
   响应式样式 - LED散热器官网
   ======================================== */

/* ---- 超大屏 ≥1400px ---- */
@media (min-width: 1400px) {
  .hero-title { font-size: 4rem; }
  .section-title { font-size: 2.3rem; }
}

/* ---- 大屏 1200-1399px ---- */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-title { font-size: 3.2rem; }
}

/* ---- 中屏 992-1199px ---- */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-title { font-size: 2.8rem; }
  .stat-num { font-size: 2.5rem; }
}

/* ---- 平板 768-991px ---- */
@media (min-width: 768px) and (max-width: 991px) {
  #heroCarousel { margin-top: 65px; }
  .hero-slide { height: 70vh; min-height: 500px; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat .num { font-size: 1.6rem; }
  .section-pad { padding: 60px 0; }
  .section-title { font-size: 1.75rem; }
  .stat-num { font-size: 2.2rem; }
  .product-gallery { position: static; }
}

/* ---- 手机 <768px ---- */
@media (max-width: 767px) {
  #mainNav { padding: .6rem 0; }
  #heroCarousel { margin-top: 62px; }

  .hero-slide {
    height: auto;
    min-height: 100svh;
    max-height: none;
  }

  .hero-content { padding: 3rem 0 2rem; align-items: flex-start; padding-top: 6rem; }
  .hero-title { font-size: 1.9rem; margin-bottom: .9rem; }
  .hero-desc { font-size: .9rem; }

  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero-stat .num { font-size: 1.5rem; }
  .hero-stat .label { font-size: .7rem; }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    width: 100%;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }

  .carousel-control-prev { left: .75rem; }
  .carousel-control-next { right: .75rem; }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .section-pad { padding: 50px 0; }
  .section-pad-sm { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }

  .stat-num { font-size: 2rem; }
  .stat-item { padding: 1.2rem .5rem; }

  .product-card { margin-bottom: 1rem; }

  .feature-card { padding: 1.5rem 1rem; }
  .feature-icon { width: 60px; height: 60px; font-size: 1.5rem; }

  #footer { padding: 50px 0 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  #backToTop { bottom: 1.2rem; right: 1.2rem; }

  .breadcrumb-section { padding: 2.5rem 0; margin-top: 62px; }
  .breadcrumb-section h1 { font-size: 1.4rem; }

  .gallery-thumbs { justify-content: center; }
  .product-gallery { position: static; }

  .product-detail-title { font-size: 1.3rem; }

  .contact-info-card { padding: 1.8rem 1.2rem; }
  .testimonial-card { padding: 1.5rem; }
}

/* ---- 小手机 <576px ---- */
@media (max-width: 575px) {
  .hero-title { font-size: 1.6rem; }
  .hero-badge { font-size: .72rem; }

  .hero-stats { gap: .75rem; }
  .hero-stat .num { font-size: 1.3rem; }

  .section-title { font-size: 1.3rem; }

  .navbar-brand .brand-text strong { font-size: .9rem; }
  .navbar-brand .brand-text span { display: none; }

  .partner-logo { padding: .75rem 1rem; font-size: .8rem; height: 60px; }
}

/* ---- 打印 ---- */
@media print {
  #mainNav, #footer, #backToTop,
  .carousel-control-prev, .carousel-control-next,
  .carousel-indicators { display: none !important; }

  body { font-size: 12pt; }
  .hero-slide { height: auto; page-break-after: always; }
  .product-card, .feature-card { break-inside: avoid; }
}

/* ---- 无障碍/高对比 ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .hero-bg { transition: none; }
}

@media (prefers-contrast: high) {
  :root {
    --primary: #003580;
    --accent: #c05500;
  }
  .product-card, .feature-card, .news-card {
    border: 2px solid var(--dark);
  }
}
