/* 移动端全局重置样式 v1.1 */
/* 清除默认间距和盒模型 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

/* 移动端基础设置 */
html {
  -webkit-text-size-adjust: 100%; /* 禁止字体自动调整 */
  -webkit-tap-highlight-color: transparent; /* 取消触摸高亮 */
  font-size: 62.5%; /* 1rem = 10px (方便计算) */
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 
    "Segoe UI", Roboto, "Helvetica Neue", Arial, 
    sans-serif; /* 系统默认字体栈 */
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  font-size: 14px;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* 滚动回弹效果 */
}

/* 列表重置 */
ol, ul {
  list-style: none;
}

/* 表格重置 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 表单元素重置 */
input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none; /* 去除iOS默认样式 */
  border-radius: 0;
}

/* 禁止textarea缩放 */
textarea {
  resize: none;
}

/* 链接重置 */
a {
  text-decoration: none;
  color: inherit;
  -webkit-touch-callout: none; /* 禁止长按链接弹出菜单 */
}

/* 图片处理 */
img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* 移动端常用class */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 隐藏元素 */
.hidden {
  display: none !important;
}

/* 禁用长按选择文本 */
* {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version */
}

/* 保留输入框文本选择 */
input, textarea {
  -webkit-user-select: auto !important;
}

/* 禁用IOS调整字体大小 */
body {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}