.page-news {
  background-color: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

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

.page-news .breadcrumb {
  margin: 18px 0 0;
}

.page-news #latest,
.page-news #timeline,
.page-news #series,
.page-news #subscribe {
  scroll-margin-top: 96px;
}

/* ===== 首屏：动态目录与主题声明 ===== */
.page-news .news-hero {
  padding: 48px 0 60px;
}

.page-news .news-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.page-news .news-hero .section-index {
  color: var(--orange);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-news .news-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.page-news .news-hero__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  max-width: 46em;
  margin: 0 0 28px;
}

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

.page-news .news-hero__aside {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line-light);
  padding-top: 28px;
}

.page-news .news-hero__aside .stat {
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 14px;
  border-radius: 12px;
}

.page-news .news-hero__aside .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1.2;
  color: var(--white);
}

.page-news .news-hero__aside .stat__num--accent {
  color: var(--orange);
}

.page-news .news-hero__aside .stat__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 最新动态 ===== */
.page-news .section--latest {
  background-color: var(--white);
  padding: 64px 0;
}

.page-news .latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-news .latest-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--mist-dim);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-news .latest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(8, 26, 51, 0.12);
}

.page-news .latest-card__media {
  border-radius: var(--cut) var(--cut) 0 0;
  overflow: hidden;
}

.page-news .latest-card__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .latest-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-news .latest-card__labels {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.page-news .latest-card__labels .mono {
  color: var(--slate);
}

.page-news .latest-card h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--deep-2);
}

.page-news .latest-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
  margin: 0 0 20px;
}

.page-news .latest-card .card__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== 分类标签 ===== */
.page-news .news-tag {
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  display: inline-block;
}

.page-news .news-tag--new {
  background: var(--moss);
  color: var(--white);
}

.page-news .news-tag--opt {
  background: var(--orange);
  color: var(--deep-2);
}

.page-news .news-tag--perf {
  background: var(--deep);
  color: var(--white);
}

.page-news .news-tag--safe {
  background: var(--terra);
  color: var(--white);
}

.page-news .news-tag--fix {
  background: var(--slate);
  color: var(--white);
}

/* ===== 版本时间线 ===== */
.page-news .section--timeline {
  background-color: var(--deep-2);
  padding: 64px 0 80px;
  color: var(--white);
}

.page-news .section-head--light .section-title {
  color: var(--white);
}

.page-news .section-head--light .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.page-news .timeline-media {
  margin: 0 0 36px;
  border-radius: var(--cut);
  overflow: hidden;
}

.page-news .timeline-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .timeline-filter__label,
.page-news .timeline-filter__btn {
  display: inline-block;
  margin: 0 8px 10px 0;
  font-size: 14px;
}

.page-news .timeline-filter__label {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 14px;
}

.page-news .timeline-filter__btn {
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background var(--transition), border var(--transition), color var(--transition);
}

.page-news .timeline-filter__btn:hover {
  border-color: var(--orange);
  color: var(--white);
}

.page-news .timeline-filter__input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.page-news .timeline-filter__input:checked + .timeline-filter__btn {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--deep-2);
  font-weight: 700;
}

.page-news .timeline-filter__input:focus-visible + .timeline-filter__btn {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.page-news .timeline {
  position: relative;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 16px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), rgba(255, 255, 255, 0.18) 60%, transparent);
  border-radius: 2px;
}

.page-news .timeline__item {
  position: relative;
  padding: 30px 0 30px 56px;
  display: block;
}

.page-news .timeline__item:first-child {
  padding-top: 18px;
}

.page-news .timeline__node {
  position: absolute;
  left: 24px;
  top: 38px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--deep-2);
  border: 1px solid var(--orange);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(8, 26, 51, 0.45);
  cursor: default;
  transition: box-shadow var(--transition), transform var(--transition);
}

.page-news .timeline__node:hover,
.page-news .timeline__node:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 127, 0, 0.28);
  transform: translateX(-50%) scale(1.05);
}

.page-news .timeline__hint {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--orange);
  color: var(--deep-2);
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.page-news .timeline__node:hover .timeline__hint,
.page-news .timeline__node:focus-visible .timeline__hint {
  opacity: 1;
  visibility: visible;
}

.page-news .timeline__card {
  background: var(--white);
  border-radius: var(--cut);
  padding: 24px;
  box-shadow: 0 14px 32px rgba(8, 26, 51, 0.14);
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-news .timeline__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(8, 26, 51, 0.22);
}

.page-news .timeline__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--slate);
}

.page-news .timeline__card h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--deep-2);
}

.page-news .timeline__card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
  margin: 0;
}

.page-news .timeline__card a {
  color: var(--deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 专题系列 ===== */
.page-news .section--series {
  background-color: var(--mist);
  padding: 64px 0;
}

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

.page-news .series-card {
  background: var(--deep);
  color: var(--white);
  border-radius: var(--cut);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-news .series-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(8, 26, 51, 0.2);
}

.page-news .series-card__media {
  width: 100%;
  min-height: 180px;
  position: relative;
}

.page-news .series-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .series-card__media--bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 28px;
  background: var(--mist-dim);
}

.page-news .series-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-news .series-card__num {
  color: var(--orange);
  font-size: 14px;
  margin-bottom: 10px;
}

.page-news .series-card h3 {
  color: var(--white);
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.page-news .series-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 22px;
}

.page-news .series-bar {
  display: block;
  border-radius: 4px 4px 0 0;
  flex: 1;
}

.page-news .series-bar--orange {
  background: var(--orange);
  height: 100%;
}

.page-news .series-bar--deep {
  background: var(--deep);
  height: 64%;
}

.page-news .series-bar--moss {
  background: var(--moss);
  height: 80%;
}

/* ===== 订阅与关注 ===== */
.page-news .section--subscribe {
  background-color: var(--white);
  padding: 64px 0 80px;
}

.page-news .subscribe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-news .subscribe-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--mist-dim);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-news .subscribe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(8, 26, 51, 0.12);
}

.page-news .subscribe-card__media {
  width: 100%;
  overflow: hidden;
  border-radius: var(--cut) var(--cut) 0 0;
}

.page-news .subscribe-card__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .subscribe-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news .subscribe-card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--deep-2);
}

.page-news .subscribe-card p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  margin: 0 0 14px;
}

.page-news .subscribe-card a {
  color: var(--deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-news .subscribe-card__note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--moss);
}

.page-news .subscribe-card__body--links {
  gap: 0;
}

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

.page-news .subscribe-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--mist-dim);
  font-size: 15px;
  color: var(--slate);
}

.page-news .subscribe-list li:last-child {
  border-bottom: 0;
}

.page-news .subscribe-list__mark {
  color: var(--orange);
  font-weight: 700;
}

/* ===== 分类筛选 ===== */
.page-news #tl-new:checked ~ .timeline .timeline__item[data-type="new"],
.page-news #tl-opt:checked ~ .timeline .timeline__item[data-type="opt"],
.page-news #tl-perf:checked ~ .timeline .timeline__item[data-type="perf"],
.page-news #tl-safe:checked ~ .timeline .timeline__item[data-type="safe"],
.page-news #tl-fix:checked ~ .timeline .timeline__item[data-type="fix"] {
  display: block;
}

.page-news #tl-new:checked ~ .timeline .timeline__item:not([data-type="new"]),
.page-news #tl-opt:checked ~ .timeline .timeline__item:not([data-type="opt"]),
.page-news #tl-perf:checked ~ .timeline .timeline__item:not([data-type="perf"]),
.page-news #tl-safe:checked ~ .timeline .timeline__item:not([data-type="safe"]),
.page-news #tl-fix:checked ~ .timeline .timeline__item:not([data-type="fix"]) {
  display: none;
}

/* ===== 桌面端 ===== */
@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 72px 0 84px;
  }

  .page-news .news-hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 56px;
  }

  .page-news .news-hero__aside .stat {
    padding: 20px 18px;
  }

  .page-news .news-hero__aside .stat__num {
    font-size: 30px;
  }

  .page-news .timeline-media {
    margin-bottom: 44px;
  }

  .page-news .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .page-news .timeline__item {
    padding: 36px 0;
  }

  .page-news .timeline__node {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .page-news .timeline__node:hover,
  .page-news .timeline__node:focus-visible {
    transform: translate(-50%, -50%) scale(1.05);
  }

  .page-news .timeline__card {
    width: 46%;
  }

  .page-news .timeline__item:nth-child(odd) .timeline__card {
    margin-left: 54%;
  }

  .page-news .timeline__item:nth-child(even) .timeline__card {
    margin-left: 0;
    text-align: right;
  }

  .page-news .timeline__item:nth-child(even) .timeline__meta {
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  .page-news .latest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-news .latest-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
  }

  .page-news .latest-card--wide .latest-card__media {
    border-radius: var(--cut) 0 0 var(--cut);
    height: 100%;
  }

  .page-news .latest-card--wide .latest-card__media img {
    height: 100%;
    object-fit: cover;
  }

  .page-news .series-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-news .series-card:nth-child(even) {
    transform: translateY(48px);
  }

  .page-news .subscribe-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .page-news .subscribe-card--media {
    flex-direction: row;
  }

  .page-news .subscribe-card--media .subscribe-card__media {
    width: 40%;
    border-radius: var(--cut) 0 0 var(--cut);
  }

  .page-news .subscribe-card--media .subscribe-card__media img {
    height: 100%;
    object-fit: cover;
  }

  .page-news .subscribe-card--media .subscribe-card__body {
    width: 60%;
    padding: 32px;
  }
}

@media (min-width: 1200px) {
  .page-news .section--latest,
  .page-news .section--series {
    padding: 88px 0;
  }

  .page-news .section--timeline {
    padding: 88px 0 96px;
  }

  .page-news .section--subscribe {
    padding: 88px 0 104px;
  }
}
