/* =========================================
   阿鹿小站 v2.0 - 前台：最新消息列表專屬樣式 (news_list.css)
   ========================================= */

.news-list-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.news-list-header {
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.news-list-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-li {
    display: flex;
    align-items: center;
    padding: 18px 10px;
    border-bottom: 1px dashed #eee;
    transition: background-color 0.2s ease;
}

.news-li:hover {
    background-color: #f8f9fa;
    border-radius: 6px;
}

.nl-date {
    width: 120px;
    color: #7f8c8d;
    font-family: monospace;
    font-size: 1.05rem;
}

.nl-badge {
    width: 90px;
    text-align: center;
}

.nl-badge span {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: bold;
}

.nl-title {
    flex-grow: 1;
    padding-left: 15px;
}

.nl-title a {
    color: #34495e;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: bold;
    transition: color 0.2s;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px; /* 避免標題太長破版 */
}

.nl-title a:hover {
    color: #3498db;
}

/* 分頁按鈕樣式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: #f1f2f6;
    border-color: #ccc;
}

.pagination .active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* 手機版適應 */
@media (max-width: 768px) {
    .news-list-container {
        padding: 20px;
        margin: 20px;
    }
    .news-li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .nl-title {
        padding-left: 0;
    }
    .nl-title a {
        max-width: 100%;
        white-space: normal;
    }
}
/* 🌟 新增：分類篩選按鈕樣式 */
.news-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: #7f8c8d;
    background: #f1f2f6;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #e0e6ed;
    color: #2c3e50;
}

.filter-btn.active {
    background: #2c3e50;
    color: #fff;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.filter-btn.type-1.active {
    background: #3498db;
    box-shadow: 0 2px 8px rgba(52,152,219,0.3);
}

.filter-btn.type-2.active {
    background: #e67e22;
    box-shadow: 0 2px 8px rgba(230,126,34,0.3);
}

/* 手機版適應補充 */
@media (max-width: 768px) {
    .news-filter {
        flex-wrap: wrap;
        gap: 10px;
    }
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}