.page-news {
  --news-radius: 4px;
  --news-hair: rgba(18, 33, 29, .14);
  padding-bottom: clamp(48px, 8vw, 96px);
}

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

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

/* ---------- 首屏 ---------- */
.page-news .news-masthead {
  padding: clamp(24px, 5vw, 54px) 0 clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--news-hair);
}

.page-news .news-masthead .eyebrow {
  margin: 0 0 16px;
}

.page-news .masthead-grid {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
}

.page-news .masthead-main h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.05rem, 6.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 15ch;
}

.page-news .masthead-main .lede {
  margin: 0;
  max-width: 60ch;
  color: rgba(18, 33, 29, .84);
}

.page-news .masthead-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--news-hair);
  border: 1px solid var(--news-hair);
  border-radius: var(--news-radius);
  overflow: hidden;
}

.page-news .side-cell {
  background: var(--paper);
  padding: 14px 15px 16px;
}

.page-news .side-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--teal);
  margin: 0 0 6px;
}

.page-news .side-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.45rem, 4.4vw, 2rem);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 5px;
}

.page-news .side-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(18, 33, 29, .58);
}

@media (min-width: 900px) {
  .page-news .masthead-grid {
    grid-template-columns: minmax(0, 1fr) 268px;
    align-items: end;
  }
}

/* ---------- 置顶公告牌 ---------- */
.page-news .pin {
  display: grid;
  margin-top: clamp(24px, 4vw, 42px);
}

.page-news .pin__board {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--ink-2);
  color: var(--paper);
  border-radius: var(--news-radius) var(--news-radius) 0 0;
}

.page-news .pin__board::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -70px;
  width: 200px;
  background: linear-gradient(180deg, rgba(119, 205, 211, .26), rgba(119, 205, 211, 0));
  clip-path: polygon(62% 0, 100% 0, 38% 100%, 0 100%);
  pointer-events: none;
}

.page-news .pin__ver {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 4.9rem);
  line-height: .94;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-news .pin__board h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 3.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
  max-width: 22ch;
}

.page-news .pin__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(246, 239, 227, .86);
  max-width: 46ch;
}

.page-news .pin__list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}

.page-news .pin__list span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--amber);
  padding-top: 4px;
}

.page-news .pin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.page-news .pin__figure img {
  aspect-ratio: 16 / 9;
  border-radius: 0 0 var(--news-radius) var(--news-radius);
}

@media (min-width: 900px) {
  .page-news .pin {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  }

  .page-news .pin__board {
    border-radius: var(--news-radius) 0 0 var(--news-radius);
  }

  .page-news .pin__figure img {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0 var(--news-radius) var(--news-radius) 0;
  }
}

/* ---------- 公告流 ---------- */
.page-news .feed-shell {
  position: relative;
  margin-top: clamp(42px, 7vw, 84px);
}

.page-news .af {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
}

.page-news .feed-grid {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  margin-top: clamp(18px, 3vw, 28px);
}

.page-news .feed-rail {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--sand);
  border: 1px solid var(--news-hair);
  border-radius: var(--news-radius);
  align-content: start;
}

.page-news .rail-title {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--teal);
}

.page-news .rail-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(18, 33, 29, .16);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.page-news .rail-opt:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.page-news .rail-count {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: .58;
}

.page-news .rail-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(18, 33, 29, .6);
}

.page-news #af-all:checked ~ .feed-grid label[for="af-all"],
.page-news #af-ver:checked ~ .feed-grid label[for="af-ver"],
.page-news #af-entry:checked ~ .feed-grid label[for="af-entry"],
.page-news #af-fit:checked ~ .feed-grid label[for="af-fit"],
.page-news #af-maint:checked ~ .feed-grid label[for="af-maint"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.page-news #af-all:checked ~ .feed-grid label[for="af-all"] .rail-count,
.page-news #af-ver:checked ~ .feed-grid label[for="af-ver"] .rail-count,
.page-news #af-entry:checked ~ .feed-grid label[for="af-entry"] .rail-count,
.page-news #af-fit:checked ~ .feed-grid label[for="af-fit"] .rail-count,
.page-news #af-maint:checked ~ .feed-grid label[for="af-maint"] .rail-count {
  color: var(--teal-soft);
  opacity: 1;
}

.page-news #af-all:focus-visible ~ .feed-grid label[for="af-all"],
.page-news #af-ver:focus-visible ~ .feed-grid label[for="af-ver"],
.page-news #af-entry:focus-visible ~ .feed-grid label[for="af-entry"],
.page-news #af-fit:focus-visible ~ .feed-grid label[for="af-fit"],
.page-news #af-maint:focus-visible ~ .feed-grid label[for="af-maint"] {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-news #af-ver:checked ~ .feed-grid .ann:not([data-cat="ver"]),
.page-news #af-entry:checked ~ .feed-grid .ann:not([data-cat="entry"]),
.page-news #af-fit:checked ~ .feed-grid .ann:not([data-cat="fit"]),
.page-news #af-maint:checked ~ .feed-grid .ann:not([data-cat="maint"]) {
  display: none;
}

.page-news .feed {
  border-top: 1px solid var(--news-hair);
}

.page-news .ann {
  border-bottom: 1px solid var(--news-hair);
  transition: background .2s var(--ease);
}

.page-news .ann[open] {
  background: rgba(234, 220, 199, .48);
}

.page-news .ann summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "ver . when"
    "title title title"
    "tag tag tag";
  gap: 7px 12px;
  align-items: center;
  padding: 16px 6px;
  cursor: pointer;
  list-style: none;
}

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

.page-news .ann summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.page-news .ann__ver {
  grid-area: ver;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--teal);
  background: rgba(11, 127, 138, .1);
  padding: 3px 7px;
  border-radius: 2px;
}

.page-news .ann__title {
  grid-area: title;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  transition: color .2s var(--ease);
}

.page-news .ann summary:hover .ann__title,
.page-news .ann[open] .ann__title {
  color: var(--teal);
}

.page-news .ann summary .tag {
  grid-area: tag;
  justify-self: start;
}

.page-news .ann__when {
  grid-area: when;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(18, 33, 29, .5);
}

.page-news .ann__body {
  padding: 0 6px 20px;
  max-width: 68ch;
}

.page-news .ann__body p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(18, 33, 29, .8);
}

.page-news .ann__body a {
  display: inline-block;
  font-size: 13.5px;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 127, 138, .38);
}

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

@media (min-width: 720px) {
  .page-news .ann summary {
    grid-template-columns: 84px minmax(0, 1fr) auto auto;
    grid-template-areas: "ver title tag when";
    gap: 10px 16px;
    padding: 17px 6px;
  }

  .page-news .ann__when {
    justify-self: end;
  }
}

@media (min-width: 980px) {
  .page-news .feed-grid {
    grid-template-columns: 224px minmax(0, 1fr);
    align-items: start;
  }

  .page-news .feed-rail {
    position: sticky;
    top: 40px;
  }
}

/* ---------- 四类标签 ---------- */
.page-news .kinds {
  margin-top: clamp(44px, 7vw, 86px);
}

.page-news .kinds__figure {
  margin-top: 20px;
}

.page-news .kinds__figure img {
  aspect-ratio: 2 / 1;
  border-radius: var(--news-radius);
}

.page-news .kinds__grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.page-news .kind {
  position: relative;
  padding: 20px 18px 18px 22px;
  background: var(--white);
  border: 1px solid var(--news-hair);
  border-radius: var(--news-radius);
}

.page-news .kind::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 2px 2px 0;
  background: var(--teal);
}

.page-news .kind--ver::before {
  background: var(--amber);
}

.page-news .kind--fit::before {
  background: var(--orange);
}

.page-news .kind--maint::before {
  background: var(--alert);
}

.page-news .kind__num {
  margin: 0 0 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: rgba(18, 33, 29, .46);
}

.page-news .kind h3 {
  margin: 0 0 9px;
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--ink);
}

.page-news .kind p:not(.kind__num) {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(18, 33, 29, .78);
}

.page-news .kind a {
  font-size: 13.5px;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 127, 138, .38);
}

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

@media (min-width: 760px) {
  .page-news .kinds__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ---------- 版本归档 ---------- */
.page-news .archive {
  margin-top: clamp(44px, 7vw, 86px);
}

.page-news .archive__figure {
  margin-top: 20px;
}

.page-news .archive__figure img {
  aspect-ratio: 3 / 2;
  border-radius: var(--news-radius);
}

.page-news .track {
  list-style: none;
  margin: 26px 0 0;
  padding: 0 0 10px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(186px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.page-news .track__stop {
  position: relative;
  scroll-snap-align: start;
  padding-top: 18px;
  border-top: 2px solid rgba(18, 33, 29, .14);
}

.page-news .track__stop::before {
  content: "";
  position: absolute;
  left: 0;
  top: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--paper);
}

.page-news .track__ver {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--teal);
}

.page-news .track__stop h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
}

.page-news .track__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(18, 33, 29, .72);
}

@media (min-width: 900px) {
  .page-news .track {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }
}

/* ---------- 影响确认 ---------- */
.page-news .verdict {
  display: grid;
  margin-top: clamp(44px, 7vw, 86px);
}

.page-news .verdict__panel {
  padding: clamp(22px, 4vw, 42px);
  background: var(--ink-2);
  border-radius: var(--news-radius) var(--news-radius) 0 0;
}

.page-news .verdict__panel h2 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  line-height: 1.22;
  font-weight: 800;
  color: var(--white);
  max-width: 20ch;
}

.page-news .verdict__lede {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(246, 239, 227, .82);
  max-width: 54ch;
}

.page-news .verdict__steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-news .vstep {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

.page-news .vstep__n {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--amber);
  padding-top: 4px;
}

.page-news .vstep h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
}

.page-news .vstep p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(246, 239, 227, .78);
}

.page-news .verdict__figure img {
  aspect-ratio: 4 / 3;
  border-radius: 0 0 var(--news-radius) var(--news-radius);
}

@media (min-width: 900px) {
  .page-news .verdict {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr);
  }

  .page-news .verdict__panel {
    border-radius: var(--news-radius) 0 0 var(--news-radius);
  }

  .page-news .verdict__figure img {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0 var(--news-radius) var(--news-radius) 0;
  }
}

/* ---------- 订阅与纠错 ---------- */
.page-news .follow {
  margin-top: clamp(44px, 7vw, 86px);
}

.page-news .follow__grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.page-news .follow__card {
  padding: 22px 20px 24px;
  background: var(--sand);
  border: 1px solid var(--news-hair);
  border-radius: var(--news-radius);
}

.page-news .follow__card h3 {
  margin: 12px 0 9px;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--ink);
}

.page-news .follow__card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(18, 33, 29, .8);
  max-width: 48ch;
}

.page-news .follow__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(18, 33, 29, .56);
  margin-bottom: 0;
}

.page-news .follow__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.page-news .follow__list li {
  position: relative;
  padding-left: 15px;
  overflow-wrap: anywhere;
}

.page-news .follow__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 1px;
  background: var(--teal);
}

@media (min-width: 800px) {
  .page-news .follow__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
