.page-news {
  --news-line: 1px solid var(--rule);
}

/* 首屏 */
.page-news .news-hero {
  padding: 28px 0 20px;
}
.page-news .news-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--text-1);
  max-width: 20ch;
}
.page-news .news-lede {
  margin: 16px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
  max-width: 58ch;
}
.page-news .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.page-news .hero-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-news .hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--amber);
  flex: none;
}

/* 主题带 */
.page-news .news-band {
  margin: 0 0 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
}
.page-news .news-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 置顶摘要卡 */
.page-news .pinned {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 30px 20px 26px;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.page-news .pinned__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border: 1px solid var(--amber);
  background: var(--ink-2);
  color: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.page-news .pinned__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.page-news .pinned__title {
  margin: 0 0 18px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--paper);
}
.page-news .pinned__list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.page-news .pinned__list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper-2);
}
.page-news .pinned__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  padding-top: 4px;
}
.page-news .pinned .btn--ghost {
  color: var(--paper);
  border-color: var(--amber-soft);
}
.page-news .pinned .btn--ghost:hover,
.page-news .pinned .btn--ghost:focus-visible {
  background: var(--ink-2);
  color: var(--amber-soft);
}
.page-news .pinned__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid var(--ink-2);
}

/* 筛选条 */
.page-news .filter-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  margin-top: 32px;
  padding: 10px 0;
  background: var(--sand);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.page-news .filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.page-news .filter-bar__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.page-news .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-news .filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  transition: background 120ms linear, border-color 120ms linear, color 120ms linear;
}
.page-news .filter-chip__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.page-news .filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.page-news .filter-chip:has(input:checked) {
  background: var(--cyan);
  border-color: var(--teal);
  color: var(--ink);
}
.page-news .filter-chip:has(input:focus-visible) {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.page-news .filter-status {
  margin: 0;
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.page-news .filter-status__item {
  display: none;
}
.page-news .filter-status__item[data-for="all"] {
  display: inline;
}
.page-news:has(#tag-version:checked) .filter-status__item[data-for="all"],
.page-news:has(#tag-index:checked) .filter-status__item[data-for="all"],
.page-news:has(#tag-column:checked) .filter-status__item[data-for="all"],
.page-news:has(#tag-term:checked) .filter-status__item[data-for="all"],
.page-news:has(#tag-resource:checked) .filter-status__item[data-for="all"] {
  display: none;
}
.page-news:has(#tag-all:checked) .filter-status__item[data-for="all"] {
  display: inline;
}
.page-news:has(#tag-version:checked) .filter-status__item[data-for="version"],
.page-news:has(#tag-index:checked) .filter-status__item[data-for="index"],
.page-news:has(#tag-column:checked) .filter-status__item[data-for="column"],
.page-news:has(#tag-term:checked) .filter-status__item[data-for="term"],
.page-news:has(#tag-resource:checked) .filter-status__item[data-for="resource"] {
  display: inline;
}
.page-news:has(#tag-version:checked) .entry:not([data-tag="version"]),
.page-news:has(#tag-index:checked) .entry:not([data-tag="index"]),
.page-news:has(#tag-column:checked) .entry:not([data-tag="column"]),
.page-news:has(#tag-term:checked) .entry:not([data-tag="term"]),
.page-news:has(#tag-resource:checked) .entry:not([data-tag="resource"]) {
  display: none;
}

/* 正文流 */
.page-news .news-body {
  display: grid;
  gap: 32px;
  padding: 8px 0 56px;
}
.page-news .news-stream {
  min-width: 0;
  max-width: 760px;
}
.page-news .news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-news .entry {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 18px 0 18px 14px;
  border-bottom: 1px dashed var(--rule);
}
.page-news .entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 2px;
  height: 14px;
  background: var(--cyan);
  transition: height 220ms var(--ease), background 220ms var(--ease);
}
.page-news .entry:hover::before,
.page-news .entry:focus-within::before {
  height: calc(100% - 34px);
  background: var(--amber);
}
.page-news .entry__num {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.page-news .entry__summary {
  display: block;
  list-style: none;
  cursor: pointer;
}
.page-news .entry__summary::-webkit-details-marker {
  display: none;
}
.page-news .entry__head {
  display: block;
  position: relative;
  padding-right: 26px;
}
.page-news .entry__head::after {
  content: "＋";
  position: absolute;
  top: 16px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--teal);
}
.page-news .entry__fold[open] .entry__head::after {
  content: "－";
  color: var(--amber);
}
.page-news .entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.page-news .entry__title {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-1);
}
.page-news .entry:hover .entry__title {
  color: var(--ink);
}
.page-news .entry__body {
  padding: 8px 0 0;
  max-width: 56ch;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
}
.page-news .entry__body p {
  margin: 0;
}

/* 列表中部图 */
.page-news .news-inline-figure {
  margin: 26px 0;
  border: 1px solid var(--rule);
  background: var(--sand);
}
.page-news .news-inline-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page-news .news-inline-figure figcaption,
.page-news .news-archive__figure figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

/* 侧栏 */
.page-news .news-rail {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.page-news .rail-card {
  border: 1px solid var(--ink);
  border-top: 3px solid var(--amber);
  background: var(--paper-2);
  padding: 20px 18px;
}
.page-news .rail-card .eyebrow {
  margin: 0;
  color: var(--teal);
}
.page-news .rail-card__title {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-1);
}
.page-news .rail-card__text {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}
.page-news .rail-card .btn {
  display: block;
  margin-top: 8px;
  text-align: center;
}
.page-news .news-note {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 18px;
}
.page-news .news-note .note-card__label {
  color: var(--teal);
}
.page-news .news-note .note-card__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
}
.page-news .news-note__link {
  display: inline-block;
  margin-top: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--cyan);
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
}
.page-news .news-note__link:hover,
.page-news .news-note__link:focus-visible {
  color: var(--ink);
  border-left-color: var(--amber);
}

/* 归档 */
.page-news .news-archive {
  padding: 48px 0 56px;
}
.page-news .archive-grid {
  display: grid;
  gap: 28px;
}
.page-news .archive-item {
  margin-top: 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.page-news .archive-item__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
}
.page-news .archive-item__summary::-webkit-details-marker {
  display: none;
}
.page-news .archive-item__count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.page-news .archive-item[open] .archive-item__summary {
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.page-news .archive-item__body {
  padding: 14px 16px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
}
.page-news .archive-item__body p {
  margin: 0;
  max-width: 60ch;
}
.page-news .news-archive__figure {
  margin: 0;
  align-self: start;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.page-news .news-archive__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* 动效 */
.page-news [data-reveal] {
  transition-delay: calc(var(--i, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* 平板及以上 */
@media (min-width: 720px) {
  .page-news .news-hero {
    padding: 40px 0 24px;
  }
  .page-news .news-lede {
    font-size: 17px;
  }
  .page-news .news-band {
    margin-bottom: 40px;
  }
  .page-news .news-band img {
    aspect-ratio: 4 / 1;
  }
  .page-news .pinned {
    padding: 36px 32px;
  }
  .page-news .pinned__list li {
    font-size: 15px;
  }
  .page-news .entry {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 4px 18px;
    padding: 20px 0 20px 16px;
  }
  .page-news .entry__title {
    font-size: 17px;
  }
  .page-news .filter-bar__inner {
    flex-wrap: nowrap;
  }
  .page-news .filter-status {
    flex-basis: auto;
    margin-left: auto;
  }
}

@media (min-width: 900px) {
  .page-news .pinned {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 32px;
  }
  .page-news .news-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    padding-bottom: 72px;
  }
  .page-news .news-rail {
    position: sticky;
    top: 92px;
  }
  .page-news .archive-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
  }
  .page-news .news-archive {
    padding: 64px 0 72px;
  }
}
<<<END>>>

.page-news {
  --i: 0.3s;
}
