/* ✅ 搜尋區塊 */
.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;
    overflow-x: hidden;
}

/* ✅ 搜尋框與按鈕區塊 */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

/* ✅ 搜尋標題 */
.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;
    max-width: 100%;
}

/* ✅ 搜尋按鈕 */
#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;
    max-width: 100%;
}

#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;
    }
}
