/* 继承基础样式 */
@import "me.css";

/* 产品中心特定样式 */
.products-container {
    width: 75%;
    margin: 40px auto;
    padding: 20px 0;
}

/* 分类导航 */
.category-nav {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.category-nav ul {
    display: flex;
    gap: 40px;
}

.category-nav li {
    padding: 15px 0;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    position: relative;
}

.category-nav li.active {
    color: #004FA2;
}

.category-nav li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #004FA2;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.detail-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #004FA2;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.detail-btn:hover {
    background-color: #003d7a;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #eee;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover,
.pagination a.active {
    background-color: #004FA2;
    color: #fff;
    border-color: #004FA2;
}

.pagination .next-btn {
    padding: 8px 20px;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-nav ul {
        gap: 20px;
        flex-wrap: wrap;
    }
}

/* 产品展示区域样式 */
.products-showcase {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.product-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.product-card {
    flex: 1;
    min-width: 0;
    max-width: calc(20% - 16px); /* 确保一行5个产品 */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-image {
    width: 100%;
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-details {
    padding: 15px;
    background: #fff;
}

.product-details .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
}

.product-details .brand {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.product-details .name {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
    text-align: right;
}

/* 悬浮效果 */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .product-card {
        max-width: calc(25% - 15px); /* 一行4个 */
    }
}

@media screen and (max-width: 992px) {
    .product-card {
        max-width: calc(33.33% - 14px); /* 一行3个 */
    }
}

@media screen and (max-width: 768px) {
    .product-card {
        max-width: calc(50% - 10px); /* 一行2个 */
    }
}

@media screen and (max-width: 480px) {
    .product-card {
        max-width: 100%; /* 一行1个 */
    }
} 