@media (max-width: 1400px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .signup-links-col {
    grid-column: span 2;
    flex-direction: row;
    gap: 20px;
  }
  .online-signup-card {
    flex: 1;
    height: 180px;
  }
  .quick-links-row {
    flex: 1;
  }
}

@media (max-width: 1100px) {
  .nav-list {
    gap: 20px;
  }
  .nav-link {
    font-size: 16px;
  }
  .photo-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-card-img-wrap {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-contact {
    flex: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 70px;
  }
  .header-logo img {
    width: 220px;
    height: 58px;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .header-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #ffffff;
    flex-direction: column;
    padding: 30px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .header-nav.active {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 0;
  }
  .nav-item {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-link {
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
  }
  .nav-link::after {
    display: none;
  }
  .nav-item .submenu,
  .nav-item:hover .submenu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 4px;
    margin-bottom: 12px;
    display: none !important;
  }
  .nav-item.submenu-open .submenu,
  .nav-item.submenu-open:hover .submenu {
    display: block !important;
  }
  .weather-widget-box {
    display: none;
  }
  .banner-section {
    height: 400px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .video-player-card {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
  .signup-links-col {
    grid-column: span 1;
    flex-direction: column;
  }
  .cave-art-grid,
  .news-teachings-row,
  .video-library-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .photo-grid-3col {
    grid-template-columns: 1fr;
  }
  .article-paper-box {
    padding: 36px 20px;
  }
  .article-main-title {
    font-size: 26px;
  }
  .article-content-body {
    font-size: 16px;
    line-height: 2;
  }
  .footer-links-grid {
    display: none !important;
  }
  .gallery-nav-btn {
    display: flex;
  }
  .gallery-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gallery-showcase-card {
    height: 220px;
  }
  .gallery-showcase-card.mobile-hidden {
    display: none;
  }
}

@media (max-width: 600px) {
  .banner-section {
    height: 240px;
  }
  .page-banner {
    height: 220px;
  }
  .banner-page-title {
    font-size: 36px;
  }
  .section-title {
    font-size: 24px;
  }
  .more-link {
    font-size: 16px;
  }
  .more-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-thumb {
    width: 100%;
    height: 200px;
  }
  .pagination-bar {
    gap: 8px;
    padding-top: 30px;
  }
  .page-jump {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }
  .qa-title {
    font-size: 20px;
  }
  .qa-date {
    font-size: 18px;
  }
}

/* ===== 菜单打开时锁定主页面滚动（配合 header.js 的 nav-locked 类） ===== */
body.nav-locked {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* ===== 有二级菜单的一级栏目，在移动端显示展开箭头 ===== */
@media (max-width: 900px) {
  .nav-item.has-sub > .nav-link {
    position: relative;
  }
  .nav-item.has-sub > .nav-link::before {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--primary-color);
    line-height: 1;
  }
  .nav-item.has-sub.submenu-open > .nav-link::before {
    content: "\2212"; /* 减号 */
  }
}
