﻿/* reset.css */

/* 1. 统一盒模型 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. 清除默认外边距 */
* {
  margin: 0;
  padding: 0;
}

/* 3. 根元素和页面基础设置 */
html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  font-family: sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 4. 媒体元素默认块级，防止底部留白 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 5. 表单元素继承字体 */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 6. 清除按钮默认样式 */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 7. 统一输入框默认外观 */
input,
textarea {
  border: none;
  outline: none;
  background: none;
}

/* 8. 链接去掉默认样式 */
a {
  color: inherit;
  text-decoration: none;
}

/* 9. 列表去掉默认样式 */
ul,
ol {
  list-style: none;
}

/* 10. 表格样式重置 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 11. 标题默认继承字号和字重 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* 12. 强调标签继承文本样式 */
strong,
b {
  font-weight: inherit;
}

em,
i {
  font-style: inherit;
}

/* 13. 优化文本换行 */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 14. 文本域禁用默认拖拽 */
textarea {
  resize: none;
}

/* 15. 去除部分表单控件默认圆角和外观 */
input,
button,
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* 16. 让根节点隔离层叠上下文 */
#root,
#__next {
  isolation: isolate;
}
