/* 外层阴影背景容器：全屏宽度，延伸到左右边缘 */
.product-container {
    width: 100%; /* 关键：占满屏幕宽度 */
    margin: 0px 0; /* 只保留上下间距，去掉左右margin */
    padding: 80px 0; /* 上下内边距，左右内边距由内层控制 */
    background-color: #f5f5f5; /* 浅灰背景 */
}

/* 内层内容容器：限制内容最大宽度，居中显示 */
.product-inner {
    max-width: 1400px; /* 内容最大宽度（可调整） */
    width: 100%;
    margin: 0 auto; /* 居中 */
    padding: 0 30px; /* 左右内边距，避免内容贴边 */
}

/* 标题区域 */
.product-header {
    text-align: center;
    margin-bottom: 80px;
}

.product-title {
    font-size: 2rem;
    color: #333;
    margin: 0 0 15px;
    font-weight: 600;
}

.product-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 产品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-content: center
}

/* 产品项样式 */
.product-item {
    display: block;
    background-color: #fff;
    border-radius: 0px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.3s ease;
    padding: 15px; /* 白色容器内边距，让图片不占满宽度 */
    margin: 0 auto;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    height: 360px; /* 固定高度 */
    width: 240px;   /* 宽度自适应，保持比例 */
    object-fit: cover; /* 或 contain，根据需求选择 */
    object-position: center;
    display: block;
    border-radius: 0px;
    margin-top: 0px;
}

/* 产品标题 */
.product-item h3 {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
    padding: 15px 0 10px;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .product-item img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-item img {
        height: 250px;
    }
    .product-title {
        font-size: 1.6rem;
    }
}