/* ========================================= */
/* Date Tabs (日期切換按鈕)
/* ========================================= */
.date_tab_container {
    margin-bottom: 30px;
}

/* 電腦版：隱藏手機版開關 */
.date_m_btn {
    display: none;
}

/* 電腦版：橫向排列 */
.date_tab_area {
    display: flex;
    flex-wrap: wrap; 
    gap: 12px;
}
.date_tab_area {
    display: flex;
    flex-wrap: wrap; 
    gap: 12px;
    margin-bottom: 30px; /* 與下方標題保持呼吸空間 */
}

/* 按鈕基本樣式 */
.date_tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: #ffffff;
    /* border: 2px solid #eeeeee; */
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 140px;

    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* 文字樣式 */
.date_tab .day {
    font-size: 18px;
    font-weight: 700;
    color: #444444;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.date_tab .date {
    font-size: 14px;
    color: #888888;
    transition: color 0.3s;
}

/* --- 滑鼠移入效果 (Hover) --- */
.date_tab:hover:not(.active) {
    /* border-color: var(--primary_color, #ff383c);
    background-color: #fff9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 56, 60, 0.1); */
    
    /* 加入這行，強制清除滑鼠移入時的底線 */
    /* text-decoration: none ;  */


    background-color: var(--dark_color2);
    border-color: var(--dark_color2, #ff383c);
    box-shadow:none;
    color: #fff;
}
.date_tab:hover:not(.active) .day ,
.date_tab:hover:not(.active) .date{
    color: inherit;
}




/* 確保點擊或啟用狀態也沒有底線 */
.date_tab.active,
.date_tab.active:hover {
    text-decoration: none ;
}
/* --- 目前選中狀態 (Active) --- */
.date_tab.active {
    background-color: var(--dark_color2);
    border-color: var(--dark_color2, #ff383c);
    /* box-shadow: 0 4px 12px rgba(255, 56, 60, 0.25); */
    cursor: default; /* 已經在這頁了，不需要鼠標 pointer */
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    box-shadow:none;
}

.date_tab.active .day,
.date_tab.active .date {
    color: #ffffff;
}

@media (max-width: 990px) {
    /* 1. 顯示點擊開關 */
    .date_m_btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #ffffff;
        border: 2px solid var(--primary_color, #ff383c);
        color: var(--primary_color, #ff383c);
        font-size: 16px;
        font-weight: bold;
        padding: 15px 20px;
        border-radius: 8px;
        cursor: pointer;
    }
    
    /* 箭頭旋轉動畫 */
    .date_m_btn i {
        transition: transform 0.3s ease;
    }
    .date_m_btn.active i {
        transform: rotate(180deg);
    }

    /* 2. 手機版清單改為垂直排列 */
    .date_tab_area {
        /* display: none; 將由 JS 控制 */
        flex-direction: column;
        gap: .3125rem;
        margin-top: .3125rem;
    }
    
    .date_tab {
        width: 100%;
        padding: 12px 15px;
    }
    .date_tab .day { font-size: 16px; margin-bottom: 2px; }
    .date_tab .date { font-size: 13px; }
}

.right_contentBg{
    background-color: unset;
    border-radius: 0px;
    color: unset;
    
    padding: 0;

    box-shadow: none;
}
.scheduleTable {
    width: 100%;
    border-collapse: separate; /* 這裡必須用 separate 才能讓外框圓角生效 */
    border-spacing: 0;
    margin-bottom: 40px;
    background-color: #ffffff;
    border-radius: 10px; /* 柔和的圓角 */
    overflow: hidden;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); *//* 輕柔的卡片陰影，增加層次感 */

    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

/* 日期大標題 (Day 1, Day 2) */
.scheduleTable thead th.table-main-tit {
    background-color: var(--second_color);
    background-color: var(--dark_color2);
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 24px;
    text-align: left;
    letter-spacing: 1px;
}

/* 行程列的底線與漸變動畫 */
.scheduleTable tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease-in-out; /* 滑鼠移入的微互動 */
}


/* 去除最後一行的底線，保持圓角收邊乾淨 */
.scheduleTable tbody tr:last-child th,
.scheduleTable tbody tr:last-child td {
    /* border-bottom: none; */
}

/* 左側：時間區塊 */
.scheduleTable tbody th.title {
    color: #666666;
    font-weight: 600;
    font-size: 15px;
    padding: 20px 24px;
    vertical-align: top;
    background-color: #fafafa; /* 讓時間欄位帶有一點極淡的灰底，與內容區隔 */
    border-right: 1px solid #eeeeee; /* 垂直分隔線 */
    border-bottom: 1px solid #eeeeee;
}

/* 右側：行程內容區塊 */
.scheduleTable tbody td.content {
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    padding: 20px 24px;
    vertical-align: top;
    border-bottom: 1px solid #eeeeee;
}

/* --- 手機版 RWD 卡片式表格調整 --- */
@media (max-width: 768px) {
    /* 0. 關鍵修復：解除表格預設屬性，強制變為區塊並填滿滿版寬度 */
    .scheduleTable, 
    .scheduleTable thead, 
    .scheduleTable tbody, 
    .scheduleTable tr, 
    .scheduleTable th, 
    .scheduleTable td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* 1. 隱藏原本複雜的表頭 (保留最上面的 Day 1 總標題) */
    .scheduleTable thead tr:not(:first-child) {
        display: none;
    }

    /* 2. 讓每個行程列 (tr) 變成獨立的卡片 */
    .scheduleTable tbody tr {
        /* margin-bottom: 20px; */
        border: 1px solid #eeeeee;
        /* border-radius: 8px; */
        /* overflow: hidden; */
        /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
    }

    /* 3. 時間區塊變成卡片的「頂部標題」 */
    .scheduleTable tbody th.title {
        background-color: #fafafa; /* 使用你的主題色 */
        color: #666; /* 如果背景太淺，可改成 #333 */
        padding: 12px 20px;
        font-size: 16px;
        text-align: center;
        
    }

    /* 4. 內容區塊改為 Flex 排列，讓標題和內容上下展開 */
    .scheduleTable tbody td.content {
        display: flex;
        flex-direction: column;
        padding: 15px 20px;
        font-size: 15px;
        text-align: left;
    }

    /* 5. 抓取 HTML 裡的 data-th 作為手機版的標題，並給予醒目的顏色 */
    .scheduleTable tbody td.content::before {
        content: attr(data-th);
        font-size: 13px;
        font-weight: bold;
        color: var(--primary_color, #ff383c); /* 醒目的標題色 */
        margin-bottom: 8px;
    }

    /* 6. 最重要的一步：如果該欄位沒有內容 (例如休息時間沒有分場地)，就整塊隱藏 */
    .scheduleTable tbody td.content:empty {
        display: none !important; /* 加上 !important 確保空內容強制隱藏 */
    }

    /* 卡片內最後一個項目的底線消除 */
    .scheduleTable tbody td:last-child {
        border-bottom: none;
    }
}

/* ========================================= */
/* Utility Classes (共用輔助類別，用來取代行內 CSS)
/* ========================================= */

/* 欄位寬度 */
.w-12 { width: 12%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-27 { width: 27%; }
.w-34 { width: 34%; }
.w-45 { width: 45%; }
.w-30 { width: 30%; }
.w-50 { width: 50%; }

/* 排版與對齊 */
.text-center { text-align: center !important; }
.align-middle { vertical-align: middle !important; }
.lh-md { line-height: 1.6 !important; }
.lh-lg { line-height: 1.8 !important; }
.font-bold { font-weight: bold !important; }

/* 顏色與大小 */
/* .text-highlight { color: #ff383c !important; } */
.text-sm { font-size: 0.85rem !important; }
.bg-light { background-color: #fafafa !important; }

/* 統一表頭次標題樣式 (自動套用，無需再寫 style) */
.scheduleTable thead th:not(.table-main-tit) {
    padding: 15px;
    color: #666;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* 消除最右邊的框線 */
.scheduleTable thead th:last-child {
    border-right: none; 
}



.text_area table{
    max-width: 100% !important; /*防止網編器內table爆版*/
}