/* products.css - 产品列表页面专用样式（修改版） */

/* 产品页面 Hero 区域 */
.products-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1573164713988-8665fc963095?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 0;
}

.products-hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.products-hero-content h1 span {
    color: #3498db;
}

.products-hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 筛选区域 - 修改为纯链接形式 */
.filter-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    text-align: center;
}

.filter-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-link {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    text-decoration: none;
}

/* 产品分类区域 */
.category-section {
    margin-bottom: 60px;
}

.category-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.category-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-header p {
    color: #7f8c8d;
    max-width: 800px;
}

/* 产品网格布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 220px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-item:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-desc {
    color: #7f8c8d;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.product-specs span {
    display: flex;
    align-items: center;
    color: #5a6c7d;
}

.product-specs i {
    margin-right: 5px;
    color: #3498db;
}

.product-info .btn-secondary {
    align-self: flex-start;
    margin-top: auto;
}

/* 分页区域 - 新增 */
.pagination-section {
    margin-bottom: 60px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.page-btn:hover:not(.disabled) {
    background-color: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
    text-decoration: none;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.page-number:hover:not(.active) {
    background-color: #f8f9fa;
    color: #3498db;
    text-decoration: none;
}

.page-number.active {
    background-color: #3498db;
    color: white;
    text-decoration: none;
}

.page-dots {
    color: #adb5bd;
}

/* 材料与表面处理区域 */
.materials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.material-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.material-card:hover {
    transform: translateY(-10px);
}

.material-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 20px;
}

.material-card h3 {
    margin-bottom: 15px;
}

.material-list {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.material-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #5a6c7d;
}

.material-list li:last-child {
    border-bottom: none;
}

.material-list li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* CTA区域 */
.cta-container {
    background-color: #3498db;
    color: white;
    padding: 60px;
    border-radius: 8px;
    text-align: center;
}

.cta-container h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-container p {
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background-color: white;
    color: #3498db;
    border-color: white;
}

.cta-buttons .btn-primary:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.cta-buttons .btn-secondary:hover {
    background-color: white;
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .products-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .products-hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 80px 0 40px;
    }
    
    .filter-links {
        justify-content: center;
    }
    
    .cta-container {
        padding: 40px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 20px;
    }
    
    .page-numbers {
        order: -1;
    }
}

@media (max-width: 576px) {
    .products-hero-content h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .materials-container {
        grid-template-columns: 1fr;
    }
    
    .filter-link {
        flex-grow: 1;
        text-align: center;
        min-width: 140px;
    }
}