/* 产品中心页面专用样式 */

/* 主体内容样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 产品横幅区域样式 - 高度500px，建议使用1920x500像素的背景图 */
.product-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/product-banner.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-nav-buttons {
    background-color: #f8f8f8;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-button {
    padding: 10px 25px;
    background-color: #163762; /* 行政蓝 */
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-button:hover {
    background-color: #0e2a4a; /* 深蓝色 */
    transform: translateY(-2px);
}

/* 产品部分样式 */
.product-section {
    padding: 60px 0;
    background-color: white;
}

.product-section:nth-child(even) {
    background-color: #f8f8f8; /* 交替背景色 */
}

.product-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    color: #163762; /* 行政蓝 */
    font-size: 32px;
    margin-bottom: 20px;
}

.product-info p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.product-images {
    flex: 1;
}

/* 产品图片网格布局 - 电脑端4列 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.image-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #333;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-item img {
    width: 100%;
    height: 100px; /* 固定高度，保持3:4比例 */
    object-fit: cover;
}

.image-caption {
    padding: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    background-color: white;
}

/* 应用领域部分样式 */
.application-section {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

.application-section h2 {
    color: #163762; /* 行政蓝 */
    font-size: 32px;
    margin-bottom: 40px;
}

.category-link {
    color: inherit;
    text-decoration: none;
}

.category-link:hover {
    text-decoration: underline;
}

/* 应用领域网格布局 - 电脑端8列 */
.application-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.application-item {
    display: block;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.application-item:hover {
    transform: translateY(-5px);
}

.application-item img {
    width: 100%;
    height: 120px; /* 正方形1:1比例 */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}

.application-caption {
    font-size: 16px;
    font-weight: 500;
}

/* 渐入动画效果 - 与企业荣誉页面一致 */
@keyframes gentleAppear {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-element {
    opacity: 0;
    animation: gentleAppear 0.6s ease-out forwards;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-content {
        flex-direction: column;
    }
    
    .product-info, .product-images {
        width: 100%;
    }
    
    /* 平板端产品图片3列 */
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 平板端应用领域4列 */
    .application-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-overlay h1 {
        font-size: 36px;
    }
    
    .banner-overlay p {
        font-size: 18px;
    }
    
    .product-section {
        padding: 40px 0;
    }
    
    .product-info h2 {
        font-size: 28px;
    }
    
    /* 手机端产品图片2列 */
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-item img {
        height: 150px;
    }
    
    /* 手机端应用领域2列 */
    .application-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .application-item img {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .product-banner {
        height: 400px;
    }
    
    .banner-overlay h1 {
        font-size: 32px;
    }
    
    .banner-overlay p {
        font-size: 16px;
    }
    
    .nav-button {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .product-info h2 {
        font-size: 24px;
    }
    
    .image-item img {
        height: 120px;
    }
    
    .application-item img {
        height: 80px;
    }
    
    .application-caption {
        font-size: 14px;
    }
}