/* ===========================================================
   移动端补丁（在 style.css / pages.css / notices.css 之后加载）
   只处理窄屏下的横向溢出与可读性，不改动桌面版
   =========================================================== */

/* 1) 网格子项允许收缩，避免固定宽侧栏/表格把页面撑宽 */
@media (max-width: 980px) {
  .svc-detail-grid > *,
  .svc-block > *,
  .split > *,
  .split--wide > *,
  .contact-grid > *,
  .intro-grid > *,
  .hero-inner > *,
  .doc-wrap > * {
    min-width: 0;
  }
  .svc-nav { position: static; width: auto; }
  .svc-nav a { padding: 12px 16px; font-size: 14px; }
}

/* 2) 表格：容器内横向滚动，不撑破整页 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
@media (max-width: 760px) {
  .table-scroll table.data { min-width: 560px; }
  /* 表格保持表格布局，靠外层 .table-wrap 横向滚动。
     早先把 table 改成 display:block + nowrap，列宽被压到几十像素，
     单元格里一个字一行、右边被裁掉，看起来就是「显示不全」。 */
  .doc-card table,
  .prose table {
    display: table;
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }
  .doc-card .table-wrap,
  .prose .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .doc-card .table-wrap > table,
  .prose .table-wrap > table {
    width: auto;
    min-width: 100%;
    max-width: none;
  }
  .doc-card .table-wrap > table th,
  .doc-card .table-wrap > table td,
  .prose .table-wrap > table th,
  .prose .table-wrap > table td { min-width: 68px; }
  .doc-card .table-wrap--wide > table th,
  .doc-card .table-wrap--wide > table td,
  .prose .table-wrap--wide > table th,
  .prose .table-wrap--wide > table td { min-width: 112px; }
}

/* 3) 长文本与链接断行，避免英文/URL 撑宽 */
@media (max-width: 760px) {
  .hero-desc,
  .doc-card,
  .prose,
  .notice-source,
  .footer-about { overflow-wrap: anywhere; word-break: break-word; }
  .doc-card { padding: 22px 18px; }
  .doc-head h1 { font-size: 20px; line-height: 1.5; }
}

/* 4) 首页平台入口 / 公告流在窄屏下的密度 */
/* 移动端不展示首页「平台入口」六宫格（页脚对应链接与分隔符一并隐藏，避免点空） */
@media (max-width: 760px) {
  .hero-plat { display: none !important; }
  .hide-sm { display: none !important; }
}

@media (max-width: 620px) {
  .hero-plat-grid { grid-template-columns: 1fr 1fr; }
  .hp-item { padding: 12px 10px; }
  .hp-t { font-size: 12.5px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .hero-metrics b { font-size: 26px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* 5) 触屏可点区域不小于 40px */
@media (hover: none) and (pointer: coarse) {
  .nav a,
  .nav-sub a { min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 44px; }
}

/* 6) 覆盖页面内联的多列网格（内联样式优先级高于媒体查询） */
@media (max-width: 1080px) {
  .steps[style] { grid-template-columns: repeat(3, 1fr) !important; row-gap: 32px; }
}
@media (max-width: 620px) {
  .steps[style] { grid-template-columns: 1fr !important; row-gap: 0; }
  .steps[style] .step { padding-left: 0; }
}

