/* 统一页头：供不加载 site.css 的独立主题页面（子站 landing / 老 WP 页面）使用。
   数值与 assets/css/site.css 的 .site-header 段逐项对齐，选择器全部收在 .site-header 内，避免污染页面主体。 */

.site-header.hk-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  width: 100%;
  height: 82px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  background: #0a2a4a;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, box-shadow .25s, color .25s, border-color .25s;
}
.site-header.hk-header *,
.site-header.hk-header *::before,
.site-header.hk-header *::after { box-sizing: border-box; }
.site-header.hk-header img { max-width: 100%; }

.site-header.hk-header .nav-wrap {
  display: flex;
  align-items: center;
  gap: 34px;
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
}
.site-header.hk-header .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 auto 0 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
.site-header.hk-header .brand-mark {
  width: 116px;
  height: auto;
  border: 0;
  filter: brightness(0) invert(1);
}
.site-header.hk-header .brand-copy { display: grid; line-height: 1.1; white-space: nowrap; }
.site-header.hk-header .brand-copy strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0;
}
.site-header.hk-header .brand-copy small {
  display: block;
  margin-top: 4px;
  font-size: .9rem;
  letter-spacing: .18em;
  opacity: .72;
}

.site-header.hk-header .main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: static;
  background: none;
  box-shadow: none;
}
.site-header.hk-header .main-nav a {
  position: relative;
  display: block;
  padding: 26px 0;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: normal;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.site-header.hk-header .main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .2s;
}
.site-header.hk-header .main-nav a:hover::after,
.site-header.hk-header .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-header.hk-header .nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.site-header.hk-header .nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transform: none !important;
  opacity: 1 !important;
}
.site-header.hk-header .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;
}

.site-header.hk-header .button--light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: normal;
  line-height: 1.2;
  color: #063a77;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, background .2s, color .2s;
}

/* —— 滚动后的白底状态：与 site.css 的 is-scrolled / nav-open 一致 —— */
.site-header.hk-header.is-scrolled,
.site-header.hk-header.nav-open {
  color: #102638;
  background: rgba(255, 255, 255, .96);
  border-bottom-color: transparent;
  box-shadow: 0 10px 30px rgba(3, 35, 66, .1);
}
.site-header.hk-header.is-scrolled .brand-mark,
.site-header.hk-header.nav-open .brand-mark { filter: none; }
.site-header.hk-header.is-scrolled .button--light,
.site-header.hk-header.nav-open .button--light { color: #fff; background: #063a77; }

/* —— 覆盖在有 hero 大图之上的透明版（子站 landing 页） —— */
.site-header.hk-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.site-header.hk-overlay.is-scrolled,
.site-header.hk-overlay.nav-open {
  position: fixed;
  background: rgba(255, 255, 255, .96);
}

@media (max-width: 1040px) {
  .site-header.hk-header .nav-wrap { width: min(920px, calc(100% - 36px)); }
  .site-header.hk-header .main-nav { gap: 18px; }
  .site-header.hk-header .header-cta { display: none; }
}

@media (min-width: 900px) {
  .site-header.hk-header .header-cta { display: inline-flex; }
}

@media (max-width: 899px) {
  .site-header.hk-header,
  .site-header.hk-header.is-scrolled,
  .site-header.hk-header.nav-open { height: 64px; }
  .site-header.hk-header .nav-wrap { width: calc(100% - 28px); gap: 0; }
  .site-header.hk-header .brand-mark { width: 92px; }
  .site-header.hk-header .brand-copy { display: none; }
  .site-header.hk-header .nav-toggle { display: block; margin-left: auto; }
  .site-header.hk-header .main-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 20px 22px;
    color: #102638;
    background: #fff;
    box-shadow: 0 20px 30px rgba(3, 35, 66, .13);
  }
  .site-header.hk-header.nav-open .main-nav { display: block; }
  .site-header.hk-header .main-nav a {
    display: block;
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid #d9e1e6;
  }
  .site-header.hk-header .main-nav a::after { display: none; }
  .site-header.hk-header .header-cta { display: none; }
}
