.page-news {
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip;
}

.page-news__crumb {
  padding-top: 18px;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 48px;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: -16%;
  right: -14%;
  width: min(720px, 92vw);
  height: min(560px, 78vw);
  background:
    repeating-linear-gradient(115deg, rgba(25, 195, 216, .15) 0 2px, transparent 2px 24px),
    linear-gradient(142deg, rgba(14, 107, 168, .62), rgba(31, 191, 143, .22) 56%, rgba(244, 185, 66, .12) 100%);
  transform: rotate(-8deg);
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 62% 100%, 0 74%, 0 26%);
  pointer-events: none;
}

.page-news .news-hero__grid {
  position: relative;
  display: grid;
  gap: 30px;
  align-items: end;
}

.page-news .news-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6.6vw, 52px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.04em;
  margin: 12px 0 16px;
  max-width: 16ch;
}

.page-news .news-hero .lead {
  max-width: 60ch;
  margin: 0;
}

.page-news .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 26px;
  border: 2px solid var(--line-strong);
  background: var(--line-strong);
}

.page-news .hero-stats div {
  background: rgba(3, 18, 28, .88);
  padding: 13px 11px 12px;
}

.page-news .hero-stats b {
  display: block;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  line-height: 1.2;
}

.page-news .hero-stats span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
}

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

/* ---------- 文章流 ---------- */
.page-news .news-stream {
  padding: 52px 0 10px;
  border-top: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 107, 168, .16), transparent 260px);
}

.page-news .news-stream__grid {
  display: grid;
  gap: 26px;
}

.page-news .news-rail {
  position: relative;
  border: 2px solid var(--line-strong);
  background: rgba(3, 18, 28, .74);
  padding: 18px 16px 16px;
}

.page-news .news-rail h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 12px;
}

.page-news .rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-news .rail-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 8px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--paper);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.page-news .rail-list a:hover,
.page-news .rail-list a:focus-visible {
  border-left-color: var(--cyan);
  background: rgba(25, 195, 216, .1);
}

.page-news .rail-list em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-news .rail-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-news .rail-note a {
  color: var(--cyan);
}

/* 筛选命令栏 */
.page-news .filter-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 2px solid var(--line-strong);
  background: rgba(10, 36, 54, .82);
}

.page-news .filter-bar__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--mist);
  padding: 0 6px 0 2px;
}

.page-news .filter-bar input,
.page-news .verbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-news .filter-bar label {
  cursor: pointer;
  padding: 7px 12px;
  font-size: 13.5px;
  line-height: 1.2;
  color: var(--paper);
  border: 1.5px solid var(--line-strong);
  background: transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.page-news .filter-bar label:hover {
  border-color: var(--cyan);
}

.page-news .filter-bar input:checked + label {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink-deep);
  font-weight: 700;
}

.page-news .filter-bar input:focus-visible + label {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-news #filter-version:checked ~ .story-list .story-card:not([data-cat="version"]),
.page-news #filter-panel:checked ~ .story-list .story-card:not([data-cat="panel"]),
.page-news #filter-device:checked ~ .story-list .story-card:not([data-cat="device"]),
.page-news #filter-category:checked ~ .story-list .story-card:not([data-cat="category"]) {
  display: none;
}

/* 文章卡片 */
.page-news .story-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-news .story-card {
  position: relative;
  padding: 16px 18px 16px 20px;
  border: 2px solid var(--line);
  border-left: 4px solid var(--blue);
  background: rgba(10, 36, 54, .68);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.page-news .story-card:hover {
  transform: translateX(3px);
  border-color: var(--line-strong);
  border-left-color: var(--cyan);
  box-shadow: -6px 6px 0 rgba(3, 18, 28, .55);
}

.page-news .story-card[data-cat="panel"] { border-left-color: var(--gold); }
.page-news .story-card[data-cat="device"] { border-left-color: var(--green); }
.page-news .story-card[data-cat="category"] { border-left-color: var(--cyan); }
.page-news .story-card[data-cat="version"] { border-left-color: var(--violet); }

.page-news .story-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.page-news .story-card__time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--mist);
}

.page-news .story-card h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}

.page-news .story-card > p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(243, 247, 244, .84);
}

.page-news .story-card details {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.page-news .story-card summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
}

.page-news .story-card summary::-webkit-details-marker {
  display: none;
}

.page-news .story-card summary::after {
  content: " ＋";
}

.page-news .story-card details[open] summary::after {
  content: " －";
}

.page-news .story-card summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-news .story-card details p {
  margin: 9px 0 0;
  font-size: 13.8px;
  line-height: 1.75;
  color: rgba(243, 247, 244, .78);
}

.page-news .story-card details a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 185, 66, .5);
}

.page-news .story-card details a:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ---------- 旧版面板专题 ---------- */
.page-news .panel-topic {
  padding: 54px 0;
  background: linear-gradient(180deg, transparent, rgba(91, 108, 255, .12) 38%, transparent);
}

.page-news .panel-topic h2,
.page-news .device-timeline h2,
.page-news .cadence h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -.03em;
  margin: 10px 0 20px;
  max-width: 22ch;
}

.page-news .panel-topic__figure {
  margin: 0 0 20px;
}

.page-news .board-grid {
  display: grid;
  gap: 14px;
}

.page-news .board-grid .panel {
  padding: 16px 16px 18px;
}

.page-news .board-grid h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
  margin: 0 0 10px;
}

.page-news .board-grid p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(243, 247, 244, .86);
}

.page-news .board-grid a {
  color: var(--cyan);
}

.page-news .board-grid ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.page-news .board-grid li {
  font-size: 13.8px;
  line-height: 1.68;
  color: rgba(243, 247, 244, .86);
}

.page-news .board-grid li b {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold);
  margin-right: 4px;
}

/* 版本切换 */
.page-news .verbox {
  position: relative;
  margin-top: 20px;
  padding: 16px;
  border: 2px solid var(--line-strong);
  background: rgba(3, 18, 28, .76);
}

.page-news .verbox__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.page-news .verbox__tabs label {
  cursor: pointer;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--mist);
  border: 1.5px solid var(--line-strong);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.page-news .verbox__tabs label:hover {
  border-color: var(--violet);
  color: var(--paper);
}

.page-news .verbox:has(#ver-a:checked) label[for="ver-a"],
.page-news .verbox:has(#ver-b:checked) label[for="ver-b"],
.page-news .verbox:has(#ver-c:checked) label[for="ver-c"] {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--paper);
  font-weight: 700;
}

.page-news .verbox__panel {
  display: block;
}

.page-news #ver-a:checked ~ .verbox__panels .verbox__panel:not([data-ver="a"]),
.page-news #ver-b:checked ~ .verbox__panels .verbox__panel:not([data-ver="b"]),
.page-news #ver-c:checked ~ .verbox__panels .verbox__panel:not([data-ver="c"]) {
  display: none;
}

.page-news .verbox__panel p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(243, 247, 244, .88);
}

.page-news .verbox__panel strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .04em;
  margin-right: 8px;
}

/* ---------- 换设备时间轴 ---------- */
.page-news .device-timeline {
  padding: 54px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(3, 18, 28, .58);
}

.page-news .device-timeline__lead {
  margin: 0 0 20px;
  max-width: 62ch;
}

.page-news .device-timeline__figure {
  margin: 0 0 24px;
}

.page-news .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-news .timeline li {
  position: relative;
  padding: 20px 16px 18px;
  border: 2px solid var(--line);
  border-left: 4px solid var(--green);
  background: rgba(10, 36, 54, .74);
}

.page-news .timeline__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--green);
  margin-bottom: 6px;
}

.page-news .timeline h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
}

.page-news .timeline p {
  margin: 0 0 8px;
  font-size: 14.2px;
  line-height: 1.72;
  color: rgba(243, 247, 244, .84);
}

.page-news .timeline__hint {
  font-family: var(--font-mono);
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: var(--mist) !important;
}

.page-news .device-timeline__foot {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(244, 185, 66, .08);
  font-size: 13.8px;
  line-height: 1.75;
  color: rgba(243, 247, 244, .86);
}

/* ---------- 节奏与建议 ---------- */
.page-news .cadence {
  padding: 54px 0 64px;
}

.page-news .cadence__grid {
  display: grid;
  gap: 26px;
}

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

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

.page-news .rhythm li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 2px solid var(--line);
  background: rgba(10, 36, 54, .62);
}

.page-news .rhythm b {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--gold);
  padding-top: 2px;
}

.page-news .rhythm p {
  margin: 0;
  font-size: 14.2px;
  line-height: 1.72;
  color: rgba(243, 247, 244, .86);
}

.page-news .cadence__cta {
  margin-top: 18px;
  padding: 18px;
  border: 2px solid var(--gold);
  background: rgba(244, 185, 66, .08);
  box-shadow: var(--shadow);
}

.page-news .cadence__cta h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px;
}

.page-news .cadence__cta p {
  margin: 0 0 14px;
  font-size: 14.2px;
  line-height: 1.75;
  color: rgba(243, 247, 244, .88);
}

.page-news .cadence__cta p:last-child {
  margin-bottom: 0;
}

.page-news .cadence__cta .btn {
  margin: 0 8px 8px 0;
}

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

@media (min-width: 880px) {
  .page-news .news-hero {
    padding: 28px 0 62px;
  }

  .page-news .news-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: 40px;
  }

  .page-news .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 3px solid rgba(31, 191, 143, .45);
    padding-top: 22px;
  }

  .page-news .timeline li {
    border-left-width: 2px;
    border-right-width: 1px;
    padding: 18px 18px 20px;
  }

  .page-news .timeline li:last-child {
    border-right-width: 2px;
  }

  .page-news .timeline li::before {
    content: "";
    position: absolute;
    top: -31px;
    left: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--ink);
    box-shadow: 0 0 0 2px var(--green);
  }

  .page-news .cadence__grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 34px;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-news .news-stream {
    padding-top: 62px;
  }

  .page-news .news-stream__grid {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
  }

  .page-news .news-rail {
    position: sticky;
    top: 96px;
  }
}

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

  .page-news .board-grid .panel {
    padding: 18px 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .story-card,
  .page-news .rail-list a,
  .page-news .filter-bar label,
  .page-news .verbox__tabs label {
    transition: none;
  }

  .page-news .story-card:hover {
    transform: none;
  }
}
