/* 面包屑导航 */
.breadcrumb {
    background: #f5f7fa;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb a {
    color: #595959;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #1890ff;
}

.breadcrumb span {
    color: #8c8c8c;
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    width: 60px;
    font-size: 13px;
    color: #8c8c8c;
    font-weight: 500;
    flex-shrink: 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-option {
    padding: 4px 12px;
    font-size: 13px;
    color: #595959;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.filter-option:hover {
    color: #1890ff;
    background: #e6f7ff;
}

.filter-option.active {
    color: #fff;
    background: #1890ff;
}

/* 排序工具栏 */
.sort-toolbar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 16px;
}

.sort-toolbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 13px;
    color: #8c8c8c;
}

.sort-item {
    font-size: 13px;
    color: #595959;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.sort-item:hover {
    color: #1890ff;
}

.sort-item.active {
    color: #1890ff;
    background: #e6f7ff;
    font-weight: 500;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 6px 12px;
    font-size: 12px;
    color: #595959;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.view-btn.active {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.result-info {
    font-size: 13px;
    color: #8c8c8c;
}

.result-info strong {
    color: #ff4d4f;
    font-size: 15px;
}

/* 产品列表区域 */
.product-list-section {
    padding: 16px 0 40px;
    min-height: 600px;
}

/* 网格视图 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.product-card:hover {
    border-color: #d6e4ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    color: #fff;
    border-radius: 2px;
    font-weight: 500;
}

.product-badge.hot {
    background: #ff4d4f;
}

.product-badge.new {
    background: #52c41a;
}

.product-badge.vip {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #262626;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #1890ff;
}

.product-price {
    margin-bottom: 8px;
    font-size: 13px;
}

.price-label {
    color: #8c8c8c;
}

.price-value {
    color: #ff4d4f;
    font-size: 16px;
    font-weight: 600;
}

.product-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #8c8c8c;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-company {
    font-size: 12px;
    color: #595959;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

/* 列表视图 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-list .product-card {
    display: flex;
    height: 160px;
}

.product-list .product-image {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.product-list .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.product-list .product-title {
    height: auto;
    -webkit-line-clamp: 1;
    font-size: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 20px 0;
}

.page-item {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #595959;
    text-decoration: none;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.page-item:hover {
    color: #1890ff;
    border-color: #1890ff;
}

.page-item.active {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.page-item.disabled {
    color: #d9d9d9;
    cursor: not-allowed;
}

.page-item.disabled:hover {
    color: #d9d9d9;
    border-color: #d9d9d9;
}

.page-ellipsis {
    color: #8c8c8c;
    padding: 0 4px;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    font-size: 13px;
    color: #595959;
}

.page-input {
    width: 50px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    text-align: center;
    font-size: 13px;
}

.page-input:focus {
    outline: none;
    border-color: #1890ff;
}

.page-confirm {
    padding: 0 12px;
    height: 32px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    font-size: 13px;
    color: #595959;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-confirm:hover {
    color: #1890ff;
    border-color: #1890ff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-options {
        gap: 6px;
    }
    
    .filter-option {
        padding: 3px 10px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .sort-toolbar .container {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .result-info {
        order: 3;
        width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-info {
        order: 3;
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filter-label {
        width: auto;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .header .container {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }
}
