/* 1. 盒模型统一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. 清除默认 margin */
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
figure,
blockquote,
dl, dd {
  margin: 0;
}

/* 3. 设置基础 body */
body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
}

/* 4. 列表去样式 */
ul, ol {
  list-style: none;
  padding: 0;
}

/* 5. 图片默认处理 */
img,
picture {
  max-width: 100%;
  display: block;
}

/* 6. 表单元素继承字体 */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. 按钮优化 */
button {
  border: none;
  background: none;
  cursor: pointer;
}

/* 8. 链接去默认样式 */
a {
  text-decoration: none;
  color: inherit;
}

/* 9. 表格 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 10. 去掉 textarea 默认 resize（可选） */
textarea {
  resize: vertical;
}