/* ============================================================
   changelog.css — 更新日志页（changelog.html）专用样式
   依赖：common.css 先加载
   ============================================================ */

/* ── Layout ── */
.page {
  display: flex; max-width: 1100px; margin: 0 auto;
  padding: 60px 40px; gap: 48px; position: relative; z-index: 1;
}

/* ── Sticky Sidebar ── */
.cl-sidebar {
  width: 220px; flex-shrink: 0;
  position: sticky; top: 90px; height: fit-content;
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.cl-sidebar h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.cl-sidebar ul { list-style: none; }
.cl-sidebar li { margin-bottom: 4px; }
.cl-sidebar a { color: var(--muted); text-decoration: none; font-size: 0.83rem; display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; transition: all 0.18s; }
.cl-sidebar a:hover, .cl-sidebar a.active { color: var(--text); background: rgba(255,60,110,0.08); }
.cl-sidebar a .type-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cl-sidebar a .ver-label { font-weight: 600; }

/* ── Main Content ── */
.cl-main { flex: 1; min-width: 0; }
.page-header { margin-bottom: 52px; }
h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.page-sub { color: var(--muted); font-size: 1rem; font-weight: 300; }

/* ── Release Entry ── */
.release {
  border-left: 2px solid var(--border); padding-left: 28px;
  margin-bottom: 52px; position: relative;
}
.release::before {
  content: ''; position: absolute; left: -6px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
}
.release.major::before { border-color: var(--accent); background: var(--accent); }
.release.minor::before { border-color: var(--accent2); background: var(--accent2); }
.release.patch::before { border-color: var(--muted); }

.release-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.release-version { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.release-date { color: var(--muted); font-size: 0.85rem; }

.type-badge { padding: 4px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.type-badge.major { background: rgba(255,60,110,0.15); border: 1px solid rgba(255,60,110,0.3); color: var(--accent); }
.type-badge.minor { background: rgba(255,140,0,0.12); border: 1px solid rgba(255,140,0,0.3); color: var(--accent2); }
.type-badge.patch { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--muted); }

.release-note-text { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

/* Changes list */
.changes-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.changes-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.88rem; color: #c8c8e0; line-height: 1.5;
}
.changes-list li .bullet { color: var(--accent); font-size: 0.55rem; margin-top: 5px; flex-shrink: 0; }

/* Download link */
.dl-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 8px 16px; border-radius: 8px; font-size: 0.82rem; font-weight: 500;
  text-decoration: none; transition: all 0.2s; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.dl-link:hover { border-color: var(--accent); color: var(--text); }

/* Skeleton loader */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Anchor scroll offset */
.anchor-target { display: block; height: 90px; margin-top: -90px; visibility: hidden; }

/* Simple footer for sub-pages */
.simple-footer { border-top: 1px solid var(--border); padding: 32px 60px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.8rem; flex-wrap: wrap; gap: 12px; }
.simple-footer a { color: var(--muted); text-decoration: none; }
.simple-footer a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page { padding: 32px 20px; flex-direction: column; }
  .cl-sidebar { width: 100%; position: static; max-height: none; }
  .simple-footer { padding: 24px 20px; }
}
