﻿/* Menu */
/* 整個區塊背景 */
.main-content {
    padding-top: 8rem;
}

.section-menu {
    background: #f7f7f7;
    padding: 3rem 0;
    text-align: center;
}

/* 主題文字 */
.menu-title {
    font-size: 15pt;
    color: #fbae34;
    font-weight: bold;
    margin-bottom: 3rem;
}

/* 按鈕容器 */
.menu-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* 按鈕樣式 */
.btn-menu {
    background: #ffffff;
    padding: 25px 60px;
    display: inline-block;
    text-align: center;
    /*border: 1px solid #e0e0e0;*/
    cursor: pointer;
    transition: 0.3s;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    text-decoration: none;
    font-family: 'Pano Trial Light';
}

    /* 第二行副標 */
    .btn-menu span {
        display: block;
        font-size: 15px;
        font-weight: 400;
        color: #555;
        margin-top: 5px;
    }



    /* Active 橘色選中樣式 */
    .btn-menu.active {
        background: #fbb03b;
        /*border-color: #fbb03b;*/
        color: white;
    }

        .btn-menu.active span {
            color: white;
        }

    /* hover 效果 */
    .btn-menu:hover {
        transform: translateY(-3px);
        background: #fbb03b;
        /*border-color: #fbb03b;*/
        color: white;
    }

        .btn-menu:hover span {
            color: white;
        }

.tab-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease;
}

    /* 展開時 */
    .tab-content.active {
        max-height: 2000px; /* 夠大即可，實際高度會被 transition 控制 */
        opacity: 1;
        margin-top: 3rem;
    }

/* Contact */
.contact-section {
    /*padding: 40px 0 60px;*/
}

.contact-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

    .contact-title span {
        font-size: 18px;
        font-weight: 400;
    }

.contact-rows {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-subtitle {
    /*    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;*/
    /* 1. 設置相對定位，讓 ::after 能夠準確定位 */
    position: relative;
    /* 確保標題文字的樣式 */
    font-size: 13pt; /* 根據您的需求調整 */
    font-weight: bold;
    color: #333;
    /* 留出底部空間給線條 */
    padding-bottom: 5px;
    margin-bottom: 1.5rem; /* 與下方內容的分隔 */
    /* 讓標題成為行內塊級元素，這樣 ::after 才能從標題文字底下開始對齊 */
    display: inline-block;
    font-family: 'Pano Trial Light';
}

    .contact-subtitle::after {
        content: ""; /* 偽元素必須有內容 */
        position: absolute;
        left: 0; /* 讓線條從標題文字的左側開始 */
        bottom: 0;
        /* 設置線條的長度、粗細和顏色 */
        width: 60px; /* <--- 設置線條長度，例如 60px */
        height: 3px; /* 設置線條粗細 */
        background-color: #FFC35C; /* 圖片中的橙色 */
        /*        border-bottom: 1px solid #000;
*/
    }

.line-btn-img {
    width: 140px;
    margin-bottom: 15px;
}

.phone-icon {
    width: 60px;
    margin-bottom: 10px;
}

.phone-text {
    font-size: 16px;
    margin: 8px 0;
    font-family: 'SourceHanSansTWHK-Medium';
}

.highlight {
    color: #fbb03b;
    font-weight: 600;
}

.contact-desc {
    font-size: 14px;
    color: #555;
    margin-top: 15px;
    font-family: 'SourceHanSansTWHK-Medium';
}

/* ========================================= */
/* 2. Email Tabs 樣式 (關鍵修正) */
/* ========================================= */
.contact-tabs {
    display: flex;
    /* 移除 gap，因為現在是緊鄰排列 */
    /* gap: 20px; */
    margin-bottom: 1.5rem; /* 與下方輸入框的間距 */
    /* 增加底部分隔線，模擬 Tab 容器的底線 */
    border-bottom: 1px solid #dee2e6;
    width: 100%;
}

    .contact-tabs .tab {
        padding: 5px 15px; /* 增加 padding，使其看起來像按鈕 */
        cursor: pointer;
        font-size: 14px;
        /* 移除底線，改用背景色 */
        border-bottom: none;
        transition: background-color 0.2s, color 0.2s;
        /* 讓 Tab 靠左對齊 */
        text-align: left;
        /* 移除自訂邊界，讓 active 邊框更明顯 */
        margin-right: -1px; /* 消除邊界衝突 */
    }

        /* 活躍 Tab 樣式 */
        .contact-tabs .tab.active {
            /* 範例圖中 Tab 是深灰色背景 */
            background-color: #343a40;
            color: white;
            /* 讓 active Tab 底部邊線消失，視覺上與 Tab 容器的底線斷開 */
            /* border-bottom: 2px solid #000; */
            /* 增加右側邊界，實現分隔效果 */
            border-right: 1px solid #dee2e6;
            /* 增加左側邊界 */
            border-left: 1px solid #dee2e6;
        }

        /* 修正：讓第一個 Tab 的左側和最後一個 Tab 的右側沒有邊界 */
        .contact-tabs .tab:first-child.active {
            border-left: none;
        }

/* ========================================= */
/* 3. 輸入框樣式 (關鍵修正：全框) */
/* ========================================= */
.contact-form {
    padding-top: 0.5rem;
}

.input-line {
    width: 100%;
    /* 關鍵修正：將 border-bottom 替換為完整的邊框 */
    border: 1px solid #ced4da; /* 淺灰色邊框 */
    border-bottom: 1px solid #ced4da; /* 保持一致性 */
    padding: 12px; /* 增加 padding，使其更厚 */
    margin-bottom: 1.5rem; /* 增加間距 */
    font-size: 15px;
    border-radius: 0.25rem; /* 輕微圓角 */
}

    .input-line:focus {
        outline: none;
        /* 範例圖中聚焦時沒有明顯的邊界顏色變化，保留預設效果或使用輕微陰影 */
        border-color: #fbb03b; /* 聚焦時邊框顏色變橙色 */
        box-shadow: 0 0 0 0.2rem rgba(249, 168, 37, 0.25);
    }

.textarea {
    height: 120px; /* 增加 textarea 高度 */
    resize: none; /* 禁用拖動 */
}

/* ========================================= */
/* 4. 送出按鈕樣式 (顏色修正) */
/* ========================================= */
.send-btn {
    background: #fbb03b; /* 統一使用範例圖中的橙色 */
    color: white;
    border: none;
    width: 100%;
    padding: 12px 0;
    border-radius: 0.25rem; /* 輕微圓角 */
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 3px;
    margin-top: 1rem;
}

h4.text-center {
    font-family: 'Pano Trial Light';
    font-size: 17pt;
    font-weight: 400;
}


/* Locations */
/* 2×2 的大排版 */
.location-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem; /* 上下 4rem，左右 3rem */
}

/* 單個據點（左右排列） */
.location-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2rem;
    height: 14vw;
}

/* 左邊文案（固定寬度） */
.location-left {
    width: 45%;
}

    .location-left h5 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 15px;
        font-family: 'Pano Trial Light';
    }

    /* icon + text */
    .location-left p {
        margin: 6px 0;
        font-size: 15px;
        color: #333;
        font-family: 'SourceHanSansTWHK-Medium';
    }

    .location-left i {
        margin-right: 8px;
        color: #333;
    }

/* 營業時間 */
.time-info {
    margin-top: 10px !important;
    line-height: 1.7;
}

/* 右邊地圖（大） */
.location-right {
    width: 40%;
    height: 330px;
}

    .location-right iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 8px;
    }

.time-block {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

    .time-block i {
        font-size: 16px;
        color: #333;
        margin-top: 3px; /* 微調 icon 垂直置中 */
    }

.time-text {
    line-height: 1.6;
    font-size: 15px;
    color: #555;
    font-family: 'SourceHanSansTWHK-Medium';
}

.fa, .fas {
    width: 15px;
}
/* ========== RWD ========== */
@media(max-width: 991px) {
    .location-grid-2col {
        grid-template-columns: 1fr;
    }

    .location-row {
        flex-direction: column;
    }

    .location-left,
    .location-right {
        width: 100%;
    }
}

.text-center {
    font-family: 'Pano Trial Light';
    font-size: 22pt !important;
    font-weight: 400 !important;
}
/* FAQ */
/* 整個 FAQ 區塊 */
.section-faq {
    background: #f4a933;
    /*padding: 60px 0;*/
    text-align: center;
}

    /* 標題 */
    .section-faq h2 {
        font-weight: bold;
        margin-bottom: 22pt;
        font-family: 'Pano Trial Light';
        color: #fff;
        font-size: 18pt;
    }

        .section-faq h2 span {
            font-size: 18pt;
            font-family: 'Pano Trial Light';
            font-weight: bold;
        }

.faq-header {
    max-width: 1320px;
    margin: auto;
}
/* 外層搜尋框 */
.fancy-search {
    width: 55%;
    margin: 0 auto 30px;
    background: #ffffff;
    border-radius: 50px;
    padding: 0px 2rem 0px 0px;
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    position: relative;
}

/* 左邊椰子樹圖示 */
.faq-left-icon {
    width: 70px;
    height: 60px;
    margin-right: 15px;
}

/* 搜尋輸入框（置中風格） */
.fancy-search input {
    border: none;
    flex: 1;
    text-align: center;
    font-size: 16px;
    color: #555;
    outline: none;
}

/* 搜尋 icon（右側） */
.faq-search-icon {
    font-size: 22px;
    color: #e48f1f;
    cursor: pointer;
}

/* Placeholder 顏色 */
.fancy-search input::placeholder {
    color: #bbb;
}

/* 分類按鈕 */
/* 2×4 排版 */
.faq-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto 40px;
}

/* 白卡 */
.faq-category-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.5rem 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
    text-align: center;
    width: 100%;
}

/* 上方英文大字 */
.faq-cat-en {
    font-size: 14pt;
    font-weight: bold;
    color: #333;
    font-family: 'Pano Trial Light';
}

/* 下方中文小字 */
.faq-cat-zh {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 選取的卡片 */
.faq-category-card.active {
    background: #333;
    color: #ffba3b;
}

    .faq-category-card.active .faq-cat-en,
    .faq-category-card.active .faq-cat-zh {
        color: #ffba3b;
    }

/* 手機 RWD：改成兩欄 */
@media (max-width: 768px) {
    .faq-category-grid {
        width: 95%;
        grid-template-columns: repeat(2, 1fr);
    }
}

#faqList {
    max-width: 1320px;
    margin: auto;
}
/* FAQ 卡片 */
.faq-item {
    width: 75%;
    margin: 0 auto 10px;
    background: #ffffff;
    /*    border-radius: 6px;
*/ /*padding: 15px 20px;*/
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.faq-question {
    font-size: 11pt;
    font-weight: 500;
    padding: 1rem 1rem;
    font-family: 'Pano Trial Light';
}

.faq-answer {
    margin-top: 10px;
    display: none;
    font-size: 15px;
    line-height: 1.7;
}

    /* 展開動畫 */
    .faq-answer.show {
        display: block;
        padding: 1rem 1rem;
        color: #565656;
    }

.faq-border {
    border-top: 1px solid #f4a933;
}
/* How to use */
.text-center-O {
    color: #fbb03b;
    font-size: 22pt;
}

/* 整體 Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 80%;
    margin: auto;
}

/* 深灰卡片 */
.yt-block {
    width: 100%;
    height: 160px;
    background: #3e3e3e;
    border-radius: 14px;
    display: flex;
    flex-direction: column; /* 垂直排列 ICON + 文字 */
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}
    .yt-block p {
        font-family: 'Pano Trial Light';
        font-size: 14pt;
    }
    /* YouTube 圖示 */
    .yt-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

/* 影片標題（在卡片內，置中，白色） */
.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* hover 效果（可選） */
.yt-block:hover {
    background: #4a4a4a;
    transform: scale(1.03);
    transition: .2s;
}


/* 手機兩欄 */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手機一欄 */
@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}


.fa-youtube {
    color: red;
}
