/* home/news-detail.css — 消息詳情頁 */
.news-detail-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}

.news-detail-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

.news-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    /* ⭐ 保護外層：內容過寬時啟動橫向捲軸 */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .news-content img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* ⭐ 修正重點 1：讓表格在電腦版霸氣撐開，手機版維持彈性 */
    .news-content table {
        width: 100%; /* 基本要求：撐滿容器 */
        min-width: 800px; /* ⭐ 終極大絕招：強制表格「最少」要有 700px 寬！ */
        border-collapse: collapse;
        margin: 10px 0;
        table-layout: auto; /* 讓瀏覽器根據內容多寡自動分配欄寬 */
    }

    .news-content th,
    .news-content td {
        border: 1px solid #e0e0e0;
        padding: 10px 10px;
        text-align: center;
        overflow-wrap: break-word;
        /* ⭐ 加上這行：強制每個格子最少要有 110px 寬，不准瀏覽器過度壓縮！ */
        min-width: 110px;
    }

    .news-content th {
        background-color: #f8f9fa;
        font-weight: bold;
    }

.news-back-row {
    text-align: center;
    margin-top: 60px;
}

.btn-news-back {
    color: #555;
    text-decoration: none;
    padding: 8px 20px;
    font-size: 1rem;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}

    .btn-news-back:hover {
        border-bottom-color: #555;
    }

/* ========================================= */
/* === 手機版與平板響應式微調 (RWD) === */
/* ========================================= */
@media (max-width: 768px) {
    .news-detail-container {
        margin: 20px auto;
        padding: 15px;
    }

    .news-detail-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
        text-align: left;
    }

    .news-content {
        font-size: 1rem;
    }

        /* 手機版：稍微縮小儲存格內距，但表格總寬度仍受上方 min-width: 700px 保護 */
        .news-content th,
        .news-content td {
            padding: 10px 8px;
            font-size: 0.95rem;
        }

    .news-back-row {
        margin-top: 40px;
    }
}
