.page-news {
  --news-no-w: 44px;
  --news-line-soft: rgba(42, 49, 87, .7);
  color: var(--yh-text);
  font-family: var(--yh-font-sans);
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--yh-line);
  background: var(--yh-bg);
}

.page-news .news-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-news .news-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .5;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(108, 92, 231, .22) 0%, rgba(11, 16, 38, 0) 62%),
    linear-gradient(180deg, rgba(11, 16, 38, .35) 0%, rgba(11, 16, 38, .78) 58%, var(--yh-bg) 100%);
  pointer-events: none;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 72px 48px;
}

.page-news .news-hero__title {
  margin: 14px 0 0;
  max-width: 22ch;
  font-size: clamp(28px, 7.2vw, 56px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--yh-text);
}

.page-news .news-hero__lead {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--yh-muted);
}

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

/* ---------- 筛选与跳转 ---------- */
.page-news .news-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 28px;
  border-bottom: 1px solid var(--yh-line);
}

.page-news .news-toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .yh-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--yh-violet-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--yh-violet-soft);
  font-family: var(--yh-font-sans);
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .18s var(--yh-ease), color .18s var(--yh-ease), border-color .18s var(--yh-ease);
}

.page-news .yh-chip:hover {
  background: rgba(108, 92, 231, .16);
}

.page-news .yh-chip[aria-pressed="true"] {
  background: var(--yh-violet);
  border-color: var(--yh-violet);
  color: var(--yh-inverse);
}

.page-news .yh-chip__count {
  font-family: var(--yh-font-mono);
  font-size: 11px;
  opacity: .82;
}

.page-news .news-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  letter-spacing: .04em;
}

.page-news .news-jump a {
  color: var(--yh-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--yh-ease), border-color .18s var(--yh-ease);
}

.page-news .news-jump a:hover {
  color: var(--yh-violet-soft);
  border-bottom-color: var(--yh-violet-soft);
}

/* ---------- 区块骨架 ---------- */
.page-news .news-band {
  padding-block: 52px;
}

.page-news .news-band--surface {
  background: linear-gradient(180deg, rgba(20, 26, 54, .6) 0%, rgba(11, 16, 38, 0) 100%);
  border-top: 1px solid var(--yh-line);
  border-bottom: 1px solid var(--yh-line);
}

.page-news .news-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.page-news .news-head__index {
  margin: 0;
  font-family: var(--yh-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--yh-violet);
}

.page-news .news-head__title {
  margin: 0;
  font-size: clamp(23px, 4.6vw, 34px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.page-news .news-head__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--yh-muted);
}

/* ---------- 更新记录列表 ---------- */
.page-news .news-list {
  border-top: 1px solid var(--yh-line);
}

.page-news .news-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--news-no-w) 1fr;
  gap: 0 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--news-line-soft);
  transition: background .18s var(--yh-ease);
}

.page-news .news-item::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--yh-violet);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .18s var(--yh-ease);
}

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

.page-news .news-item__no {
  padding-top: 4px;
  font-family: var(--yh-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--yh-cyan);
}

.page-news .news-item__title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.52;
  letter-spacing: -.01em;
  color: var(--yh-text);
}

.page-news .news-item__desc {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--yh-muted);
}

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

.page-news .news-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--yh-line);
  border-radius: 999px;
  background: rgba(166, 155, 255, .08);
  color: var(--yh-violet-soft);
  font-size: 12px;
  letter-spacing: .06em;
}

.page-news .news-item__ver {
  font-family: var(--yh-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--yh-muted);
}

.page-news .news-quote {
  margin: 6px 0;
  padding: 20px 0 20px 20px;
  border-top: 1px solid var(--yh-line);
  border-bottom: 1px solid var(--yh-line);
  border-left: 2px solid var(--yh-violet);
  background: linear-gradient(90deg, rgba(108, 92, 231, .12) 0%, rgba(11, 16, 38, 0) 70%);
  font-size: 15px;
  line-height: 1.7;
  color: var(--yh-violet-soft);
}

/* ---------- 图文分栏 ---------- */
.page-news .news-split {
  display: grid;
  gap: 28px;
  align-items: start;
}

.page-news .news-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--yh-line);
  border-radius: var(--yh-radius);
  overflow: hidden;
  background: var(--yh-surface);
}

.page-news .news-figure::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--yh-violet) 50%, transparent 100%);
}

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

.page-news .news-figure--wide {
  margin-bottom: 28px;
}

/* ---------- 上手步骤 ---------- */
.page-news .news-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-news .news-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--yh-line);
  border-radius: var(--yh-radius);
  background: linear-gradient(180deg, rgba(20, 26, 54, .92) 0%, rgba(20, 26, 54, .55) 100%);
}

.page-news .news-steps__no {
  padding-top: 3px;
  font-family: var(--yh-font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--yh-amber);
}

.page-news .news-steps__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--yh-text);
}

.page-news .news-steps__desc {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--yh-muted);
}

.page-news .news-steps__desc a {
  color: var(--yh-violet-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 155, 255, .45);
}

.page-news .news-steps__desc a:hover {
  color: var(--yh-text);
  border-bottom-color: var(--yh-text);
}

/* ---------- 版本对照刻度 ---------- */
.page-news .news-pairs {
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--yh-line);
}

.page-news .news-pairs li {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid var(--news-line-soft);
}

.page-news .news-pairs li:last-child {
  border-bottom: none;
}

.page-news .news-pairs li::before {
  content: "";
  position: absolute;
  left: -24.5px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yh-bg);
  border: 1px solid var(--yh-cyan);
}

.page-news .news-pairs__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--yh-text);
}

.page-news .news-pairs__desc {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--yh-muted);
}

/* ---------- 帮助文档分类 ---------- */
.page-news .news-docgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-news .news-doc {
  display: block;
  padding: 18px;
  border: 1px solid var(--yh-line);
  border-radius: var(--yh-radius);
  background: rgba(20, 26, 54, .5);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s var(--yh-ease), transform .18s var(--yh-ease), background .18s var(--yh-ease);
}

.page-news .news-doc:hover {
  border-color: var(--yh-violet);
  background: rgba(108, 92, 231, .12);
  transform: translateY(-2px);
}

.page-news .news-doc__cat {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--yh-text);
}

.page-news .news-doc__desc {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--yh-muted);
}

.page-news .news-doc__go {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--yh-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--yh-violet-soft);
}

/* ---------- 归档折叠 ---------- */
.page-news .news-archive {
  border-top: 1px solid var(--yh-line);
}

.page-news .news-archive details {
  border-bottom: 1px solid var(--yh-line);
}

.page-news .news-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--yh-text);
}

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

.page-news .news-archive summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--yh-violet-soft);
  border-bottom: 1.5px solid var(--yh-violet-soft);
  transform: rotate(45deg);
  transition: transform .18s var(--yh-ease);
}

.page-news .news-archive details[open] summary::after {
  transform: rotate(-135deg);
}

.page-news .news-archive__body {
  padding: 0 0 20px;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--yh-muted);
}

.page-news .news-archive__body p {
  margin: 0;
}

/* ---------- 结尾行动 ---------- */
.page-news .news-cta {
  border-top: 1px solid var(--yh-line);
  background: linear-gradient(180deg, rgba(20, 26, 54, .5) 0%, rgba(11, 16, 38, 1) 100%);
}

.page-news .news-cta__inner {
  display: grid;
  gap: 20px;
  padding-block: 44px 52px;
}

.page-news .news-cta__text {
  margin: 0;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--yh-muted);
}

.page-news .news-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-news .news-hero__inner {
    padding-block: 104px 68px;
  }

  .page-news .news-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .page-news .news-band {
    padding-block: 72px;
  }

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

  .page-news .news-item {
    grid-template-columns: 56px 1fr;
    gap: 0 20px;
    padding: 22px 0;
  }

  .page-news .news-cta__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
  }
}

@media (min-width: 1000px) {
  .page-news .news-split {
    grid-template-columns: 5fr 7fr;
    gap: var(--yh-gutter);
  }

  .page-news .news-split--reverse {
    grid-template-columns: 7fr 5fr;
  }

  .page-news .news-split--reverse .news-split__media {
    order: 2;
  }

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

  .page-news .news-band {
    padding-block: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-item::before,
  .page-news .news-item,
  .page-news .news-doc,
  .page-news .news-chip,
  .page-news .news-archive summary::after {
    transition: none;
  }
}
