/* 通用手机端响应式样式 */
@media screen and (max-width: 768px) {
  /* 全局调整 */
  body { font-size: 14px; }
  
  /* 容器宽度自适应 */
  .container, .wrapper, .main, .content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box;
  }
  
  /* 表格横向滚动 */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
  }
  
  /* 图片自适应 */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* 导航栏调整 */
  .navbar, .header, .topbar {
    padding: 8px 12px !important;
  }
  .nav-menu, .nav-links {
    display: none;
  }
  
  /* 侧边栏隐藏或调整 */
  .sidebar, .left-menu, .aside {
    display: none;
  }
  .main-content, .right-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* 卡片网格调整 */
  .grid, .card-grid, .row {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }
  .col, .card, .grid-item {
    width: 100% !important;
    margin-bottom: 10px;
  }
  
  /* 按钮调整 */
  .btn, button {
    padding: 8px 16px !important;
    font-size: 14px !important;
  }
  
  /* 表单调整 */
  input, select, textarea {
    font-size: 16px !important; /* 防止iOS缩放 */
    max-width: 100%;
  }
  .form-group, .form-row {
    margin-bottom: 12px;
  }
  
  /* 隐藏桌面端元素 */
  .desktop-only, .hide-mobile {
    display: none !important;
  }
  
  /* 显示移动端元素 */
  .mobile-only, .show-mobile {
    display: block !important;
  }
  
  /* 字体大小调整 */
  h1 { font-size: 22px !important; }
  h2 { font-size: 18px !important; }
  h3 { font-size: 16px !important; }
  h4 { font-size: 15px !important; }
  
  /* 间距调整 */
  .section, .module, .panel {
    padding: 12px !important;
    margin-bottom: 12px !important;
  }
}

/* 小屏手机优化 */
@media screen and (max-width: 480px) {
  body { font-size: 13px; }
  .container, .wrapper { padding: 8px !important; }
  h1 { font-size: 20px !important; }
  h2 { font-size: 17px !important; }
}
