/* 页面主体样式 */
.history-main {
    margin-bottom: 50px;
}

/* 页面横幅样式 */
.page-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 时间轴导航样式 */
.timeline-nav {
    background: #f5f5f5;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.timeline-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.timeline-item .year {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.timeline-item .dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #c41230;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s;
}

.timeline-item .dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    right: -100vw;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.timeline-item:last-child .dot::before {
    display: none;
}

.timeline-item:hover .year,
.timeline-item.active .year {
    color: #c41230;
}

.timeline-item:hover .dot,
.timeline-item.active .dot {
    background: #c41230;
    transform: scale(1.2);
}

/* 内容区域样式 */
.content-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.period-section {
    display: none;
    margin-bottom: 60px;
}

.period-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.period-section h2 {
    color: #c41230;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c41230;
}

.period-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.text-content {
    color: #333;
    line-height: 1.8;
}

.text-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.text-content h3 {
    color: #c41230;
    margin: 20px 0 15px;
}

.text-content ul {
    list-style: none;
    padding-left: 20px;
}

.text-content ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
}

.text-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #c41230;
    border-radius: 50%;
}

.image-gallery {
    display: grid;
    gap: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-item p {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .timeline-wrapper {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px;
    }

    .timeline-item {
        margin-right: 40px;
    }

    .period-content {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }
} 