#jmenu{
	z-index: 9999999;
}

#projectResultsWrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 真正置中 */

    width: 80%;
    max-width: 1000px;
    max-height: 70vh;
    overflow-y: auto;

    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 99998;
    border-radius: 20px;
    display: none; /* 預設隱藏 */
}

.fast-facts {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    opacity: 0;
}


.project-card:hover .fast-facts {
    opacity: 1;
}


.results-header {
    position: relative;
    margin-bottom: 15px;
    padding-right: 120px; /* 預留右邊空間 */
}

.results-header h2 {
    margin: 0;
    text-align: center;
}

/* 👉 右上角按鈕區 */
.results-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
}

/* X 按鈕 */
.close-btn {
    background: #f1f1f1;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
}

.close-btn:hover {
    background: #ddd;
}



#projectResults {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}




.title {
    font-size: 18px;
    font-weight: bold;

    display: -webkit-box;
    -webkit-line-clamp: 2;   /* 最多 2 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desc {
    font-size: 14px;

    display: -webkit-box;
    -webkit-line-clamp: 3;   /* 最多 3 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* 卡片樣式 */
.project-card {
    padding: 10px;
    height: 250px;

    background-size: cover;
    background-position: center;

    cursor: pointer;
    position: relative;

        transition: background-image 0.3s ease;
        
            vertical-align: top;

    border: 1px solid #ddd;
    margin-bottom: 10px;
    justify-content: flex-end; /* 文字貼底 */

    display: flex;
    flex-direction: column;

}
.project-card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.project-card .content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 10px;
}

/* 卡片內資訊 */
.project-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 10px;
}

.project-filters {
    position: relative;
	width: 100%;
   
    z-index: 99999;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;
    padding: 10px 10px 10px 10px;
    margin-left: auto;
    margin-right: auto;
}

.project-filters.scrolled {
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* 讓後面內容不要被遮住 */


#clearBtn {

}

#clearBtn:hover {
}
/* 左邊 filters */
.filters-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 右邊搜尋 */
.filters-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* input 寬度 */
#keyword {
    min-width: 180px;
    border-top:0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid black;
    text-align: center;
}




