/* 1. 全域重設 - 確保冇空間浪費 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 1. 確保大容器填滿整個畫面，且不讓整個 body 滾動 */
body, html {
    margin: 0;
    padding: 0;
    height: 100vh; /* 鎖定高度為視窗高度 */
    overflow: hidden; /* 防止整個網頁出現捲軸 */
}

/* 2. 容器設定 */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* 3. 左邊側邊欄：固定不動 */
.sidebar {
    width: 200px;
    min-width: 200px;
    background-color: #D3C4C4;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    /* 核心代碼：讓側邊欄不滾動 */
    height: 100vh;
    overflow-y: auto; /* 如果左邊連結太多，左邊內部自己可以滾動 */
}

/* 4. 右邊內容區：獨立滾動 */
.content {
    flex-grow: 1;
    background-color: #6D4354;
    color: #ffffff;
    padding: 80px 60px;
    line-height: 1.8;

    /* 核心代碼：讓右邊獨立出現捲軸 */
    height: 100vh; 
    overflow-y: scroll; /* 強制開啟垂直滾動 */
    -webkit-overflow-scrolling: touch; /* 讓手機滑動更順暢 */
}




/* 側邊欄圖片 */
.profile-pic {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    background-color: #fff;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 導覽連結 */
.nav-links {
    display: flex;
    flex-direction: column;
}

.nav-links .logo {
    font-size: 3.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    margin-bottom: 20px;
}

.nav-links a {
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    margin-bottom: 15px;
}

/* 4. 右邊內容區 - 佔用剩餘空間 */
.content {
    flex-grow: 1; 
    background-color: #6D4354;
    color: #ffffff;
    padding: 60px;
    line-height: 1.8;
}

/* 標題與文字樣式 */
.content h1 { font-size: 3.5rem; margin-bottom: 30px; }
.content p { margin-bottom: 20px; font-size: 1.7rem; }

/* 5. 正方形圖片樣式 */
.post-image {
    width: 100%;
    max-width: 450px;
    margin: 30px 0;
}

.post-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.3);
}