/* 移动端兼容覆盖：不修改即应前端源码，只补它缺的部分 */
:root { --safe-bottom: env(safe-area-inset-bottom, 0px); }

/* 1) iOS Safari 地址栏导致 100vh 溢出 -> 用 dvh */
@supports (height: 100dvh) {
  html, body { height: 100dvh !important; min-height: 100dvh !important; }
  body > * { max-height: 100dvh; }
}

/* 2) 底部安全区（全面屏 Home 指示条） */
body { padding-bottom: var(--safe-bottom); }

/* 3) 输入框在 iOS 上小于 16px 会触发自动缩放 */
input, textarea, select { font-size: 16px !important; }

/* 4) 移动端触控目标不要小于 40px */
button, [role="button"], a[role="button"] { min-height: 40px; }

/* 5) 禁止横向滚动溢出 */
html, body { overflow-x: hidden; }

/* 6) 长按选中抖动 / 双击缩放 */
* { -webkit-tap-highlight-color: transparent; }
body { touch-action: manipulation; }
