/* 全域樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #d9eaf7;
    color: #333;
    line-height: 1.6;
}

/* 頁首樣式 */
header {
    background-color: #1e66aa;
    color: white;
    padding: 15px 20px;
    text-align: left;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

nav .logo {
    height: 50px;
    margin-right: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #00264d;
}

/* 主要內容區域 */
section {
    padding: 50px 20px;
    text-align: left;
    background-color: #f2f5f7;
    border-left: 5px solid #6699cc;
    margin: 10px 0;
}

h1, h2 {
    margin-bottom: 20px;
    color: #004080;
}

p {
    font-size: 18px;
}

/* 頁尾樣式 */
footer {
    background-color: #1e66aa;
    color: white;
    text-align: left;
    padding: 15px;
    position: relative;
}

#toolBox h2 {
    color: #004080;
    margin-bottom: 10px;
}

#toolBox p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

#toolBox ul {
    list-style: none;
    padding: 0;
    margin-left: 20px; /* 增加左邊距離，模擬階層感 */
}

#toolBox ul li {
    margin: 10px 0;
    position: relative;
    padding-left: 20px; /* 增加內邊距，讓條列符號更明顯 */
}

#toolBox ul li::before {
    content: "•"; /* 使用圓點作為條列符號 */
    position: absolute;
    left: 0;
    color: #1e66aa;
    font-size: 18px;
}

#toolBox ul li a {
    text-decoration: none;
    color: #1e66aa;
    font-weight: bold;
    transition: color 0.3s;
}

#toolBox ul li a:hover {
    color: #004080;
}

/* #about .about-container {
    display: flex;
    align-items: center;
    gap: 20px; 
}

#about img {
    flex-shrink: 0;
    max-width: 150px; 
    height: auto; 
}

#about p {
    flex: 1; 
    font-size: 16px;
    color: #555;
} */

#about .about-container {
    display: flex;
    align-items: flex-start; /* 圖片與文字頂端對齊 */
    gap: 20px; /* 圖片與文字的間距 */
    flex-wrap: wrap; /* 允許圖片換行 */
}

#about img {
    flex-shrink: 0; /* 防止圖片縮小 */
    max-height: 200px; /* 限制圖片最大寬度 */
    height: auto; /* 保持圖片比例 */
    border-radius: 10px; /* 圓角效果 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加陰影 */
}

#about p {
    flex: 1; /* 讓段落填滿剩餘空間 */
    font-size: 16px;
    color: #555;
}

.highlight-link {
    color: #ffffff; /* 白色文字 */
    background-color: #1e66aa; /* 深藍背景 */
    font-weight: bold; /* 加粗文字 */
    padding: 5px 10px; /* 增加內邊距 */
    border-radius: 5px; /* 圓角效果 */
    text-decoration: none; /* 移除底線 */
    transition: background-color 0.3s, color 0.3s; /* 增加過渡效果 */
}

.highlight-link:hover {
    background-color: #004080; /* 更深的藍色背景 */
    color: #d9eaf7; /* 淺藍文字 */
}

.email-link {
    color: #ffffff; /* 白色文字 */
    background-color: #1e66aa; /* 深藍背景 */
    font-weight: bold; /* 加粗文字 */
    padding: 5px 10px; /* 增加內邊距 */
    border-radius: 5px; /* 圓角效果 */
    text-decoration: none; /* 移除底線 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加陰影 */
    transition: background-color 0.3s, box-shadow 0.3s; /* 增加過渡效果 */
}

.email-link:hover {
    background-color: #004080; /* 更深的藍色背景 */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* 增強陰影效果 */
}

/* 響應式設計 */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    #about .about-container {
        flex-direction: column;
        text-align: center;
    }

    #about img {
        margin-bottom: 20px;
        max-width: 100%;
    }
}
