/* 公开页导航统一以首页为定位基准，最后加载；不改变正文组件和页脚。
   统一视口的滚动条占位与最小宽度，避免旧内页的10px滚动条、320px下限造成切页偏移。 */
html { min-width: 0; scrollbar-gutter: stable; scrollbar-color: #c5bfd7 #faf9ff; }
body { min-width: 0; }
.site-header.shared-navigation {
  position: relative;
  height: 62px;
  border-bottom: 0;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: normal;
  font-synthesis: none;
}
/* 旧页曾给链接单独指定系统字库；显式继承后Logo、菜单与CTA的文字宽度一致。 */
.site-header :is(a,button) { font-family: inherit; }
.site-header .nav-shell {
  position: static;
  width: min(86%,1120px);
  height: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 分档间距避免不同旧页的滚动条样式影响vw计算，切页不重新分配菜单位置。 */
  gap: 56px;
  border-bottom: 1px solid #cec9dd;
}
.site-header .brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: baseline;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #111322;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.site-header .brand .brand-cn {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.site-header .brand .brand-ai {
  margin: 0;
  color: #f34d24;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: inherit;
}
/* ID限定到现有导航，覆盖旧内页的居中网格、缩放及更高优先级的菜单显隐规则。 */
.site-header #primary-navigation {
  position: static;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  margin: 0;
  padding: 0;
  gap: 32px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}
.site-header #primary-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: #111322;
  background: none;
  border-radius: 0;
  font-size: inherit;
  font-weight: 500;
  line-height: normal;
  letter-spacing: normal;
  white-space: nowrap;
  text-decoration: none;
}
/* 仅颜色和下划线表达当前位置，不改变字重、字宽或间距，防止切页抖动。 */
.site-header #primary-navigation a:is(.is-current,[aria-current="page"]) { color: #bb3210; }
.site-header #primary-navigation a::after {
  content: '';
  position: absolute;
  display: block;
  left: 0;
  right: 0;
  bottom: 4px;
  width: auto;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: #f34d24;
  transform: none;
  opacity: 0;
  transition: opacity 220ms ease;
}
.site-header #primary-navigation a:is(.is-current,[aria-current="page"],:hover,:focus-visible)::after { opacity: 1; }
.site-header .nav-cta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  margin: 0 0 0 auto;
  padding: 9px 18px;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: #db3b12;
  box-shadow: none;
  transform: none;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  transition: background 180ms ease;
}
.site-header .nav-cta:hover { background: #b92f0d; transform: none; box-shadow: none; }
.site-header .nav-cta:active { transform: none; }
.site-header .nav-cta :is(.home-arrow,.arrow-icon) { position: relative; display: inline-block; flex-shrink: 0; width: 18px; height: 12px; }
.site-header .nav-cta :is(.home-arrow,.arrow-icon)::before { content: ''; position: absolute; left: 0; top: 5px; width: 17px; height: 1.5px; border-radius: 0; background: currentColor; }
.site-header .nav-cta :is(.home-arrow,.arrow-icon)::after { content: ''; position: absolute; right: 1px; top: 1px; width: 9px; height: 9px; border-radius: 0; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.site-header .nav-cta svg { width: 18px; height: 12px; }
.site-header .menu-toggle { display: none; }
.site-header :is(a,button):focus-visible { outline: 2px solid #bb3210; outline-offset: 5px; }
.site-header [hidden] { display: none !important; }
@media (max-width:1180px) {
  .site-header .nav-shell { gap: 32px; }
  .site-header #primary-navigation { gap: 24px; }
}
/* 和首页一样：960px以下菜单折叠，601–960px保留右侧CTA，手机隐藏CTA。 */
@media (max-width:960px) {
  .site-header .nav-shell { width: min(calc(100% - 64px),760px); gap: 20px; }
  .site-header .nav-cta { display: inline-flex; margin-left: auto; font-size: 13px; padding: 10px 14px; }
  .js .site-header .menu-toggle {
    order: 3;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 13px;
    border: 1px solid #d0c9df;
    border-radius: 8px;
    background: #ffffffb3;
  }
  .site-header .menu-toggle span { display: block; width: 17px; height: 1px; border-radius: 0; background: #111322; transform: none; opacity: 1; }
  .site-header .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); opacity: 1; }
  .site-header #primary-navigation { display: none; position: absolute; z-index: 40; top: 61px; left: 32px; right: 32px; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 25px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 18px 35px #78648e20; font-size: 16px; }
  .site-header #primary-navigation.is-open { display: flex; }
  .site-header #primary-navigation a { padding: 8px; }
  .site-header #primary-navigation a::after { display: none; }
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .site-header .nav-shell { height: auto; min-height: 62px; flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .site-header #primary-navigation { display: flex; position: static; order: 4; width: 100%; flex-direction: row; flex-wrap: wrap; padding: 0; box-shadow: none; background: transparent; gap: 10px; }
}
@media (max-width:600px) {
  .site-header .nav-shell { width: calc(100% - 40px); gap: 12px; }
  .site-header .brand { font-size: 24px; }
  .site-header .nav-cta { display: none; }
  .js .site-header .menu-toggle { margin-left: auto; }
  .site-header #primary-navigation { left: 20px; right: 20px; }
}
@media (prefers-reduced-motion:reduce) {
  .site-header #primary-navigation a::after,.site-header .nav-cta { transition: none; }
}
