/* 基本樣式設置 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #fff;
    color: #333;
}

/* 行動版選單按鈕樣式 - 與index完全一致 */
.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);
}

/* 背景圖片容器樣式 */
.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;
}

/* 頁面內容框樣式 */
.page-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;
}

/* 錨點樣式 */
.section-anchor {
    display: block;
    height: 0;
    margin-top: -80px;
    padding-top: 80px;
    visibility: hidden;
    pointer-events: none;
}

/* 關於頁面特定樣式 - 僅適用於桌面版，避免影響行動版選單 */
@media (min-width: 769px) {
.about-page .nav-bar {
    position: fixed !important;
    top: 50px !important;
    right: 40px !important;
    z-index: 100 !important;
}

.about-page .logo {
    position: fixed !important;
    top: 20px !important;
    left: 60px !important;
    z-index: 101 !important;
    max-width: 200px !important;
}

.about-page .page-content {
    margin-top: 150px !important;
    }
}

/* 團隊部分樣式 */
.team-section {
    padding: 20px 0;
    text-align: left;
}

.team-title {
    font-size: 2.5rem;
    color: #8B5A2B;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.team-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}

.team-member {
    width: 250px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member h4 {
    margin: 15px 0 5px;
    font-size: 1.2rem;
    color: #442706;
}

.team-member p {
    margin: 0;
    font-size: 0.8rem;
    color: #8B5A2B;
    font-style: italic;
}

/* 團隊成員詳細介紹樣式 */
.team-member-bio {
    display: none;
}

/* 圖片輪播樣式 */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + .slide {
    display: block;
}

.slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-controls label {
    width: 12px;
    height: 12px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-controls label:hover {
    background-color: white;
}

input[type="radio"]:checked + .slide + input[type="radio"] + .slide + input[type="radio"] + .slide + .slider-controls label:nth-child(1),
input[type="radio"]:checked + .slide + input[type="radio"] + .slide + .slider-controls label:nth-child(1),
input[type="radio"]:checked + .slide + .slider-controls label:nth-child(1) {
    background-color: white;
}

.slide-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
}

.slide-nav label {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slide-nav label:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* 模態視窗背景遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: none;
    transition: all 0.3s ease;
}

/* 團隊成員模態視窗 */
.team-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    z-index: 101;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

/* 模態視窗顯示時的樣式 */
.team-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    display: block;
}

/* 模態視窗內容容器 */
.modal-content {
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

/* 關閉按鈕 */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #8B5A2B;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 102;
}

.close-modal:hover {
    color: #000;
}

/* 模態視窗內容區域 */
.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 模態視窗內容彈性排列 */
.modal-flex {
    display: flex;
    gap: 30px;
}

/* 模態視窗圖片容器 */
.modal-image {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

/* 模態視窗文字區域 */
.modal-text {
    flex: 1;
}

.modal-text h5 {
    font-size: 1.8rem;
    color: #442706;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #8B5A2B;
    padding-bottom: 10px;
}

.modal-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 模態視窗列表樣式 */
.modal-text ul {
    list-style: disc;
    margin: 0 0 15px 1.25em;
    padding: 0;
}

.modal-text li {
    margin: 6px 0;
}

/* 模態視窗按鈕樣式 */
.modal-btn {
    display: inline-block;
    background-color: #8B5A2B;
    color: white;
    padding: 10px 20px;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.modal-btn:hover {
    background-color: #442706;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 地址詳細介紹獨立樣式 */
.location-detail-item {
    background-color: #f9f9f9;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.location-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.location-flex {
    display: flex;
    gap: 30px;
}

.location-image {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-text {
    flex: 1;
    padding: 20px 0 20px 30px;
}

.location-text h4 {
    font-size: 2.0rem;
    color: #442706;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #8B5A2B;
    padding-bottom: 10px;
    padding-left: 20px;
}

.location-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    padding-left: 20px;
}

/* about-container 樣式 */
.about-container {
    margin: 20px 0;
    overflow: hidden;
}

.about-image {
    width: 33%;
    float: left;
    padding: 20px 0;
}

.about-text {
    width: 55%;
    float: right;
    padding-right: 50px;
}

/* 頁尾樣式 */
.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;
}

#about-footer {
    margin-top: 30px;
}

/* 返回頂部按鈕樣式 */
#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-footer-contact {
    margin: 5px 0;
}

@media (min-width: 769px) {
    .mobile-footer-contact {
        display: inline;
    }
    
    .mobile-footer-contact:first-of-type:after {
        content: " | ";
    }
}

/* 響應式設計 */
@media (max-width: 992px) {
    .location-flex {
        flex-direction: column;
    }
    
    .location-image {
        flex: 0 0 auto;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .modal-flex {
        flex-direction: column;
    }
    
    .modal-image {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    
    .team-modal {
        width: 95%;
    }
    
    .about-page .nav-container {
        height: 85px !important;
    }
    
    .page-content {
        width: 90%;
        padding: 50px 30px;
    }
    
    .portfolio-item h2 {
        font-size: 24px !important;
    }
    
    .about-text h3 {
        font-size: 24px !important;
    }
    
    .about-text p {
        font-size: 1em !important;
    }
}

@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, .about-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;
        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);
    }
    
    /* 下拉選單樣式調整 - 與index一致 */
    .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);
    }
    
    /* 點擊觸發下拉選單 - 與index一致 */
    .nav-item:hover .dropdown {
        display: none;
    }
    
    .nav-item.active .dropdown {
        display: block;
    }
    
    .about-page .logo {
        left: 20px;
        top: 15px;
    }
    
    .logo img {
        width: 150px;
    }
    
    .about-page .page-content {
        margin-top: 180px;
        padding: 20px;
    }
    
    .about-image, .about-text {
        width: 100% !important;
        float: none !important;
        padding-right: 0;
    }
    
    .location-text p, .modal-text p {
        font-size: 1rem;
    }
    
    .location-text h4, .modal-text h4 {
        font-size: 1.5rem;
    }
    
    .team-title {
        font-size: 2rem;
    }
    
    .slider-container {
        height: 350px !important;
    }
    
    .slider-container img, .slider-container iframe {
        height: 350px !important;
    }
    
    /* 頁尾樣式調整 */
    .footer-info p:not(.mobile-footer-contact) {
        display: block;
        margin-bottom: 10px;
    }
    
    /* 手機版按鈕位置調整 */
    .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) {
    .about-page .page-content {
        width: 95%;
        padding: 30px 15px;
        margin: 100px auto 60px !important;
    }
    
    .nav-item {
        margin: 0 8px;
    }
    
    .nav-item a {
        font-size: 1rem;
    }
    
    .team-title {
        font-size: 1.8rem;
    }
    
    .team-member {
        width: 200px;
    }
    
    .team-member h4 {
        font-size: 1.2rem;
    }
    
    .portfolio-item h2 {
        font-size: 22px !important;
    }
    
    .about-text h3 {
        font-size: 20px !important;
        margin-top: 1em !important;
    }
    
    .about-text p {
        font-size: 0.9em !important;
        margin-top: 0.8em !important;
    }
    
    .slider-container {
        height: 250px !important;
    }
    
    .slider-container img, .slider-container iframe {
        height: 250px !important;
    }
    
    .location-text h4 {
        font-size: 1.3rem;
        padding-left: 10px;
    }
    
    .location-text p {
        font-size: 0.9rem;
        padding-left: 10px;
    }
    
    .logo img {
        width: 120px;
    }
    
    /* 小螢幕按鈕尺寸調整 */
    #taiwanSiteBtn, #bookingBtn {
        width: 45px;
        height: 45px;
        padding: 8px;
    }
    
    #taiwanSiteBtn img, #bookingBtn img {
        width: 28px;
        height: 28px;
    }
    
    #backToTopBtn {
        width: 45px;
        height: 45px;
        font-size: 16px;
        padding: 12px;
    }
    
    /* 預約按鈕進一步調整 */
    .booking-option {
        font-size: 20px;
    }
    
    .booking-container:hover .booking-popup {
        width: 120px;
    }
    
    /* 模態視窗調整 */
    .modal-body {
        padding: 15px;
        max-height: 70vh;
    }
    
    .modal-text h5 {
        font-size: 1.4rem;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* 添加CSS類用於控制透明度 */
.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
} 
/* Ensure bullet points for lists inside about-text */
.about-text ul { list-style: disc; margin-left: 1.25em; }
.about-text li { margin: .4em 0; }
/* About grid cards */
.about-grid {
  display: grid; gap: 16px; margin: .6em 0 1em;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 768px){ .about-grid { grid-template-columns: 1fr; } }
.about-card {
  background: #f9f6f3; padding: 14px 16px; 
  border-left: 4px solid #8B5A2B; 
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  line-height: 1.55;
}
/* Accordion styles */
.about-accordion { 
  margin: .8em 0; 
  border: 1px solid #e8e0d8; 
  background: #fff; 
}
.about-accordion > summary {
  cursor: pointer; padding: 12px 14px; 
  font-weight: 600; color: #8B5A2B; list-style: none;
}
.about-accordion[open] > summary { background: #f9f6f3; }
.about-accordion .accordion-body { padding: 12px 14px; border-top: 1px solid #e8e0d8; }
.about-kicker { letter-spacing: .3px; }