/* ===== H5 移动端适配补充（修复原站 CSS 末尾重复定义覆盖响应式的问题） ===== */

@media (max-width: 768px) {

  /* --- 栅格修复：单列 --- */
  .news-grid,
  .students-grid,
  .video-grid { grid-template-columns: 1fr !important; }

  .video-card .wrap { aspect-ratio: 16 / 9; }
  .video-card .wrap iframe { width: 100%; height: 100%; }

  .features-grid,
  .cert-grid { grid-template-columns: 1fr !important; max-width: 100%; }

  .products-grid.col2,
  .products-grid.col3 { grid-template-columns: 1fr !important; }

  /* --- 首屏：背景 cover 更饱满，高度自适应 --- */
  body .hero {
    min-height: auto;
    padding: 104px 0 56px;
    background-size: cover !important;
    background-position: center center !important;
  }
  body .hero h1 { font-size: 2rem; line-height: 1.3; }
  body .hero .hl { font-size: 2.05rem; }
  body .hero .lead { font-size: .95rem; }

  /* 首屏按钮纵向排布、易点按 */
  body .hero .btns { flex-direction: column; gap: 12px; }
  body .hero .btns .btn { width: 100%; justify-content: center; }

  /* 数据条两列 */
  body .stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  /* 右侧产品卡（geo-define）内边距收紧 */
  .hero-card { padding: 22px 18px; }

  /* --- 分区留白收紧 --- */
  .features, .products, .about, .honor { padding: 56px 0; }
  .section-title { font-size: 1.45rem; }
  .section-sub { font-size: .9rem; }

  /* --- 荣誉数据 --- */
  .honor-stats { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* --- 全部资讯弹窗 --- */
  .all-news-panel { width: 94vw; max-height: 80vh; }
  .all-news-item { font-size: .85rem; }

  /* --- CTA --- */
  .cta { padding: 56px 20px; }
  .cta h2 { font-size: 1.6rem; }

  /* --- 页脚 --- */
  .footer-bottom { font-size: .75rem; padding: 0 12px; text-align: center; }

  /* --- 悬浮按钮避开底部安全区 --- */
  .float-group { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

  /* --- 图片点击放大灯箱 --- */
  .lightbox img { max-width: 94%; max-height: 88%; }
}

@media (max-width: 400px) {
  body .hero h1 { font-size: 1.7rem; }
  body .hero .hl { font-size: 1.75rem; }
  .section-title { font-size: 1.3rem; }
}
