/**
 * CSS Reset & Normalize
 * 七有企业官网 - 样式重置文件
 * 适配现代浏览器，确保跨浏览器一致性
 */

/* 1. 基础重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. HTML & Body */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Microsoft YaHei", "微软雅黑", "SimSun", "宋体";
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* 3. 标题重置 */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: 1.2;
}

/* 4. 列表重置 */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 5. 链接重置 */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  text-decoration: none;
}

/* 6. 图片重置 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  vertical-align: middle;
}

/* 7. 表单元素重置 */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
}

/* 8. 表格重置 */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

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

/* 9. 其他元素 */
p {
  margin: 0;
}

blockquote {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid #e0e0e0;
  margin: 1rem 0;
}

/* 10. HTML5 元素 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
  display: block;
}

/* 11. 选择文本样式 */
::selection {
  background-color: #0066cc;
  color: #fff;
}

::-moz-selection {
  background-color: #0066cc;
  color: #fff;
}

/* 12. 滚动条样式（仅Webkit浏览器） */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* 13. 无障碍 - 隐藏但保留给屏幕阅读器 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 14. 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
