/* 时间线和节点的样式 */
.timeline {
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
}

.timeline li {
    cursor: pointer;
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: gray;
    z-index: 1;
}

.timeline li::after {
    content: '';
    position: absolute;
    left: 189%;
    transform: translateX(-50%);
    bottom: -23px;
    width: 100px;
    height: 1px;
    border-radius: 50%;
    background: gray;
    z-index: 1;
}

.timeline li.active::before {
    background: green; /* 当前选中的年份的节点颜色 */
}
.timeline li.active::after {
    background: green; /* 当前选中的年份的节点颜色 */
}
.timeline li:last-child::after {
    display: none; /* 最后一个节点不显示 */
}
/* 内容区域的样式 */
.content-area {
    min-height: 50px;
    margin-top: 20px;
    /* 开始时不可见 */
    transition: opacity 0.5s ease-out; /* 渐变动画 */
}

/* 定义一个淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 应用动画到具有fade-in类的元素 */
.fade-in {
    opacity: 0; /* 开始时不可见 */
    animation: fadeIn 1s ease forwards; /* 动画持续1秒 */
}