/* footer */
footer {
  width: 100%;
  height: auto;
  background-color: #f2f4f5;
  color: #fff;
  text-align: center;
  padding: 64px 0 16px;
  box-sizing: border-box;
  font-size: 16px;
}
footer .inner {
  max-width: 1200px;
  padding-left: clamp(20px, 2.46vw, 80px);
  padding-right: clamp(20px, 2.46vw, 80px);
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
footer .inner .link-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 64px;
  gap: 0 78px;
}

footer .inner .link-wrapper .menu,
footer .inner .link-wrapper .menu .sub-menu {
  text-align: left;
}
footer .inner .link-wrapper .menu .menu-item a {
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  display: inline-block;
  cursor: pointer;
  color: rgba(10, 10, 10, 0.3);
  font-family: Montserrat, Roboto;
}

footer .inner .link-wrapper .menu .menu-item-has-children > a {
  margin-bottom: 24px;
  color: rgba(10, 10, 10, 0.3);
  font-family: Montserrat, Roboto;
}

footer .inner .link-wrapper .menu .sub-menu .menu-item a {
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  color: #0a0a0a;
  font-family: "Roboto";
  line-height: 1.2;
}
footer .bottom-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
footer .bottom-mobile .langIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: #ffffff;
  border-radius: 32px;
  height: 38px;
  margin-bottom: 10px;
}
footer .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 20px;
}
footer .lang {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
footer .lang .langIcon {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: rgba(10, 10, 10, 0.5);
}
footer .lang .langIcon .langName {
  margin-left: 10px;
  font-size: 16px;
  font-family: "Roboto";
}

footer .lang .text {
  margin-right: 10px;
  color: #494949;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.5px;
}
footer .lang .itemList.active {
  display: block;
}

footer .lang .itemList {
  position: absolute;
  display: none;
  padding: 10px 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  z-index: 9;
}
footer .bottom .lang .itemList {
  bottom: 40px;
}
footer .bottom-mobile .lang .itemList {
  bottom: 56px;
}
footer .lang .itemList a {
  display: block;
  width: 100%;
  height: 40px;
  letter-spacing: 1px;
  box-sizing: border-box;
  padding: 0 20px;
  text-align: center;
  color: rgba(10, 10, 10, 0.5);
  font-size: 14px;
  line-height: 40px;
  white-space: nowrap;
}
footer .lang .itemList a:hover {
  background: #f0f0f0;
}
.link-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 18px;
}
.link-wrapper ul li:last-child {
  border: none;
}
footer .copyright {
  color: rgba(10, 10, 10, 0.5);
  /* 溢出隐藏 */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
footer .bottom-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
footer .bottom-right .bottom-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  overflow: hidden;
}
footer .bottom-right .bottom-link a {
  color: rgba(10, 10, 10, 0.5);
  border-right: 1px solid rgba(10, 10, 10, 0.3);
  padding: 0 16px;
  text-align: center;
  /* 溢出隐藏 */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.2;
}
footer .bottom-right .bottom-link a:last-child {
  border-right: none;
}
footer .bottom-right .bottom-link a:hover {
  text-decoration: underline;
}

/* 404 */
.fof {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  width: 100%;
  margin: 20px auto 20vh;
  padding: 0 20px;
  box-sizing: border-box;
}

.fof img {
  display: block;
  width: 100%;
  max-width: 360px;
}

.fof h2 {
  text-align: center;
  margin: 10px auto;
}
.fof a {
  color: #0966d3;
  text-decoration: underline;
}

#btn_top {
  display: none;
  position: fixed;
  background-color: #ebfaff;
  bottom: 50px;
  right: 20px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
}
#btn_top .icon-forward:before {
  color: #125d60;
}
.icon-forward {
  color: #fff;
  font-size: 25px;
  transform: rotate(270deg);
  font-weight: 700;
  line-height: inherit;
}
footer .inner .link-wrapper .menu .sub-menu {
  line-height: 1.2;
}
@media screen and (max-width: 820px) {
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 10px 16px;
    font-size: 12px;
  }
  footer .inner {
    flex-direction: column;
  }
  .link-wrapper ul {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
    gap: 10px;
  }
  .link-wrapper ul li {
    padding-right: 0;
    margin: 0 0px 8px 0;
  }
  footer .bottom {
    display: none;
  }
  footer .bottom-mobile {
    display: flex;
  }
  footer .bottom-right .bottom-link a:hover {
    text-decoration: none;
  }
  footer .inner .link-wrapper .menu .menu-item-has-children > a {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1;
  }
  footer .inner .link-wrapper .menu .sub-menu .menu-item a {
    font-size: 12px;
    line-height: 1;
  }
  footer .inner .link-wrapper .menu .sub-menu .menu-item {
    margin-bottom: 0;
  }

  #btn_top {
    right: 10px;
    bottom: 85px;
  }
  footer .inner .link-wrapper .menu .menu-item a {
    font-size: 14px;
  }

  footer .inner .link-wrapper {
    grid-template-columns: repeat(1, 1fr);
    padding-bottom: 16px;
    gap: 32px 0;
  }
  footer .inner .link-wrapper .menu,
  footer .inner .link-wrapper .menu .sub-menu {
    text-align: center;
  }
  footer .bottom {
    flex-direction: column;
  }
}
