/* ===== 更新表 /updates/ 页面专属 ===== */
.page-news {
  background: var(--bg-warm);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* 标题窄带 */
.page-news .news-hero {
  padding: 26px 0 8px;
}
.page-news .news-hero .breadcrumbs {
  margin-bottom: 18px;
}
.page-news .news-hero__row {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.page-news .news-hero__text h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.page-news .news-hero__lead {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 38em;
}
.page-news .news-hero__cta {
  flex-shrink: 0;
}

/* ===== 批次更新流 ===== */
.page-news .news-timeline-section {
  padding: 20px 0 44px;
  position: relative;
  overflow: hidden;
}
.page-news .news-timeline-section .section-head .sticker {
  margin-left: auto;
}
.page-news .news-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
.page-news .news-timeline__deco {
  position: absolute;
  left: -12px;
  top: 160px;
  width: 80px;
  height: 200px;
  object-fit: cover;
  opacity: 0.16;
  border-radius: 999px;
  pointer-events: none;
}
.page-news .news-timeline__item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.page-news .news-timeline__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  height: 100%;
}
.page-news .news-timeline__node .num-mark {
  width: 46px;
  height: 46px;
  font-size: 18px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
}
.page-news .news-timeline__node .num-mark--invert {
  background: var(--accent);
  color: var(--text-on-deep);
}
.page-news .news-timeline__node::after {
  content: "";
  position: absolute;
  top: 58px;
  bottom: -38px;
  left: 50%;
  width: 2px;
  background: repeating-linear-gradient(
    var(--accent) 0 5px,
    transparent 5px 11px
  );
  opacity: 0.55;
}
.page-news .news-timeline__item:last-child .news-timeline__node::after {
  display: none;
}
.page-news .news-timeline__when {
  font-family: var(--font-hand);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}
.page-news .news-timeline__card {
  background: var(--bg-panel);
  border: 2px solid var(--bg-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 14px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.page-news .news-timeline__card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--bg-deep);
}
.page-news .news-timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.page-news .news-timeline__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
}
.page-news .news-timeline__works {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}
.page-news .news-timeline__works strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== 版本变更说明 ===== */
.page-news .news-versions {
  background: var(--bg-deep);
  color: var(--text-on-deep);
  padding: 38px 0 42px;
}
.page-news .news-versions .section-head__title {
  color: var(--text-on-deep);
}
.page-news .news-versions .section-head__more {
  color: var(--accent);
}
.page-news .news-version-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
.page-news .news-version-card {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, background 0.18s ease;
}
.page-news .news-version-card:hover {
  background: rgba(255, 255, 255, 0.1);
}
.page-news .news-version-card--current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.page-news .news-version-card--current:hover {
  box-shadow: 0 0 0 2px var(--accent), 6px 6px 0 rgba(255, 107, 53, 0.35);
}
.page-news .news-version-card__deco {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  opacity: 0.8;
}
.page-news .news-version-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-right: 72px;
}
.page-news .news-version-card__ver {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.page-news .news-version-card__badge {
  font-family: var(--font-hand);
  font-size: 12px;
  background: var(--accent);
  color: var(--text-on-deep);
  border-radius: 999px;
  padding: 4px 10px;
}
.page-news .news-version-card__summary {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}
.page-news .news-version-card__note {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.page-news .news-version-card__list {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
}
.page-news .news-version-card__list li::marker {
  color: var(--accent);
}

/* ===== 完结作品归档 ===== */
.page-news .news-archive {
  padding: 42px 0 10px;
}
.page-news .news-archive .section-head .sticker {
  margin-left: auto;
}
.page-news .news-archive-grid {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}
.page-news .news-archive__card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.page-news .news-archive__card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--bg-deep);
}
.page-news .news-archive__card .media-frame {
  border-radius: 0;
  border-bottom: 2px solid var(--bg-deep);
}
.page-news .news-archive__card .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-news .news-archive__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.page-news .news-archive__body .card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}
.page-news .news-archive__body .card__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 收录规模统计 ===== */
.page-news .news-stats {
  background: var(--card-lemon);
  padding: 38px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-news .news-stats__heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.page-news .news-stats__deco {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 400px;
  height: 100px;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
}
.page-news .news-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-news .news-stat {
  padding: 10px 6px;
}
.page-news .news-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.page-news .news-stat__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 34px 0 12px;
  }
  .page-news .news-hero__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .page-news .news-hero__text h1 {
    font-size: 36px;
  }
  .page-news .news-hero__lead {
    font-size: 15px;
  }
  .page-news .news-timeline__item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
  }
  .page-news .news-timeline__node::after {
    top: 60px;
    bottom: -42px;
  }
  .page-news .news-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-news .news-stat__num {
    font-size: 44px;
  }
}

@media (min-width: 1024px) {
  .page-news .news-hero__text h1 {
    font-size: 42px;
  }
  .page-news .news-timeline-section .container {
    position: relative;
  }
  .page-news .news-timeline__deco {
    left: -26px;
    opacity: 0.2;
  }
  .page-news .news-timeline__card {
    padding: 18px 22px;
  }
  .page-news .news-timeline__works {
    font-size: 14px;
  }
  .page-news .news-version-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .page-news .news-version-card:nth-child(1) {
    grid-column: span 7;
  }
  .page-news .news-version-card:nth-child(2) {
    grid-column: span 5;
  }
  .page-news .news-version-card:nth-child(3) {
    grid-column: span 5;
  }
  .page-news .news-version-card:nth-child(4) {
    grid-column: span 7;
  }
  .page-news .news-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
