:root {
    --brand-blue: #005cb9; /* 匹配图片中的深蓝色 */
    --bg-gray: #ffffff;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
}

/* 标题部分 */
.header1 {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 6px 0;
}

.header-bar {
    width: 8px;
    height: 40px;
    background-color: var(--brand-blue);
    margin-right: 15px;
}

.header1 h1 {
    color: var(--brand-blue);
    font-size: 32px;
    margin: 0;
    letter-spacing: 1px;
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 三列等宽 */
    grid-gap: 15px; /* 格子间距 */
}

.grid-item {
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

/* 蓝色文字块样式 */
.text-block {
    background-color: var(--brand-blue);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.text-block h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: normal;
}

.text-block p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

/* 图片块样式 */
.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片填充且不缩放变形 */
    display: block;
    transition: transform 0.3s ease;
}

/* 简单的鼠标交互 */
.grid-item:hover img {
    transform: scale(1.05);
}
.content-section{
    margin-top: 20px;
}

/* 产品网格 */
.product-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列布局 */
    gap: 15px;
    max-width: 1200px;
}


.product-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f4f4f4;
    aspect-ratio: 4 / 3; /* 保持图片比例统一 */
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 86, 179, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .overlay {
    opacity: 1;
}

/* 响应式适配：手机端变为一列 */
@media (max-width: 768px) {
    .header1 {
        width: 100%;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
    .header1 h1 {
        font-size: 24px;
    }
    .container{
        max-width: 100%;
        padding: 16px;
    }
    .product-grid{
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
    }
    .product-grid .img{
        max-width: 100%;
    }
}
