/* 基礎設定 */
body {
    background-color: #000;
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* 容器與佈局 */
.container {
    max-width: 850px;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 12px;
    background-color: #111;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    text-align: center;
}

.text-left { text-align: left; }

/* 標題與品牌 */
.brand {
    font-family: "Playfair Display";
}
.title{
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

h1 { color: #fff; font-size: 24px; margin-bottom: 10px; }
h2 { 
    color: #ccc; 
    border-left: 4px solid #666; 
    padding-left: 15px; 
    margin-top: 40px; 
    font-size: 20px; 
    text-align: left;
}
h3{
    color: #ccc; 
    font-size: 18; 
    text-align: left;
    margin-bottom: 5px;
}

/* 導航與連結 */
.footer, .nav-header { 
    margin: 18px auto; 
    text-align: center; 
}

.footer a, .nav-header a { 
    color: #ccc; 
    text-decoration: underline; 
    margin: 8px 8px; 
    font-size: 14px;
}

a { color: #4da6ff; text-decoration: none; }
a:hover { color: #aaa; text-decoration: underline; }

/* LOGO 與裝飾線 */
.header-wrapper { display: flex; align-items: center; justify-content: center; margin: 20px 0; }
.header-line { flex: 1; height: 1px; background-color: #444; }
.logo { width: 120px; margin: 0 30px; }

/* 內容區塊 */
.intro { max-width: 800px; margin: 0 auto 20px; font-size: 15px; }
.section { margin: 40px auto; }
.section img.icon { width: 50px; vertical-align: middle; margin: 0 10px; }

/* --- 圖片排版核心改良 --- */
.images {
    display: flex;          /* 使用 Flex 佈局 */
    justify-content: center;
    gap: 10px;              /* 圖片之間的間距 */
    margin: 15px 0;
    flex-wrap: wrap;        /* 小螢幕時自動換行 */
}

.images > div {
    display: flex;
    flex-direction: column;   /* 改成上下排列 */
    align-items: center;      /* 置中對齊 */
    flex: 1 1 0;              /* 平均分配寬度 */
}

.images img {
    width: 100%;              /* 佔滿容器寬度 */
    max-width: 450px;         /* 不超過 450px */
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
}


ol { text-align: left; padding-inline-start: 2em; margin-bottom: 15px;}
li { margin-bottom: 10px; font-size: 15px; }
.lang-en { color: #ccc; font-style: italic; display: block; font-size: 0.95em; }

/* 聯絡區塊 */
.contact-box {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #333;
}
.update-date { font-size: 0.9em; color: #888; margin-bottom: 30px; }

/* --- 響應式設定：當寬度小於 600px 時 --- */
@media (max-width: 600px) {
    .container { padding: 15px; }
    .logo { width: 80px; margin: 0 15px; }
    
    .images {
        flex-direction: column; /* 改為上下垂直排列 */
        align-items: center;
    }
    .images img {
        width: 100%;           /* 圖片佔滿寬度 */
        max-width: 100%;
    }
    
    .header-line { display: none; } /* 手機版隱藏裝飾線讓空間更大 */
}

@media screen and (min-width: 601px) {
    .caption { display: none; }
    .index ol { display: block; }
}

/* 手機版：顯示 caption，隱藏 ol */
@media screen and (max-width: 600px) {
    .caption { display: block; margin-top: 10px; text-align: left;}
    .index ol { display: none; }
}
