/* ==========================================================
   深圳市显科科技有限公司
   官网 V2.0
   News Detail Page
========================================================== */


/* ==========================================================
   Article Hero
========================================================== */

.article-hero{

    padding: 160px 0 80px;

    margin-top: 0;

    background: linear-gradient(
        180deg,
        #f8fafc 0%,
        #fff 100%
    );

}


.article-hero__content{

    max-width: 860px;

    margin: 0 auto;

    text-align: center;

}


.article-hero__meta{

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    margin-bottom: 28px;

}


.article-hero__date{

    font-size: 14px;

    color: #999;

}


.article-hero__tag{

    display: inline-flex;

    align-items: center;

    height: 28px;

    padding: 0 14px;

    border-radius: 999px;

    background: rgba(26,58,92,.10);

    color: var(--primary);

    font-size: 13px;

    font-weight: 600;

}


.article-hero__content h1{

    font-size: clamp(28px, 3vw, 40px);

    font-weight: 700;

    line-height: 1.4;

    color: var(--text-primary);

    margin-bottom: 24px;

}


.article-hero__summary{

    font-size: 18px;

    line-height: 1.9;

    color: var(--text-secondary);

}


/* ==========================================================
   Article Body
========================================================== */

.article-body{

    padding-top: 20px;

    padding-bottom: 80px;

}


.article-body p{

    font-size: 16px;

    line-height: 2;

    color: var(--text-secondary);

    margin-bottom: 28px;

}


.article-body h2{

    font-size: 24px;

    font-weight: 700;

    color: var(--text-primary);

    margin: 50px 0 20px;

    padding-left: 16px;

    border-left: 4px solid var(--primary);

}


.article-body h3{

    font-size: 20px;

    font-weight: 700;

    color: var(--text-primary);

    margin: 40px 0 16px;

}


.article-body ul{

    margin: 0 0 28px 0;

    padding: 0;

    list-style: none;

}


.article-body ul li{

    position: relative;

    padding: 10px 0 10px 24px;

    font-size: 15px;

    line-height: 1.8;

    color: var(--text-secondary);

    border-bottom: 1px solid #f2f4f7;

}


.article-body ul li::before{

    content: "";

    position: absolute;

    left: 0;

    top: 18px;

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--primary);

}


.article-body ul li strong{

    color: var(--text-primary);

}


.article-body ol{

    margin: 0 0 28px 24px;

    padding: 0;

}


.article-body ol li{

    font-size: 15px;

    line-height: 1.8;

    color: var(--text-secondary);

    margin-bottom: 8px;

}


/* ==========================================================
   Article Image
========================================================== */

.article-body__image{

    margin: 40px 0;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: var(--shadow-sm);

}


.article-body__image img{

    max-width: 50%;

    height: auto;

    display: block;

    margin: 0 auto;

}

@media (max-width: 768px){
    .article-body__image img{
        max-width: 100%;
    }
}


/* ---- 文章内嵌图片尺寸限制 ---- */

.article-body img:not(#article-image){

    max-width: 50% !important;

    width: auto !important;

    height: auto !important;

    display: block !important;

    margin: 24px auto !important;

    border-radius: 8px;

}


@media (max-width: 768px){
    .article-body img:not(#article-image){
        max-width: 100% !important;
    }
}


/* ==========================================================
   Article Footer
========================================================== */

.article-body__footer{

    margin-top: 60px;

    padding-top: 30px;

    border-top: 1px solid #eef1f5;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.article-body__back{

    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-size: 15px;

    font-weight: 600;

    color: var(--primary);

    transition: .25s;

}


.article-body__back:hover{

    color: var(--primary-dark);

    gap: 12px;

}


/* ==========================================================
   Related News
========================================================== */

.related-news{

    padding: 80px 0 100px;

    background: var(--section-bg);

}


.related-news__grid{

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

    max-width: 960px;

    margin: 0 auto;

}


.related-news__card{

    display: flex;

    flex-direction: column;

    gap: 14px;

    padding: 28px 24px;

    background: #fff;

    border-radius: 14px;

    box-shadow: var(--shadow-sm);

    transition: .35s;

}


.related-news__card:hover{

    transform: translateY(-6px);

    box-shadow: var(--shadow-md);

}


.related-news__card:hover .related-news__arrow{

    color: var(--primary);

    transform: translateX(4px);

}


.related-news__date{

    font-size: 13px;

    color: #999;

}


.related-news__title{

    font-size: 16px;

    font-weight: 600;

    line-height: 1.6;

    color: var(--text-primary);

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

}


.related-news__arrow{

    font-size: 18px;

    color: #c0c7cf;

    align-self: flex-end;

    margin-top: auto;

    transition: .3s;

}


/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 768px){


    .article-hero{

        padding: 130px 0 50px;

    }


    .article-hero__content h1{

        font-size: 24px;

    }


    .article-hero__summary{

        font-size: 15px;

    }


    .article-body p{

        font-size: 15px;

    }


    .article-body h2{

        font-size: 20px;

        margin: 36px 0 16px;

    }


    .article-body__image{

        margin: 28px 0;

        border-radius: 10px;

    }


    .article-body__footer{

        flex-direction: column;

        gap: 16px;

    }


    .related-news__grid{

        grid-template-columns: 1fr;

    }


}