.page-news {
  --news-cut: polygon(0 0, 100% 0, 100% calc(100% - 52px), calc(100% - 52px) 100%, 0 100%);
  --news-hair: 1px solid rgba(30, 78, 102, .38);
  color: var(--text);
  background-image:
    linear-gradient(to right, rgba(30, 78, 102, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 78, 102, .16) 1px, transparent 1px);
  background-size: 96px 96px;
}

.page-news .shell {
  padding-block: clamp(16px, 2.4vw, 32px) clamp(48px, 7vw, 96px);
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(20px, 3.2vw, 44px) clamp(24px, 3.4vw, 48px);
  border-bottom: var(--rule-soft);
}

.page-news .hero-lead h1 {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--ice);
}

.page-news .hero-lede {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  color: var(--text-soft);
}

.page-news .hero-stats {
  display: grid;
  align-content: start;
  border-top: var(--rule-soft);
}

.page-news .stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  border-bottom: var(--rule-soft);
}

.page-news .stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
}

.page-news .stat-label {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  text-align: right;
}

/* ---------- 专题头条带 ---------- */
.page-news .feature {
  position: relative;
  display: grid;
  margin-block: clamp(24px, 4vw, 48px);
  border: var(--rule);
  background: linear-gradient(135deg, var(--surface-deep) 0%, var(--bg) 70%);
}

.page-news .feature-media {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.page-news .feature-media .figure__media {
  aspect-ratio: 16 / 9;
  height: 100%;
  clip-path: var(--news-cut);
  overflow: hidden;
}

.page-news .feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-news .feature-flag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 8px 16px;
  background: var(--orange);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.page-news .feature-body {
  padding: clamp(20px, 2.6vw, 36px);
}

.page-news .feature-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-news .feature-body h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: .03em;
  color: var(--ice);
}

.page-news .feature-body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

.page-news .feature-points {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-news .feature-points li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
  padding-bottom: 8px;
  border-bottom: var(--news-hair);
}

.page-news .feature-points .mono {
  color: var(--orange);
  font-size: 12px;
  letter-spacing: .08em;
  flex: 0 0 auto;
}

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

/* ---------- 主体两栏 ---------- */
.page-news .news-layout {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(28px, 4vw, 52px);
}

.page-news .block-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: var(--rule);
}

.page-news .block-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ice);
}

/* ---------- 系列书架 ---------- */
.page-news .shelf-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-news .shelf-item {
  position: relative;
  padding: 14px 16px 14px 20px;
  border-left: 3px solid rgba(31, 224, 207, .38);
  background: linear-gradient(90deg, rgba(12, 42, 61, .72) 0%, rgba(6, 24, 38, .32) 100%);
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.page-news .shelf-item:hover {
  border-left-color: var(--orange);
  transform: translateX(4px);
  background: linear-gradient(90deg, rgba(12, 42, 61, .95) 0%, rgba(6, 24, 38, .45) 100%);
}

.page-news .shelf-num {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 6px;
}

.page-news .shelf-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ice);
}

.page-news .shelf-item p {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
}

.page-news .shelf-for {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--green);
}

/* ---------- 版本手记卡 ---------- */
.page-news .handnote {
  margin-top: 28px;
  padding-top: 24px;
  border-top: var(--rule);
}

.page-news .handnote .figure {
  margin: 0 0 18px;
}

.page-news .handnote-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.page-news .handnote-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-news .handnote h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .03em;
  color: var(--ice);
}

.page-news .handnote p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
}

.page-news .text-link {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 224, 207, .45);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}

.page-news .text-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- 筛选与文章列表 ---------- */
.page-news .stream {
  min-width: 0;
}

.page-news .filter-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.page-news .filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.page-news .filter-bar::-webkit-scrollbar {
  display: none;
}

.page-news .filter-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid rgba(30, 78, 102, .72);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.page-news .filter-tab:hover {
  color: var(--ice);
  border-color: var(--accent);
}

.page-news #nf-all:checked ~ .filter-bar [for="nf-all"],
.page-news #nf-pre:checked ~ .filter-bar [for="nf-pre"],
.page-news #nf-method:checked ~ .filter-bar [for="nf-method"],
.page-news #nf-ver:checked ~ .filter-bar [for="nf-ver"],
.page-news #nf-review:checked ~ .filter-bar [for="nf-review"],
.page-news #nf-eco:checked ~ .filter-bar [for="nf-eco"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.page-news #nf-all:focus-visible ~ .filter-bar [for="nf-all"],
.page-news #nf-pre:focus-visible ~ .filter-bar [for="nf-pre"],
.page-news #nf-method:focus-visible ~ .filter-bar [for="nf-method"],
.page-news #nf-ver:focus-visible ~ .filter-bar [for="nf-ver"],
.page-news #nf-review:focus-visible ~ .filter-bar [for="nf-review"],
.page-news #nf-eco:focus-visible ~ .filter-bar [for="nf-eco"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-news #nf-pre:checked ~ .post-list > .post:not([data-cat="pre"]),
.page-news #nf-method:checked ~ .post-list > .post:not([data-cat="method"]),
.page-news #nf-ver:checked ~ .post-list > .post:not([data-cat="ver"]),
.page-news #nf-review:checked ~ .post-list > .post:not([data-cat="review"]),
.page-news #nf-eco:checked ~ .post-list > .post:not([data-cat="eco"]) {
  display: none;
}

.page-news .post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.page-news .post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding-block: clamp(16px, 2vw, 24px);
  border-bottom: var(--news-hair);
}

.page-news .post-index {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--line);
  font-variant-numeric: tabular-nums;
}

.page-news .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-news .post-time {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}

.page-news .post-time--live {
  color: var(--orange);
}

.page-news .post-time--live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--orange);
  vertical-align: middle;
}

.page-news .post h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: .02em;
  color: var(--ice);
  transition: color .2s ease;
}

.page-news .post:hover h3 {
  color: var(--accent);
}

.page-news .post p {
  margin: 0;
  font-size: 14px;
  line-height: 1.82;
  color: var(--text-soft);
}

.page-news .post-figure {
  margin: 0 0 14px;
}

.page-news .post-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.page-news .post-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* ---------- 更新节奏 ---------- */
.page-news .rhythm {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(24px, 3.6vw, 44px);
  border-top: var(--rule);
}

.page-news .rhythm-copy h2 {
  margin: 8px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: .04em;
  color: var(--ice);
}

.page-news .rhythm-copy > p {
  max-width: 56ch;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
}

.page-news .rhythm-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-news .rhythm-list li {
  display: flex;
  gap: 12px;
  padding-block: 10px;
  border-bottom: var(--news-hair);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

.page-news .rhythm-list .mono {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
}

.page-news .rhythm-figure {
  margin: 0;
}

.page-news .rhythm-figure .figure__media {
  overflow: hidden;
}

.page-news .rhythm-figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-news .post {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .page-news .post-index {
    padding-top: 3px;
  }
}

@media (min-width: 900px) {
  .page-news .news-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-news .feature {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-news .feature-media .figure__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .page-news .rhythm {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-news .news-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .shelf-item,
  .page-news .post h3,
  .page-news .text-link,
  .page-news .filter-tab {
    transition: none;
  }

  .page-news .shelf-item:hover {
    transform: none;
  }
}
