/* ============================================
   响应式样式 - 适配平板和移动端
   ============================================ */

/* Tablet Landscape (<=1200px) */
@media (max-width: 1200px) {
  :root {
    --container-width: 100%;
  }

  .banner-content {
    left: 60px;
    max-width: 600px;
  }

  .banner-title {
    font-size: 48px;
  }

  .about-inner,
  .rd-inner,
  .solutions-content {
    gap: 40px;
  }

  .about-image,
  .rd-content {
    flex: 0 0 480px;
    width: 480px;
  }

  .solutions-image {
    flex: 0 0 480px;
    width: 480px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait (<=992px) */
@media (max-width: 992px) {
  .banner-content {
    left: 32px;
    right: 32px;
    max-width: none;
  }

  .banner-title {
    font-size: 40px;
  }

  .banner-subtitle {
    font-size: 20px;
  }

  .banner-desc {
    font-size: 16px;
  }

  .section-title {
    font-size: 30px;
  }

  .about-inner {
    flex-direction: column;
  }

  .about-image {
    flex: none;
    width: 100%;
    height: 400px;
  }

  .rd-inner {
    flex-direction: column;
  }

  .rd-content {
    flex: none;
    width: 100%;
  }

  .rd-image {
    width: 100%;
    height: 400px;
  }

  .solutions-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .solutions-content {
    flex-direction: column;
  }

  .solutions-image {
    flex: none;
    width: 100%;
    height: 300px;
  }

  .solutions-info {
    padding-top: 0;
  }

  .solutions-info h3 {
    font-size: 24px;
  }

  .solutions-info p {
    font-size: 16px;
  }

  .dynamics-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 20px;
  }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
  .site-header {
    height: 60px;
  }

  .header-inner {
    height: 60px;
  }

  .logo img {
    height: 50px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .site-header.header-transparent  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    color: #333;
  }
  .site-header.header-transparent .nav-link:hover, .site-header.header-transparent .nav-link.active {
    color: var(--primary);
  }

  .nav-link::after {
    display: none;
  }

  .banner-section {
    /* margin-top: 60px; */
    /*min-height: 500px;*/
  }

  .banner-title {
    font-size: 32px;
  }

  .banner-subtitle {
    font-size: 18px;
  }

  .banner-desc {
    font-size: 14px;
  }

  .section {
    padding: 20px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .about-image {
    height: 280px;
  }

  .about-item h4 {
    font-size: 18px;
  }

  .about-item p {
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card-img {
    height: 200px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card h3 {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .news-card p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .rd-image {
    height: 300px;
  }

  .rd-item h4 {
    font-size: 18px;
  }

  .rd-item p {
    font-size: 14px;
  }

  .solutions-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .solutions-tab {
    height: 48px;
    font-size: 14px;
  }

  .solutions-image {
    height: 240px;
  }

  .solutions-info h3 {
    font-size: 22px;
  }

  .solutions-info p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .knowledge-card-cover {
    height: 200px;
  }

  .knowledge-card-cover img {
    width: 60px;
    height: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .container {
    padding: 0 16px;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .header-inner {
    padding: 0 16px;
  }
}

/* Small Mobile (<=480px) */
@media (max-width: 480px) {
  .banner-title {
    font-size: 26px;
  }

  .banner-subtitle {
    font-size: 16px;
  }

  .banner-content {
    left: 16px;
    right: 16px;
  }

  .section-title {
    font-size: 22px;
  }

  .about-image {
    height: 220px;
  }

  .product-card-body {
    padding: 20px;
  }

  .product-card-body h3 {
    font-size: 18px;
  }

  .news-card {
    padding: 20px;
  }

  .dynamics-card {
    padding: 20px;
  }

  .solutions-tabs {
    grid-template-columns: 1fr;
  }

  .solutions-tab {
    height: 44px;
    font-size: 13px;
  }
}
