.page-news {
  --news-sec-pad: clamp(52px, 8vw, 104px);
  --news-line: var(--grid);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow-x: clip;
}

.page-news *,
.page-news *::before,
.page-news *::after {
  box-sizing: border-box;
}

.page-news a {
  color: inherit;
  text-decoration: none;
}

.page-news h1,
.page-news h2,
.page-news h3,
.page-news p,
.page-news ul,
.page-news figure {
  margin: 0;
}

.page-news .crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-news .crumbs a {
  color: var(--muted);
  transition: color 180ms var(--ease);
}

.page-news .crumbs a:hover {
  color: var(--gold-lite);
}

.page-news .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ---------- 首屏 ---------- */
.news-hero {
  display: grid;
  gap: 32px;
  padding: 28px 0 44px;
  background: linear-gradient(180deg, rgba(200, 160, 90, 0.08) 0%, rgba(200, 160, 90, 0) 72%);
}

.news-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 9vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
  background: linear-gradient(160deg, var(--gold-lite) 0%, var(--gold) 46%, #7a5c30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.news-hero__lede {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.88;
}

.news-hero__readout {
  border: 1px solid var(--news-line);
  border-left: 2px solid var(--gold);
  background: var(--ink-2);
  padding: 20px 18px;
}

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

.news-readout li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 2px;
  background: var(--ink-2);
}

.news-readout span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.news-readout b {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--cyan);
}

.news-readout__note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 章节索引 ---------- */
.news-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--news-line);
  border-left: 1px solid var(--news-line);
}

.news-index__link {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 13px 12px;
  border-right: 1px solid var(--news-line);
  border-bottom: 1px solid var(--news-line);
  font-size: 13px;
  color: var(--muted);
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.news-index__link b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
}

.news-index__link:hover,
.news-index__link:focus-visible {
  color: var(--paper);
  background: var(--ink-2);
}

/* ---------- 章节通用 ---------- */
.news-sec {
  padding-top: var(--news-sec-pad);
}

.news-sec__head {
  display: grid;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--news-line);
}

.news-sec__idx {
  font-family: var(--font-mono);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.news-sec__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.news-sec__lede {
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.news-sec__foot {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.news-link {
  color: var(--gold-lite);
  border-bottom: 1px solid rgba(200, 160, 90, 0.5);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.news-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 分类标签 ---------- */
.news-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.news-tag--ver {
  color: var(--coral);
}

.news-tag--cat {
  color: var(--cyan);
}

.news-tag--ops {
  color: var(--gold-lite);
}

/* ---------- 图片 ---------- */
.news-fig {
  position: relative;
  border: 1px solid var(--news-line);
  background: var(--ink-2);
  overflow: hidden;
}

.news-fig img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.92);
}

.news-fig__cap {
  padding: 10px 12px;
  border-top: 1px solid var(--news-line);
  border-left: 2px solid var(--gold);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--ink-2);
}

/* ---------- 01 最新发布 ---------- */
.news-latest {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 22px;
  background: var(--ink-2);
  border: 1px solid var(--news-line);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}

.news-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 240ms var(--ease);
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: #39404c;
  background: #171a20;
}

.news-card:hover::before {
  transform: scaleY(1);
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.news-card__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.news-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--paper);
}

.news-card__text {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.news-latest__fig img {
  aspect-ratio: 1000 / 640;
}

/* ---------- 02 近期条目动态 ---------- */
.news-stream {
  margin-top: 32px;
  border-top: 1px solid var(--news-line);
}

.news-stream--nested {
  margin-top: 0;
  border-top: 0;
}

.news-row {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 14px 20px 20px;
  border-bottom: 1px solid var(--news-line);
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}

.news-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 260ms var(--ease);
}

.news-row:hover {
  transform: translateY(-2px);
  background: var(--ink-2);
}

.news-row:hover::before {
  transform: scaleY(1);
}

.news-row__id {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.news-row__body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.news-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.news-row__time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.news-row__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--paper);
}

.news-row__text {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.news-row__stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.news-more {
  margin-top: 18px;
}

.news-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--news-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold-lite);
  cursor: pointer;
  list-style: none;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}

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

.news-more summary::after {
  content: "+";
  font-size: 15px;
  color: var(--gold);
}

.news-more[open] summary::after {
  content: "\2013";
}

.news-more summary:hover {
  background: var(--ink-2);
  border-color: #39404c;
}

/* ---------- 03 版本迭代 ---------- */
.news-fig--banner {
  margin-top: 30px;
}

.news-fig--banner img {
  aspect-ratio: 1400 / 520;
}

.news-versions {
  margin-top: 26px;
  border-top: 1px solid var(--news-line);
}

.news-ver {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--news-line);
}

.news-ver__no {
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.news-ver__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--paper);
}

.news-ver__text {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.news-ver--current .news-ver__no {
  color: var(--coral);
}

.news-ver--current .news-ver__title {
  color: var(--gold-lite);
}

/* ---------- 04 目录变更 ---------- */
.news-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: var(--news-line);
  border: 1px solid var(--news-line);
}

.news-stat {
  background: var(--ink-2);
  padding: 16px 14px;
}

.news-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--paper);
}

.news-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.news-changes {
  margin-top: 26px;
  border-top: 1px solid var(--news-line);
}

.news-change {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--news-line);
}

.news-change .news-tag {
  justify-self: start;
}

.news-change__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--paper);
}

.news-change__text {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.news-fig--wide {
  margin-top: 32px;
}

.news-fig--wide img {
  aspect-ratio: 1200 / 700;
}

/* ---------- 05 运营专题 ---------- */
.news-topics {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.news-topics__fig img {
  aspect-ratio: 1200 / 800;
}

.news-topic-list {
  display: grid;
  gap: 0;
}

.news-topic {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--news-line);
}

.news-topic:last-child {
  border-bottom: 1px solid var(--news-line);
}

.news-topic .news-tag {
  justify-self: start;
}

.news-topic__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--paper);
}

.news-topic__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 06 归档与订阅 ---------- */
.news-archive {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.news-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--news-line);
  border: 1px solid var(--news-line);
  align-content: start;
}

.news-month {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px;
  background: var(--ink-2);
  transition: background 180ms var(--ease);
}

.news-month b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  transition: color 180ms var(--ease);
}

.news-month span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
}

.news-month:hover {
  background: var(--ink-3);
}

.news-month:hover b {
  color: var(--cyan);
}

.news-sub {
  border: 1px solid var(--news-line);
  border-left: 2px solid var(--gold);
  background: var(--ink-2);
  padding: 22px 18px;
}

.news-sub__title {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--gold-lite);
}

.news-sub__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.news-sub__text + .news-sub__text {
  margin-top: 12px;
}

.news-sub__note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--news-line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--cyan);
}

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

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

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

@media (min-width: 760px) {
  .news-latest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .news-latest__fig {
    grid-column: 1 / -1;
  }

  .news-latest__fig img {
    aspect-ratio: 1000 / 420;
  }

  .news-change {
    grid-template-columns: 92px minmax(0, 240px) minmax(0, 1fr);
    gap: 22px;
    align-items: baseline;
  }

  .news-change .news-tag {
    justify-self: start;
  }
}

@media (min-width: 900px) {
  .news-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 56px;
    align-items: end;
    padding: 44px 0 60px;
  }

  .news-index {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .news-sec__head {
    grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding-top: 28px;
  }

  .news-sec__idx {
    font-size: clamp(48px, 5vw, 68px);
  }

  .news-sec__title {
    margin-top: 6px;
  }

  .news-row {
    grid-template-columns: 88px minmax(0, 1fr) 110px;
    align-items: start;
    gap: 22px;
    padding: 22px 16px 22px 22px;
  }

  .news-row__stamp {
    text-align: right;
    padding-top: 3px;
  }

  .news-ver {
    grid-template-columns: 110px minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 30px;
    align-items: baseline;
    padding: 22px 0;
  }

  .news-ver__no {
    font-size: 30px;
  }

  .news-topics {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 42px;
    align-items: start;
  }

  .news-archive {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 42px;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .news-latest {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1fr);
    align-items: stretch;
  }

  .news-latest__fig {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  .news-latest__fig img {
    flex: 1 1 auto;
    height: 100%;
    min-height: 200px;
    aspect-ratio: auto;
  }

  .news-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-news .news-card,
  .page-news .news-row,
  .page-news .news-card::before,
  .page-news .news-row::before {
    transition: color 120ms var(--ease), background 120ms var(--ease), border-color 120ms var(--ease);
  }

  .page-news .news-card:hover,
  .page-news .news-row:hover {
    transform: none;
  }
}
