/**
 * @version 1.0.0
 * @author LEE
 */

@charset "utf-8";

/* 重置所有元素的盒模型、外边距、内边距和边框 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*:before,
*:after {
  box-sizing: inherit;
}

/* 设置HTML和body的基本样式，适合大屏展示 */
html,
body {
  height: 100%;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: #fff;
  /* 大屏文字通常为浅色 */
  /* user-select: none; */
  /* 防止文本选择，提高性能 */
  /* touch-action: none; */
  /* 防止触摸操作，提高性能 */
  /* cursor: default; */
  /* 默认光标 */
}

/* 移除列表样式 */
ul,
ol,
li {
  list-style: none;
}

/* 移除表格边框和间距 */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* 表格单元格默认样式 */
th,
td {
  text-align: left;
  font-weight: normal;
}

/* 移除默认的表单样式 */
button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  appearance: none;
  /* 移除默认外观 */
  background: transparent;
  /* 透明背景 */
  color: inherit;
  /* 继承颜色 */
}

/* 按钮样式重置 */
button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
  outline: none;
  /* 移除焦点轮廓 */
  transition: all 0.3s ease;
  /* 平滑过渡效果 */
}

/* 禁用按钮样式 */
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* 移除链接的默认样式 */
a {
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  /* 移除IE10中的灰色背景 */
  outline: none;
  /* 移除焦点轮廓 */
  transition: all 0.3s ease;
  /* 平滑过渡效果 */
}

/* 图片和媒体元素的默认样式 */
img,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
  border-style: none;
  /* 移除边框 */
  object-fit: contain;
  /* 保持比例 */
  /* pointer-events: none; */
  /* 防止点击事件，提高性能 */
}

/* 图片特定样式 */
img {
  vertical-align: middle;
  /* 修复行内图片的对齐问题 */
  height: auto;
  /* 保持图片比例 */
  image-rendering: -webkit-optimize-contrast;
  /* 提高图片清晰度 */
  image-rendering: crisp-edges;
  /* 提高图片清晰度 */
}

/* 标题元素的重置 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
  line-height: 1.2;
  /* 更紧凑的行高，适合标题 */
}

/* 段落元素重置 */
p {
  margin: 0;
}

/* 修复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;
}

/* 修复Chrome和Safari中的外观问题 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/* 修复Firefox中的文本区域问题 */
textarea {
  overflow: auto;
  /* 移除默认的垂直滚动条 */
  resize: none;
  /* 禁止调整大小，保持布局稳定 */
  vertical-align: top;
  /* 文本区域的顶部对齐 */
}

/* 修复IE中的溢出问题 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  /* 半透明边框，适合深色背景 */
  margin: 1em 0;
}

/* 修复Edge和IE中的细节问题 */
main {
  display: block;
}

/* 修复Chrome、Firefox和Opera中的默认样式 */
progress {
  vertical-align: baseline;
}

/* 修复IE 10+中的默认样式 */
[hidden] {
  display: none;
}

/* 修复所有浏览器中的字体问题 */
pre,
code,
kbd,
samp {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1em;
}

/* 修复所有浏览器中的文本选择问题 */
::selection {
  background-color: rgba(0, 120, 215, 0.4);
  /* 半透明蓝色，适合深色背景 */
  color: #fff;
  text-shadow: none;
}

/* 修复移动浏览器中的点击高亮问题 */
a,
area,
button,
input,
label,
select,
summary,
textarea,
[tabindex] {
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* 移除移动端点击高亮 */
}

/* 修复IE中的溢出问题 */
blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: none;
}

/* 修复所有浏览器中的表单元素对齐问题 */
fieldset {
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* 半透明边框，适合深色背景 */
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
  min-width: 0;
  /* 修复Chrome中的最小宽度问题 */
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/* 修复Chrome、Firefox和Opera中的光标问题 */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* 修复Safari和Chrome中的字体问题 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* 修复Edge、IE和Firefox中的细节问题 */
details {
  display: block;
}

summary {
  display: list-item;
  cursor: pointer;
  /* 添加指针光标 */
}

template {
  display: none;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 6px;
  height: 8px;
  background-color: #f5f5f5;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #F5F5F5;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
  background-color: #004098;
}

/* 修复表单元素的字体继承问题 */
input,
button,
select,
optgroup,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  /* 透明背景 */
}

/* 修复单选框和复选框的对齐问题 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  vertical-align: middle;
}

/* 修复数字输入框的样式 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/* 修复placeholder的样式，适合深色背景 */
::placeholder {
  color: rgba(4, 61, 128, 0.6);
  opacity: 1;
}

/* 修复IE中的placeholder */
:-ms-input-placeholder {
  color: rgba(4, 61, 128, 0.6);
}

/* 修复Edge中的placeholder */
::-ms-input-placeholder {
  color: rgba(4, 61, 128, 0.6);
}