:root {
    --primary-color: #157A69;
    --primary-hover: #0C5346;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-main: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
li { list-style: none; }

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.67);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.2s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(40px, 5vh, 70px);
}

.logo img{
    display: flex;
    justify-content: center;
    height: clamp(30px, 3.5vh, 60px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 下拉式選單動畫 */
.dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown .arrow {
    font-size: 0.8rem;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-content a:first-child { border-radius: 8px 8px 0 0; }
.dropdown-content a:last-child { border-radius: 0 0 8px 8px; }

/* 語系切換按鈕 */
.lang-switch {
    position: relative;
    display: flex;
    width: 110px;
    background: rgba(243, 244, 246, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.lang-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 50px;
    height: calc(100% - 8px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;

    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.15), 
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);

    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.lang-switch.en-active .lang-slider {
    transform: translateX(52px);
}

.lang-btn {
    position: relative;
    z-index: 2;
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: center;
}

.lang-btn.active {
    color: var(--primary-color);
}

/* 漢堡選單 (手機版) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 佈局容器 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    padding: 12rem 2rem 8rem;
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #0C5346;
}

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

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--primary-hover);
    color: white;
    border-color: #d1d5db;
}

/* 大字過往 */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    margin-bottom: 20px;
}

.stat {
    padding: 0 20px;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h1 {
    text-align: center;
    font-size: clamp(50px, 10vw, 80px);
    color: var(--primary-color);
}

.stat h3 {
    text-align: center;
    font-size: clamp(16.7px, 6.07vw, 36.7px);
}

.stat p {
    text-align: center;
    align-items: center;
    font-size: clamp(10px, 3vw, 16.7px);
}

/* 卡片設計 (Purpose) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, scale 0.3s ease;
}

.card:hover {
    transform: scale(1.067);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
}

/* 時間軸 (History) */
.timeline {
    margin-top: 3rem;
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 1px var(--border-color);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.timeline-content p { color: var(--text-muted); }

/* 活動列表 (Events) */
.event-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s;
}

.event-item:hover { box-shadow: var(--shadow-md); }

.event-date {
    flex-shrink: 0;
    width: 90px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    padding-right: 1.5rem;
    border-right: 1px solid var(--border-color);
    margin-right: 1.5rem;
}

.event-info h4 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.event-info p { color: var(--text-muted); font-size: 0.95rem; }

/* 頁尾 */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* 響應式設計 (RWD) */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.4s ease-out;
    }

    .nav-menu.active {
        clip-path: circle(150% at 100% 0);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 2rem;
    }

    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--bg-light);
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 1rem;
    }
    
    .dropdown.active .dropdown-content { display: block; }

    .mobile-toggle { display: flex; }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; }

    .stat-grid {
        grid-template-columns:repeat(2,1fr);
        gap: 10px;
    }
    
    .event-item { flex-direction: column; text-align: center; }
    .event-date { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); padding: 0 0 1rem 0; margin: 0 0 1rem 0; }
}