/* 引入CSS变量 */
@import './variables.css';

/* reset.css - 通用样式重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 基础元素重置 */
html, body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  /* background-color: var(--white); */
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 元素默认设为块级 */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* 列表重置 */
ol, ul {
  list-style: none;
}

/* 引用重置 */
blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

/* 表格重置 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 媒体元素重置 */
picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 表单元素重置 */
input, button, textarea, select {
  font: inherit;
  outline: none;
}

/* 去除默认按钮样式 */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 链接重置 */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* 通用工具类 */
.container-w {
	width: var(--content-width);
	margin: 0 auto;
}

.flex-center {
	display: flex;
	justify-content: center;
	align-items: top;
}

/* 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}