/* ============================================================
   UXW 主题 · 移动端适配补丁（本站专用）
   演示站的移动端为服务端 UA 分模板输出；本站为同一模板，
   故以媒体查询补丁实现手机/平板自适应。
   ============================================================ */

/* ---------- 平板及以下（<992px）：导航收敛 ---------- */
@media (max-width: 991px) {
  .horizontal-menu-navbar { padding: 0 14px; }
  /* 中部菜单与搜索输入收起（移动端以首页栏目 + 浮动客服导航） */
  .horizontal-menu-navbar-container { display: none !important; }
  .horizontal-menu-navbar-search .input-inner-wrapper { display: none !important; }
  .horizontal-menu-navbar-search .navbar-public { display: none !important; }
  .horizontal-menu-navbar-search .delimiter { display: none !important; }
  .horizontal-menu-navbar-search,
  .horizontal-menu-right-container { width: auto !important; max-width: none !important; flex: 0 0 auto !important; }
  .navbar-Register a, .navbar-Login { white-space: nowrap; padding: 6px 14px; }
  .horizontal-menu-navbar { height: 62px; }
  .horizontal-menu-navbar-logo img { height: 28px; }
}

/* ---------- 手机（<768px） ---------- */
@media (max-width: 767px) {
  /* Banner 快捷入口：两列换行 */
  .bannerbelow-row { flex-wrap: wrap; gap: 10px; }
  .bannerbelow-row .bannerbelow-list { width: calc(50% - 5px) !important; min-width: 0 !important; box-sizing: border-box; }
  .bannerbelow-content-container { padding: 0 8px 10px; }
  .bannerbelow-title span { font-size: 13px !important; }
  .bannerbelow-description p { font-size: 11px !important; }

  /* 产品分类卡：换行 */
  .systemproduct-categories { flex-wrap: wrap !important; gap: 10px !important; }
  .systemproduct-category { width: calc(33.33% - 7px) !important; min-width: 0 !important; }
  .systemproduct-category-name { font-size: 12px !important; }

  /* 产品面板：左右结构转纵向 */
  .systemproducts { display: block !important; }
  .systemproduct-left-container, .systemproduct-right-container { width: 100% !important; display: block !important; }
  .systemproduct-right-product { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .systemproduct-item { width: auto !important; margin: 0 !important; }

  /* Banner 标题缩放 */
  .swiper-text .Title { font-size: 22px !important; line-height: 1.35 !important; }
  .swiper-text .Describe { font-size: 13px !important; }
  .home-swiper.swiper-height { height: 320px !important; }

  /* 页脚：纵向堆叠 */
  .sky-footer-top { flex-wrap: wrap !important; }
  .sky-footer-top .sky-footer-block { width: 50% !important; margin-bottom: 12px; }
  .sky-footer-main { display: block !important; }
  .sky-footer-left, .sky-footer-right { width: 100% !important; }
  .sky-footer-nav-row { flex-wrap: wrap !important; gap: 18px !important; }
  .sky-footer-nav-column { width: calc(50% - 9px) !important; }

  /* 首页旧区块（解决方案/新闻）宽度保护 */
  .sol-wrap, .news-wrap, .why-grid { display: block !important; }
  .sol-side { display: flex !important; flex-direction: row !important; overflow-x: auto !important; width: 100% !important; margin-bottom: 14px; }
  .sol-side .s-item { min-width: 180px !important; flex: 0 0 auto !important; }
  .sol-cards { display: grid !important; grid-template-columns: 1fr !important; }
  .sol-hero { padding: 20px 16px !important; }
  .container { padding: 0 14px !important; }
  .sk-title h2 { font-size: 22px !important; }
}

/* ---------- 超小屏（<420px） ---------- */
@media (max-width: 419px) {
  .systemproduct-category { width: calc(50% - 5px) !important; }
  .systemproduct-right-product { grid-template-columns: 1fr !important; }
  .sky-footer-top .sky-footer-block { width: 50% !important; }
  .swiper-text .Title { font-size: 19px !important; }
}

/* ---------- 全局保护 ---------- */
html, body { overflow-x: hidden; max-width: 100vw; }
.Rotation-layoutcontainer, .swiper-wrapper-container, .home-swiper { overflow: hidden !important; max-width: 100vw; }
.bannerbelow-row, .systemproduct-categories, .systemproduct-right-product,
.sky-footer-nav-row, .sky-footer-top { min-width: 0; }
.systemproduct-item, .sky-footer-block, .bannerbelow-list { max-width: 100%; box-sizing: border-box; }
img { max-width: 100%; height: auto; }
