/* 全站交互锁定：文本选择、拖拽、移动端缩放与回弹 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-drag: none;
  overscroll-behavior: none;
  overflow-x: hidden;
  touch-action: manipulation;
}

body img,
body a,
body svg,
body [draggable] {
  -webkit-user-drag: none;
  user-drag: none;
}

body ::selection {
  background: transparent;
  color: inherit;
}

body ::-moz-selection {
  background: transparent;
  color: inherit;
}

/* 表单仍保留正常输入与编辑能力 */
body input,
body textarea,
body select,
body [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* 移动端输入框不小于 16px，避免 iOS 聚焦时自动放大页面 */
@media (max-width: 680px) {
  body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  body textarea,
  body select {
    font-size: 16px !important;
  }
}
