/* 倘卖无 · 移动端适配（响应式） */
@media (max-width: 640px) {
  header { padding:16px 14px !important; }
  header h1 { font-size:18px !important; }
  header p { font-size:12px !important; }
  .wrap { padding:12px !important; }

  /* 顶栏按钮组：触摸友好 */
  .tabs { gap:6px !important; flex-wrap:wrap !important; }
  .tabs button { padding:12px 8px !important; font-size:14px !important; flex:1 1 30% !important; min-width:90px !important; }

  /* 输入框与按钮：加大触摸区 */
  input, select { padding:14px 12px !important; font-size:16px !important; } /* 16px 防 iOS 缩放 */
  .btn { padding:15px !important; font-size:16px !important; }
  label { margin:16px 0 7px !important; font-size:14px !important; }

  /* 行内两列 → 单列 */
  .row { flex-direction:column !important; gap:0 !important; }
  .row > div { flex:1 1 auto !important; }

  /* 统计卡片换行 */
  .stat { gap:8px !important; }
  .stat > div { flex:1 1 45% !important; min-width:45% !important; padding:12px !important; }
  .stat b { font-size:20px !important; }

  /* 表格 → 卡片式（关键：手机上不再横向挤压） */
  .scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  table { font-size:13px !important; }
  th, td { padding:9px 6px !important; }

  /* 地图高度适配 */
  #map { height:240px !important; }

  /* 弹窗占满宽 */
  .modal { padding:12px !important; align-items:flex-start !important; padding-top:40px !important; }
  .modal .card { max-width:100% !important; }

  /* 底部入口链接 */
  .footlinks { font-size:12px !important; padding-bottom:20px !important; }
  .footlinks a { display:inline-block; padding:6px 4px; }
}

/* 超小屏 */
@media (max-width: 380px) {
  .tabs button { flex:1 1 100% !important; }
  header h1 { font-size:16px !important; }
}

/* 触摸设备：去掉 hover 抖动 */
@media (hover: none) {
  .btn:active { opacity:.85; }
}
