/* ============================================
   CSS 重置样式
   归零浏览器默认样式，统一各浏览器表现
   ============================================ */

/* 盒模型统一为 border-box */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 根元素基础设置 */
html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* body 基础样式 */
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: #333;
  background-color: #fff;
}

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

/* 链接默认样式重置 */
a {
  text-decoration: none;
  color: inherit;
}

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

/* 按钮和输入框继承字体 */
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 按钮重置 */
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* 标题字号重置 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

/* 移除引用标记 */
blockquote,
q {
  quotes: none;
}

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