/* 时光轴新样式 - 左侧时间线右侧内容 */

/* 时间轴布局 */
.timeline-container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 左侧时间线 */
.timeline-sidebar {
    width: 25%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    overflow-y: auto;
    max-height: 80vh;
}

.timeline-sidebar h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
}

.timeline-dates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-date-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.timeline-date-item:hover,
.timeline-date-item.active {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.timeline-date-item .date {
    font-size: 0.875rem;
    font-weight: bold;
}

.timeline-date-item .count {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 右侧内容区域 */
.timeline-content {
    width: 75%;
    padding: 2rem;
    overflow-y: auto;
    max-height: 80vh;
}

.timeline-content h2 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

/* 记录卡片样式 */
.timeline-record {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    transition: transform 0.3s;
}

.timeline-record:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.record-date {
    font-size: 0.875rem;
    color: #666;
}

.record-content {
    margin-bottom: 1rem;
}

.record-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.record-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.record-media {
    margin-top: 1rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.mood-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* 滚动条样式 */
.timeline-sidebar::-webkit-scrollbar,
.timeline-content::-webkit-scrollbar {
    width: 6px;
}

.timeline-sidebar::-webkit-scrollbar-track,
.timeline-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.timeline-sidebar::-webkit-scrollbar-thumb,
.timeline-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        margin: 1rem;
    }
    
    .timeline-sidebar,
    .timeline-content {
        width: 100%;
        max-height: none;
    }
    
    .timeline-sidebar {
        padding: 1rem;
        max-height: 200px;
    }
    
    .timeline-dates {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
    }
    
    .timeline-date-item {
        min-width: 100px;
        flex-shrink: 0;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        margin: 0.5rem;
    }
    
    .timeline-sidebar {
        padding: 0.75rem;
    }
    
    .timeline-content {
        padding: 0.75rem;
    }
    
    .timeline-record {
        padding: 1rem;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading i {
    font-size: 2rem;
    color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 过滤和搜索 */
.timeline-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
}

/* 统计信息 */
.timeline-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    justify-content: center;
}

.timeline-stat {
    text-align: center;
}

.timeline-stat .number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.timeline-stat .label {
    font-size: 0.875rem;
    color: #666;
}