/* 列表页特定样式 */

/* 面包屑导航 */
.breadcrumb {
    background-color: #f9f9f9;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb ul {
    display: flex;
    align-items: center;
}

.breadcrumb ul li {
    font-size: 14px;
    color: #666;
}

.breadcrumb ul li:not(:last-child):after {
    content: '>';
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb ul li:last-child {
    color: #333;
    font-weight: bold;
}

/* 筛选区域 */
.filter-section {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px;
}

.filter-group label {
    margin-right: 10px;
    font-weight: bold;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.search-box {
    display: flex;
    margin-bottom: 10px;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    min-width: 200px;
}

.search-box button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 产品列表 */
.products-list {
    padding: 30px 0 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 200px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.rating {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.rating span {
    margin-left: 5px;
    color: #666;
    font-size: 14px;
}

.price {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-info .btn {
    width: 100%;
    text-align: center;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group,
    .search-box {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .filter-group select,
    .search-box input {
        flex: 1;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
} 