/*
 * 本站的自訂樣式（原本與 Bootstrap 混在 core.css 中，2026-11 分出）。
 * 由 template.xhtml 在 core.css 之後載入；新版介面的樣式在 eco-ui.css。
 */

.background-image {
    position: relative;
    width: 100%;
    padding-top: 14%;
    background-image: url('../img/banner.webp?v=202405132222');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: auto;
    display: flex;
    align-items: center;
}

.admin-div {
    display: flex;
    margin-top: 0px;
}

.text {
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 0.3%;
    color: white;
}

.text p {
    margin: 0;
    line-height: 1.5;
    text-shadow: 0.2em 0.2em 0.2em #141414;
}

.text p:first-child {
    font-size: 1.2em;
    font-weight: bold;
}

.article-list-title {
    margin: 20px;
    font-weight: bold;
    font-size: 16pt;
}

/* 照片固定寬高；原本沒有設定裁切方式，比例不同的照片（例如直式）會被壓扁或拉寬，2026-11 改為等比例縮放、裁掉超出的部分 */
.article-list-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
}

.article-list-content {
    margin: 20px;
    font-size: 12pt;
    min-height: 45px;
}

/* 作者與日期：與文章頁相同的深灰一般字（原本是 9～10pt 粗體黑字），各寬度的字級與摘要相同 */
.article-list-author {
    margin: 20px;
    font-weight: normal;
    font-size: 12pt;
    color: #555555;
}

.article-page-title {
    font-size: 24pt;
    font-weight: bold;
}

/*
 * 文章頁、活動與訊息頁標題下方的「作者 · 發布於（活動為更新於）日期」。
 * 原本是 10pt（約 13.3px）粗體黑字，是整頁最小的字；2026-11 改為 12pt（16px，仍小於內文 18px）一般字重的深灰字，
 * 看得出是次要資訊。物種頁「相關生態觀察文章」清單中的作者與日期（species-related-meta）相同
 */
.article-page-author {
    font-weight: normal;
    font-size: 12pt;
    color: #555555;
    padding-top: 20px;
    padding-bottom: 30px;
}

.article-page-author-sep {
    margin: 0 0.6em;
    color: #aaaaaa;
}

.classification-menu-item-linked {
    background-color: #7a9f13;
    text-align: center;
    vertical-align: middle;
    font-size: 1.1em;
    line-height: 45px;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 10px;
}

.classification-menu-item {
    background-color: #EEEEEE;
    color: black;
    text-align: center;
    vertical-align: middle;
    font-size: 1.1em;
    line-height: 45px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.classification-menu-item:hover {
    background-color: #7a9f13;
    color: white;
    cursor: pointer;
}

.classification-menu-subitem-linked {
    background-color: #ddaa00;
    text-align: center;
    vertical-align: middle;
    font-size: 1.1em;
    line-height: 45px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 25px;
    cursor: pointer;
    border-radius: 10px;
}

.classification-menu-subitem {
    background-color: #EEEEEE;
    color: black;
    text-align: center;
    vertical-align: middle;
    font-size: 1.1em;
    line-height: 45px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 25px;
    border-radius: 10px;
}

.classification-menu-subitem:hover {
    background-color: #ddaa00;
    color: white;
    cursor: pointer;
}

/*
 * 左側選單（分類、區域簡介、關於我們）與分類頁的物種清單：原本是 div 加 onclick 跳頁，2026-11 改為連結（a），
 * 可以右鍵在新分頁開啟、用鍵盤操作，搜尋引擎也找得到各頁。
 * 以下讓連結維持原本的外觀：core.css 對所有連結設了黑字、hover 與 focus 時綠字，這裡改回原本的顏色。
 * 鍵盤移到選單項目上時（focus），外觀與滑鼠移上時相同。
 */
a.classification-menu-item,
a.classification-menu-item-linked,
a.classification-menu-subitem,
a.classification-menu-subitem-linked {
    display: block;
    text-decoration: none;
}

a.classification-menu-item,
a.classification-menu-subitem {
    color: black;
}

a.classification-menu-item-linked,
a.classification-menu-subitem-linked,
a.classification-menu-item:hover,
a.classification-menu-item:focus,
a.classification-menu-subitem:hover,
a.classification-menu-subitem:focus {
    color: white;
}

a.classification-menu-item:focus {
    background-color: #7a9f13;
}

a.classification-menu-subitem:focus {
    background-color: #ddaa00;
}

a.species-list-item-content {
    color: inherit;
    text-decoration: none;
}

a.species-list-item-content:hover,
a.species-list-item-content:focus {
    color: #7a9f13;
}

/* 左側選單手機版的收合按鈕「分類：… ▾」：平板與桌機不顯示 */
.classification-menu-toggle {
    display: none;
}

/*
 * 左側選單加上 classification-menu-collapsible 的頁面（分類頁、區域簡介頁、關於我們）在手機版（寬度 768px 以下）：
 * 選單移到上方，平常收合成一個「分類：目前的頁面 ▾」按鈕（綠底白字，與目前頁面的按鈕相同），
 * 點了才展開成格狀排列的按鈕（每列約 3 個，名稱放不下時在按鈕內換行；分組標題如「鳥類 ▾」「簡介 ▾」獨占一列）。
 * 展開／收合見 js/eco-ui.js 的 ecoToggleClassificationMenu。
 * 字級不變。平板與桌機仍是左側選單，不受影響。分類頁物種清單的卡片見下一段。
 */
@media (max-width: 767.98px) {
    .classification-menu-collapsible {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        margin-bottom: 18px;
    }

    .classification-menu-collapsible > .classification-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        grid-column: 1 / -1;
        width: 100%;
        min-height: 45px;
        margin: 0;
        padding: 6px 12px;
        border: 0;
        border-radius: 10px;
        background-color: #7a9f13;
        color: white;
        font: inherit;
        font-size: 1.1em;
        line-height: 1.3;
        cursor: pointer;
    }

    .classification-menu-collapsible .classification-menu-toggle::after {
        content: "▾";
        margin-left: 0.5em;
    }

    .classification-menu-collapsible.is-open .classification-menu-toggle::after {
        content: "▴";
    }

    /* 收合時只顯示按鈕；is-collapsible 由頁面上的 script 加上，沒有 JavaScript 時選單全部顯示 */
    .classification-menu-collapsible.is-collapsible:not(.is-open) > :not(.classification-menu-toggle) {
        display: none !important;
    }

    .classification-menu-collapsible > a,
    .classification-menu-collapsible > div {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 45px;
        margin: 0 !important;
        padding: 6px 4px;
        line-height: 1.3;
    }

    .classification-menu-collapsible > .classification-menu-heading {
        grid-column: 1 / -1;
    }

    /* 分組的子項目（» 陸域、» 水域）之後，下一個分類從新的一列開始，看得出哪些屬於同一組 */
    .classification-menu-collapsible > [class*="classification-menu-subitem"] + :not([class*="classification-menu-subitem"]) {
        grid-column-start: 1;
    }

}

/*
 * 分類頁（classification.xhtml）的物種清單：所有尺寸都是白色圓角卡片，與左側（手機上為上方）的綠色、灰色分類按鈕有所區隔。
 * 原本是右邊與下面的虛線格子（core.css 的 species-list-item-content），2026-11 改為卡片。
 * 以格狀排列：桌機四欄、平板三欄、手機兩欄；同一列的卡片等高（名稱較長、需要換行時整列一起變高，不會錯位）。字級不變。
 * .row 的 ::before、::after 是 Bootstrap 清除浮動用的，在格狀排列中會變成空格子，要拿掉；
 * 左右也不再向外延伸（.row 的負邊距），卡片與上方的內容對齊。
 */
.classification-page .area-intro {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-left: 0;
    margin-right: 0;
}

.classification-page .area-intro::before,
.classification-page .area-intro::after {
    content: none;
}

.classification-page .species-list-item {
    display: flex;
    float: none;
    width: auto;
    height: auto;
    padding: 0;
}

.classification-page .species-list-item-content {
    height: auto;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* 平板（768～991px）：三欄 */
@media (max-width: 991.98px) {
    .classification-page .area-intro {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 手機（768px 以下）：兩欄，卡片較矮、間距較小 */
@media (max-width: 767.98px) {
    .classification-page .area-intro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .classification-page .species-list-item-content {
        min-height: 64px;
        padding: 6px;
    }
}

@media (min-width: 576px) {
    .background-image {
        background-image: url('../img/banner.webp?v=202405132222');
        margin-top: 0px;
    }

    .admin-div {
        margin-top: 0px;
    }

    .text {
        width: 510px;
    }

    .text p:first-child {
        font-size: 1.7em;
    }

    .classification-menu-item-linked {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-item {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-subitem-linked {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-subitem {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 768px) {
    .admin-div {
        margin-top: 45px;
    }

    .background-image {
        background-image: url('../img/banner.webp?v=202405132222');
        margin-top: 45px;
    }

    .text {
        width: 690px;
    }

    .text p:first-child {
        font-size: 2.2em;
    }

    .article-list-title {
        font-size: 14pt;
    }

    .article-list-image {
        height: 250px;
    }

    .article-list-content {
        font-size: 11pt;
    }

    .article-list-author {
        font-size: 11pt;
    }

    .classification-menu-item-linked {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-item {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-subitem-linked {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-subitem {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 992px) {
    .admin-div {
        margin-top: 45px;
    }

    .background-image {
        background-image: url('../img/banner.webp?v=202405132222');
        margin-top: 0px;
    }

    .text {
        width: 930px;
    }

    .text p:first-child {
        font-size: 2.3em;
    }

    .article-list-title {
        font-size: 14pt;
    }

    .article-list-image {
        height: 200px;
    }

    .article-list-content {
        font-size: 11pt;
    }

    .article-list-author {
        font-size: 11pt;
    }

    .classification-menu-item-linked {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-item {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-subitem-linked {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-subitem {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 1200px) {
    .admin-div {
        margin-top: 0px;
    }

    .background-image {
        background-image: url('../img/banner.webp?v=202405132222');
        margin-top: 0px;
    }

    .text {
        width: 1110px;
    }

    .text p:first-child {
        font-size: 2.5em;
    }

    .article-list-title {
        font-size: 15pt;
    }

    .article-list-image {
        height: 260px;
    }

    .article-list-content {
        font-size: 12pt;
    }

    .article-list-author {
        font-size: 12pt;
    }

    .classification-menu-item-linked {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-item {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-subitem-linked {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-subitem {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 1400px) {
    .admin-div {
        margin-top: 0px;
    }

    .background-image {
        background-image: url('../img/banner.webp?v=202405132222');
        margin-top: 0px;
    }

    .text {
        width: 1258px;
    }

    .text p:first-child {
        font-size: 3em;
    }

    .article-list-title {
        font-size: 18pt;
    }

    .article-list-image {
        height: 300px;
    }

    .article-list-content {
        font-size: 12pt;
    }

    .article-list-author {
        font-size: 12pt;
    }

    .classification-menu-item-linked {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-item {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-subitem-linked {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    .classification-menu-subitem {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.content {
    flex: 1;
    /* 在这里设置您的主要内容样式 */
}

.footer {
    flex-shrink: 0;
    width: 100%;
    min-height: 60px;
    background-color: #EEEEEE;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-path {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

h1.area-path {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 0.09em;
    margin-bottom: 0.21em;
    line-height: 1.1;      
    padding: 0;
    color: inherit;
}

h1.area-path::before {
    content: '▶';
    margin-right: 4px;
    color: inherit;
}

.area-intro {
    font-size: 1.2em;
    text-align: justify;
    letter-spacing: 0.05em;
    line-height: 26px;
}

.classification-menu {
    background-color: white;
    color: white;
}

.species-list-item {
    text-align: center;
    height: 120px;
}

.species-list-item-content:hover {
    color: #7a9f13;
    cursor: pointer;
}

/*
 * 右下角的「回到頂端」按鈕。圖層順序原為 1040，會蓋在對話框（PrimeFaces 從 1000 起）、
 * 手機版展開的選單面板（導覽列 999）與相片放大檢視上面，例如擋住對話框的「關閉」按鈕；
 * 2026-11 改為 990，只浮在一般頁面內容之上
 */
#btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 990;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

#newsContent {
    min-height: 200px
}

.search-result-row {
    padding-top: 30px;
    padding-bottom: 30px;
}

.search-result-message {
    font-size: 16pt;
    padding: 10px;
    font-weight: bold;
}

.search-result-pages-row {
    padding: 40px;
}

.search-result-pages-label {
    font-size: 12pt;
    padding-left: 10px;
    padding-right: 10px;
}

.search-result-pages-number-link {
    font-size: 12pt;
    padding-left: 10px;
    padding-right: 10px;
    color: #7a9f13;
}

.search-result-pages-number-active {
    font-size: 12pt;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: bold;
}

.search-result-data-info-row {
    padding: 10px;
}

.search-result-data-info-title {
    font-size: 16pt;
    font-weight: bold;
}

.search-result-data-info-type-article {
    font-size: 9pt;
    margin-left: 10px;
    margin-right: 10px;
    padding: 3px;
    background-color: #0079a1;
    color: white;
}

.search-result-data-info-type-event {
    font-size: 9pt;
    margin-left: 10px;
    margin-right: 10px;
    padding: 3px;
    background-color: #a10079;
    color: white;
}

.search-result-data-info-type-species {
    font-size: 9pt;
    margin-left: 10px;
    margin-right: 10px;
    padding: 3px;
    background-color: #08844e;
    color: white;
}

.search-result-data-info-type-checkedin {
    font-size: 9pt;
    margin-left: 10px;
    margin-right: 10px;
    padding: 3px;
    background-color: #7c3aed;
    color: white;
}

.search-result-data-content-row {
    padding: 20px 30px 0px 30px;
    text-align:justify;
}

.search-result-data-content-image {
    width: 150px;
    float: left;
    margin-right: 10px;
}

.search-result-matches-row {
    padding: 25px 30px 0px 30px;
}

.search-result-matches {
    font-size: 12pt;
}

/* 類別標籤（生態觀察、活動與訊息、物種資料）：標題換行時整個標籤一起換到下一行，不會被拆成兩半 */
.search-result-data-info-type-article,
.search-result-data-info-type-event,
.search-result-data-info-type-species,
.search-result-data-info-type-checkedin {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.3;
}

/*
 * 站內檢索結果（search.xhtml）在手機上（寬度 768px 以下）：
 * 原本摘要左右各留 30px、兩端對齊，375px 寬時摘要有 11～12 行，遇到長網址字距會被撐得很開，每筆約 380px。
 * 改為摘要靠左、最多 4 行（超過以「…」截斷），縮小左右留白；頁次數字放大可點範圍。字級不變
 */
@media (max-width: 767.98px) {
    .search-result-pages-row {
        padding: 16px 10px;
    }

    .search-result-pages-number-link,
    .search-result-pages-number-active {
        display: inline-block;
        min-width: 36px;
        padding: 8px 6px;
        text-align: center;
    }

    .search-result-data-content-row {
        padding: 8px 10px 0 10px;
        text-align: left;
    }

    .search-result-data-content-image {
        width: 96px;
    }

    .search-result-data-content-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        overflow: hidden;
        overflow-wrap: anywhere;
    }

    .search-result-matches-row {
        padding: 10px 10px 0 10px;
    }
}

#latestNewsModal_header {
    text-align: center;
}

#latestNewsModal_Label {
    font-weight: bold;
    font-size: 25px;
    color: #2a9d8f;
    letter-spacing: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

#latestNewsModal_header .close {
    font-size: 25pt;
    color: red;
    background: initial;
}

.switchNews {
    font-size: 16pt;
    color: #007bff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.switchNews:hover {
    text-decoration: underline;
    color: #0056b3;
    border-color: #007bff;
}

#latestNewsTitleDiv {
    /*padding-bottom: 30px;*/
}

#latestNewsDateDiv {
    padding-left: 2px;
    padding-bottom: 30px;
}

#latestNewsTitle {
    font-size: 18pt;
    font-weight: bold;
}

#latestNewsDate {
    font-size: 10pt;
}

#emptyLatestNews {
    font-size: 18pt;
    font-weight: bold;
    color: red;
}

.calendar-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 寬高比 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.calendar-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*
 * 手機（寬度 768px 以下）改用 Google 日曆的議程清單（calendar.xhtml），不需維持寬高比；
 * 改為約四分之三個畫面高，清單在日曆框內捲動。原本是 4:3，375px 寬的手機只有約 270px 高
 */
@media (max-width: 767.98px) {
    .calendar-container {
        padding-bottom: 0;
        height: 75vh;
        min-height: 420px;
    }
}

/*
 * 志工服勤與研習位置圖（location.xhtml）：內容是編輯器貼入的兩欄表格（每格一張圖加說明）。
 * 手機（寬度 576px 以下）兩欄時每張地圖只剩約 150px 寬，改為一欄上下排，地圖與說明使用整個寬度
 */
@media (max-width: 576px) {
    .location-page .ck-content figure.table,
    .location-page .ck-content figure.table table,
    .location-page .ck-content figure.table tbody,
    .location-page .ck-content figure.table tr,
    .location-page .ck-content figure.table td {
        display: block;
        width: 100% !important;
    }

    .location-page .ck-content figure.table colgroup {
        display: none;
    }

    .location-page .ck-content figure.table td + td {
        margin-top: 1rem;
    }
}

/*
 * 生態觀察列表（articlelist.xhtml）在手機上（寬度 768px 以下，一欄的時候）：
 * 原本是標題、滿版大照片（300px 高）、摘要、作者日期上下排，每篇約 500px，38 篇長達 19,000px。
 * 改為橫式小卡：左邊 104px 方形縮圖，右邊依序為標題、兩行摘要（超過以「…」截斷）、作者日期，每篇約 150px。
 * 標題與摘要字級不變；沒有照片的文章（article-list-item-noimage）文字使用整個寬度
 */
@media (max-width: 767.98px) {
    .article-list-page > .row {
        margin-left: 0;
        margin-right: 0;
    }

    .article-list-page .article-list-item {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 4px;
        float: none;
        padding: 14px 0;
        border-bottom: 1px solid #e9ecef;
    }

    .article-list-page .article-list-image-link {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: start;
    }

    .article-list-page .article-list-image {
        display: block;
        width: 104px;
        height: 104px;
        border-radius: 8px;
    }

    .article-list-page .article-list-title,
    .article-list-page .article-list-content,
    .article-list-page .article-list-author {
        grid-column: 2;
        margin: 0;
    }

    .article-list-page .article-list-item-noimage > * {
        grid-column: 1 / -1;
    }

    .article-list-page .article-list-title {
        grid-row: 1;
        line-height: 1.35;
    }

    .article-list-page .article-list-content {
        grid-row: 2;
        min-height: 0;
        color: #555555;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }

    .article-list-page .article-list-author {
        grid-row: 3;
    }
}

select[name="myForm:dataList_length"] { 
    padding-right: 25px !important;    
}

select[name="myForm:activityList_length"] { 
    padding-right: 25px !important;    
}

select[name="myForm:newsList_length"] { 
    padding-right: 25px !important;    
}

/* 增加選項之間的距離 */

.radio-spacing td {
    padding-right: 20px;
}

/* 讓選項的文字變大 */

.radio-spacing label {
    font-size: 13pt;
}

/* 讓 radio 按鈕變大 */

.radio-spacing input[type="radio"] {
    transform: scale(1.3); /* 放大 radio 按鈕 */
    margin-right: 5px; /* 調整與文字的距離 */
}

/* 增加選項之間的距離 */

.radio-spacing2 td {
    padding-right: 20px;
    white-space: normal;
    vertical-align: top; 
}

.radio-spacing table {
    table-layout: auto;
}

/* 讓選項的文字變大 */

.radio-spacing2 label {
    font-size: 11pt;
}

/* 讓 radio 按鈕變大 */

.radio-spacing2 input[type="radio"] {
    transform: scale(1.3); /* 放大 radio 按鈕 */
    margin-right: 5px; /* 調整與文字的距離 */
}

/* ============================
   Devbridge Autocomplete 美化
   ============================ */

/* 外層容器 */

.autocomplete-suggestions {
    position: absolute;
    z-index: 10000;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    max-height: 250px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.5;
}

/* 每一項建議 */

.autocomplete-suggestion {
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

/* 最後一項不顯示底線 */

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

/* 滑過效果 */

.autocomplete-suggestion:hover,
.autocomplete-selected {
    background-color: #f5f8ff;
    color: #2a66c9;
}

/* 高亮顯示搜尋字詞 */

.autocomplete-suggestion strong {
    color: #1a4eb3;
    font-weight: 600;
}

/* 若在 dialog 或彈出視窗內使用，確保不被遮住 */

.ui-dialog .autocomplete-suggestions {
    z-index: 20000 !important;
}

/* 美化 autocomplete 建議清單文字大小與間距 */

.autocomplete-suggestion {
    font-size: 15px; /* 調整字體大小 */
    line-height: 1.6em;
    padding: 6px 10px;
}

.autocomplete-suggestion:hover,
.autocomplete-selected {
    background-color: #e8f0fe; /* 輕微藍底 hover 效果 */
    color: #000;
}

/* QR Code 容器 */

.qrcode-block {
    text-align: center;        /* 置中 */
    margin: 15px auto;
    padding: 15px;
    border: 1px solid lightgray;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    max-width: 320px;          /* RWD 最大寬度 */
    background-color: #fff;
    border-radius: 8px;
}

/* QR Code 圖片 */

.qrcode-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;  /* 下方留空間給文字 */
}

/* QR Code 底部文字 */

.qrcode-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/*
 * 原本寫在舊版前台頁面上的樣式（2026-11 由 style="..." 移出），數值與原本相同；
 * 與內嵌樣式一樣不被 .area-path 等規則蓋過，皆加上 !important。
 */

/* 分類、物種、區域頁左側選單中不可點的標題（例如「簡介 ▾」） */
.classification-menu-heading {
    cursor: default !important;
    margin-bottom: 3px !important;
}

/* 活動公告列表、最新訊息列表、行事曆的頁面標題 */
.list-page-title {
    padding: 10px 0px 30px 0px !important;
}

.calendar-page-title {
    padding: 10px 0px 20px 0px !important;
}

/* 站內檢索結果的內容摘要 */
.search-result-data-content-text {
    font-size: 12pt !important;
    color: gray !important;
}

/*
 * 物種頁：頁面路徑標題（寬螢幕 h1）；手機上改為回到物種清單的白色卡片按鈕「‹ 區域 · 分類」，
 * 與分類頁的物種卡片同風格，高度至少 45px 方便點選（原本是靠右的一行綠色連結，2026-11 改版）。字級不變
 */
.species-path {
    margin-bottom: 50px !important;
}

.species-path-mobile {
    margin: 4px 0 18px !important;
}

.species-path-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
    padding: 6px 14px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    color: #5d7a0e !important;
    text-decoration: none !important;
}

.species-path-link:hover,
.species-path-link:focus {
    border-color: #7a9f13;
}

.species-path-arrow {
    font-size: 1.5em;
    line-height: 1;
    color: #7a9f13;
}

/* 物種頁：相關生態觀察文章、相關活動與訊息 */
.species-related-gap {
    padding-top: 20px !important;
}

.species-related-title {
    padding-top: 15px !important;
}

.species-related-link {
    color: green !important;
    font-size: 12pt !important;
}

.species-related-meta {
    margin-left: 0.6em;
    font-size: 12pt !important;
    color: #555555;
}
