.page-news {
  --news-rail-w: 264px;
  --news-chip-notch: 12px;
  position: relative;
  background:
    repeating-linear-gradient(96deg, rgba(122, 59, 255, .05) 0 1px, transparent 1px 26px),
    radial-gradient(1100px 520px at 8% -6%, rgba(122, 59, 255, .20), transparent 62%),
    radial-gradient(760px 420px at 96% 2%, rgba(31, 224, 208, .12), transparent 60%);
}

.page-news img {
  max-width: 100%;
  height: auto;
}

.page-news a:focus-visible {
  outline: 2px solid var(--cyan-neon);
  outline-offset: 2px;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  padding: clamp(22px, 4vw, 46px) 0 clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--line-soft);
}

.page-news .news-hero__grid {
  display: grid;
  gap: 26px;
  margin-top: 20px;
}

.page-news .news-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 84px);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--text-high);
  margin: 8px 0 16px;
}

.page-news .news-hero__lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 40em;
  margin: 0 0 14px;
}

.page-news .news-hero__foot {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-low);
  max-width: 44em;
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--violet-core);
}

.page-news .news-hero__aside {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.page-news .news-hero__aside .vertical-note {
  color: var(--text-low);
  letter-spacing: .14em;
}

.page-news .news-stat {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-news .news-stat__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px 10px;
  background: rgba(30, 38, 80, .72);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  border-left: 3px solid var(--cyan-neon);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.page-news .news-stat__item .stat-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-high);
}

.page-news .news-stat__key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
}

/* ---------- 主体骨架 ---------- */
.page-news .news-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: clamp(26px, 4vw, 46px) 0 96px;
}

.page-news .news-rail {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-news .news-rail__texture {
  margin: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-news .news-rail__texture img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  opacity: .55;
}

.page-news .news-rail__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-high);
}

.page-news .news-rail__title::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--violet-core);
}

.page-news .news-rail__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-low);
}

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

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

.page-news .news-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px var(--line-hair);
  clip-path: polygon(0 0, calc(100% - var(--news-chip-notch)) 0, 100% var(--news-chip-notch), 100% 100%, 0 100%);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-news .news-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: var(--chip, var(--violet-core));
  transform: rotate(45deg);
}

.page-news .news-chip--guide { --chip: var(--violet-core); }
.page-news .news-chip--server { --chip: var(--cyan-neon); }
.page-news .news-chip--client { --chip: var(--violet-soft); }
.page-news .news-chip--gift { --chip: var(--amber-warm); }
.page-news .news-chip--score { --chip: var(--state-ok); }

.page-news .news-chip:hover,
.page-news .news-chip:focus-visible {
  color: var(--text-high);
  background: var(--bg-panel-raise);
  box-shadow: inset 0 0 0 1px var(--cyan-neon);
}

.page-news .news-version-toc {
  padding: 16px;
  background: rgba(22, 28, 60, .72);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-news .news-version-toc .toc__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-high);
  margin: 0;
}

.page-news .news-version-toc .toc__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-news .news-version-toc .toc__link {
  display: block;
  padding: 10px 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-mid);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .news-version-toc .toc__link:hover,
.page-news .news-version-toc .toc__link:focus-visible {
  color: var(--cyan-neon);
  background: rgba(31, 224, 208, .07);
  border-left-color: var(--cyan-neon);
}

.page-news .news-version-toc .toc__link[data-current="true"] {
  color: var(--text-high);
  background: rgba(31, 224, 208, .1);
  border-left-color: var(--cyan-neon);
}

.page-news .news-main {
  display: grid;
  gap: clamp(36px, 5vw, 60px);
  min-width: 0;
}

/* ---------- 专题 ---------- */
.page-news .news-spot {
  position: relative;
  display: grid;
  gap: 20px;
  margin-top: 24px;
  padding: 20px 20px 22px;
  background: linear-gradient(140deg, rgba(122, 59, 255, .26), rgba(31, 224, 208, .08) 58%, rgba(22, 28, 60, .92));
  box-shadow: inset 0 0 0 1px var(--line-hair);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

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

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

.page-news .news-spot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-news .news-spot__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--text-high);
  margin: 12px 0 12px;
}

.page-news .news-spot__desc {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-mid);
}

.page-news .news-spot__count {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-mid);
}

.page-news .news-spot__count .num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan-neon);
  margin-right: 4px;
}

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

.page-news .news-spot__note {
  color: var(--cyan-neon);
  opacity: .75;
  display: none;
}

.page-news .news-spot-mini {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.page-news .news-spot-sm {
  padding: 18px;
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-news .news-spot-sm__kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--violet-soft);
}

.page-news .news-spot-sm__name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  color: var(--text-high);
}

.page-news .news-spot-sm__desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-mid);
}

.page-news .news-spot-sm__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-news .news-spot-sm__count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-low);
}

/* ---------- 笔记列表 ---------- */
.page-news .news-notes {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-news .news-note {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px 16px 16px 22px;
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-news .news-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--note-accent, var(--violet-core)), rgba(122, 59, 255, 0));
}

.page-news .news-note--guide { --note-accent: var(--violet-core); }
.page-news .news-note--server { --note-accent: var(--cyan-neon); }
.page-news .news-note--client { --note-accent: var(--violet-soft); }
.page-news .news-note--gift { --note-accent: var(--amber-warm); }
.page-news .news-note--score { --note-accent: var(--state-ok); }

.page-news .news-note:hover {
  background: var(--bg-panel-raise);
  box-shadow: inset 0 0 0 1px var(--line-hair);
  transform: translateX(4px);
}

.page-news .news-note__figure {
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

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

.page-news .news-note__time {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-low);
}

.page-news .news-note__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.42;
  color: var(--text-high);
}

.page-news .news-note--lead .news-note__title {
  font-size: clamp(20px, 2.6vw, 26px);
}

.page-news .news-note__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-mid);
}

.page-news .news-note__foot {
  margin: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-news .tag {
  font-size: 12px;
  padding: 4px 10px;
  line-height: 1.4;
}

.page-news .tag--guide {
  color: var(--violet-soft);
  background: rgba(122, 59, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(122, 59, 255, .42);
}

.page-news .tag--server {
  color: var(--cyan-neon);
  background: rgba(31, 224, 208, .12);
  box-shadow: inset 0 0 0 1px rgba(31, 224, 208, .36);
}

.page-news .tag--client {
  color: var(--violet-soft);
  background: rgba(169, 139, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(169, 139, 255, .38);
}

.page-news .tag--gift {
  color: var(--amber-warm);
  background: rgba(255, 162, 58, .13);
  box-shadow: inset 0 0 0 1px rgba(255, 162, 58, .38);
}

.page-news .tag--score {
  color: var(--state-ok);
  background: rgba(63, 224, 140, .12);
  box-shadow: inset 0 0 0 1px rgba(63, 224, 140, .34);
}

.page-news .news-ver {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  padding: 4px 9px;
  color: var(--violet-soft);
  background: rgba(122, 59, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(122, 59, 255, .34);
}

/* ---------- 编辑口径 ---------- */
.page-news .news-canon__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-news .news-canon__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-mid);
}

.page-news .news-canon__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 2px;
  background: var(--cyan-neon);
}

.page-news .news-canon__list strong {
  color: var(--text-high);
  font-weight: 700;
}

.page-news .news-canon__more {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-low);
}

.page-news .news-link {
  color: var(--violet-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 139, 255, .5);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .news-link:hover,
.page-news .news-link:focus-visible {
  color: var(--cyan-neon);
  border-bottom-color: var(--cyan-neon);
}

/* ---------- 版本回溯 ---------- */
.page-news .news-version__figure {
  margin: 22px 0 22px;
}

.page-news .media-frame__cap {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-low);
}

.page-news .news-ver-groups {
  display: grid;
  gap: 14px;
}

.page-news .news-ver-group {
  padding: 18px;
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-news .news-ver-group:target {
  background: var(--bg-panel-raise);
  box-shadow: inset 0 0 0 1px var(--cyan-neon);
}

.page-news .news-ver-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-news .news-ver-group__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text-high);
}

.page-news .news-ver-group__desc {
  margin: 12px 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mid);
}

.page-news .news-ver-group__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-news .news-ver-group__items li {
  position: relative;
  padding-left: 15px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-low);
}

.page-news .news-ver-group__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 5px;
  height: 5px;
  background: var(--cyan-neon);
  transform: rotate(45deg);
}

/* ---------- 投稿与纠错 ---------- */
.page-news .news-submit__inner {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(120deg, rgba(31, 224, 208, .12), rgba(122, 59, 255, .18));
  box-shadow: inset 0 0 0 1px var(--line-hair);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-news .news-submit__text .section__title {
  margin: 6px 0 12px;
}

.page-news .news-submit__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-mid);
  max-width: 44em;
}

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

/* ---------- 回到顶部 ---------- */
.page-news .news-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 15px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan-neon);
  text-decoration: none;
  background: rgba(30, 38, 80, .94);
  box-shadow: inset 0 0 0 1px var(--line-hair), 0 10px 24px rgba(58, 28, 140, .5);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-news .news-top:hover,
.page-news .news-top:focus-visible {
  color: var(--text-high);
  box-shadow: inset 0 0 0 1px var(--cyan-neon), 0 10px 24px rgba(58, 28, 140, .5);
}

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

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

  .page-news .news-submit__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
  }
}

@media (min-width: 820px) {
  .page-news .news-note--lead {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 22px;
    padding: 20px 22px 20px 26px;
  }

  .page-news .news-note:not(.news-note--lead) {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 20px;
    align-items: start;
  }

  .page-news .news-note:not(.news-note--lead) .news-note__title {
    grid-column: 1;
    grid-row: 1;
  }

  .page-news .news-note:not(.news-note--lead) .news-note__time {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding-top: 4px;
  }

  .page-news .news-note:not(.news-note--lead) .news-note__desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .page-news .news-note:not(.news-note--lead) .news-note__foot {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (min-width: 880px) {
  .page-news .news-spot {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    align-items: center;
    gap: 26px;
    padding: 24px 60px 26px 24px;
  }

  .page-news .news-spot__note {
    display: block;
    position: absolute;
    right: 16px;
    top: 30px;
  }

  .page-news .news-ver-groups {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .page-news .news-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 46px;
    align-items: end;
  }

  .page-news .news-hero__aside {
    padding-bottom: 6px;
  }
}

@media (min-width: 1080px) {
  .page-news .news-shell {
    grid-template-columns: var(--news-rail-w) minmax(0, 1fr);
    gap: 46px;
  }

  .page-news .news-rail {
    position: sticky;
    top: calc(var(--header-h) + 22px);
    align-self: start;
    gap: 24px;
  }

  .page-news .news-rail__texture img {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 899px) {
  .page-news .news-hero__aside .vertical-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-note,
  .page-news .news-chip,
  .page-news .news-top,
  .page-news .news-ver-group,
  .page-news .news-link,
  .page-news .toc__link {
    transition: none;
  }

  .page-news .news-note:hover {
    transform: none;
  }
}
