/* 产品中心页面专用样式 */

/* 主体内容样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 横幅区域样式 - 高度300px，建议使用1920x300像素的背景图 */
.product-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/products/0.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 55, 98, 0.6); /* 半透明行政蓝叠加层 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 2;
}

.banner-overlay h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.banner-overlay p {
    font-size: 24px;
    margin: 0;
}

/* 产品图片展示区域 */
.product-gallery {
    padding: 60px 0;
    background-color: white;
}

/* 图片网格布局 - 固定2列 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 图片项样式 */
.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3; /* 强制保持4:3比例 */
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* 图片样式 - 建议使用800x600像素的图片，保持4:3比例 */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* 渐入动画效果 - 与应用领域页面一致 */
@keyframes gentleAppear {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-element {
    opacity: 0;
    animation: gentleAppear 0.6s ease-out forwards;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .gallery-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .banner-overlay h1 {
        font-size: 36px;
    }
    
    .banner-overlay p {
        font-size: 18px;
    }
    
    .product-gallery {
        padding: 40px 0;
    }
    
    .gallery-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-banner {
        height: 250px;
    }
    
    .banner-overlay h1 {
        font-size: 32px;
    }
    
    .banner-overlay p {
        font-size: 16px;
    }
    
    .gallery-grid {
        gap: 10px;
    }
}