/* Shared navigation spacing and selection behavior. Loaded last on every route. */
.nav-dropdown,
.pu-dropdown,
.gc-dropdown,
.global-cooperation-dropdown,
.jiuwu-patched-menu > div {
  box-sizing: border-box;
  padding: 12px !important;
}

.nav-dropdown a,
.pu-dropdown a,
.gc-dropdown a,
.global-cooperation-dropdown a,
.jiuwu-patched-menu > div a {
  box-sizing: border-box;
  padding: 10px 14px !important;
  min-height: 40px;
  display: flex !important;
  align-items: center;
}

/* Only one row may look selected while the pointer is inside a submenu. */
.nav-dropdown:hover a.is-active:not(:hover),
.pu-dropdown:hover a.is-active:not(:hover),
.gc-dropdown:hover a.is-active:not(:hover),
.global-cooperation-dropdown:hover a.is-active:not(:hover),
.jiuwu-patched-menu > div:hover a.is-active:not(:hover) {
  background: #fff !important;
  color: #101721 !important;
}

.jiuwu-footer-host {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.jiuwu-global-footer {
  margin-top: auto;
  width: 100%;
  flex: 0 0 auto;
  background: #101112;
  color: #9ea4aa;
  padding: 78px clamp(32px, 5.4vw, 104px) 30px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Preserve the homepage slogan as a compact two-line editorial lockup. */
.hero-copy {
  width: 45%;
}

.hero-copy h1 {
  text-wrap: balance;
  max-width: none;
  font-size: clamp(46px, 5vw, 78px);
}

.jiuwu-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) minmax(680px, 4fr);
  gap: clamp(48px, 8vw, 150px);
  align-items: start;
  padding-bottom: 72px;
}

.jiuwu-footer-brand > a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
}

.jiuwu-footer-brand b {
  font: 700 28px/1.1 ui-serif, "Songti SC", "STSong", serif;
  letter-spacing: .08em;
}

.jiuwu-footer-brand strong {
  color: #c8a361;
  font: 700 11px/1 ui-monospace, monospace;
  letter-spacing: .23em;
}

.jiuwu-footer-brand p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
}

.jiuwu-footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.jiuwu-footer-socials a {
  width: 44px;
  height: 44px;
  border: 1px solid #45484b;
  color: #c6a66f;
  text-decoration: none;
  display: grid;
  place-items: center;
  font: 500 12px/1 ui-monospace, monospace;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.jiuwu-footer-socials a:hover,
.jiuwu-footer-socials a:focus-visible {
  background: #c6a66f;
  border-color: #c6a66f;
  color: #101112;
  outline: none;
}

.jiuwu-footer-social svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jiuwu-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jiuwu-footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: clamp(22px, 3vw, 58px);
}

.jiuwu-footer-links section > p {
  color: #72777c;
  margin: 0 0 24px;
  font-size: 14px;
}

.jiuwu-footer-links a {
  color: #b8bdc2;
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  font-size: 15px;
  line-height: 1.45;
  transition: color 150ms ease, transform 150ms ease;
}

.jiuwu-footer-links a:hover,
.jiuwu-footer-links a:focus-visible {
  color: #fff;
  transform: translateX(3px);
  outline: none;
}

.jiuwu-global-footer > small {
  display: block;
  border-top: 1px solid #4b4e51;
  padding-top: 32px;
  color: #747a80;
  font: 12px/1.4 ui-monospace, monospace;
  letter-spacing: .1em;
}

@media (max-width: 1100px) {
  .jiuwu-footer-grid { grid-template-columns: 1fr; }
  .jiuwu-footer-links { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
}

@media (max-width: 680px) {
  .hero-copy { width: 100%; }
  .jiuwu-global-footer { padding: 56px 22px 25px; }
  .jiuwu-footer-grid { gap: 48px; padding-bottom: 48px; }
  .jiuwu-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 26px; }
  .jiuwu-footer-links a { min-height: 38px; font-size: 14px; }
}
