/* FE46：深色一级栏 + 浅色二级栏；移动端使用两行横向导航。 */
.department-node{margin:10px 0;border:1px solid #e6e4ed;border-radius:8px;padding:12px;background:white}
.department-node>summary{cursor:pointer;min-height:36px;line-height:2}
.department-children{margin-left:20px;padding-left:14px;border-left:2px solid #dad5e8}
.department-info{padding:8px 0;overflow-wrap:anywhere}
.department-info button{margin-left:16px}
body .sidebar{width:88px;padding:20px 8px;overflow-y:auto}
body .sidebar .brand img{width:68px;padding:5px}
body .sidebar .brand span,body .sidebar .workspace-label,body .sidebar-bottom{display:none}
body .sidebar nav{display:flex;flex-direction:column;gap:8px}
body .sidebar nav a{display:flex;flex-direction:column;gap:6px;padding:12px 4px;min-height:64px;justify-content:center}
body .sidebar nav .nav-label{font-size:12px;text-align:center;white-space:normal}
body .secondary-sidebar{position:fixed;left:88px;top:0;bottom:0;width:174px;padding:30px 14px;background:#fff;border-right:1px solid #e6e4ed;overflow-y:auto;z-index:30;box-shadow:8px 0 24px #1f1a3b18}
body .secondary-sidebar h2{font-size:16px;margin:0 10px 24px;color:var(--brand-purple,#1f1a3b)}
body .secondary-sidebar nav{display:flex;flex-direction:column;gap:6px}
body .secondary-sidebar nav a{display:block;color:#4c4960;padding:12px;min-height:44px;border-left:3px solid transparent;border-radius:5px;text-align:left;font-size:14px}
body .secondary-sidebar nav a.active{background:#f0edf6;color:#1f1a3b;border-left-color:#aa9165;font-weight:700}
body .secondary-sidebar nav a:hover{background:#f5f3f8}
body .main{margin-left:88px;min-width:0}
@media(max-width:768px),(max-width:1050px) and (max-height:500px){
 body .sidebar{position:static;width:100%;padding:10px 12px}
 body .sidebar .brand{display:none}
 body .sidebar nav{flex-direction:row;display:flex;justify-content:space-around}
 body .sidebar nav a{flex:1;min-height:52px;padding:6px}
 body .secondary-sidebar{position:static;width:100%;padding:8px 12px;border-bottom:1px solid #e6e4ed}
 body .secondary-sidebar h2{display:none}
 body .secondary-sidebar nav{flex-direction:row;overflow-x:auto;gap:4px}
 body .secondary-sidebar nav a{flex:none;white-space:nowrap;padding:10px 12px}
 body .main{margin-left:0}
}

/* 收起时不占布局空间；覆盖式菜单避免桌面内容横跳。 */
body .secondary-sidebar[hidden]{display:none!important}
.sidebar nav a[aria-expanded="true"]{background:#ffffff20}
