/* 打字机效果容器 */
.typed-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
}

#typed-text {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.6;
}

.timeline-container {
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

/* 时间轴中线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

/* 时间轴项目 */
.timeline-item {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* 时间点 */
.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}

/* 内容卡片 */
.timeline-content {
    width: calc(50% - 50px);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 24px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 左侧内容 */
.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

/* 右侧内容 */
.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: calc(50% + 50px);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

/* 时间标签 */
.timeline-date {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 500;
}

/* 标题 */
.timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* 人物标签容器 */
.timeline-people {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

/* 人物标签 */
.timeline-person {
    background-color: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.timeline-person:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(72, 149, 239, 0.2);
}

/* 内容文本 */
.timeline-text {
    color: var(--gray-color);
    line-height: 1.8;
    font-size: 15px;
}

/* 年份分隔线 */
.timeline-year {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 60px 0 40px;
    position: relative;
    z-index: 2;
}

.timeline-year::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.2;
    z-index: -1;
}

.timeline-year span {
    background: #f5f7fb;
    padding: 0 30px;
}

/* 删除按钮样式 */
.timeline-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.delete-btn:disabled {
    background-color: #dc3545;
    opacity: 0.6;
}

.delete-btn:disabled:hover {
    background-color: #dc3545;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        justify-content: flex-start;
        padding-left: 70px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 70px);
    }

    .timeline-content::before {
        left: -10px;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::before {
        right: auto;
        left: -10px;
    }

    .timeline-item:nth-child(even) {
        padding-left: 70px;
    }

    .typed-container {
        margin: 0 20px 30px;
    }

    #typed-text {
        font-size: 20px;
    }
}

/* 动画类 */
.fade-in {
    opacity: 1;
    transform: translateY(0);
} 