/* ============================================================
   普华数字 · 副站（www.jnyouyou.cn）移动端适配
   作用域：≤768px 手机 / ≤380px 小屏
   加载位置：各页 </head> 之前（在内联样式与 site.css 之后，优先级更高）
   原则：单列、紧凑、去装饰、按钮不换行、表格可横滑
   ============================================================ */

@media (max-width: 768px) {

  /* ---------- 1. 全局节奏 ---------- */
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 40px 0; }
  .sec-h { margin-bottom: 24px; }
  .sec-h h2 { font-size: 21px; line-height: 1.45; }
  .sec-h p { font-size: 13.5px; line-height: 1.7; margin-top: 8px; }
  .sec-h .k { font-size: 11.5px; letter-spacing: 2px; margin-bottom: 8px; }

  /* ---------- 2. 顶栏：只保留服务热线 ---------- */
  .topbar { font-size: 11.5px; }
  .topbar .wrap {
    height: auto; padding: 5px 0; gap: 0;
    justify-content: center; flex-direction: column; line-height: 1.7;
  }
  .topbar .wrap > div:last-child { display: none; }

  /* ---------- 3. 页头：logo 缩小，报价按钮不换行 ---------- */
  .header .wrap { height: 56px; gap: 10px; }
  .header img.logo { height: 32px; }
  .nav { display: none; }
  .header .btn {
    white-space: nowrap; padding: 8px 14px; font-size: 13px;
    border-radius: 7px; box-shadow: none;
  }

  /* ---------- 4. 首页 Hero：图片轮播在手机上会被裁切，改为纯色标语块 ---------- */
  .hero {
    height: auto !important;
    min-height: 0;
    padding: 26px 18px 30px;
    background: linear-gradient(135deg, #d8342c 0%, #ee2e29 55%, #f26a37 100%);
  }
  .hero .slide, .hero .dots { display: none !important; }
  .hero h1, .hero h1.sr {
    position: static !important;
    width: auto !important; height: auto !important;
    margin: 0 !important; padding: 0 !important;
    overflow: visible !important; clip: auto !important;
    white-space: normal !important; border: 0;
    font-size: 20px; line-height: 1.5; letter-spacing: .3px;
    color: #fff; font-weight: 800;
  }
  .hero::after {
    content: "用友 · 致远全系产品｜选型 · 实施 · 开发一站式服务";
    display: block; margin-top: 10px;
    font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .92);
  }
  .quick { gap: 8px; }

  /* ---------- 5. KPI 数据卡：2×2 ---------- */
  .kcards {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px; margin-top: -16px; margin-bottom: 4px;
  }
  .kcard { padding: 16px 8px 14px; border-radius: 12px; }
  .kcard .n { font-size: 24px; }
  .kcard .l { font-size: 11.5px; line-height: 1.45; margin-top: 4px; }

  /* ---------- 6. 各类卡片：单列为主，logo 墙两列 ---------- */
  .pgrid, .certs, .steps, .grid2, .grid3, .grid4,
  .kpi, .arts, .ilinks, .contact-grid, .form .hd {
    grid-template-columns: 1fr !important;
  }
  .cases { grid-template-columns: 1fr 1fr !important; }
  .cols2 { grid-template-columns: 1fr !important; gap: 24px !important; }

  .prod { padding: 16px 14px; border-radius: 11px; }
  .prod h4 { font-size: 15.5px; }
  .prod p { min-height: 0; font-size: 12.5px; line-height: 1.7; margin-bottom: 10px; }
  .pgroup { margin-bottom: 26px; }
  .pgroup h3 { font-size: 15px; margin-bottom: 10px; }

  .case { padding: 16px 10px 12px; border-radius: 10px; }
  .case .lg { height: 38px; }
  .case .lg img { max-height: 38px; max-width: 140px; }
  .case h4 { font-size: 13px; }
  .case p { font-size: 11px; }

  .cert { padding: 14px 14px 18px; }
  .cert .thumb { height: 118px; margin-bottom: 10px; }
  .cert h4 { font-size: 14px; }

  .step { padding: 16px 14px; }
  .step p { font-size: 12.5px; }

  .srcard { width: 148px; padding: 10px; }
  .srcard span { font-size: 11.5px; }

  /* ---------- 7. 正文与表格（宽表横向滑动，不挤成乱码） ---------- */
  .prose h2 { font-size: 19px; line-height: 1.5; }
  .prose h3 { font-size: 16.5px; line-height: 1.55; }
  .prose p, .prose li { font-size: 14px; line-height: 1.8; }
  .prose blockquote { font-size: 13px !important; }

  table.tbl {
    display: block !important;
    width: 100% !important;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 12.5px;
    border: 1px solid var(--line); border-radius: 10px;
  }
  table.tbl th, table.tbl td { white-space: normal; min-width: 108px; padding: 10px 8px; }
  table.tbl th:first-child, table.tbl td:first-child { min-width: 96px; }

  /* ---------- 8. 二级页头 / 面包屑 ---------- */
  .crumb .wrap { height: auto; padding: 8px 0; font-size: 12px; }
  .phead { padding: 32px 0; }
  .phead h1 { font-size: 21px; line-height: 1.45; }
  .phead p { font-size: 13px; line-height: 1.7; }

  /* ---------- 9. 转化区 / 页脚 ---------- */
  .cta-band { padding: 32px 0; }
  .cta-band h2 { font-size: 19px; line-height: 1.45; }
  .cta-band p { font-size: 13px; }
  .cta-band .btn, .cta-band a.btn { width: 100%; text-align: center; padding: 12px 0; font-size: 14px; }

  footer { padding: 32px 0 0; }
  footer .cols { grid-template-columns: 1fr 1fr !important; gap: 18px 14px; padding-bottom: 22px; }
  footer .brand { margin-bottom: 10px; }
  footer .brand img { height: 42px; }
  footer .brand .nm { font-size: 15px; }
  footer h5 { font-size: 13.5px; margin-bottom: 10px; }
  footer li { font-size: 12.5px; margin-bottom: 7px; }
  footer .icp { padding: 14px 10px; font-size: 11.5px; line-height: 1.9; }
  footer .icp a { margin: 0 4px; }

  /* ---------- 10. 小部件 ---------- */
  .ind-chips { gap: 8px; }
  .ind-chips a { padding: 8px 15px; font-size: 12.5px; }
  .quick a { padding: 6px 14px; font-size: 12px; }
  .btn { white-space: nowrap; }
  .form .btn { padding: 13px; font-size: 15px; }
  .pager a { min-width: 100%; }
  .srmarquee { margin-top: 16px; }

  /* 触控友好：去掉 hover 位移造成的抖动 */
  .prod:hover, .case:hover, .cert:hover, .kcard:hover { transform: none; }
}

/* ---------- ≤380px 小屏微调 ---------- */
@media (max-width: 380px) {
  .header img.logo { height: 28px; }
  .header .btn { padding: 7px 10px; font-size: 12px; }
  .hero h1, .hero h1.sr { font-size: 18px; }
  .kcard .n { font-size: 21px; }
  .kcard .l { font-size: 11px; }
}
