body{
    background-color: #f8f9fa;
}
.products-page{
    padding: 100px 0;
}
.products-breadcrumb{
    width: 100vw;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.products-breadcrumb-box{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80px;
}
.products-breadcrumb-trail{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
    font-size: 16px;
}
.products-breadcrumb-trail a{
    color: inherit;
}
.products-breadcrumb-trail .iconfont{
    color: #48877A;
    font-size: 18px;
}
.products-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    padding: 100px 0;
}
.products-grid-item{
    width: 23.5%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2%;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #333333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.products-grid-item:hover{
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.products-grid-item .thumb{
    width: 100%;
    aspect-ratio: 4/3;
    background: #f0f2f5;
}
.products-grid-item .thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.products-grid-item .name{
    padding: 14px 12px 18px;
    font-size: 18px;
}
.products-empty{
    width: 100%;
    text-align: center;
    color: #888888;
    padding: 60px 0;
}

.products-category-list{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 50px;
}
.products-category-box{
    background: #F3F4F4;
    width: 380px;
    padding-bottom: 30px;
}
.products-category-list-item{
    width: 80%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}
.products-category-box-title{
    background: #48877A;
    color: #ffffff;
    font-size: 26px;
    padding: 15px 30px;
    border-radius: 10px 10px 0 0;
}
.products-category-tree{
    padding: 0 40px;
}
.category-item{
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid #E5E5E5;
}
.category-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-header a{
    font-size: 20px;
}
.category-header i{
    font-size: 20px;
    opacity: 0.4;
    cursor: pointer;
    transition: transform 0.5s ease;
}

/* 分类树层级与列表样式调整 */
.products-category-tree ul,
.products-category-tree li{
    list-style: none;
    margin: 0;
    padding: 10px 0;
}
.category-children{
    margin: 0 20px !important; /* 二级缩进 20px */
}
.category-grandchildren{
    margin-left: 20px !important; /* 三级缩进 40px */
}

/* 当前分类高亮（主色） */
.products-category-tree a.is-active{
    color: #48877A;
    font-weight: 600;
}
.category-child-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-child-header i{
    font-size: 20px;
    opacity: 0.4;
    cursor: pointer;
    transition: transform 0.5s ease;
}

/* 加减号悬停旋转动画 */
.category-header i:hover,
.category-child-header i:hover{
    transform: rotate(180deg);
}

.products-list{
    width: 1180px;
}
.products-list-title{
    padding: 20px 0;
    border-bottom: 1px solid #E5E5E5;
    font-size: 30px;
}
.products-list-box{
    padding: 30px 0;
    display: flex;
    justify-content: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    column-gap: 35px;
    row-gap: 35px;
}
.products-subcategory-item{
    display: block;
    width: 370px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    color: #333333;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.products-subcategory-item:hover{
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.cover-box{
    width: 370px;
    height: 280px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f2f5;
}
.cover-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-name{
    width: 330px;
    height: 60px;
    font-size: 25px;
    line-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.products-subcategory-item-desc{
    width: 330px;
    padding: 10px 0;
    line-height: 30px;
    font-size: 16px;
}
.products-subcategory-item-desc hr{
    margin: 10px 0;
    opacity: 0.5;
    height: 0;
}

/* 筛选框样式 */
.filter-box{
    background: #ffffff;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.filter-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.filter-title{
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    letter-spacing: 0.5px;
}
.filter-clear-btn{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 14px;
    color: #666666;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.filter-clear-btn:hover{
    color: #333333;
    background: #f0f0f0;
    border-color: #d0d0d0;
}
.filter-clear-btn .iconfont{
    font-size: 14px;
}
.filter-fields{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
}
.filter-field{
    width: calc((100% - 72px) / 4); /* 每行4个，减去3个gap的宽度(24px*3=72px) */
    position: relative;
}
.filter-select{
    width: 100%;
    padding: 12px 0 8px 0;
    font-size: 15px;
    color: #333333;
    background: transparent;
    border: none;
    border-bottom: 1px solid #d8d8d8;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7.5L1 3.5h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    padding-right: 24px;
}
.filter-select:not(:focus):not([data-selected="true"]){
    color: #999999;
}
.filter-select:hover{
    border-bottom-color: #b0b0b0;
}
.filter-select:focus{
    border-bottom-color: #48877A;
    border-bottom-width: 2px;
    color: #333333;
    padding-bottom: 7px;
}
.filter-select option{
    padding: 10px 12px;
    background: #ffffff;
    color: #333333;
}
.filter-select option:first-child{
    color: #999999;
}
.products-subcategory-item.hidden{
    display: none;
}