/* Megabonk.org 统一顶部导航（批次 8）。自带品牌色，不依赖页面主题变量；仅作用于 html body header.mb-hdr。 */
@font-face{font-family:"Barlow Condensed";font-style:italic;font-weight:800;font-display:optional;src:url("/assets/fonts/barlow-condensed-800-italic.woff2") format("woff2")}
html body header.mb-hdr{position:sticky;top:0;z-index:1000;background:rgba(8,11,16,.96)!important;backdrop-filter:blur(8px);border-bottom:1px solid #2a3341!important;box-shadow:0 2px 0 #ff7a35!important;color:#f3f5f8;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.4}
html body header.mb-hdr *{box-sizing:border-box}
/* 页面里常有裸的 header{…} 规则（本是给页内标题区写的），会改动页头的内外边距/宽度；这里写死页头自身的盒模型。 */
html body header.mb-hdr{padding:0!important;margin:0!important;width:100%!important;max-width:none!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-top:0!important;text-align:left!important;float:none!important;min-height:0!important;height:auto!important;display:block!important;overflow:visible!important;text-shadow:none!important;transform:none!important;filter:none!important}
html body header.mb-hdr::before,html body header.mb-hdr::after{content:none!important;display:none!important}
html body header.mb-hdr .mb-hdr-main{max-width:1200px;margin:0 auto;padding:.6rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:58px}
html body header.mb-hdr .mb-logo{font:italic 800 1.6rem/1 "Barlow Condensed","Arial Narrow",Impact,sans-serif;letter-spacing:.01em;color:#f3f5f8!important;-webkit-text-fill-color:#f3f5f8!important;background:none!important;text-decoration:none;white-space:nowrap}
html body header.mb-hdr .mb-logo span{color:#ff7a35;-webkit-text-fill-color:#ff7a35}
html body header.mb-hdr nav{display:flex;flex-wrap:nowrap!important;align-items:center;justify-content:flex-start;margin:0;padding:0;max-width:none;background:none!important;border:0!important;box-shadow:none!important;position:static}
html body header.mb-hdr .mb-nav{gap:.25rem}
html body header.mb-hdr nav a{color:#f3f5f8!important;text-decoration:none;white-space:nowrap}
html body header.mb-hdr .mb-nav a{padding:.4rem .75rem;border-radius:999px;font-weight:650;font-size:.93rem}
html body header.mb-hdr .mb-sub{max-width:1200px;margin:0 auto;padding:0 1.5rem .5rem;gap:.2rem;overflow-x:auto;scrollbar-width:none}
html body header.mb-hdr .mb-sub::-webkit-scrollbar{display:none}
html body header.mb-hdr .mb-sub a{padding:.18rem .6rem;border-radius:999px;font-size:.8rem;font-weight:600;color:#a9b3c1!important;border:1px solid transparent}
html body header.mb-hdr nav a:hover{color:#ff7a35!important;background:#1d2531}
html body header.mb-hdr nav a[aria-current]{color:#ff7a35!important;background:rgba(255,122,53,.12)}
html body header.mb-hdr .mb-sub a[aria-current]{border-color:rgba(255,122,53,.4)}
html body header.mb-hdr a:focus-visible{outline:2px solid #f4c95d;outline-offset:2px}
/* 选择器统一加 "html body" 前缀以压过各主题覆盖层（builds/database/guides 等）里的 header nav 规则。
   手机端：不吸顶（三行太占屏），主/次级入口各自横向滑动 */
@media(max-width:860px){
html body header.mb-hdr{position:static}
html body header.mb-hdr .mb-hdr-main{flex-direction:column!important;align-items:flex-start;gap:.35rem;padding:.6rem 1.1rem .3rem}
html body header.mb-hdr .mb-nav{width:100%;max-width:100%;overflow-x:auto;scrollbar-width:none;padding-bottom:.25rem;flex-direction:row!important}
html body header.mb-hdr .mb-nav::-webkit-scrollbar{display:none}
html body header.mb-hdr .mb-nav a{border:1px solid #2a3341;font-size:.88rem}
html body header.mb-hdr .mb-sub{padding:0 1.1rem .5rem;flex-direction:row!important}
}
@media(prefers-reduced-motion:reduce){html body header.mb-hdr *{transition:none!important}}
