/*
 * @Date: 2024-03-10 09:24:46
 * @LastEditTime: 2026-10-27 09:03:34
 * @FilePath: \newWeb\templets\new\css\cancer_related_content.css
 * @Description: 癌症相关内容列表页面
 */
@charset "utf8";

.banner-box {
    width: 100%;
    height: 300px;
    padding: 30px 0;
    background: url("https://img.asiancancer.com/images/newvietnam/cancer_type_banner.jpg") no-repeat center;
    background-size: cover;
    box-sizing: border-box;
}

.banner-box .banner-text {
    width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.banner-box .banner-text .text-style {
    color: #fff;
    font-size: 52px;
    position: relative;
}

.banner-box .banner-text .text-style::after {
    display: inline-block;
    content: '';
    width: 100px;
    height: 3px;
    background: #fff;
    border-radius: 4px;
    position: absolute;
    left: 0;
    bottom: -10px;
}

.content {
    width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.content .cancer-related-content-list {
    width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    margin-right: 20px;
}

.content .cancer-related-content-list .cancer-related-content-item {
    width: calc((100% / 4) - 20px);
    margin: 0 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    box-sizing: border-box;
    transition: all 1s;
}

.cancer-related-content-item .left-img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.cancer-related-content-item .left-img img {
    width: 100%;
    height: 100%;
}

.cancer-related-content-item .right-content {
    flex: 1;
}

.cancer-related-content-item .right-content .cancer-related-content-name {
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.cancer-related-content-item .right-content .cancer-related-content-name a {
    font-size: 18px;
    color: #055f87;
    font-weight: bold;
}

.cancer-related-content-item .right-content .description-text {
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.cancer-related-content-item .right-content .more-btn {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.content .cancer-related-content-list .more-btn a {
    display: flex;
    align-items: center;
    transition: all 1s;
}

.content .cancer-related-content-list .more-btn .more-img {
    width: 15px;
    height: 15px;
    margin-right: 5px;
}

.content .cancer-related-content-list .more-btn .more-text {
    color: #055f87;
    transition: all .5s;
}

/* 取消移动端的hover效果 只有pc端的生效 */
@media (any-hover: hover) {
    .content .cancer-related-content-list .cancer-related-content-item:hover {
        cursor: pointer;
        box-shadow: 0 0 5px #055f87;
        transform: translate(0, -5px);
    }
}

/*移动端样式*/
@media screen and (max-width: 768px) {
    .banner-box {
        display: none;
    }

    .content {
        width: 100%;
    }

    .content .cancer-related-content-list {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: stretch;
        box-sizing: border-box;
    }

    .content .cancer-related-content-list .cancer-related-content-item {
        width: calc(50% - 7.5px);
        margin-bottom: 15px;
        margin-right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cancer-related-content-item .left-img {
        width: 64px;
        height: 64px;
    }

    .cancer-related-content-item .right-content .cancer-related-content-name {
        width: 100%;
        padding: 10px 0;
        border-bottom: none;
    }

    .cancer-related-content-item .right-content .cancer-related-content-name a {
        font-size: 16px;
    }

    .cancer-related-content-item .right-content .description-text {
        margin: 0;
    }

    .content .cancer-related-content-list .more-btn {
        padding-top: 10px;
    }

    .content .cancer-related-content-list .more-btn a {
        font-size: 14px;
    }

}