/* 清除列表项的默认样式 */
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 清除链接的默认下划线样式 */
a {
  text-decoration: none;
  color: inherit;
}

/* 清除表格的默认样式 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 0;
  text-align: left;
}

/* 清除图片和视频的默认边距 */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

/* 清除表单元素的默认样式 */
input,
button,
textarea,
select {
  font: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  outline: none;
}

/* 保持 `button` 和 `input` 元素的默认光标行为 */
button,
[type='button'],
[type='reset'],
[type='submit'] {
  cursor: pointer;
}

/* 确保表单元素没有默认的样式 */
button {
  background-color: transparent;
  border: none;
}

/* 清除blockquote元素的缩进 */
blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
}

/* 清除常见 heading 标签的默认 margin */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: normal;
}

/* 解决 inline-block 元素之间的间距问题 */
*::before,
*::after {
  box-sizing: inherit;
}
