/*分类侧栏目录*/
.site-layout-3 .sidebar{
    margin-left: 0 !important;
    float: none;
    position: fixed;
}

.category.site-layout-3 footer {
    margin-left: 340px;
    max-width: 81%;
}

@media (max-width: 992px) {        
    .category.site-layout-3 footer {
        margin-left: auto;max-width: 94%;
    }
}

.hp_cat {
    background: #fff;
    padding: 0;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.hp_cat h3 {
    margin-top: 0;
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

/* 字母导航样式 */
.hp_cat_az {
    width: 45px;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hp_cat_az ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hp_cat_az li {
    width: 100%;
    height: 28px;
    text-align: center;
    line-height: 28px;
    cursor: pointer;
    display: block;
    margin: 0;
    color: #666;
    font-size: 14px;
}

.hp_cat_az li:last-child {
    border-bottom: none;
}

.hp_cat_az li:hover,
.hp_cat_az li.on {
    color: #00a2e3;
    background: #eee;
}

.hp_cat_content {
    height: calc(100% - 50px);
    position: relative;
}

/* 分类列表容器 */
.hp_cat_box {
    height: 100%;
    overflow-y: scroll;
    margin-left: 45px;
    padding: 0;
    max-height: none;
    overflow-x: hidden;
}

.hp_cat_box::-webkit-scrollbar {
    width: 9px;
}

.hp_cat_box::-webkit-scrollbar-track {
    background-color: #fff;
    border-radius: 10px;
    margin: 4px 0;
}

.hp_cat_box::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.hp_cat_box::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.hp_cat_box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp_cat_box li {
    margin: 0;
    padding-left: 15px;
}

/* 字母分隔符 */
.hp_cat_box ul .letter {
    border-bottom: 1px solid #e5e5e5;
    line-height: 40px;
    padding-left: 10px;
    font-weight: bold;
    background: #f6f7f7;
}

/* 分类项目基础样式 */
.one {
    position: relative;
}

.hp_cat_box .one>a { /*一级*/
    border-bottom: 1px solid #e5e5e5;
    line-height: 50px;
}

.hp_cat_box ul a {
    display: inline-block;
    width: 100%;
    line-height: 34px;
    padding-left: 5px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}

/* 根品牌链接样式，为图标留出空间 */
.hp_cat_box ul a.rootBrand {
    padding-left: 50px;
    display: block;
}

.hp_cat_box .one>a+ul {
    border-bottom: 1px solid #e5e5e5;
}

/* 选中状态样式 */
.hp_cat_box li.selected {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
}

.hp_cat_box li:hover {
    background-color: #f5f5f5;
}

/* 子分类样式 */
.hp_cat_box .has_child:nth-of-type(1)>a {
    font-weight: bold;
}

/* 优化缩进结构 */
.hp_cat_box ul ul {
    padding-left: 20px;
    display: none;
}

.hp_cat_box ul ul ul {
    padding-left: 40px;
}

.hp_cat_box ul ul ul ul {
    padding-left: 60px;
}

/* 折叠展开图标 */
.hp_cat_box li.has_child > a::after,
.hp_cat_box li.has_children > a::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #666;
}

.hp_cat_box li.down > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 为根品牌链接调整图标位置 */
.hp_cat_box li.one > a.rootBrand::after {
    right: 10px;
}

/* 确保有子分类的项目显示正确 */
.hp_cat_box li.has_child,
.hp_cat_box li.has_children {
    position: relative;
}

/* 确保子分类正确显示 */
.hp_cat_box li.down > ul {
    display: block;
}

/* 最后一级分类样式 */
.hp_cat_box li.end input+a {
    display: inline;
}

.hp_cat_box li.end input {
    margin: 0;
}

.hp_cat_box li.end {
    display: block !important;
}

/* 已使用▼符号作为展开收起图标，此处删除冲突样式 */

.hp_cat_box .one ul {
    display: none;
}

.hp_cat_box .one.down>ul {
    display: block;
}

.hp_cat_box .has_child.down>ul {
    display: block;
}

.hp_cat_box ul ul li {
    padding-left: 0;
}

/* 图标样式 */
.cat_icon, .hp_cat .cat_icon {
    width: 40px;
    height: 30px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 3px;
    object-fit: cover;
    position: absolute;
    z-index: 2;
    margin-top: 10px;
    left: 0;
}

.hp_cat_box ul ul > li {
    padding: 0;
}

.hp_cat_box ul ul > li a {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    line-height: 34px;
}

.hp_cat_box ul ul > li a:hover {
    color: #00a2e3;
}

.hp_cat_box ul ul > li a.check {
    color: #00a2e3;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hp_cat_az li {
        min-width: 18px;
        font-size: 12px;
        padding: 4px 0;
    }
    
    .hp_cat_box {
        max-height: 300px;
    }
}
