.page-news {
  --news-cat: var(--purple);
  color: var(--silver);
  overflow-x: hidden;
}

.page-news .news-h2 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  color: var(--cream);
  margin: 10px 0 12px;
  letter-spacing: .01em;
}

.page-news .news-h3 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: var(--cream);
  margin: 0 0 8px;
}

.page-news a {
  color: var(--aurora);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 227, 210, .32);
}

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

.page-news .gp-btn {
  border-bottom: 0;
}

/* ---------- 首屏 ---------- */
.news-hero {
  position: relative;
  padding-top: 28px;
}

.news-hero__inner {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
}

.news-hero__title {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 34px;
  line-height: 1.12;
  color: var(--cream);
  margin: 12px 0 16px;
  letter-spacing: .005em;
}

.news-hero__lead {
  max-width: 36em;
}

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

.news-hero__aside {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.news-hero__stats {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}

.news-hero__stats .gp-stat {
  display: grid;
  gap: 4px;
}

.news-hero__stats .gp-stat__num {
  font-family: var(--f-mono);
  font-size: 24px;
  color: var(--cream);
}

.news-hero__stats .gp-stat__label {
  font-size: 13px;
  color: var(--rock);
  line-height: 1.5;
}

/* ---------- 区块头 ---------- */
.news-sechead {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 28px;
}

.news-sechead__media,
.news-compare__visual,
.news-compare__info,
.news-report__media {
  margin: 0;
}

/* ---------- 条目筛选 ---------- */
.news-filter {
  position: relative;
}

.news-filter__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.news-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--silver);
  cursor: pointer;
  background: transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.news-chip:hover {
  border-color: var(--aurora);
  color: var(--cream);
}

#nt-all:checked ~ .news-filter__chips .news-chip[for="nt-all"],
#nt-ann:checked ~ .news-filter__chips .news-chip[for="nt-ann"],
#nt-ops:checked ~ .news-filter__chips .news-chip[for="nt-ops"],
#nt-doc:checked ~ .news-filter__chips .news-chip[for="nt-doc"],
#nt-data:checked ~ .news-filter__chips .news-chip[for="nt-data"] {
  background: linear-gradient(120deg, var(--purple), var(--aurora));
  border-color: transparent;
  color: var(--deepnight);
}

#nt-ann:checked ~ .news-feed .news-item:not(.is-ann),
#nt-ops:checked ~ .news-feed .news-item:not(.is-ops),
#nt-doc:checked ~ .news-feed .news-item:not(.is-doc),
#nt-data:checked ~ .news-feed .news-item:not(.is-data) {
  display: none;
}

/* ---------- 条目列表 ---------- */
.news-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.news-item {
  --cat: var(--purple);
  position: relative;
  border-radius: var(--r-m);
  background: rgba(22, 33, 74, .55);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cat);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.news-item.is-doc { --cat: var(--aurora); }
.news-item.is-ops { --cat: var(--moss); }
.news-item.is-data { --cat: var(--clay); }

.news-item:hover,
.news-item:focus-within {
  background: rgba(22, 33, 74, .82);
  border-color: var(--line-strong);
  border-left-color: var(--cat);
}

.news-item > details {
  width: 100%;
}

.news-item__head {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.news-item__head::-webkit-details-marker {
  display: none;
}

.news-item__cat {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cat);
  border: 1px solid var(--cat);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  white-space: nowrap;
}

.news-item__time {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--rock);
  white-space: nowrap;
}

.news-item__title {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--cream);
}

.news-item__more-hint {
  grid-column: 1 / -1;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--rock);
}

.news-item[open] .news-item__more-hint {
  color: var(--aurora);
}

.news-item__body {
  padding: 0 18px 18px;
  border-top: 1px dashed var(--line);
  margin-top: 2px;
}

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

/* ---------- 两版对照 ---------- */
.news-compare__head {
  margin-bottom: 26px;
}

.news-compare__head .gp-lead {
  max-width: 40em;
}

.news-compare__split {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 28px;
}

.news-compare__side {
  border-radius: var(--r-l);
  padding: 22px 20px;
  border: 1px solid var(--line);
}

.news-compare__side--classic {
  background: linear-gradient(180deg, rgba(199, 210, 232, .08), rgba(6, 8, 26, 0));
  box-shadow: inset 0 1px 0 rgba(199, 210, 232, .18);
}

.news-compare__side--new {
  background: linear-gradient(180deg, rgba(124, 92, 255, .16), rgba(6, 8, 26, 0));
  border-color: rgba(124, 92, 255, .38);
}

.news-compare__badge {
  margin: 0 0 16px;
}

.news-cblock {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.news-cblock__item {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.news-cblock__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.news-cblock__name {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--cream);
  margin: 0 0 6px;
}

.news-compare__side--classic .news-cblock__name {
  color: var(--silver);
}

.news-cblock__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.news-keep {
  margin-top: 26px;
  border-radius: var(--r-l);
  border: 1px dashed var(--line-strong);
  padding: 20px;
  background: rgba(13, 20, 48, .5);
}

.news-keep__title {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--aurora);
  margin: 0 0 14px;
}

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

.news-keep__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
}

.news-keep__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 1px;
  background: var(--aurora);
  box-shadow: 0 0 8px var(--glow-cyan);
}

.news-compare__info {
  margin-top: 26px;
}

/* ---------- 更新节奏 ---------- */
.news-rhythm__head {
  margin-bottom: 26px;
}

.news-rhythm__head .gp-lead {
  max-width: 40em;
}

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

.news-rhythm__card {
  border-top: 3px solid var(--purple);
}

.news-rhythm__card--week { border-top-color: var(--moss); }
.news-rhythm__card--quarter { border-top-color: var(--aurora); }
.news-rhythm__card--year { border-top-color: var(--purple); }

.news-rhythm__card .gp-card__kicker {
  color: var(--cream);
}

.news-report {
  margin-top: 34px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, rgba(22, 33, 74, .9), rgba(13, 20, 48, .6));
  border: 1px solid var(--line);
  padding: 24px 20px;
}

.news-report__text p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  max-width: 40em;
}

.news-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.news-rank__row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
}

.news-rank__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--rock);
}

.news-rank__label {
  font-size: 14px;
  color: var(--silver);
}

.news-rank__track {
  grid-column: 2 / -1;
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(199, 210, 232, .1);
  overflow: hidden;
}

.news-rank__fill {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--purple), var(--aurora));
  box-shadow: 0 0 10px var(--glow);
}

.news-rank__fill--1 { width: 100%; }
.news-rank__fill--2 { width: 88%; }
.news-rank__fill--3 { width: 74%; }
.news-rank__fill--4 { width: 62%; }
.news-rank__fill--5 { width: 50%; }

/* ---------- 版本时间轴 ---------- */
.news-history__head {
  margin-bottom: 30px;
}

.news-history__head .gp-lead {
  max-width: 40em;
}

.news-timeline {
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 26px;
  position: relative;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--aurora), var(--purple), rgba(124, 92, 255, 0));
}

.news-timeline__node {
  position: relative;
  padding: 0 0 26px;
  border-radius: var(--r-m);
  outline-offset: 6px;
}

.news-timeline__node:last-child {
  padding-bottom: 0;
}

.news-timeline__node::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--void);
  border: 1px solid var(--line-strong);
  transition: background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.news-timeline__node:hover::before,
.news-timeline__node:focus::before,
.news-timeline__node:focus-within::before {
  background: var(--aurora);
  border-color: var(--aurora);
  box-shadow: 0 0 12px var(--glow-cyan);
}

.news-timeline__year {
  display: block;
  font-family: var(--f-mono);
  font-size: 18px;
  letter-spacing: .06em;
  color: var(--cream);
  margin-bottom: 6px;
}

.news-timeline__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  max-width: 40em;
}

.news-timeline__tip {
  margin: 8px 0 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--rock);
  transition: color var(--t-fast);
}

.news-timeline__node:hover .news-timeline__tip,
.news-timeline__node:focus .news-timeline__tip,
.news-timeline__node:focus-within .news-timeline__tip {
  color: var(--aurora);
}

/* ---------- 反馈通道 ---------- */
.news-touch {
  border-top: 1px solid var(--line);
}

.news-touch__head {
  margin-bottom: 26px;
}

.news-touch__head .gp-lead {
  max-width: 40em;
}

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

.news-touch__card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.news-touch__card .gp-card__text {
  margin: 0;
}

.news-touch__card .gp-card__foot {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--rock);
  letter-spacing: .03em;
}

.news-touch__note {
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rock);
  max-width: 44em;
}

/* ---------- 响应式 ---------- */
@media (min-width: 680px) {
  .news-hero__title { font-size: 44px; }
  .page-news .news-h2 { font-size: 32px; }
  .news-hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .news-item__head { grid-template-columns: 110px 76px minmax(0, 1fr) auto; }
  .news-item__title { grid-column: auto; }
  .news-item__more-hint { grid-column: auto; justify-self: end; }
  .news-report { padding: 30px 28px; }
  .news-rank__row { grid-template-columns: 30px minmax(140px, 220px) minmax(0, 1fr); }
  .news-rank__track { grid-column: auto; }
}

@media (min-width: 900px) {
  .news-hero__inner {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
    align-items: end;
    gap: 44px;
  }
  .news-hero__aside {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 6px 0 6px 26px;
  }
  .news-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-sechead { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); align-items: center; }

  .news-compare__split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    position: relative;
  }
  .news-compare__split::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: linear-gradient(180deg, rgba(199, 210, 232, 0), var(--glow-cyan), var(--glow), rgba(199, 210, 232, 0));
  }
  .news-compare__side--classic { padding-right: 32px; }
  .news-compare__side--new { padding-left: 32px; }

  .news-report { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 32px; }

  .news-timeline { padding-left: 0; }
  .news-timeline::before { left: 92px; }
  .news-timeline__node {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0 34px;
    padding-bottom: 34px;
  }
  .news-timeline__node::before { left: 86px; top: 8px; }
  .news-timeline__year { text-align: right; margin-bottom: 0; }
  .news-timeline__body { grid-column: 2; }
}

@media (min-width: 1120px) {
  .news-hero__title { font-size: 56px; }
  .page-news .news-h2 { font-size: 40px; }
  .news-feed { gap: 14px; }
  .news-item__head { padding: 20px 24px; }
  .news-item__body { padding: 0 24px 22px; }
  .news-compare__side { padding: 28px 26px; }
  .news-keep { padding: 26px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-chip,
  .page-news .news-item,
  .page-news .news-timeline__node::before,
  .page-news .news-timeline__tip {
    transition: none;
  }
}
</main>
