/* 官网、社群与控制台共用移动导航视觉。 */
@media(max-width:768px){
html body .mtab-bar{position:fixed!important;inset:auto 0 0!important;z-index:100;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;width:100%!important;box-sizing:border-box!important;padding:0 8px env(safe-area-inset-bottom,0px)!important;background:var(--vp-c-bg,var(--bg,#fff))!important;border-top:1px solid var(--vp-c-divider,var(--line,#e5e7eb));box-shadow:0 -4px 20px rgba(0,0,0,.035);backdrop-filter:blur(16px)}
html body .mtab-bar .mtab{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:60px;padding:7px 2px!important;box-sizing:border-box;text-decoration:none;color:var(--vp-c-text-2,var(--muted,#64748b));border:0;background:transparent;border-radius:12px;font-weight:500;line-height:1.25}
html body .mtab-bar .mtab svg{width:22px;height:22px;flex:none}html body .mtab-bar .mtab span{font-size:11px;line-height:1.25}
html body .mtab-bar .mtab.is-active{color:#1677ff;font-weight:650;background:transparent}html body .mtab-bar .mtab:active{opacity:.65}html body .mtab-bar .mtab:focus-visible{outline:2px solid #1677ff;outline-offset:-3px}
html body .mtab-bar.is-keyboard-open,html.is-docs-center body .mtab-bar{display:none!important}
}
.personal-top{display:grid!important;grid-template-columns:40px 1fr 40px;align-items:center;gap:12px;min-height:56px;margin-bottom:20px!important;border-bottom:1px solid var(--line);padding-bottom:10px}
.personal-top .personal-brand,.personal-top .personal-settings{display:flex;align-items:center;justify-content:center;width:40px;height:40px;opacity:1!important;border-radius:12px}.personal-brand img{width:30px;height:30px;object-fit:contain}.personal-title{text-align:center;font-size:17px;font-weight:650}.personal-settings svg{width:23px;height:23px}.personal-settings:hover{background:var(--panel-2)}
[data-theme=dark] .personal-brand img{filter:brightness(0) invert(1)}
@media(max-width:600px){.personal-top{margin-bottom:8px!important}.personal-profile{padding-top:18px}}

.mobile-menu-btn,.drawer-shade{display:none}
@media(max-width:860px){
html body .nav-strip{display:none!important}
html body .topbar{display:flex;align-items:center;gap:12px;min-height:62px;padding:12px 16px;position:sticky;top:0;z-index:20}
html body .topbar h2{font-size:18px;margin:0}html body .topbar .crumb,html body .topbar .topbar-r .hint,html body .topbar .topbar-r>a,html body .topbar .side-toggle{display:none!important}
.mobile-menu-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);cursor:pointer}.mobile-menu-btn svg{width:22px;height:22px}
html body .shell>.sidebar{display:flex!important;flex-direction:column;position:fixed!important;inset:0 auto 0 0!important;width:min(300px,84vw)!important;height:100dvh!important;z-index:120!important;padding:18px!important;box-sizing:border-box;transform:translateX(-105%);visibility:hidden;transition:transform .2s ease,visibility .2s;background:var(--panel)!important;overflow-y:auto}
html body .shell.drawer-open>.sidebar{transform:translateX(0);visibility:visible}
html body .shell.drawer-open>.drawer-shade{display:block;position:fixed;inset:0;z-index:119;background:rgba(0,0,0,.42);border:0;cursor:pointer}
html body .shell>.sidebar .side-brand,html body .shell>.sidebar .side-foot,html body .shell>.sidebar .nav-filter,html body .shell>.sidebar .navg-h{display:flex!important}
html body .shell>.sidebar .side-brand>div,html body .shell>.sidebar .navg-t,html body .shell>.sidebar .navg-c,html body .shell>.sidebar .nav-t{display:initial!important;opacity:1!important;width:auto!important}
html body .shell>.sidebar .nav a{justify-content:flex-start!important;font-size:14px!important;padding:12px!important;width:auto!important;height:auto!important}
html body .shell>.sidebar .nav a .nav-ico{margin-right:10px!important}
html body .shell>.main{margin-left:0!important;width:100%!important;min-width:0}
html:has(.shell.drawer-open){overflow:hidden}
}
@media(prefers-reduced-motion:reduce){html body .shell>.sidebar{transition:none}}
@media(max-width:860px){
html body .shell>.sidebar .nav a>span:first-of-type,html body .shell>.sidebar .who>div{display:block!important}
html body .shell>.sidebar .navg.is-closed .navg-b{display:none!important}
html body .shell>.sidebar .side-foot{flex-direction:column;align-items:stretch}
html body .shell>.sidebar .side-foot .btn{font-size:14px!important;padding:10px!important;width:100%!important}
html body .shell>.sidebar .side-foot .btn::before{display:none!important}
html body .shell>.sidebar .who{justify-content:flex-start!important}
}
