.site-header {
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 5;
}
.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-serif, 'Songti SC', serif);
  font-size: 20px;
  letter-spacing: 0.22em;
}
.wordmark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.site-header nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: #c6bccd;
}
.site-header nav a,
.header-download {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-header nav a:hover {
  color: #fff;
}
.header-download {
  justify-self: end;
  border: 1px solid #8a75ad99;
  border-radius: 999px;
  padding: 0 17px;
  font-size: 13px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.header-download:hover {
  background: #8a75ad22;
  transform: translateY(-1px);
}
.site-footer {
  color: #c3b8ca;
  background: #100e14;
}
.site-footer__inner {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding-block: 40px;
}
.site-footer__brand {
  display: grid;
  grid-template-columns: 28px auto;
  gap: 9px;
  align-items: center;
}
.site-footer__brand img {
  width: 28px;
  height: 28px;
}
.site-footer__brand span {
  color: #fff;
  font-family: var(--font-serif, 'Songti SC', serif);
  letter-spacing: 0.18em;
}
.site-footer__brand p {
  grid-column: 1 / -1;
  margin: 7px 0 0;
  color: #7e7385;
  font: 12px var(--font-serif, 'Songti SC', serif);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 12px;
}
.site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer nav a:hover {
  color: #fff;
}
.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid #ffffff0f;
  color: #675f6c;
  font-size: 10px;
}

.footer-records {
  display: none;
}
@media (min-width: 821px) and (hover: hover) and (pointer: fine) {
  .site-footer .copyright {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .footer-records {
    display: flex;
    grid-column: 2;
    white-space: nowrap;
    align-items: center;
    gap: 20px;
    color: #c3b8ca;
    font-size: 12px;
  }
  .footer-records a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .footer-records a:hover {
    color: #fff;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-header nav {
    display: none;
  }
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
  .copyright {
    grid-column: 1;
  }
}
@media (max-width: 520px) {
  .header-download {
    font-size: 0;
    padding: 0 14px;
  }
  .header-download::after {
    content: '下载';
    font-size: 13px;
  }
  .site-footer nav {
    gap: 8px 18px;
  }
}
.site-header,
.site-footer {
  line-height: 1.5;
}
.site-header {
  color: #f4eef8;
}
.site-header.container,
.site-footer__inner.container {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
}
.site-header a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}
@media (max-width: 820px) {
  .site-header.container,
  .site-footer__inner.container {
    width: calc(100% - 36px);
  }
}

.wordmark img,
.site-footer__brand img {
  border-radius: 23%;
  background-color: white;
}

/* Shared website shell, including standalone connection guides. */
.site-header {
  display: flex;
  justify-content: space-between;
  height: 80px;
  background: #25272b;
  box-shadow: 0 0 0 100vmax #25272b;
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid #ffffff20;
  color: #f4f4f5;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #e1dce7;
}
.wordmark,
.site-footer__brand span {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.site-footer__brand {
  display: flex;
  gap: 10px;
}
.site-header .header-download {
  background: #796298;
  border-color: #796298;
  color: #fff;
}
.site-header .header-download:hover {
  background: #685383;
  transform: none;
}
.site-footer {
  background: #25272b;
  color: #bbc0c5;
}
body > .site-header,
.outcome-screen > .site-header {
  background: #25272b;
  box-shadow: 0 0 0 100vmax #25272b;
}
@media (max-width: 600px) {
  .site-header {
    height: 70px;
  }
  .site-header nav {
    gap: 14px;
    font-size: 12px;
  }
  .site-header .header-download {
    font-size: 12px;
    padding: 0 12px;
  }
}

/* The shared label already includes the download action on narrow screens. */
.site-header .header-download::after {
  content: none;
}

/* Leave the flexible space after the brand so all actions stay together. */
header.site-header.container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  column-gap: 14px;
  white-space: nowrap;
}
.site-header.container > .wordmark {
  margin-inline-end: auto;
  flex: none;
}
.site-header.container > nav,
.site-header.container > .header-download {
  flex: none;
}
.site-header.container > :is(.product-languages, .ai-languages) { gap: 0; }
.site-header :is(.product-languages, .ai-languages) a {
  justify-content: center;
  min-width: 30px;
}
.site-header :is(.product-languages, .ai-languages) a[aria-current='page'] {
  color: white;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (max-width: 600px) {
  header.site-header.container { column-gap: 6px; height: 64px; }
  .site-header.container .wordmark { gap: 6px; font-size: 18px; }
  .site-header.container > nav { font-size: 13px; }
  .site-header :is(.product-languages, .ai-languages) a { min-width: 26px; }
}
@media (max-width: 389px) {
  html:lang(en) .site-header.container .wordmark span { display: none; }
}
@media (max-width: 374px) {
  .site-header.container .wordmark span { display: none; }
}
