

/* 移除默认边框和轮廓 */
fieldset, img, input, button, textarea {
  border: none;
  outline: none;
}

/* 移除列表默认样式 */
ul, ol, li {
  list-style: none;
}

/* 移除超链接默认样式 */
a {
  text-decoration: none;
  color: inherit; /* 继承父元素颜色 */
}

/* 统一字体和文本样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased; /* 字体抗锯齿（webkit浏览器） */
  -moz-osx-font-smoothing: grayscale; /* 字体抗锯齿（Firefox） */
}

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

/* 表格边框合并 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 图片自适应 */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 按钮和输入框样式统一 */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background-color: transparent;
}

/* 按钮 cursor 样式 */
button {
  cursor: pointer;
}

/* 移除文本域可拖拽调整大小 */
textarea {
  resize: none;
}

/* 统一引用样式 */
blockquote, q {
  quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
  content: "";
  content: none;
}

/* 解决 HTML5 语义化标签在旧浏览器中的块级显示问题 */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* 隐藏屏幕阅读器不可见元素 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}