/* Footer layout is self-contained so legacy footer element rules cannot squeeze it. */
footer.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-content: stretch;
  gap: 42px 38px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 56px 5% 25px;
  border-top: 1px solid var(--line, #e5e5e5);
  background: #f7f9f8;
  color: #525252;
  text-align: left;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: normal;
  word-break: normal;
  overflow-wrap: normal;
}

footer.site-footer > div {
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: none;
  justify-content: initial;
  align-items: initial;
}

footer.site-footer > .footer-intro {
  display: block;
  grid-column: auto;
  min-width: 0;
}

footer.site-footer .footer-brand {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: var(--studio-navy, #17324d);
  font: 700 24px/1.2 Arial, sans-serif;
  letter-spacing: -1px;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
}

footer.site-footer .footer-brand > span {
  display: inline-block;
  flex: none;
  margin: 0;
  color: inherit;
  font: 500 11px/1.4 "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 1px;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
}

footer.site-footer .footer-intro > p {
  display: block;
  margin: 20px 0 18px;
  padding: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #525252;
}

footer.site-footer .footer-intro > a:not(.footer-brand) {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin: 5px 0;
  color: var(--studio-navy, #17324d);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: normal;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

footer.site-footer > .footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 11px;
  min-width: 0;
  margin: 0;
}

footer.site-footer .footer-links > span {
  display: block;
  margin: 2px 0 10px;
  color: #737373;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .3px;
}

footer.site-footer .footer-links > a {
  display: block;
  max-width: 100%;
  margin: 0;
  color: #3f3f3f;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: normal;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

footer.site-footer a:hover {
  color: var(--studio-teal, #247f7a);
}

footer.site-footer > .footer-base {
  display: flex;
  grid-column: 1 / -1;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line, #e5e5e5);
  color: #737373;
  font-size: 10px;
  line-height: 1.8;
}

footer.site-footer .footer-base > span,
footer.site-footer .footer-base > a {
  display: inline-block;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
  word-break: normal;
  overflow-wrap: normal;
}

footer.site-footer .footer-base > a {
  color: var(--studio-navy, #17324d);
  white-space: nowrap;
}

footer.site-footer .footer-base .motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: var(--studio-navy, #17324d);
  font-size: inherit;
}

footer.site-footer .motion-text { display: inline; }

@media (min-width: 1550px) {
  footer.site-footer {
    padding-left: max(5%, calc((100vw - 1450px) / 2));
    padding-right: max(5%, calc((100vw - 1450px) / 2));
  }
}

@media (max-width: 1100px) {
  footer.site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 48px;
    padding: 45px 5% 24px;
  }
}

@media (max-width: 640px) {
  footer.site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
    padding: 36px 6% 23px;
  }
  footer.site-footer > .footer-intro {
    grid-column: 1 / -1;
  }
  footer.site-footer .footer-brand {
    font-size: 23px;
  }
  footer.site-footer .footer-intro > p {
    margin: 17px 0 15px;
    font-size: 13px;
  }
  footer.site-footer .footer-intro > a:not(.footer-brand) {
    font-size: 12px;
  }
  footer.site-footer .footer-links > a {
    font-size: 11px;
  }
  footer.site-footer .footer-links > span {
    margin-bottom: 7px;
    font-size: 10px;
  }
  footer.site-footer > .footer-links:nth-of-type(4) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 11px 22px;
  }
  footer.site-footer > .footer-links:nth-of-type(4) > span {
    grid-column: 1 / -1;
  }
  footer.site-footer > .footer-base {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 9px;
    padding-top: 20px;
    font-size: 9px;
  }
}
