/* 新增的WebGL背景样式 */
.timeline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.timeline-content-wrapper {
    position: relative;
    z-index: 10;
}

#timeline {
    border-top: .25em dashed var(--accent-color);
    border-bottom: .25em dashed var(--accent-color);
}

/* 时间轴样式调整 */
.timeline {
    position: relative;
    max-width: 1600px;
    margin: 50px auto;
    counter-reset: timeline-counter;
    padding: 20px 0;
}

#tl-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 0 auto 60px;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
    padding: 10px 20px;
    display: table;
    border-radius: var(--border-radius);
}

#tl-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--bg-primary-rgb), 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    z-index: 1;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    counter-increment: timeline-counter;
    z-index: 2;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top-right-radius: 20px;
    overflow: visible;
    z-index: 3;
    border-left: solid var(--accent-color) var(--timeline-border);
    background: rgba(var(--bg-primary-rgb), 0.85);
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* 节点容器 */
.timeline-node-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    z-index: 4;
}

.timeline-item:nth-child(odd) .timeline-node-container {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-node-container {
    left: -30px;
}

/* 双点效果 */
.timeline-node {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-outer {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.node-inner {
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .node-outer {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--accent-color);
}

.timeline-item:hover .node-inner {
    background: var(--text-primary);
    transform: scale(0.8);
}

/* 添加序号标记 */
.timeline-content::before {
    content: counter(timeline-counter);
    position: absolute;
    top: 0px;
    right: 0px;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--timeline-counter-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover::before {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.timeline-content a {
    position: relative;
    display: inline;
    padding: 0 4px;
    text-decoration: none;
    color: inherit; /* 继承父元素文字颜色 */
    z-index: 1;
}

.timeline-content a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    opacity: 0.3;
    z-index: -1;
    border-radius: 3px;
}

.timeline-content a:hover {
    text-decoration: underline;
}

.timeline-content li {
    list-style: none;
}

.timeline-content span {
    opacity: 0.5;
}

.timeline-content strike {
    opacity: 0.6;
}