/* OpenNeo AI — Responsive overrides */

@media (max-width: 1280px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .nav-list {
    gap: var(--space-4);
  }

  .nav-link {
    font-size: 14px;
  }

  .lang-switcher {
    margin-left: var(--space-4);
  }
}

@media (max-width: 768px) {
  .site-header {
    position: fixed;
    padding-top: 10px;
  }

  .header-inner {
    height: 56px;
    padding: 0 var(--space-4);
  }

  .site-main {
    padding-top: 82px;
  }

  .desktop-nav,
  .desktop-lang-switcher {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
    inset: 76px 14px 14px 14px;
    border-radius: var(--radius-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

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

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    padding: var(--space-7) 0 var(--space-8);
  }

  .hero-title {
    /* 标题 9 个全角字符 ≈ 9em：随屏宽放大并吃满可用宽度，481px 起步 44px → 660px+ 封顶 58px */
    font-size: min(9.2vw, 58px);
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-scroll {
    bottom: 62px;
  }

  .section {
    padding: var(--space-8) 0;
  }

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

  .section-subtitle {
    font-size: 16px;
  }

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

  .feature-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .feature:nth-child(even) .feature-inner {
    direction: ltr;
  }

  .feature-title {
    font-size: 26px;
  }

  .feature-visual {
    min-height: 240px;
    padding: var(--space-5);
  }

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

  .cta-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 32px;
  }

  .page-header {
    padding: var(--space-7) 0 var(--space-5);
  }

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

  .contact-about {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .service-list--grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .service-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .not-found-code {
    font-size: 80px;
  }

  .not-found-title {
    font-size: 26px;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .hero-title {
    /* 320px 屏 ≈ 30px（9em≈268px，可用 280px），375px 屏 ≈ 35px，442px 起封顶 42px */
    font-size: min(9.3vw, 42px);
  }

  .btn {
    width: 100%;
  }

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

  .feature-title,
  .cta-title,
  .page-title,
  .not-found-title {
    font-size: 24px;
  }

  .feature-visual {
    min-height: 200px;
    padding: var(--space-5);
  }

  .card {
    padding: var(--space-5);
  }

  .footer-grid {
    margin-bottom: var(--space-5);
  }
}
