/* reset.css 网页样式重置 | 中文站点优化版 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* 基础字体大小，rem基准 1rem = 16px */
  font-size: 16px;
  /* 平滑滚动 */
  scroll-behavior: smooth;
  /* 防止字体缩放（移动端禁止自动调整字号） */
  -webkit-text-size-adjust: 100%;
}

body {
  /* 中文优先字体栈，跨平台兼容 */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #f4f6fb;
  /* 禁止选中文本（按需删除） */
  /* user-select: none; */
}

/* 清除列表默认样式 */
ul,
ol {
  list-style: none;
}

/* 超链接重置 */
a {
  text-decoration: none;
  color: inherit;
}

/* 图片、媒体标签 */
img,
svg,
video,
audio {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 表单元素统一 */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical; /* 只允许垂直拉伸，禁止横向 */
}

/* 表格重置 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 0;
}

/* 标题清除默认加粗外边距 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

/* 斜体标签还原 */
em,
i {
  font-style: normal;
}

/* 清除下划线 */
u,
ins {
  text-decoration: none;
}

/* 水平线 */
hr {
  border: none;
  height: 1px;
  background-color: #eee;
}

/* 禁用焦点虚线（需要无障碍可删除） */
:focus-visible {
  outline: 2px solid #4096ff;
  outline-offset: 2px;
}

/* 隐藏滚动条（可选，不需要删掉这段） */
/* ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
} */