.page-news {
  --pn-gap: clamp(20px, 4vw, 32px);
  --pn-paper: rgba(11, 42, 59, 0.075);
  background: var(--ice);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-news .cord-note {
  font-family: var(--font-mono);
}

/* ---------- hero ---------- */
.page-news .news-hero {
  position: relative;
  padding: calc(var(--header-h) + 26px) 0 56px;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 79px, var(--pn-paper) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, var(--pn-paper) 79px 80px),
    linear-gradient(180deg, var(--ice) 0%, #dbe9f3 100%);
  border-bottom: 1px solid var(--line-strong);
}

.page-news .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin-bottom: 28px;
}

.page-news .breadcrumb a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.page-news .breadcrumb a:hover,
.page-news .breadcrumb a:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.page-news .news-hero__inner {
  display: grid;
  gap: 36px;
}

.page-news .news-hero__lead {
  min-width: 0;
}

.page-news .news-hero .coord {
  margin: 0 0 16px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-news .news-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.page-news .news-hero__sub {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: #24455a;
}

.page-news .hero-tags {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .hero-tags .tag {
  display: inline-block;
}

.page-news .news-hero__visual {
  min-width: 0;
}

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

.page-news .figure__frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

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

.page-news .figure__caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  font-style: italic;
  color: var(--grey);
}

/* ---------- 列表区 ---------- */
.page-news .news-body {
  padding: 48px 0 64px;
}

.page-news .news-layout {
  position: relative;
  display: grid;
  gap: var(--pn-gap);
  align-items: start;
}

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

/* 侧栏 */
.page-news .news-rail {
  min-width: 0;
}

.page-news .rail-block + .rail-block {
  margin-top: 30px;
}

.page-news .rail-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.page-news .cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .cat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  background: var(--mist);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.page-news .cat:hover {
  border-color: var(--ink);
  background: #fff;
}

.page-news .cat .dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--ink);
}

.page-news .cat--all .dot { background: var(--grey); }
.page-news .cat--ver .dot { background: var(--orange); }
.page-news .cat--check .dot { background: var(--yellow); }
.page-news .cat--qa .dot { background: var(--green); }
.page-news .cat--tip .dot { background: var(--ice-deep); }

.page-news .rail-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  font-style: italic;
  color: var(--grey);
}

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

.page-news .rail-series li + li {
  border-top: 1px solid var(--line);
}

.page-news .rail-series a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.page-news .rail-series a:hover,
.page-news .rail-series a:focus-visible {
  color: var(--orange);
  padding-left: 6px;
}

.page-news .rail-series a span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--grey);
  flex: none;
}

.page-news .rail-block--note {
  padding: 16px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
}

.page-news .rail-note-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #2c4557;
}

.page-news .rail-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 2px;
}

.page-news .rail-link:hover,
.page-news .rail-link:focus-visible {
  color: var(--orange);
}

/* 卡片流 */
.page-news .stream {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.page-news .stream__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.page-news .stream__head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-news .stream__note {
  margin: 0;
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.page-news .post {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px 20px 16px;
  background: var(--mist);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.page-news .post::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 18px 18px 0;
  border-color: transparent var(--ice) transparent transparent;
  pointer-events: none;
}

.page-news .post:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 rgba(11, 42, 59, 0.09);
}

.page-news .post__media {
  margin: -20px -20px 4px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-news .post__media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-news .post__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.page-news .post__code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border: 1px solid currentColor;
  color: var(--ink);
}

.page-news .post--ver .post__code { color: var(--orange); }
.page-news .post--check .post__code { color: #a97a00; }
.page-news .post--qa .post__code { color: var(--green); }
.page-news .post--tip .post__code { color: #38617d; }

.page-news .post__time {
  font-size: 12px;
  font-style: italic;
  color: var(--grey);
  flex: none;
}

.page-news .post__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.page-news .post__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #2c4557;
}

.page-news .post__more {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 2px;
  transition: color 0.18s var(--ease);
}

.page-news .post__more:hover,
.page-news .post__more:focus-visible {
  color: var(--orange);
}

.page-news .post:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-news .stream__tail {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--grey);
}

.page-news .tick {
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: news-spin 1.7s linear infinite;
}

@keyframes news-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .tick { animation: none; }
  .page-news .post:hover { transform: none; }
}

/* 纯 CSS 筛选 */
.page-news #cat-ver:checked ~ .stream .post:not(.post--ver) { display: none; }
.page-news #cat-check:checked ~ .stream .post:not(.post--check) { display: none; }
.page-news #cat-qa:checked ~ .stream .post:not(.post--qa) { display: none; }
.page-news #cat-tip:checked ~ .stream .post:not(.post--tip) { display: none; }

.page-news #cat-all:checked ~ .news-rail label[for="cat-all"],
.page-news #cat-ver:checked ~ .news-rail label[for="cat-ver"],
.page-news #cat-check:checked ~ .news-rail label[for="cat-check"],
.page-news #cat-qa:checked ~ .news-rail label[for="cat-qa"],
.page-news #cat-tip:checked ~ .news-rail label[for="cat-tip"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--mist);
}

.page-news #cat-all:checked ~ .news-rail label[for="cat-all"] .dot,
.page-news #cat-ver:checked ~ .news-rail label[for="cat-ver"] .dot,
.page-news #cat-check:checked ~ .news-rail label[for="cat-check"] .dot,
.page-news #cat-qa:checked ~ .news-rail label[for="cat-qa"] .dot,
.page-news #cat-tip:checked ~ .news-rail label[for="cat-tip"] .dot {
  background: var(--mist);
}

.page-news #cat-all:focus-visible ~ .news-rail label[for="cat-all"],
.page-news #cat-ver:focus-visible ~ .news-rail label[for="cat-ver"],
.page-news #cat-check:focus-visible ~ .news-rail label[for="cat-check"],
.page-news #cat-qa:focus-visible ~ .news-rail label[for="cat-qa"],
.page-news #cat-tip:focus-visible ~ .news-rail label[for="cat-tip"] {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- 专题 ---------- */
.page-news .news-series {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #dfeaf3 0%, var(--ice) 100%);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.page-news .block-head {
  max-width: 62ch;
  margin-bottom: 34px;
}

.page-news .block-head .coord {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-news .block-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.page-news .block-lead {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: #2c4557;
}

.page-news .series-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-news .series-figure .figure__frame {
  background: var(--mist);
}

.page-news .series-acc .accordion__item {
  border: 1px solid var(--line-strong);
  background: var(--mist);
  margin-bottom: 10px;
}

.page-news .series-acc .accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.page-news .series-acc .accordion__btn::-webkit-details-marker {
  display: none;
}

.page-news .acc-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--grey);
  flex: none;
}

.page-news .series-acc details[open] .accordion__btn {
  border-bottom: 1px solid var(--line);
  color: var(--orange);
}

.page-news .series-acc .accordion__panel {
  padding: 6px 18px 16px;
}

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

.page-news .series-items li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0 11px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.page-news .series-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 5px;
  height: 5px;
  background: var(--orange);
}

.page-news .series-items li:last-child {
  border-bottom: 0;
}

.page-news .series-items a {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.page-news .series-items a:hover,
.page-news .series-items a:focus-visible {
  color: var(--orange);
}

.page-news .series-items li span {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

/* ---------- 更新提示 ---------- */
.page-news .news-sub {
  padding: 56px 0 72px;
}

.page-news .sub-panel {
  display: grid;
  gap: 30px;
  padding: clamp(24px, 4vw, 44px);
  align-items: center;
}

.page-news .sub-coord {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.page-news .sub-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--mist);
}

.page-news .sub-lead {
  margin: 16px 0 0;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(232, 241, 248, 0.78);
}

.page-news .sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-news .sub-ghost {
  color: var(--mist);
  border-color: var(--line-on-dark);
}

.page-news .sub-ghost:hover,
.page-news .sub-ghost:focus-visible {
  color: var(--yellow);
  border-color: var(--yellow);
}

.page-news .sub-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  font-style: italic;
  color: rgba(232, 241, 248, 0.6);
}

.page-news .sub-figure .figure__frame {
  border-color: var(--line-on-dark);
  background: rgba(232, 241, 248, 0.06);
}

.page-news .sub-figure .figure__caption {
  color: rgba(232, 241, 248, 0.6);
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .page-news .stream {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .page-news .stream__head {
    grid-column: 1 / -1;
  }

  .page-news .post:nth-child(even) {
    margin-top: 34px;
  }

  .page-news .stream__tail {
    margin-top: 10px;
  }
}

@media (min-width: 900px) {
  .page-news .news-hero {
    padding-bottom: 72px;
  }

  .page-news .news-hero__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.82fr);
    gap: 56px;
    align-items: end;
  }

  .page-news .news-hero h1 {
    letter-spacing: -0.03em;
  }

  .page-news .series-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
  }

  .page-news .sub-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
  }
}

@media (min-width: 960px) {
  .page-news .news-layout {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 52px;
  }

  .page-news .cats {
    flex-direction: column;
    align-items: stretch;
  }

  .page-news .cat {
    justify-content: flex-start;
  }
}
