﻿/* ========================================
   NewsDetail - 附件與返回連結優化
   ======================================== */

.news-detail-page .news-attachment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.news-detail-page .news-attachment-icon {
    flex-shrink: 0;
    font-size: 19px;
    color: #58765e;
}

.news-detail-page .news-attachment-name {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    line-height: 1.8;
    color: #34453a;
}

.news-detail-page .news-attachment-action {
    flex-shrink: 0;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #3d7f87;
    white-space: nowrap;
}

.news-detail-page .news-attachment-item:hover .news-attachment-action {
    color: #245c63;
    text-decoration: underline;
}

/* 返回連結與前方內容保留呼吸空間 */

.news-detail-page .news-detail-footer {
    margin-top: 48px;
}

.news-detail-page .news-back-link {
    display: inline-block;
    font-size: 14px;
    color: #58765e;
    text-decoration: none;
}

    .news-detail-page .news-back-link:hover {
        color: #263a32;
        text-decoration: underline;
    }

/* Step 15-D-5B：行動裝置調整；桌面版保留原樣 */
@media (max-width: 900px) {
    .news-detail-page { padding-top: 30px; padding-bottom: 42px; }
    .news-detail-page .news-detail-header { margin-bottom: 26px; }
    .news-detail-page .news-detail-header .project-eyebrow { margin-bottom: 8px; }
    .news-detail-page .news-detail-header h1 { font-size: 29px; line-height: 1.4; overflow-wrap: anywhere; }
    .news-detail-page .news-detail-content { width: 100%; max-width: none; margin-left: 0; margin-right: 0; overflow-wrap: anywhere; }
    .news-detail-page .news-detail-content img { max-width: 100%; height: auto; }
    .news-detail-page .news-detail-content table { max-width: 100%; }
    .news-detail-page .news-attachment-name { overflow-wrap: anywhere; }
}

@media (max-width: 700px) and (orientation: portrait) {
    .news-detail-page { padding-top: 24px; padding-bottom: 35px; }
    .news-detail-page .news-detail-header { margin-bottom: 20px; }
    .news-detail-page .news-detail-header h1 { font-size: 25px; }
    .news-detail-page .news-detail-content { font-size: 15px; line-height: 1.9; }
    .news-detail-page .news-attachment-item { gap: 10px; padding: 13px 0; }
    .news-detail-page .news-attachment-name { font-size: 15px; line-height: 1.65; }
    .news-detail-page .news-attachment-action { margin-left: 0; font-size: 13px; }
    .news-detail-page .news-detail-footer { margin-top: 34px; }
}

@media (max-width: 980px) and (max-height: 500px) and (orientation: landscape) {
    .news-detail-page { padding-top: 18px; padding-bottom: 30px; }
    .news-detail-page .news-detail-header { margin-bottom: 18px; }
    .news-detail-page .news-detail-header .project-eyebrow { margin-bottom: 4px; }
    .news-detail-page .news-detail-header h1 { font-size: 26px; line-height: 1.35; overflow-wrap: anywhere; }
    .news-detail-page .news-detail-content { width: 100%; max-width: none; margin-left: 0; margin-right: 0; overflow-wrap: anywhere; }
    .news-detail-page .news-detail-content img { max-width: 100%; height: auto; }
    .news-detail-page .news-attachment-item { gap: 12px; padding: 9px 0; }
    .news-detail-page .news-attachment-name { font-size: 15px; overflow-wrap: anywhere; }
    .news-detail-page .news-attachment-action { margin-left: 8px; }
    .news-detail-page .news-detail-footer { margin-top: 30px; }
}
