/* incubatingProjects.css - 在孵项目页面样式 */

/* PC端banner样式 */
.banner-container {
    height: 780px;
    width: 1920px;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 1920px;
    height: 915px;
}

/* 移动端banner样式 */
.banner-container-mobile {
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}



.banner-image-mobile {
    width: 375px;
    height: 302px;
    object-fit: cover;
}

/* 移动端banner蒙层 */
.banner-container-mobile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(56, 56, 56, 0.5);
    z-index: 1;
}

/* 移动端banner文字 */
 .banner-container-mobile .lanmu{
position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 36px;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    white-space: nowrap;

}

/* 产品展示区域样式 */
.product-showcase-section {
    /* padding: 60px 0; */
    padding-top: 60px;
    background: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #d32f2f;
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #d32f2f;
    border-radius: 2px;
}

/* 产品展示网格 */
.product-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 产品卡片样式 */
.product-card {
    width: 1200px;
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 400px;
    margin: 0 auto;
    margin-bottom: 104px;
    margin-left: 500px;
}

.product-card .image-placeholder {
    width: 600px;
}

/* .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
} */

/* 产品图片区域 */
.product-image {
    flex: 0 0 45%;
    position: relative;
}

.image-placeholder {
    /* width: 100%;
    height: 100%; */
    width: 682px;
    height: 486px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* 产品信息区域 */
.product-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

/* 产品标签 */
.product-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    text-align: center;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 34.75px;
    color: rgba(255, 255, 255, 1);
    text-align: left;
    vertical-align: top;
    text-align: center;
}

.tag {
    /* width: 284.31px;
    height: 54px; */
    background: rgba(193, 52, 50, 1);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 34.75px;
    color: rgba(255, 255, 255, 1);
}

/* 产品描述 */
.product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 34.75px;
    color: rgba(56, 56, 56, 1);
    text-align: left;
    vertical-align: top;

display: -webkit-box;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

    max-height: 140px !important;
    margin-bottom: 40px;
}

/* 了解更多按钮 */
.learn-more-btn {
    position: absolute;
    background: #d32f2f;
    color: #ffffff;
    border: none;
    /* padding: 12px 24px; */
    border-radius: 6px;
    width: 210px;
    height: 54px;
    bottom: 0;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 54px;
    color: rgba(255, 255, 255, 1);
    text-align: left;
    vertical-align: top;
    text-align: center;
}

.learn-more-btn:hover {
    background: #b71c1c;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .product-showcase {
        gap: 30px;
        padding: 0 15px;
    }

    .product-card {
        height: auto;
        min-height: 350px;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .hongbiao {
        height: 4px;
    }

    .product-showcase-section {
        padding: 40px 0;
    }

    .product-card {
        flex-direction: column;
        height: auto;
    }

    .product-image {
        flex: 0 0 200px;
    }

    .product-info {
        padding: 20px;
    }

    .product-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .product-description {
        font-size: 13px;
        margin-bottom: 20px;
        -webkit-line-clamp: 4;
display: -webkit-box;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

    }

    .learn-more-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .section-title h2 {
        font-size: 24px;
    }
}

@media (max-width: 575px) {

    .product-showcase {
        padding: 0;
        gap: 20px;
    }

    .product-info {
        padding: 15px;
    }

    .product-title {
        font-size: 18px;
    }

    .tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .product-tags {
        gap: 6px;
    }

    /* 移动端产品卡片样式调整 */
    .product-card {
        width: 100%;
        height: 600px;
        flex-direction: column;
        margin-bottom: 30px;
        border-radius: 8px;
        margin-left: 0;
    }

    .product-image {
        flex: none;
    }

    .image-placeholder {
        width: 100%;
        height: 200px;
    }

    .product-info {
        padding: 20px 15px;
    justify-content: flex-start;
    }

    /* 移动端了解更多按钮样式 */
    .learn-more-btn {
        width: 151px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    position: relative;
    }

    /* 移动端红标样式 */
    .hongbiao {
        height: 4px !important;
    }
}

/* 分页组件样式 */
.pagination-section {
    /* padding: 40px 0; */
    /* margin-top: -50px; */
    background: #ffffff;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
    line-height: 1.2;
}

.page-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-btn.active {
    background: #d32f2f;
    color: #ffffff;
    border-color: #d32f2f;
}

.page-btn.active:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

.hongbiao {
    width: 92px;
    height: 5px;
    background: rgba(193, 52, 50, 1);
    margin-top: 10px;
}

/* PC端显示控制 */
@media (max-width: 767px) {
    .pagination-section {
        display: none;
    }
}