/* 最新消息列表頁 (News/Index)：只調整外觀，限定在 .news-page 內 */
.news-page {
    display: flow-root; /* 站台全域 CSS 會讓 div 浮動，包住子元素避免頁尾壓到內容 */
    padding-bottom: 40px;
    color: #3a2f27;
}

/* ---- 左側標題與分類 ---- */
.news-page .leftBox {
    padding-right: 36px;
}

.news-page .leftBox h1 {
    font-size: 46px;
    line-height: 1.1;
    color: #a08971;
}

.news-page .leftBox .sectionTitle {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 0;
}

.news-page .leftBox .sectionTitle strong {
    letter-spacing: 6px;
    color: #382b21;
}

.news-page .leftBox .sectionTitle:after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 14px;
    background: #d2ae70;
}

.news-page .leftBox .classLink li {
    display: block;
    margin-bottom: 6px;
    border-bottom: 0;
}

.news-page .leftBox .classLink li:hover {
    border-bottom: 0;
}

.news-page .leftBox .classLink li > a {
    padding: 13px 18px;
    font-size: 16px;
    letter-spacing: 2px;
    color: #5a4637;
    border-radius: 10px;
    transition: background-color .2s, color .2s;
}

.news-page .leftBox .classLink li > a:hover {
    color: #382b21;
    background: #f3ece1;
}

.news-page .leftBox .classLink li > a.current {
    padding-left: 18px;
    color: #f1d9a8;
    background: #382b21;
}

/* ---- 消息列表（卡片） ---- */
.news-page .newsList {
    padding: 0;
}

.news-page .newsList li,
.news-page .newsList li:not(:first-child) {
    padding: 0;
    margin-bottom: 22px;
}

.news-page .newsList a {
    display: block;
}

.news-page .newsList .item {
    display: flex;
    align-items: stretch;
    gap: 26px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee5da;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(74, 52, 32, .06);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.news-page .newsList .item:before,
.news-page .newsList .item:after {
    display: none; /* 取消 clearfix 虛擬元素，避免變成 flex 項目 */
}

.news-page .newsList a:hover .item {
    border: 1px solid #d9cbb8;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(74, 52, 32, .12);
}

.news-page .newsList .Img {
    flex: 0 0 300px;
    float: none;
    width: 300px;
    height: 200px;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
}

.news-page .rightBox .Txt {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px 6px 0;
    height: auto;
}

.news-page .rightBox .Txt .date {
    font-size: 13px;
    letter-spacing: 1px;
    color: #a08971;
}

.news-page .rightBox .Txt h4 {
    padding-top: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    color: #2e231b;
}

.news-page .newsList a:hover .item h4 {
    color: #8a6a43;
}

.news-page .rightBox .Txt p {
    padding-top: 10px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
    color: #6a5d52;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 沒有資料時 */
.news-page .news-empty {
    padding: 60px 20px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 2px;
    color: #a08971;
    background: #fdfbf8;
    border: 1px dashed #d9cbb8;
    border-radius: 16px;
}

/* ---- 回上一頁 ---- */
.news-page .goBackBtn {
    width: auto;
    height: 46px;
    margin-top: 40px;
    padding: 0 34px;
    line-height: 44px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #5a4637;
    background: transparent;
    border: 1px solid #d9cbb8;
    border-radius: 24px;
    transition: background-color .2s, color .2s;
}

.news-page a:hover .goBackBtn {
    color: #f1d9a8;
    background: #382b21;
    border-color: #382b21;
}

/* ---- 消息內頁 (News/Detail、Detail2) ---- */
.news-detail .rightBox .item.ins {
    padding: 30px 32px 34px;
    background: #fff;
    border: 1px solid #eee5da;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(74, 52, 32, .06);
}

.news-detail .rightBox .item.ins .Txt {
    width: 100%;
    margin: 0;
    padding: 0;
}

.news-detail .rightBox .Txt h4 {
    padding: 0 0 16px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.5;
    color: #2e231b;
}

.news-detail .rightBox .Txt h4:after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 16px;
    background: #d2ae70;
}

.news-detail .rightBox .Txt p {
    display: block;
    -webkit-line-clamp: unset;
    padding-top: 6px;
    font-size: 16px;
    line-height: 2;
    color: #4a4038;
    white-space: pre-line;
}

/* 內文圖片、影片、表格不超出卡片 */
.news-detail .rightBox .item.ins img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.news-detail .rightBox .Txt > img,
.news-detail .rightBox .Txt a > img {
    width: 100%;
    padding-top: 0;
    margin-top: 22px;
}

.news-detail .rightBox .embed-responsive {
    margin-top: 22px;
    overflow: hidden;
    border-radius: 12px;
}

.news-detail .rightBox .item.ins table {
    max-width: 100%;
}

.news-detail .rightBox .item.ins .font-noto {
    margin: 22px 0 0 !important;
    line-height: 1.95;
    color: #4a4038;
    overflow-wrap: break-word;
}

/* ---- 平板、手機 ---- */
@media (max-width: 1180px) {
    .news-page .contentBox {
        padding: 0 16px;
    }

    .news-page .leftBox {
        padding: 0;
        margin-bottom: 20px;
    }

    .news-page .leftBox h1 {
        font-size: 38px;
    }

    /* 手機版的分類下拉選單 */
    .news-page .m_classLink a.main {
        padding: 14px 44px 14px 18px;
        font-size: 16px;
        letter-spacing: 2px;
        color: #f1d9a8;
        background: #382b21;
        border: 0;
        border-radius: 12px;
    }

    .news-page .m_classLink a.main i {
        right: 16px;
    }

    .news-page .m_classLink ul {
        margin-top: 6px;
        overflow: hidden;
        background: #fff;
        border: 1px solid #eee5da;
        border-radius: 12px;
        box-shadow: 0 10px 28px rgba(74, 52, 32, .14);
    }

    .news-page .m_classLink ul li > a {
        padding: 14px 18px;
        font-size: 16px;
        color: #5a4637;
        border-top: 1px solid #f1e9de;
    }

    .news-page .m_classLink ul li > a.current {
        padding-left: 18px;
        color: #f1d9a8;
        background: #382b21;
    }

    .news-page .m_classLink ul li > a {
        text-align: left;
    }

    .news-page .newsList {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .news-detail .rightBox .item.ins {
        padding: 20px 18px 24px;
    }

    .news-detail .rightBox .Txt h4 {
        font-size: 22px;
    }

    .news-page .newsList .item {
        gap: 18px;
        padding: 14px;
    }

    .news-page .newsList .Img {
        flex-basis: 220px;
        width: 220px;
        height: 150px;
    }

    .news-page .rightBox .Txt h4 {
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .news-page .newsList .item {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .news-page .newsList .Img {
        flex-basis: auto;
        width: 100%;
        height: 0;
        padding-bottom: 62%; /* 圖片區固定比例 */
        position: relative;
    }

    .news-page .newsList .Img img {
        position: absolute;
        top: 0;
        left: 0;
    }

    .news-page .rightBox .Txt {
        padding: 2px 4px 6px;
    }

    .news-page .newsList .Txt {
        width: auto;
    }

    .news-page .goBackBtn {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-page .newsList .item,
    .news-page .newsList .Img:hover img {
        transition: none;
        transform: none;
    }
}
