.products-container {
    margin-top: 0;
    padding: 0rem 2rem 2rem;
    max-width: var(--max-width);
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
}

.category-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    width: 100%;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;  /* 默认电脑端4列 */
    gap: 2rem;
    margin-top: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 默认电脑端4列 */
    gap: 2rem;
}

.product-card {
    position: relative;
    background: #fff;
    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;
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;  /* 确保卡片占满容器宽度 */
}

/* 将原来的product-card改为a标签的样式 */
a.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 产品卡片图片容器 */
.product-image {
    width: 100%;
    position: relative;
    padding-top: 75%; /* 设置高度为宽度的75%，实现4:3比例 */
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

a.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 移除之前的链接样式 */
.product-link {
    display: none;
}

/* 添加遮罩层 */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
}

.product-card:hover .product-image::after {
    background: rgba(0, 0, 0, 0.3);
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:nth-child(2n) {
    animation-delay: 0.2s;
}

/* 响应式布局调整 */
@media screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);  /* 平板端3列 */
        gap: 1.5rem;
    }
}

/* 移动端样式调整 */
@media screen and (max-width: 768px) {
    .category-section {
        padding: 0 1rem;
        margin-bottom: 0;
    }

    .category-title {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    .product-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0 5px;
    }

    .product-card {
        margin-bottom: 1rem;  /* 添加底部间距 */
        width: 100%;  /* 确保占满宽度 */
    }

    .product-image {
        padding-top: 75%; /* 保持4:3比例 */
    }

    .product-info {
        padding: 0.5rem 0;
    }

    .product-title {
        font-size: 1rem;
        margin: 0;
    }
}

@media screen and (max-width: 480px) {
    .product-grid {
        gap: 0.8rem;
    }

  
}

/* 修改导航按钮样式 */
.model-nav {
    position: sticky;
    top: 80px;
    background: #fff;
    padding: 1rem 0;
    margin-bottom: 2rem;
    z-index: 89; /* 降低z-index，让它低于header的下拉菜单 */
    border-bottom: 1px solid var(--light-gray);
}

.model-nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.model-nav-list {
    display: flex;
    flex-wrap: wrap; /* 允许按钮换行 */
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.model-nav-button {
    padding: 0.8rem 1.5rem;
    background: var(--light-gray);
    border: none;
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.model-nav-button:hover,
.model-nav-button.active {
    background: var(--primary-color);
    color: #fff;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .model-nav-container {
        padding: 0 1rem;
    }
    
    .model-nav-list {
        gap: 0.5rem;
    }
    
    .model-nav-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .product-link{
        display: none;  
    }
    .products-container{
        padding: 1rem 0 0;
    }.category-title{
        margin-bottom: 0;
        line-height: 1.5;
    }
}

/* 筛选器容器 */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* 筛选器组 */
.filter-group {
    flex: 1;
    min-width: 200px;
}

/* 筛选器下拉菜单 */
.filter-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #fff;
    cursor: pointer;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .filters {
        flex-wrap: nowrap;
        gap: 0.5rem;
        margin: 1rem 0;
        padding: 0 5px;
    }
    
    .filter-group {
        min-width: auto;
        flex: 1;
    }
    
    .filter-select {
        padding: 0.5rem;
        font-size: 14px;
    }

    /* 调整选项文本在移动端的显示 */
    .filter-select option {
        font-size: 14px;
    }

    /* 调整产品列表在移动端的显示 */
    .product-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 0 5px;
    }

    .product-card {
        margin-bottom: 1rem;
    }
} 