/* ============================================
   南宫28 - 响应式样式表 nf-responsive.css
   断点: xs(<640px) sm(640-767px) md(768-1023px) lg(1024-1279px) xl(>=1280px)
   ============================================ */

/* --- xl: >=1280px (default) --- */

/* --- lg: 1024-1279px --- */
@media (max-width: 1279px) {
  .nf-hero h1 {
    font-size: 2.5rem;
  }

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

  .nf-gallery-grid {
    columns: 3;
  }

  .nf-ranking-layout {
    grid-template-columns: 1fr;
  }
}

/* --- md: 768-1023px --- */
@media (max-width: 1023px) {
  .nf-hamburger {
    display: flex;
  }

  .nf-nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--nf-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 0;
    z-index: 999;
  }

  .nf-nav-links.nf-nav-open {
    display: flex;
  }

  .nf-nav-links a {
    padding: 12px 16px;
    width: 100%;
    border-bottom: 1px solid var(--nf-border);
  }

  .nf-nav-links a::after {
    display: none;
  }

  .nf-nav-cta-mobile {
    margin-top: 12px;
    text-align: center;
  }

  .nf-hero h1 {
    font-size: 2rem;
  }

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

  .nf-lottery-grid {
    grid-template-columns: 1fr;
  }

  .nf-lottery-featured {
    grid-row: auto;
  }

  .nf-lottery-featured .nf-card-img {
    height: 250px;
    min-height: auto;
  }

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

  .nf-recruit-layout {
    grid-template-columns: 1fr;
  }

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

  .nf-community-layout {
    grid-template-columns: 1fr;
  }

  .nf-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nf-app-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nf-app-mockup {
    order: -1;
  }

  .nf-page-hero {
    height: 280px;
  }

  .nf-page-hero-content h1 {
    font-size: 2rem;
  }
}

/* --- sm: 640-767px --- */
@media (max-width: 767px) {
  .nf-section {
    padding: 50px 0;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .nf-hero {
    min-height: 90vh;
  }

  .nf-hero h1 {
    font-size: 1.8rem;
  }

  .nf-hero-subtitle {
    font-size: 0.95rem;
  }

  .nf-hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .nf-stat-number {
    font-size: 1.5rem;
  }

  .nf-video-grid {
    grid-template-columns: 1fr;
  }

  .nf-tools-grid {
    grid-template-columns: 1fr;
  }

  .nf-articles-grid {
    grid-template-columns: 1fr;
  }

  .nf-gallery-grid {
    columns: 2;
  }

  .nf-predict-options {
    flex-direction: column;
    align-items: center;
  }

  .nf-footer-grid {
    grid-template-columns: 1fr;
  }

  .nf-partners-logos {
    gap: 20px;
  }

  .nf-partner-logo {
    height: 35px;
  }

  .nf-badges {
    flex-direction: column;
    align-items: center;
  }

  .nf-app-features {
    grid-template-columns: 1fr;
  }

  .nf-download-btns {
    flex-direction: column;
  }

  .nf-page-hero {
    height: 220px;
  }

  .nf-page-hero-content h1 {
    font-size: 1.6rem;
  }

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

/* --- xs: <640px --- */
@media (max-width: 639px) {
  .nf-container {
    padding: 0 16px;
  }

  .nf-section {
    padding: 40px 0;
  }

  .nf-hero h1 {
    font-size: 1.5rem;
  }

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

  .nf-stat-number {
    font-size: 1.3rem;
  }

  .nf-gallery-grid {
    columns: 1;
  }

  .nf-ranking-table {
    font-size: 0.8rem;
  }

  .nf-ranking-table th,
  .nf-ranking-table td {
    padding: 10px 8px;
  }

  .nf-predict-chart {
    flex-wrap: wrap;
  }

  .nf-form-card {
    padding: 24px 16px;
  }

  .nf-data-screen {
    padding: 16px;
  }

  .nf-app-mockup img {
    max-height: 350px;
    transform: none;
  }
}
