/* 更新日志页样式（2026-10-14 改版：时间线布局，仅 changelog.html 引用） */

.cl-empty {
    color: var(--text-light);
    text-align: center;
    padding: 40px;
}

/* 顶部统计条 */
.cl-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 22px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    color: var(--text-secondary);
}
.cl-stats b { color: var(--primary); font-size: 15px; }
.cl-stats-sep {
    width: 1px;
    height: 12px;
    background: var(--border);
}

/* 月份分组 */
.cl-group { margin-bottom: 26px; }
.cl-month {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}
.cl-month::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.cl-month-count {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
}

/* 时间线主干 */
.cl-timeline {
    position: relative;
    padding-left: 26px;
}
.cl-timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary-lighter), var(--border));
    opacity: 0.5;
}

/* 单次更新 */
.cl-entry {
    position: relative;
    margin-bottom: 16px;
}
.cl-entry:last-child { margin-bottom: 0; }
.cl-entry::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--primary-lighter);
    box-shadow: 0 0 0 3px var(--bg);
}
.cl-card {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cl-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e0;
}
.cl-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.cl-day {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.cl-ver {
    font-size: 12px;
    color: var(--text-light);
    background: var(--primary-bg);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: Consolas, Monaco, monospace;
}
.cl-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 8px;
}
.cl-items {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cl-items li {
    position: relative;
    padding: 3px 0 3px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    word-break: break-word;
}
.cl-items li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-lighter);
    opacity: 0.6;
}

/* 移动端 */
@media (max-width: 768px) {
    .cl-timeline { padding-left: 20px; }
    .cl-timeline::before { left: 4px; }
    .cl-entry::before {
        left: -20px;
        top: 16px;
        width: 10px;
        height: 10px;
    }
    .cl-card { padding: 12px 14px; }
    .cl-title { font-size: 15px; }
    .cl-stats { font-size: 12px; gap: 8px; }
    .cl-month { font-size: 14px; }
}
