/* 重置基本樣式並設置全屏顯示 */
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: 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;
}

.nav-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(139, 90, 43, 0.9) 0%, 
                rgba(160, 82, 45, 0.9) 25%, 
                rgba(101, 67, 33, 0.9) 100%);
    z-index: -1;
}

.nav-bar.active {
    right: 0;
}

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

.nav-item {
    position: relative;
    margin: 10px 0;
    width: 100%;
}

.nav-item a {
    font-family: 'Frank Ruhl Libre', serif;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 12px 20px;
    display: block;
    transition: all 0.5s ease;
    text-align: left;
    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: static;
    width: 100%;
    background-color: rgba(50, 50, 50, 0.8);
    box-shadow: none;
    padding: 0;
}

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

.dropdown li a {
    font-family: 'Frank Ruhl Libre', serif;
    padding: 10px 40px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: visible;
    text-align: left;
    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;
}

/* 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;
}

.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) {
    .contact-content {
        width: 90%;
        padding: 40px 30px;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .access-slider {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-content {
        width: 95%;
        padding: 30px 20px;
        margin-top: 80px;
    }
    
    .contact-section h2 {
        font-size: 1.5rem;
    }
    
    .access-slider {
        height: 250px;
    }
    
    .logo img {
        width: 120px;
    }
    
    .nav-item a {
        font-size: 1rem;
    }
    
    .submit-button {
        width: 100%;
    }
    
    /* 小螢幕按鈕尺寸調整 */
    #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;
    }
}

/* 行動版選單按鈕樣式 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@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;
    }
    
    .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;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .nav-bar::before {
        display: none;
    }
    
    .nav-bar.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-item a {
        text-align: left;
        padding: 12px 20px;
        font-size: 1.2rem;
        color: #fff;
    }
    
    /* 下拉選單樣式調整 */
    .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;
        color: #fff;
    }
    
    /* 點擊觸發下拉選單 */
    .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;
    }
    
    .access-slider {
        height: 300px;
    }
    
    /* Logo 位置調整 */
    .logo {
        left: 20px;
        top: 10px;
    }
    
    .logo img {
        width: 150px;
    }
    
    /* 表單樣式調整 */
    .form-group {
        flex-direction: column;
    }
    
    .form-group label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        width: 100%;
    }
}

/* 預約按鈕樣式 */
#bookingBtn {
    position: fixed;
    bottom: 240px; 
    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: 240px;
    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);
}

/* 表單樣式 */
.booking-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #666;
    width: 30%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 65%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #8B5A2B;
    outline: none;
    box-shadow: 0 0 5px rgba(139, 90, 43, 0.3);
}

.submit-button {
    background-color: #8B5A2B;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #6b4520;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 表單響應式設計 */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }
    
    .form-group label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        width: 100%;
    }
    
    .submit-button {
        width: 100%;
    }
    
    /* 手機版按鈕位置調整 */
    .booking-container {
        bottom: 210px;
        right: 15px;
    }
    
    #bookingBtn {
        bottom: 210px;
        right: 15px;
    }
    
    .taiwan-site-container {
        bottom: 140px;
        right: 15px;
    }
    
    #backToTopBtn {
        bottom: 70px;
        right: 15px;
    }
}

/* Booking page desktop nav should be transparent like other pages */
@media (min-width: 769px) {
    body.booking-page .nav-bar {
        position: fixed !important;
        top: 50px !important;
        right: 40px !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 100 !important;
    }

    body.booking-page .nav-bar::before {
        display: none !important;
        content: none !important;
        background: transparent !important;
    }

    body.booking-page .nav-links {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    body.booking-page .nav-item {
        position: relative !important;
        margin: 0 15px !important;
        padding: 0 !important;
        width: auto !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    body.booking-page .nav-item > a {
        display: block !important;
        padding: 10px !important;
        color: #ffffff !important;
        background: transparent !important;
        background-color: transparent !important;
        text-decoration: none !important;
        text-align: center !important;
        font-size: 1.6rem !important;
        font-family: 'Frank Ruhl Libre', serif !important;
        font-weight: 500 !important;
        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) !important;
    }

    body.booking-page .dropdown {
        position: absolute !important;
        top: 90% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        min-width: 220px !important;
        height: auto !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        display: none !important;
        background-color: rgba(50, 50, 50, 0.8) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
        border-radius: 0 !important;
    }

    body.booking-page .nav-item:hover .dropdown {
        display: block !important;
    }

    body.booking-page .dropdown li {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.booking-page .dropdown li a {
        display: block !important;
        padding: 10px 18px !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        white-space: nowrap !important;
        text-align: center !important;
        background: transparent !important;
    }

    body.booking-page .dropdown li a:hover {
        background-color: rgba(88, 49, 25, 0.8) !important;
        color: #ffffff !important;
    }
}
