/* 线条式年份滑块组件样式 */
.timeline-line-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 4rem;
    padding: 2rem 0;
}

/* 滑块轨道 */
.slider-track {
    height: 2px;
    background: #e2e8f0;
    position: relative;
    margin: 2rem 0;
}

/* 滑块手柄 - 空心圆圈，与年份点重合 */
.slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid #00476B;
    background: transparent;
    border-radius: 50%;
    cursor: grab;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: all;
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-width: 2px;
}

.slider-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

/* 年份标记点 - 放置在线条上 */
.year-markers {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.year-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    pointer-events: all;
}

.year-marker-dot {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.year-marker:hover .year-marker-dot {
    background: #00476B;
    transform: scale(1.2);
}

.year-marker.active .year-marker-dot {
    background: #00476B;
    transform: scale(1.2);
}

.year-marker-label {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
    position: absolute;
    bottom: -2rem;
}

.year-marker:hover .year-marker-label {
    color: #00476B;
}

.year-marker.active .year-marker-label {
    color: #00476B;
    font-weight: 600;
}

/* 年份区间标记 */
.year-ranges {
    position: absolute;
    bottom: -2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.year-range-label {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .timeline-line-slider {
        margin-bottom: 3rem;
    }
    
    .slider-handle {
        width: 20px;
        height: 20px;
    }
    
    .year-marker-dot {
        width: 10px;
        height: 10px;
    }
    
    .year-marker-label {
        font-size: 0.75rem;
    }
    
    .year-range-label {
        font-size: 0.625rem;
    }
}