/* ========================================
   响应式样式 - 精简版
   ======================================== */

/* 平板 (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --container-padding: 16px;
  }

  .gallery-grid {
    columns: 2;
  }

  .timeline-item {
    width: 100%;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    padding-left: 60px;
    padding-right: var(--space-xl);
    text-align: left;
  }

  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: -7px;
    right: auto;
  }

  .timeline::before {
    left: 0;
  }
}

/* 手机 (< 768px) */
@media (max-width: 768px) {
  :root {
    --space-4xl: 64px;
    --space-3xl: 48px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
    margin-bottom: var(--space-xl);
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 80px var(--space-lg) var(--space-lg);
    gap: var(--space-xs);
    transition: right 0.3s;
    border-left: 1px solid var(--glass-border);
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .navbar-toggle {
    display: flex;
  }

  .teachers-grid {
    grid-template-columns: 1fr !important;
  }

  .students-kraft-board {
    gap: 0;
    padding: 14px 6px 32px;
  }

  .student-card-wrap {
    padding: 6px 8px;
  }

  .student-card {
    width: 100%;
    max-width: 320px;
  }

  .timeline-item {
    padding-left: 48px;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: -7px;
  }

  .timeline::before {
    left: 0;
  }

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

  .gallery-grid {
    columns: 1;
  }

  .auto-play-btn {
    bottom: 56px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .random-memory-btn {
    bottom: 104px;
    right: 16px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }

  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .message-note {
    max-width: 220px;
    padding: 16px;
  }

  .modal-content {
    padding: var(--space-lg);
    margin: 16px;
  }
}

/* 小手机 (< 480px) */
@media (max-width: 480px) {
  .glass-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .timeline-images {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .student-card {
    max-width: 100%;
  }

  .student-card-clip {
    right: 12px;
  }

  .student-card-tape::before {
    width: 46px;
    height: 20px;
  }
}