/* CSS Reset - 现代浏览器重置样式 */

/* 盒模型重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 移除默认内外边距 */
* {
  margin: 0;
  padding: 0;
}

/* 设置核心根元素默认值 */
html {
  line-height: 1.15; /* 改善文本渲染 */
  -webkit-text-size-adjust: 100%; /* 防止iOS字体大小调整 */
  -webkit-tap-highlight-color: transparent; /* 移除移动设备点击高亮 */
  font-family: "Microsoft YaHei";
  font-size: 16px;
}

/* 设置body默认值 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  min-width: 1200px;
}

/* 重置标题元素 */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

/* 重置列表元素 */
ul, ol {
  list-style: none;
}

/* 重置链接元素 */
a {
  color: inherit;
  text-decoration: none;
}

/* 重置按钮和表单元素 */
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

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;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

textarea {
  overflow: auto;
  resize: vertical;
}

/* 重置表格元素 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 重置媒体元素 */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

img {
  border-style: none;
  height: auto;
}

/* 重置隐藏属性 */
[hidden] {
  display: none !important;
}

/* 重置details元素 */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* 重置搜索框 */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* 重置进度条 */
progress {
  vertical-align: baseline;
}

/* 重置对话框 */
dialog {
  background-color: white;
  border: solid;
  color: black;
  display: block;
  height: -moz-fit-content;
  height: -webkit-fit-content;
  height: fit-content;
  left: 0;
  margin: auto;
  padding: 1em;
  position: absolute;
  right: 0;
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
}

dialog:not([open]) {
  display: none;
}

/* 重置ruby元素 */
ruby, rp, rt {
  display: inline-block;
  vertical-align: top;
}

/* 重置bdi元素 */
bdi {
  unicode-bidi: isolate;
}

/* 重置wbr元素 */
wbr {
  display: inline-block;
}