/* Product List Page Styles */
.category-intro-section {
    padding: 4rem 0;
    background: white;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}
.category-blockquote {
    padding: 20px;
    margin: 0 0 20px;
    border-left: 5px solid #eeeeee;
    background-color: #f8f9fa;
    border-color: var(--primary-color);
    font-size: 1.2rem;
    color: var(--gray-800);
}
.category-blockquote p{
    margin-bottom: 0;
}


.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.category-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 产品筛选区样式 */
.product-filter-section {
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
}

.filter-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.filter-dropdown {
    position: relative;
}

.brand-filter {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-filter:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
    color: #2c3e50;
    background: white;
}

.brand-filter:hover {
    border-color: var(--primary-color);
    color: #2c3e50;
    background: white;
}

.brand-filter option {
    color: #2c3e50;
    background-color: #ffffff;
    padding: 0.5rem;
    font-size: 1rem;
}

.brand-filter optgroup {
    color: #007bff;
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
}

.filter-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.filter-stats {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-text {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

#productCount {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-list-section {
    padding: 4rem 0;
    background: var(--bg-light);
    background: #f3f3f3;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.product-count-info {
    color: var(--text-muted);
}

.list-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.view-toggle {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: var(--primary-blue);
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-grid.list-view {
    grid-template-columns: 1fr;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
}

.product-grid.list-view .product-image {
    aspect-ratio: 1 / 1;
    width: 200px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}



.product-content {
    padding: 1.5rem;
}

.product-grid.list-view .product-content {
    flex: 1;
}

.product-grid.list-view .product-card {
    display: flex;
    align-items: center;
}

.product-category {
    display: inline-block;
    background: var(--theme-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
.product-grid .product-title {
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--primary-light);
    text-align: center;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec-tag {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.pagination-section {
    margin-top: 2rem;
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.page-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #333;
    text-decoration: none;
}

.page-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    text-decoration: none;
}

.page-btn.prev,
.page-btn.next {
    padding: 0 12px;
}

.page-btn:disabled {
    background: #f9f9f9;
    color: #ccc;
    border-color: #f0f0f0;
    cursor: not-allowed;
}

/* 平板端媒体查询 */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* 移动端section padding优化 */
    .category-intro-section {
        padding: 2rem 0;
    }
    
    .product-list-section {
        padding: 2rem 0;
    }
    
    .pagination-section {
        padding: 1.5rem 0;
    }
    
    .category-header {
        margin-bottom: 2rem;
    }
    
    /* 产品筛选区移动端样式 */
    .product-filter-section {
        margin-top: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .filter-container {
        padding: 0;
    }
    
    .filter-info {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .filter-stats {
        padding: 0.75rem 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }
    
    .product-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .product-grid.list-view .product-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    
    .list-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .list-controls {
        justify-content: center;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* 移动设备上特性模块一排显示两个 */
    .category-features .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0;
    }
    
    .category-features .col-lg-3,
    .category-features .col-md-6 {
        grid-column: span 1;
    }
    
    .feature-item {
        margin-bottom: 0;
        padding: 1rem;
    }
    
    .feature-title {
        font-size: 0.9rem !important;
    }
    
    .feature-desc {
        font-size: 0.85rem;
    }
    .product-grid .product-title {
        font-size: 12px !important;
        font-weight: 700;
        margin-top: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}
