.page-news {
  --n-version: var(--orange);
  --n-compat: var(--amber);
  --n-catalog: var(--violet);
  --n-doc: var(--muted);
  --n-cut: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  --n-rail: 240px;
  padding-bottom: 64px;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(255, 122, 26, 0.16), transparent 58%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950) 74%);
}

.page-news .news-hero::before {
  content: "04";
  position: absolute;
  right: -8px;
  top: -34px;
  font-family: var(--mono);
  font-size: clamp(120px, 28vw, 250px);
  line-height: 1;
  color: rgba(237, 241, 255, 0.045);
  pointer-events: none;
  z-index: 0;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  padding: 26px 0 34px;
}

.page-news .news-hero__title {
  margin: 10px 0 14px;
  max-width: 15em;
  font-size: clamp(27px, 7.4vw, 54px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-news .news-hero__lede {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
}

.page-news .news-hero__now {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--white);
}

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

.page-news .news-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--ink-800);
  clip-path: var(--n-cut);
}

.page-news .news-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-news .news-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--ink-900);
}

.page-news .news-stat__num {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--orange);
}

.page-news .news-stat__label {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 主体骨架 ---------- */
.page-news .news-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding-top: 32px;
}

.page-news .news-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.page-news .news-rail__nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.page-news .news-rail__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-left: 2px solid transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease), background-color 0.24s var(--ease);
}

.page-news .news-rail__link:hover {
  color: var(--white);
}

.page-news .news-rail__link[aria-current] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.page-news .news-rail__title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

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

.page-news .news-chip {
  --tone: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--ink-900);
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .news-chip--version { --tone: var(--n-version); }
.page-news .news-chip--compat { --tone: var(--n-compat); }
.page-news .news-chip--catalog { --tone: var(--n-catalog); }
.page-news .news-chip--doc { --tone: var(--n-doc); }

.page-news .news-chip:hover {
  color: var(--white);
  border-color: var(--tone);
}

.page-news .news-chip[aria-pressed="true"] {
  color: var(--ink-950);
  background: var(--tone);
  border-color: var(--tone);
}

/* ---------- 章节 ---------- */
.page-news .news-main > section {
  scroll-margin-top: 24px;
}

.page-news .news-main > section + section {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.page-news .news-sec-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.page-news .news-sec-head h2 {
  margin: 0;
  font-size: clamp(21px, 4.4vw, 31px);
  line-height: 1.28;
  color: var(--white);
}

.page-news .news-sec-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.page-news .news-sub-title {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--white);
}

.page-news .news-inline-link {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.page-news .news-inline-link a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
}

.page-news .news-inline-link a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ---------- 更新条目流 ---------- */
.page-news .news-stream {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line);
}

.page-news .news-item {
  --tone: var(--muted);
  position: relative;
  padding: 14px 0 18px;
  border-bottom: 1px dashed rgba(42, 55, 102, 0.7);
  transition: opacity 0.26s var(--ease);
}

.page-news .news-item:last-child {
  border-bottom: 0;
}

.page-news .news-item[data-filter-item="version"] { --tone: var(--n-version); }
.page-news .news-item[data-filter-item="compat"] { --tone: var(--n-compat); }
.page-news .news-item[data-filter-item="catalog"] { --tone: var(--n-catalog); }
.page-news .news-item[data-filter-item="doc"] { --tone: var(--n-doc); }

.page-news .news-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 20px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 4px var(--ink-950);
}

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

.page-news .news-item__time {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-news .news-item__tag {
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--tone);
  border: 1px solid currentColor;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.page-news .news-item__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--white);
}

.page-news .news-item__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.page-news .news-item__more {
  margin-top: 8px;
}

.page-news .news-item__more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.page-news .news-item__more summary::-webkit-details-marker {
  display: none;
}

.page-news .news-item__more summary::before {
  content: "+";
  font-family: var(--mono);
  font-size: 14px;
  color: var(--tone);
}

.page-news .news-item__more[open] summary::before {
  content: "–";
}

.page-news .news-item__more p {
  margin: 6px 0 0;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  background: var(--ink-900);
  border-left: 2px solid var(--tone);
}

/* ---------- 版本节点 ---------- */
.page-news .news-version-grid {
  display: grid;
  gap: 24px;
}

.page-news .news-flow {
  display: grid;
  gap: 10px;
}

.page-news .news-flow__step {
  padding: 14px 16px;
  background: var(--ink-900);
  border-left: 3px solid var(--orange);
  clip-path: var(--n-cut);
}

.page-news .news-flow__step:nth-child(2) {
  border-left-color: var(--amber);
}

.page-news .news-flow__step:nth-child(3) {
  border-left-color: var(--green);
}

.page-news .news-flow__step h3 {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--white);
}

.page-news .news-flow__step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.page-news .news-compat {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-news .news-compat li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  background: var(--ink-900);
}

.page-news .news-compat .mono {
  flex: 0 0 auto;
  color: var(--amber);
}

/* ---------- 图表占位 ---------- */
.page-news .news-figure {
  margin: 22px 0 0;
}

.page-news .news-version-grid .news-figure {
  margin-top: 0;
}

.page-news .news-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--ink-800);
  clip-path: var(--n-cut);
}

.page-news .news-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 索引时间表 ---------- */
.page-news .news-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.page-news .news-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--violet);
  text-decoration: none;
  border: 1px solid var(--line);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-news .news-jump a:hover {
  color: var(--white);
  background: rgba(139, 123, 255, 0.16);
}

.page-news .news-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--ink-900);
}

.page-news .news-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.page-news .news-table th {
  padding: 11px 12px;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.page-news .news-table td {
  padding: 12px;
  line-height: 1.7;
  color: var(--white);
  border-bottom: 1px solid rgba(42, 55, 102, 0.6);
}

.page-news .news-table tbody tr:nth-child(even) {
  background: rgba(24, 36, 79, 0.55);
}

.page-news .news-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-news .news-table td .mono {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-news .news-table td:last-child {
  color: var(--muted);
}

.page-news .news-table tbody tr:target {
  background: rgba(34, 211, 238, 0.12);
}

/* ---------- 季度校对专题 ---------- */
.page-news .news-editorial {
  display: grid;
  gap: 22px;
  padding: 26px 20px;
  background:
    linear-gradient(135deg, rgba(139, 123, 255, 0.18), rgba(10, 18, 48, 0) 62%),
    var(--ink-900);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.page-news .news-editorial__bar {
  display: block;
  width: 64px;
  height: 6px;
  margin-bottom: 16px;
  background: var(--violet);
  transform: skewX(-24deg);
}

.page-news .news-editorial h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 4.2vw, 28px);
  line-height: 1.3;
  color: var(--white);
}

.page-news .news-editorial__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.page-news .news-audit-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-news .news-audit-list li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-news .news-audit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
}

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

/* ---------- 变动提醒 ---------- */
.page-news .news-notify {
  display: grid;
  gap: 14px;
}

.page-news .news-note-card {
  padding: 18px 18px 20px;
  background: var(--ink-900);
  border-top: 2px solid var(--cyan);
  clip-path: var(--n-cut);
}

.page-news .news-note-card--alt {
  border-top-color: var(--orange);
}

.page-news .news-note-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
}

.page-news .news-note-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.page-news .news-note-card a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
}

.page-news .news-note-card--alt a {
  color: var(--orange);
  border-bottom-color: rgba(255, 122, 26, 0.45);
}

.page-news .news-note-card a:hover {
  color: var(--white);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-news .news-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-news .news-stat {
    padding: 16px 18px;
  }

  .page-news .news-stat__num {
    font-size: 32px;
  }

  .page-news .news-sec-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 292px);
    align-items: end;
    gap: 28px;
  }

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

  .page-news .news-notify {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 960px) {
  .page-news .news-body {
    grid-template-columns: var(--n-rail) minmax(0, 1fr);
    gap: 48px;
    padding-top: 40px;
  }

  .page-news .news-rail {
    position: sticky;
    top: 20px;
    align-self: start;
    border-top-width: 1px;
  }

  .page-news .news-rail__nav {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
  }

  .page-news .news-rail__link {
    min-height: 38px;
    white-space: normal;
  }

  .page-news .news-hero__inner {
    padding: 34px 0 40px;
    gap: 30px;
  }

  .page-news .news-version-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 36px;
  }

  .page-news .news-editorial {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    align-items: center;
    gap: 38px;
    padding: 34px 32px;
  }

  .page-news .news-table td,
  .page-news .news-table th {
    padding: 13px 16px;
  }
}

@media (max-width: 719px) {
  .page-news .news-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .page-news .news-table,
  .page-news .news-table tbody,
  .page-news .news-table tr,
  .page-news .news-table td {
    display: block;
    width: 100%;
  }

  .page-news .news-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .page-news .news-table tr {
    margin-bottom: 10px;
    padding: 10px 14px;
    background: var(--ink-900);
    border-left: 2px solid var(--line);
    border-bottom: 0;
  }

  .page-news .news-table tbody tr:nth-child(even) {
    background: var(--ink-900);
  }

  .page-news .news-table td {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 0;
  }

  .page-news .news-table td::before {
    content: attr(data-label);
    flex: 0 0 72px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
  }

  .page-news .news-table td:last-child {
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-item,
  .page-news .news-chip,
  .page-news .news-rail__link,
  .page-news .news-jump a {
    transition: none;
  }
}
