/* 商品模块样式 */

/* 商品区域 */
.products-section {
    padding: 60px 0;
    background: #F5F5F5;
}

.products-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-description {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 产品列表列基础样式 */
.product-list .col-md-6,
.product-list .col-lg-4 {
    padding: 8px;
}

/* ========== 产品卡片 - 图片在上方的新样式 ========== */
.product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.product-card:hover {
    background: #f0f4f8;
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(24, 65, 137, 0.15);
    text-decoration: none;
    color: inherit;
    border-color: #c5d1e0;
}

/* 产品图片容器 - 顶部 */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 72%;
    overflow: hidden;
    background: #f5f7fa;
    border: 1px solid #f0f0f0;
}

.product-image {
    position: absolute;
    top: 14px;
    left: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    object-fit: contain;
    transition: transform 0.5s ease;
    background: #fff;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

/* 产品信息区域 - 中部（图片下方） */
.product-info {
    padding: 10px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3235;
    margin: 0 0 6px 0;
    line-height: 1.45;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover .product-name {
    color: rgb(24, 65, 137);
}

.product-desc {
    font-size: 13px;
    color: #777;
    margin: 0 0 14px 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ========== 不规则矩形 Learn More 按钮 ========== */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: auto;
    width: 120px;
    padding: 2px 10px 2px 8px;
    background: #184189;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    /* 不规则矩形：右侧圆角大、左侧圆角小 */
    border-radius: 3px 14px 14px 3px;
    clip-path: polygon(0% 0%, 100% 0%, 96% 100%, 0% 100%);
    transition: all 0.35s ease;
    position: relative;
    /* 略微倾斜增加动感 */
    transform: skewX(-3deg);
}

.learn-more-btn span {
    transform: skewX(3deg);
}

.learn-more-btn .btn-arrow {
    font-size: 11px;
    opacity: 0;
    transform: skewX(3deg) translateX(-6px);
    transition: all 0.35s ease;
}

.learn-more-btn:hover {
    background: #0d3a70;
}

/* 卡片悬浮时按钮交互效果 */
.product-card:hover .learn-more-btn {
    background: #184189;
    clip-path: polygon(0% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.product-card:hover .learn-more-btn .btn-arrow {
    opacity: 1;
    transform: skewX(3deg) translateX(0);
}

/* ========== 保留分类列表样式（供可能引用的页面使用） ========== */

.product-category-box {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.category-title {
    background: rgb(0, 80, 156);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 20px;
    margin: 0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid #E0E0E0;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.category-item a:hover,
.category-item.active a {
    background: rgba(0, 80, 156, 0.05);
    color: rgb(0, 80, 156);
    padding-left: 25px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 991px) {
    .product-category-box {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .products-section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-description {
        font-size: 14px;
    }

    .category-title {
        font-size: 16px;
        padding: 15px;
    }

    .category-item a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-desc {
        font-size: 12px;
    }

    .learn-more-btn {
        font-size: 12px;
        padding: 1px 8px 1px 6px;
    }
}

@media (max-width: 576px) {
    .product-image-wrapper {
        padding-top: 68%;
    }

    .product-name {
        font-size: 13px;
    }
}
