.page-news {
  background: var(--cr-dark);
  color: var(--cr-paper);
}

/* ---------- 动态页首屏 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 52px;
  background:
    radial-gradient(720px 320px at 88% -10%, rgba(230, 57, 70, .38), transparent 60%),
    linear-gradient(135deg, #0D1B2A 0%, #1D3557 100%);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 249, 250, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 249, 250, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 18%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(244, 162, 97, .3);
  border-radius: 40px;
  transform: rotate(22deg);
  pointer-events: none;
}

.page-news .news-hero__grid {
  position: relative;
  display: grid;
  gap: 26px;
  align-items: center;
}

.page-news .news-hero__content {
  position: relative;
  z-index: 2;
}

.page-news .news-hero__kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--cr-gold);
  text-transform: uppercase;
  border: 1px solid rgba(244, 162, 97, .4);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  background: rgba(13, 27, 42, .4);
}

.page-news .news-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--cr-paper);
  background: linear-gradient(120deg, var(--cr-paper) 10%, var(--cr-gold) 55%, var(--cr-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-news .news-hero__lead {
  max-width: 680px;
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  color: rgba(248, 249, 250, .94);
  margin: 0 0 12px;
}

.page-news .news-hero__desc {
  max-width: 540px;
  color: rgba(248, 249, 250, .68);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.page-news .hero-search {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 16px;
  border: 1px solid rgba(248, 249, 250, .22);
  border-radius: var(--radius-pill);
  background: rgba(13, 27, 42, .5);
  color: rgba(248, 249, 250, .8);
  font-size: 14px;
}

.page-news .hero-search__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cr-gold);
}

.page-news .hero-search__keyword {
  color: rgba(248, 249, 250, .86);
  font-weight: 600;
}

.page-news .news-hero__media {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 249, 250, .16);
  overflow: hidden;
  box-shadow: var(--shadow-header);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

.page-news .news-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
}

.page-news .breadcrumb {
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(248, 249, 250, .52);
}

.page-news .breadcrumb a {
  color: rgba(248, 249, 250, .8);
  text-decoration: none;
}

.page-news .breadcrumb a:hover {
  color: var(--cr-gold);
}

/* ---------- 动态时间线区 ---------- */
.page-news .news-timeline {
  position: relative;
  padding-top: 56px;
  padding-bottom: 64px;
}

.page-news .news-timeline__head {
  max-width: 680px;
  margin-bottom: 30px;
}

.page-news .news-timeline__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 56px;
  line-height: 1;
  color: rgba(230, 57, 70, .35);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-news .news-timeline__head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -.02em;
}

.page-news .news-timeline__head p {
  margin: 10px 0 0;
  color: rgba(248, 249, 250, .6);
  line-height: 1.8;
  font-size: 15px;
}

/* ---------- 筛选交互 ---------- */
.page-news .filter-shell {
  position: relative;
  max-width: 940px;
  margin-top: 36px;
}

.page-news .nf-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(50%);
  overflow: hidden;
}

.page-news .nf-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .nf-labels .filter-btn {
  cursor: pointer;
  border: 1px solid rgba(248, 249, 250, .22);
  background: rgba(13, 27, 42, .4);
  color: var(--cr-paper);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: background .3s, border-color .3s, box-shadow .3s, color .3s;
  user-select: none;
}

.page-news .nf-labels .filter-btn:hover {
  border-color: var(--cr-gold);
  color: var(--cr-gold);
}

.page-news #nf-all:checked ~ .nf-labels label[for="nf-all"],
.page-news #nf-review:checked ~ .nf-labels label[for="nf-review"],
.page-news #nf-card:checked ~ .nf-labels label[for="nf-card"],
.page-news #nf-stats:checked ~ .nf-labels label[for="nf-stats"],
.page-news #nf-version:checked ~ .nf-labels label[for="nf-version"],
.page-news #nf-topic:checked ~ .nf-labels label[for="nf-topic"] {
  background: var(--cr-red);
  border-color: var(--cr-red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 57, 70, .32);
}

.page-news .nf-input:focus-visible ~ .nf-labels label {
  outline: 3px solid var(--cr-gold);
  outline-offset: 3px;
}

/* ---------- 热门标签 ---------- */
.page-news .hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
}

.page-news .hot-tags__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--cr-muted);
  margin-right: 6px;
}

.page-news .tag-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(248, 249, 250, .72);
  font-size: 13px;
  text-decoration: none;
  transition: all .3s ease;
}

.page-news .tag-pill:hover {
  border-color: var(--cr-whistle);
  color: var(--cr-whistle);
  background: rgba(255, 183, 3, .1);
}

/* ---------- 时间线 ---------- */
.page-news .timeline-list {
  position: relative;
  margin-top: 26px;
  padding-left: 34px;
  max-width: 940px;
}

.page-news .timeline-list::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 14px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--cr-red) 0 8px,
    var(--cr-blue) 8px 16px
  );
  opacity: .55;
  border-radius: 2px;
}

.page-news .news-card {
  position: relative;
  margin-bottom: 30px;
  scroll-margin-top: 120px;
}

.page-news .news-card__node {
  position: absolute;
  left: -34px;
  top: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cr-dark);
  border: 2px solid var(--cr-gold);
  color: var(--cr-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  z-index: 3;
}

.page-news .news-card__node:hover,
.page-news .news-card__node:focus {
  background: var(--cr-red);
  border-color: var(--cr-red);
  color: #fff;
  transform: scale(1.08);
}

.page-news .news-card__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s var(--ease-out), background .35s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-news .news-card:hover .news-card__panel,
.page-news .news-card:focus-within .news-card__panel {
  border-color: var(--cr-gold);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.page-news .news-card__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0D1B2A;
}

.page-news .news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}

.page-news .news-card:hover .news-card__media img {
  transform: scale(1.05);
}

.page-news .news-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-news .news-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(248, 249, 250, .56);
}

.page-news .news-card__category {
  font-family: var(--font-sans);
  background: var(--cr-red);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.page-news .news-card__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -.01em;
}

.page-news .news-card__title a {
  color: var(--cr-paper);
  text-decoration: none;
  background-image: linear-gradient(var(--cr-gold), var(--cr-gold));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s var(--ease-out), color .3s;
}

.page-news .news-card__title a:hover {
  color: var(--cr-gold);
  background-size: 100% 2px;
}

.page-news .news-card__summary {
  margin: 12px 0 0;
  color: rgba(248, 249, 250, .72);
  font-size: 15px;
  line-height: 1.8;
  max-height: 5.4em;
  overflow: hidden;
  transition: max-height .5s var(--ease-out);
}

.page-news .news-card:hover .news-card__summary,
.page-news .news-card:focus-within .news-card__summary {
  max-height: 20em;
}

.page-news .news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.page-news .news-card__tags .tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(248, 249, 250, .6);
}

.page-news .news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cr-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

.page-news .news-card__more::after {
  content: "→";
  transition: transform .3s var(--ease-out);
}

.page-news .news-card__more:hover {
  border-bottom-color: var(--cr-gold);
}

.page-news .news-card__more:hover::after {
  transform: translateX(4px);
}

/* ---------- 卡片内数据模块 ---------- */
.page-news .news-card__data {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.page-news .news-card__data-item {
  background: rgba(13, 27, 42, .4);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
}

.page-news .news-card__data-item span:first-child {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--cr-gold);
  line-height: 1.2;
}

.page-news .news-card__data-item span:last-child {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(248, 249, 250, .58);
}

.page-news .news-card__points {
  width: 100%;
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  gap: 10px;
}

.page-news .news-card__points li {
  position: relative;
  padding-left: 18px;
  color: rgba(248, 249, 250, .74);
  font-size: 14px;
  line-height: 1.6;
}

.page-news .news-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cr-red);
}

/* ---------- 筛选逻辑 ---------- */
.page-news #nf-review:checked ~ .timeline-list .news-card,
.page-news #nf-card:checked ~ .timeline-list .news-card,
.page-news #nf-stats:checked ~ .timeline-list .news-card,
.page-news #nf-version:checked ~ .timeline-list .news-card,
.page-news #nf-topic:checked ~ .timeline-list .news-card {
  display: none;
}

.page-news #nf-review:checked ~ .timeline-list .cat-review,
.page-news #nf-card:checked ~ .timeline-list .cat-card,
.page-news #nf-stats:checked ~ .timeline-list .cat-stats,
.page-news #nf-version:checked ~ .timeline-list .cat-version,
.page-news #nf-topic:checked ~ .timeline-list .cat-topic {
  display: block;
}

/* ---------- 订阅提醒 ---------- */
.page-news .news-subscribe {
  position: relative;
  overflow: hidden;
  background: var(--cr-blue);
  color: var(--cr-paper);
  padding: 48px 0 56px;
}

.page-news .news-subscribe::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(230, 57, 70, .4), transparent 60%);
}

.page-news .news-subscribe::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cr-red), var(--cr-gold), var(--cr-line));
}

.page-news .news-subscribe__inner {
  display: grid;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.page-news .news-subscribe__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .14);
  margin-bottom: 8px;
}

.page-news .news-subscribe h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  letter-spacing: -.02em;
}

.page-news .news-subscribe p {
  max-width: 520px;
  color: rgba(248, 249, 250, .72);
  line-height: 1.8;
  font-size: 15px;
}

.page-news .news-subscribe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-news .news-subscribe .btn--ghost {
  border-color: rgba(248, 249, 250, .4);
}

.page-news .news-subscribe__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-news .subscribe-stat {
  border: 1px solid rgba(248, 249, 250, .16);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  background: rgba(13, 27, 42, .35);
  backdrop-filter: blur(6px);
}

.page-news .subscribe-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--cr-gold);
  line-height: 1.2;
}

.page-news .subscribe-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(248, 249, 250, .64);
}

/* ---------- 响应式 ---------- */
@media (min-width: 560px) {
  .page-news .news-subscribe__panel {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 720px) {
  .page-news .news-card__panel.has-media {
    display: grid;
    grid-template-columns: 280px 1fr;
  }

  .page-news .news-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 240px;
  }

  .page-news .news-card__body {
    padding: 26px 28px;
  }
}

@media (min-width: 860px) {
  .page-news .news-hero__grid {
    grid-template-columns: 1.05fr .95fr;
  }

  .page-news .news-subscribe__inner {
    grid-template-columns: 1fr 1fr;
  }

  .page-news .news-timeline {
    padding-top: 72px;
    padding-bottom: 80px;
  }
}
