/* 基本樣式設置 */
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);
    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-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;
}

/* 返回頂部按鈕樣式 */
#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);
}

/* 預約按鈕樣式 */
#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);
}

/* 行動版選單按鈕樣式 */
.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: 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;
    }
    
    .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.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;
        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;
    }
    
    .logo {
        left: 20px;
        top: 15px;
    }
    
    .logo img {
        width: 150px;
    }
    
    /* 按鈕位置調整 */
    .booking-container {
        bottom: 210px;
        right: 15px;
    }
    
    #bookingBtn {
        bottom: 210px;
        right: 15px;
    }
    
    .taiwan-site-container {
        bottom: 140px;
        right: 15px;
    }
    
    #backToTopBtn {
        bottom: 70px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    /* 台灣網站和預約按鈕進一步縮小 */
    #taiwanSiteBtn, #bookingBtn {
        width: 45px;
        height: 45px;
        padding: 8px;
    }
    
    #taiwanSiteBtn img, #bookingBtn img {
        width: 28px;
        height: 28px;
    }
    
    .nav-item {
        margin: 0 8px;
    }
    
    .nav-item a {
        font-size: 1rem;
    }
    
    .logo img {
        width: 120px;
    }
} 

/* FAQ page content, scoped away from shared navigation and floating buttons. */
body.faq-page .overlay {
    background: linear-gradient(135deg, rgba(7, 21, 37, 0.68), rgba(51, 37, 37, 0.42));
}

body.faq-page .page-content {
    display: block;
    position: relative;
    z-index: 5;
    width: min(1120px, calc(100% - 48px));
    max-width: 1120px;
    margin: 145px auto 80px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #243142;
}

body.faq-page .portfolio-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(139, 90, 43, 0.22);
    border-radius: 8px;
    box-shadow: 0 20px 54px rgba(7, 21, 37, 0.22);
    padding: 34px;
}

body.faq-page .faq-section {
    margin-top: 24px;
}

body.faq-page .faq-eyebrow {
    margin: 0 0 12px;
    color: #8B5A2B;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.faq-page h1,
body.faq-page h2,
body.faq-page summary {
    font-family: 'Frank Ruhl Libre', serif;
}

body.faq-page h1 {
    margin: 0 0 18px;
    color: #10243e;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1;
}

body.faq-page .faq-lead {
    max-width: 880px;
    margin: 0;
    color: #4e5b6d;
    font-size: 1.12rem;
    line-height: 1.8;
}

body.faq-page h2 {
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B5A2B;
    color: #10243e;
    font-size: 2rem;
}

body.faq-page .faq-list {
    display: grid;
    gap: 14px;
}

body.faq-page .faq-item {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(16, 36, 62, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

body.faq-page .faq-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 18px 52px 18px 20px;
    color: #10243e;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

body.faq-page .faq-item summary::-webkit-details-marker {
    display: none;
}

body.faq-page .faq-item summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #8B5A2B;
    border-bottom: 2px solid #8B5A2B;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

body.faq-page .faq-item[open] summary::after {
    transform: translateY(-35%) rotate(-135deg);
}

body.faq-page .faq-answer {
    padding: 0 20px 18px;
    color: #526071;
    font-size: 1rem;
    line-height: 1.75;
}

body.faq-page .faq-answer p,
body.faq-page .faq-notice-card p {
    margin: 0;
}

body.faq-page .faq-notice-card {
    border-left: 4px solid #287d6c;
}

body.faq-page .faq-notice-card p {
    color: #465367;
    font-size: 1rem;
    line-height: 1.75;
}

@media (max-width: 768px) {
    body.faq-page .page-content {
        width: calc(100% - 28px);
        margin: 112px auto 56px;
    }

    body.faq-page .portfolio-item {
        padding: 26px 20px;
    }

    body.faq-page h1 {
        font-size: 2.55rem;
    }

    body.faq-page h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    body.faq-page .page-content {
        width: calc(100% - 22px);
        margin-top: 104px;
    }

    body.faq-page .portfolio-item {
        padding: 22px 16px;
    }

    body.faq-page .faq-item summary {
        padding-right: 46px;
        font-size: 1rem;
    }
}

/* FAQ footer should match the shared site footer presentation. */
.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;
}

/* FAQ keeps the background image but removes the dark overlay filter. */
body.faq-page .overlay {
    display: none !important;
    background: transparent !important;
}

@media (max-width: 768px) {
    .static-footer {
        padding: 22px 16px 26px !important;
        text-align: center !important;
    }

    .footer-container,
    .footer-info {
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-info p,
    .footer-bottom p {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }
}

/* FAQ content board should match the About Us white square content board. */
body.faq-page .page-content {
    position: relative !important;
    z-index: 2 !important;
    width: 80% !important;
    max-width: 1200px !important;
    margin: 150px auto 100px !important;
    background-color: #ffffff !important;
    padding: 60px !important;
    border-radius: 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    color: #333333 !important;
}

body.faq-page .portfolio-item,
body.faq-page .faq-hero-panel,
body.faq-page .faq-section,
body.faq-page .faq-notice-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.faq-page .faq-section {
    margin-top: 36px !important;
}

body.faq-page .faq-notice-card {
    border-left: none !important;
}

@media (max-width: 992px) {
    body.faq-page .page-content {
        width: 90% !important;
        padding: 50px 30px !important;
    }
}

@media (max-width: 768px) {
    body.faq-page .page-content {
        margin-top: 180px !important;
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    body.faq-page .page-content {
        width: 95% !important;
        padding: 30px 15px !important;
        margin: 100px auto 60px !important;
    }
}
