﻿/* event1.css - 活動頁面專用樣式 */

/* CSS 變數定義 */
:root {
    --ev-text: #2f2f2f;
    --ev-muted: #6a6a6a;
    --ev-bg: #F6F2EE;
    --ev-accent: #A28F85;
    --ev-card-bg: #ffffff;
    --ev-shadow: rgba(0, 0, 0, 0.1);
    --ev-hero-overlay: rgba(0, 0, 0, 0.3);
}

/* 基礎頁面樣式 */
body.page-events {
    background: var(--ev-bg);
    color: var(--ev-text);
    font-family: var(--font-primary);
    line-height: 1.6;
}

/* 導航欄樣式 - 配合圖片設計 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    height: 70px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ev-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .brand::before {
        content: "☕";
        font-size: 1.5rem;
    }

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-menu a {
        text-decoration: none;
        color: var(--ev-text);
        font-weight: 500;
        font-size: 1rem;
        padding: 5px 0;
        position: relative;
        transition: all 0.3s ease;
    }

        .nav-menu a::before {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 3px;
            background: #f4a51c;
            border-radius: 2px;
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .nav-menu a:hover {
            color: #f4a51c;
        }

            .nav-menu a:hover::before {
                transform: scaleX(1);
            }

        /* 活動頁面的活躍狀態 - 黃色下劃線 */
        .nav-menu a.active {
            color: #f4a51c;
            font-weight: 600;
        }

            .nav-menu a.active::before {
                transform: scaleX(1);
            }

/* 手機版導航 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ev-text);
}

/* 上方圖片區塊 */
.event-intro {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff; /* 文字預設白色 */
    margin-top: 70px; /* 為固定導航欄留出空間 */
    min-height: 500px;
    display: flex;
    align-items: center;
}

.event-intro__overlay {
    background: rgba(0,0,0,0.45); /* 半透明黑遮罩，讓文字更清楚 */
    padding: 80px 0;
    text-align: center;
    width: 100%;
}

.event-intro__cat {
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    font-weight: 600;
}

.event-intro__title {
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.2;
}

.event-intro__subtitle {
    font-size: 1.25rem;
    margin: 0 0 18px;
    font-weight: 300;
    opacity: 0.95;
}

.event-intro__date {
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 400;
}



/* 內容區域 - 參考北美館與GQ設計風格 */
.event-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center; /* 內容置中 */
}

    .event-content h2 {
        font-size: 2.2rem;
        color: var(--ev-text);
        margin: 3em 0 1.5em 0;
        font-weight: 700;
        text-align: center;
        line-height: 1.3;
        letter-spacing: 1px;
    }

    .event-content h3 {
        font-size: 1.6rem;
        color: var(--ev-accent);
        margin: 2.5em 0 1em 0;
        font-weight: 600;
        text-align: center;
        line-height: 1.4;
    }

    .event-content p {
        margin: 0 0 1.5em 0;
        font-size: 1.15rem;
        line-height: 1.8;
        color: var(--ev-text);
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
        text-align: left; /* 段落文字左對齊，但整體置中 */
    }

    .event-content hr {
        border: none;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--ev-accent), transparent);
        margin: 4em auto;
        width: 60%;
        border-radius: 1px;
    }

    /* Emoji 標題特殊樣式 */
    .event-content h3:has-text('🕷️'),
    .event-content h3:has-text('🐍'),
    .event-content h3:has-text('🦎'),
    .event-content h3:has-text('🎨'),
    .event-content h3:has-text('🌱') {
        font-size: 1.8rem;
        color: #2c5530;
        margin: 3em 0 1.2em 0;
        padding: 20px;
        background: rgba(246, 242, 238, 0.8);
        border-radius: 12px;
        border-left: 4px solid var(--ev-accent);
    }

    .event-content figure {
        margin: 3em auto;
        text-align: center;
        max-width: 600px;
    }

        .event-content figure img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

            .event-content figure img:hover {
                transform: translateY(-4px);
                box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
            }

    .event-content figcaption {
        margin-top: 1.2em;
        font-size: 1rem;
        color: var(--ev-muted);
        font-style: italic;
        font-weight: 400;
        line-height: 1.6;
    }

/* 相片畫廊 - 參考北美館設計 */
.event-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    background: rgba(246, 242, 238, 0.3);
}

    .event-gallery h3 {
        text-align: center;
        font-size: 2.4rem;
        margin-bottom: 3em;
        color: var(--ev-text);
        font-weight: 700;
        letter-spacing: 1px;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 2em;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.4s ease;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

    .gallery-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

    .gallery-item img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.08);
    }

/* 精彩亮點 */
.event-highlights {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: var(--ev-card-bg);
}

    .event-highlights h3 {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 2em;
        color: var(--ev-text);
    }

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.highlight-card {
    background: var(--ev-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--ev-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .highlight-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.highlight-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.highlight-body {
    padding: 20px;
}

    .highlight-body h4 {
        font-size: 1.2rem;
        margin: 0 0 0.5em 0;
        color: var(--ev-text);
    }

    .highlight-body p {
        color: var(--ev-muted);
        font-size: 0.95rem;
        margin: 0;
        line-height: 1.5;
    }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

    .lightbox.open {
        display: flex;
    }

.lightbox__img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.3s ease;
}

    .lightbox__close:hover {
        opacity: 0.7;
    }

/* 響應式設計 */
@media (max-width: 640px) {
    /* 手機版導航 */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

        .nav-menu.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

        .nav-menu a {
            padding: 15px 20px;
            border-bottom: 1px solid #f0f0f0;
        }

            .nav-menu a:last-child {
                border-bottom: none;
            }

    .brand {
        font-size: 1.5rem;
    }

    .event-intro__overlay {
        padding: 60px 0;
    }

    .event-intro__title {
        font-size: clamp(24px, 5vw, 32px);
    }

    .event-intro__subtitle {
        font-size: 1.1rem;
    }

    .event-content {
        padding: 40px 15px;
    }

        .event-content h2 {
            font-size: 1.8rem;
            margin: 2em 0 1em 0;
        }

        .event-content h3 {
            font-size: 1.4rem;
            padding: 15px;
            margin: 2em 0 1em 0;
        }

        .event-content p {
            font-size: 1.05rem;
            line-height: 1.7;
        }

        .event-content figure {
            margin: 2em auto;
        }

    .event-gallery {
        padding: 60px 15px;
    }

        .event-gallery h3 {
            font-size: 2rem;
            margin-bottom: 2em;
        }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lightbox__close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .event-intro {
        min-height: 400px;
    }

    .event-intro__overlay {
        padding: 50px 0;
    }

    .event-intro__title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .event-intro__subtitle {
        font-size: 1rem;
    }

    .event-content h2 {
        font-size: 1.5rem;
    }

    .event-content h3 {
        font-size: 1.2rem;
    }
}



