/* 重置基本樣式並設置全屏顯示 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* 防止水平滾動 */
    scroll-behavior: smooth; /* 添加平滑滾動效果 */
    background-color: #fff;
    color: #333;
}

/* 背景圖片容器樣式 */
.bg-image {
    position: fixed; /* 固定定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* 置於最底層 */
}

/* 背景圖片樣式 */
.bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保圖片填滿容器且不變形 */
    object-position: center; /* 圖片居中顯示 */
}

/* 遮罩層樣式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(51, 37, 37, 0.3); /* 灰色遮罩，透明度 0.3 */
    z-index: -1; /* 置於背景圖片之上 */
}

/* 統一基本導覽列樣式 */
.nav-bar {
    position: fixed;
    top: 50px;
    right: 40px;
    z-index: 100;
    display: flex;
    justify-content: center;
    transition: opacity 0.5s ease;
}

/* 添加導覽列懸停區域 */
.nav-hover-area {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 150px;
    z-index: 99;
    pointer-events: none;
}

/* 當滑鼠懸停在懸停區域上時，確保導覽列顯示 */
.nav-hover-area:hover ~ .nav-bar,
.nav-bar:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 15px;
}

.nav-item a {
    font-family: 'Frank Ruhl Libre', serif;
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    padding: 10px;
    display: block;
    transition: all 0.5s ease;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1),
                4px 4px 8px rgba(0, 0, 0, 0.6),
                5px 5px 10px rgba(0, 0, 0, 0.4);
}

.nav-item > a {
    font-weight: 500;
}

.nav-item a:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

/* 下拉選單樣式 */
.dropdown {
    position: absolute;
    top: 90%;
    left: 0;
    transform: translateX(0);
    background-color: rgba(255, 255, 255, 0.5);
    width: auto;
    min-width: 0px;
    border-radius: 0;
    padding: 10px 0;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    z-index: 1000;
}

.dropdown li {
    padding: 0;
    margin: 0;
}

.dropdown li a {
    font-family: 'Frank Ruhl Libre', serif;
    padding: 8px 15px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: visible;
    text-align: left;
    color: #000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown li a:hover {
    background-color: rgb(88, 49, 25, 0.8);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-item:hover .dropdown {
    display: block;
}

/* Logo 樣式 */
.logo {
    position: fixed;
    top: 20px;
    left: 60px;
    z-index: 101;
    max-width: 200px;
    transition: opacity 0.5s ease;
}

.logo img {
    width: 180px;
    height: auto;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4))
            drop-shadow(-1px -1px 2px rgba(0, 0, 0, 0.3))
            drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.5));
}

/* Logo 懸停區域 */
.logo-hover-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 120px;
    z-index: 99;
    pointer-events: none;
}

.logo-hover-area:hover ~ .logo,
.logo:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 聯絡我們表單區域 */
.contact-content {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1200px;
    margin: 150px auto 100px;
    background-color: white;
    padding: 60px;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #333;
}

/* 聯絡區塊樣式 */
.contact-section {
    margin-bottom: 60px;
}

.contact-section h2 {
    font-size: 2.2rem;
    color: #8B5A2B;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8B5A2B;
}

.contact-info {
    padding: 0 15px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 地址區塊彈性布局 */
.location-flex {
    display: flex;
    gap: 30px;
}

.location-text {
    flex: 1;
}

.location-access-guide {
    flex: 1;
    max-width: 500px;
}

.location-access-guide h3 {
    font-size: 1.8rem;
    color: #8B5A2B;
    margin-bottom: 20px;
}

/* 輪播圖片和影片樣式 */
.access-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 400px;
}

.access-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.access-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.access-slide.active {
    opacity: 1;
    z-index: 2;
}

.access-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.access-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 輪播控制樣式 */
.access-slider-controls {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

/* 入口指南圖片樣式 */
.entrance-guide-image {
    margin-top: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.entrance-guide-image img {
    width: 100%;
    height: auto;
    display: block;
}

.access-slide-dots {
    display: flex;
    gap: 10px;
}

.access-slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.access-slide-dot.active {
    background-color: #fff;
}

/* 頁尾樣式 */
.static-footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    z-index: 10;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    margin: 3px 0;
    font-size: 0.85rem;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 5px;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 返回頂部按鈕樣式 */
#backToTopBtn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 0;
    font-size: 18px;
    width: 50px;
    height: 50px;
    display: none;
    transition: background-color 0.3s ease;
}

#backToTopBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 台灣網站按鈕樣式 */
.taiwan-site-container {
    position: fixed;
    bottom: 170px;
    right: 30px;
    z-index: 99;
}

#taiwanSiteBtn {
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 10px;
    border-radius: 0;
    width: 50px;
    height: 50px;
    display: block;
    transition: background-color 0.3s ease;
}

#taiwanSiteBtn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

#taiwanSiteBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 響應式設計 */
@media (max-width: 992px) {
    .location-flex {
        flex-direction: column;
    }
    
    .location-text,
    .location-access-guide {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .access-slider {
        height: 350px;
    }
}

@media (max-width: 768px) {
    /* 顯示行動版選單按鈕 */
    .mobile-menu-toggle {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 1001 !important;
        width: 30px !important;
        height: 24px !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        cursor: pointer !important;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #fff !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg) !important;
    }
    
    /* 調整導覽列樣式 - 完全按照首頁樣式 */
    .nav-bar,
    .contact-us-page .nav-bar {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 60px;
        overflow-x: hidden;
    }
    
    .nav-bar.active,
    .contact-us-page .nav-bar.active {
        right: 0;
    }
    
    /* 停用懸停區域在行動版 */
    .nav-hover-area {
        display: none !important;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 5px 0;
        width: 100%;
    }
    
    .nav-item a {
        text-align: left;
        padding: 12px 20px;
        font-size: 1.2rem;
        font-family: 'Frank Ruhl Libre', serif;
        color: #fff;
        text-decoration: none;
        display: block;
        transition: all 0.5s ease;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1),
                    4px 4px 8px rgba(0, 0, 0, 0.6),
                    5px 5px 10px rgba(0, 0, 0, 0.4);
    }
    
    .nav-item a:hover {
        color: rgba(255, 255, 255, 0.7);
        transform: translateY(-3px);
    }
    
    /* 下拉選單樣式調整 - 完全按照首頁樣式 */
    .dropdown {
        position: static;
        width: 100%;
        background-color: rgba(50, 50, 50, 0.8);
        box-shadow: none;
        padding: 0;
    }
    
    .dropdown li a {
        padding: 10px 40px;
        font-size: 1rem;
        font-family: 'Frank Ruhl Libre', serif;
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .dropdown li a:hover {
        background-color: rgb(88, 49, 25, 0.8);
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    /* 點擊觸發下拉選單 */
    .nav-item:hover .dropdown {
        display: none;
    }
    
    .nav-item.active .dropdown {
        display: block;
    }
    
    /* 調整聯絡內容區域 */
    .contact-content {
        width: 90%;
        padding: 40px 30px;
        margin-top: 100px;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    /* 調整地圖容器 */
    .map-container {
        height: 300px;
    }
    
    .map-container iframe {
        height: 100%;
    }
    
    /* 調整輪播區域 */
    .access-slider {
        height: 300px;
    }
    
    /* Logo 位置調整 */
    .logo {
        left: 20px;
        top: 10px;
    }
    
    .logo img {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: 40px 20px;
        margin: 120px auto 80px;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .access-slider {
        height: 300px;
    }
    
    .logo img {
        width: 120px;
    }
    
    .nav-item a {
        font-size: 1rem;
    }
    
    /* 小螢幕按鈕尺寸調整 */
    #taiwanSiteBtn, #bookingBtn {
        width: 45px;
        height: 45px;
        padding: 8px;
    }
    
    #taiwanSiteBtn img, #bookingBtn img {
        width: 28px;
        height: 28px;
    }
    
    #backToTopBtn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .booking-option {
        font-size: 20px;
    }
    
    .booking-container:hover .booking-popup {
        width: 120px;
    }
}

/* 預約按鈕樣式 */
#bookingBtn {
    position: fixed;
    bottom: 170px; /* 位置在返回頂部按鈕上方，從160px上移至165px */
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 10px;
    border-radius: 0;
    width: 50px;
    height: 50px;
    display: block; /* 常亮顯示 */
    transition: background-color 0.3s ease;
}

#bookingBtn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

#bookingBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 預約按鈕容器 */
.booking-container {
    position: fixed;
    bottom: 170px;
    right: 30px;
    z-index: 99;
    display: flex;
    align-items: center;
}

/* 預約彈出選項 */
.booking-popup {
    position: absolute;
    right: 60px; /* 位於按鈕左側 */
    top: -50px; /* 確保與按鈕上緣對齊 */
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center; /* 垂直居中 */
    height: 50px; /* 與按鈕同高 */
    overflow: hidden;
    width: 0;
}

.booking-container:hover .booking-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    width: 150px; /* 稍微減小寬度 */
}

.booking-option {
    font-family: 'Dancing Script', cursive;
    color: white;
    text-decoration: none;
    padding: 0 20px;
    white-space: nowrap;
    font-size: 24px; /* 增加字體大小 */
    transition: background-color 0.3s ease;
    text-align: center;
    height: 100%; /* 填滿高度 */
    line-height: 50px; /* 垂直居中文字 */
    width: 100%;
}

.booking-option:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 行動版選單按鈕基本樣式 - 預設隱藏 */
.mobile-menu-toggle {
    display: none;
}

/* 手機版按鈕位置調整 */
.booking-container {
    bottom: 210px;
    right: 15px;
}

#bookingBtn {
    bottom: 210px;
    right: 15px;
}

.taiwan-site-container {
    bottom: 140px;
    right: 15px;
}

#backToTopBtn {
    bottom: 70px;
    right: 15px;
}
