/* 移动端响应式修复 */
@media (max-width: 768px) {
  /* 修复强制最小宽度导致的横向溢出 */
  .min-w-\[700px\],
  .min-w-\[800px\],
  .min-w-\[200px\],
  .min-w-\[150px\] {
    min-width: 100% !important;
  }

  /* 表格容器横向滚动 */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  /* 修复固定宽度元素 */
  .w-64, .w-56 {
    width: 100% !important;
  }

  /* 侧边栏移动端适配 */
  .lg\:pl-64 {
    padding-left: 0 !important;
  }
  .lg\:pl-16 {
    padding-left: 0 !important;
  }

  /* 内容区域 padding 适配 */
  .px-10 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .px-6 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* 大标题缩小 */
  .text-4xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
  }
  .text-3xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
  }

  /* grid 布局适配 */
  .grid-cols-2,
  .md\:grid-cols-3,
  .md\:grid-cols-4,
  .md\:grid-cols-5,
  .md\:grid-cols-6,
  .lg\:grid-cols-3,
  .lg\:grid-cols-4,
  .lg\:grid-cols-5 {
    grid-template-columns: 1fr !important;
  }

  /* 固定高度适配 */
  .h-\[400px\],
  .h-\[500px\] {
    height: auto !important;
    min-height: 200px !important;
  }

  /* 防止内容溢出 */
  body, #root {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* 卡片间距适配 */
  .gap-6 {
    gap: 0.75rem !important;
  }
  .gap-8 {
    gap: 1rem !important;
  }

  /* 大 padding 缩小 */
  .py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .py-24 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .p-8 {
    padding: 1rem !important;
  }
  .p-6 {
    padding: 0.75rem !important;
  }

  /* max-width 适配 */
  .max-w-7xl,
  .max-w-6xl,
  .max-w-4xl,
  .max-w-3xl {
    max-width: 100% !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}
