/* 产品分类页面样式 - 简洁版本 */

/* 基础容器样式 */
.main-content {
      padding: 120px 0;
    background-color: #f8f9fa;
    min-height: 60vh;
    /* margin: 144px auto; */
    margin-top: 86px;
    margin-bottom: 4px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    height: fit-content;
}

.sidebar-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid #f1f3f4;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    display: block;
    padding: 15px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.category-item a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.category-item.active a {
    background-color: #007bff;
    color: white;
}

/* 产品网格区域 */
.products-grid {
    flex: 1;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 30px;
}

/* 分类总数显示 */
.category-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.category-title {
    font-size: 20px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.category-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 产品列表网格 */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 产品卡片 */
.product-item {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.product-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-item h4 {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.product-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-view {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.btn-view:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state img {
    max-width: 120px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current-page {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination .current-page {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-info {
    margin-left: 20px;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .product-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pagination {
        justify-content: flex-start;
    }
    
    .page-info {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .products-grid {
        padding: 20px;
    }
    
    .product-item {
        padding: 15px;
    }
} 