/* reset.css - 移除默认样式的公共CSS文件 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮效果 */
}

html,
body {
  width: 100%;
  height: 100%;
  font-size: 14px;
  line-height: 1.5;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans',
    'Helvetica Neue', sans-serif;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%; /* 防止iPhone在横屏时放大文本 */
}

body {
  overscroll-behavior-y: contain;
}

ul,
ol,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  font-size: inherit;
}

/* 清除浮动 */
.clearfix:after {
  content: '';
  display: block;
  clear: both;
  visibility: hidden;
  height: 0;
}

/* 移动端常用样式 */
input[type='text'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='number'] {
  -webkit-appearance: none;
}

/* 禁止长按链接与图片弹出菜单 */
a,
img {
  -webkit-touch-callout: none;
}

/* 禁止选中文本 */
.no-select {
  user-select: none;
  -webkit-user-select: none;
}