/* 时间线归档页面样式 */

.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.archive-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.archive-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.archive-header h1 i {
    color: var(--primary-color);
}

.archive-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 时间线年份区块 */
.timeline-year {
    margin-bottom: 4rem;
    position: relative;
}

.year-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.year-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

.year-count {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.timeline-line {
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 2px;
}

/* 月份网格 */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.month-group {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid rgba(74, 108, 247, 0.1);
}

.month-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(74, 108, 247, 0.15);
    border-color: rgba(74, 108, 247, 0.3);
}

.month-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(74, 108, 247, 0.2);
    font-weight: 600;
}

/* 时间线索引项 */
.articles-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(74, 108, 247, 0.3);
    position: relative;
    z-index: 1;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 20px;
    height: 2px;
    background: rgba(74, 108, 247, 0.3);
    transform: translateY(-50%);
}

.timeline-content {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.timeline-item:hover .timeline-content {
    background: var(--bg-card);
    border-color: rgba(74, 108, 247, 0.3);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.1);
}

.article-link {
    text-decoration: none;
    color: inherit;
}

.article-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-link:hover .article-title {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-meta .tag {
    background: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.article-meta .tag:hover {
    background: var(--primary-color);
    color: white;
}

/* 返回顶部按钮 */
.back-to-top {
    text-align: center;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 108, 247, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .archive-container {
        padding: 1rem;
    }
    
    .archive-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .months-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-marker::after {
        display: none;
    }
}
