.page-news {
  --news-line: rgba(154, 168, 181, 0.16);
  --news-line-lit: rgba(47, 224, 200, 0.42);
  --news-row: 1px solid var(--news-line);
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  padding: 34px 0 44px;
  background:
    radial-gradient(120% 100% at 88% 0%, rgba(47, 224, 200, 0.10) 0%, rgba(11, 27, 43, 0) 58%),
    linear-gradient(180deg, var(--c-ink) 0%, var(--c-deep) 100%);
  border-bottom: 1px solid var(--news-line);
}

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

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

.page-news .news-hero h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--c-paper);
}

.page-news .news-hero__sub {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-shale);
}

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

.page-news .news-hero__stats {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--news-line);
  border: var(--news-row);
}

.page-news .news-hero__stats > div {
  background: rgba(11, 27, 43, 0.78);
  padding: 14px 16px;
}

.page-news .news-hero__stats dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-shale);
}

.page-news .news-hero__stats dd {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--c-cyan);
}

/* ---------- 归档说明 ---------- */
.page-news .news-note__rule {
  height: 12px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--news-line);
  background-image: repeating-linear-gradient(90deg, rgba(154, 168, 181, 0.4) 0 1px, transparent 1px 16px);
  background-position: left bottom;
  background-size: 100% 8px;
  background-repeat: repeat-x;
}

.page-news .news-note__grid {
  display: grid;
  gap: 26px;
}

.page-news .news-note__text p {
  margin: 0 0 1em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-shale);
}

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

.page-news .news-figure {
  position: relative;
  margin: 0;
  border: var(--news-row);
  background: var(--c-ink);
  overflow: hidden;
}

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

.page-news .news-figure--3x2 { aspect-ratio: 3 / 2; }
.page-news .news-figure--2x1 { aspect-ratio: 2 / 1; }
.page-news .news-figure--4x5 { aspect-ratio: 5 / 4; }

/* ---------- 分类主题带 ---------- */
.page-news .news-tracks {
  display: grid;
  gap: 10px;
}

.page-news .news-track {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 18px 18px 20px;
  border: var(--news-row);
  background: rgba(18, 40, 61, 0.55);
  color: inherit;
  text-decoration: none;
  transition: border-color 220ms ease-out, transform 220ms ease-out, background 220ms ease-out;
}

.page-news .news-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.page-news .news-track--version::after { background: var(--c-cyan); }
.page-news .news-track--index::after { background: var(--c-gold); }
.page-news .news-track--device::after { background: var(--c-green); }

.page-news .news-track:hover,
.page-news .news-track:focus-visible {
  border-color: var(--news-line-lit);
  background: rgba(18, 40, 61, 0.82);
  transform: translateY(-2px);
}

.page-news .news-track:hover::after,
.page-news .news-track:focus-visible::after { opacity: 1; }

.page-news .news-track__no {
  grid-row: span 3;
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  color: rgba(154, 168, 181, 0.45);
}

.page-news .news-track__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-paper);
}

.page-news .news-track__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-shale);
}

.page-news .news-track__span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-cyan);
}

.page-news .news-track--index .news-track__span { color: var(--c-gold); }
.page-news .news-track--device .news-track__span { color: var(--c-green); }

/* ---------- 条目列表 ---------- */
.page-news .news-log__figure {
  margin-bottom: 28px;
}

.page-news .news-group {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--news-line);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-paper);
}

.page-news .news-group:not(:first-of-type) {
  margin-top: 44px;
}

.page-news .news-log {
  display: grid;
  gap: 1px;
  background: var(--news-line);
  border: var(--news-row);
}

.page-news .news-entry {
  background: var(--c-deep);
}

.page-news .news-entry__row {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 15px 16px 15px 18px;
  cursor: pointer;
  list-style: none;
  transition: background 200ms ease-out;
}

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

.page-news .news-entry__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-cyan);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 220ms ease-out;
}

.page-news .news-entry:hover .news-entry__row,
.page-news .news-entry__row:focus-visible { background: rgba(18, 40, 61, 0.66); }

.page-news .news-entry:hover .news-entry__row::before,
.page-news .news-entry[open] .news-entry__row::before { transform: scaleY(1); }

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

.page-news .news-entry__stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--c-old-tag);
}

.page-news .news-entry__title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--c-paper);
}

.page-news .news-entry__sum {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-shale);
}

.page-news .news-entry__chev {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--c-gold);
  border-bottom: 1px solid var(--c-gold);
  transform: rotate(45deg);
  transition: transform 220ms ease-out;
}

.page-news .news-entry[open] .news-entry__chev { transform: rotate(-135deg); }

.page-news .news-entry__detail {
  padding: 0 18px 18px 18px;
  border-top: 1px dashed var(--news-line);
  margin: 0 16px 16px 18px;
  padding-left: 0;
  padding-right: 0;
}

.page-news .news-entry__detail p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-shale);
}

.page-news .news-entry__detail ul {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-news .news-entry__detail li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-paper);
}

.page-news .news-entry__detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--c-cyan);
}

.page-news .news-entry__link {
  margin-top: 14px;
}

.page-news .news-entry__link a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 224, 200, 0.35);
}

.page-news .news-entry__link a:hover { border-bottom-color: var(--c-cyan); }

/* ---------- 专题横幅 ---------- */
.page-news .news-banner {
  position: relative;
  margin: 40px 0;
  overflow: hidden;
  background: var(--c-ink);
  border-top: 1px solid var(--c-gold-dark);
  border-bottom: 1px solid var(--c-gold-dark);
}

.page-news .news-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.page-news .news-banner__inner {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 32px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.page-news .news-banner__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-gold);
}

.page-news .news-banner__text {
  margin: 0;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-paper);
}

.page-news .news-banner .btn { justify-self: start; }

/* ---------- 专题系列 ---------- */
.page-news .news-topics__grid {
  display: grid;
  gap: 26px;
}

.page-news .news-topics__list {
  display: grid;
  gap: 1px;
  background: var(--news-line);
  border: var(--news-row);
}

.page-news .news-topic {
  padding: 20px 18px;
  background: var(--c-deep);
}

.page-news .news-topic__title {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-paper);
}

.page-news .news-topic__desc {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--c-shale);
}

.page-news .news-topic__link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--c-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(25, 198, 160, 0.35);
}

.page-news .news-topic__link:hover { border-bottom-color: var(--c-green); }

/* ---------- 回溯指引 ---------- */
.page-news .news-rewind {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--news-line);
  border: var(--news-row);
  counter-reset: none;
}

.page-news .news-rewind__step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 16px;
  padding: 20px 18px;
  background: var(--c-deep);
  transition: background 200ms ease-out;
}

.page-news .news-rewind__step:hover { background: rgba(18, 40, 61, 0.7); }

.page-news .news-rewind__no {
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.1;
  color: var(--c-gold);
}

.page-news .news-rewind__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-paper);
}

.page-news .news-rewind__step p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-shale);
}

.page-news .news-rewind__foot {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-shale);
}

.page-news .news-rewind__foot a {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 224, 200, 0.35);
}

.page-news .news-rewind__foot a:hover { border-bottom-color: var(--c-cyan); }

/* ---------- 更新与反馈 ---------- */
.page-news .news-update__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-news .news-update__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-shale);
}

.page-news .news-update__card .btn {
  margin-top: auto;
  align-self: flex-start;
}

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

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

  .page-news .news-entry__row {
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: start;
    gap: 4px 20px;
    padding: 18px 44px 18px 22px;
  }

  .page-news .news-entry__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .page-news .news-entry__chev { right: 20px; top: 24px; }

  .page-news .news-entry__detail {
    margin: 0 22px 18px 158px;
  }
}

@media (min-width: 900px) {
  .page-news .news-hero {
    padding: 46px 0 56px;
  }

  .page-news .news-hero__inner {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
  }

  .page-news .news-hero__stats {
    grid-template-columns: 1fr;
  }

  .page-news .news-note__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    align-items: center;
    gap: 40px;
  }

  .page-news .news-topics__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 36px;
  }

  .page-news .news-banner__inner {
    padding: 40px 24px;
  }
}

@media (min-width: 1100px) {
  .page-news .news-entry__row {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .page-news .news-entry__detail {
    margin-left: 182px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-track,
  .page-news .news-entry__row,
  .page-news .news-entry__row::before,
  .page-news .news-entry__chev,
  .page-news .news-rewind__step {
    transition: none;
  }
}
