/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 2em;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #FFF9F2;
    color: #000;
    position: relative;
}

.logo img {
    height: 100px;
}

h2 {
    font-family: "Microsoft Jhenghei", Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.1em;
    letter-spacing: 0.03em;
    margin: 0 auto 20px;
}

.red_font {
    color: red;
}

/* 下拉MENU */
nav ul {
    list-style: none;
    display: flex;
    z-index:999;
}

    nav ul li {
        position: relative;
    }

        nav ul li a {
            color: #000;
            text-decoration: none;
            padding: 10px 20px;
            display: block;
        }

            nav ul li:hover {                
                text-decoration:underline;                
            }

        nav ul li ul {
            padding: 0;
            margin: 0;
            display: none;
            position: absolute;
            background-color: #FFF9F2;
            top: 100%;
            left: 0;
            min-width: 280px;
            border-radius: 5px;
            opacity: 0.9;
        }

        nav ul li:hover ul {
            display: block;
        }
/* 下拉MENU */

.auth a {
    color: #000;
    margin-left: 10px;
    text-decoration: none;
}

/* 漢堡 icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .hamburger span {
        width: 25px;
        height: 3px;
        background: #FFF9F2;
        margin: 4px 0;
    }
/* 漢堡 icon */

.main-content {
    padding: 0;
}

.main-content2fields {
    display: flex;
    flex-wrap: wrap; /* 讓右側可以在手機上自動換行 */
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 左側內容區域 */
.about-left {
    flex: 3;
    min-width: 300px;
    background-color: #C6AE92;
    padding: 40px 5%;
    box-sizing: border-box;
}

/* 右側區塊 */
.about-right {
    flex: 1 1 180px; /* 可收縮、最小寬度 280px */
    background-color: white;
    padding: 0px;
    margin: 0 20px 0 20px;
    box-sizing: border-box;
}

.content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* 左頁 */
.left {
    flex: 3;
    background-color: white;
    padding: 20px;
}

.leftcontact {
    text-align: center;
}
/* 左頁 */

/* 右頁 */
.right {
    flex: 1 1 180px;
    background-color: white;
    padding: 0px;
    margin-left: 5px;
}

    .right a {
        flex: 1;
        background-color: white;
        padding: 0px;
        margin-left: 5px;
        color: #000;
    }

    .right .main-category {
        margin-bottom: 15px;
        background: #f9f9f9;
        padding: 10px;
        border-radius: 6px;
    }

        .right .main-category a {
            font-size: 18px;
            color: #2c3e50;
            text-decoration: none;
        }

        .right .main-category ul.sub-category {
            margin: 10px 0 0 15px;
            padding: 0;
            list-style: none;
        }

            .right .main-category ul.sub-category li {
                margin: 5px 0;
            }

            .right .main-category ul.sub-category a {
                font-size: 14px;
                color: #34495e;
            }
/* 右頁 */

.top-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    line-height:2em;
}

.top-box {
    flex: 1;
    min-width: 300px;
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 10px;
}

.bottom-box {
    margin-top: 20px;
    background-color: #ddd;
    padding: 20px;
    border-radius: 10px;
    line-height:2em;
}

/* 按鈕容器：置中排列並加入外距 */
.btn-container {
    text-align: center;
    margin: 10px;
}
/* 按鈕容器：置中排列並加入外距 */


/* 按鈕共用樣式：內距、字型大小、圓角和過渡效果 */
.btn {
    display: inline-block !important;
    padding: 10px 30px !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    border-radius: 5px !important;
    transition: 0.3s !important; /* 滑鼠移入時顏色過渡效果 */
    font-weight: bold !important;
}
/* 按鈕共用樣式：內距、字型大小、圓角和過渡效果 */


/* 第一個按鈕：黑底白字 */
.btn-intro {
    background-color: #000 !important;
    color: #fff !important;
}

    .btn-intro:hover {
        background-color: #fff !important;
        color: #000 !important;
    }
/* 第一個按鈕：黑底白字 */


/* 第二個按鈕：銀底黑字 */
.btn-seminar {
    background-color: silver !important;
    color: #000 !important;
}

    .btn-seminar:hover {
        background-color: #000 !important;
        color: silver !important;
    }
/* 第二個按鈕：銀底黑字 */



/* 區塊 */
.section-1 {
    background-color: #C6AE92;
    padding: 40px 5%;
}

.section-2 {
    background-color: #FFF;
    padding: 40px 5%;
}

.section-box1 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.section-sbox {
    background-color: #FFF;
    border-radius: 16px;
    flex: 1;
    min-width: 200px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-box2 {
    background-color: #FFF;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .section-box2 h1 {
        color: #ab6f5d;
        font-weight:bold;
    }
/* 區塊 */

footer {
    background-color: #222;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

    footer a {
        color: #fff;
        margin-right: 10px;
        text-decoration: none;
    }

/* 輪播圖片 */
.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-image img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
}

.thumbnail-wrapper {
    position: relative;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnails {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    max-width: 600px;
    padding: 10px 0;
}

    .thumbnails img {
        width: 100px;
        height: 70px;
        object-fit: cover;
        margin: 0 5px;
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: 5px;
        transition: 0.3s;
    }

        .thumbnails img:hover,
        .thumbnails img.active {
            border-color: #000;
        }
/* 輪播圖片 */



    .price {
        text-align: center;
        word-wrap: break-word;
        margin: 20px 0;
    }

.green-box {
    background-color: #D2F7B1;
    padding:20px;
    text-align:center;
}

.grey-box {
    background-color: #D5D5D5;
    padding: 20px;
    text-align: center;
}




/* 左右對齊圖片 */
.img-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* 圖片間距 */
    margin: 20px 0;
}

    .img-row img {
        max-width: 100%;
        height: auto;
        flex: 1 1 45%; /* 每張圖片寬度約 45%，可縮放 */
        min-width: 280px; /* 最小寬度，避免圖片太小 */
        box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 可選：加陰影美化 */
        border-radius: 8px; /* 可選：圓角 */
    }
/* 左右對齊圖片 */


/* 設定影片響應式容器 */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width:500px;
    margin: 10px auto;
    padding-top: 42.25%; /* 16:9 比例:56.25% */
}

    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 500px;
    }

.video-wrapper1 {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding-top: 62.25%; /* 16:9 比例:56.25% */
}

    .video-wrapper1 video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 450px;
    }
/* 設定影片響應式容器 */

/* 圖片響應式設定 */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    max-height:500px;
}
/* 圖片響應式設定 */

/*CSS 控制彈窗樣式*/
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.exit-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.exit-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
/*CSS 控制彈窗樣式*/

.img-row-design {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.img-wrapper {
    text-align: center;
    max-width: 500px;
}

    .img-wrapper img {
        width: 100%;
        height: 300px; /* 固定高度，橫式顯示為主 */
        object-fit: cover; /* 讓圖片橫式填滿，但不會變形 */
        object-position: top; /* 圖片從頂端顯示 */
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease;
        cursor: pointer;
    }

        .img-wrapper img:hover {
            transform: scale(1.15);
        }

.img-caption {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #333;
    width: 380px;
}

.img-wrapper-one {
    text-align: center;
    max-width: 500px;
}

    .img-wrapper-one img {
        width: 100%;
        height: 500px; /* 固定高度，橫式顯示為主 */
        object-fit: cover; /* 讓圖片橫式填滿，但不會變形 */
        object-position: top; /* 圖片從頂端顯示 */
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease;
        cursor: pointer;
    }

        .img-wrapper-one img:hover {
            transform: scale(1.15);
        }

.img-caption-one {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #333;
    width: 500px;
}

/* 手機版導覽列 */
@media (max-width: 768px) {
    .img-caption {
        margin-top: 8px;
        font-size: 0.95rem;
        color: #333;
        width: 100%;
    }

    .img-caption-one {
        margin-top: 8px;
        font-size: 0.95rem;
        color: #333;
        width: 100%;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* ✅ 垂直超出顯示捲軸 */
    background-color: rgba(0,0,0,0.95);
    text-align: center;
    padding: 40px 0;
}

.lightbox-content {
    width: 100%; /* ✅ 放大後寬度 100% */
    height: auto; /* ✅ 高度自適應，超出視窗用滾動條顯示 */
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* 手機版導覽列 */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #FFF9F2;
        position: absolute;
        top: 100px;
        left: 0;
        z-index: 999;
    }

        nav ul {
            flex-direction: column;
        }

            nav ul li ul {
                position: relative;
            }

    .hamburger {
        display: flex;
    }


    nav.active {
        display: flex;
    }

    .auth {
        display: none;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    /* 設定影片響應式容器 */
    .video-wrapper {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 10px auto;
        padding-top: 96.25%; /* 16:9 比例:56.25% */
    }

        .video-wrapper video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            max-height: 500px;
        }
    .video-wrapper1 {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 10px auto;
        padding-top: 96.25%; /* 16:9 比例:56.25% */
    }

        .video-wrapper1 video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            max-height: 500px;
        }

    .video-wrapper2 {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 10px auto;
        padding-top: 96.25%; /* 16:9 比例:56.25% */
    }

        .video-wrapper2 video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            max-height: 500px;
        }
}
/* 手機版導覽列 */
