/* ============================================================
   Responsive
   ============================================================ */

.menu-toggle {
  display: none;
  flex-direction: column; justify-content: space-between;
  width: 28px; height: 22px; background: none; border: none;
  cursor: pointer; padding: 0;
}
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--color-text); transition: var(--transition); }
.mobile-nav { display: none; }
.mobile-bottom-nav { display: none; }

/* ============================================================
   平板 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .header-inner { height: 80px; gap: 16px; }
  .nav-left, .nav-right { gap: 20px; }
  .nav-left a, .nav-right a { font-size: 14px; }
  .logo img { height: 52px; }

  .hero .slide-caption h2 { font-size: 30px; }
  .hero .swiper { aspect-ratio: 16 / 7; }

  .product-feature { gap: 16px; }
  .product-feature .feature-list { gap: 16px; }

  .home-about .about-text { padding: 60px 40px; }
  .home-about .about-text h2 { font-size: 26px; }

  .home-stats .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .home-stats .stat-item .num { font-size: 34px; }

  .factory-feature-grid { gap: 12px; margin-bottom: 12px; }
  .factory-small-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .home-brands .brands-grid { grid-template-columns: repeat(4, 1fr); }

  .home-news .news-grid { gap: 16px; }
  .home-news .news-card { grid-template-columns: 70px 1fr 130px; gap: 16px; padding: 20px; }
  .home-news .news-card .date i { font-size: 28px; }
}

/* ============================================================
   手机 768px
   ============================================================ */
@media (max-width: 768px) {

  /* Header */
  .header-inner { height: 60px; padding: 0 16px; justify-content: space-between; flex-wrap: nowrap; }
  .logo { order: 0; width: auto; margin: 0; flex: 1; justify-content: flex-start; }
  .logo img { height: 40px; }
  .nav-left, .nav-right { display: none; }
  .menu-toggle { display: flex; }

  .mobile-nav {
    display: block; position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: #fff; padding: 20px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99; overflow-y: auto;
  }
  body.menu-open .mobile-nav { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .mobile-nav a {
    display: block; padding: 16px 0;
    font-size: 16px; color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
  }
  .mobile-nav a:hover { color: var(--color-primary); }
  .mobile-lang { margin-top: 20px; display: flex; gap: 16px; }
  .mobile-lang a { border: none; padding: 8px 16px; background: var(--color-bg); border-radius: var(--radius); text-align: center; }

  /* 底部固定导航 */
  .mobile-bottom-nav {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--color-border);
    z-index: 98; padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 8px rgba(0,0,0,.05);
  }
  .mobile-bottom-nav a {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 8px 0; font-size: 11px;
    color: var(--color-muted); gap: 3px;
    text-decoration: none;
  }
  .mobile-bottom-nav a:active,
  .mobile-bottom-nav a:hover { color: var(--color-primary); }
  body { padding-bottom: 60px; }

  /* Hero */
  .hero .swiper { aspect-ratio: 16 / 10; }
  .hero .slide-caption { left: 6%; right: 6%; max-width: none; }
  .hero .slide-caption h2 { font-size: 22px; margin-bottom: 8px; }
  .hero .slide-caption h2::before { width: 3px; margin-right: 8px; }
  .hero .slide-caption p { font-size: 13px; margin-bottom: 12px; }
  .hero .slide-caption .btn { padding: 8px 18px; font-size: 13px; }

  /* Section */
  .section { padding: 32px 0; }
  .section-title { font-size: 22px; margin-bottom: 16px; }
  .section-head { flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
  .section-head .more { font-size: 13px; padding: 6px 14px; }

  /* 产品：1 大 + 2 小 */
  .product-feature { grid-template-columns: 1fr; gap: 12px; }
  .product-feature .feature-main img { aspect-ratio: 4 / 3; }
  .product-feature .feature-list { gap: 12px; }
  .product-feature .feature-list a:first-child { grid-column: auto; }
  .product-feature .caption { padding: 12px; }
  .product-feature .caption h4 { font-size: 14px; }
  .product-feature .caption span { font-size: 12px; }

  /* 标语 */
  .home-slogan { padding: 40px 16px; }
  .home-slogan h2 { font-size: 20px; letter-spacing: 2px; }
  .home-slogan span { height: 32px; margin-top: 16px; }

  /* 关于我们：上下分 */
  .home-about {
    grid-template-columns: 1fr;
    align-items: start;
    background: #fff;
    color: var(--color-text);
  }
  .home-about .about-image { order: -1; }
  .home-about .about-image img { aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
  .home-about .about-text { padding: 32px 20px; min-height: auto; }
  .home-about .about-text i { color: var(--color-accent); font-size: 12px; letter-spacing: 2px; margin-bottom: 8px; }
  .home-about .about-text h2 { color: var(--color-primary); font-size: 22px; margin-bottom: 14px; }
  .home-about .about-text p { color: #555; font-size: 14px; line-height: 1.8; word-break: break-word; }
  .home-about .about-text .btn {
    background: var(--color-primary); color: #fff;
    border: none; padding: 8px 20px; font-size: 13px; margin-top: 14px;
  }

  /* 数据 2×2 */
  .home-stats { padding: 32px 0; }
  .home-stats .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .home-stats .stat-item .num { font-size: 28px; }
  .home-stats .stat-item .num small { font-size: 14px; }
  .home-stats .stat-item .label { font-size: 12px; }

  /* 工厂：大图单列 + 小图 2 列 */
  .factory-feature-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .factory-feature img { aspect-ratio: 16 / 9; }
  .factory-small-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .factory-small img { aspect-ratio: 1 / 1; }

  /* 品牌 3 列 */
  .home-brands .brands-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .home-brands .brand-item { padding: 12px; }
  .home-brands .brand-item img { max-height: 36px; }

  /* 新闻单列 */
  .home-news .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-news .news-card { grid-template-columns: 60px 1fr 90px; gap: 12px; padding: 14px; }
  .home-news .news-card .date { padding-right: 12px; }
  .home-news .news-card .date i { font-size: 24px; }
  .home-news .news-card .date em { font-size: 11px; }
  .home-news .news-card .text h3 { font-size: 14px; }

  /* CTA */
  .home-cta { padding: 48px 16px; }
  .home-cta h2 { font-size: 22px; }
  .home-cta p { font-size: 14px; }

  /* Footer */
  .site-footer { padding-bottom: 72px; }
  .site-footer .footer-nav { gap: 12px; }
  .site-footer .footer-nav a { font-size: 13px; }

  .back-to-top { right: 16px; bottom: 72px; }
}

/* ============================================================
   小屏 480px
   ============================================================ */
@media (max-width: 480px) {
  .logo img { height: 36px; }
  .menu-toggle { width: 24px; height: 20px; }

  .hero .swiper { aspect-ratio: 4 / 3; }
  .hero .slide-caption h2 { font-size: 18px; }
  .hero .slide-caption p { display: none; }

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

  .home-slogan h2 { font-size: 17px; }

  .home-about .about-image img { aspect-ratio: 4 / 3; }
  .home-about .about-text { padding: 24px 16px; }
  .home-about .about-text h2 { font-size: 20px; }
  .home-about .about-text p { font-size: 13px; }

  .home-stats .stat-item .num { font-size: 24px; }

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

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

  .home-news .news-card { grid-template-columns: 50px 1fr; grid-template-rows: auto auto; }
  .home-news .news-card .thumb { display: none; }
  .home-news .news-card .date i { font-size: 20px; }

  .home-cta h2 { font-size: 18px; }
}