/* c:\AICodingClass\OfficeWebsite\style.css */

/* --- 1. 全域變數與重設 (Color System & Base) --- */
:root {
    /* 主色調：使用者指定的 #8CC7C4 */
    --primary: #8CC7C4;
    --primary-light: #EBF5F4;
    --primary-deep: #589793;
    --primary-text: #2C4A48; /* 用於提昇對比度的深青色 */

    /* 輔助配色 */
    --accent: #FFADAD; /* 暖橙色作為對稱點綴 */
    --success: #6BCB77;
    --error: #FF6B6B;
    --warning: #FFD93D;
    
    /* 中性色 */
    --bg: #FAFAFA;
    --bg-white: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --border: #EDF2F4;
    
    /* 質感設定 */
    --radius: 12px;
    --radius-lg: 24px;
    --shadow: 0 4px 20px rgba(140, 199, 196, 0.1);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.8; /* 優化閱讀間距 */
    letter-spacing: 0.02em;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --- 2. 佈局與元件 (Layout & Components) --- */

/* 導覽列 */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary-deep);
}

#navbar ul {
    display: none; /* 手機版先隱藏或簡化 */
}

@media (min-width: 768px) {
    #navbar {
        padding: 1.2rem 10%;
    }
    #navbar ul {
        display: flex;
        list-style: none;
        gap: 2rem;
        align-items: center;
    }
}

.btn-nav {
    background: var(--primary);
    color: var(--primary-text) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
}

.btn-nav:hover {
    background: var(--primary-deep);
    color: white !important;
}

/* Hero 區塊 */
.hero {
    padding: 120px 5% 60px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at top right, var(--primary-light), transparent);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero h2 span {
    color: var(--primary-deep);
    border-bottom: 3px solid var(--primary);
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .hero {
        padding: 160px 10% 100px;
    }
    .hero h1 { font-size: 3.8rem; }
    .hero h2 { font-size: 2.2rem; }
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-text);
    box-shadow: 0 8px 15px rgba(140, 199, 196, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-deep);
    color: white;
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary-deep);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

/* 卡片與容器 */
.section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto;
    border-radius: 2px;
}

.card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .section { padding: 120px 10%; }
    .section-title { font-size: 2.8rem; }
    .card-container { grid-template-columns: repeat(3, 1fr); }
}

.card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(140, 199, 196, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-deep);
    margin-bottom: 1.5rem;
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

/* 時間軸樣式已針對全域配色優化 */
.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.time-point {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--primary-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.time-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

/* 講師區塊 */
.instructor-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .instructor-container { flex-direction: row; text-align: left; }
}

.avatar-glow {
    width: 150px;
    height: 150px;
    background: var(--primary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 10px 10px 0 var(--primary-light);
}

/* CTA 區塊 */
.cta-card {
    background: var(--primary-text);
    color: white;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.btn-large {
    background: var(--primary);
    color: var(--primary-text);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius);
    margin-top: 2rem;
}

/* --- 3. 視覺一致性 (Animations & Utility) --- */
.animate-text {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}
