/* +----------------------------------------------------------------------
/* | Static Plugin for ThinkAdmin
/* +----------------------------------------------------------------------
/* | 官方网站: https://thinkadmin.top
/* +----------------------------------------------------------------------
/* | 版权所有 2014~2025 ThinkAdmin [ thinkadmin.top ]
/* +----------------------------------------------------------------------
/* | 开源协议 ( https://mit-license.org )
/* | 免责声明 ( https://thinkadmin.top/disclaimer )
/* +----------------------------------------------------------------------
/* | gitee 代码仓库：https://gitee.com/zoujingli/think-plugs-static
/* | github 代码仓库：https://github.com/zoujingli/think-plugs-static
/* +----------------------------------------------------------------------
/* | 自定义后台扩展样式，需要在加载 console.css 后载入
/* | 使用 composer require zoujingli/think-plugs-static 时不会更新此文件
/* +---------------------------------------------------------------------- */

/* ===== 后台导航布局调整：一级菜单在左侧，二级菜单在顶部 ===== */
.layui-layout-admin > .layui-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
}
.layui-layout-admin > .layui-header > .layui-layout-left,
.layui-layout-admin > .layui-header > .layui-layout-right {
    position: static !important;
    flex: none;
}
/* 右侧用户菜单始终顶到最右：头部为 flex 布局，用 auto 外边距吸收中间剩余空间，
   不依赖是否存在带 flex:1 的中间容器（如 .think-top-menu），避免出现右侧空白。 */
.layui-layout-admin > .layui-header > .layui-layout-right {
    margin-left: auto;
}
.layui-layout-admin > .layui-header > .think-top-menu {
    flex: 1;
    height: 100%;
    overflow: visible;
    box-sizing: border-box;
}
.think-top-menu-group {
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}
.think-top-menu-group .item-wrap {
    height: 100%;
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
}
.think-top-menu-group .item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    color: #333;
    cursor: pointer;
}
.think-top-menu-group .item i {
    margin-right: 5px;
}
.think-top-menu-group .item-wrap:hover > .item,
.think-top-menu-group .item-wrap.layui-this > .item {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
}
.think-top-menu-group .item-wrap.layui-this > .item:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #098;
}
.think-top-menu-group .child-list {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999;
}
.think-top-menu-group .item-wrap.has-child:hover .child-list {
    display: block;
}
.think-top-menu-group .child-list a {
    display: block;
    padding: 0 16px;
    line-height: 40px;
    color: #333;
}
.think-top-menu-group .child-list a i {
    margin-right: 5px;
}
.think-top-menu-group .child-list a:hover,
.think-top-menu-group .child-wrap.layui-this .child-item {
    color: #098;
    background: #f5f5f5;
}
