/* ==========================================================================
   changelog.v1.css — 更新日志页样式
   - 复用 style.v12.css 设计令牌与基础组件（nav / footer）
   - 本页恒为 body.product-page（浅色主题），令牌在运行时由
     product.v1.css 的作用域覆盖解析为浅色值，无需再写覆盖规则
   ========================================================================== */

.cl-page {
  padding: calc(var(--nav-height) + 48px) 24px 96px;
  min-height: 100vh;
}
.cl-container {
  max-width: 880px;
  margin: 0 auto;
}

/* ---------- 页头 ---------- */
.cl-head {
  text-align: center;
  margin-bottom: 32px;
}
.cl-head h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cl-head p {
  margin: 12px auto 0;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- 版本卡片通用 ---------- */
.cl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-soft);
}
.cl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cl-version {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cl-version-num {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.cl-tag {
  flex: none;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: var(--bg-0);
  border: 1px solid var(--border-soft);
}
.cl-tag-latest {
  color: #ffffff;
  background: var(--accent-1);
  border-color: var(--accent-1);
}
.cl-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- 最新版本卡 ---------- */
.cl-latest {
  border-top: 2px solid var(--accent-1);
}
.cl-intro {
  margin: 14px 0 6px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}
.cl-group {
  margin-top: 20px;
}
.cl-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.cl-group-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}
.cl-group-new::before { background: #10b981; }
.cl-group-improve::before { background: var(--accent-1); }
.cl-group-fix::before { background: #d97706; }
.cl-group ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.cl-group li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}
.cl-group li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong, #cbd5e1);
}
.cl-group li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- 近期版本卡 ---------- */
.cl-history-title {
  margin: 40px 0 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.cl-history-title::before,
.cl-history-title::after {
  content: "—";
  margin: 0 12px;
  color: var(--border-soft);
}
.cl-history {
  display: grid;
  gap: 16px;
}
.cl-history-card {
  padding: 20px 26px;
}
.cl-history-card .cl-version-num {
  font-size: 1.05rem;
}
.cl-history-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.cl-history-card li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}
.cl-history-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong, #cbd5e1);
}

/* ---------- 底部回链 ---------- */
.cl-back {
  margin-top: 32px;
  text-align: center;
  font-size: 0.9rem;
}
.cl-back a {
  color: var(--accent-1);
  text-decoration: none;
  font-weight: 600;
}
.cl-back a:hover {
  text-decoration: underline;
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .cl-card {
    padding: 20px 18px;
  }
  .cl-card-head {
    justify-content: flex-start;
  }
  .cl-version-num {
    font-size: 1.2rem;
  }
}
