/* 基礎設定 */
* {
    box-sizing: border-box;
}

body {
    background-color: #f4f7f6;
    color: #333;
    font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Main 容器：控制整體寬度與置中 */
.intro {
    max-width: 850px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 導覽列設計 */
nav {
    background: #2c3e50;
    padding: 15px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: center;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    display: inline-block; /* 讓導覽列水平排列 */
}

nav a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* 標題樣式 */
h1, h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* 圖片樣式 */
img {
    display: block;
    margin: 20px 0;
    border-radius: 8px;
    border: 3px solid #eee;
    object-fit: cover;
}

/* 技能列表 */
.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.skills-list li {
    background: #34495e;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 專案與 PDF 連結 */
#projects {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

#projects a {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

#projects a:hover {
    background: #d35400;
}

/* 聯絡方式區塊 */
#profile {
    max-width: 850px;
    margin: 20px auto;
    padding: 0 40px;
}

dl {
    background: #fff;
    padding: 20px;
    border-left: 5px solid #3498db;
}

dt {
    font-weight: bold;
    color: #2c3e50;
}

/* 頁尾 */
footer {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
    font-size: 0.85rem;
}