/* 通用基本样式 */
@charset "utf-8";

/* 引用字体样式表 */
@import url("./fonts.css") screen;

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family:
    "Open Sans", "Source Sans 3", "Microsoft YaHei", "微软雅黑", arial, tahoma,
    sans-serif;
}

/* 1rem=10px */
html {
  font-size: 62.5%;
}
/* ==================== 3. CSS变量定义 (Variables) ==================== */
:root {
  /* 字体大小 */
  --font-size-xs: 1.4rem;
  --font-size-sm: 1.6rem;
  --font-size-md: 2rem;
  --font-size-lg: 2.4rem;
  --font-size-lg2: 3rem;
  --font-size-xl: 3.6rem;
  --font-size-xxl: 4.2rem;
  --font-size-title: 6rem;

  /* 内边距 */
  --padding-xs: 1rem;
  --padding-sm: 1.5rem;
  --padding-md: 2rem;
  --padding-lg: 3rem;
  --padding-xl: 5rem;

  /* 间距 */
  --gap-md: 2rem;

  /* 圆角 */
  --radius-lg: 8px;
}

/* ==================== 1. 重置样式 (Reset) ==================== */
body {
  overflow-y: scroll;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  margin: 0;
  padding: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body,
button,
input,
select,
textarea,
pre {
  font:
    12px/1.5 "Source Sans 3",
    arial,
    tahoma,
    \5b8b\4f53;
}
input,
select,
textarea {
  font-size: 100%;
}
th {
  text-align: inherit;
}
fieldset,
img {
  border: 0;
}
img {
  vertical-align: top;
  object-fit: cover;
}
iframe {
  display: block;
}
abbr,
acronym {
  border: 0;
  font-variant: normal;
}
del {
  text-decoration: line-through;
}
address,
caption,
cite,
code,
dfn,
em,
th,
var {
  font-style: normal;
  font-weight: 500;
}
ol,
ul {
  list-style: none;
}
caption,
th {
  text-align: left;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: 500;
}
a {
  color: #333;
  text-decoration: none;
  outline: none;
}
a:focus {
  outline: none;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
i {
  font-style: normal;
}
input:focus,
textarea:focus,
keygen:focus,
select:focus {
  outline: none;
  outline-offset: 0px;
}
::-webkit-input-placeholder {
  color: #666;
}
::-moz-placeholder {
  color: #666;
} /* firefox 19+ */
:-ms-input-placeholder {
  color: #666;
} /* ie */
input:-moz-placeholder {
  color: #666;
}
