/* 产品展示页面样式 */
.products {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.products h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;  /* 确保卡片高度一致 */
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 450px;  /* 进一步增加高度 */
    object-fit: contain;  /* 确保图片完整显示 */
    background-color: #f8f9fa;
    padding: 25px;  /* 增加内边距 */
    display: block;  /* 确保图片正确显示 */
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;  /* 确保文字背景为白色 */
}

.product-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;  /* 加粗标题 */
}

.product-info p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    margin: 0;  /* 移除默认边距 */
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-card img {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .products {
        padding: 60px 0;
    }

    .product-card img {
        height: 300px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 250px;
        padding: 15px;
    }
} 