.page-news {
  position: relative;
  background: var(--ink-900);
  color: var(--paper-050);
}

.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 56px;
  border-bottom: 1px solid var(--line);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -8%;
  width: 132%;
  height: 124%;
  background: linear-gradient(198deg, rgba(200, 40, 60, .92) 0%, rgba(109, 22, 34, .55) 54%, rgba(11, 14, 17, 0) 78%);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(246, 215, 154, .06) 0 1px,
    transparent 1px 46px
  );
  pointer-events: none;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.page-news .news-hero__title {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper-050);
  text-wrap: balance;
}

.page-news .news-hero__lede {
  max-width: 34ch;
  color: rgba(244, 241, 234, .86);
}

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

.page-news .news-hero__meta {
  padding: 22px 22px 24px;
  border-radius: 6px;
  border: 1px solid rgba(246, 215, 154, .22);
  align-self: start;
}

.page-news .hero-meta__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-news .hero-meta__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed rgba(246, 215, 154, .28);
}

.page-news .hero-meta__list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-news .hero-meta__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--emerald-300);
  letter-spacing: -0.01em;
}

.page-news .hero-meta__label {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--slate-400);
}

/* ---------- 分类带与条目流 ---------- */

.page-news .feed-stack {
  position: relative;
}

.page-news .tab-anchor {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  scroll-margin-top: 96px;
}

.page-news .tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-news .tagbar__item {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(244, 241, 234, .24);
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: 500;
  color: var(--paper-050);
  text-decoration: none;
  background: transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

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

.page-news .tagbar__item:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(233, 169, 59, .22);
}

.page-news .feature {
  display: grid;
  gap: 24px;
  padding-block: 36px 8px;
}

.page-news .feature__media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.page-news .feature__media img,
.page-news .venues__media img,
.page-news .versions__media img,
.page-news .entry__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-news .feature__media img {
  aspect-ratio: 14 / 9;
}

.page-news .feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 85, 106, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 85, 106, .2) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-news .feature__badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border: 1px solid rgba(246, 215, 154, .34);
  border-radius: 5px;
  background: rgba(11, 14, 17, .84);
  backdrop-filter: blur(6px);
}

.page-news .feature__badge-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--emerald-300);
  line-height: 1;
}

.page-news .feature__badge-txt {
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--slate-400);
}

.page-news .feature__body p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(244, 241, 234, .82);
  max-width: 42ch;
}

.page-news .feature__title {
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.page-news .feature__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 22px;
}

.page-news .feature__stat {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-left: 3px solid var(--red-600);
  background: var(--ink-800);
  border-radius: 3px;
}

.page-news .feature__stat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--emerald-300);
  line-height: 1.1;
}

.page-news .feature__stat-txt {
  font-size: .8125rem;
  color: var(--slate-400);
}

/* ---------- 条目流 ---------- */

.page-news .news-feed {
  margin-top: 34px;
}

.page-news .entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .entry {
  display: grid;
  gap: 10px;
  padding-block: 22px;
  border-top: 1px dashed rgba(246, 215, 154, .32);
  transition: background .2s var(--ease);
}

.page-news .entry:hover {
  background: rgba(20, 24, 29, .62);
}

.page-news .entry__track {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--amber-200);
  padding-top: 3px;
}

.page-news .entry__body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-news .entry .tag {
  justify-self: start;
  font-size: .6875rem;
}

.page-news .entry__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--paper-050);
}

.page-news .entry__sum {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.75;
  color: rgba(244, 241, 234, .74);
  max-width: 48ch;
}

.page-news .entry__more {
  justify-self: start;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--emerald-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 216, 176, .38);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-news .entry__more:hover {
  color: var(--amber-200);
  border-color: var(--amber-200);
}

.page-news .entry__more:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
}

.page-news .entry__media {
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.page-news .entry__media img {
  aspect-ratio: 4 / 3;
}

/* ---------- 标签过滤 ---------- */

.page-news #tab-league:target ~ .news-feed .entry:not([data-cat="league"]),
.page-news #tab-preview:target ~ .news-feed .entry:not([data-cat="preview"]),
.page-news #tab-review:target ~ .news-feed .entry:not([data-cat="review"]),
.page-news #tab-venue:target ~ .news-feed .entry:not([data-cat="venue"]),
.page-news #tab-version:target ~ .news-feed .entry:not([data-cat="version"]) {
  display: none;
}

.page-news #tab-league:target ~ .tagbar .tagbar__item[data-tab="league"],
.page-news #tab-preview:target ~ .tagbar .tagbar__item[data-tab="preview"],
.page-news #tab-review:target ~ .tagbar .tagbar__item[data-tab="review"],
.page-news #tab-venue:target ~ .tagbar .tagbar__item[data-tab="venue"],
.page-news #tab-version:target ~ .tagbar .tagbar__item[data-tab="version"],
.page-news #tab-all:target ~ .tagbar .tagbar__item[data-tab="all"] {
  background: var(--red-600);
  border-color: var(--red-600);
  color: var(--paper-050);
}

/* ---------- 场馆 ---------- */

.page-news .venues {
  background: var(--teal-900);
  border-top: 1px solid rgba(246, 215, 154, .16);
  border-bottom: 1px solid rgba(246, 215, 154, .16);
}

.page-news .venues__inner {
  display: grid;
  gap: 28px;
}

.page-news .venues__media {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(246, 215, 154, .2);
}

.page-news .venues__media img {
  aspect-ratio: 3 / 2;
}

.page-news .venues__title,
.page-news .versions__title,
.page-news .rhythm__title {
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.page-news .venues__body p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(244, 241, 234, .84);
  max-width: 44ch;
}

.page-news .city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin: 22px 0 16px;
}

.page-news .city {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 4px 10px;
  background: rgba(11, 14, 17, .55);
  border: 1px solid rgba(246, 215, 154, .2);
  border-top: 2px solid var(--amber-500);
  border-radius: 3px;
  transition: transform .2s var(--ease), border-top-color .2s var(--ease), background .2s var(--ease);
}

.page-news .city:hover,
.page-news .city:focus-within {
  transform: translateY(-3px);
  border-top-color: var(--red-400);
  background: rgba(11, 14, 17, .82);
}

.page-news .city__glyph {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--paper-050);
}

.page-news .city__name {
  font-size: .6875rem;
  letter-spacing: .04em;
  color: rgba(244, 241, 234, .7);
}

.page-news .city__meta {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--emerald-300);
}

.page-news .venues__note {
  font-size: .8125rem;
  color: rgba(244, 241, 234, .6);
  margin-top: 4px;
}

/* ---------- 版本 ---------- */

.page-news .versions {
  background: var(--ink-900);
}

.page-news .versions__inner {
  display: grid;
  gap: 30px;
}

.page-news .timeline {
  list-style: none;
  margin: 24px 0 26px;
  padding: 0;
  position: relative;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--red-600), var(--amber-500) 78%, rgba(233, 169, 59, 0));
}

.page-news .timeline li {
  position: relative;
  padding-left: 32px;
  padding-bottom: 22px;
}

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

.page-news .timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--amber-500);
}

.page-news .timeline h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--paper-050);
}

.page-news .timeline p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(244, 241, 234, .7);
  max-width: 46ch;
}

.page-news .versions__media {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  align-self: start;
}

.page-news .versions__media img {
  aspect-ratio: 3 / 2;
}

/* ---------- 节奏 ---------- */

.page-news .rhythm {
  background: var(--ink-800);
  border-top: 1px solid var(--line);
}

.page-news .rhythm__grid {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-news .rhythm__item {
  padding: 22px 20px 24px;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-news .rhythm__item:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 169, 59, .5);
}

.page-news .rhythm__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--emerald-300);
  letter-spacing: -0.02em;
}

.page-news .rhythm__item h3 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .04em;
  color: var(--amber-200);
}

.page-news .rhythm__item p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(244, 241, 234, .72);
}

.page-news .rhythm__foot {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px dashed rgba(246, 215, 154, .3);
  font-size: .875rem;
  line-height: 1.7;
  color: var(--slate-400);
}

.page-news .rhythm__foot a {
  color: var(--amber-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 215, 154, .45);
}

.page-news .rhythm__foot a:hover {
  color: var(--red-400);
  border-color: var(--red-400);
}

.page-news .rhythm__foot a:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 700px) {
  .page-news .news-hero {
    padding-block: 56px 72px;
  }

  .page-news .news-hero__inner {
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.85fr);
    align-items: end;
    gap: 40px;
  }

  .page-news .news-hero::before {
    width: 118%;
    right: -14%;
    top: -18%;
    height: 132%;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-news .entry {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 28px;
  }

  .page-news .entry--featured .entry__body {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
    gap: 24px;
  }

  .page-news .entry__media {
    justify-self: end;
    width: 100%;
  }

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

@media (min-width: 900px) {
  .page-news .feature {
    grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
    align-items: start;
    gap: 44px;
    padding-block: 48px 12px;
  }

  .page-news .feature__media img {
    aspect-ratio: 14 / 9;
  }

  .page-news .news-feed {
    margin-top: 44px;
  }

  .page-news .entry--featured .entry__body {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .page-news .venues__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: 48px;
  }

  .page-news .versions__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
    gap: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .tagbar__item,
  .page-news .entry,
  .page-news .city,
  .page-news .rhythm__item,
  .page-news .entry__more {
    transition: none;
  }

  .page-news .tagbar__item:hover,
  .page-news .city:hover,
  .page-news .rhythm__item:hover {
    transform: none;
  }
}
