/* responsive.css —— 响应式断点（2026-10-31 彻底重构） */

/* ---------- 中等屏幕及以下（平板/小笔记本）：切换为汉堡菜单 ---------- */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
    display: block;
  }
  .sidebar {
    display: none; /* 侧边栏隐藏，由 JS 控制抽屉 */
  }
  .main-content {
    width: 100%;
  }
  
  /* 核心逻辑：隐藏桌面导航，显示汉堡按钮 */
  .main-nav.desktop-nav {
    display: none; 
  }
  .mobile-menu-toggle {
    display: flex;
  }

  /* 修复居中问题：去掉导航隐藏后遗留的下边距，确保上下对称 */
  header {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .header-top {
    margin-bottom: 0;
  }

}

/* ---------- 移动端与小平板（768px 以下）：排版与细节瘦身 ---------- */
@media (max-width: 768px) {
  header {
    padding: 12px 16px;
    margin-bottom: 15px;
  }

  .header-top {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .site-logo {
    font-size: 1.3rem;
    white-space: nowrap;
  }

  .mobile-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }





  .social-icons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container {
    padding: 0 12px;
  }

  .main-content {
    padding: 24px 20px;
  }

  footer {
    padding: 12px 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .floating-action-buttons {
    right: 15px;
    bottom: 15px;
    gap: 12px;
  }

  .floating-action-buttons .fab {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

/* ---------- 小屏幕手机（480px 以下） ---------- */
@media (max-width: 480px) {
  .site-logo { 
    font-size: 1.3rem; 
  }
  .floating-action-buttons .fab { 
    width: 45px; 
    height: 45px; 
  }
}
