/* ============================================
   萬大發電廠環境教育學習網 - 最新消息內容頁
   kun 2025-01-16
   ============================================ */

/* ============================================
   4張輪播圖設定覆蓋
   ============================================ */
.banner-carousel .carousel-slide {
    animation: fadeSlide4 16s infinite;
}

.banner-carousel .carousel-slide:nth-child(1) {
    animation-delay: 0s;
}

.banner-carousel .carousel-slide:nth-child(2) {
    animation-delay: 4s;
}

.banner-carousel .carousel-slide:nth-child(3) {
    animation-delay: 8s;
}

.banner-carousel .carousel-slide:nth-child(4) {
    animation-delay: 12s;
}

/* 淡入淡出動畫 (4張圖片版本，每張佔 25%) */
@keyframes fadeSlide4 {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ============================================
   NEWS CONTENT SECTION - 最新消息內容區塊
   ============================================ */
.news-content-section {
    max-width: var(--container-content);
    margin: var(--spacing-6xl) auto;
    padding: 0 var(--container-padding-md);
}

.news-content-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-5xl);
}

/* ============================================
   NEWS META - 發布資訊
   ============================================ */
.news-meta {
    margin-bottom: var(--spacing-3xl);
}

.meta-item {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   NEWS TITLE - 文章標題
   ============================================ */
.news-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-3xl);
}

/* ============================================
   NEWS BODY - 文章內容
   ============================================ */
.news-body {
    margin-bottom: var(--spacing-4xl);
}

.news-body p {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-lg);
}

.news-body ul,
.news-list {
    list-style: disc;
    padding-left: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.news-body li,
.news-list li {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-md);
}

.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

/* ============================================
   NEWS ACTIONS - 按鈕區域
   ============================================ */
.news-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-4xl);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: var(--color-primary-light);
    color: var(--color-white);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-2xl);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-back:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 169, 201, 0.3);
}

.btn-back:active {
    transform: translateY(0);
}

.btn-back span {
    font-weight: var(--font-weight-bold);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .news-content-container {
        padding: var(--spacing-4xl);
    }

    .news-title {
        font-size: var(--font-size-2xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .news-content-section {
        margin: var(--spacing-4xl) auto;
    }

    .news-content-container {
        padding: var(--spacing-2xl);
    }

    .news-title {
        font-size: var(--font-size-xl);
    }

    .news-body li,
    .news-list li {
        font-size: var(--font-size-base);
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .news-content-container {
        padding: var(--spacing-xl);
    }

    .news-title {
        font-size: var(--font-size-lg);
    }

    .meta-item {
        font-size: var(--font-size-xs);
    }

    .news-body li,
    .news-list li {
        font-size: var(--font-size-sm);
    }
}