.page-news {
  --news-rule: rgba(237, 243, 244, 0.12);
  --news-rule-strong: rgba(237, 243, 244, 0.24);
  --news-indent: 1.5rem;
  --news-time-col: 7.5rem;

  position: relative;
  background:
    radial-gradient(1100px 560px at 88% -6%, rgba(47, 208, 138, 0.10), transparent 62%),
    radial-gradient(900px 520px at -10% 42%, rgba(62, 109, 150, 0.16), transparent 66%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  padding-bottom: calc(var(--dock-h) + 3rem);
  overflow-x: clip;
}

.page-news h1,
.page-news h2,
.page-news h3,
.page-news h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.015em;
}

.page-news p {
  margin: 0;
}

.page-news .section {
  padding: 0;
}

.page-news a {
  color: inherit;
}

.page-news .crumb-sep {
  margin: 0 0.45rem;
  color: var(--text-mute);
}

/* ---------- 首屏 ---------- */

.page-news-hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.page-news-hero h1 {
  margin-top: 0.9rem;
  font-weight: 900;
  font-size: clamp(2rem, 5.4vw, 3.9rem);
  line-height: 1.07;
  max-width: 17ch;
  background: linear-gradient(100deg, var(--paper) 30%, rgba(237, 243, 244, 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-news-lede {
  margin-top: 1.5rem;
  max-width: 38ch;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-soft);
}

/* ---------- 置顶位 ---------- */

.page-news-pinned {
  padding-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.pinned-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.pinned-body {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 3.4vw, 2.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.9);
}

.pinned-body h2 {
  margin-top: 0.85rem;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  max-width: 22ch;
}

.pinned-body p {
  margin-top: 1rem;
  max-width: 42ch;
  color: var(--text-soft);
  line-height: 1.85;
}

.pinned-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.pinned-figure {
  position: relative;
  margin: 0;
  padding: 0.6rem 0.6rem 0;
  background: linear-gradient(155deg, rgba(28, 74, 87, 0.92), rgba(28, 74, 87, 0.44));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.pinned-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  border-radius: 2px;
}

.pinned-figure .fig-caption {
  padding: 0.7rem 0.25rem 0.85rem;
}

.page-news .fig-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--text-mute);
}

/* ---------- 分类筛选 ---------- */

.page-news-filter {
  padding-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.page-news-filter h2,
.page-news-stream h2,
.page-news-snapshot h2,
.page-news-correct h2 {
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.22;
  max-width: 24ch;
  margin-top: 0.6rem;
}

.filter-note {
  margin-top: 0.9rem;
  max-width: 40ch;
  color: var(--text-mute);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  background: rgba(28, 74, 87, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  color: var(--paper);
  border-color: var(--green);
  background: rgba(47, 208, 138, 0.14);
}

.filter-pill--all {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
  font-weight: 700;
}

.filter-pill--all:hover,
.filter-pill--all:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

/* ---------- 分类示意图 ---------- */

.page-news-map {
  padding-bottom: clamp(2rem, 4.5vw, 3rem);
}

.map-figure {
  margin: 0;
  max-width: 640px;
}

.map-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.map-figure .fig-caption {
  margin-top: 0.65rem;
}

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

.page-news-stream {
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.stream-groups {
  position: relative;
  margin-top: 1.75rem;
  padding-left: var(--news-indent);
}

.stream-groups::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.85rem;
  bottom: 1.25rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--green) 0,
    rgba(47, 208, 138, 0.45) 3rem,
    var(--news-rule) 9rem,
    var(--news-rule) 100%
  );
}

.stream-group + .stream-group {
  margin-top: 1.5rem;
}

.stream-group-title {
  position: relative;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--text-mute);
}

.stream-group-title::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--news-indent) - 1px);
  top: 0.34em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(8, 34, 43, 0.9);
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-item {
  position: relative;
  padding-bottom: 1.65rem;
  transition: transform 0.22s ease;
}

.article-item:last-child {
  padding-bottom: 0.5rem;
}

.item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.item-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--green);
  white-space: nowrap;
}

.article-item .tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.item-body h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  color: var(--paper);
  max-width: 30ch;
}

.item-summary {
  margin-top: 0.5rem;
  max-width: 46ch;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.item-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  max-width: 46ch;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-mute);
  border-left: 2px solid rgba(62, 109, 150, 0.55);
  padding-left: 0;
  transition: max-height 0.26s ease, opacity 0.26s ease, margin-top 0.26s ease, padding-left 0.26s ease;
}

.article-item:hover .item-extra,
.article-item:focus-within .item-extra {
  max-height: 6rem;
  opacity: 1;
  margin-top: 0.6rem;
  padding-left: 0.75rem;
}

/* ---------- 快照与追溯 ---------- */

.page-news-snapshot {
  padding: clamp(1.75rem, 4.5vw, 3rem) 0;
  border-top: 1px solid var(--news-rule);
  border-bottom: 1px solid var(--news-rule);
  background: linear-gradient(180deg, rgba(15, 53, 66, 0.72), rgba(8, 34, 43, 0.3));
}

.snapshot-grid,
.correct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.snapshot-body p {
  margin-top: 1rem;
  max-width: 42ch;
  color: var(--text-soft);
  line-height: 1.85;
}

.snapshot-body .btn {
  margin-top: 1.5rem;
}

.snapshot-figure,
.correct-figure {
  margin: 0;
  align-self: start;
}

.snapshot-figure img,
.correct-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}

.snapshot-figure .fig-caption,
.correct-figure .fig-caption {
  margin-top: 0.65rem;
}

/* ---------- 纠错与补充 ---------- */

.page-news-correct {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.correct-body > p {
  margin-top: 1rem;
  max-width: 42ch;
  color: var(--text-soft);
  line-height: 1.85;
}

.correct-steps {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.correct-steps .step {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.5rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: rgba(28, 74, 87, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.correct-steps .step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--green);
  padding-top: 0.15rem;
}

.correct-steps .step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--paper);
  margin: 0;
}

.correct-steps .step-text {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-mute);
  max-width: 44ch;
}

.correct-body .btn {
  margin-top: 1.75rem;
}

/* ---------- 键盘焦点 ---------- */

.page-news a:focus-visible,
.page-news .step:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- 平板起：置顶位与非对称分栏 ---------- */

@media (min-width: 720px) {
  .article-item {
    display: grid;
    grid-template-columns: var(--news-time-col) 1fr;
    column-gap: 1.5rem;
    align-items: start;
  }

  .article-item .item-meta {
    grid-column: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0;
  }

  .article-item .item-body {
    grid-column: 2;
  }

  .correct-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .correct-steps .step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .correct-steps .step-num {
    padding-top: 0;
  }
}

/* ---------- 桌面：7:5 与 8:4 非对称 ---------- */

@media (min-width: 960px) {
  .pinned-grid {
    grid-template-columns: 7fr 5fr;
    gap: 1.75rem;
    align-items: stretch;
  }

  .pinned-figure img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 300px;
  }

  .snapshot-grid {
    grid-template-columns: 5fr 7fr;
    gap: 2.5rem;
    align-items: center;
  }

  .correct-grid {
    grid-template-columns: 8fr 4fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* ---------- 动效克制 ---------- */

@media (prefers-reduced-motion: reduce) {
  .article-item,
  .item-extra,
  .filter-pill {
    transition: none;
  }

  .article-item:hover .item-extra,
  .article-item:focus-within .item-extra {
    transition: none;
  }
}
</main>
