.page-news {
  --news-rule: var(--line-light);
  --news-radius: 3px;
  --news-gap: 24px;
}

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

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 0 46px;
  color: var(--silver-300);
  background:
    radial-gradient(120% 130% at 10% 0%, rgba(47, 216, 198, 0.18) 0%, rgba(47, 216, 198, 0) 58%),
    radial-gradient(90% 110% at 92% 100%, rgba(255, 162, 58, 0.12) 0%, rgba(255, 162, 58, 0) 60%),
    linear-gradient(158deg, var(--ink-900) 0%, var(--ink-800) 58%, #0B2035 100%);
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 216, 198, 0) 0%, rgba(47, 216, 198, 0.65) 38%, rgba(47, 216, 198, 0) 100%);
}

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

.page-news .news-hero__title {
  margin: 12px 0 0;
  color: var(--paper);
  font-size: clamp(30px, 6.2vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.page-news .news-hero__lead {
  margin: 16px 0 0;
  max-width: 46ch;
  color: var(--silver-300);
  font-size: 16px;
  line-height: 1.78;
}

.page-news .news-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 24px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line-dark);
}

.page-news .news-hero__stats li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
  color: var(--silver-500);
}

.page-news .news-hero__stats .num {
  font-size: 21px;
  font-weight: 700;
  color: var(--cyan);
}

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

.page-news .news-hero__media .media__frame {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-dark);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

.page-news .news-hero__media .media__caption {
  padding-top: 10px;
  color: var(--silver-500);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- 通用小字 ---------- */
.page-news .news-note {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--silver-500);
  font-size: 14.5px;
  line-height: 1.72;
}

.page-news .news-note--dark {
  color: var(--silver-300);
}

/* ---------- 分类标签 ---------- */
.page-news .news-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-news .news-tab {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--graphite);
  background: #ffffff;
  border: 1px solid var(--news-rule);
  border-left: 3px solid var(--silver-500);
  border-radius: var(--news-radius);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-news .news-tab:hover,
.page-news .news-tab:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.page-news .news-tab--version { border-left-color: var(--cyan); }
.page-news .news-tab--adapt { border-left-color: var(--green); }
.page-news .news-tab--activity { border-left-color: var(--amber); }
.page-news .news-tab--archive { border-left-color: var(--archive); }

.page-news .news-tab__name {
  font-size: 15px;
  font-weight: 600;
}

.page-news .news-tab__count {
  margin-left: auto;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-800);
}

.page-news .news-tab--version .news-tab__count { color: var(--cyan-deep); }
.page-news .news-tab--adapt .news-tab__count { color: var(--green-deep); }
.page-news .news-tab--activity .news-tab__count { color: var(--amber-deep); }

.page-news .news-tab__unit {
  font-size: 12px;
  color: var(--silver-500);
}

/* ---------- 主体两栏 ---------- */
.page-news .news-layout {
  display: grid;
  gap: 30px;
}

.page-news .news-rail {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--news-rule);
  border-radius: var(--news-radius);
}

.page-news .news-rail__title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--silver-500);
  border-bottom: 1px solid var(--news-rule);
}

.page-news .news-rail__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .news-rail__row + .news-rail__row {
  margin-top: 4px;
}

.page-news .news-rail__row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  font-size: 14px;
  color: var(--graphite);
  text-decoration: none;
  border-radius: 2px;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.page-news .news-rail__row a:hover,
.page-news .news-rail__row a:focus-visible {
  background: #ffffff;
  border-left-color: var(--cyan);
}

.page-news .news-rail__row .num {
  font-size: 13px;
  color: var(--silver-500);
}

.page-news .news-rail__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--news-rule);
}

.page-news .news-rail__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--silver-500);
}

.page-news .news-rail__value {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-800);
}

.page-news .news-rail__value .num {
  font-size: 22px;
  color: var(--cyan-deep);
}

.page-news .news-rail__hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--silver-500);
}

/* ---------- 条目流 ---------- */
.page-news .news-feed__head {
  margin-bottom: 20px;
}

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

.page-news .news-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 16px 14px;
  background: #ffffff;
  border: 1px solid var(--news-rule);
  border-left: 3px solid var(--silver-500);
  border-radius: var(--news-radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.page-news .news-item:hover,
.page-news .news-item:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.page-news .news-item--version { border-left-color: var(--cyan); }
.page-news .news-item--adapt { border-left-color: var(--green); }
.page-news .news-item--activity { border-left-color: var(--amber); }
.page-news .news-item--archive { border-left-color: var(--archive); }

.page-news .news-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
}

.page-news .news-item__time {
  color: var(--silver-500);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.page-news .news-item__cat {
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-800);
  background: rgba(47, 216, 198, 0.14);
}

.page-news .news-item--adapt .news-item__cat { background: rgba(76, 208, 125, 0.16); }
.page-news .news-item--activity .news-item__cat { background: rgba(255, 162, 58, 0.18); }
.page-news .news-item--archive .news-item__cat { background: rgba(231, 223, 210, 0.9); }

.page-news .news-item__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.48;
  color: var(--graphite);
}

.page-news .news-item__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.66;
  color: #43505C;
}

.page-news .news-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--news-rule);
  font-size: 12px;
  color: var(--silver-500);
}

.page-news .news-item__read {
  opacity: 0.6;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.page-news .news-item:hover .news-item__read,
.page-news .news-item:focus-visible .news-item__read {
  opacity: 1;
  color: var(--cyan-deep);
}

/* ---------- 专题系列 ---------- */
.page-news .news-series {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.page-news .news-series__item {
  display: grid;
  gap: 0;
  background: #ffffff;
  border: 1px solid var(--news-rule);
  border-radius: var(--news-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.page-news .news-series__media {
  margin: 0;
  background: var(--archive);
}

.page-news .news-series__media .media__frame {
  aspect-ratio: 3 / 2;
}

.page-news .news-series__media .media__caption {
  padding: 9px 14px 10px;
  font-size: 12px;
  line-height: 1.58;
  color: #5B5648;
  background: var(--archive);
}

.page-news .news-series__body {
  padding: 20px 18px 22px;
}

.page-news .news-series__body h3 {
  margin: 0 0 10px;
  color: var(--ink-800);
}

.page-news .news-series__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.76;
  color: #33414D;
}

.page-news .news-series__points {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.page-news .news-series__points li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.66;
  color: #43505C;
}

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

/* ---------- 归档批次 ---------- */
.page-news .news-archive {
  position: relative;
}

.page-news .news-archive .h-section {
  color: var(--paper);
}

.page-news .news-archive__grid {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

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

.page-news .news-archive__media .media__frame {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line-dark);
}

.page-news .news-archive__media .media__caption {
  padding-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--silver-500);
}

.page-news .news-archive__caption {
  padding: 0 0 10px;
  text-align: left;
  font-size: 12.5px;
  color: var(--silver-500);
}

.page-news .news-archive .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.page-news .news-archive .data-table th,
.page-news .news-archive .data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
  color: var(--silver-300);
}

.page-news .news-archive .data-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: rgba(47, 216, 198, 0.08);
}

.page-news .news-archive .data-table tbody tr:nth-child(even) {
  background: rgba(200, 212, 223, 0.04);
}

.page-news .news-archive .data-table .num {
  color: var(--paper);
  font-weight: 600;
}

.page-news .news-archive__foot {
  margin: 22px 0 0;
  max-width: 70ch;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--silver-300);
}

.page-news .news-archive__foot a {
  color: var(--cyan);
}

/* ---------- 旧版本索引 ---------- */
.page-news .news-legacy {
  display: grid;
  gap: 26px;
}

.page-news .news-legacy__intro p {
  margin: 10px 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.76;
  color: #33414D;
}

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

.page-news .news-steps__item {
  position: relative;
  padding: 18px 18px 18px 60px;
  background: var(--paper);
  border: 1px solid var(--news-rule);
  border-radius: var(--news-radius);
}

.page-news .news-steps__item::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--news-rule);
}

.page-news .news-steps__no {
  position: absolute;
  left: 14px;
  top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-deep);
}

.page-news .news-steps__item h3 {
  margin: 0 0 8px;
  color: var(--ink-800);
}

.page-news .news-steps__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: #43505C;
}

.page-news .news-legacy__note {
  padding: 18px;
  background: var(--archive);
  border: 1px solid #D6CCB9;
  border-radius: var(--news-radius);
}

.page-news .news-legacy__note-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #4A4436;
}

.page-news .news-legacy__note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: #5B5648;
}

.page-news .news-legacy__note a {
  color: var(--cyan-deep);
  font-weight: 600;
}

/* ---------- 勘误 ---------- */
.page-news .news-correct__inner {
  display: grid;
  gap: 22px;
  padding: 26px 20px;
  background: linear-gradient(140deg, var(--ink-900) 0%, var(--ink-800) 100%);
  border-radius: var(--news-radius);
  color: var(--silver-300);
}

.page-news .news-correct .h-section {
  color: var(--paper);
  margin-top: 8px;
}

.page-news .news-correct__text p {
  margin: 12px 0 0;
  max-width: 58ch;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--silver-300);
}

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

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

.page-news .news-correct__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--ink-800);
}

.page-news .news-correct__key {
  font-size: 12.5px;
  color: var(--silver-500);
}

.page-news .news-correct__val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  text-align: right;
}

/* ---------- 相关入口 ---------- */
.page-news .news-links {
  border-top: 1px solid var(--news-rule);
}

.page-news .news-links__title {
  margin: 0 0 14px;
  color: var(--ink-800);
}

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

.page-news .news-links__list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink-800);
  font-size: 14.5px;
  font-weight: 600;
  background: var(--paper);
  border: 1px solid var(--news-rule);
  border-radius: var(--news-radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.page-news .news-links__list a:hover,
.page-news .news-links__list a:focus-visible {
  border-color: var(--cyan);
  transform: translateX(3px);
}

.page-news .news-links__list span {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--silver-500);
}

.page-news .news-links__top {
  margin: 20px 0 0;
  font-size: 13px;
}

.page-news .news-links__top a {
  color: var(--cyan-deep);
  font-weight: 600;
}

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

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

  .page-news .news-correct__inner {
    padding: 32px 28px;
  }
}

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

  .page-news .news-hero__grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 40px;
  }

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

  .page-news .news-series__item--flip .news-series__media {
    order: 2;
  }

  .page-news .news-series__item--flip .news-series__body {
    order: 1;
  }

  .page-news .news-archive__grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 34px;
  }

  .page-news .news-legacy {
    grid-template-columns: 4fr 7fr;
    gap: 34px;
    align-items: start;
  }

  .page-news .news-legacy__intro {
    position: sticky;
    top: 96px;
  }

  .page-news .news-legacy__note {
    grid-column: 1 / -1;
  }

  .page-news .news-correct__inner {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 34px;
    padding: 40px 34px;
  }

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

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

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

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

@media (prefers-reduced-motion: reduce) {
  .page-news .news-tab,
  .page-news .news-item,
  .page-news .news-links__list a,
  .page-news .news-item__read {
    transition: none;
  }

  .page-news .news-tab:hover,
  .page-news .news-item:hover,
  .page-news .news-links__list a:hover {
    transform: none;
  }
}
