section {
    margin-bottom: 40px; /* 設置每個 section 底部的間隔 */
}

p {
    margin-bottom: 20px; /* 設置段落底部的間隔 */
}

h1 {
    font-size: 2.5em; /* 調整 h1 標題字體大小 */
    font-weight: bold; /* 確保字體加粗 */
}

h2 {
    font-size: 2em; /* 調整 h2 標題字體大小 */
    font-weight: bold;
}

h3 {
    font-size: 1.5em; /* 調整 h3 標題字體大小 */
    font-weight: bold;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff; /* 設置背景色為白色 */
    color: #333; /* 設置字體顏色為深灰色 */
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #feee05;
    text-decoration: none;
    font-size: 1.2em; /* 調整字體大小 */
    font-weight: bold; /* 設置字體加粗 */
}

main {
    padding: 20px;
    padding-bottom: 60px; /* 增加底部空間 */
}

footer {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px; /* 控制項目之間的間距 */
}

section#home p {
    font-size: 1.1em; /* 調整字體大小 */
}

section#home img {
    width: 90%; /* 調整圖片寬度 */
    max-width: 1000px; /* 設置最大寬度 */
    height: auto; /* 保持圖片比例 */
    display: block;
    margin: 0 auto; /* 使圖片居中 */
}

section#teachers li img {
    width: 30%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin: 20px auto 20px; /* 增加圖片底部的間隔 */
}

section#teachers p,
section#teachers ul li {
    font-size: 1.1em; /* 調整字體大小 */
}

section#courses p,
section#courses ul li {
    font-size: 1.1em; /* 調整字體大小 */
}

section#ideas p,
section#ideas ul li {
    font-size: 1.1em; /* 調整字體大小 */
}

.back-to-top {
    display: inline-block;
    margin-top: 20px;
    padding: 5px 15px;
    background-color: #333; /* 按鈕背景色改為深灰 */
    color: #fff; /* 按鈕文字顏色改為白色 */
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #555; /* 按鈕懸停時的背景色改為較淺的灰色 */
}

.article-source {
    margin-bottom: 5px;
    color: #666;
    font-style: italic;
}

.article-link {
    margin-top: 0;
    margin-bottom: 30px;
}

.article-link a {
    color: #0066cc;
    text-decoration: none;
}

.article-link a:hover {
    text-decoration: underline;
}

.teacher-profile {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.teacher-content {
    flex: 1;
    font-size: 1.0em;
    line-height: 1.6;
}

.teacher-image {
    flex: 0 0 600px; /* 從300px改為600px */
    margin-left: -5cm; /* 向左移動5cm */
}

.teacher-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.article-list {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.article-list ul {
    list-style: none;
    padding: 0;
}

.article-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.article-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-list a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.article-source-inline {
    font-size: 0.9em;
    color: #666;
    margin-left: 10px;
}

.article-source-inline a {
    color: #0066cc;
}