/* 时间轴增强效果 - 榆林市小学生创新设计大赛 */

/* ==========================================================
   1. 当前阶段高亮
   ========================================================== */

/* 当前进行中的阶段高亮 */
.timeline-card.current {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e9f7 100%) !important;
    border: 2px solid #2E5CB8;
    box-shadow: 0 8px 20px rgba(46, 92, 184, 0.3);
}

/* 当前阶段的脉冲边框动画 */
.timeline-card.current::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2E5CB8, #1e4a8a);
    border-radius: 10px;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.01);
    }
}

/* ==========================================================
   2. 时间轴连接线
   ========================================================== */

/* 时间轴容器 */
.timeline-container {
    position: relative;
}

/* 横向连接线 */
/* 横向连接线已禁用 - 避免在首页显示不必要的线条 */
.timeline-container::before {
    display: none;
}

/* 时间轴卡片容器 */
.timeline-card {
    position: relative;
    z-index: 1;
}

/* 时间轴节点 */
/* 时间轴节点已禁用 - 首页不需要节点装饰 */
.timeline-card::before {
    display: none;
}

/* 已完成阶段的节点 */
.timeline-card.completed::before {
    background: #2E5CB8;
}

/* 当前阶段的节点 */
.timeline-card.current::before {
    background: #2E5CB8;
    box-shadow: 0 0 0 4px rgba(46, 92, 184, 0.2);
}

/* 最后阶段卡片 */
.timeline-final {
    position: relative;
    z-index: 1;
}

/* 最后阶段的节点 */
/* 最后阶段节点已禁用 */
.timeline-final::before {
    display: none;
}

/* 响应式 - 移动端隐藏连接线 */
@media (max-width: 768px) {
    .timeline-container::before {
        display: none;
    }
    
    .timeline-card::before,
    .timeline-final::before {
        display: none;
    }
}
