/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 产品展示区域样式 */
.xytzg_products20250803 {
    padding: 30px 0;
}

/* 行容器确保高度一致 */
.row {
    display: flex;
    flex-wrap: wrap;
}

/* 产品项样式 - 确保每行高度一致 */
.product-item {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    height: 100%; /* 关键：让产品项占满父容器高度 */
    display: flex;
    flex-direction: column; /* 垂直排列内部元素 */
}

.product-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 产品图片容器样式 - 固定高度确保一致性 */
.product-img-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
    flex: 1; /* 关键：让图片容器占据可用空间 */
    display: flex;
    flex-direction: column;
}

.product-img {
    width: 100%;
    /* 固定图片容器高度，确保每行一致 */
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 产品图片样式 */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片比例，居中显示，不变形 */
    transition: transform 0.5s ease; /* 过渡效果 */
}

/* 鼠标悬停时的缩放效果 */
.product-item:hover .product-img img {
    transform: scale(1.05); /* 缩放1.05倍 */
}

/* 产品内容样式 */
.product-content {
    padding: 15px;
    text-align: center;
    background-color: #fff;
}

.product-title a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #0d6efd; /* Bootstrap主色调 */
}