.page-news {
  --news-line: rgba(198, 207, 219, .18);
  --news-line-cyan: rgba(52, 227, 208, .45);
  --news-line-indigo: rgba(74, 58, 203, .6);
  background: var(--ink);
  color: var(--frost);
  overflow-x: clip;
}

/* 面包屑 */
.page-news .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 20px 0 4px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mist);
}

.page-news .crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--mist);
}

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

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

.page-news .crumbs [aria-current="page"] {
  color: var(--cyan);
}

/* 首屏 */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5.5vw, 76px) 0 clamp(44px, 5.5vw, 84px);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  width: min(760px, 66vw);
  height: 138%;
  background: linear-gradient(150deg, rgba(74, 58, 203, .38), rgba(139, 108, 255, .14) 52%, transparent 76%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 66%);
  pointer-events: none;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--news-line-cyan) 0 22px, transparent 22px 46px);
  opacity: .55;
}

.page-news .news-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
}

.page-news .news-hero-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  padding: 7px 13px;
  border: 2px solid var(--news-line-cyan);
  background: rgba(52, 227, 208, .07);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-news .news-hero h1 {
  margin: 0 0 22px;
  max-width: 17em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--frost);
}

.page-news .news-hero-lede {
  margin: 0 0 30px;
  max-width: 40em;
  font-size: clamp(15.5px, 1.55vw, 17px);
  line-height: 1.95;
  color: var(--silver);
}

.page-news .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-news .news-hero-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-news .side-card {
  padding: 20px 20px 22px;
  border: 2px solid var(--news-line);
  border-left: 4px solid var(--cyan);
  background: var(--ink-2);
  box-shadow: var(--shadow-mid);
}

.page-news .side-card--alt {
  border-left-color: var(--neon);
  background: var(--green);
}

.page-news .side-card-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-news .side-card--alt .side-card-label {
  color: var(--neon);
}

.page-news .side-card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.4;
  color: var(--frost);
}

.page-news .side-card-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--silver);
}

/* 区块通用 */
.page-news .section-head {
  margin-bottom: 32px;
}

.page-news .section-title {
  max-width: 24em;
}

/* 近期条目 */
.page-news .entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-news .entry-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px 22px 24px;
  border: 2px solid var(--news-line);
  background: var(--ink-2);
  box-shadow: var(--shadow-mid);
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.page-news .entry-card:hover,
.page-news .entry-card:focus-within {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lift);
}

.page-news .entry-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-news .entry-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-news .entry-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.45;
  color: var(--frost);
}

.page-news .entry-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--silver);
}

.page-news .entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--news-line);
  list-style: none;
}

.page-news .entry-tags li {
  padding: 3px 9px;
  border: 1px solid var(--news-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}

/* 周刊专栏带 */
.page-news .weekly-band {
  background: var(--green);
  border-top: 2px solid var(--news-line-cyan);
  border-bottom: 2px solid var(--news-line-cyan);
}

.page-news .weekly-structure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 26px;
}

.page-news .weekly-structure-label {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-news .weekly-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .weekly-cols li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--news-line-cyan);
  background: rgba(10, 18, 36, .55);
  font-size: 13.5px;
  color: var(--frost);
}

.page-news .weekly-cols .mono {
  font-size: 11.5px;
  color: var(--cyan);
}

.page-news .band-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 22px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-news .band-scroller:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 4px;
}

.page-news .band-scroller::-webkit-scrollbar {
  height: 6px;
}

.page-news .band-scroller::-webkit-scrollbar-track {
  background: rgba(198, 207, 219, .12);
}

.page-news .band-scroller::-webkit-scrollbar-thumb {
  background: var(--cyan);
}

.page-news .band-card {
  flex: 0 0 auto;
  width: 268px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px;
  border: 2px solid var(--news-line);
  background: var(--ink-2);
  box-shadow: var(--shadow-mid);
  scroll-snap-align: start;
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.page-news .band-card:hover,
.page-news .band-card:focus-within {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lift);
}

.page-news .band-card--lead {
  width: min(460px, 84vw);
  padding: 0;
  overflow: hidden;
  border-color: var(--news-line-cyan);
}

.page-news .band-figure {
  margin: 0;
  border-bottom: 2px solid var(--news-line-cyan);
}

.page-news .band-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-news .band-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px;
}

.page-news .band-tag {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-news .band-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.45;
  color: var(--frost);
}

.page-news .band-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.88;
  color: var(--silver);
}

/* 版本更新笔记 */
.page-news .cl-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.page-news .cl-figure {
  margin: 0;
  border: 2px solid var(--news-line-indigo);
  background: var(--ink-2);
  box-shadow: var(--shadow-hard);
}

.page-news .cl-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
}

.page-news .cl-caption {
  padding: 12px 16px;
  border-top: 1px solid var(--news-line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--mist);
}

.page-news .cl-list {
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
  border-left: 2px solid var(--news-line-indigo);
  display: grid;
  gap: 26px;
}

.page-news .cl-item {
  position: relative;
}

.page-news .cl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--indigo);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 2px var(--indigo);
}

.page-news .cl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.page-news .cl-ver {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--neon);
}

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

.page-news .cl-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--frost);
}

.page-news .cl-text {
  margin: 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--silver);
}

/* 专题系列 */
.page-news .series-section {
  background: var(--ink-2);
  border-top: 2px solid var(--news-line);
  border-bottom: 2px solid var(--news-line);
}

.page-news .series-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news .series-visual {
  margin: 0;
  border: 2px solid var(--news-line-cyan);
  box-shadow: var(--shadow-hard);
}

.page-news .series-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-news .series-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-news .series-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  border: 2px solid var(--news-line);
  border-left: 4px solid var(--green);
  background: var(--ink);
  transition: border-color .24s var(--ease), border-left-color .24s var(--ease);
}

.page-news .series-item:hover,
.page-news .series-item:focus-within {
  border-color: var(--cyan);
  border-left-color: var(--cyan);
}

.page-news .series-meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-news .series-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.4;
  color: var(--frost);
}

.page-news .series-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.88;
  color: var(--silver);
}

.page-news .series-link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--news-line-cyan);
  padding-bottom: 2px;
}

.page-news .series-link:hover,
.page-news .series-link:focus-visible {
  color: var(--frost);
  border-bottom-color: var(--frost);
}

/* 归档与订阅 */
.page-news .archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.page-news .filter-row .chip {
  padding: 8px 14px;
  border: 2px solid var(--news-line);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--silver);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.page-news .filter-row .chip:hover,
.page-news .filter-row .chip:focus-visible {
  border-color: var(--cyan);
  color: var(--frost);
}

.page-news .filter-row .chip[aria-pressed="true"] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}

.page-news .archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--news-line);
}

.page-news .archive-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--news-line);
  transition: background-color .2s var(--ease);
}

.page-news .archive-row:hover {
  background: rgba(52, 227, 208, .05);
}

.page-news .archive-idx {
  flex: 0 0 auto;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--cyan);
}

.page-news .archive-name {
  flex: 1 1 220px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--frost);
}

.page-news .archive-meta {
  flex: 0 1 auto;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mist);
}

.page-news .archive-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-news .archive-figure {
  margin: 0;
  border: 2px solid var(--news-line);
  box-shadow: var(--shadow-mid);
}

.page-news .archive-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.page-news .subscribe-panel {
  padding: 22px 22px 24px;
  border: 2px solid var(--news-line-cyan);
  background: rgba(52, 227, 208, .06);
  box-shadow: var(--shadow-mid);
}

.page-news .subscribe-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-news .subscribe-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.45;
  color: var(--frost);
}

.page-news .subscribe-text {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--silver);
}

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

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

@media (min-width: 900px) {
  .page-news .news-hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-news .entry-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
  }

  .page-news .entry-card:nth-child(1),
  .page-news .entry-card:nth-child(2) {
    grid-column: span 3;
  }

  .page-news .entry-card:nth-child(3),
  .page-news .entry-card:nth-child(4),
  .page-news .entry-card:nth-child(5) {
    grid-column: span 2;
  }

  .page-news .entry-card:nth-child(6) {
    grid-column: span 6;
  }

  .page-news .cl-layout {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: start;
  }

  .page-news .cl-figure {
    position: sticky;
    top: calc(var(--bar-h-min) + var(--index-h) + 24px);
  }

  .page-news .series-layout {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: start;
  }

  .page-news .archive-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: start;
  }
}

@media (max-width: 719px) {
  .page-news .band-card {
    width: min(268px, 78vw);
  }

  .page-news .band-card--lead {
    width: min(340px, 88vw);
  }

  .page-news .cl-list {
    padding-left: 22px;
  }

  .page-news .cl-item::before {
    left: -30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .entry-card,
  .page-news .band-card,
  .page-news .series-item,
  .page-news .archive-row,
  .page-news .filter-row .chip {
    transition: none;
  }

  .page-news .band-scroller {
    scroll-behavior: auto;
  }
}
