/* ==========================================================
   更新日志页 · 左版本列表 / 右日志内容
   ========================================================== */

.clg {
    padding: calc(var(--nav-h) + 20px) 0 60px;
    min-height: 100vh;
}
/* 两栏布局：左列表固定，右侧内容顶部与标题对齐 */
.clg-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

/* 左侧：标题块 + 版本列表 */
.clg-list {
    position: sticky;
    top: calc(var(--nav-h) + 8px);
}
.clg-title-block {
    margin-bottom: 24px;
}
.clg-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent-ink);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}
.clg-title {
    font-family: var(--font-kukuhei);
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    color: var(--ink);
}
.clg-list-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - var(--nav-h) - 235px);
    overflow-y: auto;
    padding-right: 6px;
}
/* 版本列表细滚动条 */
.clg-list-items::-webkit-scrollbar { width: 6px; }
.clg-list-items::-webkit-scrollbar-thumb { background: #cbd3e3; border-radius: 99px; }
.clg-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: var(--r-md);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    text-align: left;
    transition: all .25s ease;
}
.clg-item:hover { border-color: rgba(78, 90, 212, 0.35); color: var(--ink); }
.clg-item.active {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 10px 24px -12px rgba(15,23,42,0.4);
}
.clg-item .clg-item-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border: 1px solid rgba(78,90,212,0.16);
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    text-transform: uppercase;
}
.clg-item.active .clg-item-tag { color: #fff; background: rgba(255,255,255,0.22); border-color: transparent; }

/* 右侧日志面板 */
.clg-log {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px 36px 40px;
    box-shadow: var(--shadow-md);
    min-height: 0;
    display: flex;
    flex-direction: column;
    animation: clgScaleIn .85s cubic-bezier(.22,1,.36,1) both;
}
/* 标题行（第一行，稍高） */
.clg-log-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.clg-log-version {
    font-family: var(--font-zen);
    font-size: 1.7rem;
    color: var(--ink);
    letter-spacing: 1px;
}
.clg-log-tag {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border: 1px solid rgba(78,90,212,0.18);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
}
.clg-log-date {
    margin-left: auto;
    font-size: 0.86rem;
    color: var(--muted);
}
/* 版本标题行：夸克下载徽标（浅色克制的描边样式，位于日期左侧） */
.clg-quark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border: 1px solid rgba(78, 90, 212, 0.22);
    border-radius: var(--radius-pill);
    padding: 4px 11px;
    transition: border-color .25s ease, background .25s ease;
}
.clg-quark:hover {
    border-color: rgba(78, 90, 212, 0.4);
    background: rgba(78, 90, 212, 0.12);
}
/* 副标题行（第二行） */
.clg-log-sub {
    padding: 16px 0 24px;
    font-size: 1.05rem;
    color: var(--ink-soft);
    letter-spacing: .3px;
    line-height: 1.9;
}
.clg-log-body { flex: 1; }
.clg-sec + .clg-sec { margin-top: 24px; }
.clg-sec h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--ink);
    margin-bottom: 14px;
}
.clg-sec h3::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.clg-sec ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 18px;
}
.clg-sec li {
    position: relative;
    font-size: 0.96rem;
    color: var(--ink-soft);
    line-height: 1.75;
    padding-left: 14px;
}
.clg-sec li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.72em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--line);
}

/* 响应式 */
@media (max-width: 860px) {
    .clg-body { grid-template-columns: 1fr; gap: 20px; }
    .clg-list { position: static; }
    .clg-list-head { padding: 0 0 14px; }
    .clg-list-items {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
        overflow: visible;
    }
    .clg-item { flex: 1 1 auto; }
    .clg-log { padding: 28px 24px 30px; min-height: 0; }
}
@media (max-width: 560px) {
    .clg { padding-top: calc(var(--nav-h) + 40px); }
    .clg-log-date { margin-left: 0; width: 100%; }
}

/* ==========================================================
   更新日志 · 入场动画（单独设计，契合两栏左侧列表 / 右侧日志面板）
   顺序：左栏标题 → 左栏版本列表 → 右栏面板（缩放展开）→ 面板内三块内容递进浮现
   ========================================================== */
@keyframes clgRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes clgScaleIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes clgFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.clg-title-block.clg-in {
    animation: clgRise .7s cubic-bezier(.22, 1, .36, 1) both;
}
.clg-list-items.clg-in {
    animation: clgRise .7s cubic-bezier(.22, 1, .36, 1) .10s both;
}
.clg-log {
    will-change: transform, opacity;
}
.clg-log.enter {
    animation: clgScaleIn .85s cubic-bezier(.22, 1, .36, 1) both;
}
.clg-log-title-row {
    animation: clgFadeUp .6s cubic-bezier(.22, 1, .36, 1) .36s both;
}
.clg-log-sub {
    animation: clgFadeUp .6s cubic-bezier(.22, 1, .36, 1) .44s both;
}
.clg-log-body {
    animation: clgFadeUp .6s cubic-bezier(.22, 1, .36, 1) .52s both;
}

/* 切换版本时仅重放面板与内容淡入（不放缩面板本身） */
.clg-log.nav-switch {
    animation: clgFadeUp .4s cubic-bezier(.22, 1, .36, 1) both;
}

/* 尊重系统减弱动态 */
@media (prefers-reduced-motion: reduce) {
    .clg-title-block.clg-in,
    .clg-list-items.clg-in,
    .clg-log.enter,
    .clg-log.nav-switch,
    .clg-log-title-row,
    .clg-log-sub,
    .clg-log-body {
        animation: none !important;
    }
}