/* ==========================================================================
   全新日期归档手风琴样式（主色调：#2A4B7C）
   ========================================================================== */
.archive-widget {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.archive-widget-header h5 {
    color: #2A4B7C !important;
    font-size: 1.1rem;
}

.archive-widget-header i {
    color: #2A4B7C !important;
}

/* 年份折叠按钮 */
.archive-year-btn {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #2A4B7C;
    border-radius: 6px !important;
    padding: 10px 15px;
    font-size: 0.95rem;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.archive-year-btn:hover {
    background-color: #eef2f7;
    color: #2A4B7C;
}

/* 箭头与图标动画 */
.archive-year-btn .arrow-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #64748b;
}

/* 展开状态下的样式调整 */
.archive-year-btn:not(.collapsed) {
    background-color: #2A4B7C;
    color: #ffffff;
    border-color: #2A4B7C;
}

.archive-year-btn:not(.collapsed) .year-icon,
.archive-year-btn:not(.collapsed) .arrow-icon {
    color: #ffffff;
}

.archive-year-btn:not(.collapsed) .arrow-icon {
    transform: rotate(180deg);
}

/* 月份胶囊样式 */
.badge-archive-month {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.badge-archive-month:hover {
    background-color: #2A4B7C;
    color: #ffffff;
    border-color: #2A4B7C;
    box-shadow: 0 2px 6px rgba(42, 75, 124, 0.2);
}

.badge-archive-month:hover .archive-count {
    color: rgba(255, 255, 255, 0.85);
}

.archive-count {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 2px;
}