/* ============================================
   热门产品模块样式
   ============================================ */

.products-section {
    padding: 100px 0;
    background-color: #ffffff;
}

/* 产品卡片基础容器 */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px; /* 品牌官网常见的大圆角 */
    height: 450px;
    margin-bottom: 24px;
    background-color: #f5f5f7;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

/* 图片容器 */
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* 打扣机特殊 */
.product-img.bm {
    object-fit: fill;
}




/* 渐变遮罩：为了让文字在图片上更清晰 */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

/* 文字内容 */
.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 3;
    color: #ffffff;
    transition: transform 0.4s ease;
}

.product-info h3 {
    font-family: 'AlibabaPuHuiTi', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-info p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 85%;
}

/* 按钮样式 */
.btn-product {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 主打系列按钮 (实心) */
.btn-primary-product {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* 详情按钮 (镂空) */
.btn-outline-white {
    border: 1.5px solid #ffffff;
    color: #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* 悬停动画效果 */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* 特殊布局调整 */
.product-main {
    height: 500px; /* 主打产品更高一些 */
}

/* 底部“查看全部”按钮容器 */
.products-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    padding: 15px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 121, 217, 0.3);
}

.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 121, 217, 0.4);
    background-color: #5a69c9;
}

/* 响应式适配 */
@media (max-width: 991.98px) {
    .product-card {
        height: 400px;
        margin-bottom: 20px;
    }
    
    .product-info {
        padding: 30px;
    }

    .product-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .product-card {
        height: 350px;
    }
    
    .product-info p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
