﻿.container {
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* 分类菜单样式 */
.category-menu {
    padding: 0;
    /*    background-color: #e6f2ff;*/
    border-radius: 8px;
    padding: 20px;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-menu-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.category-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

    .category-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 4px;
}

    .category-title:hover {
        background-color: #e9ecef;
    }

/* 箭头样式 - 使用特殊字符 */
.arrow::after {
    content: '+'; /* 默认向下箭头 */
    font-size: 20px;
    color: #666;
}

.category-title.active .arrow::after {
    content: '-'; /* 展开后向上箭头 */
}

.subcategory-list a{
    color:#333
}


.subcategory-list {
    padding-left: 20px;
    display: none;
    margin-top: 10px;
}

.subcategory-item {
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

    .subcategory-item:hover {
        background-color: #e9ecef;
    }

    .subcategory-item.active {
        background-color: #e9ecef;
        color: #0066cc;
    }

/* 当前选择提示样式 */
.current-selection {
    /*     margin-bottom: 18px;*/
    padding: 16px 0px;
    font-size: 16px;
    /*        border-bottom: 1px solid #e0e0e0;*/
}

    .current-selection span {
        font-weight: bold;
        color: #333;
        font-size: 20px;
    }

/* 产品列表样式 */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

    .product-card a {
        text-decoration: none;
    }

.product-name:hover {
    color: #004098
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    position: relative;
    width: 100%;
    /*  height: 220px;*/
    border-radius: 8px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-size: 16px;
    /*        font-weight: bold;*/
    margin: 8px;
    color: #222;
    position: relative;
    z-index: 1;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination-item {
    padding: 8px 14px !important;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

    .pagination-item.active {
        background-color: #0066cc;
        color: white;
    }

/* 响应式布局 */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }

    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-list {
        grid-template-columns: 1fr;
    }
}
