/* 基本設定 */
body {
    font-family: "Microsoft JhengHei", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    background-color: #f9f9f9;
   
}
.ntou-main-title {
    background-color: #f4f7fa;
    color: #002b49;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 16px 20px;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: 1px;
}
.table-container {
    width: 100%;
    overflow-x: auto;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 10px;
    box-sizing: border-box;
}

/* 表格本體 */
.academic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: center;
}

    /* 表頭樣式 */
    .academic-table thead tr {
        background-color: #eef2f5;
        border-bottom: 2px solid #555555;
        color: #222222;
    }

    .academic-table th {
        padding: 8px 4px;
        font-weight: bold;
        border: 1px solid #dcdcdc;
    }

.sub-header th {
    font-size: 13px;
}

.sub-note {
    font-size: 11px;
    font-weight: normal;
    color: #666;
}

/* 欄位寬度與對齊 */
.col-college {
    width: 15%;
}

.col-dept {
    width: 35%;
}

.col-group {
    width: 22%;
}

.col-page {
    width: 8%;
}

.college-name {
    font-weight: bold;
    font-size: 15px;
    line-height: 1.3;
    vertical-align: middle;
    border-right: 1px solid #cccccc;
}

    .college-name a {
        color: #333333;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .college-name a:hover {
            color: #0056b3;
            text-decoration: none; /* 學院名稱也去掉底線 */
            background-color: rgba(255, 255, 255, 0.6); /* 微亮的半透明背景襯托 */
        }

.dept-name {
    text-align: left;
    padding-left: 12px !important;
}

    /* -------------------------------------------------- */
    /* 系所名稱 <a> 連結專屬樣式 (無底線 + 懸停動畫) */
    /* -------------------------------------------------- */
    .dept-name a {
        color: #2b3a4a; /* 深文字顏色，保持易讀性 */
        text-decoration: none; /* 無底線 */
        font-weight: 500;
        display: inline-block;
        position: relative;
        padding: 2px 4px;
        border-radius: 4px;
        transition: all 0.25s ease-in-out;
    }

        /* 滑鼠懸停 (Hover) 效果：字體變色、微亮背景、右移提示 */
        .dept-name a:hover {
            color: #0056b3; /* 滑鼠移上去變為經典藍色 */
            background-color: rgba(255, 255, 255, 0.6); /* 微亮的半透明背景襯托 */
            text-decoration: none; /* 確保 Hover 時依然沒有底線 */
            transform: translateX(4px); /* 文字輕微向右偏移，增加互動感 */
        }

        /* 滑鼠點擊瞬間 (Active) 效果 */
        .dept-name a:active {
            transform: translateX(2px) scale(0.98);
        }

/* 儲存格樣式 */
.academic-table td {
    padding: 6px 4px;
    border: 1px solid #ffffff;
}

/* 停招等小標籤 */
.tag {
    font-size: 11px;
    color: #555555;
    margin-left: 2px;
}

/* 各學院色系 background */

/* 海洋暨管理學院 - 淡藍灰 */
.bg-blue {
    background-color: #e6ecf2;
}

    .bg-blue.stripe {
        background-color: #d8e2ec;
    }

/* 生命科學院 - 淡灰綠 */
.bg-green {
    background-color: #e5ebe6;
}

    .bg-green.stripe {
        background-color: #d6e2d8;
    }

/* 海洋科學與資源學院 - 淡粉橘 */
.bg-pink {
    background-color: #fbebee;
}

    .bg-pink.stripe {
        background-color: #f7dcd1;
    }

/* 工學院 - 淡黃 */
.bg-yellow {
    background-color: #fcf5e5;
}

    .bg-yellow.stripe {
        background-color: #f7ebd0;
    }

/* 電機資訊學院 - 淡紫 */
.bg-purple {
    background-color: #f0eaf3;
}

    .bg-purple.stripe {
        background-color: #e2d7e8;
    }

/* 人文社會科學院 - 淡粉紫/橘淡 */
.bg-orange {
    background-color: #f8eaed;
}

    .bg-orange.stripe {
        background-color: #f0d8df;
    }

/* 海洋法律與政策學院 - 淡綠青 */
.bg-cyan {
    background-color: #e6f0ed;
}

    .bg-cyan.stripe {
        background-color: #d4e5e0;
    }

/* 國際學院 - 淡黃綠 */
.bg-olive {
    background-color: #f4f6e6;
}

    .bg-olive.stripe {
        background-color: #eaedd2;
    }

/* 底部註解 */
.table-notes {
    margin-top: 15px;
    font-size: 12px;
    color: #555555;
    line-height: 1.6;
    padding: 0 5px;
}

    .table-notes p {
        margin: 4px 0;
    }
