/*! responsive-shrink.css · 2026-09-24 · www.ii-vv.com
    全局响应收缩层：小屏下优先保证不横向撑破，字号能小则小（按需牺牲可读性）。
    仅注入给无自有响应式规则（@media=0 且无 mobile.css）的页面；
    已有移动适配的页面不加载本文件，避免覆盖既有设计。 */
@media (max-width: 991px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
}
@media (max-width: 767px) {
  html { font-size: 14px; }
  body { overflow-x: hidden; overflow-wrap: anywhere; word-wrap: break-word; }
  /* 图片/媒体不被撑破；iframe 保留原高度，避免地图/视频塌陷 */
  img, video, svg { max-width: 100% !important; height: auto; }
  iframe, embed, object { max-width: 100% !important; }
  /* 表格压进屏幕：等分列 + 允许断词（字号优先保排版） */
  table { max-width: 100% !important; table-layout: fixed; border-collapse: collapse; }
  td, th { word-break: break-word; }
  pre, code { white-space: pre-wrap; word-break: break-all; }
  /* 内联写死的 width 一律允许被压缩到容器宽 */
  [style*="width"] { max-width: 100% !important; }
  .container, .container-fluid { padding-left: 12px; padding-right: 12px; }
  h1 { font-size: 22px !important; line-height: 1.35 !important; }
  h2 { font-size: 19px !important; }
  h3 { font-size: 17px !important; }
  h4, h5 { font-size: 15px !important; }
  body, p, li { font-size: 14px !important; }
}
@media (max-width: 479px) {
  html { font-size: 13px; }
  h1 { font-size: 19px !important; }
  h2 { font-size: 17px !important; }
  h3 { font-size: 15px !important; }
  h4, h5 { font-size: 14px !important; }
  body, p, li, td, th { font-size: 13px !important; }
}
@media (max-width: 374px) {
  h1 { font-size: 17px !important; }
  h2 { font-size: 15px !important; }
  h3 { font-size: 14px !important; }
  body, p, li, td, th { font-size: 12px !important; }
}

/* ===== v2 · 2026-09-24b：列表/分页/搜索/表格 收缩补强 ===== */
@media (max-width: 767px) {
  .pagination, .pages, .page-box { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; justify-content: center !important; }
  .pagination a, .pagination span, .pagination li, .pages a, .page-box a { font-size: 12px !important; padding: 4px 9px !important; margin: 0 !important; float: none !important; }
  .hot-tags a, .hot-tag { font-size: 12px !important; margin: 3px !important; }
  table { font-size: 12px !important; }
  .article-list img, .news-list img, .case-item img { max-height: 150px !important; object-fit: cover; }
  h1 { font-size: 20px !important; }
  h2 { font-size: 17px !important; }
  h3 { font-size: 15px !important; }
  body, p, li { font-size: 13px !important; }
}
