/*分类侧栏目录*/
.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%;
    }
}

/* 字母导航样式 */
.dxf-frontend-cat-az {
    width: 35px;
    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;
}

.dxf-frontend-cat-az li {
    width: 100%;
    height: 28px;
    text-align: center;
    line-height: 28px;
    cursor: pointer;
    display: block;
    margin: 0;
}

.dxf-frontend-cat-az li.on {
    color: #00a2e3;
    background: #eee;
}

.dxf-frontend-cat-az li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    line-height: 28px;
}

.dxf-frontend-cat-az li.on a {
    color: #00a2e3;
}

/* 分类列表容器 */
.dxf-frontend-cat-box {
    height: 100%;
    margin-left: 35px;
    padding: 0;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dxf-frontend-cat-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dxf-frontend-cat-box li {
    margin: 0;
    padding-left: 15px;
}

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

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

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

.dxf-frontend-cat-box .one {
    border-bottom: 1px solid #e5e5e5;
    line-height: 2.5;
}

.dxf-frontend-cat-box .one a {
    position: relative;
}

.dxf-frontend-cat-box .one>a+ul {
    border-bottom: 1px solid #e5e5e5;
}

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

.dxf-frontend-cat-box li:hover {
    background-color: #f5f5f5;
}

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

.dxf-frontend-cat-box ul ul {
    padding-left: 1.5em;
}

.dxf-frontend-cat-box li.end input+a {
    display: inline;
}

.dxf-frontend-cat-box li.end input {
    margin: 0;
}

/* 展开收起箭头 */
.dxf-frontend-cat-box .has_child>a:not([h="1"])::before {
    content: '▶';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
    transition: transform 0.2s ease;
}

.dxf-frontend-cat-box .has_children>a::before {
    content: '▶';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
    transition: transform 0.2s ease;
}

.dxf-frontend-cat-box .has_child.down>a::before {
    transform: translateY(-50%) rotate(90deg);
}

.dxf-frontend-cat-box .has_children.down>a::before {
    transform: translateY(-50%) rotate(90deg);
}

.dxf-frontend-cat-box .one ul {
    display: none;
}

.dxf-frontend-cat-box .one.down>ul {
    display: block;
}

.dxf-frontend-cat-box .has_child.down>ul {
    display: block;
}

.dxf-frontend-cat-box ul ul li {
    padding-left: 0;
}

/* 图标样式 */
.cat_icon, .hp_cat .cat_icon {
    position: absolute;
    z-index: 2;
    margin-top: 10px;
}

.hp_cat .cat_icon {
    width: 40px;
    height: 30px;
}

/* 隐藏复选框相关样式，使用原始链接样式 */
.category-item {
    display: block;
    padding: 0;
    margin: 0;
}

.category-item input[type="checkbox"] {
    display: none;
}

.category-name {
    display: inline;
}

.post-count {
    display: inline;
}

/* 移除现代化的样式，恢复原始外观 */
.category-item:hover {
    background: transparent;
}

.category-item.focused {
    background: transparent;
    box-shadow: none;
}

/* 搜索高亮 - 保留但简化 */
.category-name .highlight {
    background: #ffeb3b;
    color: #333;
    padding: 1px 2px;
    border-radius: 2px;
}

/* 滚动条样式 */
.dxf-frontend-cat-box::-webkit-scrollbar {
    width: 8px;
}

.dxf-frontend-cat-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dxf-frontend-cat-box::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dxf-frontend-cat-box::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 字母导航滚动条 */
.dxf-frontend-cat-az::-webkit-scrollbar {
    width: 0px;
}

.dxf-frontend-cat-az::-webkit-scrollbar-track {
    background: transparent;
}

.dxf-frontend-cat-az::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* 响应式调整 */
@media (max-width: 782px) {

    .dxf-frontend-cat-az {
        width: 40px;
    }

    .dxf-frontend-cat-box {
        margin-left: 35px;
    }

    .dxf-frontend-cat-az li {
        height: 24px;
        line-height: 24px;
        font-size: 12px;
    }
}

/* HP_CAT 小工具样式 */
.zib-widget.hp_cat {
    padding: 0 0 15px 15px;
    border-radius: 0;
}

.hp_cat {
    position: relative;
    overflow: hidden;
}

.hp_cat .hp_cat_box {
    height: 100%;
    overflow-y: auto;
    margin-left: 30px
}

.hp_cat .hp_cat_box .check {
    font-weight: bold;
    color: #00a2e3;
}

.hp_cat .hp_cat_box::-webkit-scrollbar {
    width: 0;
}

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

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

.hp_cat .hp_cat_az {
    width: 45px;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    padding: 0;
}

.hp_cat .hp_cat_az li {
    width: 100%;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
}

.hp_cat .hp_cat_az li:hover {
    background-color: rgba(0, 0, 0, .1);
}

.hp_cat .hp_cat_az li.on {
    color: var(--focus-color);
}

.hp_cat .hp_cat_az::-webkit-scrollbar {
    width: 0;
    /* 与.dxf-frontend-cat-az::-webkit-scrollbar类似，但保留单独定义以避免影响现有样式 */
}

.hp_cat ul .letter {
    border-bottom: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    line-height: 40px;
    padding-left: 15px;
    background: #f3f3f3;
    color: var(--focus-color);
}

.hp_cat ul .one {
    padding-left: 10px;
}

.hp_cat ul ul {
    padding-left: 1em;
}

.hp_cat ul a {
    display: inline-block;
    width: 100%;
    line-height: 34px;
    padding-left: 20px;
}

.hp_cat .has_child ul a {
    padding-left:20px;
}

.hp_cat .one>a {
    border-bottom: 1px solid #e5e5e5;
    line-height: 50px;
    padding-left: 45px;
}

.hp_cat .one:has(+ .letter) > a {
    border-bottom: none;
}

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

.hp_cat .has_child:nth-of-type(1)>a {
    font-weight: bold;
}

.hp_cat .one ul {
    display: none;
}

.hp_cat .one a {
    position: relative;
}

.hp_cat .one>a.not-empty::after {
    transform: rotate(45deg);
    position: absolute;
    top: 20px;
    right: 20px;
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid transparent;
    border-right: 2px solid #dd8a89;
    border-left: 2px solid transparent;
    border-bottom: 2px solid #dd8a89;
}

.hp_cat .has_child>a::after {
    transform: rotate(-45deg);
    position: absolute;
    top: 13px;
    left: -12px;
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid transparent;
    border-right: 2px solid #dd8a89;
    border-left: 2px solid transparent;
    border-bottom: 2px solid #dd8a89;
}

.hp_cat .has_child.down>a::after {
    transform: rotate(45deg);
    top: 11px;
    left: -9px;
}

.hp_cat .has_child.down>a+ul {
    display: block;
    padding-left: 0;
}

.hp_cat .one.down>a+ul {
    display: block;
}

.hp_cat .cat_icon {
    width: 40px;
    height: 30px;
}

/*post详情中区分块有两个默认第一个隐藏*/
.attribute1 {
    display: none;
}

@media (max-width: 996px) {
    body.category .sidebar {
        display: block !important;
        position: fixed !important;
        left: 0;
        top: 0;
        width: 30px !important;
        background: transparent;
        z-index: 996;
        margin-left: auto !important;
        pointer-events: auto;
    }
    
    body.category .sidebar.hider .hp_cat .hp_cat_az {
        pointer-events: auto;
        border: none;
    }
    
    body.category .sidebar.open {
        background: #fff;
        z-index: 99999;
        width: 100% !important;
    }

    body.category .sidebar.open .hp_cat .hp_cat_box {
        visibility: visible;
    }

    .hp_cat {
        background: transparent !important;
        box-shadow: unset !important;
        height: calc(100vh - 55px);
        margin-left: 5px;
        padding-left: 0 !important;
        border-radius: 0 !important;
    }

    body.category .sidebar .hp_cat .hp_cat_az {
        margin-top: 72px;
        width: 40px;
    }

    .hp_cat .hp_cat_az ul {
        display: none;
        margin-top: 5px;
    }

    .hp_cat .hp_cat_az li {
        height: 21px;
        line-height: 21px;
    }

    .hp_cat .hp_cat_box {
        margin-left: 55px;
    }

    .chooseBrand {
        display: block;
        text-align: center;
        background: #0075c1;
        line-height: 26px;
        color: #fff;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        cursor: pointer;
        border-radius: 100%;
        width: 30px;
        height: 30px;
        margin: 0 auto;
        line-height: 30px;
    }

    /*@keyframes mobileMenuOpen {*/
    /*from { left: -100%; }*/
    /*to { left: 0%; }*/
    /*}*/

    /* 移除重复的width属性，已在上面定义 */

    /*@keyframes mobileMenuClose {*/
    /*from { left: 0%; }*/
    /*to { left: 100%; }*/
    /*}*/
    body.category .sidebar.hide {
        animation: mobileMenuClose .5s;
        animation-fill-mode: forwards;
        /* 保持动画结束时的状态 */
    }

    body.category .sidebar .hp_cat {
        padding-right: 0;
        position: relative;
        min-width: 35px;
    }

    body.category .sidebar .hp_cat .cancel {
        width: 25px;
        height: 25px;
        display: inline-block;
        background: #5f5e5e;
        border-radius: 100%;
        position: absolute;
        top: 10px;
        right: 15px;
        z-index: 99999;
    }

    body.category .sidebar .hp_cat .cancel::before,
    body.category .sidebar .hp_cat .cancel::after {
        content: '';
        position: absolute;
        top: 5px;
        left: 12px;
        /* 控制交叉点位置 */
        height: 13px;
        width: 2px;
        /* 线条宽度 */
        background-color: #fff;
        /* 线条颜色 */
    }

    body.category .sidebar .hp_cat .cancel::before {
        transform: rotate(45deg);
    }

    body.category .sidebar .hp_cat .cancel::after {
        transform: rotate(-45deg);
    }

}

@media (max-width: 640px) {
    .pay_col_5 dt {
        width: 50%;
        float: left;
    }

    .pay_col_5 dt.year {
        text-align: right;
    }

    .attribute1 {
        display: block;
    }

    .attribute2 {
        display: none;
    }

}


/* 分类列表 标题下面的属性 */
.post_attributes {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 0 20px 0;
}

.post_attributes>div {
    width: 50%;
    border-bottom: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    /*padding: 5px 7px;*/
    padding: 5px;
}

.post_attributes>div:nth-of-type(1),
.post_attributes>div:nth-of-type(2) {
    border-top: 1px solid #e5e5e5;
}

.post_attributes>div:nth-of-type(odd) {
    border-left: 1px solid #e5e5e5;
}

/* 分类列表 缩略图 */
.item-thumbnail {
    padding-bottom: 50% !important
}

/*投稿页*/
.newpost-difference input {
    border-color: rgba(0, 0, 0, .1) !important;
}

.newpost-difference input:nth-of-type(1) {
    width: 20% !important;
    border: none !important;
    background-color: transparent !important;
}

.newpost-difference input:nth-of-type(2) {
    width: 78% !important
}

.dark-theme .newpost-difference input:nth-of-type(2) {
    background-color: #292A2D
}

.dark-theme .year-select-s {
    background-color: #292A2D
}

/* 年款选择dropdown样式 */
.year-dropdown {
    display: inline-block;
    min-width: 70px;
    margin: 0;
}

.year-dropdown .drop-btn {
    min-height: 30px;
    padding: 5px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-dropdown .drop-btn:hover {
    border-color: #66afe9;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.3);
}

.year-dropdown.open .drop-btn {
    border-color: #66afe9;
    box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
}

.year-dropdown .dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.year-dropdown .year-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.year-dropdown .year-option:hover {
    background-color: #f5f5f5;
}

.year-dropdown .year-option.selected {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
}

.year-select-p {
    display: inline-block;
    margin: 0;
    line-height: 38px;
    vertical-align: top;
}

.dark-theme .year-dropdown .drop-btn {
    background-color: #292A2D;
    border-color: #444;
    color: #fff;
}

.dark-theme .year-dropdown .dropdown-menu {
    background-color: #292A2D;
    border-color: #444;
}

.dark-theme .year-dropdown .year-option {
    color: #fff;
}

.dark-theme .year-dropdown .year-option:hover {
    background-color: #3a3a3a;
}

.dark-theme .year-dropdown .year-option.selected {
    background-color: #1976d2;
    color: #fff;
}

/*分类详情页 缩略图*/
@media (max-width: 640px) {
    .pay-thumb.hide-sm {
        display: block !important;
        width: 100%;
        margin-right: 0;
    }

    .pay-flexbox .flex1 {
        flex: none !important;
        width: 100%
    }
}

/*.dropdown-menu{overflow-y:auto; height:300px}*/

/* .one 已在前面定义过，这里移除重复定义 */

.rootBrand {
    display: inline-block;
    padding-left: 50px;
}


/* 发布投稿品牌折叠 */
.dropdown-menu .select-drop-box .catItem {
    cursor: pointer;
}

.dropdown-menu .select-drop-box .catItem label span.jiao {
    content: '';
    clear: both;
    width: 20px;
    margin-right: -6px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}


.dropdown-menu .select-drop-box .fold {
    display: none;
}

.dropdown-menu .select-drop-box .open {
    display: block;
}

.userMore {
    height: auto !important;
    overflow-y: visible !important;
}

/**特征筛选**/
.findCarContainer {
    display: none;
}

.findCarContainer select {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.category-container .focus-color {
    margin-left: 0;
}

.description-container .option-items {
    margin-bottom: 5px;
}

.findCarContainer .option-dropdown {
    min-width: 76px;
}

footer {
    box-shadow: 0 0 10px var(--main-shadow);
    border-radius: var(--main-radius);
}

.post_attributes div span:first-child {
    width: 32%;
}

.share-button {
    width: 150px !important;
}