/* ==========================================================================
   base.css — reset + 基础排版（不含主题色定义，主题见 theme.css）
   ========================================================================== */

/* 统一盒模型（IE8+ 支持） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
figcaption {
  margin: 0;
  padding: 0;
}

/* 竖向滚动条空间始终预留，避免内容高矮不同的页面（有/无滚动条）之间
   .container（margin:0 auto 居中）左右跳动——尤其列表页切换最明显 */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", SimSun, Arial, sans-serif;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  color: #222222;
  color: var(--text-main);
  background: #FFFFFF;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  background: transparent;
}

a:hover {
  color: #0153A0;
  color: var(--primary);
}

input,
button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

/* 清除浮动（IE8 兼容单冒号写法） */
.clearfix:after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

.clearfix {
  *zoom: 1; /* IE6/7 hasLayout */
}

/* 仅屏幕阅读器可见 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
