.news_wrapper{
    padding-bottom: var(--page-bottom);
}

.brick_banner {
    width: 100%;
    height: 300px;
}

.brick_banner>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 576px) {
    .brick_banner {
        width: 100%;
        height: 255px;
    }
}

/* 新聞功能列 */
.news_features_bar {
    width: 100%;
    margin: 3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news_display_method>a {
    cursor: pointer;
    width: 2rem;
    height: auto;
    margin-right: 1rem;
}

.news_display_method>a>i {
    font-size: 2.2rem;
    color: var(--gray);
    transition: .3s;
}

.news_display_method>a:hover>i {
    color: var(--gray-light);
}

.news_filter>select {
    margin-left: .5rem;
    border: 1px solid var(--gray-light);
    font-size: 1rem;
    border-radius: 3px;
    cursor: pointer;
}

@media screen and (max-width: 576px) {
    .news_features_bar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .news_filter>select {
        margin-top: .5rem;
    }

    .news_filter>select:first-child {
        margin-left: 0;
    }
}

/* 新聞中心顯示 */
.news_item.active {
    display: block;
}

/* 新聞卡片式 */
.news_center_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 95%;
    margin: 0 auto;
    
}

.news_item {
    width: calc( (100% -  1rem * 6) / 3 );
    height: auto;
    box-sizing: border-box;
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    overflow: hidden;
    display: none;
    margin: 0 1rem 3rem;
}

.news_item_img {
    display: block;
    position: relative;
    padding-top: 50%; /* 長寬比 = height/width */
    width: 100%;
    border-bottom: 4px solid var(--blue-light);
    box-sizing: border-box;
}

.news_item_img>img {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.news_item_content {
    display: block;
    width: 100%;
    padding: 1rem 1rem 25%;
    box-sizing: border-box;
}

.news_item_content>p {
    font-size: .8rem;
    margin: .5rem 0;
}

.news_item_content>p.news_date {
    color: var(--gray-light);
}

.news_item_content>p.news_category {
    color: var(--blue-light);
}

.news_item_content>h3 {
    text-decoration: none;
    color: var(--blue-dark);
    word-wrap:break-word;
}

.news_item_container:hover>.news_item_content>h3 {
    color: var(--green);
}

/* 新聞條列 */
.news_center_container.display_list {
    display: block;
    column-gap: 1.5rem;
    row-gap: 1.5rem;
    grid-auto-rows: auto;
    box-sizing: border-box;
    width: 100%;
}

.display_list .news_item {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    margin: 0 0 2rem;
}

.display_list .news_item_container {
    display: flex;
}

.display_list .news_item_img {
    aspect-ratio: 2 / 1;
    width: 350px;
    position: unset;
    padding-top: 0; 
    border-bottom: 0;
    box-sizing: border-box;
}

.display_list .news_item_img>img {
    position: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.display_list .news_item_content {
    width: calc( 100% - 350px);
    height: fit-content;
    box-sizing: border-box;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem 1rem 0;
}

.display_list .grid_1 .news_item_content, .display_list .grid_2 .news_item_content, .display_list .grid_3 .news_item_content{
    padding: 0 0 0 1.8rem;
}

.display_list .news_item_content>h3 {
    line-height: 1.2;
    margin: 0 0 .5rem;
}

.display_list .news_item_content>p {
    margin: 0;
    line-height: 1.5;
}

@media screen and (max-width: 1280px) {
    .news_center_container {
        width: 100%;
    }

    .display_list .news_item_img {
        width: 45%;
    }
}

@media screen and (max-width: 912px) {
    .news_item {
        width: calc( (100% -  1rem * 4) / 2 );
        height: auto;
        box-sizing: border-box;
        border: 1px solid var(--gray-light);
        border-radius: 30px;
        overflow: hidden;
        display: none;
        margin: 0 1rem 3rem;
    }
}

@media screen and (max-width: 768px) {

    .news_center_container.display_list {
        width: 100%;
        max-width: 450px;
    }

    .display_list>.news_item {
        margin-bottom: 5rem;
    }

    .display_list .news_item_container {
        display: flex;
        flex-direction: column;
        border-top: 4px solid var(--blue);
    }

    .display_list .news_item_content {
        width: 100%;
    }
    
    .display_list .grid_1 .news_item_content, .display_list .grid_2 .news_item_content, .display_list .grid_3 .news_item_content{
        padding: 1.2rem 0 0;
    }
    
    .display_list .news_item_img {
        width: 100%;
    }
    
}

@media screen and (max-width: 576px) {
    .news_center_container {
        width: 70%;
    }

    .news_item {
        width: 100%;
        margin: 0 0 3rem;
    }
}

@media screen and (max-width: 489px) {
    .news_center_container {
        width: 85%;
    }
}

@media screen and (max-width: 300px) {
    .news_center_container {
        width: 100%;
    }
}

/* Show More 按鈕 */
.news_center_more {
    width: 100%;
    margin: 0 0 2rem;
}

.news_center_more.close {
    display: none;
}

.news_center_more>a {
    cursor: pointer;
    display: block;
    width: fit-content;
    padding: .8rem 6rem;
    background: var(--blue);
    color: var(--white);
    margin: 0 auto;
    transition: .3s;
}

.news_center_more>a:hover {
    background: var(--green);
}

@media screen and (max-width: 576px) {
    .news_center_more>a {
        width: 100%;
        padding: .8rem 0;
        text-align: center;
    }
}

/* 新聞內文 */
.news_container {
    margin: 1.5rem auto 0;
}

.news_pre_page>a {
    color: var(--blue);
    font-size: var(--font-content);
}

.news_pre_page>a:hover {
    color: var(--green);
}

.news_pre_page>a>i {
    margin-right:.3rem ;
}

.news_content {
    margin: 1.8rem 0 2rem;
}

.news_content>.TextTitle2 {
    color: var(--blue-dark);
    font-size: var(--font-subtitle);
    font-weight: 600;
}

.news_content p {
    color: var(--gray);
    font-size: var(--font-content);
}

.news_content p>a {
    color: var(--blue);
}

.news_content p>a:hover {
    color: var(--green);
}

.news_link_bar>a {
    font-size: 1.4rem;
    color: var(--blue);
    margin-right: .3rem;
    transition: .3s;
}

.news_link_bar>a:hover {
    color: var(--green);
}

@media screen and (max-width: 576px) {
    .news_link_bar>a {
        font-size: 1.8rem;
        margin-right: .5rem;
    }
}

/* 產品訊息 */
.TextContent>a>img {
    margin: 0 .8rem .5rem 0;
}
@media screen and (max-width: 576px) {
    .TextContent>a>img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 2/1 !important;
        margin: 0 0 1rem;
    }
}

