/* ========== 关于页面样式 ========== */

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.3);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.5);
}

.timeline-content {
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(0, 243, 255, 0.3);
}

.timeline-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* 技能卡片动画 */
.skill-card {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

/* 项目卡片增强 */
.project-card {
    transition: var(--transition-smooth);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 243, 255, 0.05), 
        rgba(123, 44, 191, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.15);
}

/* 联系按钮动画 */
.contact-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.3);
}

/* 头像动画 */
.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0;
    animation: rotate 3s linear infinite;
    transition: opacity 0.3s ease;
}

.avatar-container:hover::before {
    opacity: 0.3;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 文字动画 */
.animated-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -2rem;
        width: 10px;
        height: 10px;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-content:hover {
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
        width: 8px;
        height: 8px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
}
