/* ============================================
   响应式断点
   ============================================ */

/* --- 平板 (≤ 1024px) --- */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  /* 搜索/筛选双栏布局 */
  .search-layout {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .filter-sidebar .filter-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* 职位详情两栏 */
  .detail-layout {
    flex-direction: column;
  }

  .detail-sidebar {
    width: 100%;
  }
}

/* --- 手机 (≤ 768px) --- */
@media (max-width: 768px) {
  :root {
    --space-3xl: 40px;
    --space-2xl: 32px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* 导航 - 移动端 */
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
  }

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

  .hamburger {
    display: flex;
  }

  .navbar-actions .btn {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: var(--text-2xl);
  }

  .hero p {
    font-size: var(--text-base);
  }

  .hero-search {
    flex-direction: column;
    padding: var(--space-sm);
  }

  .hero-search .search-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .hero-search .search-btn {
    width: 100%;
  }

  /* 统计 */
  .stats-bar {
    margin-top: -30px;
    padding: var(--space-lg);
  }

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

  .stat-number {
    font-size: var(--text-2xl);
  }

  /* 分类 */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section */
  .section-header h2 {
    font-size: var(--text-2xl);
  }

  /* 职位卡片 */
  .job-card {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .job-card-salary {
    margin-left: 0;
    padding-left: 0;
    margin-top: var(--space-xs);
  }

  .job-card-logo {
    width: 44px;
    height: 44px;
    font-size: var(--text-lg);
  }

  /* 搜索布局 */
  .search-layout {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    position: static;
    border-right: none;
  }

  .filter-sidebar .filter-groups {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  /* 企业主页 */
  .company-banner {
    height: 200px;
  }

  .company-info-grid {
    grid-template-columns: 1fr;
  }

  /* 浮动操作栏 */
  .detail-apply-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md) var(--space-lg);
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    z-index: 100;
    display: flex;
    gap: var(--space-md);
  }

  .detail-apply-bar .btn {
    flex: 1;
  }
}

/* --- 小手机 (≤ 480px) --- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--text-xl);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .category-card {
    padding: var(--space-md) var(--space-sm);
  }

  .category-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .job-card-title {
    font-size: var(--text-base);
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: var(--text-sm);
  }
}
