/* ===================================
   更新日志页面专属样式
   时间线设计 - 与主站风格一致
   =================================== */

/* --- 页面标题区域 --- */
.changelog-hero {
    padding: 160px 0 80px;
    background: var(--bg-body);
}

/* 覆盖标题字体：中文用无衬线体更整齐 */
.changelog-hero .section-title {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 2px;
}

/* --- 时间线主体区域 --- */
.changelog-section {
    padding: 0 0 80px;
    background: var(--bg-body);
}

/* --- 时间线容器 --- */
.changelog-timeline {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* 时间线竖线 */
.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            var(--accent-color),
            var(--card-border) 30%,
            var(--card-border) 70%,
            transparent);
}

/* --- 时间线圆点 --- */
.changelog-dot {
    position: absolute;
    left: -40px;
    top: 28px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 3px solid var(--accent-color);
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* 鼠标悬停时圆点变实心 */
.changelog-item:hover .changelog-dot {
    background: var(--accent-color);
    transform: scale(1.25);
}

/* 时间线终点特殊圆点 */
.changelog-dot-end {
    left: -40px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-width: 2px;
    border-color: var(--text-muted);
}

/* --- 年份分隔线 --- */
.changelog-year-divider {
    position: relative;
    margin: 48px 0 32px;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.changelog-year-divider.visible {
    opacity: 1;
    transform: translateY(0);
}

.changelog-year-divider span {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
    position: relative;
}

/* 年份左侧装饰线 */
.changelog-year-divider span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* --- 时间线条目 --- */
.changelog-item {
    position: relative;
    margin-bottom: 32px;
    /* 滚动动画初始状态 */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.changelog-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 版本卡片 --- */
.changelog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.changelog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* --- 卡片头部 --- */
.changelog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--card-border);
    flex-wrap: wrap;
}

/* 版本号 */
.changelog-version {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0;
}

/* 日期 */
.changelog-date {
    font-size: 14px;
    color: var(--text-muted);
}

/* 标签 */
.changelog-tag {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-left: auto;
}

.tag-latest {
    background: var(--primary);
    color: white;
}

.tag-first {
    background: var(--accent-color);
    color: var(--primary);
}

/* --- 卡片内容 --- */
.changelog-body {
    padding: 24px 28px;
}

.changelog-body h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.changelog-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-body ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 列表项前的小圆点 */
.changelog-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* 备注文字 */
.changelog-note {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

/* --- 时间线终点 --- */
.changelog-end {
    position: relative;
    padding: 8px 0 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.changelog-end.visible {
    opacity: 1;
    transform: translateY(0);
}

.changelog-end span {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* --- 返回按钮区域 --- */
.changelog-back {
    padding: 40px 0 80px;
    background: var(--bg-body);
}

/* --- 当前页面导航高亮 --- */
.nav-link-active {
    color: var(--text-main) !important;
    font-weight: 600;
}

/* ===================================
   响应式适配
   =================================== */
@media (max-width: 768px) {
    .changelog-hero {
        padding: 120px 0 48px;
    }

    .changelog-timeline {
        padding-left: 32px;
    }

    .changelog-timeline::before {
        left: 5px;
    }

    .changelog-dot {
        left: -32px;
        width: 12px;
        height: 12px;
        top: 30px;
    }

    .changelog-dot-end {
        left: -32px;
        width: 10px;
        height: 10px;
    }

    .changelog-header {
        padding: 16px 20px;
    }

    .changelog-body {
        padding: 16px 20px;
    }

    .changelog-version {
        font-size: 18px;
    }

    .changelog-year-divider span {
        font-size: 26px;
    }

    /* 标签移到下一行 */
    .changelog-tag {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .changelog-timeline {
        padding-left: 24px;
    }

    .changelog-timeline::before {
        left: 3px;
    }

    .changelog-dot {
        left: -24px;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .changelog-dot-end {
        left: -24px;
        width: 8px;
        height: 8px;
    }

    .changelog-header {
        padding: 14px 16px;
        gap: 8px;
    }

    .changelog-body {
        padding: 14px 16px;
    }
}