/* 产品网格布局样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* 免费学习使用页面的产品网格 - 一排显示5个产品 */
.public-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

/* 产品卡片基础样式 */
.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* 产品图片样式 */
.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* 产品信息样式 */
.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-bg);
}

.product-info .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.product-info p {
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.product-info .target-audience {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 产品特性列表 */
.product-features {
    margin-bottom: 1.5rem;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 响应式设计 - 大屏幕 (1025px+) */
@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* 免费学习使用页面在大屏幕上保持5列 */
    .public-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 响应式设计 - 中等屏幕 (769px-1024px) */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* 免费学习使用页面在中等屏幕上调整为3列 */
    .public-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 响应式设计 - 小屏幕 (max-width: 768px) */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    /* 免费学习使用页面在小屏幕上调整为2列 */
    .public-grid {
        grid-template-columns: repeat(2, 1fr);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-image {
        height: 180px;
    }
}

/* 特殊优惠样式 */
.product-card.special-offer {
    border: 2px solid var(--primary-color);
}

.product-card.special-offer .product-info h4 {
    color: var(--primary-color);
}