.w {
  width: 1200px;
  margin: 0 auto;
  display: table;
}
/* 自动计算宽高 */
* {
  box-sizing: border-box;
}

/* 把所有标签的内外边距清零 */
blockquote,
body,
button,
dd,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
input,
legend,
li,
ol,
p,
pre,
td,
textarea,
th,
ul {
  margin: 0;
  padding: 0;
}

/* em 和 i 斜体的文字不倾斜 */
em,
i {
  font-style: normal;
}

/* 去掉li 的小圆点 */
li {
  list-style: none;
}

img {
  /* border 0 照顾低版本浏览器 如果 图片外面包含了链接会有边框的问题 */
  border: 0;
  /* 取消图片底侧有空白缝隙的问题 */
  vertical-align: middle;
}

button {
  /* 当我们鼠标经过button 按钮的时候，鼠标变成小手 */
  cursor: pointer;
}

/* 去除a标签中字体默认颜色和下划线*/
a {
  color: #666;
  text-decoration: none;
}

/*统一设置所有 a 标签鼠标经过时字体颜色*/
a:hover {
  color: #c81623;
}

/* 统一设置按钮和输入框的字体 */
button,
input {
  /* "\5B8B\4F53" 就是宋体的意思 这样浏览器兼容性比较好 */
  font:
    12px / 1.5 'Gilroy',
    'PingFang SC',
    'Microsoft YaHei',
    Tahoma,
    Helvetica,
    Arial,
    sans-serif;
}

/* 去除input默认样式 */
input {
  border: none;
  outline: none;
  color: #333;
}

body {
  /* CSS3 抗锯齿形 让文字显示的更加清晰 */
  -webkit-font-smoothing: antialiased;
  background-color: #fff;
  font:
    12px / 1.5 'Gilroy',
    'PingFang SC',
    'Microsoft YaHei',
    Tahoma,
    Helvetica,
    Arial,
    sans-serif;
  color: #666;
}

/* 隐藏所有包含类名 hide、none 的盒子 */
.hide,
.none {
  display: none;
}

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

.clearfix::after {
  clear: both;
}

.clearfix {
  *zoom: 1;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
