/* 
 * 全局样式重置 - reset.css
 * 清除浏览器默认内外边距、盒模型、列表、链接等默认样式
 * 适配所有现代浏览器 + 低版本兼容
 */

/* 1. 全局盒模型统一：内边距/边框不撑开元素宽高 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. 清除默认边距，统一基础字体 */
html,
body {
  height: 100%;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

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

/* 4. 清除链接默认样式，统一颜色 */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

/* 5. 清除表单元素默认样式 */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  outline: none;
}

/* 按钮鼠标手型 */
button {
  cursor: pointer;
}

/* 6. 清除图片默认底部留白、边框 */
img {
  display: block;
  max-width: 100%;
  border: none;
  vertical-align: middle;
}

/* 7. 清除标题默认加粗/边距 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  font-size: inherit;
}

/* 8. 清除表格默认间距 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 9. 清除斜体默认样式 */
i,
em {
  font-style: normal;
}

/* 10. 清除浮动辅助类（可选，常用） */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
  visibility: hidden;
  height: 0;
}

.clearfix {
  *zoom: 1; /* IE兼容 */
}