/* ========================================
   响应式样式
   ======================================== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
  :root {
    --container-width: 100%;
  }

  .nav-menu > li > a {
    padding: 0 12px;
    font-size: 14px;
  }

  .banner {
    height: 400px;
  }

  .banner-slide .slide-content h2 {
    font-size: 32px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .about-content.active {
    flex-direction: column;
  }
}

/* 移动设备 (< 768px) */
@media screen and (max-width: 768px) {
  .top-bar .slogan {
    display: none;
  }

  /* 移动端导航 */
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--top-bar-height) + var(--header-height));
    left: 0;
    width: 100%;
    background-color: var(--color-bg-white);
    flex-direction: column;
    box-shadow: 0 4px 12px var(--color-shadow);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu > li > a {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu > li > a::after {
    display: none;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background-color: var(--color-bg-light);
  }

  .dropdown.show {
    display: block;
  }

  .dropdown li a {
    padding-left: 40px;
  }

  /* Banner */
  .banner {
    height: 300px;
  }

  .banner-slide .slide-content h2 {
    font-size: 24px;
  }

  .banner-slide .slide-content p {
    font-size: 14px;
  }

  .banner-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .banner-btn.prev {
    left: 10px;
  }

  .banner-btn.next {
    right: 10px;
  }

  /* 通用区块 */
  .section {
    padding: 40px 0;
  }

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

  /* 关于我们 */
  .about-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .about-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .about-content.active {
    padding: 20px;
  }

  /* 产品 */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card .card-image {
    height: 140px;
  }

  .product-card .card-info {
    padding: 12px;
  }

  .product-card .card-info h3 {
    font-size: 14px;
  }

  /* 数据 */
  .stats-section {
    padding: 30px 0;
  }

  .stat-item .stat-number {
    font-size: 32px;
  }

  .stat-item .stat-label {
    font-size: 12px;
  }

  /* 新闻 */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-card {
    display: flex;
  }

  .news-card .news-image {
    width: 120px;
    min-width: 120px;
    height: auto;
  }

  /* 页脚 */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-col h4 {
    font-size: 15px;
  }

  /* 内页Banner */
  .page-banner {
    height: 180px;
  }

  .page-banner h1 {
    font-size: 24px;
  }

  /* 产品列表页 */
  .product-filters {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 12px;
  }

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

  /* 新闻列表页 */
  .news-list-item {
    flex-direction: column;
  }

  .news-list-item .news-thumb {
    width: 100%;
    height: 180px;
  }

  /* 联系我们 */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form {
    padding: 20px;
  }

  /* 关于我们页 */
  .timeline {
    padding-left: 20px;
  }

  .timeline-item {
    padding-left: 25px;
  }

  .timeline-item::before {
    left: 0;
  }

  .honors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* 小屏移动设备 (< 480px) */
@media screen and (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

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

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

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