/* 复制原始 products-page.css 的内容 */
/* 页面标题样式 */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/tupian.png');
    background-size: cover;
    background-position: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 产品筛选样式 */
.products-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.filter-group {
    display: flex;
    gap: 20px;
}

.category-filter,
.price-filter {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    min-width: 150px;
    cursor: pointer;
}

.search-filter {
    display: flex;
    gap: 10px;
}

.search-filter input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
}

.search-filter button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-filter button:hover {
    background: var(--primary-dark);
}

/* 产品网格样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a.active {
    background: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .search-filter {
        width: 100%;
    }
    
    .search-filter input {
        flex: 1;
    }
}

/* 产品页面样式 */
.products-page {
    padding-top: 60px;
}

.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/tupian.png');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.products-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* 筛选部分样式 */
.filters {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filter-group {
    display: flex;
    gap: 15px;
}

.category-filter,
.price-filter {
    padding: 12px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
    min-width: 150px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.category-filter:hover,
.price-filter:hover {
    border-color: var(--primary-color);
}

.search-filter {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-filter input {
    padding: 12px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    flex: 1;
    transition: border-color 0.3s;
}

.search-filter input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-filter button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-filter button:hover {
    background: var(--primary-dark);
}

/* 产品网格样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s;
}

.view-details:hover {
    background: white;
    color: var(--text-dark);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    margin-bottom: 15px;
}

.product-info h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.2rem;
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.downloads {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters {
        flex-direction: column;
    }
    
    .search-filter {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
        width: 100%;
    }
    
    .category-filter,
    .price-filter {
        width: 100%;
    }
} 