/* 产品分类与产品列表的自定义样式 */

/* 产品分类样式 */
.product-category-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.category-title {
    background-color: var(--primary-color, #0d6efd);
    padding: 15px 20px;
}

.category-title h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.category-list {
    padding: 15px 0;
}

.category-list ul li {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.category-list ul li:last-child {
    border-bottom: none;
}

.category-list ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.category-list ul li a:hover,
.category-list ul li.custom-active > a {
    color: var(--primary-color, #0d6efd)!important;
    background-color: rgba(13, 110, 253, 0.05)!important;
    padding-left: 25px!important;
}

.category-list ul li.custom-active > a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color, #0d6efd);
}

/* 增强自定义活动样式 */
.category-list ul li.custom-active {
    background-color: rgba(13, 110, 253, 0.05)!important;
}

.category-list ul li.custom-active > a {
    color: var(--primary-color, #0d6efd) !important;
    font-weight: 600;
    padding-left: 25px !important;
}

.category-list ul li.custom-active > a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color, #0d6efd);
}

/* 子分类样式 */
.sub-category {
    background-color: #f9f9f9;
    display: none;
}

.category-list ul li.custom-active .sub-category {
    display: block;
}

.sub-category li a {
    padding-left: 35px !important;
    font-size: 14px;
}

.sub-category li a:hover,
.sub-category li.custom-active a {
    padding-left: 40px !important;
}

/* 产品列表样式优化 */
.page-list.product-wrapper {
    padding-top: 30px;
    padding-bottom: 50px;
}

/* 修复容器样式 */
.page-list .container {
    padding-top: 0;
}

.page-list .row {
    margin-top: 0;
}

/* 覆盖style.scss中的产品列表样式 */
.page-list .product-list {
    margin-top: 0;
}

.page-list .product-list .product-item {
    margin: 0 0 30px 0;
}

/* 修复可能导致额外空白的样式 */
.page-list .product-list.row {
    margin-left: -15px;
    margin-right: -15px;
}

.page-list .product-item {
    padding: 0 15px;
}

.page-list .product-item .product-item-wrapper {
    display: block;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    top: 0;
}

.page-list .product-item .product-item-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    top: 0;
}

.page-list .product-item .pic {
    overflow: hidden;
    position: relative;
    border-radius: 0;
}

.page-list .product-item .pic img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.page-list .product-item .product-item-wrapper:hover .pic img {
    transform: scale(1.05);
}

.page-list .product-item .content-wrapper {
    padding: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.page-list .product-item .product-item-wrapper:hover .content-wrapper {
    background-color: #fff;
}

.page-list .product-item .product-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    text-align: left;
}

.page-list .product-item .product-item-wrapper:hover .product-item-title {
    color: var(--primary-color, #0d6efd);
}

.page-list .product-item .product-item-info {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.page-list .product-item .product-item-wrapper:hover .product-item-info {
    color: #666;
}

.page-list .product-item .product-item-bottom {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.page-list .product-item .public-more {
    color: var(--primary-color, #0d6efd);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    background: transparent;
}

.page-list .product-item .public-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.page-list .product-item .product-item-wrapper:hover .public-more {
    color: var(--primary-color, #0d6efd);
}

.page-list .product-item .product-item-wrapper:hover .public-more i {
    transform: translateX(3px);
}

.page-list .product-item .public-more::after {
    display: none;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .product-category-wrapper {
        margin-bottom: 20px;
    }
    
    .page-list .product-item {
        margin-bottom: 20px;
    }
}

/* 分页样式优化 */
.page-pagination {
    margin-top: 20px;
    text-align: center;
}

.page-pagination .pagination {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
}

.page-pagination .pagination li {
    margin: 0 3px;
}

.page-pagination .pagination li a,
.page-pagination .pagination li span {
    border-radius: 4px;
    color: #333;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    transition: all 0.3s ease;
}

.page-pagination .pagination li.active span,
.page-pagination .pagination li a:hover {
    background-color: var(--primary-color, #0d6efd);
    color: #fff;
    border-color: var(--primary-color, #0d6efd);
} 