/* 通用Base样式重置 - 完整版（无类前缀，全局生效，统一浏览器差异） */
/* 1. 全局盒模型与基础重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. 页面核心样式 */
body {
  line-height: 1.6;
  font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased; /* 抗锯齿，提升移动端文本清晰度 */
  -moz-osx-font-smoothing: grayscale;
}

/* 3. 列表样式重置 */
ul,
ol {
  list-style: none;
}

/* 4. 链接样式重置（无下划线，支持hover自定义） */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease; /* 加入过渡效果，提升交互体验 */
}

/* 5. 图片与媒体元素重置 */
img,
svg,
video,
audio {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}

/* 7. 文本元素重置 */
p,
blockquote,
pre,
address,
cite,
code,
kbd,
samp {
  margin: 0;
  line-height: inherit;
}

/* 8. 表单元素深度重置 */
input,
button,
select,
textarea,
optgroup {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* 按钮与输入框样式优化 */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer; /* 鼠标悬浮显示手型 */
}

textarea {
  resize: vertical; /* 仅允许垂直拉伸文本域，避免页面布局混乱 */
  overflow: auto; /* 去除默认滚动条样式差异 */
}



/* 10. 清除浮动与隐藏元素 */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

.clearfix {
  zoom: 1;
}
