.page-news {
  background: var(--mist-50);
  color: var(--graphite-700);
  overflow-x: hidden;
}

/* ---------- 页首 ---------- */
.page-news .news-head {
  padding-top: 20px;
  padding-bottom: 38px;
}
.page-news .news-head .crumb {
  margin-bottom: 28px;
}
.page-news .news-head__title {
  margin: 14px 0 18px;
  font-size: clamp(1.95rem, 4.9vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--ink-900);
  max-width: 17ch;
}
.page-news .news-head__lede {
  margin: 0;
  max-width: 64ch;
  color: var(--graphite-700);
}

/* 页码与版本号的等宽质感 */
.page-news .mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- 本期专题 ---------- */
.page-news .news-feature__grid {
  gap: 34px;
  align-items: center;
  margin-top: 30px;
}
.page-news .news-feature__text .prose {
  margin-top: 0;
}
.page-news .news-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.page-news .news-points li {
  position: relative;
  margin: 0;
  padding: 14px 0 0 26px;
  border-top: 1px solid var(--line-300);
  font-size: 0.97rem;
  line-height: 1.72;
}
.page-news .news-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 10px;
  background: var(--action-500);
}
.page-news .news-points b {
  color: var(--ink-900);
  font-weight: 700;
}
.page-news .news-feature__actions {
  margin-top: 28px;
}
.page-news .news-feature__plate {
  margin: 0;
}

/* ---------- 通用小节抬头 ---------- */
.page-news .news-intro {
  margin-top: 26px;
  max-width: 70ch;
}

/* 图版间距 */
.page-news .news-plate {
  margin: 34px 0 38px;
}
.page-news .news-plate--tips {
  margin: 32px 0 30px;
  max-width: 760px;
}

/* ---------- 版本迭代记录：左侧刻度时间线 ---------- */
.page-news .release-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--line-300);
}
.page-news .release {
  position: relative;
  margin: 0;
  padding: 0 0 30px 0;
}
.page-news .release:last-child {
  padding-bottom: 0;
}
.page-news .release::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--action-500);
  transition: background var(--dur) var(--ease);
}
.page-news .release:hover::before,
.page-news .release:focus-within::before {
  background: var(--teal-600);
}
.page-news .release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.page-news .release__ver {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--teal-800);
}
.page-news .release__when {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--graphite-700);
  opacity: 0.75;
}
.page-news .release__title {
  margin: 0 0 6px;
  font-size: 1.16rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink-900);
}
.page-news .release__desc {
  margin: 0 0 8px;
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 68ch;
}
.page-news .release__scope {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--teal-800);
}
.page-news .release__detail {
  overflow: hidden;
  border-left: 3px solid var(--action-100);
  padding-left: 14px;
  margin-top: 0;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--graphite-700);
}
.page-news .release__detail p {
  margin: 0;
}

/* 悬停 / 聚焦时展开补充说明，仅限支持悬停的设备 */
@media (hover: hover) and (min-width: 900px) {
  .page-news .release__detail {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease),
      margin-top var(--dur) var(--ease);
  }
  .page-news .release:hover .release__detail,
  .page-news .release:focus-within .release__detail {
    max-height: 9em;
    opacity: 1;
    margin-top: 12px;
  }
}

/* ---------- 资料库上新 ---------- */
.page-news .news-lib {
  gap: 34px;
  margin-top: 30px;
  align-items: start;
}
.page-news .news-lib__plate {
  margin: 0;
}
.page-news .news-lib__body .prose {
  margin-top: 0;
}
.page-news .lib-groups {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-300);
}
.page-news .lib-group {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-300);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.page-news .lib-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.page-news .lib-group__name {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink-900);
}
.page-news .lib-group__tag {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--teal-800);
  background: var(--teal-100);
  padding: 3px 9px;
  border-radius: var(--radius);
}
.page-news .lib-group__desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
}
@media (hover: hover) {
  .page-news .lib-group:hover {
    background: var(--mist-50);
    padding-left: 14px;
  }
}

/* ---------- 文本链接 ---------- */
.page-news .news-more {
  margin: 24px 0 0;
}
.page-news .news-link {
  color: var(--teal-800);
  text-decoration: none;
  border-bottom: 1px solid var(--teal-600);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.page-news .news-link:hover,
.page-news .news-link:focus-visible {
  color: var(--action-600);
  border-bottom-color: var(--action-500);
}

/* ---------- 使用技巧：纯 CSS 标签筛选 ---------- */
.page-news .tip-filter {
  position: relative;
}
.page-news .filter-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}
.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.page-news .filter-label {
  display: inline-block;
  padding: 8px 15px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--graphite-700);
  background: var(--white);
  border: 1px solid var(--line-300);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.page-news .filter-label:hover {
  border-color: var(--teal-600);
  color: var(--teal-800);
}

.page-news #f-all:checked ~ .filter-bar [for="f-all"],
.page-news #f-entry:checked ~ .filter-bar [for="f-entry"],
.page-news #f-check:checked ~ .filter-bar [for="f-check"],
.page-news #f-find:checked ~ .filter-bar [for="f-find"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
}

.page-news #f-all:focus-visible ~ .filter-bar [for="f-all"],
.page-news #f-entry:focus-visible ~ .filter-bar [for="f-entry"],
.page-news #f-check:focus-visible ~ .filter-bar [for="f-check"],
.page-news #f-find:focus-visible ~ .filter-bar [for="f-find"] {
  outline: 2px solid var(--action-500);
  outline-offset: 2px;
}

.page-news .tip-list {
  margin-top: 20px;
  border-top: 1px solid var(--line-300);
}
.page-news .tip {
  margin: 0;
  padding: 20px 16px;
  border-bottom: 1px solid var(--line-300);
  border-left: 3px solid transparent;
  transition: background var(--dur) var(--ease), border-left-color var(--dur) var(--ease);
}
.page-news .tip__series {
  margin: 0 0 6px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--teal-600);
}
.page-news .tip__title {
  margin: 0 0 8px;
  font-size: 1.06rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink-900);
}
.page-news .tip__sum {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 66ch;
}
@media (hover: hover) {
  .page-news .tip:hover,
  .page-news .tip:focus-within {
    background: var(--white);
    border-left-color: var(--teal-600);
  }
}
.page-news #f-entry:checked ~ .tip-list .tip:not([data-series="entry"]),
.page-news #f-check:checked ~ .tip-list .tip:not([data-series="check"]),
.page-news #f-find:checked ~ .tip-list .tip:not([data-series="find"]) {
  display: none;
}

/* ---------- 往期归档 ---------- */
.page-news .archive {
  margin-top: 28px;
  border-top: 1px solid var(--line-300);
}
.page-news .archive__group {
  border-bottom: 1px solid var(--line-300);
}
.page-news .archive__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) var(--ease);
}
.page-news .archive__summary::-webkit-details-marker {
  display: none;
}
.page-news .archive__summary::after {
  content: "＋";
  font-size: 0.9rem;
  color: var(--teal-600);
  margin-left: 4px;
}
.page-news .archive__group[open] .archive__summary::after {
  content: "－";
  color: var(--action-500);
}
.page-news .archive__summary:hover .archive__period,
.page-news .archive__summary:focus-visible .archive__period {
  color: var(--teal-800);
}
.page-news .archive__period {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  transition: color var(--dur) var(--ease);
}
.page-news .archive__count {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--graphite-700);
  opacity: 0.7;
  margin-left: auto;
}
.page-news .archive__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0 0 0 20px;
}
.page-news .archive__list li {
  position: relative;
  margin: 0 0 10px;
  font-size: 0.93rem;
  line-height: 1.7;
}
.page-news .archive__list li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--amber-400);
}

/* ---------- 桌面端栅格与留白 ---------- */
@media (min-width: 900px) {
  .page-news .news-feature__grid {
    gap: 56px;
  }
  .page-news .news-lib {
    gap: 48px;
  }
  .page-news .tip-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line-300);
  }
  .page-news .tip {
    border-bottom: 1px solid var(--line-300);
    border-right: 1px solid var(--line-300);
    padding: 24px 22px;
  }
  .page-news .tip:nth-child(2n) {
    border-right: 0;
  }
  .page-news .release {
    padding-bottom: 34px;
  }
}

@media (min-width: 1100px) {
  .page-news .news-head {
    padding-top: 28px;
    padding-bottom: 46px;
  }
  .page-news .tip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 小屏收束，避免横向溢出 ---------- */
@media (max-width: 560px) {
  .page-news .news-head__title {
    max-width: none;
  }
  .page-news .news-points li {
    padding-left: 22px;
  }
  .page-news .release-list {
    padding-left: 16px;
  }
  .page-news .release::before {
    left: -21px;
  }
  .page-news .filter-label {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  .page-news .tip {
    padding: 18px 12px;
  }
}

/* ---------- 尊重减少动效设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    transition: none !important;
    animation: none !important;
  }
}
