.vol-aside { position: absolute; float: left; overflow: hidden; top: 54px; bottom: 0; border-right: 1px solid #e4e4e7; } .vol-menu{ border: 0 !important; } // ====== 顶部一级导航栏 ====== .vol-top-header { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; z-index: 200; background-color: #2d8cf0; // box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18); } .top-logo { display: flex; align-items: center; padding: 0 10px; min-width: 200px; height: 100%; flex-shrink: 0; border-radius: 10px; // border-right: 1px solid rgba(255, 255, 255, 0.2); img { height: 30px; margin-right: 10px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.3); } span { color: #fff; font-size: 20px; font-weight: 700; white-space: nowrap; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(58, 40, 40, 0.15); font-family: "PingFangSC", sans-serif; } } .top-nav-menus { flex: 1; display: flex; align-items: center; height: 100%; padding: 0 8px 0 16px; gap: 6px; overflow-x: auto; overflow-y: hidden; min-width: 0; // 隐藏滚动条但保留滚动功能 scrollbar-width: none; -ms-overflow-style: none; &::-webkit-scrollbar { display: none; } } // 测量容器(全部菜单项不可见渲染,用于获取宽度) .top-nav-measure { position: absolute; top: -9999px; left: 0; display: flex; gap: 6px; visibility: hidden; pointer-events: none; white-space: nowrap; z-index: -1; } // 溢出更多按钮外层容器 .top-nav-more-wrapper { position: relative; display: inline-flex; align-items: center; height: 100%; flex-shrink: 0; } // ··· 按钮样式 .top-nav-more-btn { font-size: 18px; font-weight: 700; letter-spacing: 3px; padding: 0 14px !important; } // 下拉面板(position 由 JS 内联样式控制) .top-nav-overflow-panel { min-width: 160px; background: #fff; border-radius: 12px; box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06); padding: 5px; border: 1px solid rgba(0, 0, 0, 0.06); } // 下拉面板视觉样式已迁移至 index.vue 全局