/* ========= 公共基础 ========= */
   @media (max-width: 1024px){
                    .wp-bottom-menu{
                        display:flex;
                    }
                    .wp-bottom-menu-search-form-wrapper{
                        display: block;
                    }
                }

/* ========= 底部菜单 ========= */
.wp-bottom-menu{
    position:fixed;left:0;bottom:0;width:100%;height:70px;
    background:#fff;display:flex;justify-content:space-around;align-items:center;
    box-shadow:0 -2px 10px rgba(0,0,0,.1);z-index:9999;transition:all .2s
}
.wp-bottom-menu-item{
    flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;
    font-size:12px;height:100%;cursor:pointer;color:#555;user-select:none
}
.wp-bottom-menu-item:hover{color:#000}

.wp-bottom-menu-item i{
    font-size: 18px;
    color: #555555;
	font-family: FontAwesome;
    transition: color 200ms;
}

.wp-bottom-menu-item:hover i,
.wp-bottom-menu-item.active i,
.wp-bottom-menu.sf-active .wp-bottom-menu-item.wp-bottom-menu-search-form-trigger i{
    color: #000000;
}

.wp-bottom-menu-item svg{
    fill: #555555;
    width: 18px;
    height: 18px;
}

.wp-bottom-menu-item:hover svg,
.wp-bottom-menu-item.active svg{
    fill: #000000;
}


/* ========= 搜索表单 ========= */
.wp-bottom-menu-search-form-wrapper{
    display:none;
    position:fixed;left:0;bottom:70px;width:100%;
    background:#fff;padding:10px;
    box-shadow:0 -2px 8px rgba(0,0,0,.1);
    z-index:9998;
}
.wp-bottom-menu-search-form{position:relative}
.wp-bottom-menu-search-form input[type=search]{
    width:100%;height:40px;padding:0 40px 0 40px;
    border:1px solid #eee;border-radius:8px;font-size:16px
}
.wp-bottom-menu-search-form i{
    position:absolute;top:50%;left:15px;transform:translateY(-50%);
    color:#007bff
}

/* ========= 左侧导航 ========= */
.wp-bottom-menu-nav-wrapper {
    display: none;
    width: 320px;
    height: 100vh;
    z-index: 9999;
    position: fixed;
    left: 0; 
    top: 0;
    background: #ffffff;
    color: #333333;
    overflow-y: auto; /* 允许滚动 */
    padding-top: 60px; /* 顶部固定间距 */
    box-sizing: border-box; /* 确保padding不影响高度计算 */
}

.wp-bottom-menu-nav-wrapper.active {
    display: grid;
    place-items: top;/* 固定在上方 */
    text-align: center;
}

/* 菜单项列表 */
.wpbm-nav-items {
    position:position;
    list-style-type: none;
    margin-top: 0.25em;
    padding: 1em;
    width: 98%; /* 设置菜单宽度为底部菜单容器的98% */
    font-size: 14px;
}

.wpbm-nav-items li {
    background-color: #f7f7f7; /* 设置一级菜单的背景颜色为灰色 */
}

.wpbm-nav-items li:not(:last-child) {
    margin-bottom: 0.5em; /* 缩减一级菜单项之间的间距 */
}

/* 菜单链接样式 */
.wpbm-nav-items li a {
    color: inherit;
    display: block;
    padding: 0.6em 1em; /* 缩减一级菜单项的内边距 */
    text-decoration: none;
}

/* 当前菜单项样式 */
.wpbm-nav-items li.current-menu-item a {
    color:#007bff;
}

/* 一级菜单样式 */
.wpbm-nav-items > li {
    position: relative; /* 为子菜单箭头提供定位上下文 */
    background-color: #f7f7f7;
   }

/* 二级菜单容器 */
.wpbm-nav-items ul.sub-menu {
    display: none; /* 默认隐藏 */
    list-style-type: none;
    height:100%;
    margin: 0;
    padding: 0.5em;
    position: relative;
    background-color: #eaeaea;
}

/* 二级菜单项 */
.wpbm-nav-items ul.sub-menu li {
    margin:0.5em 0.25em 0.75em 0.25em;
    height:35px;
    background-color: #f7f7f7;
    border-radius: 5px;
}

/* 有二级菜单的一级菜单项文字靠左 */
.wpbm-nav-items > li.menu-item-has-children > a {
    position: relative; /* 为伪元素提供定位上下文 */
    text-align: left;
    padding-left: 1em; /* 保持左侧内边距 */
    padding-right: 3em; /* 为箭头留出空间 */
}

/* 无二级菜单的一级菜单项保持居中 */
.wpbm-nav-items > li:not(.menu-item-has-children) > a {
    text-align: center;
}

/* 下拉箭头图标 */
.wpbm-nav-items > li.menu-item-has-children > a::after {
    content: "\203A";
    font-size: 1.2em;
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
}

/* 展开状态下的箭头 */
.wpbm-nav-items > li.menu-item-has-children.expanded > a::after {
    transform: translateY(-50%) rotate(90deg); /* 鼠标悬停时箭头旋转90度 */
}

/* 展开状态下的二级菜单 */
.wpbm-nav-items > li.expanded > ul.sub-menu {
    display: block;
}

/* 触摸反馈效果 */
.wpbm-nav-items li a:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(0.98);
}

/* 关闭按钮样式 */
.wpbm-nav-close {
    font-size: 1em;
    position: absolute;
    left: 7%;
    top: 2.25%; 
    border: 2px solid #e6e6e6;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
}