/**
 * timeline.css — Timeline page (/timeline): interactive horizontal canvas,
 * topic bars, timeline nodes, detail cards, search bar, zoom controls,
 * locate button, tips overlay, theme toggle. Supports 4 zoom levels
 * (overview → mini → card → full) with smooth density transitions.
 */
/* Extracted from style.css */

/* ==================== 时间轴画布变量 ==================== */
:root {
    --canvas-bg: #0a0a0f;
    --canvas-bg-secondary: #0f0f18;
    --canvas-line: #1a1a25;
    --canvas-line-accent: #2a2a3a;
    --node-default: #7b8cde;
    --node-insight: #ffb86c;
    --node-milestone: #00ff88;
    --node-current: #bd93f9;
    --locate-btn-bg: #1a1a25;
    --locate-btn-hover: #252535;
    --locate-btn-icon: #00ff88;
    --zoom-full: 1.5;
    --zoom-card: 1.0;
    --zoom-mini: 0.5;
    --zoom-overview: 0.25;
}
/* ==================== 检索栏（终端状态栏风格） ==================== */
.timeline-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-top: none;
    max-width: 100%;
    margin: 0;
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 4px,
        rgba(0,0,0,1) calc(100% - 4px),
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 4px,
        rgba(0,0,0,1) calc(100% - 4px),
        rgba(0,0,0,0) 100%
    );
}

.search-group {
    display: flex;
    align-items: center;
}

.search-group label {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.search-select {
    padding: 4px 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.search-select:hover, .search-select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.jump-btn {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-mono);
    cursor: pointer;
    background: var(--accent-primary);
    color: #000;
    border: none;
    transition: all 0.2s;
}

.jump-btn:hover {
    background: #00dd77;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 4px;
}

.zoom-slider {
    width: 80px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border-radius: 2px;
    cursor: pointer;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
}

.zoom-value {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-primary);
    min-width: 34px;
}

.control-btn {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(0, 255, 136, 0.1);
}

.timeline-theme-btn {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.timeline-theme-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.timeline-today {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-primary);
    margin-right: auto;
    white-space: nowrap;
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
}

.timeline-back-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.timeline-back-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tips-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.tips-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.tips-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 255, 136, 0.08);
    transform: translateY(0) scale(1);
    transition: transform 0.25s ease;
}

.tips-overlay:not(.visible) .tips-dialog {
    transform: translateY(-12px) scale(0.96);
}

.tips-dialog h3 {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--accent-primary);
    margin: 0 0 20px;
}

.tips-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 4px;
}

.tips-close:hover {
    color: var(--text-primary);
}

.tips-section h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    margin: 16px 0 6px;
}

.tips-section ul {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: none;
}

.tips-section li {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.tips-section li::before {
    content: '▸ ';
    color: var(--accent-primary);
    font-size: 10px;
}

.tips-section kbd {
    font-family: var(--font-mono);
    font-size: 11px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    padding: 1px 5px;
    color: var(--accent-primary);
}

[data-theme="light"] .tips-overlay {
    background: rgba(0, 0, 0, 0.35);
}
/* ==================== 时间轴页面布局 ==================== */
#timelinePage:not(.hidden) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 72px;
    box-sizing: border-box;
    transition: padding-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.nav-hidden #timelinePage:not(.hidden) {
    padding-top: 0;
}

#timelinePage:not(.hidden) .canvas-viewport {
    flex: 1;
    height: auto;
    min-height: 300px;
}
/* ==================== 画布视口（无边界） ==================== */
.canvas-viewport {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 500px;
    overflow: hidden;
    background: var(--canvas-bg);
    cursor: grab;
}

.canvas-viewport:active {
    cursor: grabbing;
}

.canvas-content {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
    z-index: 1;
}

.canvas-content.smooth-zoom {
    transition: transform 0.15s ease-out;
}

.canvas-content.animate-jump {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* ==================== 定位按钮（地图风格） ==================== */
.locate-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--locate-btn-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    z-index: 100;
}

.locate-btn:hover {
    background: var(--locate-btn-hover);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 20px rgba(0, 255, 136, 0.2);
    transform: scale(1.05);
}

.locate-btn:active {
    transform: scale(0.95);
}

.locate-btn:focus {
    outline: none;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 0 2px var(--accent-primary),
        0 0 20px rgba(0, 255, 136, 0.3);
}

.locate-icon {
    color: var(--locate-btn-icon);
    transition: transform 0.2s ease;
}

.locate-btn:hover .locate-icon {
    transform: scale(1.1);
}

.locate-btn.locating .locate-icon {
    animation: locate-pulse 0.8s ease-in-out infinite;
}

@keyframes locate-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

@media (max-width: 768px) {
    .locate-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
}
/* ==================== 时间轴内容 ==================== */
.timeline-canvas {
    position: relative;
}

.timeline-bar-layer {
    position: relative;
    width: 100%;
}

.topic-bar {
    position: absolute;
    height: 26px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    padding-right: 10px;
    opacity: 0.85;
    z-index: 5;
    min-width: 80px;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

.topic-bar-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #000;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(255,255,255,0.5);
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-bar.ongoing {
    mask-image: linear-gradient(
        to right,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) calc(100% - 36px),
        rgba(0,0,0,0.3) 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) calc(100% - 36px),
        rgba(0,0,0,0.3) 100%
    );
}

.topic-bar.ongoing::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    animation: ongoing-pulse 2s ease-in-out infinite;
}

@keyframes ongoing-pulse {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(0.8); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.topic-bar.selected {
    animation: none;
    opacity: 1 !important;
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(255,255,255,0.5));
    box-shadow:
        0 0 0 3px rgba(255,255,255,0.8),
        0 0 24px rgba(255,255,255,0.3);
    z-index: 10;
    transform: scale(1.04);
}

.timeline-main-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--canvas-line-accent);
}

.timeline-node-layer {
    position: absolute;
    left: 0;
    right: 0;
}

.timeline-tick-layer {
    position: absolute;
    left: 0;
    right: 0;
    height: 18px;
    display: flex;
    align-items: flex-start;
}

.tick-label {
    position: absolute;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0.85;
}

.tick-year {
    font-size: 13px;
    color: var(--accent-primary);
    opacity: 0.9;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.tick-month {
    font-size: 11px;
    color: var(--text-primary);
    opacity: 0.8;
}
/* ==================== 时间节点 ==================== */
.timeline-node {
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s, z-index 0s;
}

.timeline-node:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 20;
}

.node-dot {
    width: 12px;
    height: 12px;
    background: var(--node-default);
    border-radius: 50%;
    border: 2px solid var(--canvas-bg);
    box-shadow: 0 0 8px rgba(123, 140, 222, 0.4);
}

.node-dot.insight {
    width: 20px;
    height: 20px;
    background: var(--node-insight);
    box-shadow:
        0 0 12px rgba(255, 184, 108, 0.6),
        0 0 24px rgba(255, 184, 108, 0.3);
    animation: insight-pulse 2s ease-in-out infinite;
}

@keyframes insight-pulse {
    0%, 100% {
        box-shadow:
            0 0 12px rgba(255, 184, 108, 0.6),
            0 0 24px rgba(255, 184, 108, 0.3);
    }
    50% {
        box-shadow:
            0 0 20px rgba(255, 184, 108, 0.8),
            0 0 40px rgba(255, 184, 108, 0.5);
    }
}

.node-dot.milestone {
    width: 16px;
    height: 16px;
    background: transparent;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

.node-dot.merged {
    width: 16px;
    height: 16px;
    border: 2px solid var(--node-default);
}

.node-dot.current {
    background: var(--node-current);
    animation: current-pulse 1.5s ease-in-out infinite;
}

@keyframes current-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.node-date {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 1;
}

.timeline-node.dimmed {
    opacity: 0.15 !important;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.timeline-node.dimmed .node-dot {
    transform: scale(0.6);
    transition: transform 0.35s ease;
}

.timeline-node.dimmed .node-date {
    display: none;
}

.timeline-node.dimmed .node-card {
    display: none;
}
/* ==================== 展开卡片 ==================== */
.node-card {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    margin-top: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    z-index: 100;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 255, 136, 0.1);
}

.node-card::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--bg-secondary);
}

.timeline-node.expanded .node-card,
.timeline-node.hover-expanded .node-card {
    opacity: 1;
    pointer-events: auto;
}

.timeline-node.expanded .node-card {
    animation: card-bounce-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.timeline-node.hover-expanded:not(.expanded) .node-card {
    animation: card-hover-in 0.1s ease-out forwards;
}

@keyframes card-hover-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-2px) scale(0.95); }
    to { opacity: 1; transform: translateX(-50%) translateY(8px) scale(1); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-primary);
}

.card-topic-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-primary);
    margin-bottom: 4px;
    padding: 2px 6px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 3px;
    display: inline-block;
}

.card-close {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    font-size: 18px;
    line-height: 1;
}

.card-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.card-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
}

.card-entry {
    margin-bottom: 14px;
}

.card-entry:last-child {
    margin-bottom: 0;
}

.card-entry p {
    margin: 0 0 4px;
}

.card-entry p:last-child {
    margin-bottom: 0;
}

.card-insight {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 184, 108, 0.15);
    border-radius: 4px;
    color: var(--node-insight);
    font-size: 11px;
    margin-bottom: 8px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.card-tag {
    font-size: 10px;
    color: var(--accent-tertiary);
    padding: 2px 6px;
    background: rgba(123, 140, 222, 0.1);
    border-radius: 3px;
}

.card-article-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.card-article-link {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-primary);
    text-decoration: none;
    padding: 6px 10px;
    background: rgba(var(--accent-primary-rgb), 0.08);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.card-article-link:hover {
    background: rgba(var(--accent-primary-rgb), 0.16);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ==================== 缩放级别适配 ==================== */
.canvas-content[data-zoom="overview"] .node-card {
    display: none;
}

.canvas-content[data-zoom="overview"] .node-date {
    display: none;
}

.canvas-content[data-zoom="overview"] .timeline-tick-layer {
    display: flex;
}

.canvas-content[data-zoom="overview"] .topic-bar-label {
    font-size: 13px;
}

.canvas-content[data-zoom="overview"] .topic-bar {
    height: 30px;
}

.canvas-content[data-zoom="mini"] .node-card {
    display: none;
}

.canvas-content[data-zoom="mini"] .node-date {
    display: none;
}

.canvas-content[data-zoom="mini"] .timeline-tick-layer {
    display: flex;
}

.canvas-content[data-zoom="mini"] .topic-bar-label {
    font-size: 12px;
}

.canvas-content[data-zoom="card"] .node-date {
    opacity: 1;
}

.canvas-content[data-zoom="card"] .node-dot {
    width: 14px;
    height: 14px;
}

.canvas-content[data-zoom="full"] .node-card {
    width: 320px;
}

.canvas-content[data-zoom="full"] .node-dot.insight {
    width: 24px;
    height: 24px;
}
/* ==================== 浅色主题适配 ==================== */
[data-theme="light"] .canvas-viewport {
    --canvas-bg: #f5f5f7;
    --canvas-bg-secondary: #ffffff;
    --canvas-line: #e0e0e5;
    --canvas-line-accent: #d0d0d8;
    --locate-btn-bg: #ffffff;
    --locate-btn-hover: #f0f0f5;
}

[data-theme="light"] .locate-btn {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .locate-btn:hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(0, 255, 136, 0.2);
}
/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .timeline-search-bar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 10px;
    }

    .timeline-back-btn,
    .timeline-today {
        order: -1;
        flex: 1 1 auto;
        text-align: center;
    }

    .timeline-search-bar .terminal-dot {
        order: -2;
        flex-shrink: 0;
    }

    .timeline-today {
        margin-right: 0;
    }

    .search-select {
        font-size: 10px;
        padding: 3px 6px;
    }

    .jump-btn {
        font-size: 10px;
        padding: 3px 8px;
    }

    .zoom-slider {
        width: 60px;
    }

    .zoom-value {
        font-size: 9px;
        min-width: 28px;
    }

    .control-btn {
        padding: 3px 6px;
        font-size: 9px;
    }

    .timeline-theme-btn {
        width: 32px;
        height: 22px;
        font-size: 13px;
    }

    .node-card {
        width: 220px;
        left: 50%;
    }
}

@media (max-width: 480px) {
    .timeline-search-bar {
        gap: 5px;
        padding: 6px 8px;
    }

    .timeline-back-btn {
        padding: 3px 6px;
        font-size: 10px;
    }

    .timeline-today {
        font-size: 10px;
        padding: 3px 6px;
    }

    .search-select {
        font-size: 9px;
        padding: 2px 4px;
    }

    .jump-btn {
        font-size: 9px;
        padding: 2px 6px;
    }

    .zoom-slider {
        width: 48px;
    }

    .zoom-value {
        font-size: 8px;
        min-width: 24px;
    }

    .control-btn {
        font-size: 8px;
        padding: 2px 5px;
    }

    .timeline-theme-btn {
        width: 28px;
        height: 20px;
        font-size: 11px;
    }

    .node-card {
        width: 190px;
        left: 50%;
    }
}
/* ==================== 入场动画 ==================== */
.timeline-node {
    opacity: 0;
    animation: node-appear 0.4s ease-out forwards;
}

@keyframes node-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.timeline-node:nth-child(1) { animation-delay: 0.1s; }
.timeline-node:nth-child(2) { animation-delay: 0.2s; }
.timeline-node:nth-child(3) { animation-delay: 0.3s; }
.timeline-node:nth-child(4) { animation-delay: 0.4s; }
.timeline-node:nth-child(5) { animation-delay: 0.5s; }
.timeline-node:nth-child(n+6) { animation-delay: 0.6s; }

.topic-bar {
    opacity: 0;
    animation: label-slide-in 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes label-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes card-bounce-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(8px) scale(1);
    }
}
