/* ============================================
   响应式适配
   ============================================ */

/* 平板 */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* 手机 */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }

  .header-inner {
    height: 60px;
  }

  .logo img {
    height: 32px;
  }

  .logo-text {
    font-size: var(--fs-base);
  }

  /* 页脚 Logo 移动端缩小 */
  .footer-brand img {
    max-height: 42px;
    max-width: 160px;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
  }

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

  .nav a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 80vh;
    padding: calc(60px + 3rem) 0 3rem;
  }

  .hero-title {
    font-size: var(--fs-4xl);
  }

  .hero-subtitle {
    font-size: var(--fs-base);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .section-title {
    font-size: var(--fs-3xl);
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-avatar {
    max-width: 200px;
  }

  .about-name {
    font-size: var(--fs-3xl);
  }

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

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

/* 小屏手机 */
@media (max-width: 480px) {
  .hero-title {
    font-size: var(--fs-3xl);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-box {
    padding: 1.5rem 0.5rem;
  }
}
