/* ========== Windy 风格悬浮时间轴 ========== */
/* 设计: 悬浮琥珀色条, 红色播放按钮, 日期刻度, 金色浮动提示 */

/* 时间轴悬浮容器 */
.timeline-container {
    position: fixed;
    bottom: 16px;
    left: 5%;
    right: 20%;
    display: flex;
    align-items: center;
    height: 52px;
    z-index: 999;
    gap: 10px;
    pointer-events: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== 播放按钮 - 红色圆形 ========== */
.timeline-play-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C62828;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    flex-shrink: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.timeline-play-btn:hover {
    background: #E53935;
    transform: scale(1.06);
}

.timeline-play-btn:active {
    transform: scale(0.94);
}

.timeline-play-btn.playing {
    background: #C62828;
}

.play-pause-icon {
    line-height: 1;
    font-size: 13px;
    margin-left: 2px;
}

/* ========== 时间轴主体 - 悬浮琥珀条 ========== */
.timeline-main {
    flex: 1;
    height: 42px;
    position: relative;
    background: rgba(77, 77, 77, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 8px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    overflow: visible;
    user-select: none;
    -webkit-user-select: none;
}

/* SVG 画布 */
.visual-timeline-svg {
    display: block;
    width: 100%;
    height: 42px;
}

/* ========== 悬浮时间提示框 ========== */
.timeline-tooltip {
    position: absolute;
    top: -36px;
    left: 0;
    transform: translateX(-50%);
    background: #D4A520;
    color: #1a1200;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.01em;
}

.timeline-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #D4A520;
}

/* ========== SVG 内部元素 ========== */

/* 日期分隔线 */
.timeline-major-tick {
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 1;
}

/* 子刻度（午间等） */
.timeline-tick {
    stroke: rgba(255, 255, 255, 0.10);
    stroke-width: 1;
}

/* 日期数字标签 */
.timeline-day-label {
    fill: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    pointer-events: none;
}

/* 星期缩写（上标） */
.timeline-weekday-label {
    fill: rgba(255, 255, 255, 0.40);
    font-size: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    pointer-events: none;
}

/* 指示器垂直线 - 白色 */
.timeline-indicator-line {
    stroke: #fff;
    stroke-width: 2;
    opacity: 0.9;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .timeline-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .timeline-play-btn {
        width: 36px;
        height: 36px;
    }

    .timeline-main {
        height: 38px;
    }

    .visual-timeline-svg {
        height: 38px;
    }
}
