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

/* Collaboration page content additions only. */
.collaboration-content .collab-framework-section {
    max-width: 980px;
    margin: 42px auto 0;
}

.collaboration-content .collab-framework-intro {
    padding: 26px 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(139, 90, 43, 0.18);
    border-left: 4px solid #8B5A2B;
    border-radius: 8px;
}

.collaboration-content .collab-framework-intro h3,
.collaboration-content .collab-content-block h3,
.collaboration-content .collab-track-card h4,
.collaboration-content .collab-pilot-card h4 {
    font-family: 'Frank Ruhl Libre', serif;
}

.collaboration-content .collab-framework-intro h3 {
    margin: 0 0 14px;
    color: #8B5A2B;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
}

.collaboration-content .collab-framework-intro p {
    margin: 0;
    color: #3f4c5d;
    font-size: 1.08rem;
    line-height: 1.8;
}

.collaboration-content .collab-content-block {
    margin-top: 34px;
}

.collaboration-content .collab-content-block h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B5A2B;
    color: #10243e;
    font-size: 1.75rem;
}

.collaboration-content .collab-track-grid,
.collaboration-content .collab-pilot-grid {
    display: grid;
    gap: 18px;
}

.collaboration-content .collab-track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collaboration-content .collab-pilot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collaboration-content .collab-track-card,
.collaboration-content .collab-pilot-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 36, 62, 0.1);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(16, 36, 62, 0.1);
}

.collaboration-content .collab-track-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    background: #10243e;
    color: #f3d99c;
    border-radius: 8px;
    font-weight: 700;
}

.collaboration-content .collab-track-card h4,
.collaboration-content .collab-pilot-card h4 {
    margin: 0 0 10px;
    color: #10243e;
    font-size: 1.35rem;
}

.collaboration-content .collab-track-card p,
.collaboration-content .collab-pilot-card p {
    margin: 0;
    color: #526071;
    font-size: 1rem;
    line-height: 1.72;
}

@media (max-width: 768px) {
    .collaboration-content .collab-framework-section {
        margin-top: 34px;
    }

    .collaboration-content .collab-framework-intro,
    .collaboration-content .collab-track-card,
    .collaboration-content .collab-pilot-card {
        padding: 22px 18px;
    }

    .collaboration-content .collab-track-grid,
    .collaboration-content .collab-pilot-grid {
        grid-template-columns: 1fr;
    }

    .collaboration-content .collab-framework-intro h3,
    .collaboration-content .collab-content-block h3 {
        font-size: 1.5rem;
    }
}

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

/* 導覽列相關樣式 - Mobile First */
/* Logo 相關樣式 - Mobile First */
.logo {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 101;
    max-width: 200px;
    transition: opacity 0.5s ease;
}

.logo img {
    width: 150px;
    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));
}

/* 行動版選單按鈕樣式 - Mobile First */
/* 按鈕樣式 - Mobile First 基礎設定 */
#backToTopBtn {
    position: fixed;
    bottom: 70px;
    right: 15px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 0;
    font-size: 16px;
    width: 45px;
    height: 45px;
    display: none;
    transition: background-color 0.3s ease;
}

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

/* 預約按鈕樣式 - Mobile First */
#bookingBtn {
    position: fixed;
    bottom: 210px;
    right: 15px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 8px;
    border-radius: 0;
    width: 45px;
    height: 45px;
    display: block;
    transition: background-color 0.3s ease;
}

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

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

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

/* 預約彈出選項 - Mobile First */
.booking-popup {
    position: absolute;
    right: 55px;
    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.5s ease;
    display: flex;
    align-items: center;
    height: 45px;
    overflow: hidden;
    width: 0;
}

.booking-container:hover .booking-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    width: 120px;
}

.booking-option {
    font-family: 'Dancing Script', cursive;
    color: white;
    text-decoration: none;
    padding: 0 15px;
    white-space: nowrap;
    font-size: 20px;
    transition: background-color 0.3s ease;
    text-align: center;
    height: 100%;
    line-height: 45px;
    width: 100%;
}

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

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

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

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

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

/* 頁面內容框樣式 */
.page-content {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 1200px;
    margin: 120px auto 80px;
    background-color: white;
    padding: 40px 20px;
    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;
}

/* 關於頁面特定樣式 */
.about-page .logo {
    position: fixed !important;
    top: 15px !important;
    left: 20px !important;
    z-index: 101 !important;
    max-width: 200px !important;
}

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

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

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

.team-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

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

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

.team-member img {
    width: 100%;
    height: 200px;
    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.3rem;
    color: #442706;
}

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

/* 團隊成員詳細介紹樣式 */
.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: 95%;
    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;
    flex-direction: column;
    gap: 20px;
}

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

.modal-image img {
    width: 100%;
    max-width: 200px;
    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.5rem;
    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-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;
    flex-direction: column;
    gap: 20px;
}

.location-image {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

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

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

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

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

.about-image {
    width: 100%;
    float: none;
    padding: 20px 0;
}

.about-text {
    width: 100%;
    float: none;
    padding-right: 0;
}

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

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

.fade-in {
    opacity: 1;
}

/* 桌機版樣式調整 - min-width: 768px */
@media (min-width: 768px) {
    /* 導覽列桌機版樣式 */
    .nav-bar {
        position: fixed;
        top: 50px;
        right: 40px;
        width: auto;
        height: auto;
        background-color: transparent;
        z-index: 100;
        display: flex;
        justify-content: center;
        transition: opacity 0.5s ease;
        padding-top: 0;
        overflow-x: visible;
        flex-direction: row;
    }
    
    .nav-bar.active {
        right: 40px;
        transform: none;
    }
    
    .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 {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
    }
    
    .nav-item {
        margin: 0 15px;
        width: auto;
    }
    
    .nav-item a {
        font-size: 1.6rem;
        padding: 10px;
        text-align: center;
        width: auto;
        box-sizing: content-box;
    }
    
    /* 下拉選單桌機版樣式 */
    .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);
        z-index: 1000;
    }
    
    .dropdown li a {
        padding: 8px 15px; /* 減少右側內距使文字更靠左 */
        white-space: nowrap; /* 不允許文字換行 */
        overflow: visible; /* 確保文字不被截斷 */
        text-align: left; /* 文字左對齊 */
        color: #000; /* 預設黑色文字 */
    }
    
    .nav-item:hover .dropdown {
        display: block;
    }
    
    .nav-item.active .dropdown {
        display: none;
    }
    
    /* Logo 桌機版樣式 */
    .logo {
        top: 20px;
        left: 60px;
    }
    
    .logo img {
        width: 180px;
    }
    
    .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;
    }
    
    /* 行動版選單按鈕隱藏 */
    .mobile-menu-toggle {
        display: none;
    }
    
    /* 按鈕桌機版位置調整 */
    #backToTopBtn {
        bottom: 100px;
        right: 30px;
        width: 50px;
        height: 50px;
        padding: 15px;
        font-size: 18px;
    }
    
    #bookingBtn {
        bottom: 240px;
        right: 30px;
        width: 50px;
        height: 50px;
        padding: 10px;
    }
    
    #bookingBtn img {
        width: 30px;
        height: 30px;
    }
    
    .booking-container {
        bottom: 240px;
        right: 30px;
    }
    
    .booking-popup {
        right: 60px;
        height: 50px;
        width: 0;
    }
    
    .booking-container:hover .booking-popup {
        width: 150px;
    }
    
    .booking-option {
        font-size: 24px;
        line-height: 50px;
        padding: 0 20px;
    }
    
    .taiwan-site-container {
        bottom: 170px;
        right: 30px;
    }
    
    #taiwanSiteBtn {
        width: 50px;
        height: 50px;
        padding: 10px;
    }
    
    #taiwanSiteBtn img {
        width: 30px;
        height: 30px;
    }
    
    /* 頁面內容桌機版樣式 */
    .page-content {
        width: 80%;
        margin: 150px auto 100px;
        padding: 60px;
    }
    
    /* 關於頁面桌機版樣式 */
    .about-page .logo {
        top: 20px !important;
        left: 60px !important;
    }
    
    .about-page .page-content {
        margin-top: 150px !important;
    }
    
    /* 團隊樣式桌機版調整 */
    .team-title {
        font-size: 2.5rem;
    }
    
    .team-container {
        gap: 50px;
    }
    
    .team-member {
        width: 250px;
    }
    
    .team-member img {
        height: 250px;
    }
    
    .team-member h4 {
        font-size: 1.5rem;
    }
    
    .team-member p {
        font-size: 1rem;
    }
    
    /* 模態視窗桌機版樣式 */
    .team-modal {
        width: 80%;
    }
    
    .modal-flex {
        flex-direction: row;
        gap: 30px;
    }
    
    .modal-image {
        flex: 0 0 250px;
        margin-bottom: 0;
    }
    
    .modal-image img {
        max-width: none;
        width: 100%;
    }
    
    .modal-text h5 {
        font-size: 1.8rem;
    }
    
    /* 地址樣式桌機版調整 */
    .location-flex {
        flex-direction: row;
        gap: 30px;
    }
    
    .location-image {
        flex: 0 0 40%;
        margin-bottom: 0;
    }
    
    .location-text {
        padding: 20px 0 20px 30px;
    }
    
    .location-text h4 {
        font-size: 2.0rem;
    }
    
    .location-text p {
        font-size: 1.3rem;
    }
    
    /* about-container 桌機版樣式 */
    .about-image {
        width: 33%;
        float: left;
    }
    
    .about-text {
        width: 55%;
        float: right;
        padding-right: 50px;
    }
}

/* 極小手機版微調 - max-width: 480px */
@media (max-width: 480px) {
    .logo img {
        width: 120px;
    }
    
    .page-content {
        margin: 120px auto 80px;
    }
    
} 

/* Desktop nav presentation after mobile nav is delegated to common-mobile-nav.css */
@media (min-width: 769px) {
    .nav-links {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-item {
        position: relative;
    }

    .nav-item a {
        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 {
        font-weight: 500;
    }

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

    .dropdown {
        list-style: none;
    }

    .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);
    }
}
