/* --- 全局設定 --- */
:root {
    --primary-color: #E63946; /* 一種活力的紅色 */
    --secondary-color: #F1FAEE; /* 淺米白 */
    --dark-color: #1D3557; /* 深海軍藍 */
    --light-blue: #A8DADC; /* 淺藍 */
    --white-color: #FFFFFF;
    --font-primary: 'Poppins', 'Noto Sans TC', sans-serif;
    --font-secondary: 'Noto Sans TC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    background-color: var(--white-color);
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--dark-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

section {
    padding: 4rem 0;
}

/* --- 按鈕樣式 --- */

.social-icons-container {
    text-align: center; 
    padding: 30px 0;    
    margin-top: 50px;   
    border-top: 1px solid #eee; 
}

.social-icons-container a {
    color: #333;           
    font-size: 30px;       
    margin: 0 15px;        
    transition: color 0.3s ease; 
    text-decoration: none; 
}

.social-icons-container a:hover {
    color: #a00000; /* Hover color */
}

.primary-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.primary-btn:hover {
    background-color: #d0313d;
    transform: translateY(-2px);
}

.secondary-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* --- 導航列 --- */
.header {
    background-color: var(--white-color);
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-item .primary-btn {
    padding: 8px 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease-in-out;
}

/* --- 歡迎區塊 --- */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1533174072545-7a4b6ad7a6c3?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 1rem;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- 活動區塊 --- */
.events-section {
    background-color: var(--secondary-color);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-info {
    padding: 1.5rem;
}

.event-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.event-info h3 {
    margin-bottom: 0.5rem;
}

.event-info p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* --- 關於我們 --- */
.about-section {
    background: var(--white-color);
}
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
}
.about-text {
    flex: 1;
}
.about-text h2 {
    text-align: left;
}

/* --- 活動花絮 --- */
.gallery-section {
    background-color: var(--secondary-color);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, filter 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- 聯絡區塊 --- */
.contact-section {
    background-color: var(--dark-color);
    color: var(--white-color);
    text-align: center;
}

.contact-section h2 {
    color: var(--white-color);
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- 頁腳 --- */
.footer {
    background-color: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}
.footer a {
    color: var(--dark-color);
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

/* --- 響應式設計 --- */
@media(max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }
}