/* 基础重置：移除常见默认边距与内边距 */
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 {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* 统一字体和文字缩放，适配 Retina 屏 */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* 移动端通用字体设置 */
body {
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont,
    'PingFang SC', 'Helvetica Neue', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  background-color: #fff;
  color: #000;
  -webkit-tap-highlight-color: transparent;
}

/* 图片自适应 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

/* 链接默认样式 */
a {
  color: inherit;
  text-decoration: none;
}

/* 输入框字体继承 + 清除边框 */
input, button, textarea, select {
  font: inherit;
  outline: none;
  border: none;
  background: none;
}

/* 清除默认列表样式 */
ul, ol {
  list-style: none;
}

/* 表单按钮点击无选中样式 */
button {
  cursor: pointer;
  background: transparent;
  border: none;
}

/* 微信浏览器默认样式清理优化 */
body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}

/* 禁止长按菜单复制弹窗（如图片保存、文本选中） */
img, a {
  -webkit-touch-callout: none;
}

/* 去除 tap 高亮 */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
