/* 頁面標題區塊 */
.page-title-section {
    display: block !important;
    margin: 12px 0 20px 0 !important;
    position: relative !important;
    padding-left: 5px;
}

.page-main-title {
    color: rgb(5, 71, 0);
    font-size: 30px;
    font-weight: 800;
    margin: 0 !important;
    letter-spacing: 1px;
}

/* 分頁按鈕樣式 */
.main-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 8px 10px 30px 0;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    max-width: 240px;
    min-width: 150px;
    padding: 6px 30px;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    border: 2px solid #e0e0e0;
    background: transparent;
    color: #999;
    white-space: nowrap;
}

.tab-btn.active {
    background: rgb(5, 71, 0) !important;
    color: white !important;
    border: 2px solid rgb(5, 71, 0) !important;
}

/* 1. 確保標籤容器與那條「多出來的線」是重疊的 */
.tabs-container {
    display: flex !important;
    gap: 10px !important;
    padding-left: 20px !important;
    position: relative !important;
    z-index: 1 !important; /* 平時層級低 */
    margin-bottom: -2px !important; /* 🌟 物理重疊：讓容器往下踩 2px，去跟線重合 */
}


/* 2. 🌟 找回那條「多出來的線」的控制權 */
/* 假設它是容器後的 hr 或一個特定 div (根據你之前的結構) */
.tabs-container + hr, 
.tabs-container + div.line-separator {
    position: relative !important;
    height: 2px !important;
    background-color: #ddd !important;
    border: none !important;
    margin: 0 !important;
    z-index: 5 !important; 
    pointer-events: none !important;    
}



/* 3. 頁籤按鈕：平時被壓在下面 */
.tab-btn {
    background-color: #f8f8f8 !important;
    border: 2px solid #ddd !important;
    border-bottom: none !important; /* 底部不給線，直接借用下面那條厚線 */
    border-radius: 8px 8px 0 0 !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    position: relative !important;
    transition: none !important;
}

/* 4. 🌟 畫框用途：Hover 時「反客為主」 */
.tab-btn:hover {
    background-color: #e0e0e0 !important;
    border: 2px solid #bbb !important; /* 🌟 這是三邊加粗 */
    
    /* 🌟 核心關鍵：讓底部也顯現出加深的 2px 框線 */
    /* 這樣它就會蓋過原本那條淡灰色的 2px 地平線 */
    border-bottom: 2px solid #bbb !important; 
    
    /* 提升層級，確保加深後的框線「壓」在原本的地平線之上 */
    z-index: 20 !important; 
    
    /* 物理位移微調，確保遮擋精準 */
    bottom: -1px !important;
    padding: 9px 19px 10px 19px !important;
}

/* 🌟 選中狀態 (Active) 也同步處理 */
.tab-btn.active {
    background-color: rgb(5, 71, 0) !important;
    color: white !important;
    border: 2px solid rgb(5, 71, 0) !important;
    border-bottom: 2px solid rgb(5, 71, 0) !important;
    z-index: 15 !important;
    bottom: -1px !important;
    padding: 9px 19px 10px 19px !important;
}

/* 🌟 如果原本有 .active 類別，確保它的綠色權重夠高 */
.tab-btn.active {
    background-color: rgb(5, 71, 0) !important;
    color: white !important;
    border-color: rgb(5, 71, 0) !important;
}


.sub-tabs-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 10px 0;
}

.sub-btn {
    min-width: 200px;
    padding: 8px 20px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    background: #f5f5f5 !important;
    color: #999 !important;
    cursor: pointer;
}

.sub-btn.active {
    background: rgb(5, 71, 0) !important;
    color: white !important;
    border-color: rgb(5, 71, 0) !important;
}

/* 數值熱力色 (全站通用) */
.val-high {
    color: #2e7d32;
    font-weight: bold;
}

.val-mid {
    color: #1565c0;
}

.val-low {
    color: #c62828;
}