/* 产品列表页面样式 */

/* 导航栏激活状态 */
.nav a.active {
    color: var(--accent-color);
}

.nav a.active::after {
    width: 100%;
}

/* 页面横幅 */
.page-banner {
    background-color: var(--dark-bg);
    background-image: linear-gradient(135deg, #001a33 0%, #003366 100%);
    color: var(--light-text);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/grid-pattern.png');
    opacity: 0.1;
}

.page-banner-content {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.7;
}

.breadcrumb a {
    color: var(--accent-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 产品分类 */
.product-categories {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tab {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.category-tab:hover {
    background-color: rgba(0, 102, 255, 0.1);
}

.category-tab.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* 产品列表 */
.product-list {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    transition: var(--transition);
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-content p {
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background-color: #f0f5ff;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.btn-more {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.btn-more:hover i {
    transform: translateX(3px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: #fff;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.page-item:hover {
    background-color: #f0f5ff;
}

.page-item.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.page-item.next {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .page-banner {
        padding: 100px 0 50px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
} 