/* ══ 破晓定制 · 输入框禁缩放（1029）══════════════════════════════════
   问题：手机上点搜索框，iOS/部分安卓会自动放大页面（因为输入框字号 < 16px），
        放大后整页错位，要在别处点一下才能缩回来。
   原理：iOS Safari 只在 input 的 font-size < 16px 时才自动放大。
        ⇒ 把移动端输入框字号提到 16px，就不会触发自动缩放。
   为什么不用 user-scalable=no：那会禁掉用户手动双指缩放（无障碍问题），
        而且只对部分浏览器有效。只改输入框字号副作用最小。
   ══════════════════════════════════════════════════════════════════════ */

@media screen and (max-width: 900px) {
  /* 所有可输入控件统一 16px —— 只影响输入框本身，不影响页面其他地方的字号 */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea,
  select {
    font-size: 16px !important;
    /* iOS 某些版本还会按 line-height 判断，一并固定 */
    line-height: 1.35 !important;
  }

  /* 聚焦时禁用 iOS 的自动滚动定位（配合 font-size 双保险） */
  input:focus,
  textarea:focus,
  select:focus {
    transform: none !important;
  }

  /* 搜索框里的占位文字跟着缩一点，避免 16px 显得过大 */
  input::placeholder,
  textarea::placeholder {
    font-size: 15px;
  }
}

/* 横屏平板等宽屏设备，同样适用（避免 iPad 上也有这问题） */
@media screen and (min-width: 901px) and (max-width: 1180px) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea,
  select {
    font-size: 16px !important;
  }
}
