/* ==========================================================================
   初讯 zk.chuxun.cc · 移动端排版与 App(PWA) 模式适配
   所有规则均限定在 ≤767px，PC 端完全不受影响。
   ========================================================================== */

@media (max-width: 767px) {

  /* ---------- 基础：防横向溢出 + 安全区 ---------- */
  html, body { overflow-x: hidden; }

  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-tap-highlight-color: transparent;
  }

  /* ---------- 首页首屏：去掉 200px 超大顶部空档 ---------- */
  .single-banner.banner2-height,
  .banner2-height {
    padding-top: 126px;
    padding-bottom: 54px;
  }

  .dbanner-title,
  .dbanner2-title {
    font-size: 31px;
    line-height: 1.34;
    letter-spacing: -0.2px;
    margin-bottom: 14px;
  }

  .banner-subtitle,
  .banner2-subtitle {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
    padding: 0 8px;
  }

  /* ---------- 标签胶囊：居中自动换行，去掉 min-width 撑开的空档 ---------- */
  .banner2-tag {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 0;
    margin-bottom: 16px;
  }

  .banner2-tag a {
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 18px;
  }

  /* 手机端去掉胶囊下方的小三角，避免换行后错位 */
  .banner2-tag .active::before { display: none; }

  /* ---------- 表单：iOS/WKWebView 聚焦不放大（字号必须 ≥16px） ---------- */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px;
  }

  .search2-form input {
    height: 56px;
    border-radius: 28px;
  }

  .search2-form button {
    top: 8px;
    right: 8px;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
  }

  /* ---------- 吸顶导航：避开刘海/状态栏 ---------- */
  .du-sticky-header.sticky,
  .header1.du-sticky-header.sticky,
  .header2.du-sticky-header.sticky {
    padding-top: env(safe-area-inset-top);
  }

  /* ---------- 触控友好：按钮最小点击区 ---------- */
  .banner2-tag a,
  .search2-form button,
  .theme-btn,
  .du-btn {
    min-height: 36px;
  }
}
