/* Header */
:root { --site-header-height: 112px; }
.site-contact-strip { background: #123b60; color: #fff; }
.site-contact-strip > .site-header-container { display: flex; align-items: center; justify-content: flex-end; min-height: 40px; }
.site-contact-numbers { display: flex; align-items: center; gap: 14px; }
.site-contact-divider { color: #9fb7cd; }
.site-contact-phone { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; color: #fff; white-space: nowrap; }
.site-contact-phone svg { color: #8ce7da; }
.site-contact-phone strong { font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.site-header .site-contact-phone:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-contact-phone:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 4px; }
.site-language { position: relative; flex: 0 0 auto; margin-left: 0; }
.site-language summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 9px; color: #fff; cursor: pointer; font-size: 14px; white-space: nowrap; list-style: none; }
.site-language summary::-webkit-details-marker { display: none; }
.site-language nav { position: absolute; top: calc(100% + 8px); right: 0; min-width: 144px; padding: 6px; border: 1px solid #dce6f0; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgb(10 35 60 / 18%); z-index: 35; }
.site-header .site-language nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 7px; color: #163a5d; font-size: 15px; white-space: nowrap; }
.site-language-flag { display: block; flex: 0 0 24px; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 12%); object-fit: cover; }
.site-language-check { margin-left: auto; padding-left: 6px; color: #246fb8; }
.site-language nav a:hover, .site-language nav a[aria-current] { background: #edf4fb; font-weight: 600; }
.site-language nav a:focus-visible { outline-color: #246fb8; }
html[lang="zh-Hans"] { word-break: normal; overflow-wrap: anywhere; }
@media (min-width: 1200px) { .primary-navigation { gap: 10px; } .site-brand-name { font-size: 18px; } .primary-navigation .primary-navigation-links a { padding-inline: 9px; } .site-search { max-width: 220px; min-width: 130px; } }
@media (max-width: 639px) { .site-language summary { padding-inline: 8px; } }
@media print { .site-language { display: none; } }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: var(--shadow-soft);
}
.home-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .site-header.is-scrolled {
  position: fixed;
  top: 0;
  background: var(--color-brand);
  box-shadow: var(--shadow-soft);
}
.site-header-container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: 1280px;
  margin-inline: auto;
}
.site-header a, .site-header a:hover {
  text-decoration: none;
}
.primary-navigation :focus-visible {
  outline-color: #fff;
}
.primary-navigation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.primary-navigation .site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: #fff;
}
.site-brand-image {
  display: block;
  max-width: 100%;
  height: 52px;
  width: auto;
  border-radius: 6px;
}
.site-brand-name {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}
.primary-navigation .primary-navigation-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-navigation .primary-navigation-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  min-height: 44px;
}
.primary-navigation .primary-navigation-links a:hover, .primary-navigation .primary-navigation-links a.is-active {
  background: rgb(255 255 255 / 15%);
}
.navigation-toggle {
  display: none;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  min-height: 44px;
}

.site-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 160px;
  max-width: 280px;
  margin: 0;
}
.site-search[hidden], .site-search-panel[hidden] {
  display: none !important;
}
.site-search-field {
  display: flex;
  overflow: hidden;
  border: 1px solid #c9d6e5;
  border-radius: 24px;
  background: #fff;
}
.site-search input {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 8px 0 8px 14px;
  border: 0;
  background: transparent;
  color: #1b1b1b;
  font-size: 16px;
}
.site-search input::placeholder {
  color: #6b7685;
  font-size: 14px;
  opacity: 1;
}
.site-search button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #174f88;
  cursor: pointer;
}
.site-search button:hover {
  background: #eef2f7;
}
.site-search-field:focus-within {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.site-search input:focus {
  outline: none;
  box-shadow: none;
}
.site-search button:focus-visible {
  outline: 2px solid #174f88;
  outline-offset: -3px;
  border-radius: 50%;
}
.site-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(420px, calc(100vw - 2 * var(--page-gutter)));
  max-height: min(480px, calc(100dvh - var(--site-header-height) - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: #fff;
  color: #1b1b1b;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}
.site-search-status {
  margin: 0;
  padding: 12px 16px;
  color: #526173;
  font-size: 13px;
  line-height: 1.5;
}
.site-search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-search-results li {
  border-top: 1px solid #eef2f7;
}
.site-search-results a {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  min-height: 44px;
  color: #174f88;
  overflow-wrap: anywhere;
}
.site-search-results a:hover, .site-search-results a:focus-visible {
  background: #eef5fc;
  outline: 2px solid #174f88;
  outline-offset: -2px;
}
.site-search-result-title {
  font-size: 14px;
  font-weight: 600;
}
.site-search-result-excerpt {
  color: #526173;
  font-size: 12px;
  line-height: 1.5;
}

@media (width < 1400px) {
  .primary-navigation {
    gap: 12px;
  }
  .site-brand-name {
    font-size: 20px;
  }
  .primary-navigation .primary-navigation-links {
    gap: 0;
  }
  .primary-navigation .primary-navigation-links a {
    padding-inline: 9px;
  }
}
@media (width < 1200px) {
  :root {
    --site-header-height: 168px;
  }
  /* Let the expanded fallback navigation scroll if JavaScript is unavailable. */
  .site-header {
    position: relative;
  }
  .site-header.is-navigation-ready {
    position: sticky;
  }
  .home-page .site-header {
    position: relative;
    top: 0;
    background: var(--color-brand);
  }
  .home-page .site-header.is-navigation-ready {
    position: absolute;
  }
  .home-page .site-header.is-navigation-ready.is-scrolled {
    position: fixed;
  }
  .site-brand-image {
    height: 56px;
  }
  .primary-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 72px auto;
    column-gap: 12px;
    row-gap: 0;
    padding-bottom: 12px;
  }
  .site-brand {
    grid-column: 1;
    grid-row: 1;
  }
  .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .site-search-panel {
    width: 100%;
  }
  .navigation-toggle {
    grid-column: 2;
    grid-row: 1;
  }
  .is-navigation-ready .navigation-toggle {
    display: block;
  }
  .primary-navigation .primary-navigation-links {
    grid-column: 1 / -1;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    padding-bottom: 12px;
  }
  .is-navigation-ready .primary-navigation .primary-navigation-links {
    display: none;
    position: absolute;
    top: calc(var(--site-header-height) - 40px);
    left: 0;
    right: 0;
    padding: 12px;
    border-radius: 0 0 12px 12px;
    background: var(--color-brand);
    box-shadow: var(--shadow-soft);
    max-height: calc(100vh - var(--site-header-height));
    max-height: calc(100dvh - var(--site-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .is-navigation-ready .primary-navigation .primary-navigation-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .primary-navigation .primary-navigation-links a {
    padding: 12px 16px;
  }
}
@media (width < 576px) {
  .site-contact-strip > .site-header-container { justify-content: center; }
  .site-contact-numbers { gap: 10px; }
  .site-contact-phone { gap: 6px; }
  .site-contact-phone strong { font-size: 16px; }
  .site-brand-name {
    max-width: 12ch;
    font-size: 15px;
    white-space: normal;
    line-height: 1.2;
  }
  .site-brand-image {
    height: 44px;
  }
}

@media (width < 1200px) { .primary-navigation { grid-template-columns: minmax(0, 1fr) auto auto; } .site-language { grid-column: 3; grid-row: 1; justify-self: end; } .navigation-toggle { grid-column: 2; } }
@media (min-width: 1200px) {
  .primary-navigation .primary-navigation-links { margin-left: auto; }
  .site-language { margin-left: -4px; }
}
@media (width < 1200px) { .primary-navigation { column-gap: 8px; } }
@media (width < 360px) {
  .site-contact-numbers { gap: 8px; }
  .site-contact-phone strong { font-size: 14px; }
  .site-contact-phone svg { width: 16px; height: 16px; }
  .primary-navigation .site-brand { gap: 6px; }
  .site-brand-image { height: 36px; }
  .site-brand-name { font-size: 12px; max-width: 10ch; }
}
