/********* reset css *****/

/* 基础样式重置（小型网页用*选择器足够，简洁高效） */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* 统一盒模型 */
}

/* 补充必要的标签重置（*选择器覆盖不到的细节） */

body {
  font-family:
    "Microsoft YaHei",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #333;
}

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

li {
  transition:
    transform 0.3s ease-in-out,
    translateY 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

a {
  color: inherit;
  /* 继承父级文本色，避免默认蓝色 */
  text-decoration: none;
  /* 清除默认下划线 */
}

a:hover {
  color: var(--primary-color, #3d86f8);
  transition: 1.2s;
}

img {
  max-width: 100%;
  /* 图片自适应容器 */
  height: auto;
  /* 保持图片比例 */
  vertical-align: middle;
  /* 解决图片底部留白问题 */
}

button,
input {
  outline: none;
  border: none;
  font-family: inherit;
  /* 继承父级字体，保持一致性 */
}

i,
em {
  font-style: initial;
}

/* 修改滚动条默认样式 */

::-webkit-scrollbar-track-piece {
  background-color: #fff;
  border: none;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  width: 8px;
  background: #e3e3e3;
  border-radius: 10px;
}

/******** reset css end *******/
