/* --- 全局樣式 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #fff9f2; /* 柔和米色背景 */
    color: #4a4a4a; /* 深灰色文字 */
    line-height: 1.7;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 頁首 (Header) --- */
.site-header {
    background-color: #ff8c42; /* 溫馨暖橙色 */
    color: white;
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid #ffae7a; /* 亮橙色底線 */
}

.site-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.site-header p {
    margin: 5px 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- 導覽列 (Navigation) --- */
.main-nav {
    background-color: #5f4b44; /* 沉穩棕色 */
    padding: 8px 0; /* 減少上下內邊距 */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 10px; /* 減少連結之間的間距 */
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 6px 10px; /* 減少連結的內邊距 */
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 14px; /* <<< 關鍵修改：縮小字體大小 */
}

.main-nav a:hover, .main-nav a.active {
    background-color: #ff8c42;
}

/* --- 主要內容 (Main) --- */
.main-content {
    padding: 40px 0;
}

/* ... (後面的 .main-images, .content-article, .custom-table, .site-footer 等樣式保持不變) ... */

.main-images {
    text-align: center;
    margin-bottom: 40px;
}

.main-images img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.content-article {
    background-color: white;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.content-article h2 {
    font-size: 2.2rem;
    color: #d87533;
    border-bottom: 3px solid #fff0e1;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 25px;
}

.content-article h3 {
    font-size: 1.6rem;
    color: #5f4b44;
    margin-top: 30px;
}

.content-article ol, .content-article ul {
    padding-left: 25px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.custom-table th, .custom-table td {
    border: 1px solid #ffe8d6;
    padding: 15px;
    text-align: left;
}

.custom-table thead {
    background-color: #ff8c42;
    color: white;
    font-size: 1.1em;
}

.custom-table tbody tr:nth-child(even) {
    background-color: #fff9f2;
}

.custom-table tbody tr:hover {
    background-color: #ffe8d6;
}

.site-footer {
    background-color: #5f4b44;
    color: #e0dcd9;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}