/* reset.css */
/* 1. 全局初始化 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. 移除默认字体和布局 */
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
    'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: #fff;
  color: #000;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 3. 链接 */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* 4. 图片和媒体 */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 5. 表单元素 */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
}

/* 6. 列表 */
ul, ol {
  list-style: none;
}

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

/* 8. 语义标签 */
article, aside, footer, header, nav, section, main {
  display: block;
}
