.page-news {
  --news-rail: 200px;
  --news-accent-version: var(--neon);
  --news-accent-observe: var(--violet);
  --news-accent-maint: var(--amber);
  --news-accent-tips: var(--mist);
  display: block;
  min-width: 0;
}

.page-news .breadcrumb {
  padding-block: clamp(14px, 3vw, 24px) 0;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 38px);
  align-items: end;
  padding-block: clamp(14px, 3vw, 24px) clamp(26px, 5vw, 48px);
}

.page-news .news-hero__copy {
  min-width: 0;
}

.page-news .news-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 78px);
  line-height: .96;
  letter-spacing: -.02em;
  color: var(--stardust);
  margin: 10px 0 16px;
}

.page-news .news-hero .lede {
  max-width: 22em;
  margin: 0 0 16px;
}

.page-news .news-hero__note {
  margin: 0 0 22px;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.page-news .news-hero__note a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid var(--edge);
}

.page-news .news-hero__note a:hover,
.page-news .news-hero__note a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.page-news .news-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 36px);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--edge);
}

.page-news .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-news .stat__value,
.page-news .stat__label {
  margin: 0;
}

.page-news .stat__value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1;
  color: var(--stardust);
}

.page-news .stat--accent .stat__value {
  color: var(--amber);
}

.page-news .stat__label {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--mist);
}

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

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

@media (min-width: 900px) {
  .page-news .news-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(30px, 5vw, 64px);
  }
}

/* ---------- 横向光带 ---------- */
.page-news .news-beam {
  position: relative;
  height: 1px;
  margin-block: clamp(6px, 1.5vw, 12px);
  background: linear-gradient(90deg, transparent 0%, var(--edge) 10%, var(--neon) 46%, var(--violet) 70%, transparent 100%);
  opacity: .6;
}

.page-news .news-beam::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 12%;
  top: -7px;
  height: 14px;
  background: radial-gradient(closest-side, rgba(53, 242, 208, .26), transparent 72%);
  pointer-events: none;
}

/* ---------- 阶段线索条带 ---------- */
.page-news .news-era-block {
  padding-block: clamp(16px, 3vw, 28px) clamp(4px, 1vw, 10px);
}

.page-news .news-era {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-news .news-era:focus-visible {
  outline: 1px solid var(--neon);
  outline-offset: 2px;
}

.page-news .news-era__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 9px 14px;
  border: 1px solid var(--edge);
  background: rgba(30, 18, 80, .45);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
  white-space: nowrap;
}

.page-news .news-era__item--on {
  color: var(--neon);
  border-color: var(--neon);
  background: rgba(53, 242, 208, .08);
}

/* ---------- 标签说明卡 ---------- */
.page-news .news-tags {
  padding-block: clamp(18px, 3vw, 30px) clamp(28px, 5vw, 52px);
}

.page-news .news-tags__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-news .news-tag {
  position: relative;
  padding: 16px 16px 14px 18px;
  border: 1px solid var(--edge);
  border-left: 4px solid var(--news-tag-color, var(--neon));
  background: linear-gradient(165deg, rgba(30, 18, 80, .85), rgba(21, 11, 58, .6));
  box-shadow: 0 20px 34px -28px rgba(0, 0, 0, .95);
}

.page-news .news-tag--version { --news-tag-color: var(--news-accent-version); }
.page-news .news-tag--observe { --news-tag-color: var(--news-accent-observe); }
.page-news .news-tag--maint { --news-tag-color: var(--news-accent-maint); }
.page-news .news-tag--tips { --news-tag-color: var(--news-accent-tips); }

.page-news .news-tag__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

.page-news .news-tag h2 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--stardust);
}

.page-news .news-tag__rule {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--silver);
}

.page-news .news-tag__count {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--edge-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

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

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

/* ---------- 索引 + 条目流 ---------- */
.page-news .news-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  padding-block: clamp(12px, 2.5vw, 22px) clamp(36px, 6vw, 68px);
  min-width: 0;
}

.page-news .news-index {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--edge);
}

.page-news .news-index__title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-news .news-index__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.page-news .tag-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--silver);
  text-decoration: none;
}

.page-news .tag-link:hover,
.page-news .tag-link:focus-visible {
  color: var(--stardust);
}

.page-news .tag-link__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--violet);
}

.page-news .tag-link__label {
  position: relative;
  display: inline-block;
}

.page-news .tag-link__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--neon);
  transition: right .28s ease;
}

.page-news .tag-link:hover .tag-link__label::after,
.page-news .tag-link:focus-visible .tag-link__label::after {
  right: 0;
}

.page-news .news-index__quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--edge);
  background: rgba(53, 242, 208, .06);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon);
  text-decoration: none;
}

.page-news .news-index__quick:hover,
.page-news .news-index__quick:focus-visible {
  border-color: var(--neon);
}

@media (min-width: 960px) {
  .page-news .news-shell {
    grid-template-columns: var(--news-rail) minmax(0, 1fr);
  }

  .page-news .news-index {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: start;
    padding: 0 0 0 16px;
    border-top: none;
    border-left: 1px solid var(--edge);
  }

  .page-news .news-index__list {
    display: grid;
    gap: 0;
  }
}

.page-news .news-stream {
  display: grid;
  gap: clamp(38px, 6vw, 72px);
  min-width: 0;
}

/* ---------- 分组 ---------- */
.page-news .news-group {
  scroll-margin-top: calc(var(--header-h) + 22px);
  min-width: 0;
}

.page-news .news-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--edge);
}

.page-news .section-no {
  font-family: var(--font-editorial);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
  color: var(--violet);
}

.page-news .news-group__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 30px);
  letter-spacing: -.01em;
  color: var(--stardust);
}

.page-news .news-group__desc {
  flex: 1 1 100%;
  margin: 8px 0 0;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-news .news-group__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  min-width: 0;
}

.page-news .news-group__thumb {
  order: -1;
  margin: 0;
  aspect-ratio: 8 / 6;
  max-height: 230px;
}

.page-news .news-group__foot {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.page-news .news-group__foot a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid var(--edge);
}

.page-news .news-group__foot a:hover,
.page-news .news-group__foot a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

@media (min-width: 900px) {
  .page-news .news-group__body {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    align-items: start;
  }

  .page-news .news-group__thumb {
    order: 0;
    max-height: none;
  }
}

/* ---------- 条目 ---------- */
.page-news .entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--edge-soft);
  min-width: 0;
}

.page-news .entry {
  position: relative;
  padding: 18px 4px 18px 16px;
  border-bottom: 1px solid var(--edge-soft);
  border-left: 4px solid var(--entry-accent, var(--neon));
  transition: background-color .24s ease;
}

.page-news .entry--version { --entry-accent: var(--news-accent-version); }
.page-news .entry--observe { --entry-accent: var(--news-accent-observe); }
.page-news .entry--maint { --entry-accent: var(--news-accent-maint); }

.page-news .entry:hover {
  background: linear-gradient(90deg, rgba(53, 242, 208, .07), transparent 64%);
}

.page-news .entry__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 8px;
}

.page-news .entry__code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--stardust);
}

.page-news .entry__when {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.page-news .entry__sum {
  margin: 0 0 10px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
}

.page-news .entry__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon);
  text-decoration: none;
  opacity: .78;
  transition: opacity .2s ease;
}

.page-news .entry__link::after {
  content: "→";
  transition: transform .24s ease;
}

.page-news .entry:hover .entry__link,
.page-news .entry__link:focus-visible {
  opacity: 1;
}

.page-news .entry__link:hover,
.page-news .entry__link:focus-visible {
  border-bottom-color: var(--neon);
}

.page-news .entry__link:hover::after,
.page-news .entry__link:focus-visible::after {
  transform: translateX(3px);
}

/* ---------- 使用提示 ---------- */
.page-news .news-tips {
  margin-top: 26px;
  padding: 18px 18px 16px;
  border: 1px solid var(--edge);
  border-top: 3px solid var(--news-accent-tips);
  background: rgba(21, 11, 58, .55);
}

.page-news .news-tips h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--stardust);
}

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

.page-news .news-tips li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--silver);
}

.page-news .news-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 1px;
  background: var(--neon);
}

/* ---------- 收尾 ---------- */
.page-news .news-cta {
  display: grid;
  gap: 16px;
  margin-block: clamp(28px, 5vw, 56px) clamp(48px, 8vw, 86px);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--edge);
  background: linear-gradient(120deg, rgba(124, 77, 255, .2), rgba(53, 242, 208, .08) 58%, transparent);
}

.page-news .news-cta h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -.01em;
  color: var(--stardust);
}

.page-news .news-cta p {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
}

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

@media (min-width: 760px) {
  .page-news .news-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    transition: none !important;
    animation: none !important;
  }
}
