@charset "utf-8";
/* CSS Document */

.color-green {
    color: #83B743;
}

.bg-green {
    background: #83B743;
}

.d-block {
    display: inline-block;
    margin: 0px;
}

.d-flex {
    display: flex;
    display: -ms-flex;
    flex-direction: row;
    -ms-flex-direction: row;
    /*justify-content: flex-start;*/
    /*-ms-flex-pack: flex-start;*/
    /*align-items: stretch;*/
    /*-ms-flex-align: stretch;*/
    flex-wrap: wrap;
    -ms-flex-wrap: wrap;
}

.text-ellipsis-2 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.text-ellipsis-3 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.text-ellipsis-4 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/*ad banner*/
.content_ad-970x250 {
    padding-bottom: 20px;
}

.content_ad-728x90 {
    display: none;
    padding: 0px;
}

@media (max-width: 992px) {
    .content_ad-728x90 {
        display: block;
        padding: 50px 0px;
    }
}

.content_ad-mobile-300x250 {
    display: none;
    padding-bottom: 20px;
}

@media (max-width: 1150px) {
    .content_ad-970x250 {
        display: none;
        padding: 0px;
    }
}

@media (max-width: 992px) {
    .m-display-none {
        display: none;
    }
}

@media (max-width: 768px) {
    .content_ad-728x90 {
        display: none;
        padding: 0px;
    }
    .content_ad-mobile-300x250 {
        display: block;
    }

    header .d-flex {
        flex-wrap: nowrap;
    }
}

/*width*/
.w-100 {
    width: 100%;
}

.w-50 {
    width: 50%;
}

.w-25 {
    width: 25%;
}

@media (max-width: 992px) {
    .w-m-100 {
        width: 100%;
    }

    .w-m-50 {
        width: 50%;
    }

    .w-m-25 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .w-s-100 {
        width: 100%;
    }

    .w-s-50 {
        width: 50%;
    }

    .w-s-25 {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .w-xs-100 {
        width: 100%;
    }
}


/*genaral*/
.insight-tag i {
    padding-right: 10px;
    font-size: 15px;
    color: #83B743;
}

/*----------------------
 blog-index
---------------------**/
.insight-index-container {
    padding-top: 20px !important;
    padding-left: 35px !important;
    padding-right: 35px !important;
}



@media (max-width: 992px) {
    .insight-index-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/*insight-index-header*/
.insight-carousel-section,
.insight-carousel-content {
    display: flex;
    display: -ms-flex;
    flex-direction: row;
    -ms-flex-direction: row;
    justify-content: flex-start;
    -ms-flex-pack: flex-start;
    align-items: stretch;
    -ms-flex-align: stretch;
    flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    position: relative;
}

.insight-carousel-list {
    position: relative;
}

.insight-carousel-l-size {
    width: 100%;
}

.insight-carousel-s-size {
    width: 100%;
}

.insight-carousel-list .insight-carousel-list-img {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.insight-carousel-list .insight-carousel-list-img::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, .6), rgba(0, 0, 0, .9), rgba(0, 0, 0, 1));
    opacity: .8;
    transition: .5s;
}

.insight-carousel-list:hover .insight-carousel-list-img::before {
    opacity: 1;
}

.insight-carousel-list-img img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
}

.insight-carousel-l-size .insight-carousel-list-img img {
    height: 520px;
}

.insight-carousel-s-size .insight-carousel-list-img img {
    height: 260px;
}

.insight-carousel-list-info {
    position: absolute;
    bottom: 0%;
    left: 0%;
    padding: 10px 50px;
}

.insight-carousel-list-info h4 {
    color: #fff;
    line-height: 1.5;
    transition: .5s;
    height: 54px;
}

.insight-carousel-list:hover h4 {
    color: #83B743;
}

.insight-carousel-list-info .insight-tag a,
.insight-carousel-list-info .insight-tag i {
    color: #83B743;
}

@media (max-width: 992px) {

    .insight-carousel-section,
    .insight-carousel-content {
        display: inline-block;
    }

    .insight-carousel-s-size-grid {
        display: flex;
        display: -ms-flex;
        flex-direction: row;
        -ms-flex-direction: row;
        justify-content: flex-start;
        -ms-flex-pack: flex-start;
        align-items: stretch;
        -ms-flex-align: stretch;
        flex-wrap: wrap;
        -ms-flex-wrap: wrap;
    }

    .insight-carousel-s-size {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .insight-carousel-l-size .insight-carousel-list-img img {
        height: 350px;
    }

    .insight-carousel-list-info {
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .insight-carousel-l-size .insight-carousel-list-img img {
        height: 230px;
    }

    .insight-carousel-s-size .insight-carousel-list-img img {
        height: 150px;
    }

    .insight-carousel-s-size .insight-carousel-list-img::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, .7), rgba(0, 0, 0, .9), rgba(0, 0, 0, 1));
    }

    .insight-carousel-s-size .insight-carousel-list-info h4 {
        font-size: 15px;
        height: 45px;
    }
}


/*insight-index-content*/
.insight-index-content {
    display: flex;
    display: -ms-flex;
    flex-direction: row;
    -ms-flex-direction: row;
    justify-content: flex-start;
    -ms-flex-pack: flex-start;
    align-items: stretch;
    -ms-flex-align: stretch;
    flex-wrap: wrap;
    -ms-flex-wrap: wrap;
}

.insight-loop-tf {
    order: 1;
}

.insight-sidebar-tf {
    order: 2;
}

@media (max-width: 992px) {
    .insight-index-content {
        display: block;
    }
}


/*insight-index-title*/
.insight-index-content .title-base {
    display: block;
}

.insight-index-content .title-base hr {
    width: 100%;
    height: 5px;
    background-color: #83B743;
}


/*insight-item-list*/
.insight-list-grid {
    display: flex;
    display: -ms-flex;
    flex-direction: row;
    -ms-flex-direction: row;
    justify-content: flex-start;
    -ms-flex-pack: flex-start;
    align-items: stretch;
    -ms-flex-align: stretch;
    flex-wrap: wrap;
    -ms-flex-wrap: wrap;
}

.insight-list-wrapper {
    margin-bottom: 30px;
}

.insight-list-item {
    margin: 0px;
    padding: 0px;
    /*  box-shadow: 0px 0px 10px rgba(0,0,0,.2);*/
    height: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
}

@media (max-width: 992px) {
    .insight-list-item {
        display: block;
    }
}

.insight-list-item h2 {
    font-size: 18px !important;
    line-height: 25px;
    margin-bottom: 0px;
}

.insight-list-item-info {
    padding: 0px 20px;
    position: relative;
    width: 68%;
}

.insight-list-item-info p {
    line-height: 1.8;
    font-size: 15px;
}

.insight-list-item-summary p.text-ellipsis-3 {
    height: 54px;
}

.insight-list-item-summary .text-ellipsis-3 {
    height: 54px;
    margin-bottom: 10px;
}

.insight-list-item-summary a.btn-text {
    position: relative;
    border: none;
    margin-right: 15px;
}

.insight-list-item-summary a.btn-text:hover {
    color: #7D7D7D;
}

.insight-list-item-summary a.btn-text::after {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-left: -21px;
    top: 19px;
    position: absolute;
    border-top-width: 2px;
    border-top-style: solid;
    border-right-width: 2px;
    border-right-style: solid;
    content: "";
    width: 6px;
    height: 6px;
    transition: all .15s;
    color: #83B743;
    border-color: #83B743;
    margin-left: 7px;
    top: 9px;
    right: -13px;
}

@media (max-width: 991px) {
    .insight-list-item-summary .text-right {
        text-align: center !important;
    }
}

.insight-list-item-info h2.text-ellipsis-2 {
    height: 50px;
    display: block;
}

.article-category {
    position: absolute;
    top: 0px;
    left: 0px;
    padding: 0px 5px;
    font-size: 13px;
    background: #83B743;
    color: #fff;
    display: inline-block;
    z-index: 9999;
}

.article-category::after {
    content: "";
    position: absolute;
    top: 0%;
    left: 100%;
    border-top: 13px solid #83B743;
    border-left: 5px solid #83B743;
    border-right: 5px solid transparent;
    border-bottom: 13px solid transparent;
}

.article-category_detail {
    position: absolute;
    /*top: 0px;*/
    /*left: 0px;*/
    padding: 1px 5px 1px;
    font-size: 23px;
    background: #83B743;
    color: #fff;
    display: inline-block;
    z-index: 9999;
}

.article-category_detail::after {
    content: "";
    position: absolute;
    top: 0%;
    left: 100%;
    border-top: 13px solid #83B743;
    border-left: 5px solid #83B743;
    border-right: 5px solid transparent;
    border-bottom: 13px solid transparent;
}

.insight-list-item-img {
    width: 32%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
    display: block;
    align-self: flex-start;
    padding: 0px;
}

.insight-list-item-img img {
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background-position: center center;
    background-size: cover;
    position: relative;
    transition-duration: 500ms;
    animation-duration: 500ms;
    transition-timing-function: ease;
    transition-delay: 0ms;
    width: 100%;
    transition: .5s;
}

.insight-list-item-img::after {
    content: "";
    background: none;
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transition: .5s;
    position: absolute;
}

.insight-list-item-img:hover::after {
    background: rgba(0, 0, 0, .3);
}

@media (max-width: 992px) {
    .insight-list-item-info {
        padding: 15px 2px;
        width: 100%;
    }

    .insight-list-item-img {
        width: 100%;
    }
}

/*insight-index-sidebar-tf*/
.insight-sidebar-tf .title-base h4 {
    font-size: 18px;
    color: #fff;
    background: #83B743;
    font-weight: 500;
    display: inline-block;
    position: relative;
    margin-top: 10px;
    margin-bottom: 0PX;
    padding: 6px 10px;
}

.insight-sidebar-search {
    width: 80% !important;
    float: left !important;
    height: 40px !important;
    border: 1.5px solid #83B743;
    border-radius: 0%;
}

.insight-sidebar-search-btn {
    height: 40px;
    font-size: 16px;
    width: 20%;
    border: 1.5px solid #83B743;
    border-radius: 0%;
}

.insight-sidebar-tf-search-wrapper {
    width: 100%;
    order: 1;
}

.insight-sidebar-subject-itrm-wrapper {
    width: 100%;
    order: 2;
}

.insight-sidebar-subject-wrapper li {
    list-style: none;
}

.insight-sidebar-subject-item {
    position: relative;
    display: block;
    margin-top: 15px;
    margin-bottom: 15px;
}

.insight-sidebar-subject-item a {
    display: block;
    position: relative;
}

.insight-sidebar-subject-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: none;
    transition: .3s;
}

.insight-sidebar-subject-item a:hover::before {
    background: rgba(131, 183, 67, .85);
}

.insight-sidebar-subject-item.active a::before {
    background: rgba(131, 183, 67, .85);
}

.insight-sidebar-subject-item img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
}

.insight-sidebar-subject-item .subject-item-info {
    width: 100%;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.insight-sidebar-subject-item .subject-item-info span {
    color: #fff;
    font-size: 15px;
    text-align: left;
    font-weight: 700;
}

.insight-sidebar-subject-item .subject-item-info i {
    color: #fff;
    font-size: 13px;
    text-align: center;
    background: #000;
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    transition: .3s;
    float: right;
}

.insight-sidebar-subject-item a:hover i {
    color: #83B743;
    background: #fff;
}

.insight-sidebar-subject-item.active .subject-item-info i {
    color: #83B743;
    background: #fff;
}


.insight-sidebar-subject-wrapper .insight-sidebar-subject-toggle {
    background: #D0E8B3;
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 10px;
    color: #fff;
    cursor: pointer;
    text-align: left;
    margin: 0px 0px 5px 0px;
    border-radius: 0px;
    transition: .5s;
}

.insight-sidebar-subject-wrapper .insight-sidebar-subject-toggle i {
    float: right;
    margin-top: 5px;
}

.insight-sidebar-subject-wrapper .insight-sidebar-subject-toggle span {
    float: none;
}

.insight-sidebar-subject-wrapper .insight-sidebar-subject-toggle i,
.insight-sidebar-subject-wrapper .insight-sidebar-subject-toggle span {
    color: #1F6E00;
}

.insight-sidebar-subject-wrapper .insight-sidebar-subject-toggle:hover {
    background: #83B743;
}

.insight-sidebar-subject-wrapper .insight-sidebar-subject-toggle:hover i,
.insight-sidebar-subject-wrapper .insight-sidebar-subject-toggle:hover span {
    color: #fff;
}

@media (min-width: 993px) {
    .insight-sidebar-tf .insight-sidebar-subject-toggle {
        display: none;
    }
}

@media (max-width: 992px) {
    .insight-sidebar-tf-search-wrapper {
        margin: 10px 0px;
    }

    .insight-sidebar-subject-wrapper {
        top: 0;
        width: 100%;
        position: relative;
        z-index: 1;
        padding-top: 0px;
        transition: .5s;
    }

    .insight-sidebar-subject-wrapper .insight-sidebar-subject-collapse {
        background: #fff;
        padding: 0px 0px 10px 0px;
        clear: both
    }

    .insight-sidebar-subject-wrapper .insight-sidebar-subject-toggle {
        margin-bottom: 0px;
    }

    .insight-sidebar-subject-collapse .insight-sidebar-subject-item {
        width: 100%;
        margin: 0px;
    }

    .insight-sidebar-subject-item img {
        display: none;
    }

    .insight-sidebar-subject-item .subject-item-info {
        position: relative;
        transform: translateY(0%);
        border: 1px solid #D0E8B3;
    }

    .insight-sidebar-subject-item .subject-item-info span {
        color: #333;
    }

    .insight-sidebar-subject-item.active .subject-item-info span,
    .insight-sidebar-subject-item .subject-item-info:hover span {
        color: #fff;
    }

    .fixed-nav .insight-sidebar-subject-wrapper {
        position: fixed !important;
        padding: 0px;
        right: 0%;
        top: 0%;
        z-index: 99999;
    }

    .fixed-nav .insight-sidebar-subject-wrapper .insight-sidebar-subject-toggle {
        margin-top: 0px;
        margin-bottom: 0px;
        box-shadow: 0px 2px 10px rgba(0, 0, 0, .5);
        padding: 15px 10px;
    }

    .fixed-nav .insight-sidebar-subject-wrapper .insight-sidebar-subject-collapse {
        padding: 0px;
        box-shadow: 0px 2px 10px rgba(0, 0, 0, .5);
    }

    .fixed-nav .insight-sidebar-tf-search-wrapper {
        margin: 15px 10px;
    }

    .fixed-nav .insight-sidebar-tf .title-base {
        display: none;
    }


}


/*----------------------
 blog-article
---------------------**/
/*tag*/
.tag-wrapper {
    padding: 80px 0px 50px 0px;
    border-bottom: 1px solid #D5D5D5;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 10px;
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
}

.tag i {
    color: #fff !important;
}

.tag_title {
    color: #fff;
    background: #83B743;
    border: 1px solid #83B743;
    font-weight: 500;
}

.tag_lists {
    color: #4C4C4C;
    background: #EEEEEE;
    border: 1px solid #EEEEEE;
    transition: .3s;
}

.tag_lists:hover {
    color: #83B743;
    background: #fff;
    border-color: #83B743;
}


/*insight-sidebar-single*/
.insight-sidebar-tf-single {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.13) !important;
    padding: 20px;
    color: #5D4F45;
    margin: 0 15px;
    width: calc(33.33333333% - 30px);
}

.insight-sidebar-tf-single a:hover {
    color: #83B743;
}

.insight-single-title {
    padding: 10px 0px;
    border-bottom: 1px solid #DCDCDC;
}

.insight-single-subject-article {
    position: relative;
    border-bottom: none !important;
}

.insight-single-subject-article a {
    padding: 8px 15px;
    display: block;
}

.insight-single-subject-article a:before {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-left: -21px;
    top: 19px;
    position: absolute;
    border-top-width: 2px;
    border-top-style: solid;
    border-right-width: 2px;
    border-right-style: solid;
    content: "";
    width: 6px;
    height: 6px;
    transition: all .15s;
    border-color: rgba(93, 93, 93, 0.5);
}

.insight-single-subject-article a:hover:before {
    border-color: #83B743;
}

.insight-single-article-item {
    padding: 10px 0px;
    border-bottom: 1px solid #dcdcdc;
}

.insight-single-article-item .col-md-4 {
    width: initial;
}

.insight-single-article-item .col-md-8 {
    padding-left: 0px !important;
}

.insight-single-article-img-box {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: inline-block;
    overflow: hidden;
}

.insight-single-article-img-box img {
    object-position: center center;
    object-fit: cover;
    height: 100%;
}

.insight-single-report-wrapper {
    margin-bottom: 30px;
}

.insight-single-report-wrapper .insight-single-article-item:last-child {
    border-bottom: none;
}

@media (max-width: 992px) {
    .insight-sidebar-tf-single {
        width: calc(100% - 30px) !important;
    }

    .insight-single-article-item .col-md-8 {
        padding-left: 20px !important;
    }
}



/* [TF-925] 修正內文Layout */


article p {
    margin-bottom: 2rem;
    font-size: 1.1rem !important;
    font-weight: 400;
    line-height: 1.8;
}

article h2,
article h3,
article h4,
article h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 3rem 0 1rem 0;
    line-height: 1.4;
}

.article_highlight-area-BG_inner{
    margin-top:0px;
    display: block;
    margin:0;
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem !important;
}

article h2 {
    font-size: 1.8rem;
}

article h3 {
    font-size: 1.6rem;
}

article h4 {
    font-size: 1.4rem;
}

article h5 {
    font-size: 1.25rem;
}

.presscenter h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

.presscenter a:not(.tag-wrapper a):not(.tag-row a):not(.read-more a):not(.press-choose-post a) {
    color: #EB5D2A !important;
    border-bottom: 2px solid #EB5D2A;
    text-decoration: none;
    font-weight: 400;
}

/* 文章圖片樣式：圖片最大寬度不超過容器，並自動等比縮放 */
article p>img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0 auto;
}

/* 圖片和表格 caption add 2025/10/13 */
article p.cap-top,
article p.cap-btm {
    font-size: 0.9rem !important;
    line-height: inherit;
    color: inherit;
}

/* 圖表上方 caption */
article p.cap-top:has(+ p > img:only-child),
article p.cap-top:has(+ .table-container) {
    margin-bottom: 1rem !important;
}

/* 圖表下方 caption */
article .table-container:has(+ p.cap-btm),
article p:has(> img:only-child):has(+ p.cap-btm) {
    margin-bottom: 0.5rem !important;
}




article ul,
article ol {
    color: #3d3d3d;
    margin: 1.2em 0 2rem 2rem;
    font-size: 1.1rem;
    padding-left: 1.5rem;
}

article li {
    margin-bottom: 1rem;
}



.read-more li>a {
    line-height: 1.8;
    color: #3d3d3d !important;
    border-bottom: 1px solid #3d3d3d !important;
}

.read-more li>a:hover {
    color: #EB5D2A !important;
    text-decoration: none !important;
}

/* 手機 RWD 調整 */
@media (max-width: 600px) {

    article ul,
    article ol {
        margin-left: 0rem;
    }
}

article blockquote {
    border-left: 4px solid #EB5D2A;
    padding: 1.2rem 1.5rem;
    margin: 1.2rem 0;
    color: var(--text-color);
    background-color: #f9f9f9;
    font-style: italic;
    font-size: 1.05rem;
}

/*table 處理*/
article .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    position: relative;
    /* Sticky 的必要條件 */
    border: 1px solid #ddd;
    border-radius: 8px;
}

/*2 values in a cell add:20251028*/
.table-container .split-cell {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    /* 讓偽元素可定位在容器中線 */
}

.table-container .split-cell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #ddd;
    transform: translateX(-0.5px);
    pointer-events: none;
    /* 不阻擋互動 */
}

.table-container .split-cell div {
    flex: 1 1 50%;
    display: flex;
    justify-content: space-between;
    /* 左右拉滿 td */
    align-items: center;
    /* 垂直置中 */
    box-sizing: border-box;
}

.table-container .split-cell div:first-child {
    padding-right: 12px;
    /* 與中線保持距離 */
}

.table-container .split-cell div:last-child {
    padding-left: 12px;
    justify-content: flex-end;
    /* 右對齊 */
}

/* 基本表格設計 */
.presscenter table {
    width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0 !important;
    background-color: #fff;
}

/* 表頭 */
article th {
    background-color: #f9f9f9;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    position: sticky;
    padding: 12px !important;
    top: 0;
    z-index: 0;
}



/* 單元格 */
article th,
article td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    word-break: normal;
    white-space: normal;
    word-wrap: normal;
    overflow-wrap: normal;
    min-width: 80px;
}

/* Sticky 第一欄為th時 */
article th:first-child {
    position: sticky;
    left: 0;
    background-color: #f9f9f9;
    z-index: 1;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
    min-width: 150px;
    width: auto;
}

/* 最後一欄邊框移除 */
article th:last-child,
article td:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    article table {
        min-width: 800px;
    }


}

.highlight-frame {
    padding: 2rem 1.5rem;
    margin: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.highlight-frame p {
    display: block;
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.highlight-frame a {
    color: #EB5D2A !important;
    border-bottom: 2px solid #EB5D2A !important;
    text-decoration: none;
    font-weight: 400;
}

.padding-x-full {
    padding: 70px 64px !important;
}

@media (max-width: 991px) {
    .padding-x-full {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

@media (min-width: 992px) {
    .presscenter {
        padding-right: 48px;
    }
}

@media (max-width: 768px) {

    /* 文章內的設定*/
    article p.has-img-zoom {
        position: relative;
        display: inline-block;
    }

    article p.has-img-zoom::after {
        content: "";
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 10-.71.71l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1114 9.5 4.5 4.5 0 019.5 14z"/></svg>');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 60%;
        pointer-events: none;
        z-index: 2;
    }

    /* 1. Lightbox 外層 (遮罩) */
    #img-lightbox {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 9999;
    }

    /* 2. Lightbox容器 */
    #img-lightbox .img-container {
        width: 100vw;
        height: 100vh;
        /* 強制佔滿螢幕高度*/
        overflow: hidden;
    }

    /* Lightbox 內圖片容器，允許手指滑動圖片 */
    #img-lightbox .img-container {
        width: 100vw;
        height: 100vh;
        /* 強制佔滿螢幕高度*/
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        /* 圖片Fit模式下置中 */
        justify-content: center;
        align-items: center;
    }

    #img-lightbox img {
        display: block;
        margin: 0;
        user-select: none;
        -webkit-user-drag: none;
        transition: width 0.3s ease, height 0.3s ease;
    }

    /* --- 狀態 A: 縮小 (Fit) --- */
    /* 當容器沒有 zoomed class 時的預設狀態 */
    #img-lightbox .img-container:not(.zoomed) img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        /* 圖片不變形且完整顯示 */
        cursor: zoom-in;
    }

    /* --- 狀態 B: 放大 (Zoomed) --- */
    #img-lightbox .img-container.zoomed {
        /* 放大時，把 Flex 佈局拿掉，改回 Block，圖片才能撐開滾動軸 */
        display: block;
        overflow: auto;
    }

    #img-lightbox .img-container.zoomed img {
        max-width: none;
        max-height: none;
        width: 200%;
        /* 強制放大，確保手機上可以滑動查看細節 */
        height: auto;
        cursor: zoom-out;
    }

    /* 關閉按鈕 */
    #img-lightbox .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 2rem;
        color: #fff;
        cursor: pointer;
        user-select: none;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        line-height: 36px;
        text-align: center;
        z-index: 10000;
        /* 確保在最上層 */
    }

    /* 頂部提示文字 */
    #img-lightbox .hint-text {
        position: absolute;
        top: 18px;
        left: 12px;
        max-width: calc(100% - 70px);
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
        background: rgba(0, 0, 0, 0.5);
        padding: 4px 10px;
        border-radius: 20px;
        pointer-events: none;
        /* 讓點擊能穿透過文字，直接點到後面的圖片或背景 */
        z-index: 10000;
        user-select: none;
        white-space: nowrap;
        overflow: hidden;
    }
}

.attachment-post-thumbnail {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: inline-block;
    margin: 0 auto;
}

.article_highlight-area-BG_style-02 {
    padding: 2rem 1.5rem !important;
    margin: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}


/* [TF-1048] Substack 訂閱嵌入 */
.tf-substack-box iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 550px;
    border: 1px solid #EEE;
    background: #fff;
}

/* 桌機版：限寬 300px 並置中 */
.tf-substack-box:not(.tf-substack-mobile) iframe {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.tf-substack-mobile {
    display: none;
}

@media (max-width: 992px) {
    .tf-substack-mobile {
        display: block;
    }
}
