@keyframes fadeIn {
  /* 渐隐动画 */
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes toTop {
  /* 往上动画 */
  0% {
    -webkit-transform: translateY(30px);
    -moz-transform: translateY(30px);
    -ms-transform: translateY(30px);
    -o-transform: translateY(30px);
    transform: translateY(30px);
  }
  100% {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  height: 100%;
  /* 取消谷歌浏览器高亮颜色 */
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: '宋体', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #555;
  padding: 0;
  margin: 0;
  height: 100%;
  background: url('../images/decoration/bg.png');
  overflow-x: hidden;
}

ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

input,
button,
select,
textarea {
  outline: none;
  border: none;
}

a {
  color: #333;
  text-decoration: none;
  -webkit-transition: color 0.3s;
  -moz-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
}

a:hover {
  color: #ff7f00;
  text-decoration: none;
}

p {
  margin: 6px;
}

.header {
  /* 顶部导航条，flex布局 */
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  opacity: 0.95;
  text-align: center;
  background: #fff;
  box-shadow: 0 0 12px #eee;
  z-index: 999;
}

@media (max-width: 991px) {
  /* 设备最大宽度为991px时 */
  .header {
    height: 55px;
  }
}

@media (max-width: 767px) {
  /* 设备最大宽度为767px时 */
  .header {
    height: 50px;
  }
}

.header .logo {
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 3px;
}

@media (max-width: 991px) {
  .header .logo {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 767px) {
  .header .logo {
    width: 50px;
    height: 50px;
    margin-left: 10px;
  }
}

.header .logo img {
  width: auto;
  height: 100%;
}

.nav {
  margin-left: 20px;
}

@media (max-width: 767px) {
  /* 导航在设备最大宽度为767px时隐藏，且显示为竖列 */
  .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 53px;
    right: 0;
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
  }
}

.nav.show {
  opacity: 1;
  visibility: visible;
}

.nav a {
  display: inline-flex;
  color: #555;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 900;
  flex-direction: column;
  -webkit-transition: color, background, transform 0.3s;
  -moz-transition: color, background, transform 0.3s;
  -o-transition: color, background, transform 0.3s;
  transition: color, background, transform 0.3s;
}

.nav a.active,
.nav a:hover {
  color: #d6000b;
}

@media (max-width: 767px) {
  .nav a {
    position: relative;
    right: -100%;
    text-align: center;
    padding: 8px 10px 8px 16px;
    font-size: 14px;
    margin: 3px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px #ccc;
    border-radius: 25px 0 0 25px;
  }
  .nav a span {
    display: none;
  }
  .nav.show a {
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    -o-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  /* 偶数时等待0.4秒 */
  .nav.show a:nth-child(even) {
    transition-duration: 0.4s;
  }
  .nav a.active,
  .nav a:hover {
    color: #fff;
    background: #d6000b;
    box-shadow: 0 0 4px #b40f17;
  }
}

.nav a span {
  font-family: 'Segoe Print';
  line-height: 100%;
  color: #777;
  font-size: 12px;
  margin-top: 2px;
  -webkit-transition: color 0.3s;
  -moz-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
}

.nav a.active span,
.nav a:hover span {
  color: #c80d16;
}

.nav-bar {
  /* 小屏幕显示导航的按钮 */
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  z-index: 1000;
  cursor: pointer;
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);
  -webkit-transition: transform 0.3s;
  -moz-transition: transform 0.3s;
  -o-transition: transform 0.3s;
  transition: transform 0.3s;
}

@media (min-width: 767px) {
  .nav-bar {
    display: none;
  }
}

.nav-bar.active {
  /* 点击后旋转90度 */
  -webkit-transform: rotateZ(90deg) scale(0.8);
  -moz-transform: rotateZ(90deg) scale(0.8);
  -o-transform: rotateZ(90deg) scale(0.8);
  transform: rotateZ(90deg) scale(0.8);
}

.nav-bar span {
  position: absolute;
  left: 0;
  right: 0;
  margin: 24px auto;
  width: 25px;
  height: 2px;
  background: #777;
  border-radius: 25px;
}

.nav-bar span::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 0;
  width: 16px;
  height: 2px;
  background: #777;
  border-radius: 25px;
}

.nav-bar span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 16px;
  height: 2px;
  background: #777;
  border-radius: 25px;
}
/* 横幅 */

.banner {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 991px) {
  .banner {
    height: 420px;
    margin-top: 55px;
  }
}

@media (max-width: 767px) {
  .banner {
    height: 300px;
    margin-top: 50px;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 220px;
  }
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  /* 同用容器，用来规范宽度 */
  position: relative;
  width: 85%;
  max-width: 1200px;
  margin: auto;
}

@media (max-width: 1300px) {
  .container {
    width: 95%;
  }
}

@media (max-width: 991px) {
  .container {
    width: 98%;
  }
}

@media (max-width: 767px) {
  .container {
    width: calc(100% - 8px);
  }
}

.common-title {
  /* 通用标题 */
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  font-family: '楷体';
  margin: 28px 0;
  color: #000;
  font-size: 26px;
}

.common-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 175px);
  width: 140px;
  height: 50px;
  background: url('../images/decoration/line-l.png') no-repeat 50% 50%/140px 30px;
}

.common-title::after {
  content: '';
  position: absolute;
  top: 0;
  right: calc(50% - 175px);
  width: 140px;
  height: 50px;
  background: url('../images/decoration/line-r.png') no-repeat 50% 50%/140px 30px;
}

.common-title span {
  font-size: 14px;
  font-family: 'Segoe Print';
  z-index: 2;
}

@media (max-width: 991px) {
  .common-title {
    font-size: 22px;
    margin: 15px 0;
  }
}

@media (max-width: 767px) {
  .common-title {
    margin: 12px 0;
    font-size: 20px;
  }
  .common-title::before,
  .common-title::after {
    top: 5px;
    width: 100px;
    height: 30px;
    background-size: 100px 25px;
  }
  .common-title::before {
    left: calc(50% - 135px);
  }
  .common-title::after {
    right: calc(50% - 135px);
  }
  .common-title span {
    font-size: 10px;
  }
}

.common-btn {
  /* 通用按钮，用图片背景做边框 */
  display: block;
  width: 140px;
  height: 55px;
  color: #555;
  line-height: 55px;
  font-size: 18px;
  font-family: inherit;
  font-weight: inherit;
  text-align: center;
  margin: 12px auto;
  background: url('../images/decoration/button.png') no-repeat 50% 50%/125px 55px;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.common-btn:hover {
  color: #d6030e;
}

@media (max-width: 767px) {
  .common-btn {
    width: 130px;
    height: 50px;
    font-size: 16px;
    line-height: 50px;
    background-size: 110px 50px;
    margin: 10px auto;
  }
}

/* 简单的按钮 */
.simple-btn {
  align-self: flex-end;
  color: #eee;
  margin-top: 10px;
  padding: 6px 12px;
  border: 1px solid #eee;
  border-radius: 4px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.simple-btn:hover {
  color: #000;
  background: #fff;
}

@media (max-width: 991px) {
  .simple-btn {
    margin-top: 2px;
  }
}

@media (max-width: 767px) {
  .simple-btn {
    padding: 6px 8px;
  }
}

.common-warp {
  position: absolute;
  top: -110px;
  left: 0;
  width: 100%;
  height: 110px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 25px 25px 0 0;
}

@media (max-width: 991px) {
  .common-warp {
    top: -80px;
    height: 80px;
  }
}

@media (max-width: 767px) {
  .common-warp {
    top: -60px;
    height: 60px;
  }
}

/* 底部栏,采用flex布局,左边logo,中间主要内容,右边二维码 */

.footer {
  display: flex;
  align-items: center;
  padding: 40px 15%;
  background: #333 url('../images/decoration/bg1.png');
}

.footer .part-logo {
  width: 100px;
}

.footer .part-main {
  flex: auto;
  display: flex;
  flex-direction: column;
  padding: 0 30px;
  margin-left: 12px;
  color: #ccc;
}

.footer .part-main .links {
  /* 底部导航部分,采用行内flex布局 */
  display: inline-flex;
  margin-bottom: 12px;
}

.footer .part-main .links a {
  color: #ddd;
  padding: 12px 28px;
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
  -webkit-transition: color 0.3s;
  -moz-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
}

.footer .part-main .links a:hover {
  color: #fafafa;
}

.footer .part-logo {
  flex: none;
}

.footer .part-logo img {
  width: 100%;
}

.footer .part-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .part-qrcode img {
  width: 90px;
  height: 90px;
  object-fit: cover;
}

.footer .part-qrcode span {
  color: #ddd;
  margin-top: 12px;
}

@media (max-width: 1300px) {
  .footer {
    padding: 30px 10% 20px;
  }
  .footer .part-main {
    padding: 0 10px;
  }
  .footer .part-main .links a {
    padding: 12px 16px;
  }
}

@media (max-width: 991px) {
  .footer .part-main .links a {
    padding: 10px;
  }
  .footer .part-qrcode img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 767px) {
  .footer {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
    padding: 30px 8px 20px;
  }
  .footer .part-main {
    width: 100%;
    margin-left: 0;
    padding: 0;
    text-align: center;
  }
  .footer .part-main .links {
    justify-content: center;
  }
  /* 当设备宽度小于767px时,调整logo和二维码的flex项目顺序,显示在最下面 */
  .footer .part-logo {
    order: 1;
    margin: 5px 10px;
  }
  .footer .part-qrcode {
    order: 2;
    margin: 5px 10px;
  }
  .footer .part-logo img {
    width: 90px;
  }
}

@media (max-width: 480px) {
  .footer .part-logo img {
    width: 80px;
  }
  .footer .part-main .links a {
    padding: 10px 5px;
  }
  .footer .part-qrcode img {
    width: 70px;
    height: 70px;
  }
}

/* 透明遮罩 */
.transparent-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  background: transparent;
}

.suspend {
  /* 侧边悬浮按钮，不跟随屏幕移动 */
  position: fixed;
  right: 5%;
  bottom: 5%;
  z-index: 997;
}

.suspend li {
  /* 暂时为隐藏状态，由js控制显示 */
  position: relative;
  width: 36px;
  height: 36px;
  margin: 5px;
  line-height: 36px;
  font-size: 14px;
  text-align: center;
  color: #eee;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 4px #666;
  visibility: hidden;
  opacity: 0;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
}

.suspend li.show {
  /* 显示状态是动画 */
  visibility: visible;
  opacity: 1;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}

.suspend li a {
  color: #eee;
}

.suspend li a:hover {
  color: #fff;
}

.suspend li:hover {
  color: #fff;
  background: #ff7f00;
}

.suspend li:hover .more {
  visibility: visible;
  opacity: 1;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}

.suspend li i {
  font-size: 18px;
}

.suspend .more {
  /* 侧边按钮更多信息 */
  position: absolute;
  display: block;
  visibility: hidden;
  opacity: 0;
  top: 0;
  right: 45px;
  height: 36px;
  padding: 0 10px;
  line-height: 36px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 2px;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.suspend .more::after {
  content: '';
  position: absolute;
  display: block;
  top: calc(50% - 5px);
  right: -4px;
  border-top: 5px solid transparent;
  border-left: 5px solid rgba(0, 0, 0, 0.8);
  border-bottom: 5px solid transparent;
}

.suspend .more.weixin {
  /* 侧边悬浮微信二维码图片 */
  width: 100px;
  height: 100px;
  top: calc(50% - 50px);
  padding: 5px;
}

.suspend .more img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .suspend {
    right: 10px;
    bottom: 10px;
  }
  .suspend li {
    width: 32px;
    height: 32px;
    margin: 2px;
    line-height: 32px;
    font-size: 14px;
  }
  .suspend li i {
    font-size: 15px;
  }
}

#alert {
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 16px;
  padding: 12px 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  box-shadow: 0 0 10px #ddd;
  transform: translate(-50%, -50%);
}

.to-up-act,
.to-down-act,
.to-left-act,
.to-right-act {
  /*显示、隐藏动画*/
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.6s ease-out;
  -moz-transition: all 0.6s ease-out;
  -o-transition: all 0.6s ease-out;
  transition: all 0.6s ease-out;
}

.to-up-act.show,
.to-down-act.show,
.to-left-act.show,
.to-right-act.show {
  /* 显示状态 */
  opacity: 1;
  visibility: visible;
}

.to-up-act {
  /* 向上动画 */
  -webkit-transform: translateY(50px);
  -moz-transform: translateY(50px);
  -ms-transform: translateY(50px);
  -o-transform: translateY(50px);
  transform: translateY(50px);
}

.to-up-act.show {
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

.to-down-act {
  /* 向下动画 */
  -webkit-transform: translateY(-50px);
  -moz-transform: translateY(-50px);
  -ms-transform: translateY(-50px);
  -o-transform: translateY(-50px);
  transform: translateY(-50px);
}

.to-down-act.show {
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

.to-left-act {
  /* 向左动画 */
  -webkit-transform: translateX(50px);
  -moz-transform: translateX(50px);
  -ms-transform: translateX(50px);
  -o-transform: translateX(50px);
  transform: translateX(50px);
}

.to-left-act.show {
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}

.to-right-act {
  /* 向右动画 */
  -webkit-transform: translateX(-50px);
  -moz-transform: translateX(-50px);
  -ms-transform: translateX(-50px);
  -o-transform: translateX(-50px);
  transform: translateX(-50px);
}

.to-right-act.show {
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}
