/* 導入中文字體並設定基礎樣式，模擬 VS Code 的暗黑主題 */
:root {
    --bg-color: #1e1e1e; /* 深灰背景 */
    --text-color: #cccccc; /* 淺灰文字 */
    --primary-color: #2a7da3; /* 主要藍色 (VS Code 藍) */
    --card-bg: #252526; /* 卡片/區塊背景 */
    --link-hover-bg: #3c3c3c; /* 連結懸停背景 */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 40px; /* 為跑馬燈留空間 */
}

main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

/* --- 跑馬燈樣式 --- */
#marquee-bar {
    position: fixed; /* 固定在頂部 */
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    overflow: hidden; 
    white-space: nowrap;
    padding: 5px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%; 
    animation: scrolling 15s linear infinite; 
}

/* 定義滾動動畫 */
@keyframes scrolling {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); } 
}
/* --- 標題與基礎卡片樣式 --- */
header {
    text-align: center;
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--card-bg);
}

h1 {
    font-size: 3em;
    color: #ffffff;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 20px;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: all 0.3s ease-in-out; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* --- 團隊介紹卡片懸停效果 --- */
.card:hover {
    box-shadow: 0 8px 20px rgba(42, 125, 163, 0.3); 
    transform: translateY(-3px); 
}

/* --- 團隊成員區塊樣式 (新增) --- */
.team-members-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.team-grid {
    display: grid;
    /* 預設 3 欄 */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

.member-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-top: 3px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.member-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(42, 125, 163, 0.4);
}

.member-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.member-name {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 5px;
}

.member-role {
    font-size: 0.9em;
    color: var(--text-color);
}
/* --- END: 團隊成員區塊樣式 --- */


/* --- 連結區塊樣式 (卡片式呈現) --- */
.links-section {
    margin-top: 30px;
}

.resource-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.resource-link:hover {
    background-color: var(--link-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.link-title {
    font-weight: 700;
    font-size: 1.1em;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.link-title i {
    margin-right: 10px; 
    color: var(--primary-color); 
}

.link-description {
    font-size: 0.9em;
    color: #999999;
    flex-grow: 1; 
    margin-left: 20px;
}

.arrow {
    font-size: 1.5em;
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.8em;
    color: #555555;
}


/* --- 行動裝置響應式設計 (RWD) --- */

@media (max-width: 900px) {
    /* 中型螢幕 (例如平板橫向) 時，團隊區塊變為 2 欄 */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    /* 小型螢幕 (例如手機) 時，大標題縮小 */
    h1 {
        font-size: 2.2em; 
    }

    .subtitle {
        font-size: 1em;
    }
    
    /* 小型螢幕時，團隊區塊變為 1 欄 */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* 連結卡片改為垂直排列 */
    .resource-link {
        flex-direction: column; 
        align-items: flex-start;
        padding: 15px;
        position: relative; 
    }

    .link-description {
        margin-left: 0;
        margin-top: 5px; 
        font-size: 0.85em;
        padding-right: 30px; 
    }

    .arrow {
        position: absolute; 
        right: 15px;
        top: 50%; 
        transform: translateY(-50%);
    }
}