/* 产品展示网格样式 - Biopak经典布局 */
.product-grid-section {
    width: 100%;
    padding: 60px 0;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-grid-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.product-grid-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 大图行样式 */
.large-images-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.large-image-item {
    position: relative;
}

/* 小图行样式 */
.small-images-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.small-image-item {
    position: relative;
}

/* 通用图片容器样式 */
.image-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 大图和小图的不同高度 */
.large-image-item .image-container {
    height: 400px;
}

.small-image-item .image-container {
    height: 200px;
}

.product-grid-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 悬停效果 */
.product-grid-section[data-hover-effect="true"] .image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-grid-section[data-hover-effect="true"] .image-container:hover .grid-image {
    transform: scale(1.05);
}

/* 覆盖层样式 */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-grid-section[data-hover-effect="true"] .image-container:hover .image-overlay {
    opacity: 1;
}

.content-wrapper {
    width: 100%;
}

.image-title {
    color: white;
    margin: 0 0 10px 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.large-image-item .image-title {
    font-size: 1.8rem;
    line-height: 1.3;
}

.small-image-item .image-title {
    font-size: 1.2rem;
    line-height: 1.3;
}

.view-button {
    display: inline-block;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.product-grid-link:hover .view-button {
    background: white;
    color: #333;
}

/* 无悬停效果时的样式 */
.product-grid-section[data-hover-effect="false"] .image-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .small-images-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .large-image-item .image-container {
        height: 350px;
    }
    
    .small-image-item .image-container {
        height: 180px;
    }
    
    .product-grid-title {
        font-size: 2.2rem;
    }
    
    .large-image-item .image-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .product-grid-section {
        padding: 40px 0;
    }
    
    .product-grid-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .large-images-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .large-image-item .image-container {
        height: 300px;
    }
    
    .small-image-item .image-container {
        height: 160px;
    }
    
    .image-overlay {
        padding: 25px;
    }
    
    .large-image-item .image-title {
        font-size: 1.4rem;
    }
    
    .small-image-item .image-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .product-grid-title {
        font-size: 1.8rem;
    }
    
    .large-image-item .image-container {
        height: 250px;
    }
    
    .small-image-item .image-container {
        height: 140px;
    }
    
    .small-images-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .image-overlay {
        padding: 20px;
    }
    
    .large-image-item .image-title {
        font-size: 1.3rem;
    }
    
    .small-image-item .image-title {
        font-size: 1rem;
    }
    
    .view-button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* 额外的间距调整 */
.large-images-row {
    margin-bottom: 10px;
}

.small-images-row {
    margin-top: 10px;
}