/* 全站顶部导航：固定在顶部的半透明毛玻璃条（所有页面共用，覆盖各页原有的导航样式） */
html body nav[aria-label="主导航"]{
  position:fixed!important;top:0!important;left:0!important;right:0!important;
  transform:none!important;mix-blend-mode:normal!important;
  z-index:1000;width:auto!important;max-width:none!important;height:48px;margin:0!important;
  display:flex;align-items:center;justify-content:center;gap:clamp(18px,2.6vw,36px);
  padding:0 20px!important;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;
  background:rgba(251,251,253,.78);
  -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid rgba(0,0,0,.08);
  color:#1d1d1f;
}
html body nav[aria-label="主导航"]::-webkit-scrollbar{display:none}
html body nav[aria-label="主导航"] a{
  flex:0 0 auto;white-space:nowrap;padding:0!important;margin:0;
  color:rgba(29,29,31,.88)!important;
  font:400 14px/48px -apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Helvetica Neue",Arial,sans-serif!important;
  letter-spacing:.01em;text-decoration:none!important;transform:none!important;
  transition:color .2s ease;
}
html body nav[aria-label="主导航"] a:hover{color:#000!important}
html body nav[aria-label="主导航"] a[aria-current]{color:#000!important;font-weight:600!important}
html body nav[aria-label="主导航"] a:focus-visible{outline:2px solid #0071e3;outline-offset:2px;border-radius:4px}
html{scroll-padding-top:60px}
/* 导航不再占位，给原来紧贴导航的页眉留出这条栏的高度 */
html body .compact{padding-top:12px}
@media(max-width:860px){
  html body nav[aria-label="主导航"]{justify-content:flex-start;gap:20px;padding:0 16px!important;height:44px}
  html body nav[aria-label="主导航"] a{font-size:12px!important;line-height:44px!important}
}
@media(prefers-reduced-transparency:reduce){
  html body nav[aria-label="主导航"]{background:#fbfbfd;-webkit-backdrop-filter:none;backdrop-filter:none}
}
/* 有吸顶元素的页面（图解大模型的章节栏、论文配图），吸顶位置让到导航栏下面 */
html body .side{top:48px!important}
html body .fig{top:60px!important}
@media(min-width:861px){html body .side{max-height:calc(100vh - 48px)}}
@media(max-width:860px){html body .side{top:44px!important}html body .fig{top:44px!important}}

/* 首页左半边是黑色背景，半透明会把导航栏左半边透成灰色，文字显得发淡；首页导航改成几乎不透明 */
html body nav.centered-nav[aria-label="主导航"]{background:rgba(251,251,253,.97)}
