.page-news {
  --page-card-radius: var(--radius-md);
  background: var(--bg-page);
}

.page-news .breadcrumb {
  padding: 18px 0 2px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-dim);
}

.page-news .section-head {
  padding-top: 34px;
  gap: 6px;
}

.page-news .section-head__title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page-news .section-head__note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 4px;
}

/* ===== 01 批次更新流 ===== */
.page-news .news-flow {
  background: var(--bg-teal);
  color: var(--ink);
}

.page-news .news-flow__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 44px;
}

.page-news .news-timeline {
  position: relative;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.page-news .news-timeline__item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  padding-bottom: 28px;
}

.page-news .news-timeline__item:last-child {
  padding-bottom: 0;
}

.page-news .news-timeline__node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--bg-card);
  margin-top: 4px;
  z-index: 1;
}

.page-news .news-timeline__node--new {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(57, 255, 136, 0.16);
}

.page-news .news-timeline__node--normal {
  background: var(--amber);
}

.page-news .news-timeline__node--archived {
  background: var(--bluegray);
}

.page-news .news-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
}

.page-news .news-timeline__batch {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.page-news .news-timeline__count {
  color: var(--ink-dim);
  font-size: 12px;
}

.page-news .news-timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
  margin-top: 10px;
}

.page-news .news-timeline .tag {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.page-news .news-timeline .tag:hover {
  transform: translateY(-2px);
  filter: brightness(1.18);
}

.page-news .news-flow__bg {
  display: none;
  width: 140px;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, 0.2);
  justify-self: end;
}

/* ===== 02 新条目卡片墙 ===== */
.page-news .news-cards {
  background: var(--bg-page);
}

.page-news .news-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 46px;
}

.page-news .news-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--page-card-radius);
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-news .news-card:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.page-news .news-card__body {
  min-width: 0;
  flex: 1;
}

.page-news .news-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-dim);
}

.page-news .news-card__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  margin: 7px 0 5px;
  color: var(--ink);
}

.page-news .news-card__category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}

.page-news .news-card__img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

/* ===== 03 更新摘要条 ===== */
.page-news .news-summary {
  background: var(--bg-purple);
}

.page-news .news-summary__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 46px;
}

.page-news .news-summary__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(8, 10, 16, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.page-news .news-summary__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--bg-page);
  flex-shrink: 0;
}

.page-news .news-summary__icon--category {
  background: var(--c-cyan);
}

.page-news .news-summary__icon--entry {
  background: var(--c-orange);
}

.page-news .news-summary__icon--search {
  background: var(--c-green);
}

.page-news .news-summary__icon--version {
  background: var(--amber);
}

.page-news .news-summary__icon--tag {
  background: var(--c-purple);
}

.page-news .news-summary__icon--archive {
  background: var(--bluegray);
}

.page-news .news-summary__body {
  min-width: 0;
}

.page-news .news-summary__tag {
  display: inline-block;
  background: var(--amber);
  color: var(--bg-page);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.page-news .news-summary__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

/* ===== 04 归档时间轴 ===== */
.page-news .news-archive {
  background: var(--bg-green);
}

.page-news .news-archive__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-news .news-archive__cell {
  flex: 0 0 auto;
  width: 132px;
  background: rgba(8, 10, 16, 0.48);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-news .news-archive__cell:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.page-news .news-archive__cell--active {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px rgba(57, 255, 136, 0.18);
}

.page-news .news-archive__month {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.page-news .news-archive__count {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 3px;
}

.page-news .news-archive__bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 9px;
  overflow: hidden;
}

.page-news .news-archive__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--amber);
}

.page-news .news-archive__bar--lime i {
  background: var(--lime);
}

.page-news .news-archive__bar--gray i {
  background: var(--bluegray);
}

.page-news .news-archive__texture {
  width: 100%;
  height: auto;
  max-height: 96px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 10px;
  box-shadow: 0 0 0 1px var(--line);
}

/* ===== 响应式增强 ===== */
@media (min-width: 768px) {
  .page-news .section-head__title {
    font-size: 32px;
  }

  .page-news .section-head__note {
    font-size: 13px;
  }

  .page-news .news-flow__layout {
    grid-template-columns: 1fr 140px;
    align-items: stretch;
  }

  .page-news .news-flow__bg {
    display: block;
  }

  .page-news .news-cards__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page-news .news-summary__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page-news .news-archive__track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    overflow: visible;
  }

  .page-news .news-archive__cell {
    width: auto;
  }

  .page-news .news-archive__texture {
    max-height: none;
  }
}

@media (min-width: 1024px) {
  .page-news .section-head {
    padding-top: 44px;
  }

  .page-news .section-head__title {
    font-size: 38px;
  }

  .page-news .news-cards__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-news .news-summary__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-news .news-timeline__batch {
    font-size: 15px;
  }

  .page-news .news-timeline .tag {
    font-size: 13px;
  }

  .page-news .news-card__title {
    font-size: 15px;
  }
}
