/* 产品分类页独立样式 */
.product-archive-banner {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.product-archive-title {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-archive-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.product-archive-main {
    padding: 60px 0;
    background: #f8f9fa;
}

.product-archive-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* 分类导航侧边栏 */
.category-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.category-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #1e40af;
    padding-bottom: 8px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    color: #34495e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-link:hover {
    color: #1e40af;
}

.category-count {
    background: #1e40af;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.category-link.active {
    color: #1e40af;
    font-weight: 500;
}

/* 产品网格区域 */
.product-grid-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.product-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.product-grid-title {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.product-grid-description {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    color: #7f8c8d;
    font-weight: 500;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: white;
    color: #34495e;
    font-size: 14px;
}

/* 产品网格 */
.product-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px 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 10px 25px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
}

.product-specs {
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-details-btn:hover {
    background: #3b82f6;
}

.product-pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: block;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    color: #34495e;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: #1e40af;
    color: #1e40af;
}

.page-item.active .page-link {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.page-item.disabled .page-link {
    color: #bdc3c7;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-grid-4col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-archive-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-sidebar {
        position: static;
    }
    
    .product-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .filter-options {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .product-grid-4col {
        grid-template-columns: 1fr;
    }
    
    .product-archive-banner {
        padding: 60px 0;
    }
    
    .product-archive-title {
        font-size: 28px;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}