.page-news {
  --news-rail-w: 300px;
  --news-chip-line: rgba(199, 242, 80, .34);
  background: var(--carbon);
  color: var(--text);
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 88% at 90% 6%, rgba(199, 242, 80, .10) 0%, transparent 56%),
    radial-gradient(96% 78% at 4% 96%, rgba(30, 27, 69, .58) 0%, transparent 62%),
    var(--carbon);
}

.page-news .news-hero .crumbs {
  padding-top: 22px;
}

.page-news .news-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  padding: 26px 0 52px;
}

.page-news .news-hero h1 {
  margin: 12px 0 18px;
  font-size: var(--fs-1);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.012em;
  max-width: 18ch;
}

.page-news .news-hero__lede {
  margin: 0;
  max-width: 56ch;
  font-size: var(--fs-5);
  line-height: 1.78;
  color: var(--muted);
}

.page-news .news-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
  font-size: .92rem;
  color: var(--muted);
}

.page-news .news-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--lime);
  margin-right: 5px;
}

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

/* 首屏记分板视觉 */
.page-news .news-hero__board {
  position: relative;
  min-height: 232px;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(158deg, var(--surface) 0%, #0b1a15 58%, var(--carbon) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
}

.page-news .news-hero__board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 68, 58, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 68, 58, .5) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .85;
}

.page-news .news-board__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  animation: news-scan 4.4s ease-in-out infinite;
}

@keyframes news-scan {
  0%, 100% { top: 10%; opacity: 0; }
  22% { opacity: .9; }
  52% { top: 84%; opacity: .9; }
  76% { opacity: .15; }
}

.page-news .news-board__ball {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 242, 80, .34) 0%, transparent 68%);
}

.page-news .news-board__bars {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  height: 58%;
  display: flex;
  align-items: flex-end;
  gap: clamp(7px, 2.2%, 16px);
}

.page-news .news-board__bars i {
  flex: 1 1 0;
  display: block;
  border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, var(--lime), rgba(199, 242, 80, .1));
  opacity: .92;
}

.page-news .news-board__bars i:nth-child(1) { height: 40%; }
.page-news .news-board__bars i:nth-child(2) { height: 66%; }
.page-news .news-board__bars i:nth-child(3) {
  height: 30%;
  background: linear-gradient(180deg, var(--orange), rgba(255, 139, 61, .1));
}
.page-news .news-board__bars i:nth-child(4) { height: 88%; }
.page-news .news-board__bars i:nth-child(5) { height: 54%; }
.page-news .news-board__bars i:nth-child(6) { height: 72%; }

/* ---------- 主体两栏 ---------- */
.page-news .news-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 46px;
  padding-block: clamp(38px, 6vw, 72px);
}

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

.page-news .news-block + .news-block {
  margin-top: clamp(46px, 6vw, 84px);
}

.page-news .news-block--feature {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(74, 19, 48, .55) 0%, rgba(74, 19, 48, .10) 100%);
}

.page-news .news-block--indigo {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(30, 27, 69, .62) 0%, rgba(30, 27, 69, .12) 100%);
}

/* ---------- 区块头 ---------- */
.page-news .news-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-news .news-head__idx {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lime);
}

.page-news .news-head__title {
  margin: 0;
  font-size: var(--fs-3);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.008em;
}

.page-news .news-head__lede {
  grid-column: 2;
  margin: 8px 0 0;
  max-width: 62ch;
  font-size: .95rem;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 图片 ---------- */
.page-news .news-figure {
  position: relative;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
}

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

.page-news .news-figure__cap {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.6;
  color: var(--muted);
  background: rgba(8, 17, 14, .5);
}

.page-news .news-figure--tall {
  margin: 0;
}

.page-news .news-figure--rail {
  margin: 20px 0 0;
  border-color: var(--line-soft);
}

/* ---------- 条目列表 ---------- */
.page-news .news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-news .news-item {
  position: relative;
  padding: 16px 14px 16px 16px;
  border-bottom: 1px solid var(--line);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}

.page-news .news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 2px;
  background: var(--lime);
  opacity: 0;
  transition: opacity .2s var(--ease);
}

@media (hover: hover) {
  .page-news .news-item:hover {
    transform: translateX(4px);
    background: rgba(199, 242, 80, .045);
  }
  .page-news .news-item:hover::before {
    opacity: 1;
  }
}

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

.page-news .news-tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}

.page-news .news-tag--lime {
  color: var(--lime);
  background: rgba(199, 242, 80, .08);
}

.page-news .news-tag--orange {
  color: var(--orange);
  background: rgba(255, 139, 61, .09);
}

.page-news .news-item__time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .76rem;
  letter-spacing: .02em;
  color: var(--muted);
}

.page-news .news-item__title {
  margin: 9px 0 7px;
  font-size: var(--fs-5);
  font-weight: 700;
  line-height: 1.46;
  color: var(--text);
}

.page-news .news-item__sum {
  margin: 0;
  max-width: 60ch;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 射手榜观察的双栏 ---------- */
.page-news .news-watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

/* ---------- 区块底部 ---------- */
.page-news .news-block__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ---------- 右侧栏 ---------- */
.page-news .news-rail {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.page-news .news-rail__card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(23, 58, 47, .62) 0%, rgba(15, 36, 29, .5) 100%);
}

.page-news .news-rail__title {
  margin: 0 0 8px;
  font-size: var(--fs-4);
  font-weight: 800;
  line-height: 1.25;
}

.page-news .news-rail__lede {
  margin: 0 0 16px;
  font-size: .88rem;
  line-height: 1.66;
  color: var(--muted);
}

.page-news .news-filter + .news-filter {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.page-news .news-filter__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--muted);
}

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

.page-news .news-chip {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}

.page-news .news-chip:hover,
.page-news .news-chip:focus-visible {
  border-color: var(--news-chip-line);
  color: var(--lime);
  background: rgba(199, 242, 80, .08);
}

.page-news .news-chip--wide {
  width: 100%;
  text-align: center;
  color: var(--orange);
  border-color: rgba(255, 139, 61, .34);
}

.page-news .news-chip--wide:hover,
.page-news .news-chip--wide:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(255, 139, 61, .1);
}

.page-news .fav-btn--block {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

/* 热门系列 */
.page-news .news-series {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.page-news .news-series li + li {
  border-top: 1px solid var(--line);
}

.page-news .news-series a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.page-news .news-series a:hover,
.page-news .news-series a:focus-visible {
  color: var(--lime);
}

.page-news .news-series__count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-news .news-watch {
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
    gap: 26px;
    align-items: start;
  }

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

@media (min-width: 960px) {
  .page-news .news-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 52px;
    align-items: center;
    padding: 40px 0 72px;
  }

  .page-news .news-hero__board {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1060px) {
  .page-news .news-body {
    grid-template-columns: minmax(0, 1fr) var(--news-rail-w);
    gap: 54px;
    align-items: start;
  }

  .page-news .news-rail {
    position: sticky;
    top: calc(var(--header-h) + 22px);
  }
}

@media (min-width: 1280px) {
  .page-news .news-watch {
    grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
    gap: 34px;
  }
}

@media (max-width: 519px) {
  .page-news .news-hero__facts {
    gap: 10px 22px;
    font-size: .86rem;
  }

  .page-news .news-num {
    font-size: 1.12rem;
  }

  .page-news .news-block--feature,
  .page-news .news-block--indigo {
    padding: 18px 14px;
  }

  .page-news .news-rail__card {
    padding: 16px;
  }

  .page-news .news-hero__actions .btn,
  .page-news .news-hero__actions .fav-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-board__scan {
    animation: none;
    top: 50%;
    opacity: .5;
  }

  .page-news .news-item,
  .page-news .news-item::before,
  .page-news .news-chip,
  .page-news .news-series a {
    transition: none;
  }

  .page-news .news-item:hover {
    transform: none;
  }
}
