/* ==========================================================================
   官网模板 - 响应式规则 (responsive.css)
   适配 移动端、平板、笔记本与大屏设备
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
  }

  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border-color);
  }

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

  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .top-bar {
    display: none; /* Hide top bar on mobile for clean header */
  }

  .header-inner {
    height: 66px;
  }

  .brand-logo img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-name small {
    display: none;
  }

  /* Mobile Navigation Drawer */
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 8px;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
  }

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

  .header-action {
    display: none;
  }

  /* Hero adjustments */
  .hero-slide {
    min-height: 420px;
  }

  .hero-content {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .stats-banner {
    margin-top: 20px;
    padding: 20px;
  }

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

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

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

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

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .floating-bar {
    right: 16px;
    bottom: 20px;
  }

  .float-btn {
    width: 44px;
    height: 44px;
  }
}

/* Small Screens (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .btn-primary, .btn-outline {
    width: 100%;
  }

  .product-content {
    padding: 20px;
  }

  .contact-info-card, .contact-form-card {
    padding: 24px;
  }
}
