.page-news {
  --news-panel: rgba(11, 20, 48, 0.72);
  --news-hair: 1px solid var(--c-line);
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--font-sans);
  line-height: 1.8;
}

.page-news img {
  max-width: 100%;
  height: auto;
}

.page-news .section {
  padding: 48px 0;
}

.page-news .section__lead {
  max-width: 62ch;
}

/* ---------- 首屏 ---------- */
.news-hero {
  position: relative;
  padding: 32px 0 44px;
  border-bottom: var(--news-hair);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(255, 61, 166, 0.16), transparent 58%),
    radial-gradient(90% 80% at 2% 8%, rgba(22, 224, 210, 0.18), transparent 60%),
    var(--c-base);
  overflow: hidden;
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(232, 241, 255, 0.035) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

.news-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.news-hero__kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-cyan);
  text-transform: uppercase;
}

.news-hero__title {
  margin: 14px 0 18px;
  font-size: 40px;
  font-weight: 200;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.news-hero__title strong {
  display: inline-block;
  font-weight: 900;
  color: var(--c-cyan);
  text-shadow: var(--glow-cyan);
}

.news-hero__text {
  margin: 0 0 26px;
  max-width: 46ch;
  font-size: 16px;
  color: var(--c-text);
}

.news-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin: 0;
  padding-top: 22px;
  border-top: var(--news-hair);
}

.news-hero__stat dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-muted);
  text-transform: uppercase;
}

.news-hero__stat dd {
  margin: 6px 0 0;
  font-size: 20px;
  color: var(--c-text);
}

.news-hero__stat-num {
  color: var(--c-cyan);
}

.news-hero__toc {
  padding: 20px;
  background: var(--news-panel);
  border: var(--news-hair);
}

.news-hero__toc-title {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-muted);
  text-transform: uppercase;
}

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

.news-hero__toc-list li + li {
  border-top: var(--news-hair);
}

.news-hero__toc-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 10px 11px 0;
  color: var(--c-text);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.news-hero__toc-list a:hover,
.news-hero__toc-list a:focus-visible {
  background: linear-gradient(90deg, rgba(22, 224, 210, 0.14), transparent 78%);
  padding-left: 10px;
}

.news-hero__toc-list span {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
}

/* ---------- 版本日志流 ---------- */
.news-log__figure {
  margin: 26px 0 34px;
}

.news-log__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--news-hair);
}

.news-log__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 0 18px 14px;
  border-bottom: var(--news-hair);
  transition: background 0.2s var(--ease);
}

.news-log__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--c-cyan), var(--c-magenta));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.22s var(--ease);
}

.news-log__row:hover {
  background: linear-gradient(90deg, rgba(22, 224, 210, 0.09), transparent 72%);
}

.news-log__row:hover::before,
.news-log__row:focus-within::before {
  transform: scaleY(1);
}

.news-log__ver {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
}

.news-log__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.news-log__desc {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-muted);
  transition: color 0.2s var(--ease);
}

.news-log__row:hover .news-log__desc {
  color: var(--c-text);
}

.news-log__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
}

/* ---------- 时间轴 ---------- */
.news-timeline__figure {
  margin: 0 0 34px;
}

.news-timeline__track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 18px;
}

.tl-node {
  position: relative;
  padding: 30px 0 6px;
  border: 0;
}

.tl-node::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-line);
}

.tl-node::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--c-cyan);
  box-shadow: var(--glow-cyan);
}

.tl-node--sealed::after {
  background: transparent;
  border: 1px dashed var(--c-muted);
  box-shadow: none;
}

.tl-node__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  cursor: pointer;
  list-style: none;
}

.tl-node__head::-webkit-details-marker {
  display: none;
}

.tl-node__week {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-muted);
}

.tl-node__count {
  font-size: 15px;
  color: var(--c-text);
}

.tl-node[open] .tl-node__count {
  color: var(--c-magenta);
  text-shadow: var(--glow-magenta);
}

.tl-node__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--news-hair);
}

.tl-node__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--c-muted);
  border-bottom: var(--news-hair);
}

/* ---------- 资料簇 ---------- */
.news-clusters__layout {
  display: grid;
  gap: 28px;
}

.news-clusters__figure {
  margin: 0;
}

.news-clusters__tabs .tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: var(--news-hair);
}

.page-news .news-clusters__tabs .tabs__btn {
  padding: 8px 14px;
  background: var(--news-panel);
  border: var(--news-hair);
  color: var(--c-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-news .news-clusters__tabs .tabs__btn:hover {
  color: var(--c-text);
  border-color: var(--c-cyan);
}

.page-news .news-clusters__tabs .tabs__btn[aria-selected="true"] {
  color: var(--c-base);
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  box-shadow: var(--glow-cyan);
}

.news-clusters__tabs .tabs__panel {
  padding-top: 22px;
}

.news-cluster__name {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 300;
}

.news-cluster__intro {
  margin: 0 0 18px;
  max-width: 48ch;
  font-size: 15px;
  color: var(--c-muted);
}

.news-cluster__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--news-hair);
}

.news-cluster__list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: var(--news-hair);
  font-size: 15px;
}

.news-cluster__no {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}

/* ---------- 专题系列 ---------- */
.news-series__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.series-card {
  display: flex;
  flex-direction: column;
  background: var(--c-layer);
  border: var(--news-hair);
}

.series-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(22, 224, 210, 0.9), rgba(11, 20, 48, 0.25) 58%, rgba(255, 61, 166, 0.72));
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
}

.series-card:nth-child(2) .series-card__cover {
  background: linear-gradient(135deg, rgba(108, 123, 255, 0.9), rgba(11, 20, 48, 0.25) 58%, rgba(22, 224, 210, 0.7));
}

.series-card:nth-child(3) .series-card__cover {
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.82), rgba(11, 20, 48, 0.25) 58%, rgba(255, 61, 166, 0.68));
}

.series-card:nth-child(4) .series-card__cover {
  background: linear-gradient(135deg, rgba(255, 61, 166, 0.85), rgba(11, 20, 48, 0.25) 58%, rgba(108, 123, 255, 0.7));
}

.series-card__badge {
  position: absolute;
  right: 12px;
  bottom: 18px;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-text);
  background: rgba(5, 10, 26, 0.82);
  border: 1px solid rgba(232, 241, 255, 0.28);
}

.series-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  flex: 1;
}

.series-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.series-card__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  color: var(--c-muted);
}

.news-series__figure {
  margin: 34px 0 0;
}

/* ---------- 标签与归档 ---------- */
.news-archive__controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.news-archive__search {
  width: 100%;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--c-text);
  background: var(--news-panel);
  border: var(--news-hair);
  outline: none;
}

.news-archive__search:focus-visible {
  border-color: var(--c-cyan);
  box-shadow: var(--glow-cyan);
}

.news-archive__search::placeholder {
  color: var(--c-muted);
}

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

.news-archive__tagbtn {
  padding: 7px 13px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-muted);
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.news-archive__tagbtn:hover {
  color: var(--c-text);
  border-color: var(--c-cyan);
}

.news-archive__tagbtn.is-active {
  color: var(--c-base);
  background: var(--c-cyan);
  border-color: var(--c-cyan);
}

.news-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 6px;
}

.page-news [data-filter-item][hidden] {
  display: none;
}

.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--c-layer);
  border: var(--news-hair);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.archive-card:hover {
  border-color: rgba(22, 224, 210, 0.45);
  transform: translateY(-3px);
}

.archive-card .card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.archive-card .card__meta {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-muted);
}

.archive-card .card__body {
  flex: 1;
  padding-top: 10px;
  font-size: 14px;
  color: var(--c-muted);
}

.archive-card .card__body p {
  margin: 0;
}

/* ---------- 跟上更新 ---------- */
.news-follow__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.follow-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  background:
    linear-gradient(160deg, rgba(22, 224, 210, 0.1), transparent 62%),
    var(--c-layer);
  border: var(--news-hair);
}

.follow-card__no {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-amber);
}

.follow-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.follow-card__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  color: var(--c-muted);
}

.follow-card .btn {
  align-self: flex-start;
}

.news-follow__note {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  padding: 20px;
  background: var(--c-footer);
  border-left: 2px solid var(--c-purple);
}

.news-follow__note-text {
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
}

.news-follow__note-link {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 224, 210, 0.4);
}

.news-follow__note-link:hover,
.news-follow__note-link:focus-visible {
  border-bottom-color: var(--c-cyan);
}

/* ---------- 断点 ---------- */
@media (min-width: 768px) {
  .page-news .section {
    padding: 60px 0;
  }

  .news-hero {
    padding: 44px 0 56px;
  }

  .news-hero__title {
    font-size: 56px;
  }

  .news-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .news-log__row {
    grid-template-columns: 108px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 22px;
    padding: 20px 0 20px 16px;
  }

  .news-log__tags {
    max-width: 190px;
    justify-content: flex-end;
  }

  .news-archive__controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .news-archive__search {
    width: 320px;
  }

  .news-archive__grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

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

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

  .news-follow__note {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .page-news .section {
    padding: 72px 0;
  }

  .news-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 40px;
    align-items: start;
  }

  .news-hero__title {
    font-size: 68px;
  }

  .news-clusters__layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
    gap: 36px;
  }

  .news-series__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .news-archive__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 26px;
  }

  .archive-card:nth-child(even) {
    transform: translateY(20px);
  }

  .archive-card:nth-child(even):hover {
    transform: translateY(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-log__row,
  .news-log__row::before,
  .archive-card,
  .news-hero__toc-list a {
    transition-duration: 0.01ms;
  }

  .archive-card:nth-child(even),
  .archive-card:nth-child(even):hover {
    transform: none;
  }
}
