main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    
    padding: 2rem;
    box-sizing: border-box;

}


/******************************************************************************/

main > h2 {
    margin: 0 auto 3rem auto;
    border-width: 0;
    padding: 0;

    width: 70%;

    font-size: 1.6rem;
    color: #ff8400;
}

/******************************************************************************/

#article_wrapper {
    margin: 0 auto 2rem auto;
    border-width: 0;
    padding: 0;
    

    width: 75%;
    height: 100%;
    flex-grow: 1;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;

}

/******************************************************************************/

#article_list {
    margin: 0 3rem 0 0;
    border-width: 0;
    padding: 1rem;

    width: calc(70% - 3rem - 2rem);
    height: calc(100% - 2rem);

    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;

    background-color: rgb(254, 243, 232);
    border-radius: 5px;
}

/******************************************************************************/

#article_sidebar {
    margin: 0 auto 0 0;
    border-width: 0;
    padding: 0;

    width: 50%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

#article_top_list {
    margin: 0 0 3rem 0;
    padding: 1rem;
    width: calc(100% - 2rem);
    height: auto;
    flex-grow: 1;
    background-color: rgb(254, 243, 232);
    border-radius: 5px;
    /* box-shadow: 0 0 0.5rem rgba(240, 240, 240, 0.9); */
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

#article_recommend_list {
    margin: 0 0 0 0;
    padding: 1rem;
    width: calc(100% - 2rem);
    height: auto;
    flex-grow: 1;
    background-color: rgb(254, 243, 232);
    border-radius: 5px;
    /* box-shadow: 0 0 0.5rem rgba(240, 240, 240, 0.9); */
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

#article_top_list h2,
#article_recommend_list h2 {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: #ff8400;
}


/******************************************************************************/

.article {
    margin: 0 0 1rem 0;
    padding: 1rem 1rem 2rem 1rem;
    width: calc(100% - 2rem);
    height: 12rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 5px;
    border-bottom: 1px solid #ddd;

    overflow: hidden;
    transition-property: all;
    transition-duration: .5s;
    transition-timing-function: ease-in;
}

.article:last-child {
    margin: 0 0 0 0;
    padding: 1rem 1rem 1rem 1rem;
    border-bottom: none;
}

.article > img {
    margin: 0 1rem 0 0;
    width: 15rem;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;

    overflow: hidden;
    transition-property: all;
    transition-duration: .5s;
    transition-timing-function: ease-in;
}
.article:hover img{
    scale: 1.02;
}
.article > div {
    width: calc(100% - 15rem - 1rem);
    height: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.article > div > h3 {
    margin: 0 0 1rem 0;
    width: 100%;

    color: rgb(95,93,93);
}

.article > div > p {
    margin: 0 0 1rem 0;
    width: 100%;
    text-align: justify;
    word-break: break-all;
    white-space: normal;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    font-weight: 300;
}

.article > div > span {
    margin: auto 0 0 0;
    width: 100%;
    font-size: 0.8rem;
    color: #aaa;
}

/******************************************************************************/

#paging {
    margin: 0 auto 2rem auto;
    border-width: 0;
    padding: 0;

    width: 70%;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

#paging a {
    margin: 0 0.2rem;

    font-size: larger;
    font-weight: 300;
}

#paging a.now {
    text-decoration: underline;
    color: rgb(210, 90, 43);
}
#paging .active{
    color: #ff8400;
}
/* 置顶新闻 */
.hotNews{
    width: 70%;
    margin: 0 auto;
    position: relative;
}

#newsConnect{
    margin: 0 auto 2rem auto;
    width: 100%;

    box-sizing: border-box;
    min-height: 24rem;

    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    z-index: 0;
}
#newsConnect::after{
    content: '';
    position: absolute;
    width: 40%;
    height: 80%;
    background-color: #ff8400;
    top: 0;
    left: -20px;
    z-index: -1;
    border-radius: 15px;
}
#newsConnect .newsImg{
    width: 40%;
    height: 20rem;

    overflow: hidden;
}
#newsConnect .newsImg img{
    width: 100%;
    height: 100%;

    border-radius: 15px 0 0 15px;

    object-fit: cover;
    object-position: center;
    transition: all .5s linear;
}

.newsContent{
    width: 60%;
    height: 20rem;
    border-radius:0 15px 15px  0;
    padding: 2rem;
    color: rgb(95,93,93);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

}

.newsContent h2{
    padding-left: 1rem;
    font-size: 2rem;
}
.newsContent span{
    margin: 2rem 0;

    text-align: center;
    width: 160px;
    height: 3rem;
    line-height: 3rem;
    font-size: 1.5rem;

    background-color: #ff8400;
    color: whitesmoke;
    border-radius: 0 5rem 5rem 0;
    border: whitesmoke 2px solid;
    border-left: 0;
}
.newsContent p{
    padding:0 1rem;
    font-size: 1.2rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
}
#newsConnect:hover .newsContent{
    background-color: #ff8400;
    color: whitesmoke;

    transition: all .3s linear;
}
#newsConnect:hover .newsImg img{
    transform: scale(1.02);
}
/* 720p响应式 */
@media screen and  (max-width: 720px){
    /* 热点新闻 */
    .hotNews{
        margin-top: 20px;
        width: 90%;
    }
    #newsConnect{
        flex-direction: column;
    }
    #newsConnect .newsImg,.newsContent,#newsConnect .newsImg Img{
        width: 100%;
        border-radius: 0;
    }
    .newsContent{
        justify-content: center;
        padding-top: 1rem;
    }

    /* 新闻列表 */
    #article_wrapper{
        width: 90%;
    }
    #article_list{
        width: 100%;
        margin: 0;
    }
    #article_sidebar{
        display: none;
    }
}
