/* --- 
選單
滿版背景動畫
內容區框架
內容區文字
內容區tabs
回到上方
響應式
AOS
Swiper
--- */




/* --- 選單 --- */
.lijing-sidebar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4rem 0rem;
    z-index: 1001;
}

.nav-link-custom {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 100;
    font-size: 1.4rem;
    color: #aaaaaa;
    text-decoration: none;
    margin: 0.5rem 0;
    display: block;
    text-align: center;
    position: relative;
    transition: 0.4s;
    padding-bottom: 3px;
    letter-spacing: 0.1em;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #999999;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 50%;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: #333333;
}

.logo01 {
    max-width: 150px;
}

.logo02 {
    max-width: 120px;
}

.logo03 {
    max-width: 300px;
}

.footer01 {
    max-width: 150px;
}

.footer02 {
    max-width: 150px;
    position: absolute;
    bottom: 50px;
    left: 35%;
}

.footer03 {
    max-width: 150px;
}

.footer04 {
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding: 10px 20px 20px 40px;
    font-size: 0.8em;
    color: #693905;
}

.offcanvas {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px) !important;
}

/* --- 滿版背景動畫 --- */

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: background-image 0.8s ease-in-out;
    animation: kenburns 20s infinite alternate;
}

@keyframes kenburns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

/* --- 內容區框架 --- */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: left;
    padding: 0;
    background: transparent;
}

.main-container-top {
    margin: 0 auto;
    width: 80%;
    padding: 50px 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: left;
}

/*---------------- 內容區文字 ----------------*/

p {
    margin: 0 !important;
}

.title {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    color: #333;
    text-decoration: none;
    text-shadow: 0 0 5px #693905;
}

.min-1 {
    font-family: 'Noto Serif TC', serif;
    font-size: 2.2em;
    font-weight: 600;
}

.min-2 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.2em;
    font-weight: 100;
    line-height: 1.6em;
    letter-spacing: 0.1em;
}

.min-3 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.7em;
    font-weight: 600;
}

.min-4 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.5em;
    font-weight: 400;
}

.min-5 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.1em;
    font-weight: 100;
    line-height: 1.8em;
}

.min-6 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.6em;
    font-weight: 100;
    color: #666;
}

.min-7 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.8em;
    font-weight: 300;
}

.min-8 {
    font-size: 1.1em;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.8);
}

.min-9 {
    font-size: 1em;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.5);
    line-height: 2em;
}

a:link.one {
    color: #693905;
    text-decoration: none;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
}

a:visited.one {
    color: #693905;
    text-decoration: none;
}

a:hover.one {
    color: #333;
    text-decoration: none;
}

a:link.two {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
}

a:visited.two {
    color: #fff;
    text-decoration: none;
}

a:hover.two {
    color: #693905;
    text-decoration: none;
}

a:link.three {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
}

a:visited.three {
    color: #aaa;
    text-decoration: none;
}

a:hover.three {
    color: #693905;
    text-decoration: none;
}

a:link.four {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
}

a:visited.four {
    color: #fff;
    text-decoration: none;
}

a:hover.four {
    color: #f4d0a9;
    text-decoration: none;
}

/* --- 內容區tabs --- */

.nav-tabs-custom {
    border: none;
    gap: 50px;
    margin-bottom: 0;
}

.nav-tabs-custom .nav-link {
    border: none;
    background: none !important;
    color: rgba(116, 92, 79, 0.4);
    padding: 0 0 10px 0;
    font-size: 1.8rem;
    transition: all 0.4s ease;
    font-family: 'Noto Serif TC', serif;
    position: relative;
    font-weight: 600;
}

.nav-tabs-custom .nav-link:hover {
    color: #745c4f;
    font-weight: 600;
}

.nav-tabs-custom .nav-link.active {
    color: #745c4f !important;
    font-weight: 600;
}

.nav-tabs-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #333333;
}

.glass-card {
    background: rgba(183, 153, 117, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-bottom: 6rem;
    color: #ffffff;
    width: 100%;
    transition: transform 0.4s ease;
}

/* --- 回到上方 --- */
#backToTop {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 1);
    font-size: 1.2em;
    color: #745c4f;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #745c4f;
    color: #fff;
    transform: translateY(-5px);
}

/* --- 響應式 --- */

@media (min-width: 992px) {

    .lijing-sidebar {
        width: 300px;
        position: fixed;
        height: 100vh;
        justify-content: space-between;
        display: flex;
        flex-direction: column;
    }

    main {
        margin-left: 300px;
        width: calc(100% - 300px);
    }
}

@media (max-width: 991px) {

    .navbar-mobile {
        position: fixed;
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        z-index: 1050;
        padding: 15px 10px 15px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-mobile button i {
        color: #333333;
    }

    .main-container-top {
        width: 100%;
        margin-top: 120px;
        padding: 0 15px 50px 15px;
    }

    .nav-tabs-custom {
        gap: 25px;
    }
}

/* --- AOS --- */

.blurhere {
    filter: blur(20px);
    opacity: 0;
    transform: translateX(0);
}

.blurLtoR {
    filter: blur(20px);
    opacity: 0;
    transform: translateX(-100px);
}

.blurRtoL {
    filter: blur(20px);
    opacity: 0;
    transform: translateX(100px);
}

.blurUtoD {
    filter: blur(20px);
    opacity: 0;
    transform: translatey(-100px);
}

.blurDtoU {
    filter: blur(20px);
    opacity: 0;
    transform: translate(0, 100px);
}

.blurIn {
    filter: blur(20px);
    opacity: 0;
    transform: scale(0.6);
}

.blurOut {
    filter: blur(20px);
    opacity: 0;
    transform: scale(1.5);
}

/* 當 AOS 啟動 (進入畫面) 時，自動加上 .aos-animate */
[data-aos="blur"].aos-animate {
    filter: blur(0);
    opacity: 1;
    transform: translate(0);
}

.zoomOut {
    opacity: 0;
    transform: scale(2.5);
}

.zoomIn {
    opacity: 0;
    transform: scale(0.3);
}

/* 當 AOS 啟動 (進入畫面) 時，自動加上 .aos-animate */
[data-aos="zoom"].aos-animate {
    opacity: 1;
    transform: translate(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Swiper --- */

.swiper-button-next,
.swiper-button-prev {
    color: #ffffff !important;
}

.swiper-pagination-bullet-active {
    background: #ffffff !important;
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* --- 分頁 --- */
.custom-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.custom-pagination {
    display: inline-flex;
    align-items: center;
    padding: 0 0;
    border-radius: 50px;
    /* 膠囊形狀 */
    list-style: none;
}

.page-num,
.page-ctrl {
    margin: 0 4px;
}

.page-num a,
.page-ctrl a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    text-decoration: none;
    color: #745c4f;
    /* 沿用您的主色 */
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.page-num:not(.active):not(.dots) a:hover {
    background-color: rgba(116, 92, 79, 0.2);
}

.page-num.active a {
    background: #745c4f;
    color: #ffffff;
}

.page-ctrl a {
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.page-num.dots span {
    display: block;
    width: 10px;
    text-align: center;
    color: #aaaaaa;
}

/* --- Form --- */
.input-group-custom {
    position: relative;
}

.form-control-minimal {
    border: none !important;
    border-bottom: 1px solid rgba(116, 92, 79, 0.5) !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    font-family: 'Noto Sans TC', sans-serif !important;
    font-size: 1.1rem !important;
    color: #333 !important;
    transition: all 0.4s ease;
}

.form-control-minimal::placeholder {
    color: #666;
    font-size: 0.95rem;
    font-weight: 300;
}

.line-effect {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: #745c4f;
    transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

.form-control-minimal:focus ~ .line-effect {
    width: 100%;
}

.custom-radio {
    cursor: pointer;
    position: relative;
    padding-left: 28px;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
}

.radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid #745c4f;
    border-radius: 50%;
}

.custom-radio input:checked + .radio-label::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #745c4f;
    border-radius: 50%;
}

.btn-primary-custom {
    background: #745c4f;
    color: #fff;
    border: none;
    padding: 12px 60px;
    letter-spacing: 0.3em;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: #333;
}

.social-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 50px;
    transition: 0.4s;
}

.line-brand {
    background-color: rgb(82, 190, 82);
    color: #fff;
}

.fb-brand {
    background-color: rgb(86, 151, 235);
    color: #fff;
}

.site-brand {
    background-color: rgb(92, 177, 123);
    color: #fff;
}

.map-brand {
    background-color: rgb(231, 139, 139);
    color: #fff;
}

.phone-brand {
    background-color: rgb(213, 169, 76);
    color: #fff;
}

.social-link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.invalid-feedback {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 100;
    font-size: 0.8em;
    color: #dc3545;
}

.was-validated .form-control-minimal:invalid {
    border-bottom: 1px solid rgba(220, 53, 69, 0.5) !important;
    background-image: none !important;
    /* 移除 BS5 預設驚嘆號圖示以維持簡潔 */
}

.was-validated .form-control-minimal:invalid ~ .line-effect {
    background-color: #dc3545;
    width: 100%;
}

.was-validated .custom-radio input:invalid + .radio-label::before {
    border-color: #dc3545;
}

.was-validated input[name="gender"]:invalid ~ #gender-feedback {
    display: block;
}

/* --- 進入頁面時淡入 --- */

.fade-in {
    animation: fadeIn ease 1.5s;
    -webkit-animation: fadeIn ease 1.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* --- 爭藏 家作 --- */

.caseframe {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 20px;
}

/* 1. 建立一個容器來限制圖片縮放範圍 */
.img-zoom-container {
    overflow: hidden;
    /* 隱藏超出邊框的部分 */
    display: block;
    /* 確保連結區域正確 */
    background: #fff;
    /* 防止縮放時露出背景底色 */
}

/* 2. 設定圖片初始狀態與轉場動畫 */
.img-zoom-container img {
    transition: transform 0.4s ease-in-out;
    /* 設定縮放速度與曲線 */
    display: block;
    width: 100%;
    height: auto;
}

/* 3. 滑鼠移入時的縮放倍率 */
.img-zoom-container:hover img {
    transform: scale(1.1);
    /* 放大 1.1 倍，可依喜好調整為 1.05 或 1.15 */
}
