/* 产品页面样式 */

/* 产品列表样式 */
.product-list {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-list h1 {
    font-size: 36px;
    margin-bottom: 24px;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.product-list h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #0099ff);
    border-radius: 2px;
}
.product-list .categories {
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: inline-block;
    border-left: 4px solid #0066cc;
}
.product-list .categories span {
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.product-list .categories span:hover {
    color: #0066cc;
    background-color: #e3f2fd;
}

/* 产品网格样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-item {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 4px;
}

.product-item a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
}

.product-item a:hover {
    color: #0066cc;
}

.product-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.product-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* 查看全部产品按钮 */
.view-all-products {
    text-align: center;
    margin: 30px 0;
}

.view-all-products a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.view-all-products a:hover {
    background-color: #555;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.pagination-info .highlight {
    color: #0066cc;
    font-weight: 600;
    margin: 0 4px;
}

.pagination a {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 6px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.pagination a.active {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: white;
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

.pagination a:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #0066cc;
    color: #0066cc;
}

.pagination .next {
    background-color: #f8f9fa;
    font-weight: 600;
}

.pagination .next:hover {
    background-color: #0066cc;
    color: white;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .pagination-info {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .product-list {
        padding: 20px;
    }
}