.timeline-wrapper {
    position: relative;
    padding: 15px 5px 30px 0;
}

.timeline-wrapper::before {
    content: "";
    position: absolute;
    width: 2px;
    top: 0;
    left: 28px;
    bottom: 0;
    background: #d0d0d0;
}

.timeline-controls {
    text-align: right;
    margin-bottom: 10px;
}

.timeline-controls button {
    background: var(--md-primary-fg-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.timeline-controls button:hover {
    background: var(--md-primary-fg-color--lighter, #6fa8dc);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.7em;
}

.timeline-dot-wrapper {
    width: 60px;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--card-color, var(--md-primary-fg-color));
    box-shadow: 0 0 0 4px var(--md-default-bg-color);
    top: 6px;
    position: relative;
    transition: background-color 0.2s ease;
}

.timeline-content {
    flex: 1;
    margin-left: 0;
}

.timeline-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--card-color, var(--md-primary-fg-color));
    border-radius: 0.4rem;
    padding: 8px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    background-color: var(--md-default-bg-color);
    color: var(--md-default-fg-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.changelog-header {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 4px;
}

.changelog-title {
    font-size: 1.05em;
    font-weight: 600;
}

.changelog-subline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.changelog-sub {
    font-size: 0.8em;
    opacity: 0.75;
}

.changelog-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 500;
    color: #fff;
    background: #5f6368;
    user-select: none;
    line-height: 1.2;
}

.changelog-content {
    font-size: 0.9em;
    line-height: 1.45;
    margin-top: 6px;
    display: none;
}

.timeline-card.open .changelog-content {
    display: block;
}

.changelog-content p {
    margin: 0.15em 0;
}

.changelog-content a {
    color: var(--md-primary-fg-color);
    text-decoration: none;
}

.changelog-content a:hover {
    text-decoration: underline;
}

[data-md-color-scheme="slate"] .timeline-card {
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.06);
}

/* toolbar 样式 */
.timeline-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.timeline-toggle-btn {
    background: none;
    border: 1px solid var(--md-default-fg-color--lighter);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.8em;
    color: var(--md-default-fg-color);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.timeline-toggle-btn:hover {
    background: var(--md-primary-fg-color);
    color: var(--md-default-bg-color);
    border-color: var(--md-primary-fg-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

/* ====== Changelog Archive 按钮样式（橘红主题 + 动画）====== */
.changelog-archive-btn {
    background: none;
    border: 1px solid var(--md-default-fg-color--lighter);
    color: var(--md-default-fg-color) !important;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.75em;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.changelog-archive-btn:hover {
    background: var(--md-primary-fg-color);
    color: var(--md-default-bg-color) !important;
    border-color: var(--md-primary-fg-color);
}