/* 基礎設定 */
* {
    /* 移除所有元素的外邊距 (margin) */
    margin: 0;

    /* 移除所有元素的內邊距 (padding) */
    padding: 0;

    /* 將 box-sizing 設為 border-box，讓 padding 和 border 包含在元素的寬度和高度內 */
    box-sizing: border-box;
}

/* 字體變數設定 */
:root {
    --en-font: "Timses New Roman", Times, serif;
    --zh-font: "標楷體", "DFKai-SB", serif;
}

/* 基本版面設定 */
body {
    /* 設定字體序列，使用CSS變數定義的英文和中文字體 */
    /* 如果前面的字體無法使用，會依序往後找可用的字體 */
    font-family: var(--en-font), var(--zh-font);
    
    /* 設定背景顏色為淺灰色 */
    background-color: #F5F5F5;
    
    /* 將 body 設為 flex 容器 */
    display: flex;
    
    /* flex 容器內的元素垂直排列（由上到下） */
    flex-direction: column;
    
    /* 設定最小高度為視窗高度的 100%，確保內容少時頁面也能填滿整個視窗 */
    min-height: 100vh;
    
    /* 設定基礎字體大小為 22px */
    /* 一般瀏覽器的預設字體大小是 16px，調大為 22px 以提升可讀性 */
    font-size: 22px;
}

/* 自動判斷中英文字體 */
:lang(zh-TW),
:lang(zh) {
    font-family: var(--zh-font);
}
:lang(en) {
    font-family: var(--en-font);
}

/* 標題樣式 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--en-font), var(--zh-font);
}

/* 英文標題 */
h1:lang(en),
h2:lang(en),
h3:lang(en),
h4:lang(en),
h5:lang(en),
h6:lang(en) {
    font-family: var(--en-font);
}

/* Header 樣式 */
header {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 調整 header-content 為水平排列 */
.header-content {
    display: flex;
    justify-content: space-between;
    /* 左右兩端對齊 */
    align-items: center;
    /* 垂直居中 */
    margin-bottom: 20px;
}

/* 左側區域（logo和標題）樣式 */
.left-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Logo 樣式 */
.logo img {
    height: 90px;
    width: auto;

}
.en-logo img {
    height: 90px;
    width: auto;
    margin-bottom: 4px; /* 更大的下方空隙 */

}

/* 標題樣式 */
.title h1 {
    font-size: 48px;
    margin-top: 10px;
    color: #333;
}

.title-chinese {
    margin-left: 24px;
    font-size: 60px;
    /* 設定中文的字體大小 */
    font-family: var(--en-font), var(--zh-font);
}

.title-english {
    font-size: 36px;
    /* 設定英文字體大小 */
    font-family: "Times New Roman", Times, serif;
}

.title-name-english {
    margin-left: 24px;
    font-size: 58px;
    font-family: "Times New Roman", Times, serif;
}

.lang-switch button {
    /* 基礎定位與大小 */
    text-align: right;
    margin-top: 120px;
    
    /* 使用淺灰色背景，讓按鈕更明顯 */
    background: #F5F5F5;
    
    /* 文字樣式 */
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: var(--en-font), var(--zh-font);
    
    /* 添加實線邊框增加按鈕感 */
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    
    /* 內邊距 */
    padding: 10px 20px;
    
    /* 適中的陰影效果 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* 滑鼠游標 */
    cursor: pointer;
    
    /* 防止文字被選中 */
    user-select: none;
}

/* 移除 SVG 圖標相關的樣式 */
.lang-switch button::before {
    display: none;  /* 隱藏 SVG 圖標 */
}

.lang-switch button:hover {
    /* 懸停時加深邊框顏色 */
    border-color: #D0D0D0;
}

.lang-switch button:active {
    /* 點擊時的即時反饋 */
    background: #F8F8F8;
}

.lang-switch button:focus {
    outline: none;
    border-color: #D0D0D0;
}

/* 導航列樣式 - 統一中英文版本的樣式 */
.nav-links,
.nav-links-eng {
    display: flex;
    justify-content: space-around;
    align-items: center; /* 確保垂直置中 */
    height: 75px; /* 固定高度，可以根據需求調整 */
    padding: 0; /* 移除多餘的 padding */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-family: var(--en-font), var(--zh-font);
}

.nav-links a,
.nav-links-eng a {
    text-decoration: none;
    color: #333;
    font-size: 32px; /* 或根據需求調整 */
    padding: 0 15px; /* 僅左右留間距，避免影響固定高度 */
    transition: color 0.3s;
    font-family: var(--en-font), var(--zh-font);
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.nav-links-eng a {
    font-size: 30px; /* 根據需求保留不同字體大小 */
}

.nav-links a:hover {
    color: #007bff;
    font-family: var(--en-font), var(--zh-font);
}

.nav-links a.active {
    color: #007bff;
    font-weight: bold;
    font-family: var(--en-font), var(--zh-font);
}

/* 活動連結的樣式（兩種導航都適用） */
.nav-links a.active,
.nav-links-eng a.active {
    color: #007bff;
    font-weight: bold;
}

/* 懸停效果（兩種導航都適用） */
.nav-links a:hover,
.nav-links-eng a:hover {
    color: #0056b3;
}

/* 主要內容區域 */
main {
    flex: 1;
    padding: 30px;
    max-width: 1350px;
    margin: 0 auto;
    width: 100%;
}

.content-section {
    font-family: var(--en-font), var(--zh-font);
    display: none;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content-section.active {
    font-family: var(--en-font), var(--zh-font);
    display: block;
}

.content-box{
  border-radius: 20px;
  overflow: hidden;
}

/* 教授資訊區塊 */
.professor-info {
  display: flex;
  gap: 60px;              /* 左右距離像範例 */
  flex-wrap: nowrap;
  justify-content: center; /* 整體置中（像範例） */
  align-items: flex-start;
  padding-top: 30px;
}

/*照片大小*/
.professor-info img {
    width: 100%;            /* ⭐ 讓它可縮 */
    max-width: 180px;       /* ⭐ 最大維持 180px */
    height: auto !important;
    max-height: none !important;

    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    flex-shrink: 1;         /* ⭐ 允許縮（或直接刪掉這行也可以） */
    margin-top: 10px;
    align-self: flex-start;
}


.content-box{
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.professor-info table {
  flex: 1;
  width: auto;
  margin: 0;
  border-collapse: collapse;
}

.professor-info td {
  padding: 10px 12px;    /* 大行距 */
  font-size:24px;       /* 像範例那樣大字 */
  line-height: 1.3;
  color: #444;
  text-align: left;
  vertical-align: top;
}
.professor-info td:first-child{
    width: 160px;          /* ⭐ 縮小欄寬 */
    white-space: nowrap;
    font-weight: 700;      /* 不要太粗 */
    text-align: right;     
    padding-right: 25px;   /* ⭐ 間距縮小 */
    font-size: 26px;       /* ⭐ 控制標籤大小 */
}
.professor-info p {
    font-size: 22px;
    color: #444;
    line-height: 1.5;
    margin: 10px 0; /* 每段文字之間添加一些垂直間距 */
    font-family: 'Times New Roman', '標楷體', serif;
}
.professor-details {
    text-align: left; /* 文字左對齊 */
    font-family: 'Times New Roman', '標楷體', serif;
    margin-left: 0; /* 確保文字從左側開始 */
}
.info-item strong {
    font-weight: bold;
    color: #111;
    font-family: 'Times New Roman', '標楷體', serif;
}


.professor-info-en img {
    width: 120px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: block;
    position: relative;
    left: 70px; /* 將圖片向右移動 20px */
    top: -140px;      /* 往上移 */
}
.professor-info-en table {
    width: 70%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: transparent; /* 讓表格背景透明 */
    box-shadow: none; /* 移除陰影效果 */
    border: none; /* 移除邊框 */
}

.professor-info-en td {
    padding: 16px 16px 16px 100px; /* 增加左邊距，讓文字向右移動 */
    text-align: left;
    font-size: 22px;
    color: #444;
    font-family: 'Times New Roman', '標楷體', serif;
}




/* 簡歷區塊 */

/* 著作區塊 */
.publication-content {
    padding: 30px;
}

.publication-section h2 {
    font-family: var(--en-font), var(--zh-font);
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    padding-bottom: 10px;

}

/* 國際期刊論文 */
.category-section-inter-journal {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-section-inter-journal h3 {
    font-size: 28px;
    color: #2057a7;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: var(--en-font), var(--zh-font);
}

.certificate-section-inter-journal li {
    border-left: 3px solid #2057a7;
    padding-left: 15px;
    font-family: var(--en-font), var(--zh-font);
}

/* 國內期刊論文 */
.category-section-domestic-journal {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-section-domestic-journal h3 {
    font-size: 28px;
    color: #1a8754;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: var(--en-font), var(--zh-font);
}

.certificate-section-domestic-journal li {
    border-left: 3px solid #1a8754;
    padding-left: 15px;
    font-family: var(--en-font), var(--zh-font);
}

/* 國際會議論文 */
.category-section-inter-conference {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-section-inter-conference h3 {
    font-size: 28px;
    color: #6f42c1;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: var(--en-font), var(--zh-font);
}

.certificate-section-inter-conference li {
    border-left: 3px solid #6f42c1;
    padding-left: 15px;
    font-family: var(--en-font), var(--zh-font);
}

/* 國內會議論文 */
.category-section-domestic-conference {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-section-domestic-conference h3 {
    font-size: 28px;
    color: #fd7e14;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: var(--en-font), var(--zh-font);
}

.certificate-section-domestic-conference li {
    border-left: 3px solid #fd7e14;
    padding-left: 15px;
    font-family: var(--en-font), var(--zh-font);
}

/* 技術報告及其他 */
.category-section-tec-report {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-section-tec-report h3 {
    font-size: 28px;
    color: #b84d30;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: var(--en-font), var(--zh-font);
}

.certificate-section-tec-report li {
    border-left: 3px solid #b84d30;
    padding-left: 15px;
    font-family: var(--en-font), var(--zh-font);
}

/* 專利 */
.category-section-patent {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-section-patent h3 {
    font-size: 28px;
    color: #20957b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: var(--en-font), var(--zh-font);
}

.certificate-section-patent li {
    border-left: 3px solid #20957b;
    padding-left: 15px;
    font-family: var(--en-font), var(--zh-font);
}

/* 書籍 */
.category-section-book {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.category-section-book h3 {
    font-size: 28px;
    color: #0a4275;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: var(--en-font), var(--zh-font);
}

.certificate-section-book ol {
    padding-left: 50px;
    /* 增加左邊距，讓數字往後移 */
    font-family: var(--en-font), var(--zh-font);
    list-style-type: decimal;
    /* 確保使用數字列表 */
    list-style-position: outside;
    /* 數字放在內容外側 */
}

.certificate-section-book li {
    margin-bottom: 15px;
    border-left: 3px solid #0a4275;
    padding-left: 10px;
    font-family: var(--en-font), var(--zh-font);
}

.certificate-section-book strong {
    font-family: var(--en-font), var(--zh-font);
    color: #0a4275;
    border-bottom: 2px solid #0a4275;
}

/*著作-專利區塊*/
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--en-font), var(--zh-font);
}

.publication-item {
    display: flex;
    gap: 15px;
    line-height: 1.6;
}

.publication-number {
    flex-shrink: 0;
    color: #007bff;
    font-weight: bold;
}

.publication-item p {
    font-family: var(--en-font), var(--zh-font);
    margin: 0;
    text-align: justify;
}

.publication-list strong {
    font-family: var(--en-font), var(--zh-font);
    /*
    color: #b91c1c;
    border-bottom: 2px solid #b91c1c;*/
}

.patent-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.patent-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.patent-item:hover {
    transform: translateX(10px);
    background-color: #f8f9fa;
}

.patent-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
}

.patent-info dt {
    color: #007bff;
    font-weight: bold;
    min-width: 100px;
}

.patent-info dd {
    margin: 0;
}

.patent-inventors {
    margin-bottom: 10px;
}

.patent-inventors .highlight {
    font-weight: bold;
    color: #007bff;
    background-color: #e7f1ff;
    padding: 2px 5px;
    border-radius: 3px;
}

/* 專利編號特殊樣式 */
.patent-id {
    font-family: "Times New Roman", serif;
    color: #666;
}


/* 課程區塊 */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.semester-block {
    margin-bottom: 25px;  /* 增加區塊之間的間距 */
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.08);  /* 三層陰影效果 */
}

.semester-block h3 {
    font-size: 28px;
    color: #0056b3;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: var(--en-font), var(--zh-font);
    text-align: center
}

.semester {
    margin-bottom: 20px;
}

.semester:last-child {
    margin-bottom: 0;
}

.semester h4 {
    font-size: 22px;
    color: #555;
    margin-bottom: 10px;
    font-family: var(--en-font), var(--zh-font);
    text-align: center
}

.semester ul {
    list-style: none;
    padding-left: 30px;
    font-family: var(--en-font), var(--zh-font);
}

.semester li {

    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;

    font-family: var(--en-font), var(--zh-font);
    flex: 1;
}

.semester li:before {
    content: "•";
    position: absolute;
    left: 0;
    color:  #000000
}

/* 頁尾 */
footer {
    /* 設定背景色為深灰色 */
    background-color: #333;
    
    /* 設定文字顏色為白色 */
    color: #fff;
    
    /* 文字置中對齊 */
    text-align: center;
    
    /* 設定內邊距為 20px */
    padding: 20px;
    
    /* 將 footer 推到底部，   使內容很少也會貼在底部 */
    margin-top: auto;
    
    /* 設定字體，繼承自 CSS 變數定義的字體 */
    font-family: var(--en-font), var(--zh-font);
}


/* 計畫頁面樣式 */
.collapsible-section {
    width: 100%;
    margin-bottom: 20px;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.collapsible-header h3 {
    font-size: 28px;
    /*color: #0056b3;*/
    margin: 0;
}

.chevron-down {
    /*color: #0056b3;*/
    transition: transform 0.3s ease;
}

.chevron-down.active {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.collapsible-content.active {
    max-height: 5000px;
    opacity: 1;
}

.projects-container {
    margin-top: 16px;
    padding: 24px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plan-content {
    padding: 30px;
}

.plan-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    font-family: var(--en-font), var(--zh-font);
}

.plan-section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #0056b3;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2);  /* 使用 #0056b3 的陰影 */
    font-family: var(--en-font), var(--zh-font);
}

.plan-section h3 {
    font-size: 28px;
    color: #0056b3;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-family: var(--en-font), var(--zh-font);
}

.plan-section-other {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #2E8B57;
    box-shadow: 0 2px 5px rgba(46, 139, 87, 0.2);  /* 使用 #2E8B57 的陰影 */
    font-family: var(--en-font), var(--zh-font);
}

.plan-section-other h3 {
    font-size: 28px;
    color: #2E8B57;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-family: var(--en-font), var(--zh-font);
}

.plan-list {
    /* 使用 flex 布局，讓子元素可彈性排列 */
    display: flex;
    /* 設定 flex 子元素垂直排列（從上到下） */
    flex-direction: column;
    /* 設定子元素之間的間距為 10px */
    gap: 10px;
}

.plan-item {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: var(--en-font), var(--zh-font);
}


.plan-period {
    /*color: #0056b3;*/
    font-size: 20px;
    margin-bottom: 8px;
    font-family: var(--en-font), var(--zh-font);
}

.plan-period-other {
    font-size: 20px;
    margin-bottom: 8px;
    font-family: var(--en-font), var(--zh-font);
}

.plan-title {
    color: #0056b3;
    font-size: 22px;
    margin-bottom: 8px;
    font-family: var(--en-font), var(--zh-font);
}
.plan-other-title {
    color: #2E8B57;
    font-size: 22px;
    margin-bottom: 8px;
    font-family: var(--en-font), var(--zh-font);
}

.plan-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 16px;
    font-family: var(--en-font), var(--zh-font);
}

.plan-info span {
    padding-right: 16px;
    border-right: 1px solid #ddd;
    font-family: var(--en-font), var(--zh-font);
}

.plan-info span:last-child {
    border-right: none;
}


/* 介紹頁面樣式 */
.introduction-content {
    padding: 30px;
}

.last-updated {
    text-align: right;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
    font-size: 18px;
    font-family: var(--en-font), var(--zh-font);
}

/*inrtoduction-簡歷區塊*/

.intro-section {
    margin-bottom: 40px; /* 元素底部的外邊距，讓其他元素保持 40px 的距離 */
    background-color: #fff; /* 元素的背景顏色設定為白色 */
    border-radius: 8px; /* 元素的四個角設置為圓角，半徑為 8px */
    padding: 20px; /* 元素內邊距，讓內容與邊界保持 20px 的距離 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加陰影效果，模擬浮動效果，陰影的透明度為 10% */
    font-family: var(--en-font), var(--zh-font); /* 設定字型，優先使用自定義的英文和中文字型 */
}

.section-content {
    line-height: 1.6;   /*增加行高以提升可讀性*/

}
.section-content p {
    text-align: justify;
    margin-bottom: 15px;
    font-family: var(--en-font), var(--zh-font);
}
.section-content ol {
    padding-left: 50px;
    /* 增加左邊距，讓數字往後移 */
    font-family: var(--en-font), var(--zh-font);
    list-style-type: decimal;
    /* 確保使用數字列表 */
    list-style-position: outside;
    /* 數字放在內容外側 */
}
.section-content li {
    margin-bottom: 15px;
    padding-left: 80px;
    /* 保持原有的內容縮進 */
    font-family: var(--en-font), var(--zh-font);
}
.section-content strong {
    font-family: var(--en-font), var(--zh-font);
    /*color: #b91c1c;
    border-bottom: 2px solid #b91c1c;*/
}
.section-content a {
    margin-left: 10px;
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
    padding: 0 4px;
    /* 減少內邊距 */
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* 縮小圖標和文字的間距 */
    transition: transform 0.3s ease;
    font-family: var(--en-font), var(--zh-font);
    line-height: inherit;
    /* 繼承父元素的行高 */
    vertical-align: baseline;
    /* 文字基線對齊 */
}
.section-content a i {
    font-size: 1.0em;
}
.section-content a:hover {
    text-decoration: underline;
    /*transform: translateX(10px);*/
    color: #0044aa;
}

/* 經歷區塊特殊樣式 */
.experience-section li {
    /* 使用 flex 佈局來控制列表項目的排列方式 */
    display: flex;

    /* 將項目內的元素基於基準線(baseline)對齊 */
    /* baseline 是文字的基準線，這樣可以確保不同大小的文字能夠整齊對齊 */
    align-items: baseline;
}

/* 榮譽獎項區塊特殊樣式 */
.honors-section li {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 考試證照區塊特殊樣式 */
.introduction-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.introduction-item {
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
    gap: 10px;
}

.introduction-item:hover {
    transform: translateX(10px);
    background-color: #e9ecef;
}

/*論文審查*/
.review-content {
    font-size: 24px;
    /* 更大的字體 */
    font-weight: 700;
    /* 更粗的體 */
    color: #2d3748;
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 6px;
}

.review-count {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

/*指導大學專題*/
.teach-college {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/*指導研究生*/
.teach-master {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/*演講*/
/* 演講區塊樣式 */
.speech-section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.speech-section h2 {
    font-size: 28px;
    color: #0056b3;
    margin-bottom: 25px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;    /* 新增這行來垂直置中 */
    justify-content: center;  /* 新增這行來水平置中 */
    gap: 10px;
}

/*
.speech-section h2::before {
    content: "🎤";
    font-size: 24px;
}
*/
.speech-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.speech-item {
    padding: 15px;
    padding-left: 19px;
    /* 增加左邊padding以容納圓弧邊條 */
    /*background-color: #f8f9fa;*/
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 8px;
    /* 改為完整的圓角 */
    border: 2px solid #e8e8e8;
    /* 添加邊框 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* 添加柔和的陰影 */
}

/* 新增偽元素來製作圓弧邊條 */
/*
.speech-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #e8e8e8;
    border-radius: 4px 0 0 4px; /* 左側圓弧 */
/*
}
*/
/*
.speech-item:hover {
    transform: translateX(10px);
    background-color: #e9ecef;
}
    */
.speech-date {
    font-size: 20px;
    /*color: #666;*/
    font-family: "Times New Roman", serif;
    margin-bottom: 4px;
    font-family: var(--en-font), var(--zh-font);
}

.speech-title {
    font-size: 22px;
    margin-bottom: 4px;
    /*font-weight: bold;*/
    font-family: var(--en-font), var(--zh-font);
}

/* Venue 和 Note 相關樣式 */
.speech-info-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.speech-venue,
.speech-note {
    color: #666;
    display: inline-block;
    /* 保持它們在同一行 */
    vertical-align: middle;
    /* 確保垂直對齊 */
    margin: 0;
    /* 移除默認的 margin */
    font-size: 18px;
}

/* 為分隔線調整樣式 */
.speech-note {
    position: relative;
    padding-left: 15px;
    /* 預留分隔線空間 */
}

.speech-note::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background-color: #ccc;
    /* 灰色分隔線 */
    border-radius: 5px;
}


/*
/* 時間線效果
.speech-list::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}*/





/*
.pdf-container {
    width: 100%;
    height: calc(100vh - 200px);
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-container iframe {
    border: none;
}
/* PDF 下載區塊樣式 */
/*
.pdf-download {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pdf-download h2 {
    color: #333;
    margin-bottom: 20px;
}

.pdf-download p {
    color: #666;
    margin-bottom: 30px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #007bff;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #0056b3;
}

.download-btn .icon {
    font-size: 24px;
}

/* 課表容器樣式 */
.schedule-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
}

/* 課表標題區域 */
.schedule-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.schedule-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.update-date {
    color: #666;
    font-size: 14px;
}

/* 課表圖片容器 */
.schedule-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 課表圖片 */
.schedule-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    /*transition: transform 0.3s ease;*/
}






/* 移除或修改 @media 響應式設計 */
@media (max-width: 768px) {

    /* 基本容器設定 */
    body {
        min-width: 1350px;
        /* 設定最小寬度，與桌面版相同 */
        overflow-x: auto;
        /* 允許水平滾動 */
        -webkit-overflow-scrolling: touch;
        /* iOS 滾動優化 */
    }

    /* 保持 header 的原始樣式 */
    .header-content {
        flex-direction: row;
        /* 保持水平排列 */
        justify-content: space-between;
        align-items: center;
    }

    /* 保持導航列的原始樣式 */
    .nav-links,
    .nav-links-eng {
        flex-direction: row;
        /* 保持水平排列 */
        font-size: 34px;
        /* 保持原始字體大小 */
    }

    .nav-links a,
    .nav-links-eng a {
        width: auto;
        /* 移除 100% 寬度設定 */
        font-size: 34px;
        /* 保持原始字體大小 */
        padding: 5px 15px;
        /* 保持原始間距 */
    }

    /* 保持 main 內容區的原始樣式 */
    main {
        max-width: 1350px;
        /* 保持原始寬度 */
        padding: 30px;
        /* 保持原始間距 */
    }

    /* 保持表格的原始樣式 */
    .professor-info table {
        min-width: 350px;
        /* 保持原始寬度 */
    }

    .professor-info th,
    .professor-info td {
        font-size: 22px;
        /* 保持原始字體大小 */
        padding: 12px;
        /* 保持原始間距 */
    }

    /* 移除所有強制垂直布局的設定 */
    .professor-info {
        flex-direction: row;
    }
}

@media (max-width: 768px) {

    /* 基本容器設定 */
    body {
        transform: scale(0.8);
        /* 整體縮小到 50%，你可以調整這個數值 */
        transform-origin: top left;
        /* 從左上角開始縮放 */
        width: 200%;
        /* 補償縮放後的寬度 */
        max-width: 200%;
        /* 確保不會超出 */
    }

    /* 保持主要內容區域的寬度 */
    main {
        max-width: 1350px;
        margin: 0 auto;
    }

    /* 保持原本的字體大小比例 */
    .title h1 {
        font-size: 48px;
    }

    .title-chinese {
        font-size: 60px;
    }

    .title-english {
        font-size: 36px;
    }

    /* 導航列保持原始大小 */
    .nav-links a,
    .nav-links-eng a {
        font-size: 40px;
    }
}

@media (max-width: 768px) {

    /* 使用 vw 單位讓內容隨螢幕寬度等比例縮放 */
    :root {
        --scale-ratio: 1;
        /* 基準縮放比例 */
    }

    body {
        font-size: calc(24px * var(--scale-ratio));
        /* 基礎字體大小縮放 */
    }

    .title h1 {
        font-size: calc(48px * var(--scale-ratio));
    }

    .title-chinese {
        font-size: calc(60px * var(--scale-ratio));
    }

    .title-english {
        font-size: calc(36px * var(--scale-ratio));
    }

    .nav-links a,
    .nav-links-eng a {
        font-size: calc(34px * var(--scale-ratio));
    }

    /* 其他元素的大小也按比例縮放 */
    .professor-info img {
        width: calc(300px * var(--scale-ratio));
        height: calc(425px * var(--scale-ratio));
    }
}




/* 展開區塊基本樣式 */
.expandable-section {
    margin: 20px 0;
    margin-bottom: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    font-family: var(--en-font), var(--zh-font);
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 標題樣式設定 */
.expandable-section h2 {
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 28px;
    font-family: var(--en-font), var(--zh-font);
    text-align: center;
    width: 100%;
    text-shadow: 0.5px 0.5px 1px rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* 內容區域的基本樣式 */
.expandable-content {
    position: relative;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    padding-right: 20px;
}

/* 段落文字樣式 */
.expandable-content p {
    text-align: justify;
    text-indent: 2em;
    margin-bottom: 15px;
    font-family: var(--en-font), var(--zh-font);
}

/* 有序列表樣式 */
.expandable-content ol {
    padding-left: 50px;
    font-family: var(--en-font), var(--zh-font);
    list-style-type: decimal;
    list-style-position: outside;
}

/* 無序列表樣式 */
.expandable-content ul {
    padding-left: 10px;  /* 減少左邊距使點點更靠左 */
    font-family: var(--en-font), var(--zh-font);
    list-style-type: disc;  /* 實心圓點 */
    list-style-position: outside;  /* 點點位置在文字區域外 */
}

/* 列表項目樣式 */
.expandable-content li {
    margin-bottom: 15px;
    padding-left: 30px;
    font-family: var(--en-font), var(--zh-font);
}

/* 強調文字樣式 */
.expandable-content strong {
    font-family: var(--en-font), var(--zh-font);
    color: #b91c1c;

}
/* 連結樣式 */
.expandable-content a {
    margin-left: 10px;
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
    padding: 0 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.3s ease;
    font-family: var(--en-font), var(--zh-font);
    line-height: inherit;
    vertical-align: baseline;
}

/* 連結中的圖標樣式 */
.expandable-content a i {
    font-size: 1.0em;
}

/* 連結懸停效果 */
.expandable-content a:hover {
    text-decoration: underline;
    color: #0044aa;
}


.course-semester {
    margin-bottom: 20px;
}

.course-semester:last-child {
    margin-bottom: 0;
}

.course-semester h4 {
    font-size: 25px;
    color: #555;
    margin-top: 20px;
    font-family: var(--en-font), var(--zh-font);
    text-align: center
}

.course-semester ul {
    list-style: none;
    padding-left: 30px;
    font-family: var(--en-font), var(--zh-font);
}

.course-semester li {
    font-size: 22px;
    margin-bottom: 5px;
    line-height: 1.6;
    position: relative;
    text-align: center;
    font-family: var(--en-font), var(--zh-font);
    flex: 1;
}

/* ... existing code ... */

/* 移除 body 的動畫 */
body {
    opacity: 1; /* 改為直接顯示 */
}

/* 主要內容區域動畫 */
main {
    opacity: 0;
    animation: contentSlideUp 0.6s ease-out forwards;
}

@keyframes contentSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 內容區塊動畫 */
.content-section {
    opacity: 0;
    animation: sectionSlideUp 0.7s ease-out 0.1s forwards;
}

@keyframes sectionSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 導航連結動畫效果 */
.nav-links a,
.nav-links-eng a {
    transition: all 0.3s ease;
    position: relative;
}

/* 導航連結懸停效果 */
.nav-links a::after,
.nav-links-eng a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #0044aa;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links-eng a:hover::after {
    width: 100%;
}

/* 活動狀態的導航連結 */
.nav-links a.active::after,
.nav-links-eng a.active::after {
    width: 100%;
}

/* 導航容器樣式 */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: px 0;  /* 只改這一行，減少上下內邊距 */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}