* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, "PingFang SC","Microsoft Yahei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

img {
  width: 100%;
}

div:focus {
  outline: none;
}

:root {
  --primary-color: #9F5B5B;
  --header-color: #921D22;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

button {
  border: none;
  outline: none;
}

/* 头部 */
/* header {
  position: relative;
} */
header {
  width: 100%;
  height: 80px;

  display: grid;
  padding: 0 40px;

  grid-template-columns: 0.8fr 2fr;
  column-gap: 10px;
  align-items: center;
  position: relative;
  /* background: #fff; */
  z-index: 200;
}

.logo {
  width: 290px;
  height: 80px;
}

header nav {
  justify-self: end;
}

header nav .menu {
  display: flex;
  justify-self: end;
}

ul.menu::after {
  content: '';
  display: block;
  clear: both;
}

nav ul.menu li {
  position: relative;
  padding: 0 14px;
  display: flex;
  align-items: center;
  list-style: none;
}

nav ul.menu li i {
  display: none;
  cursor: pointer;
}

nav ul.menu>li>a {
  height: 100%;
  line-height: 100%;
  white-space: nowrap;
}

nav .menu>li>.submenu {
  position: absolute;
  top: 40px;
  left: 0;
  line-height: 40px;
  display: none;
  border-radius: 6px;
  /* 利用滤镜给ul阴影 */
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, .3)); 

  animation: fade 0.4s ease-in-out forwards;
}

/* nav .men .submenu-item .smart-submenu {
  animation: unset;
} */

nav .menu .submenu .smart-submenu {
  position: absolute;
  top: 0;
  left: 100.5%;
  border-radius: 0 4px 4px 4px ;
  z-index: 1;
  display: none;
}

nav .menu .submenu li {
  height: 50px;
  line-height: 50px;
  width: 180px;
  padding: 0;
  text-align: left;
  border-bottom: 1px solid whitesmoke;
  background: #FFFFFF;
  color: #333;
}

nav .menu .submenu li a {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  padding-left: 10px;
  border-radius: unset;
  font-size: 14px;
}

nav .menu .submenu .smart-submenu li {
  width: 112px;
  height: 42px;
  line-height: 42px;
  /* text-align: center; */
}

/* nav .menu .submenu .smart-submenu li a {
  padding: 0;
} */

/* 小三角形 */
nav .menu>li>ul.submenu > li:first-child {
  height: 24px;
  border: 10px solid;
  background: none;
  border-color: transparent transparent #fff transparent;
  width: 0;
  margin-left: 40px;
}

/* nav .menu .smart-submenu > li:first-child {
  height: 24px;
  border: 10px solid;
  background: none;
  border-color: transparent transparent transparent #fff;
  width: 0;
  margin-left: 40px;
} */

nav .menu>li>ul.submenu > li:nth-child(2),
nav .menu>li>ul.submenu > li:nth-child(2) a,
nav .menu .smart-submenu > li:first-child,
nav .menu .smart-submenu > li:first-child a {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

nav .menu ul.submenu > li:last-child,
nav .menu ul.submenu > li:last-child a {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

header nav a {
  color: #333333;
  padding: 14px 20px;
  /* margin: 0 4px; */
  border-radius: 20px;
}

nav a:hover {
  color: #fff;
  background: var(--header-color);
  animation: bgcfade 0.5s ease-in-out forwards;
}

/* 一级导航hover样式 */
ul.menu>li:hover>a {
  color: #fff;
  animation: bgcfade 0.5s ease-in-out forwards;
}

header nav .menu>li:hover>.submenu {
  display: block;
}

/* 二级导航hover样式 */
ul.menu ul.submenu li a:hover {
  background: #e6e6e6;
  color: #333;
  animation: unset;
}

/* 三级导航hover样式 */

ul.menu ul.submenu .submenu-item:hover .smart-submenu {
  display: block;
}

header nav .active-nav {
  background: var(--header-color);
  color: #fff;
}

header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);

  animation: dropDown 0.5s ease-in-out forwards;
}

@keyframes dropDown {
  from {
    transform: translateY(-100px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bgcfade {
  0% {
    
  }
  25% {
    background: var(--primary-color);
  }
  100% {
    background: var(--header-color);
  }
}

@keyframes bgcHeight {
  0% {

  }
  25% {
    height: 30%;
  }
  100% {
    height: 100%;
  }
}

header .burger {
  display: none;
}

/* 底部 */
footer {
  width: 100%;
  background: #282E46;
  color: #D1D1D1;
}

footer .footer-items {
  max-width: 1260px;
  margin: 0 auto;
  padding: 62px 20px 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 2fr;
  /* column-gap: 10px; */
  font-size: 14px;
}

.footer-items .logo {
  text-align: center;
}

.footer-items .logo img {
  margin: 0 auto;
  width: 142px;
}

.footer-item>h4 {
  display: inline-block;
  padding-bottom: 0.4rem;
  padding-right: 6vw;
  margin-bottom: 0.4rem;
  font-size: 16px;
  font-weight: 400;
  border-bottom: 1px solid #B1B1B1;
}

.footer-item ul li{
  font-size: 12px;
  line-height: 20px;
  margin-bottom: 1em;
  margin-top: 0.5rem;
}

.footer-item ul li a {
  color: #D1D1D1;

}

.footer-item ul li a:hover {
  border-bottom: 1px solid #fff;
  /* color: #921D22; */
}

/* 底部小标 */
.footer-item ul .address-icon::before,
.footer-item ul .call-icon::before,
.footer-item ul .mail-icon::before,
.footer-item ul .wechat-icon::before,
.footer-item ul .join-icon::before {
  content: '';
  display: inline-block;
  margin-right: 10px;
  background-repeat: no-repeat;
  transform: translateY(2px);
}

.footer-item ul .address-icon::before {
  width: 14px;
  height: 16px;
  background: url('../image/address.png');
  background-size: 14px 16px;
}

.footer-item ul .call-icon::before {
  width: 16px;
  height: 15px;
  background: url('../image/call.png');
  background-size: 16px 15px;
}

.footer-item ul .mail-icon::before {
  width: 15px;
  height: 12px;
  background: url('../image/mail.png');
  background-size: 15px 12px;
}

.footer-item ul .wechat-icon::before {
  width: 16px;
  height: 13px;
  background: url('../image/wechat.png');
  background-size: 16px 13px;
}

.footer-item ul .join-icon::before {
  width: 16px;
  height: 14px;
  background: url('../image/joinUS.png');
  background-size: 16px 14px;
}

/* 加入我们 */
/* .footer-item ul .join-icon::before {
  width: 17px;
} */

/* .footer-item img {
  width: 16px;
  margin-right: 12px;
} */

.footer-bottom {
  line-height: 2.5rem;
  font-size: 14px;
  font-weight: 200;
  background-color: #3A3F56;
  color: #FFFFFF;
  text-align: center;
}

.contact-footer img {
  display: none;
}

@media (max-width: 1190px) {
  header {
    padding: 0 14px 0 10px;
    /* padding-right: 10px; */
  }

  nav ul.menu li {
    padding: 0 4px;
  }

  .logo {
    width: 270px;
    height: 70px;
  }

  nav ul.menu>li>a {
    padding: 12px 16px;
    border-radius: 19px;
  }

}

@media (max-width: 932px) {
  header nav ul.menu li {
    padding: 0 3px;
  }
  
  header nav ul.menu>li>a {
    padding: 12px 14px;
    font-size: 14px;
  }

  header nav ul.menu .submenu a {
    font-size: 13px;
  }

  .logo {
    width: 240px;
    height: 66px;
  }

  header nav .menu .submenu {
    top: 30px;
  }

  .footer-items .logo {
    padding-top: 20px;
  }

  .footer-items .logo img {
    width: 122px;
  }

  .footer-item img {
    width: 12px;
    margin-right: 6px;
  }
}

@media (max-width:820px) {

  header nav {
    display: none;
  }

  header {
    grid-template-columns: repeat(2, 1fr);
  }

  header .logo {
    width: 290px;
    height: 80px;
  }

  header .burger {
    display: block;
    width: 20px;
    height: 11px;
    position: relative;
    justify-self: end;
    cursor: pointer;
    
  }

  .burger-line1,
  .burger-line2,
  .burger-line3 {
    width: 20px;
    height: 2px;
    background-color: #333;
  }

  .burger-line1 {
    position: absolute;
    top: -6px;
  }

  .burger-line3 {
    position: absolute;
    top: 6px;
  }

  header.open {
    position: fixed;
    background: white;
  }

  header.open nav {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    width: 66%;
    height: 100vh;
    opacity: 0;
    
    line-height: 40px;

    animation: slideDown 0.4s ease-in-out forwards;
  }

  header.open nav ul.menu {
    display: block;
    height: 100vh;
    padding: 0;
    margin-top: 0px;
    
    background-color: var(--header-color);
    transition: unset;
    animation: unset;

  }

  header nav ul.menu li {
    padding: 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: .3s;
  }

  header.open .business-sub-menu li {
    position: relative;
    display: inline-block;
  }

  header nav .menu>li:hover .submenu,
  ul.menu ul.submenu .submenu-item:hover .smart-submenu {
    display: none;
  }

  ul.menu ul.submenu .submenu-item .smart-submenu {
    display: none;
    position: relative;
    left: 0;
  }

  nav .menu .submenu .smart-submenu li {
    width: 100%;
  }

  ul.menu ul.submenu .submenu-item .smart-submenu li {
    display: flex;
    align-items: left;
    /* justify-content: space-between; */
    font-size: 12px;
  }

  ul.menu .submenu .submenu-item .smart-submenu li a {
    width: 100%;
    padding-left: 60px;
    font-size: 13px;
  }

  header.open nav ul.menu li .arrow {
    display: inline-block;
    line-height: 42px;
    padding: 9px 20px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  header.open nav ul.menu>li>a {
    display: inline-block;
    width: 100%;
    padding: 10px 20px 10px;
    line-height: unset;
    font-size: 15px;
    color: #fff;
    border-radius: unset;
    transition: all 0.3s ease;
  }

  header.open nav ul.menu>li:nth-child(3)>a,
  header.open nav ul.menu>li:nth-child(4)>a,
  header.open nav ul.menu>li .submenu-item a {
    width: 50%;
  }

  header.open nav ul.menu>li .submenu-item .arrow {
    padding: 0px 20px;
    font-size: 18px;
    vertical-align: middle;
    color: #333;
  }

  header.open nav .menu>li:hover a {
    padding-left: 32px;
    animation: unset;
  }

  ul.menu>li a:hover {
    animation: none;
  }

  header nav .menu .submenu {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    box-shadow: none;
    border-radius: unset;

    /* 去掉利用滤镜给ul阴影 */
    filter: unset; 
    transition: all 0.5s ease;
  }

  header nav .menu .submenu li {
    width: 100%;
    /* padding-left: 10px; */
  }

  header.open nav .menu .submenu li a {
    display: inline-block;
    width: 100%;
    padding-left: 42px;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
  }

  header.open nav .menu .submenu li:hover>a {
    padding-left: 50px;
  }

  header.open nav .submenu .submenu-item:hover {
    background: #e6e6e6;
  }

  header.open nav .submenu-item .smart-submenu li:hover a {
    padding-left: 66px;
  }

  header nav .menu ul.submenu > li:nth-child(2),
  header nav .menu ul.submenu > li:nth-child(2) a,
  header nav .menu .smart-submenu > li:first-child,
  header nav .menu .smart-submenu > li:first-child a {
    border-top-left-radius: unset;
    border-top-right-radius: unset;
  }

  header nav .menu ul.submenu > li:last-child,
  header nav .menu ul.submenu > li:last-child a {
    border-bottom-left-radius: unset;
    border-bottom-right-radius: unset;
  }

  /* 小三角 */
  header.open ul.submenu > li:first-child {
    display: none;
  }

  header.open nav > * {
    animation: showMenu 0.5s linear forwards 0.4s;
    margin: 0px 0;
  }

  header.open .burger-line1,
  header.open .burger-line2,
  header.open .burger-line3 {
    /* background-color: #fff;; */
    transition: 0.4s ease;
  }

  header.open .burger-line1 {
    transform: rotate(45deg) translate(3px, 5px);
  }

  header.open .burger-line2 {
    transform: translateX(5px);
    opacity: 0;
  }

  header.open .burger-line3 {
    transform: rotate(-45deg) translate(3px, -5px);
  }

  header.open nav.show1 .menu li .arrow:hover {
    cursor: pointer;
  }

  header.open nav.show1 .menu .submenu.business-sub-menu,
  header.open nav.show2 .menu .submenu.avs3-submenu,
  header.open nav.show3 .menu .submenu.smart-submenu {
    display: block;
  }

  header.open nav.show1 .menu li .bus-arrow,
  header.open nav.show2 .menu li .avs-arrow {
    transform: rotate(180deg);
  }

  header.open nav.show3 .menu li .smart-arrow {
    transform: rotate(90deg);
  }

  @keyframes slideDown {
    from {
      height: 0;
      opacity: 0;
    }

    to {
      height: 100vh;
      padding-top: 80px;
      opacity: 1;
    }
  }

  @keyframes showMenu {
    from {
      opacity: 0;
      transform: translateY(-1vh);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

}

@media (max-width: 768px) {
  footer .footer-items {
    padding: 62px 14px 20px 10px;
    grid-template-columns: 0.7fr 0.9fr 1fr;
  }

  .footer-items .logo {
    margin-left: -98px;
    padding-top: 20px;
    text-align: right;
  }

  .footer-items .logo img {
    width: 108px;
  }

  .footer-item ul li {
    font-size: 12px;
  }

  /* .footer-item img {
    width: 12px;
    margin-right: 6px;
  } */

  /* 底部小标 */
  .footer-item ul .address-icon::before,
  .footer-item ul .call-icon::before,
  .footer-item ul .mail-icon::before,
  .footer-item ul .wechat-icon::before,
  .footer-item ul .join-icon::before {
    margin-right: 6px;
  }

  .footer-item ul .address-icon::before {
    width: 14px;
    height: 16px;
    background-size: 14px 16px;
  }
  
  .footer-item ul .call-icon::before {
    width: 15px;
    height: 16px;
    background-size: 15px 16px;
  }
  
  .footer-item ul .mail-icon::before {
    width: 14px;
    height: 11px;
    background-size: 14px 11px;
  }
  
  .footer-item ul .wechat-icon::before,
  .footer-item ul .join-icon::before {
    width: 15px;
    height: 12px;
    background-size: 15px 12px;
  }
}

@media (max-width:600px) {
  footer .footer-items {
    margin: 0 auto;
    padding: 20px;
    grid-template-columns: unset;
    grid-template-areas: 
    "A A"
    "B C";
    column-gap: 8px;
  }

  .A {
    grid-area: A;
  }

  .B {
    grid-area: B;
    min-width: 220px;
  }

  .C {
    grid-area: C;
  }

  .footer-items .logo {
    width: 100%;
    height: 170px;
    margin: 0 auto;
    padding-top: 10px;
    text-align: center;
  }

  .footer-items .footer-item {
    margin: 0 auto;
    min-width: 220px;
  }

  header.open nav ul.menu>li .submenu-item a {
    width: 66%;
  }
}

@media (max-width:472px) {
  header {
    padding: 0 20px;
  }

  /* 布局 */
  footer .footer-items {
    grid-template-areas: 
    "A A"
    "B B"
    "C C";
  }

  .footer-items .logo {
    padding-left: 16px;
  }

  .footer-items .footer-item {
    margin:unset;
  }

  .footer-items .B {
    padding-bottom: 10px;
    padding-right: 10px;
  }

  .footer-item ul li {
    font-size: 11px;
    margin-bottom: 6px;
    margin-top: 6px;
  }

  .B ul {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    column-gap: 4px;
  }

  .C ul {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 6px;
  } 

  .footer-item {
    text-align: center;
  }

  .footer-item ul {
    text-align: left;
  }

  .footer-item>h4 {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  /* 底部小标 */
  .footer-item ul .address-icon::before,
  .footer-item ul .call-icon::before,
  .footer-item ul .mail-icon::before,
  .footer-item ul .wechat-icon::before,
  .footer-item ul .join-icon::before {
    margin-right: 4px;
  }

  .footer-item ul .address-icon::before {
    width: 11px;
    height: 13px;
    background-size: 11px 13px;
  }
  
  .footer-item ul .call-icon::before {
    width: 12px;
    height: 13px;
    background-size: 12px 13px;
  }
  
  .footer-item ul .mail-icon::before {
    /* padding-bottom: 2px; */
    width: 11px;
    height: 8px;
    background-size: 11px 8px;
  }
  
  .footer-item ul .wechat-icon::before,
  .footer-item ul .join-icon::before  {
    width: 13px;
    height: 10px;
    background-size: 13px 10px;
  }

  .contact-footer img {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto;
    margin-top: 22%;
  }

  .contact-footer {
    display: grid;
    grid-template-columns: 1fr 0fr;
  }

  .footer-bottom {
    line-height: 3.2rem;
    font-size: 10px;
  }

  header.open nav ul.menu>li .submenu-item a {
    width: 70%;
    /* padding: 10px 36px 10px 20px; */
  }
}

@media (max-width: 330px) {
  header.open nav {
    width: 80%;
  }
}

@media (min-width: 2200px) {
  footer .footer-items {
    max-width: 1336px;
    padding: 82px 0;
    grid-template-columns: 1fr 1.2fr 1.3fr;
  }
  
  .footer-items .logo {
    text-align: center;
  }
  
  .footer-items .logo img {
    margin: 0 auto;
    width: 182px;
  }
}
