/* ==========================================================
   responsive.css · 响应式断点
   断点策略详见方案 2.6 / 11.1
   Mobile-S <375 | Mobile 375-767 | Tablet 768-1023
   Desktop 1024-1439 | Desktop-L >=1440
   ========================================================== */

/* ---------- Tablet 及以上：栅格内边距 32px ---------- */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ---------- Desktop：栅格内边距 60px ---------- */
@media (min-width: 1024px) {
  .container { padding: 0 60px; }
}

/* ---------- Desktop-L ---------- */
@media (min-width: 1440px) {
  .container { max-width: 1200px; padding: 0 auto; }
}

/* ==========================================================
   Tablet & Mobile：< 1024px
   ========================================================== */
@media (max-width: 1023px) {
  .topbar { display: none; }
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
  .header { height: var(--header-h-mobile); }
  .header .container { gap: 12px; }
  .logo img { height: 36px; }
  .logo__text { font-size: 19px; }
  .header__actions { margin-left: auto; }

  html { scroll-padding-top: calc(var(--header-h-mobile) + 16px); }
  .filter-bar { top: var(--header-h-mobile); }

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

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

  .page-banner { min-height: 240px; }
  .page-banner__title { font-size: 34px; }

  .timeline::before { left: 8px; }
  .timeline__item,
  .timeline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 32px 36px;
  }
  .timeline__item::after,
  .timeline__item:nth-child(even)::after { left: 1px; right: auto; }
}

/* ==========================================================
   Mobile：< 768px
   ========================================================== */
@media (max-width: 767px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head__title { font-size: 24px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }

  .g-2, .g-3, .g-4, .g-6 { grid-template-columns: 1fr; }
  .g-2.keep-2, .g-4.keep-2 { grid-template-columns: repeat(2, 1fr); }

  .footer { padding-top: 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .floating { display: none; }
  .mobile-bar { display: block; }
  body { padding-bottom: 62px; }

  .page-banner { min-height: 200px; text-align: center; }
  .page-banner__title { font-size: 28px; }
  .page-banner__sub { font-size: 15px; }
  .breadcrumb { justify-content: center; }

  .filter-bar { padding: 12px 0; }
  .filter-row { flex-direction: column; gap: 8px; padding: 6px 0; }
  .filter-row__label { width: auto; padding-top: 0; }
  .filter-row__opts {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-row__opts::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .stat-card__num { font-size: 34px; }
  .stat-card__unit { font-size: 18px; }

  .swiper__nav { display: none; }

  .pagination__btn:not(.is-active):not(.pagination__btn--arrow) { display: none; }
  .pagination__dots { display: none; }

  .modal__dialog { padding: 32px 22px; }

  .marquee__item { width: 140px; height: 64px; }
}

/* ---------- Mobile-S：< 375px ---------- */
@media (max-width: 374px) {
  .container { padding: 0 16px; }
  .btn { padding: 0 18px; font-size: 15px; }
  .course-price { font-size: 22px; }
}

/* ---------- 触摸设备：最小点击区域 44px ---------- */
@media (hover: none) {
  .nav__dropdown { display: none; }
  .marquee__item { filter: none; opacity: 1; }
}
