﻿
/* 子页面标题区域 */
.subpage-hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 102, 204, 0.8)),url('../Image/pic06.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 70px;
    color: white;
    text-align: center;
    position: relative;
}

    .subpage-hero h1 {
        font-size: 3.5rem;
        margin-bottom: 15px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .subpage-hero p {
        font-size: 1.5rem;
    }
/* 顶部横幅区 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1920x500') center/cover;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

    .banner h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .banner p {
        font-size: 1.5rem;
        max-width: 800px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
}

    .breadcrumb li {
        margin: 0 5px;
    }

        .breadcrumb li a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
        }

            .breadcrumb li a:hover {
                color: white;
                text-decoration: underline;
            }

        .breadcrumb li:not(:last-child)::after {
            content: ">";
            margin-left: 10px;
            color: rgba(255,255,255,0.6);
        }
       

/* 时间轴导航 */
.timeline-nav {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.timeline-container {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
}

    .timeline-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

.year-item {
    flex: 0 0 auto;
    padding: 10px 25px;
    margin: 0 10px;
    border-radius: 30px;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #555;
}

    .year-item:hover, .year-item.active {
        background-color: #1e88e5;
        color: white;
    }

.milestone {
    background-color: #ff9800;
    color: white;
}


.activities-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/*
.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2em;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: #3498db;
        margin: 15px auto;
    }*/

.section-title {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #1e88e5;
    position: relative;
    padding-left: 15px;
}

    .section-title:before {
        content: '';
        position: absolute;
        left: 0;
        top: 5px;
        height: 80%;
        width: 5px;
        background-color: #1e88e5;
    }

/* 年份筛选样式 */
/*.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}*/
.year-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .filter-btn:hover {
        background-color: #f0f0f0;
    }

    .filter-btn.active {
        background-color: #3498db;
        color: white;
        border-color: #3498db;
    }

/* 活动网格布局 */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.activity-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .activity-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.activity-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

    .activity-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.activity-item:hover .activity-thumbnail img {
    transform: scale(1.05);
}

.activity-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px;
    font-size: 12px;
}

.activity-title {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

/* 照片查看器模态框样式 */
.photo-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    background: #222;
    border-radius: 8px;
    padding: 20px;
    color: white;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 2;
}

    .close-btn:hover {
        color: #3498db;
    }

.viewer-header {
    text-align: center;
    margin-bottom: 15px;
}

.photo-title {
    margin: 0;
    font-size: 1.5em;
    color: #fff;
}

.photo-date {
    color: #bbb;
    font-size: 0.9em;
}

.photo-container {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.main-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: background 0.3s ease;
}

    .nav-btn:hover {
        background: rgba(0, 0, 0, 0.8);
    }

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.photo-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

    .control-btn:hover {
        background: rgba(255, 255, 255, 0.4);
    }

.photo-counter {
    margin: 0 20px;
    font-size: 14px;
    color: #bbb;
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    overflow-x: auto;
}

.thumbnail-item {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: opacity 0.3s ease, border 0.3s ease;
}

    .thumbnail-item:hover, .thumbnail-item.active {
        opacity: 1;
        border-color: #3498db;
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* 响应式设计 */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .activity-thumbnail {
        height: 150px;
    }

    .modal-content {
        max-width: 95%;
        padding: 10px;
    }

    .photo-container {
        height: 50vh;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .year-filter {
        gap: 5px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .photo-container {
        height: 40vh;
    }
}

