/* 引入 Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@500&display=swap');

:root {
    --header-bg: #2f5597;
    --footer-bg: #bfbfbf;
    --about-btn-fill: #f8cbad; --about-btn-border: #f4b183; --about-btn-text: #c55a11;
    --follow-btn-fill: #e2f0d9; --follow-btn-border: #a9d18e; --follow-btn-text: #548235;
    --yt-btn-fill: #b4c7e7; --yt-btn-border: #8faadc; --yt-btn-text: #2f5597;
}

body {
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 背景圖層 - 處理模糊與透明度 */
.bg-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../images/bg.jpg') no-repeat center center/cover;
    filter: blur(8px) opacity(0.7); /* 模擬 32% blur 效果 */
    z-index: -1;
}

/* 常駐頂部導航欄 */
header {
    background-color: var(--header-bg);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-buttons { display: flex; gap: 10px; }

/* 按鈕通用樣式 */
.btn {
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: 6px solid;
    transition: transform 0.2s;
}
.btn:hover { transform: scale(1.05); }

.btn-about { background: var(--about-btn-fill); border-color: var(--about-btn-border); color: var(--about-btn-text); }
.btn-follow { background: var(--follow-btn-fill); border-color: var(--follow-btn-border); color: var(--follow-btn-text); }
.btn-yt { background: var(--yt-btn-fill); border-color: var(--yt-btn-border); color: var(--yt-btn-text); }

/* 主內容區 */
main {
    flex: 1;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 頁尾 */
footer {
    background-color: var(--footer-bg);
    color: #1a1a1a;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

/* 具體頁面佈局 */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 6px solid #bfbfbf;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #707070;
}

.cat-mascot {
    max-width: 300px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.2));
}

/* --- About 頁面專用佈局 --- */

.about-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 90%;
    max-width: 1000px;
    height: 80vh; /* 限制總高度，這樣捲動才會生效 */
}

/* 上方介紹區：較大 */
.intro-box {
    flex: 3; /* 比例佔 3 */
    background: rgba(226, 240, 217, 0.9);
    border: 6px solid #a9d18e;
    border-radius: 20px;
    padding: 30px;
    color: #548235;
    overflow-y: auto; /* 如果文字太多也可以捲動 */
}

/* 下方更新日誌：較小且可捲動 */
.update-log-box {
    flex: 1; /* 比例佔 1 */
    background: rgba(226, 240, 217, 0.8);
    border: 6px solid #a9d18e;
    border-radius: 20px;
    padding: 20px;
    color: #548235;
    overflow-y: scroll; /* 強制顯示捲動軸 */
}

/* Roblox 風格捲動條 (Chrome/Safari/Edge) */
.update-log-box::-webkit-scrollbar {
    width: 10px;
}
.update-log-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
.update-log-box::-webkit-scrollbar-thumb {
    background: #a9d18e;
    border-radius: 10px;
}
.update-log-box::-webkit-scrollbar-thumb:hover {
    background: #548235;
}

/* 文字排版修正 */
.intro-content {
    display: grid;
    grid-template-columns: 100px 1fr; /* 讓 "Hi there!" 站在左邊 */
    gap: 20px;
}

.intro-content h2 {
    margin-top: 0;
    font-size: 2.5em;
}