/* ========== 更新日志页专属样式：纵向时间轴 + 朴素 markdown 列表 ========== */
/* 遵循站点 UI 语言：低饱和、紧凑，内容用 markdown 简单罗列，不使用彩色分类标签/色条装饰 */
/* 深色/浅色模式自动适配（变量来自 site.css） */

/* ========== 页面容器 ========== */
.changelog-page {
    max-width: 820px;            /* 单列阅读页收窄，提升单条更新条目的可读性 */
    margin: 0 auto;
    padding: 104px 24px 80px;    /* 顶部预留固定导航栏 56px + 呼吸位 */
}

/* ========== Hero 首屏 ========== */
.changelog-hero {
    text-align: center;
    margin-bottom: 44px;
}

.changelog-hero h1 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.changelog-hero h1 .grad {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.changelog-hero__desc {
    max-width: 580px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ========== 时间轴主体 ========== */
/* 左侧竖线贯穿所有版本节点；窄屏下竖线贴近左边缘 */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border-color);
    border-radius: 1px;
}

/* ========== 单个版本节点 ========== */
.tl-version {
    position: relative;
    padding-bottom: 24px;
}

.tl-version:last-child {
    padding-bottom: 0;
}

/* 节点圆点：贴在左侧竖线上，实心圆 + 外圈描边 */
.tl-version::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 0 4px var(--bg-primary);   /* 与页面背景同色的光圈，遮挡竖线穿过节点 */
    box-sizing: border-box;
}

/* ========== 版本卡片 ========== */
.tl-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 22px;
    transition: border-color 0.2s ease;
}

.tl-card:hover {
    border-color: color-mix(in srgb, var(--accent-blue) 50%, var(--border-color));
}

/* ========== 版本头：版本号 + 日期 ========== */
.tl-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tl-version__no {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    font-family: var(--font-mono);
}

.tl-version__date {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ========== 版本内容：markdown 渲染容器 ========== */
.tl-content {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.75;
}

.tl-content > *:first-child { margin-top: 0; }
.tl-content > *:last-child { margin-bottom: 0; }

/* 段落 */
.tl-content p {
    margin: 0 0 10px;
}

/* 行内加粗：主文字色 + 加粗 */
.tl-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 无序/有序列表：朴素圆点，行间距清晰 */
.tl-content ul,
.tl-content ol {
    margin: 0 0 10px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tl-content li {
    margin: 0;
}

.tl-content ul > li { list-style: disc; }
.tl-content ol > li { list-style: decimal; }

/* 列表标记颜色弱化，不喧宾夺主 */
.tl-content ul > li::marker,
.tl-content ol > li::marker {
    color: var(--text-muted);
}

/* ========== 里程碑版本（如 v1.0 首发）：文案居中放大，突出发布喜悦 ========== */
.tl-version--milestone .tl-card {
    text-align: center;
}

.tl-version--milestone .tl-card__head {
    justify-content: center;
}

.tl-version--milestone .tl-content {
    font-size: 14px;
    color: var(--text-secondary);
}

.tl-version--milestone .tl-content p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* 里程碑节点圆点用金色，区分首发节点 */
.tl-version--milestone::before {
    border-color: var(--accent-gold);
}

/* ========== 响应式 ========== */
@media (max-width: 680px) {
    .changelog-page { padding: 88px 18px 60px; }
    .changelog-hero { margin-bottom: 32px; }
    .timeline { padding-left: 26px; }
    .timeline::before { left: 5px; }
    .tl-version::before { left: -26px; width: 12px; height: 12px; }
    .tl-card { padding: 18px 16px; }
    .tl-version__no { font-size: 15px; }
}

/* ========== 无障碍：尊重 reduced-motion ========== */
@media (prefers-reduced-motion: reduce) {
    .tl-card { transition: none !important; }
}
