/* V38 — 全站统一顶部尺寸、宽度与菜单分配 */
:root{
  --fg-site-width:1380px;
  --fg-header-width:1500px;
  --fg-topbar-height:30px;
  --fg-navbar-height:70px;
}

@media (min-width:981px){
  html body .top-bar,
  html body.kw-page .top-bar{
    display:flex!important;
    position:relative!important;
    top:auto!important;left:auto!important;right:auto!important;
    width:100%!important;
    height:var(--fg-topbar-height)!important;
    min-height:var(--fg-topbar-height)!important;
    transform:none!important;
    align-items:center!important;
    background:#111827!important;
    z-index:1101!important;
  }
  html body .top-bar>.container,
  html body .top-bar .container{
    width:100%!important;
    max-width:var(--fg-header-width)!important;
    height:var(--fg-topbar-height)!important;
    margin:0 auto!important;
    padding-left:24px!important;
    padding-right:24px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    box-sizing:border-box!important;
  }

  html body .navbar,
  html body.kw-page .navbar{
    display:block!important;
    position:sticky!important;
    top:0!important;left:0!important;right:0!important;
    width:100%!important;
    height:var(--fg-navbar-height)!important;
    min-height:var(--fg-navbar-height)!important;
    background:#fff!important;
    border-bottom:1px solid #e5e7eb!important;
    z-index:1100!important;
    transform:none!important;
  }
  html body .navbar>.container,
  html body .navbar .container{
    width:100%!important;
    max-width:var(--fg-header-width)!important;
    height:var(--fg-navbar-height)!important;
    margin:0 auto!important;
    padding-left:24px!important;
    padding-right:24px!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
  }
  html body .navbar-inner{
    width:100%!important;
    height:var(--fg-navbar-height)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:0!important;
  }
  html body .navbar .logo,
  html body .navbar .logo.fg-logo-img{
    flex:0 0 auto!important;
    margin:0!important;
  }
  html body .navbar .nav-links{
    flex:1 1 auto!important;
    min-width:0!important;
    height:var(--fg-navbar-height)!important;
    margin:0 34px 0 58px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:6px!important;
  }
  html body .navbar .nav-links>a,
  html body .navbar .nav-links>.fg-service-menu>a{
    height:var(--fg-navbar-height)!important;
    padding:0 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
    font-size:15px!important;
    line-height:1.2!important;
  }
  html body .navbar .fg-service-menu{
    height:var(--fg-navbar-height)!important;
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
  }
  html body .navbar .nav-actions{
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
  }
  html body .navbar .nav-consult-btn{
    min-height:44px!important;
    padding:0 24px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:15px!important;
  }

  /* 滚动后生成的导航也使用同一宽度，避免再次变窄 */
  html body .fg-sticky-nav-clone .container,
  html body .fg-scroll-fixed-nav__inner{
    width:100%!important;
    max-width:var(--fg-header-width)!important;
    margin:0 auto!important;
    padding-left:24px!important;
    padding-right:24px!important;
    box-sizing:border-box!important;
  }

  /* 取消历史页面留下的顶部补偿，避免有的高有的低 */
  html body{padding-top:0!important;}
  html body .page-banner,
  html body .hero-section,
  html body .kw-hero{margin-top:0!important;}
}

/* 全站正文宽度统一；顶部可略宽，以保证菜单不拥挤 */
html body .container{max-width:var(--fg-site-width)!important;box-sizing:border-box!important;}
html body .container-narrow{max-width:1160px!important;box-sizing:border-box!important;}
html body .top-bar .container,
html body .navbar .container{max-width:var(--fg-header-width)!important;}

@media (max-width:1500px) and (min-width:981px){
  html body .navbar .nav-links{margin-left:34px!important;margin-right:22px!important;gap:2px!important;}
  html body .navbar .nav-links>a,
  html body .navbar .nav-links>.fg-service-menu>a{padding-left:7px!important;padding-right:7px!important;font-size:14px!important;}
}

@media (max-width:980px){
  html body .top-bar,
  html body.kw-page .top-bar{display:none!important;}
  html body .navbar,
  html body.kw-page .navbar{position:sticky!important;top:0!important;height:60px!important;min-height:60px!important;}
  html body .navbar>.container,
  html body .navbar .container,
  html body .navbar-inner{height:60px!important;}
}
