/* ==================== 经历页面 ==================== */

/* 页面头部 */
.section-header {
    margin-bottom: 48px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 时间轴容器 */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* 时间轴项目 */
.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 左侧时间和图标 */
.timeline-left {
    width: 120px;
    flex-shrink: 0;
    text-align: right;
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 16px;
    margin-left: auto;
}

/* 时间轴线 */
.timeline-line {
    position: relative;
    width: 2px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.timeline-connector {
    flex: 1;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), rgba(139, 92, 246, 0.2));
}

/* 事件卡片 */
.timeline-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

/* 分类标签 */
.timeline-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-tag.study {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.timeline-tag.work {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.timeline-tag.tech {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.timeline-tag.honor {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.timeline-tag.contest {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.timeline-tag.copyright {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.timeline-tag.internship {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 子标签 */
.timeline-subtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.subtag {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 分隔线 */
.timeline-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* 未来卡片 */
.timeline-card-future {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.05));
    border-style: dashed;
}

.timeline-card-future .timeline-title {
    color: var(--accent-primary);
    font-style: italic;
}

.timeline-card-future .timeline-desc {
    color: var(--text-muted);
    font-style: italic;
}

/* 响应式 */
@media (max-width: 768px) {
    .timeline-item {
        gap: 16px;
    }
    
    .timeline-left {
        width: 80px;
    }
    
    .timeline-date {
        font-size: 12px;
    }
    
    .timeline-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .timeline-card {
        padding: 16px;
    }
    
    .timeline-title {
        font-size: 14px;
    }
    
    .timeline-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .timeline-left {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .timeline-icon {
        margin-left: 0;
    }
    
    .timeline-line {
        display: none;
    }
}
