.page-news {
  --news-edge: rgba(140, 150, 173, 0.18);
  --news-edge-soft: rgba(140, 150, 173, 0.10);
  --news-panel: rgba(19, 28, 51, 0.72);
  --news-body: rgba(242, 239, 230, 0.82);
}

.page-news > section {
  margin-bottom: clamp(46px, 6vw, 76px);
}

.page-news > section:first-child {
  margin-top: clamp(6px, 1.6vw, 18px);
}

.page-news h1,
.page-news h2,
.page-news h3 {
  overflow-wrap: break-word;
}

/* ---------- 页首 ---------- */

.page-news .news-intro__head {
  max-width: 62ch;
  margin-top: 14px;
}

.page-news .news-intro__head h1 {
  margin: 10px 0 14px;
  font-size: clamp(1.85rem, 4.6vw, 2.55rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--bone);
}

.page-news .news-intro__head .lede {
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(242, 239, 230, 0.78);
}

.page-news .news-intro__facts {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--news-edge-soft);
  border: 1px solid var(--news-edge-soft);
  border-radius: 4px;
  overflow: hidden;
}

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

.page-news .news-fact__val {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.page-news .news-fact__unit {
  margin-left: 3px;
  font-size: 0.78rem;
  color: var(--rock);
}

.page-news .news-fact__key {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rock);
}

.page-news .news-banner {
  position: relative;
  margin: 28px 0 0;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--news-edge-soft);
  background: var(--ink-900);
  box-shadow: var(--shadow-panel);
}

.page-news .news-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.72) contrast(1.05);
}

.page-news .news-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(11, 16, 32, 0.82) 0%, rgba(11, 16, 32, 0.12) 52%, rgba(53, 242, 214, 0.10) 100%);
}

.page-news .news-banner figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(242, 239, 230, 0.78);
}

/* ---------- 01 常驻条目 ---------- */

.page-news .news-index {
  margin-top: 26px;
  border-top: 1px solid var(--news-edge);
}

.page-news .news-item {
  border-bottom: 1px solid var(--news-edge);
}

.page-news .news-item > summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  grid-template-areas:
    "num title chev"
    "num meta chev";
  align-items: start;
  gap: 6px 12px;
  padding: 15px 4px;
  cursor: pointer;
  list-style: none;
  transition: background-color 180ms var(--ease);
}

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

.page-news .news-item > summary:hover {
  background: rgba(30, 42, 71, 0.42);
}

.page-news .news-item > summary:focus-visible {
  outline: 1px solid var(--line-cyan);
  outline-offset: 2px;
}

.page-news .news-item__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rock);
  padding-top: 4px;
}

.page-news .news-item__title {
  grid-area: title;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--bone);
  transition: color 160ms var(--ease);
}

.page-news .news-item > summary:hover .news-item__title {
  color: var(--cyan);
}

.page-news .news-item__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--rock);
}

.page-news .news-item__when {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-news .news-item__when::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--rock);
  opacity: 0.7;
}

.page-news .news-item__chev {
  grid-area: chev;
  justify-self: end;
  align-self: center;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--rock);
  border-bottom: 1.5px solid var(--rock);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}

.page-news .news-item[open] .news-item__chev {
  transform: rotate(225deg) translate(-1px, -1px);
  border-color: var(--cyan);
}

.page-news .news-item[open] > summary {
  background: rgba(30, 42, 71, 0.34);
}

.page-news .news-item__body {
  padding: 4px 4px 20px 42px;
  border-left: 1px solid var(--line-cyan);
  margin-left: 0;
}

.page-news .news-item__body p {
  margin: 0 0 10px;
  max-width: 66ch;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--news-body);
}

.page-news .news-item__more {
  font-size: 13px;
  color: var(--rock);
}

.page-news .news-item__more a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cyan);
}

/* 统计条 */

.page-news .news-tally {
  margin-top: 24px;
  padding: 16px 18px 18px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--news-edge);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-float);
}

.page-news .news-tally__lead {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--rock);
}

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

.page-news .news-tally__cell {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.page-news .news-tally__val {
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.page-news .news-tally__key {
  font-size: 12px;
  line-height: 1.4;
  color: var(--rock);
}

/* ---------- 02 专题系列 ---------- */

.page-news .news-topics {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.page-news .topic {
  display: block;
  border: 1px solid var(--news-edge);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(19, 28, 51, 0.94), rgba(11, 16, 32, 0.94));
  overflow: hidden;
  transition: border-color 180ms var(--ease);
}

.page-news .topic[open] {
  border-color: var(--line-cyan);
}

.page-news .topic__sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 16px 16px 14px;
  cursor: pointer;
  list-style: none;
}

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

.page-news .topic__sum:focus-visible {
  outline: 1px solid var(--line-cyan);
  outline-offset: -3px;
}

.page-news .topic__name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.page-news .topic__freq {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--rock);
  padding: 3px 8px;
  border: 1px solid var(--news-edge);
  border-radius: 999px;
}

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

.page-news .topic__body > p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--news-body);
}

.page-news .topic__fig {
  margin: 0 0 14px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--ink-900);
}

.page-news .topic__fig img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.78);
}

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

.page-news .topic__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.68;
  color: var(--rock);
}

.page-news .topic__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--moss);
}

.page-news .topic:nth-of-type(3) .topic__list li::before {
  background: var(--clay);
}

/* ---------- 03 规格变更留痕 ---------- */

.page-news .news-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  max-width: 72ch;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--news-body);
  background: rgba(30, 42, 71, 0.42);
  border-left: 3px solid var(--moss);
  border-radius: 3px;
}

.page-news .news-note--plain {
  border-left-color: var(--clay);
}

.page-news .news-log {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--news-edge);
}

.page-news .news-log__row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--news-edge);
}

.page-news .news-log__row:nth-child(even) {
  background: rgba(30, 42, 71, 0.24);
}

.page-news .news-log__ver {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--clay);
}

.page-news .news-log__name {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--bone);
}

.page-news .news-log__body p {
  margin: 0;
  max-width: 66ch;
  font-size: 0.92rem;
  line-height: 1.76;
  color: var(--news-body);
}

/* ---------- 04 编辑与核对流程 ---------- */

.page-news .news-flow {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.page-news .news-flow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pstep;
  display: grid;
  gap: 12px;
}

.page-news .pstep {
  position: relative;
  padding: 15px 16px 16px 56px;
  border: 1px solid var(--news-edge);
  border-radius: 4px;
  background: var(--news-panel);
}

.page-news .pstep::before {
  counter-increment: pstep;
  content: "0" counter(pstep);
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-news .pstep__title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--bone);
}

.page-news .pstep p {
  margin: 0;
  max-width: 60ch;
  font-size: 0.9rem;
  line-height: 1.74;
  color: var(--news-body);
}

.page-news .news-flow__fig {
  margin: 0;
  border: 1px solid var(--news-edge);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-900);
}

.page-news .news-flow__fig img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.74);
}

.page-news .news-flow__fig figcaption {
  padding: 12px 14px 14px;
  font-size: 12px;
  line-height: 1.68;
  color: var(--rock);
  border-top: 1px solid var(--news-edge-soft);
}

/* ---------- 05 订阅与收藏 ---------- */

.page-news .news-save {
  margin-top: 24px;
  padding: 20px 18px 22px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--news-edge);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(53, 242, 214, 0.06), rgba(255, 61, 127, 0.05) 62%, transparent 100%),
    var(--ink-700);
}

.page-news .news-save__text p {
  margin: 0 0 12px;
  max-width: 68ch;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--news-body);
}

.page-news .news-save__text p:last-child {
  margin-bottom: 0;
}

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

.page-news .news-related {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--news-edge);
}

.page-news .news-related__lead {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--rock);
}

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

.page-news .news-related__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--news-edge-soft);
}

.page-news .news-related__list a {
  flex: none;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cyan);
}

.page-news .news-related__list span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--rock);
}

/* ---------- 响应式 ---------- */

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

  .page-news .news-item > summary {
    grid-template-columns: 34px minmax(0, 1fr) auto 16px;
    grid-template-areas: "num title meta chev";
    align-items: center;
    gap: 4px 16px;
  }

  .page-news .news-item__num {
    padding-top: 0;
  }

  .page-news .news-item__meta {
    justify-content: flex-end;
  }

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

@media (min-width: 880px) {
  .page-news .news-topics {
    grid-template-columns: 5fr 4fr 3fr;
  }

  .page-news .news-flow {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px;
  }

  .page-news .news-save {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: center;
    padding: 24px 22px 26px;
  }

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

@media (min-width: 1100px) {
  .page-news .news-item__body {
    padding-left: 50px;
    padding-right: 24px;
  }

  .page-news .news-item > summary {
    padding: 17px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-item__chev,
  .page-news .news-item__title,
  .page-news .news-item > summary,
  .page-news .topic {
    transition: none;
  }
}
