/*解决方案*/
/* 整体产品展示区域 */
.product-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
    background: #ffffff; /* 背景颜色可调整 */
}

/* 三列等宽容器 */
.product-container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1400px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* 自动填充，最小300px */
    gap: 50px;
    width: 90%;
    max-width: 1400px;
}

/* 卡片样式保持不变 */
.product-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

/* 每个产品卡片 */
/*.product-card {
    width: 32%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}*/

/* 悬浮时放大 */
.product-card:hover {
    transform: scale(1.05);
}

/* 图片容器 */
.product-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 图片样式 */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* 默认黑白滤镜 */
.product-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* 文字悬浮层 */
.product-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding:10px 20px;
    height: 25%;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    color: white;
    transition: background 0.5s ease-in-out;
    justify-content: center;
}
/* 标题 */
.product-overlay h2 {
    font-size: 18px;
    margin-bottom: 5px;
    transform: translateY(10px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* 描述 */
.product-overlay p {
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
/* 按钮 */
.cta-button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    border-radius: 20px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

/* 悬浮时按钮光效 */
.cta-button:hover {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    box-shadow: 0 10px 20px rgba(0, 198, 255, 0.5);
    transform: translateY(-3px);
}

/* 悬浮时文字动画 */
.product-card:hover .product-overlay h2,
.product-card:hover .product-overlay p,
.product-card:hover .cta-button {
    opacity: 1;
    transform: translateY(0);
}