/* ============================================================
   千智AI · 智能体平台 — 版本与更新页专属样式
   changelog.css
   依赖：base.css（tokens / 通用 section / 按钮 / footer）
   ============================================================ */

/* ============================================================
   页面 Hero
   ============================================================ */

.cl-hero {
  padding: 76px 0 32px;
  text-align: center;
}

.cl-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  border: 1px solid rgba(217, 155, 36, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.cl-hero .eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(217, 155, 36, 0.5);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(217, 155, 36, 0);
  }
}

.cl-hero h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.cl-hero h1 .grad {
  background: linear-gradient(120deg, #3f74e0, #12b5a6 60%, #d99b24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cl-hero p.lead {
  font-size: 16px;
  color: var(--hero-lead);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   筛选标签
   ============================================================ */

.cl-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 48px;
}

.cl-filter {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  background: transparent;
  transition: all 0.2s;
}

.cl-filter.active,
.cl-filter:hover {
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

/* ============================================================
   年份分组
   ============================================================ */

.cl-year {
  margin-bottom: 52px;
}

.cl-year-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.cl-year-head .year {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.cl-year-head .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.cl-year-head .count {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ============================================================
   时间线
   ============================================================ */

.timeline {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-strong);
}

.tl-item {
  position: relative;
  padding-bottom: 34px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 10px var(--brand);
}

/* 不同类型圆点颜色 */

.tl-item.type-feature::before {
  background: var(--brand);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 10px var(--brand);
}

.tl-item.type-improve::before {
  background: var(--brand-2);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 10px var(--brand-2);
}

.tl-item.type-fix::before {
  background: var(--gold);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 10px var(--gold);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tl-version {
  font-size: 12px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 8px;
}

.tl-body h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.tl-body p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.7;
}

.tl-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.tl-body ul li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.tl-body ul li::before {
  content: "·";
  color: var(--brand-2);
  font-weight: 700;
  flex-shrink: 0;
}

.tl-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tl-tags span {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
}

.tl-tags span.tag-feature {
  color: var(--brand);
  border-color: rgba(63, 116, 224, 0.4);
  background: rgba(63, 116, 224, 0.08);
}

.tl-tags span.tag-improve {
  color: var(--brand-2);
  border-color: rgba(18, 181, 166, 0.4);
  background: rgba(18, 181, 166, 0.08);
}

.tl-tags span.tag-fix {
  color: var(--gold);
  border-color: rgba(217, 155, 36, 0.4);
  background: rgba(217, 155, 36, 0.08);
}

/* ============================================================
   订阅/提示条
   ============================================================ */

.cl-note {
  max-width: 820px;
  margin: 0 auto 60px;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--layer-bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.cl-note .note-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(18, 181, 166, 0.12);
  border: 1px solid rgba(18, 181, 166, 0.28);
}

.cl-note .note-icon svg {
  width: 20px;
  height: 20px;
}

.cl-note a {
  color: var(--brand);
  font-weight: 600;
}

.cl-note a:hover {
  text-decoration: underline;
}

/* ============================================================
   响应式（更新页专属）
   ============================================================ */

@media (max-width: 960px) {
  .cl-hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 600px) {
  .cl-hero {
    padding: 56px 0 24px;
  }
  .cl-hero h1 {
    font-size: 26px;
  }
  .cl-year-head .year {
    font-size: 20px;
  }
  .timeline {
    padding-left: 24px;
  }
  .tl-item::before {
    left: -24px;
    width: 12px;
    height: 12px;
  }
  .cl-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
