/* ===== 存档页样式 ===== */
.archive-header {
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--secondary);
    max-width: 60ch;
}

.archive-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-button {
    background: none;
    border: 1px solid rgba(45,45,45,0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.filter-button:hover, .filter-button.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.year-group {
    margin-bottom: 3rem;
}

.year-heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.year-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.year-group:hover .year-heading::after {
    transform: scaleX(1);
}

.month-group {
    margin-bottom: 2rem;
}

.month-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.archive-article {
    padding: 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s var(--ease);
    margin-bottom: 1rem;
}

.archive-article:hover {
    border-left-color: var(--accent);
    background: rgba(91, 203, 125, 0.03);
}

.archive-article h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.archive-article time {
    color: var(--secondary);
    font-size: 0.9rem;
}

.archive-article .excerpt {
    color: var(--secondary);
    margin-top: 0.8rem;
    font-size: 0.95rem;
}

/* 加载指示器 */
.loader-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    height: 60px;
    margin-bottom: 20px;
}
.loader {
    width: 20px;
    height: 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.end-message {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}


/* ===== 响应式设计 - 移动端优先 ===== */
@media (max-width: 768px) {
    .archive-filters {
      flex-direction: column;
      align-items: flex-start;
    }

    .filter-button {
      width: 100%;
      text-align: left;
    }
}