/* 时光机页面样式 */
.timeline-header {
    text-align: center;
    padding: 40px 0 30px;
    margin-top: 20px;
}
h1 span{
    color: var(--accent-color);
}
.timeline-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* 时间线容器 */
.timeline-section {
    padding: 40px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

/* 时间线中心线 */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--secondary-color);
    opacity: 0.5;
    transform: translateX(-50%);
    z-index: 1;
}

/* 时间线项目 */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 时间显示 - 在时间线左边 */
.timeline-date {
    width: 45%;
    text-align: right;
}

.date-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .date-badge {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 时间点 */
.timeline-point {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.2);
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-point {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.3);
}

/* 描述块 - 在时间线右边 */
.timeline-content {
    width: 45%;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 18px;
    margin-left: 30px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 连接箭头 - 从描述块指向时间点 */
.timeline-content::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--secondary-color);
    transform: translateY(-50%);
    z-index: 2;
}

/* 连接线 - 从时间点延伸到箭头 */
.timeline-content::after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    opacity: 0.5;
    transform: translateY(-50%);
    z-index: 1;
}

/* 描述文本 */
.timeline-description {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* 响应式设计：移动端 */
@media (max-width: 768px) {
    .timeline {
        max-width: 100%;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 40px;
        margin-bottom: 40px;
    }
    
    .timeline-date {
        width: 100%;
        text-align: left;
        padding-right: 0;
        padding-bottom: 15px;
        margin-left: 25px;
    }
    
    .timeline-point {
        left: 0px;
        top: 15px;
        transform: translate(-50%, 0);
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 0;
    }
    
    .timeline-content::before {
        left: -14px;
        top: 20px;
        transform: translateY(0);
        border-right: 10px solid var(--secondary-color);
        border-left: none;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }
    
    .timeline-content::after {
        left: -30px;
        top: 29px;
        transform: translateY(0);
    }
    
    .timeline-item:hover .timeline-point {
        transform: translate(-50%, 0) scale(1.2);
    }
}

@media (max-width: 480px) {
    .timeline-content {
        padding: 20px;
    }
    
    .date-badge {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}