/* Reset CSS */

/* 重置所有元素的margin和padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 重置HTML和body */
html, body {
  height: 100%;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: block;
  margin: 0 !important;
}

/* 重置标题元素 */
h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
  font-weight: normal;
}

/* 重置列表元素 */
ul, ol {
  list-style: none;
}

/* 重置链接样式 */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

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

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

button {
  cursor: pointer;
}

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

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

/* 设置基础字体 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 移除文本域的默认样式 */
textarea {
  resize: vertical;
}

/* 移除input[type=number]的上下箭头 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 移除input[type=search]的搜索图标 */
input[type=search]::-webkit-search-decoration,
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-results-button,
input[type=search]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* 设置选中文本的背景色和文字颜色 */
::selection {
  background-color: #b3d4fc;
  color: #000;
  text-shadow: none;
}

/* 统一不同浏览器的默认滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

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

/* 移除 Firefox 中的内边框 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/* 确保 textarea 只能垂直拖动大小 */
textarea {
  resize: vertical;
} 