/* =========================================
   Lesson 06: 全域設定 (字體、顏色、背景)
   ========================================= */
* {
    /* Lesson 05: 設定所有元素使用 border-box，避免 padding 撐開寬度 */
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.8;
    color: #2c3e50; /* 深藍灰色，比純黑更有質感 */
    background-color: #f0f4f8; /* 淺藍灰底色 */
    margin: 0;
    padding: 0;
}

/* =========================================
   Lesson 05 & 06: 區塊與頁首樣式
   ========================================= */
header {
    background-color: #34495e;
    color: #ffffff;
    padding: 30px 0; /* 內距：上下 30px，左右 0 */
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

nav ul li {
    display: inline;
    margin: 0 20px; /* 外距：左右間隔 20px */
}

/* Lesson 07: Pseudo-class (偽類) 應用 */
nav ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s; /* 平滑過渡效果 */
}

nav ul li a:hover {
    color: #3498db; /* 滑鼠移上去變藍色 */
    text-decoration: underline;
}

/* =========================================
   Lesson 05: 主要內容區塊 (Box Model)
   ========================================= */
main {
    max-width: 800px;
    margin: 40px auto; /* 上下 40px，左右 auto 達到水平置中 */
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Lesson 07: ID 選擇器應用 */
#about, #skills, #contact {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

/* Lesson 07: Pseudo-element (偽元素) 應用 */
section h2::before {
    content: "■ "; /* 在標題前自動加入小方塊 */
    color: #3498db;
    margin-right: 10px;
}

/* 照片樣式設定 */
#about img {
    display: block;
    margin: 20px 0;
    border-radius: 50%; /* Lesson 05: 圓角設定 (50% 為正圓) */
    border: 6px solid #ecf0f1;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.4s;
}

#about img:hover {
    transform: scale(1.05); /* 滑鼠移入稍微放大 */
}

/* =========================================
   Lesson 06: 字體與元素強化
   ========================================= */
strong {
    color: #e67e22; /* 強調顏色：橘色 */
    font-size: 1.1em;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #7f8c8d;
    font-size: 0.85rem;
    background-color: #ecf0f1;
}