.timeline-page {
    min-height: 100vh;
    background: #0a0a0a;
    color: white;
    position: relative;
    overflow-x: hidden;
}

/* 英雄区域 */
.timeline-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

/* Glitch效果标题 */
.glitch {
    font-size: 5rem;
    font-weight: 900;
    position: relative;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
    letter-spacing: 0.1em;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff; }
    15% { text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff; }
    16% { text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff; }
    49% { text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff; }
    50% { text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff; }
    99% { text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff; }
    100% { text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff; }
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    20% { clip: rect(85px, 9999px, 90px, 0); }
    40% { clip: rect(15px, 9999px, 50px, 0); }
    60% { clip: rect(60px, 9999px, 70px, 0); }
    80% { clip: rect(10px, 9999px, 80px, 0); }
    100% { clip: rect(90px, 9999px, 30px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(20px, 9999px, 30px, 0); }
    40% { clip: rect(80px, 9999px, 20px, 0); }
    60% { clip: rect(40px, 9999px, 60px, 0); }
    80% { clip: rect(90px, 9999px, 10px, 0); }
    100% { clip: rect(10px, 9999px, 50px, 0); }
}

.timeline-hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 1rem;
    letter-spacing: 0.2em;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* 时间轴容器 */
.chronicle-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
}

/* 时间轴线 */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.1);
    top: 0;
}

.timeline-progress {
    position: absolute;
    width: 100%;
    background: linear-gradient(to bottom, #00fffc, #fc00ff);
    height: 0%;
    transition: height 0.1s ease;
    box-shadow: 0 0 10px rgba(0,255,252,0.5);
}

/* 时间轴事件 */
.timeline-events {
    position: relative;
    z-index: 10;
}

.timeline-event {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.timeline-event:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
    transform: translateX(50px);
}

.timeline-event.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 事件节点 */
.event-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #0a0a0a;
    border: 3px solid #00fffc;
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 0 0 4px rgba(0,255,252,0.3);
    transition: all 0.3s ease;
}

.timeline-event:hover .event-node {
    transform: translateX(-50%) scale(1.5);
    border-color: #fc00ff;
    box-shadow: 0 0 20px rgba(252,0,255,0.6);
}

/* 事件内容卡片 */
.event-card {
    width: 80%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-event:nth-child(odd) .event-card {
    margin-right: 3rem;
    text-align: right;
}

.timeline-event:nth-child(even) .event-card {
    margin-left: 3rem;
}

.event-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.event-year {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00fffc, #fc00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.event-desc {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.event-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timeline-event:nth-child(odd) .event-tags {
    justify-content: flex-end;
}

.event-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(0,255,252,0.1);
    border: 1px solid rgba(0,255,252,0.3);
    color: #00fffc;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 年份导航 */
.year-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.year-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.year-dot:hover,
.year-dot.active {
    background: #00fffc;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0,255,252,0.5);
}

.year-dot::before {
    content: attr(data-year);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.year-dot:hover::before {
    opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-event,
    .timeline-event:nth-child(even) {
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 0;
        transform: translateX(0);
    }
    
    .event-node {
        left: 30px;
    }
    
    .timeline-event:nth-child(odd) .event-card,
    .timeline-event:nth-child(even) .event-card {
        width: 100%;
        margin: 0;
        text-align: left;
    }
    
    .timeline-event:nth-child(odd) .event-tags {
        justify-content: flex-start;
    }
    
    .year-nav {
        display: none;
    }
}

/* 光效装饰 */
.chronicle-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0,255,252,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(252,0,255,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}