/**
 * 左侧悬浮垂直时间轴样式
 * @version 3.0
 * @date 2026-06-05
 */

/* 左侧悬浮时间轴容器 */
.timeline-container {
    position: fixed !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 200px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 隐藏滚动条 */
.timeline-container::-webkit-scrollbar {
    display: none !important;
}

/* 时间轴主体 */
.timeline-container .timeline {
    position: relative;
    padding-left: 24px;
    margin: 0;
    list-style: none;
}

/* 竖线 */
.timeline-container .timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #a8d5ba 0%, #7ec699 50%, #a8d5ba 100%);
}

/* 时间节点 */
.timeline-container .timeline-item {
    position: relative;
    margin-bottom: 20px;
    list-style: none;
}

/* 圆形节点 */
.timeline-container .timeline-item::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff9a76;
    box-shadow: 0 0 0 3px rgba(255, 154, 118, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

/* 当前节点高亮 - 动态脉冲效果 */
.timeline-container .timeline-item.active::before {
    background-color: #077fff;
    box-shadow: 0 0 0 5px rgba(7, 127, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 5px rgba(7, 127, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(7, 127, 255, 0.1), 0 0 0 5px rgba(7, 127, 255, 0.3);
    }
}

/* 节点悬停效果 */
.timeline-container .timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(255, 154, 118, 0.3);
}

/* 标题标签 */
.timeline-container .timeline-label {
    font-size: 13px;
    font-weight: 600;
    color: #5a9279;
    margin-bottom: 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.timeline-container .timeline-item.active .timeline-label {
    color: #077fff;
}

/* 卡片容器 */
.timeline-container .timeline-card {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 缩略图容器 */
.timeline-container .timeline-thumbnail-wrapper {
    position: relative;
    display: block;
    width: 150px;
    height: 84px;
}

/* 缩略图样式 */
.timeline-container .timeline-thumbnail {
    width: 150px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: block;
}

/* 统计信息 - 默认隐藏 */
.timeline-container .timeline-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 134px;
    padding: 5px 8px;
    font-size: 13px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 10px 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 悬停时显示统计信息 */
.timeline-container .timeline-card:hover .timeline-stats {
    opacity: 1;
}

/* 悬停动画 */
.timeline-container .timeline-card:hover .timeline-thumbnail {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(126, 198, 153, 0.25);
}

/* 当前项悬停效果 - 与普通节点保持一致 */
.timeline-container .timeline-item.active .timeline-card:hover .timeline-thumbnail {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(126, 198, 153, 0.25);
}

/* 移动端自动隐藏 */
@media screen and (max-width: 768px) {
    .timeline-container {
        display: none !important;
        visibility: hidden !important;
    }
}
