/* 📌 主要版面 */
.browse-container {
    width: 80%;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
}

/* 📋 條列式內容 */
.browse-list {
    list-style: none;
    padding: 0;
}

/* ✅ 讓每個列表項有更好的間距與外觀 */
.browse-list li {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s;
    word-break: break-word
}

/* ✅ 滑鼠懸停時改變背景顏色 */
.browse-list li:hover {
    background: #f9f9f9;
}

/* ✅ 文章標題 
.browse-list a {
    text-decoration: none;
    color: #007bff;
    font-size: 20px;
    font-weight: bold;
    display: block;
    transition: 0.3s;
}
*/
.browse-list a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ✅ 日期樣式 */
.browse-list .date {
    display: block;
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

/* ✅ 內容預覽 */
.browse-list p {
    font-size: 16px;
    color: #444;
    margin-top: 5px;
    line-height: 1.6;
}

/* ✅ AJAX 加載動畫 */
#loading {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin-top: 15px;
}

/* 📱 響應式設計（手機版） */
@media (max-width: 768px) {
    .browse-container {
        width: 95%;
        padding: 15px;
    }

    .browse-list a {
        font-size: 18px;
    }

    .browse-list p {
        font-size: 14px;
    }
}

/* ✅ 搜尋區塊 */
.search-container {
    max-width: 100%;
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 2px solid #ddd;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    /* ✅ 讓搜尋區塊靠右對齊 */
    align-items: center;
    margin-bottom: 20px;
}

/* ✅ 搜尋框與按鈕區塊（靠右） */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    /* ✅ 增加元素間距 */
}

/* ✅ 搜尋標題（靠右） */
.search-box label {
    font-size: 18px;
    color: #333;
    white-space: nowrap;
    /* ✅ 避免換行 */
}

/* ✅ 搜尋輸入框 */
#search-input {
    width: 250px;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ✅ 搜尋按鈕 */
#search-btn {
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    /* ✅ 避免換行 */
}

#search-btn:hover {
    background: #0056b3;
}

/* ✅ 響應式設計（手機版自動換行） */
@media (max-width: 768px) {
    .search-container {
        justify-content: center;
        /* ✅ 小螢幕改為置中 */
    }

    .search-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #search-input {
        width: 80%;
        max-width: 100%;
    }

    #search-btn {
        width: auto;
        padding: 10px;
    }
}

/* 標題超連結樣式 */
.title-link {
    flex-grow: 1;
    /* 讓標題佔滿空間 */
    text-decoration: none;
    color: #007bff;
    font-size: 20px;
    font-weight: bold;
    transition: 0.3s;
}

.title-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 🔗 圖示樣式 */
.external-link {
    margin-left: 10px;
    font-size: 18px;
    color: #007bff;
    text-decoration: none;
    transition: 0.3s;
}

.external-link:hover {
    color: #0056b3;
    text-decoration: none;
}