.page-news {
  --news-sticky-top: 60px;
  padding: 26px 18px 84px;
  color: var(--text);
}

.page-news .news-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.page-news .news-head {
  padding: 6px 0 34px;
  border-bottom: 1px solid var(--line-soft);
}

.page-news .news-head__kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--gold);
}

.page-news .news-head h1 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(27px, 6.4vw, 50px);
  line-height: 1.28;
  letter-spacing: .01em;
  color: var(--text);
}

.page-news .news-head__lede {
  margin: 0 0 16px;
  max-width: 44em;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  opacity: .88;
}

.page-news .news-head__meta {
  margin: 0;
  font-size: 14px;
  color: var(--stone);
}

.page-news .news-head__meta .ledger {
  color: var(--butter);
}

.page-news .news-head__meta a {
  color: var(--butter);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.page-news .news-head__meta a:hover {
  border-bottom-color: var(--butter);
}

/* 标签说明 */
.page-news .note-legend {
  padding: 40px 0 4px;
}

.page-news .note-legend h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(21px, 3.4vw, 28px);
  color: var(--text);
}

.page-news .note-legend__intro {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--stone);
}

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

.page-news .note-legend__item {
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--line-soft);
  border-left-width: 3px;
  background: linear-gradient(160deg, rgba(27, 21, 17, .9), rgba(13, 10, 7, .35));
}

.page-news .note-legend__item--version { border-left-color: var(--gold); }
.page-news .note-legend__item--rule { border-left-color: var(--mineral); }
.page-news .note-legend__item--entry { border-left-color: var(--cinnabar); }

.page-news .note-legend__item h3 {
  margin: 12px 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}

.page-news .note-legend__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
}

/* 置顶卡 */
.page-news .note-pin {
  padding-top: 50px;
}

.page-news .pin-card {
  position: relative;
  display: grid;
  margin-top: 26px;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.page-news .pin-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(192, 138, 46, .22);
  pointer-events: none;
  z-index: 2;
}

.page-news .pin-card__media {
  position: relative;
  overflow: hidden;
}

.page-news .pin-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.page-news .pin-card__body {
  padding: 24px 22px 26px;
}

.page-news .pin-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.page-news .pin-card__meta .ledger {
  color: var(--butter);
  font-size: 18px;
}

.page-news .pin-card__when {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--stone);
}

.page-news .pin-card__body h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 27px);
  line-height: 1.42;
  color: var(--text);
}

.page-news .pin-card__body p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  opacity: .85;
}

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

.page-news .pin-card__list li {
  display: grid;
  grid-template-columns: 4.2em 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
  line-height: 1.75;
  color: var(--stone);
}

.page-news .pin-card__list .ledger {
  font-size: 13px;
  color: var(--butter);
}

.page-news .pin-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 条目列表 */
.page-news .note-feed {
  padding-top: 58px;
}

.page-news .note-feed__intro {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--stone);
}

.page-news .filter-bar {
  position: sticky;
  top: var(--news-sticky-top);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 12px 0;
  background: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.page-news .filter-chip {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-news .filter-chip:hover {
  border-color: var(--butter);
  color: var(--butter);
}

.page-news .filter-chip[aria-pressed="true"] {
  border-color: var(--butter);
  color: var(--butter);
  background: rgba(242, 190, 85, .1);
}

.page-news .filter-status {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--stone);
}

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

.page-news .note-item {
  position: relative;
  min-width: 0;
  padding: 18px 26px 20px 18px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  transition: border-color .22s var(--ease);
}

.page-news .note-item::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 0;
  width: 4px;
  background: var(--gold);
  transition: width .22s var(--ease);
}

.page-news .note-item:hover {
  border-color: rgba(242, 190, 85, .5);
}

.page-news .note-item:hover::after {
  width: 6px;
}

.page-news .note-item[data-tags~="version"]::after { background: var(--gold); }
.page-news .note-item[data-tags~="rule"]::after { background: var(--mineral); }
.page-news .note-item[data-tags~="entry"]::after { background: var(--cinnabar); }

.page-news .note-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.page-news .note-item__no {
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--stone);
}

.page-news .note-item__when {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--stone);
}

.page-news .note-item__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
}

.page-news .note-item__text {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
  opacity: .84;
}

.page-news .note-item__more {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.page-news .note-item__more a {
  color: var(--butter);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.page-news .note-item__more a:hover {
  border-bottom-color: var(--butter);
}

.page-news .note-item__figure {
  margin: 14px 0 0;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-news .note-item__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* 归档 */
.page-news .note-archive {
  padding-top: 58px;
}

.page-news .note-archive__grid {
  display: grid;
  gap: 26px;
  margin-top: 24px;
}

.page-news .note-archive__col {
  min-width: 0;
}

.page-news .note-archive__sub {
  margin: 32px 0 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}

.page-news .note-archive__col > .note-archive__sub:first-child {
  margin-top: 0;
}

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

.page-news .archive-tags li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone);
}

.page-news .archive-tags .ledger {
  font-size: 16px;
  color: var(--butter);
}

.page-news .note-archive__hint {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--stone);
}

.page-news .archive-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .archive-tick {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--butter);
  font-size: 15px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-news .archive-tick:hover {
  border-color: var(--butter);
  background: rgba(242, 190, 85, .07);
}

.page-news .archive-tick__tip {
  display: none;
}

.page-news .note-archive__figure {
  margin: 0;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-news .note-archive__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: .72;
}

/* 更新节奏 */
.page-news .note-rhythm {
  padding-top: 58px;
}

.page-news .rhythm-card {
  padding: 26px 20px 24px;
  background: var(--paper);
  color: var(--panel);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-card);
}

.page-news .rhythm-card h2 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(22px, 3.6vw, 30px);
  line-height: 1.35;
  color: var(--panel);
}

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

.page-news .rhythm-list li {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(27, 21, 17, .18);
}

.page-news .rhythm-list__k {
  font-size: 15px;
  font-weight: 700;
  color: var(--panel);
}

.page-news .rhythm-list p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(27, 21, 17, .82);
}

.page-news .rhythm-card__foot {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(27, 21, 17, .8);
}

.page-news .rhythm-card__foot a {
  color: var(--panel);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 21, 17, .45);
}

.page-news .rhythm-card__foot a:hover {
  border-bottom-color: var(--panel);
}

@media (min-width: 720px) {
  .page-news .archive-tick__tip {
    display: block;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 200px;
    padding: 8px 10px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text);
    background: var(--ink);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    z-index: 6;
    transition: opacity .2s var(--ease), visibility .2s var(--ease);
  }

  .page-news .archive-tick:hover .archive-tick__tip,
  .page-news .archive-tick:focus-within .archive-tick__tip {
    opacity: 1;
    visibility: visible;
  }

  .page-news .archive-tick:first-child .archive-tick__tip {
    left: 0;
    transform: none;
  }

  .page-news .archive-tick:nth-child(4n) .archive-tick__tip {
    left: auto;
    right: 0;
    transform: none;
  }
}

@media (min-width: 780px) {
  .page-news .note-legend__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 860px) {
  .page-news .note-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 30px;
    align-items: start;
    padding-bottom: 56px;
  }

  .page-news .note-item:nth-child(even) {
    margin-top: 30px;
  }
}

@media (min-width: 900px) {
  .page-news .pin-card {
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .page-news .pin-card__media img {
    min-height: 100%;
  }

  .page-news .pin-card__body {
    padding: 30px 30px 32px;
  }

  .page-news .note-archive__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: start;
  }

  .page-news .note-archive__figure {
    margin-top: 4px;
  }
}

@media (min-width: 1024px) {
  .page-news {
    --news-sticky-top: 0px;
    padding: 40px 32px 100px;
  }

  .page-news .rhythm-card {
    padding: 34px 34px 30px;
  }

  .page-news .rhythm-list {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .note-item,
  .page-news .note-item::after,
  .page-news .filter-chip,
  .page-news .archive-tick,
  .page-news .archive-tick__tip {
    transition: none;
  }
}
