.productCenter220507 {
    max-width: 1200px;
    margin: 0 auto;
}

.productCenter220507 * {
    box-sizing: border-box;
}

.productCenter220507 ul:after {
    content: "";
    height: 0;
    display: block;
    clear: both;
    visibility: hidden;
}

.productCenter220507 ul {
    padding: 0;
    margin: 0;
    list-style: none;
    /* 关键：抵消最右侧间距，让整体铺满 */
    margin-right: -20px;
}

.productCenter220507 ul li {
    /* 核心：1200px容器 一行4个 完美计算 */
    width: 285px;
    height: 360px;
    float: left;
    margin-bottom: 20px;
    margin-right: 20px;
}

.productCenter220507 ul li:nth-child(4n) {
    margin-right: 0;
}

.productCenter220507 ul li a {
    display: block;
    text-decoration: none;
    position: relative;
    height: 100%;
    background: #fff;
    /* ==========新增：默认卡片阴影========== */
    box-shadow: 0 4px 12px rgba(47, 125, 204, 0.12);
    border-radius: 4px;
    overflow:hidden;
}

.productCenter220507 ul li a:hover {
    /* hover加深阴影，层次感更强 */
    box-shadow: 0px 15px 20px rgb(0 0 0 / 10%);
}

.productCenter220507 ul li a:hover .proImg img {
    transform: scale(1.1);
}

.productCenter220507 ul li a .proImg {
    overflow: hidden;
    width: 100%;
    height: 315px; /* 原285px，卡片总高360，360-45=315，图片区域自动增高适配标题栏 */
}

.productCenter220507 ul li a .proImg img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: none;
    display: block;
    transition: all 0.6s;
    /* 完整展示图片，不裁切 */
    object-fit: contain;
    /* 图片居中显示 */
    object-position: center;
}

/* 文字栏背景改为 #2f7dcc，高度改为45px */
.productCenter220507 ul li a .content {
    background: #7dcbf0;
    text-align: center;
    font-size: 16px;
    padding: 0 16px;
    height: 45px;
    line-height: 45px; /* 行高同步改为45，文字垂直居中 */
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    overflow: hidden;
}

/* 文字白色适配蓝色背景 */
.productCenter220507 ul li a .content .dec {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    color: #fff;
}