.page-news {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-news *,
.page-news *::before,
.page-news *::after {
  box-sizing: border-box;
}

.page-news .breadcrumb {
  padding-top: 16px;
  padding-bottom: 2px;
}

.page-news .lead {
  font-size: 16px;
  line-height: 1.75;
  max-width: 38em;
  color: rgba(31, 27, 22, 0.78);
  margin: 0;
}

.page-news .eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

.page-news .num {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--edge);
}

.page-news .news-hero__slice {
  position: absolute;
  top: -90px;
  right: -110px;
  width: 250px;
  height: 250px;
  border-radius: var(--r-l);
  background: linear-gradient(140deg, rgba(217, 166, 90, 0.55), rgba(196, 83, 47, 0.72));
  transform: rotate(18deg);
  pointer-events: none;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 30px;
  padding-bottom: 28px;
}

.page-news .news-hero h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(28px, 7vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 12px 0 16px;
  max-width: 22em;
}

.page-news .news-hero__meta {
  list-style: none;
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--edge);
  display: grid;
  gap: 12px;
}

.page-news .news-hero__meta li {
  display: grid;
  gap: 3px;
  padding-left: 12px;
  border-left: 3px solid var(--tile);
}

.page-news .news-hero__meta li:nth-child(2) {
  border-left-color: var(--sand);
}

.page-news .news-hero__meta li:nth-child(3) {
  border-left-color: var(--grass);
}

.page-news .news-hero__meta li:nth-child(4) {
  border-left-color: var(--terra);
}

.page-news .news-hero__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--clay);
}

.page-news .news-hero__v {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- 章节骨架 ---------- */
.page-news .section {
  padding-block: 40px;
  border-top: 1px solid var(--edge-soft);
}

.page-news .section--logs {
  border-top: 0;
  background: var(--cream);
}

.page-news .section__head {
  max-width: 46em;
  margin-bottom: 24px;
}

.page-news .section h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.3;
  margin: 10px 0 12px;
}

/* ---------- 筛选与更新列表 ---------- */
.page-news .log-filter {
  position: relative;
}

.page-news .lf-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.page-news .lf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-news .lf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .lf-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--sage);
}

.page-news .lf-chip--ver::before {
  background: var(--terra);
}

.page-news .lf-chip--cat::before {
  background: var(--clay);
}

.page-news .lf-chip--mt::before {
  background: var(--grass);
}

.page-news #lf-all:checked ~ .lf-chips label[for="lf-all"],
.page-news #lf-ver:checked ~ .lf-chips label[for="lf-ver"],
.page-news #lf-cat:checked ~ .lf-chips label[for="lf-cat"],
.page-news #lf-mt:checked ~ .lf-chips label[for="lf-mt"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.page-news #lf-all:focus-visible ~ .lf-chips label[for="lf-all"],
.page-news #lf-ver:focus-visible ~ .lf-chips label[for="lf-ver"],
.page-news #lf-cat:focus-visible ~ .lf-chips label[for="lf-cat"],
.page-news #lf-mt:focus-visible ~ .lf-chips label[for="lf-mt"] {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.page-news #lf-ver:checked ~ .log-list > li:not(.t-ver),
.page-news #lf-cat:checked ~ .log-list > li:not(.t-cat),
.page-news #lf-mt:checked ~ .log-list > li:not(.t-mt) {
  display: none;
}

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

.page-news .log-item {
  background: var(--paper);
  border: 1px solid var(--edge-soft);
  border-left: 4px solid var(--sage);
  border-radius: var(--r-m);
  padding: 15px 16px 14px;
  box-shadow: var(--shadow-s);
}

.page-news .log-item.t-ver {
  border-left-color: var(--terra);
}

.page-news .log-item.t-cat {
  border-left-color: var(--clay);
}

.page-news .log-item.t-mt {
  border-left-color: var(--grass);
}

.page-news .log-item__top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-news .log-item__tag {
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--clay);
}

.page-news .t-ver .log-item__tag {
  color: var(--terra);
}

.page-news .t-mt .log-item__tag {
  color: var(--grass);
}

.page-news .log-item__time {
  color: rgba(31, 27, 22, 0.55);
}

.page-news .log-item__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.45;
  margin: 8px 0 6px;
}

.page-news .log-item__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(31, 27, 22, 0.8);
}

.page-news .log-more {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--edge);
}

.page-news .log-more summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--clay);
}

.page-news .log-more summary::-webkit-details-marker {
  display: none;
}

.page-news .log-more summary::before {
  content: "+";
  font-weight: 700;
}

.page-news .log-more[open] summary::before {
  content: "–";
}

.page-news .log-more p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(31, 27, 22, 0.72);
}

/* ---------- 类型图例 ---------- */
.page-news .legend {
  display: grid;
  gap: 22px;
}

.page-news .legend__figure {
  margin: 0;
  border: 1px solid var(--edge-soft);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--tile);
}

.page-news .legend__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .legend__caption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--coffee);
  background: var(--paper);
  border-top: 1px solid var(--edge-soft);
}

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

.page-news .legend__item {
  position: relative;
  padding: 14px 16px 14px 40px;
  background: var(--paper);
  border: 1px solid var(--edge-soft);
  border-radius: var(--r-m);
}

.page-news .legend__dot {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--sage);
}

.page-news .legend__item--ver .legend__dot {
  background: var(--terra);
}

.page-news .legend__item--cat .legend__dot {
  background: var(--clay);
}

.page-news .legend__item--mt .legend__dot {
  background: var(--grass);
}

.page-news .legend__item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-news .legend__item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(31, 27, 22, 0.8);
}

.page-news .legend__who {
  margin-top: 8px !important;
  font-family: var(--font-mono);
  font-size: 12px !important;
  letter-spacing: 0.02em;
  color: rgba(31, 27, 22, 0.55) !important;
}

/* ---------- 版本时间带 ---------- */
.page-news .section--timeline {
  background: linear-gradient(180deg, var(--cream), rgba(233, 199, 184, 0.34));
}

.page-news .timeline__banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-l);
  border: 1px solid var(--edge-soft);
  margin: 0 0 20px;
}

.page-news .timeline {
  overflow-x: auto;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}

.page-news .timeline:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}

.page-news .timeline__track {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  display: flex;
  min-width: 760px;
  border-top: 2px solid var(--edge);
}

.page-news .timeline__node {
  position: relative;
  flex: 0 0 172px;
  padding: 0 16px 0 0;
}

.page-news .timeline__node::before {
  content: "";
  position: absolute;
  left: 0;
  top: -27px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--clay);
}

.page-news .timeline__node:nth-child(2n)::before {
  border-color: var(--terra);
}

.page-news .timeline__node:nth-child(3n)::before {
  border-color: var(--grass);
}

.page-news .timeline__year {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--coffee);
}

.page-news .timeline__node p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(31, 27, 22, 0.78);
}

/* ---------- 栏目调整 ---------- */
.page-news .adjust {
  display: grid;
  gap: 22px;
}

.page-news .adjust__figure {
  margin: 0;
  border: 1px solid var(--edge-soft);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--tile);
}

.page-news .adjust__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

.page-news .adjust__item {
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--clay);
}

.page-news .adjust__item:nth-child(2) {
  border-left-color: var(--terra);
}

.page-news .adjust__item:nth-child(3) {
  border-left-color: var(--grass);
}

.page-news .adjust__item:nth-child(4) {
  border-left-color: var(--sand);
}

.page-news .adjust__item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.page-news .adjust__item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(31, 27, 22, 0.8);
}

/* ---------- 每周三节奏 ---------- */
.page-news .section--rhythm {
  background: var(--coffee);
  color: var(--cream);
  border-top: 0;
  position: relative;
}

.page-news .section--rhythm .eyebrow {
  color: var(--sand);
}

.page-news .section--rhythm h2 {
  color: var(--paper);
}

.page-news .section--rhythm .lead {
  color: rgba(247, 241, 230, 0.82);
}

.page-news .rhythm {
  display: grid;
  gap: 1px;
  margin: 24px 0 0;
  padding: 0;
  border: 1px solid var(--edge-light);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--edge-light);
}

.page-news .rhythm__stat {
  background: var(--coffee);
  padding: 18px 16px;
}

.page-news .rhythm__stat dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--sand);
  margin-bottom: 8px;
}

.page-news .rhythm__stat dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--paper);
}

.page-news .rhythm__num {
  font-size: 26px;
  font-weight: 600;
  color: var(--sand);
  margin-right: 4px;
}

/* ---------- 归档书架 ---------- */
.page-news .archive {
  display: grid;
  gap: 22px;
}

.page-news .archive__figure {
  margin: 0;
  border: 1px solid var(--edge-soft);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--tile);
}

.page-news .archive__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

.page-news .shelf__col {
  background: var(--paper);
  border: 1px solid var(--edge-soft);
  border-top: 4px solid var(--clay);
  border-radius: var(--r-m);
  padding: 14px 14px 16px;
}

.page-news .shelf__col--ver {
  border-top-color: var(--terra);
}

.page-news .shelf__col--mt {
  border-top-color: var(--grass);
}

.page-news .shelf__col--flow {
  border-top-color: var(--sand);
}

.page-news .shelf__head {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--coffee);
}

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

.page-news .shelf__list li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(31, 27, 22, 0.78);
}

.page-news .shelf__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 2px;
  background: var(--sage);
}

.page-news .archive__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.page-news .archive__note {
  flex: 1 1 240px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(31, 27, 22, 0.62);
}

@media (min-width: 760px) {
  .page-news .news-hero__inner {
    padding-top: 48px;
    padding-bottom: 44px;
  }

  .page-news .news-hero__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .page-news .section {
    padding-block: 60px;
  }

  .page-news .legend {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 28px;
  }

  .page-news .legend__list {
    margin-top: 20px;
  }

  .page-news .adjust {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 28px;
  }

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

  .page-news .archive {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
    gap: 28px;
  }

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

  .page-news .timeline__node {
    flex-basis: 190px;
  }
}

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

  .page-news .section {
    padding-block: 72px;
  }

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

  .page-news .legend__item {
    padding-right: 20px;
  }

  .page-news .log-item {
    padding: 18px 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .lf-chip {
    transition: none;
  }
}
