﻿/* 字型 */
@font-face {
    font-family: 'jf-openhuninn';
    /*    src: url('/KhccHeritageWebSite/font/jf-openhuninn-2.1.ttf') format('truetype');*/
    src: url('/KhccHeritageWebSite/font/jf-openhuninn-2.1.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'jf-openhuninn', sans-serif;
}

div,
span,
p,
span p {
    font-family: 'jf-openhuninn' !important;
    color: #68442b !important;
}

    span[style*="font-size"] {
        font-size: inherit !important;
    }

html {
    font-size: 1rem;
}

/* 首頁右上角網站導覽字體 */
header a {
    font-size: 1.25rem !important;
}

    header a:hover {
        color: #a3a18f;
    }

ul, ol {
    list-style-position: inside;
}

footer a,
footer p {
    font-size: 1.125rem;
    white-space: normal;
    color: #000 !important;
}

html, body {
    overflow-x: hidden;
}
    /* 手機模式強制啟用 */
    body.mobile-mode .domain-wrapper {
        display: none !important;
    }

    body.mobile-mode .container.position-relative.pb-5.d-block.d-lg-none {
        display: block !important;
    }

/* 手機版 header 固定 */
/*@media (max-width: 375.99px) {
    .header-logo img {
        margin-top: 3%;
        width: 90% !important;
    }
}*/
@media (max-width: 991.98px) {
    header .row.navbar-border-bottom {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background-color: #ebe5dc;
        align-items: center;
    }

    /* logo 置中 */
    .header-logo {
        justify-content: center;
        align-items: center;
        flex: 1;
        margin-bottom: 5%;
    }

        .header-logo img {
            margin-top: 3%;
            width: 100%;
        }

    /* 漢堡靠左 */
    .col-9.d-flex.justify-content-end.d-lg-none {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* 手機版 topNav 隱藏 */
    .topNav-row {
        display: none;
    }

    /* 選單固定在 header 下方 */
    #mobileNav {
        position: fixed;
        top: 70px; /* header 高度 */
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 998; /* 比 header 低 */
        overflow-y: auto; /* 允許滾動 */
        -webkit-overflow-scrolling: touch; /* iOS 平滑滾動 */
    }

    .mobile-navbar-nav {
        flex-direction: column;
        text-align: left; /* 選單文字靠左 */
    }

        .mobile-navbar-nav .nav-link,
        .mobile-navbar-nav .dropdown-item {
            color: #FFF;
        }

            .mobile-navbar-nav .nav-link:hover,
            .mobile-navbar-nav .dropdown-item:hover {
                color: #EFC33D;
            }

    /*body {
        padding-top: 22%;*/ /* header 高度，避免內容被遮住 */
    /*}*/
}
/* 手機尺寸 */
@media (max-width: 575.98px) {
    /* 走讀漫遊詳細頁標題大小*/
    /* ta-cover-header H1 */
    .ta-cover-header .ta-title.ta-title-small,
    .ta-header .ta-title.ta-title-small {
        font-size: 1.25rem !important;
    }

    .ta-cover-header .ta-title.ta-title-medium,
    .ta-header .ta-title.ta-title-medium {
        font-size: 1.375rem !important;
    }

    .ta-cover-header .ta-title.ta-title-large,
    .ta-header .ta-title.ta-title-large {
        font-size: 1.5rem !important;
    }

    .holtwood-one-sc-regular {
        font-size: 1.8rem !important;
    }

    .box-content {
        overflow: hidden;
        transform: translateY(0);
        width: 90vw !important;
        margin-left: calc((90vw - 100%) / -2) !important;
        margin-right: calc((90vw - 100%) / -2) !important;
        position: relative;
        z-index: 1;
/*        height: 225px !important;*/
        border-radius: 20px;
        display: flex;
        justify-content: center; /* 水平置中 */
        align-items: center;
        aspect-ratio: 16 / 9 !important;
    }
        .box-content img {
            object-fit: initial !important;
            aspect-ratio: 16 / 9 !important;
        }

    .container.ano {
        padding-left: 0% !important;
        padding-right: 0% !important;
    }

    .cloud.cloud_N1,
    .cloud.cloud_N2 {
        display: none;
    }

    footer a,
    footer p {
        font-size: 0.875rem;
    }

    /* 桌機版導覽列隱藏 */
    .navbar-border-bottom::after {
        display: none;
    }

    .topNav-row {
        display: none !important;
    }

    .news-title {
        font-size: 2.75rem !important;
    }

    .domain-title-img {
        font-size: 2.75rem !important;
    }

    .caqq-title {
        font-size: 2rem !important;
    }

    .kohpa-title {
        font-size: 2rem !important;
    }

    /* 首頁輪播圖 */
    .full-width-carousel {
        padding: 3px 70px 3px 70px !important;
    }

    #main-carousel .splide__arrow {
        display: none !important;
    }

    .tophomepage {
        width: 100% !important;
    }

    .bg-box {
        margin-top: -21% !important;
    }

    /* 最新消息按鈕 */
    .btn-group-wrap {
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }

        .btn-group-wrap .btn {
            flex: 1 1 0%;
            width: 100%;
            text-align: center;
        }

    .news-container {
        margin-top: 0 !important;
        min-height: 50vh;
    }

    #newsmobileSplide .splide__arrow {
        display: none !important;
    }

    .btn-circle.kohpa {
        width: 35px !important;
        height: 35px !important;
    }

    /* 跑馬燈消息 */
    .news-nav {
        flex-direction: column !important;
        font-size: 0.875rem;
    }

        .news-nav .date-title-wrap {
            flex-direction: row !important;
            flex-wrap: nowrap;
            width: 100%;
            min-width: 0; /* 關鍵：讓子元素可縮 */
            gap: 0.5rem;
        }

        .news-nav > div {
            width: 100%;
            margin-bottom: 8px;
            flex: none;
            padding-left: 0px !important;
            justify-content: center !important;
        }

    .truncate-title {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
        min-width: 0; /* 讓 flex 容器可壓縮寬度 */
        max-width: 100%; /* 防止超出父容器 */
    }

    /* 文化資產檢索*/
    .caq-container h4 {
        text-align: center !important;
    }

    .caq-container .d-flex.flex-wrap {
        justify-content: center !important;
    }

    /* 關鍵字搜尋區塊 */
    .keyword-search-group {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

        .keyword-search-group .form-control {
            width: 100%;
            max-width: 400px;
        }

    /*        .keyword-search-group .search-btn {
            width: 100%;
            max-width: 200px;
            margin-top: 10px !important;
        }*/

    /* 麵包屑 */
    .btn-white {
        margin: 8px;
    }
    /* 其他頁面標題圖片 */
    .gov-img,
    .sitemap-img,
    .aboutus-img {
        max-width: 331px !important;
        height: 43px !important;
    }

    .custom-pagination .page-link {
        margin: 0 !important;
    }
}

/* 平板 */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* 走讀漫遊詳細頁標題大小*/
    /* h1 標題 */
    .ta-cover-header .ta-title.ta-title-small,
    .ta-header .ta-title.ta-title-small {
        font-size: 1.625rem !important;
    }

    .ta-cover-header .ta-title.ta-title-medium,
    .ta-header .ta-title.ta-title-medium {
        font-size: 1.75rem !important;
    }

    .ta-cover-header .ta-title.ta-title-large,
    .ta-header .ta-title.ta-title-large {
        font-size: 1.875rem !important;
    }

    .search-btn {
        margin-top: .5rem !important;
    }

    .container.ano {
        padding-left: 0% !important;
        padding-right: 0% !important;
    }

    html {
        font-size: 1rem;
    }

    /* 桌機版導覽列隱藏 */
    .navbar-border-bottom::after {
        display: none;
    }

    .topNav-row {
        display: none !important;
    }

    #main-carousel .splide__arrow {
        display: none !important;
    }
    /* 跑馬燈消息 */
    .news-nav {
        flex-direction: column !important;
        font-size: 0.875rem;
        padding: 10px 15px;
    }

        .news-nav .date-title-wrap {
            flex-direction: row !important;
            flex-wrap: nowrap;
            width: 100%;
            min-width: 0; /* 關鍵：讓子元素可縮 */
            gap: 0.5rem;
        }

        .news-nav > div {
            width: 100%;
            margin-bottom: 8px;
            flex: none;
            padding-left: 0px !important;
            justify-content: center !important;
        }

    .truncate-title {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
        min-width: 0; /* 讓 flex 容器可壓縮寬度 */
        max-width: 100%; /* 防止超出父容器 */
    }

    .domain-wrapper {
        display: none;
    }

    .mokohpa-img {
        width: 400px !important;
        height: 60px !important;
    }
    /* 麵包屑 */
    .btn-white {
        margin: 8px;
    }
}
/* 大平板 */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* 走讀漫遊詳細頁標題大小*/
    /* h1 標題 */
    .ta-cover-header .ta-title.ta-title-small,
    .ta-header .ta-title.ta-title-small {
        font-size: 1.625rem !important;
    }

    .ta-cover-header .ta-title.ta-title-medium,
    .ta-header .ta-title.ta-title-medium {
        font-size: 1.75rem !important;
    }

    .ta-cover-header .ta-title.ta-title-large,
    .ta-header .ta-title.ta-title-large {
        font-size: 1.875rem !important;
    }

    .container.ano {
        padding-left: 0% !important;
        padding-right: 0% !important;
    }

    /* 桌機版導覽列隱藏 */
    .navbar-border-bottom::after {
        display: none;
    }

    .topNav-row {
        display: none !important;
    }

    .mobile-nav-placeholder {
        display: block;
        order: 3;
    }

    .domain-wrapper {
        display: none;
    }

    .mokohpa-img {
        width: 420px !important;
        height: 60px !important;
    }
    /* 麵包屑 */
    .btn-white {
        margin: 8px;
    }
}
/* 桌機尺寸 */
@media (min-width: 992px) and (max-width: 1199.99px) {
    /* 走讀漫遊詳細頁標題大小*/
    /* h1 標題 */
    .ta-cover-header .ta-title.ta-title-small,
    .ta-header .ta-title.ta-title-small {
        font-size: 1.625rem !important;
    }

    .ta-cover-header .ta-title.ta-title-medium,
    .ta-header .ta-title.ta-title-medium {
        font-size: 1.75rem !important;
    }

    .ta-cover-header .ta-title.ta-title-large,
    .ta-header .ta-title.ta-title-large {
        font-size: 1.875rem !important;
    }

    .navbar-nav .nav-link {
        padding: 0px !important;
    }

    .dropdown-menu.top {
        font-size: 1.15rem !important;
    }

    /* 麵包屑 */
    .btn-white {
        margin: 8px;
    }
}
/* 特大桌機尺寸 */
@media (min-width: 1200px) {
    /* 走讀漫遊詳細頁標題大小*/
    /* h1 標題 */
    .ta-cover-header .ta-title.ta-title-small,
    .ta-header .ta-title.ta-title-small {
        font-size: 1.625rem !important;
    }

    .ta-cover-header .ta-title.ta-title-medium,
    .ta-header .ta-title.ta-title-medium {
        font-size: 1.75rem !important;
    }

    .ta-cover-header .ta-title.ta-title-large,
    .ta-header .ta-title.ta-title-large {
        font-size: 1.875rem !important;
    }
    /*    .rounded-frame {
        gap: 0.3rem !important;
    }*/
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
/*抓好資料再渲染*/
[v-cloak] {
    display: none;
}

@media print {
    .no-print {
        display: none !important;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ebe5dc;
    overflow-x: hidden; /* 防止橫向捲動 */
}

/* 讓主要內容撐開空間 */
#app-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 80vh;
}

.skeleton {
    background: #eee;
    border-radius: 8px;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-banner {
    height: 350px;
    margin-bottom: 30px;
}

.skeleton-news {
    height: 300px;
    margin-bottom: 30px;
}

.skeleton-cards {
    height: 250px;
    margin-bottom: 30px;
}


/* 確保 main 也能展開 */
.site-main {
    flex: 1;
    /*    margin: 0px 120px 0px 120px;*/
}

#backToTopBtn {
    display: none; /* 預設不顯示 */
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: #68442b;
    color: white;
    cursor: pointer;
    padding: 10px 8px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: end;
}

    #backToTopBtn:hover {
        background-color: #563621;
    }

    #backToTopBtn img {
        width: 30px !important;
    }

.goToLinkBtn {
    display: none; /* 預設不顯示 */
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    /*    background-color: #68442b;*/
    /*    color: white;*/
    cursor: pointer;
    /*    padding: 10px 8px;*/
    /*    border-radius: 50%;*/
    display: flex;
    justify-content: center;
    align-items: end;
    width: 100px;
}

a {
    color: #000;
    text-decoration: none;
}

    a:hover,
    a:focus,
    a:active {
        color: #DC9D6D;
        text-decoration: none;
        outline: none;
    }

/*行高*/
.lh-18 {
    line-height: 2;
}


.container.ano {
    padding-left: 8%;
    padding-right: 8%;
}

.form-control {
    border: 1px solid #68442b;
    height: 40px;
}

    .form-control::placeholder {
        color: #C3AD9C;
        opacity: 1;
    }

    .form-control:focus {
        /*文字顏色*/
        /*        color: #6E3741;
        background-color: #fff;*/
        border-color: #000;
        outline: 0;
        box-shadow: none;
    }

/* 導覽列上方按鈕 */
/*.topNav-row {
    display: flex;
    justify-content: end;
    margin-right: calc(48px + 1.5rem);
}*/



/*.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;*/ /* 每項之間平均分布 */
/*width: 100%;
}

    .navbar-nav .nav-item {
        flex: 1 1 auto;*/ /* 讓每個項目能伸展 */
/*text-align: center;*/ /* 置中文字 */
/*}

    .navbar-nav .nav-link {
        color: #858176;
        font-weight: 500;
        padding: 0;
    }

        .navbar-nav .nav-link:hover {
            color: #a3a18f;
        }*/
.dropdown-menu.all {
    --bs-dropdown-min-width: auto !important;
}
/* 導覽列下拉選單邊框與對齊 */
.dropdown-menu.top {
    border: 1px solid #EFC33D; /* 金色邊框 */
    border-radius: 8px;
    /*    width: 190px;*/
    left: 50% !important;
    transform: translateX(-50%) !important; /* 讓選單水平置中 */
    /*    padding: 0.3rem 0;*/
    top: calc(100% + 20px) !important;
}

    /* 下拉選單 item 样式 */
    .dropdown-menu.top .dropdown-item.top {
        /*        padding: 0.3rem 1rem;*/
        background-color: transparent !important;
        color: #858176;
        text-align: center;
    }

        /* hover 狀態：去掉背景，改字色 */
        .dropdown-menu.top .dropdown-item.top:hover,
        .dropdown-menu.top .dropdown-item.top:focus {
            background-color: transparent !important;
            color: #EFC33D !important;
        }

        /* focus 狀態也一併處理，避免 Bootstrap 加藍色背景 */
        .dropdown-menu.top .dropdown-item.top:focus {
            box-shadow: none;
        }

/*圖片 hover 放大動畫*/
.img-zoom-hover {
    transition: transform 0.3s ease;
    transform-origin: center center;
    cursor: pointer;
    z-index: 2;
}

    .img-zoom-hover:hover {
        transform: scale(1.03);
        z-index: 2;
    }

/* 表格 */
table.table.rounded {
    /*border-collapse: separate !important;*/ /* 強制使用 separate 模式 */
    /*border-spacing: 0 !important;*/ /* 去除格子間縫隙 */
    border-radius: 12px !important;
    overflow: hidden; /* 防止背景或內容溢出圓角 */
}

/*表格標題*/
.table th {
    text-align: center;
}

.table.my-striped td,
.table.my-striped th {
    border: none !important;
    padding: 18px 20px;
    vertical-align: middle;
}

table.my-striped thead tr th {
    background-color: #8fcac3;
    color: #fff;
}

table.my-annouce thead tr th {
    background-color: #68442b;
    color: #fff;
}

.table-responsive {
    overflow-x: auto; /* 水平捲動 */
    -webkit-overflow-scrolling: touch; /* 手機滑順 */
}

.my-annouce {
    min-width: 500px; /* 設定表格最小寬度，防止擠壓 */
    margin-top: 15px;
}

.my-striped {
    --bs-table-striped-bg: #E7F3F1;
    --bs-table-bg: #fff;
}

.table.sitetable th {
    color: #333333;
}

/* 文字顏色 */
.text-brown {
    color: #68442b;
}

.text-gray {
    color: #858176 !important;
}

.text-lightbrown {
    color: #C3AD9C !important;
}

.text-orange {
    color: #EB8B2D !important;
}

/* icon 顏色 */
.fa-play,
.fa-pause {
    color: #C3AD9C;
}

/* 按鈕設定 */
.btn:focus,
.btn:active,
.btn.active,
.btn-check:checked + .btn,
.btn-check:active + .btn,
.btn:disabled,
.btn.disabled {
    border: none;
    border-color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
}

.btn-orange {
    background-color: #c7702d;
    color: #fff;
    border-radius: 20px;
    padding: 5px 18px;
    margin: 8px;
    border: 1px solid #000;
    white-space: nowrap;
}

@media (hover: hover) {
    .btn-orange:hover {
        color: #FFF;
        border: 1px solid #000;
        background-color: #68442B;
    }
}

.btn-circle {
    background-color: #68442b;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

    .btn-circle i {
        color: aliceblue;
        transition: color 0.3s ease;
    }

    .btn-circle.kohpa {
        width: 40px;
        height: 40px;
    }


@media (hover: hover) {
    .btn-circle:hover {
        background-color: #FFF !important;
    }

        .btn-circle:hover i {
            color: #68442b !important;
        }
}

.btn-white {
    background-color: #fff;
    color: #68442b;
    border-radius: 20px;
    padding: 5px 20px;
    /*    margin: 8px;*/
    border: 1px solid;
    white-space: nowrap;
}

@media (hover: hover) {
    .btn-white:hover {
        background-color: #DC9D6D;
        color: #fff !important;
        border: 1px solid #68442b;
    }
}

.btn-check:checked + .btn-white, .btn-check:active + .btn-white, .btn-white:active, .btn-white.active {
    background-color: #DC9D6D !important;
    border: 1px solid #68442b !important;
    color: white !important;
}

.btn-white.rectangle {
    width: 90px;
    height: 85px;
    padding: 5px 5px;
    border-radius: 5px;
    white-space: normal; /* 允許換行 */
    word-break: break-word; /* 遇長字斷行 */
    font-size: 1.0625rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 12px 0px 12px 0px;
}

@media (hover: hover) {
    .btn-white.rectangle:hover {
        background-color: #68442b;
        color: #fff;
        border: 1px solid #68442b;
    }
}

.btn-check:checked + .btn-white.rectangle, .btn-check:active + .btn-white.rectangle, .btn-white.rectangle:active, .btn-white.rectangle.active {
    background-color: #68442b !important;
    color: white;
}

.btn-trans {
    border-radius: 8px;
    background-color: none;
    color: #68442b;
    padding: 5px 20px;
    margin-right: 8px;
    border: 1px solid #68442b;
    white-space: nowrap;
}

@media (hover: hover) {
    .btn-trans:hover {
        background-color: #68442b !important;
        color: #fff !important;
        border: 1px solid #68442b !important;
    }
}

.btn-check:checked + .btn-trans, .btn-check:active + .btn-trans, .btn-trans:active, .btn-trans.active {
    background-color: #68442b !important;
    color: white;
    border: 1px solid #68442b !important;
}

.btn-brown {
    height: 40px;
    width: 160px;
    background-color: #68442b;
    color: #FFF;
    border-radius: 8px;
    /*    padding: 3px 20px;*/
    /*    margin: 8px;*/
    white-space: nowrap;
    font-weight: bold;
}

@media (hover: hover) {
    .btn-brown:hover {
        background-color: #c7702d;
        color: #FFF;
    }
}

.btn-icon {
    color: #68442b;
    background-color: #FFFFFF;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    padding: 0;
    border: 1px solid #68442b !important;
}

    .btn-icon img {
        width: 25px;
        height: 25px;
        object-fit: contain;
        transition: filter 0.3s ease;
    }

@media (hover: hover) {
    .btn-icon:hover {
        background-color: #68442b;
        color: #FFFFFF;
        border: 1px solid #68442b !important;
    }

        .btn-icon:hover img {
            filter: brightness(0) invert(1); /* 圖示變白效果 */
        }
}

.btn-check:checked + .btn-icon, .btn-check:active + .btn-icon, .btn-icon:active, .btn-icon.active {
    background-color: #68442b !important;
    color: white;
    border: 1px solid #68442b !important;
}

.btn-lightbrown {
    max-height: 32px;
    min-width: 60px;
    background-color: #9E6146;
    color: #fff;
    border-radius: 8px;
    padding: 3px 18px;
    margin: 8px;
    white-space: nowrap;
}

@media (hover: hover) {
    .btn-lightbrown:hover {
        background-color: #68442b;
        color: #FFF;
    }
}

.btn-lightorange {
    height: 40px;
    width: 160px;
    background-color: #c7702d;
    color: #FFF;
    border-radius: 8px;
    padding: 3px 20px;
    margin: 8px;
    white-space: nowrap;
    font-weight: bold;
}

@media (hover: hover) {
    .btn-lightorange:hover {
        background-color: #68442b;
        color: #FFF;
    }
}

.btn-lightorange2 {
    height: 40px;
    min-width: 140px;
    background-color: #DC9D6D;
    color: #FFF;
    border-radius: 10px;
    padding: 7px 24px;
    margin: 8px;
    border: 1px solid #000;
    white-space: nowrap;
}

@media (hover: hover) {
    .btn-lightorange2:hover {
        background-color: #68442b;
        color: #FFF;
    }
}

.btn-play {
    position: absolute;
    right: 24%;
    top: 27%;
    z-index: 1;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: none; /* 取消原本麵包屑的箭頭 */
}

.cloud1, .cloud2 {
    position: absolute; /* 讓圖片絕對定位於輪播圖上 */
    z-index: 999; /* 使圖片層級高於輪播圖 */
    object-fit: contain;
}

.cloud1 {
    width: 22% !important;
    height: 22% !important;
    right: -7% !important;
    top: 20% !important;
}

.cloud2 {
    width: 22% !important;
    height: 22% !important;
    left: 0% !important;
    top: -10% !important;
}

.tophomepage {
    width: clamp(100%, calc(100% + 10vw), 120%);
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.bg-box {
    padding: 0;
    position: relative;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-content: center;
    margin-top: -21%;
    z-index: 1;
    /*    overflow-x: hidden;*/
}

.cloud {
    padding: 0;
    position: absolute;
    pointer-events: none;
}

    .cloud.cloud1 {
        width: 17%;
        height: 30%;
        right: -8%;
        bottom: 32%;
    }

    .cloud.cloud2 {
        width: 17%;
        height: 30%;
        left: -3%;
        top: -12%;
    }

    .cloud.cloud3 {
        max-width: 300px;
        max-height: 300px;
        right: 2%;
        top: 4%;
    }

    .cloud.cloud4 {
        max-width: 300px;
        max-height: 300px;
        right: -15%;
        top: 25%;
    }

    .cloud.cloud5 {
        max-width: 300px;
        max-height: 300px;
        left: 0%;
        bottom: 20%;
    }

    .cloud.cloud6 {
        max-width: 300px;
        max-height: 300px;
        right: 1%;
        bottom: 10%;
    }

.carousel-wrapper {
    position: relative;
    overflow: visible; /* 讓超出內容可見 */
    z-index: 0;
}

.full-width-carousel {
    position: relative;
    z-index: 0; /* 使圖片層級高於輪播圖 */
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    left: 50%;
    right: 50%;
    padding: 10px 70px 6px 70px;
}

.box {
    position: absolute;
    bottom: 0px;
    left: calc((92vw - 100%) / -2);
    width: 92vw; /* 完整螢幕寬度 */
    height: 100%;
    background: white;
    z-index: 0;
    border: 1px solid;
    border-radius: 20px;
    pointer-events: none;
    /*    min-height: 670px;*/
}

.box-content {
    overflow: hidden;
    transform: translateY(0);
    width: 91vw;
    margin-left: calc((91vw - 100%) / -2);
    margin-right: calc((91vw - 100%) / -2);
    position: relative;
    z-index: 1;
    aspect-ratio: 21 / 9;
    max-height: 650px;
    border-radius: 20px;
    display: flex;
    justify-content: center; /* 水平置中 */
    align-items: center;
}

    /* 圖片自己維持 100%，會填滿 .box-content */
    .box-content img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
        aspect-ratio: 21 / 9;
    }

/* Banner 輪播圖箭頭 */
#main-carousel .splide__arrow {
    background-color: #FFF !important;
    border: none;
    width: 40px !important;
    height: 40px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem !important;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10 !important;
    border-radius: 0 !important;
}

/* 左邊的上一頁按鈕 */
.full-width-carousel .splide__arrow--prev {
    left: 8% !important; /* 往內調整 */
}

/* 右邊的下一頁按鈕 */
.full-width-carousel .splide__arrow--next {
    right: 8% !important; /* 往內調整 */
}

.homepage {
    width: 100vw;
    height: 100%; /* 限制高度為父容器高度 */
    margin-left: -50vw;
    margin-right: -50vw;
    left: 50%;
    right: 50%;
    padding: 0;
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.news-nav {
    border: 1px solid;
    border-radius: 50px;
    background-color: #fff;
    min-height: 50px;
    margin-top: 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1272px;
    padding: 0.5rem 1rem;
}

    .news-nav .date-title-wrap {
        flex-direction: row !important;
        flex-wrap: nowrap;
        width: 100%;
        min-width: 0; /* 關鍵：讓子元素可縮 */
        gap: 0.5rem;
    }

.truncate-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.line {
    border-top: 1px solid #C3AD9C;
}

.news-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
}

@media (hover: hover) {
    .news-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 陰影效果 */
        background-color: #f9f7f5; /* 淡米色背景 */
    }
}

/* 最新消息圖片限制 */
.news-img-limit {
    min-height: 250px;
}

    .news-img-limit img {
        object-fit: contain;
        /*        min-height: 250px;*/
    }

.news-img-limit-event {
    min-height: 350px;
}

    .news-img-limit-event img {
        object-fit: contain;
        /*        min-height: 250px;*/
    }

#newsmobileSplide .btn-circle.kohpa {
    border: none;
    position: absolute;
    transform: translateY(-50%);
    z-index: 10 !important; /* 確保按鈕顯示在圖片上層 */
}

/* 左邊的上一頁按鈕 */
.newsmobileSplide .newsmobileSplide-prev {
    left: -4% !important; /* 往內調整 */
    top: 50% !important; /* 往內調整 */
}

/* 右邊的下一頁按鈕 */
.newsmobileSplide .newsmobileSplide-next {
    right: -4% !important; /* 往內調整 */
    top: 50% !important; /* 往內調整 */
}

.card-label {
    background-color: #c7702d;
    color: #fff !important;
    padding: 5px 10px 5px 10px;
    border-radius: 0px 5px 0px 5px;
    display: inline-block !important;
}

    .card-label.col {
        flex: 0 0 auto;
        width: auto;
    }

/* 館舍及園區 */
.domain-wrapper {
    position: relative;
    /*    overflow: hidden;*/
}

.float-card-wrapper {
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    left: 50%;
    right: 50%;
    position: relative;
    min-height: 1200px;
    /*    overflow: hidden;*/
}

.float-card {
    position: absolute;
    /*    animation: moveLeft 80s linear infinite;*/
    /*    transition: left 0.01s linear;*/
    width: 50%;
    background-color: transparent;
    border: none;
    z-index: 0;
}

    .float-card img {
        position: relative;
        bottom: -70px;
        left: 70px;
        width: 450px;
        height: 275px;
        border: 1px solid;
        border-radius: 15px 15px 15px 15px;
        z-index: -1;
        object-fit: cover;
    }

    .float-card .card-box {
        width: 200px;
        border: 1px solid;
        border-bottom: none;
        border-radius: 10px 10px 0px 0px;
        background-color: rgb(143, 202, 195);
        display: flex;
        align-items: center;
        padding: 5px 8px;
    }

        .float-card .card-box.orange {
            background-color: #DC9D6D;
        }

.card-box-text {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.float-card .card-body {
    width: 70%;
    height: 30%;
    background-color: white;
    border: 1px solid;
    border-radius: 0px 15px 15px 15px;
    padding: 25px;
}

.float-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.domain-title {
    padding: 0;
    position: absolute;
    pointer-events: none;
    /*    max-width: 249px;
    max-height: 60px;*/
    right: 16%;
    top: 20%;
    z-index: 1;
}

.domain {
    position: absolute;
    right: 28%;
    top: 27%;
    z-index: 1;
}

.float {
    z-index: 2 !important;
}

/* 手機板館舍及園區底圖 */
.homepage2 {
    width: 100vw;
    height: 100%;
    margin-left: -50vw;
    margin-right: -50vw;
    left: 50%;
    right: 50%;
    top: 0px;
    padding: 0;
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.mobileSplide .splide__slide {
    display: flex;
    justify-content: center;
}

.mfloat-card {
    position: relative;
    width: 325px;
    background-color: transparent;
    border: none;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .mfloat-card img {
        position: relative;
        bottom: -15%;
        left: 8%;
        width: 80%;
        border: 1px solid;
        border-radius: 15px 15px 15px 15px;
        z-index: -1;
        object-fit: cover;
        aspect-ratio: 5/3;
    }

    .mfloat-card .card-box {
        width: 60%;
        /*        height: 30px;*/
        border: 1px solid;
        border-bottom: none;
        border-radius: 10px 10px 0px 0px;
        background-color: rgb(143, 202, 195);
        position: relative;
        left: -18%;
        padding: 5px 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mfloat-card.mobile.card-box.orange {
        background-color: #DC9D6D;
    }

    .mfloat-card .card-body {
        width: 90%;
        background-color: white;
        border: 1px solid;
        border-radius: 0px 10px 10px 10px;
        padding: 10px;
        position: relative;
        left: -3%;
    }

    .mfloat-card .card-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

#mobileSplide .btn-circle.kohpa {
    border: none;
    position: absolute;
    transform: translateY(-50%);
    z-index: 10 !important; /* 確保按鈕顯示在圖片上層 */
}

/* 左邊的上一頁按鈕 */
.mobileSplide .mobileSplide-prev {
    left: -4% !important; /* 往內調整 */
    top: 60% !important; /* 往內調整 */
}

/* 右邊的下一頁按鈕 */
.mobileSplide .mobileSplide-next {
    right: -4% !important; /* 往內調整 */
    top: 60% !important; /* 往內調整 */
}

/* 白色按鈕標題 */
.theme-box {
    background-color: #fff;
    border: 1px solid;
    border-radius: 20px;
    padding: 5px 20px;
    display: inline-block;
    color: #68442b;
    margin-top: 20px;
}

/* 高雄老屋 */
.icon-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .icon-link:hover .vector-icon {
        background-image: url('../images/vector2.png');
    }

.vector-icon {
    width: 20px;
    height: 20px;
    background-image: url('../images/vector1.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: background-image 0.1s ease;
}


.kohpa-img {
    width: 500px !important;
    height: 70px !important;
}

.kohpa-polygon-wrapper {
    position: relative;
    width: 400px;
    height: 300px;
    margin: auto;
}

.kohpa-underlay-img {
    clip-path: polygon(50% 0, 34% 0, 100% 25%, 100% 80%, 0 80%, 0 22%);
    -webkit-clip-path: polygon(43% 0, 42% 0, 90% 25%, 90% 80%, 10% 80%, 10% 22%);
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.kohpa-underlay {
    position: absolute;
    top: -3%;
    left: 5%;
    width: 80%;
    height: 75%;
    z-index: 1;
}

.mokohpa-polygon-wrapper {
    position: relative;
    width: 400px;
    height: 300px;
    /*    margin: auto;*/
    margin-top: 20px;
}

.mokohpa-underlay-img {
    -webkit-clip-path: polygon(43% 10%, 43% 10%, 90% 35%, 90% 90%, 10% 90%, 10% 35%);
    -webkit-clip-path: polygon(43% 10%, 43% 10%, 90% 35%, 90% 90%, 12% 90%, 12% 35%);
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.mokohpa-underlay {
    position: absolute;
    top: 5%;
    left: 7%;
    width: 80%;
    height: 75%;
    z-index: 1;
}

#mocustom-splide .btn-circle.kohpa {
    border: none;
    position: absolute;
    transform: translateY(-50%);
    z-index: 10 !important; /* 確保按鈕顯示在圖片上層 */
}

/* 左邊的上一頁按鈕 */
.mocustom-splide .mosplide-prev {
    left: -4% !important; /* 往內調整 */
    top: 60% !important; /* 往內調整 */
}

/* 右邊的下一頁按鈕 */
.mocustom-splide .mosplide-next {
    right: -4% !important; /* 往內調整 */
    top: 60% !important; /* 往內調整 */
}

.btn-circle.kohpa,
.btn-circle.kohpa:focus,
.btn-circle.kohpa:active,
.btn-circle.kohpa:hover,
.btn-circle.kohpa:visited {
    background-color: #68442b;
    color: #fff;
    border: none;
    box-shadow: none;
    outline: none;
}


.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* 不超過父容器 */
}

.line-clamp-2 { /* 2 行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 顯示三行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 文資檢索 */
.caq-title {
    font-size: 1.75rem;
}

/* 其他頁面 */
.gov-img,
.sitemap-img,
.aboutus-img {
    max-width: 648px;
    max-height: 49px;
}

.lightorange-label {
    background-color: #DC9D6D;
    color: #000;
    border-radius: 8px;
    padding: 5px;
    margin: 8px;
    border: 1px solid;
    white-space: nowrap;
}

/* 淺藍色卡片 */
.blue-card {
    border-radius: 8px;
    z-index: 2;
    position: relative;
    logo-brand box-sizing: border-box;
    /*    min-height: 500px !important;*/
}

    .blue-card.big.news {
        width: 100%;
        background-color: #FFFCF4;
    }

    .blue-card.little {
        width: 90%;
        background-color: transparent;
        border: none;
        padding-bottom: 1rem;
        min-height: auto !important;
    }

        .blue-card.little img {
            width: 432px;
            height: 152px;
            object-fit: contain;
        }

    .blue-card.archshow {
        width: 90%;
        background-color: transparent;
        border: none;
        min-height: auto !important;
    }

        .blue-card.archshow img {
            width: 432px;
            height: 152px;
            object-fit: cover;
        }

    .blue-card.themearea {
        width: 80%;
        background-color: transparent;
        border: none;
        min-height: auto !important;
    }

        .blue-card.themearea img {
            object-fit: cover;
        }

    .blue-card.big {
        width: 100%;
        background-color: #FFF;
        border: 1px solid;
    }

/* 圖片底層紙張（只在圖片下方） */
.blucard-underlay {
    position: absolute;
    top: 12px; /* 往下移 */
    right: 12px; /* 往右移 */
    width: 100%;
    height: 100%;
    background-color: #CDE8F9;
    border-radius: 8px;
    border: 1px solid;
    z-index: 1;
}

    .blucard-underlay.big {
        background-color: #8fcac3;
    }

    .blucard-underlay.blue {
        background-color: #CDE8F9;
    }

    .blucard-underlay.orange {
        background-color: #DC9D6D;
    }

.img-wrapper img {
    position: relative;
    z-index: 2;
    border-radius: 8px;
    border: 1px solid;
}

.news-img {
    max-width: 243px;
    max-height: 40px;
}

.btn-group-wrap .btn {
    width: auto;
    min-width: 100px;
    text-align: center;
}

.slide-leave-active {
    transition: all 0.5s ease;
}

.slide-leave-to {
    transform: translateX(-30px); /* 往左滑出 */
    opacity: 0;
}

.slide-enter-from {
    transform: translateX(30px);
    opacity: 0;
}

.slide-enter-active {
    transition: all 0.5s ease;
}

.slide-enter-to {
    transform: translateX(0);
    opacity: 1;
}
/*分頁*/
.custom-pagination .page-item {
    margin: 0 5px; /* 每個按鈕間隔 */
    display: flex;
    align-items: center;
}

.custom-pagination .page-link {
    border-radius: 50px !important; /* 四邊都圓角 */
    margin: 0px 0px;
    padding: 3px 11px;
    color: #68442b;
    border: 1px solid #68442b;
    transition: all 0.2s ease-in-out;
}

    .custom-pagination .page-link.twoside {
        padding: 3px 20px;
    }

.custom-pagination .page-item.active .page-link {
    background-color: #68442b;
    color: #fff;
    border-color: #68442b;
}

.custom-pagination .page-link:hover {
    background-color: #c3ad9c;
    color: #fff;
}

.pagegroup {
    padding-top: 5%;
}

.cloud.cloud_N1 {
    width: 260px;
    height: 240px;
    right: -200px;
    top: 200px;
}

.cloud.cloud_N2 {
    width: 260px;
    height: 240px;
    left: -250px;
    bottom: 0;
}

.input-box {
    background-color: #DDD7C5;
    margin-top: 45px;
    padding: 20px;
    border: 1px solid #c7702d;
    border-radius: 8px;
}

.search-label {
    position: absolute;
    top: -20px;
    background-color: #68442b;
    color: #fff !important;
    width: 120px;
    padding: 3px 20px;
    border-radius: 8px;
    text-align: center;
}

.tab-font-size-1 {
    font-size: 1rem !important;
}

.tab-font-size-1_125 {
    font-size: 1.125rem !important;
}

.tab-font-size-1_25 {
    font-size: 1.25rem !important;
}

.pdf-icon,
.doc-icon,
.xls-icon,
.file-icon {
    width: 20px;
    height: 20px;
}

.page_icon {
    width: 25px;
    height: 25px;
    filter: invert(27%) sepia(10%) saturate(2329%) hue-rotate(342deg) brightness(97%) contrast(91%);
}

.holtwood-one-sc-regular {
    font-size: 2.5rem;
    font-family: "Holtwood One SC", serif !important;
    font-weight: 400;
    color: #68442B;
    font-style: normal;
}

.holtwood-one-sc-regular-lg {
    font-size: 3.5rem;
    font-family: "Holtwood One SC", serif !important;
    font-weight: 400;
    color: #68442B;
    font-style: normal;
}

.title-box {
    width: auto;
    margin-top: 1rem;
}

.kohpa-title {
    font-size: 2.5rem;
    line-height: 2.5rem;
}

.caqq-title {
    font-size: 2.5rem
}

.topNav-row {
    display: flex;
    justify-content: center; /* 水平置中 */
    align-items: center; /* 垂直置中 */
    gap: 1.5rem; /* 控制連結間距 */
}

    .topNav-row a {
        font-size: .875rem;
        color: #858176;
        text-decoration: none;
        display: flex;
        align-items: center; /* 文字垂直置中 */
    }

        .topNav-row a:not(:last-child)::after {
            content: "|";
            margin-left: 1.5rem; /* 與文字的距離 */
            color: #858176;
            display: inline-flex;
            align-items: center; /* 垂直置中 */
        }

.navbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* 不換行 */
    width: 100%;
    padding: 0;
    margin: 0;
}

    .navbar-nav > li {
        display: flex;
        align-items: center;
        flex: 1 1 auto; /* 平均分布且可縮小 */
        justify-content: center; /* li 內文字置中 */
        white-space: nowrap; /* 文字不換行 */
    }

    .navbar-nav .nav-link {
        color: #858176;
    }

        .navbar-nav .nav-link:hover {
            color: #a3a18f;
        }

.separator {
    margin: 0 0.25rem; /* 控制 | 的左右間距 */
    color: #6c757d;
    flex: 0 0 auto; /* 不讓 separator 拉伸 */
}

.rounded-frame {
    display: flex;
    width: 100%;
    border: 0.5px solid #000;
    border-radius: 50px;
    padding: 5px 20px;
    background-color: #fff;
    flex-wrap: nowrap; /* 不換行 */
}

.header-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.navbar-border-bottom {
    position: relative;
    /*    justify-content: center;*/
    padding-bottom: 20px; /* 讓底部有空間放線 */
}

    .navbar-border-bottom::after {
        content: "";
        position: absolute;
        bottom: -15px; /* 線放在 navbar 底部 */
        left: 50%; /* 從中間開始 */
        transform: translateX(-50%); /* 水平置中 */
        width: 95%; /* 線的長度 */
        height: 1px; /* 線的高度 */
        background-color: #C3AD9C; /* 線的顏色 */
        border-radius: 1px; /* 線邊緣圓角 */
    }

/* 外層 mobile menu */
.mobile-navbar-nav {
    background-color: #C3AD9C;
    list-style: none;
    padding: 10px 20px;
}

    /* 外層連結 */
    .mobile-navbar-nav .nav-link {
        padding: 8px 0px;
        color: #FFF;
    }

        .mobile-navbar-nav .nav-link:hover {
            color: #EFC33D;
        }

    /* 內層 collapse ul / li */
    .mobile-navbar-nav ul {
        list-style: none; /* 移除小點 */
        padding-left: 1rem; /* 視需求縮排 */
        margin: 0;
    }

        .mobile-navbar-nav ul li a {
            color: #FFF; /* 白色字 */
            text-decoration: none;
            display: block;
            margin: 6px 0px;
        }

            .mobile-navbar-nav ul li a:hover {
                color: #EFC33D; /* hover 黃色 */
            }

/* 策展模板字體大小控制 */
.b-text p.font-size-small,
.trip-description.font-size-small,
.ta-float-container p.font-size-small,
.info-line.font-size-small,
.ta-date.font-size-small {
    font-size: 0.875rem !important;
}

.b-text p.font-size-medium,
.trip-description.font-size-medium,
.ta-float-container p.font-size-medium,
.info-line.font-size-medium,
.ta-date.font-size-medium {
    font-size: 1rem !important;
}

.b-text p.font-size-large,
.trip-description.font-size-large,
.ta-float-container p.font-size-large,
.info-line.font-size-large,
.ta-date.font-size-large {
    font-size: 1.125rem !important;
}

/* Cover H1 */
.title-bg .ta-title.ta-title-small {
    font-size: 1.625rem !important;
}

.title-bg .ta-title.ta-title-medium {
    font-size: 1.75rem !important;
}

.title-bg .ta-title.ta-title-large {
    font-size: 1.875rem !important;
}



/* h3 標題 */
.ta-float-container h3.ta-h3-small {
    font-size: 1rem !important;
}

.ta-float-container h3.ta-h3-medium {
    font-size: 1.125rem !important;
}

.ta-float-container h3.ta-h3-large {
    font-size: 1.25rem !important;
}

/* 內文介紹 span */
.ta-introduce.ta-introduce-small {
    font-size: 0.875rem !important;
}

.ta-introduce.ta-introduce-medium {
    font-size: 1rem !important;
}

.ta-introduce.ta-introduce-large {
    font-size: 1.125rem !important;
}

.map-embed iframe {
    width: 100% !important;
    height: 300px !important;
    border: 0 !important;
}

/* 策展模版圖片hover */
#previewRoot img {
    transition: transform 0.3s ease !important;
}

    #previewRoot img:hover {
        transform: scale(1.03) !important;
    }

.apexcharts-ycrosshairs {
    stroke-width: 0 !important;
}

.position-relative.mt-2.mb-3 {
    width: 1200px;
    max-width: 100%; /* 加入這行 */
}

.card a {
    word-break: break-all;
    overflow-wrap: break-word;
}

.editor-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

    .editor-table td {
        border: 1px solid #ddd;
        padding: 8px;
    }

.editor-image img {
    max-width: 100%;
    display: block;
    margin: 10px auto;
}