.page-news {
  --news-muted: rgba(29, 31, 28, 0.62);
  --news-hair: rgba(29, 31, 28, 0.12);
  --news-hair-strong: rgba(29, 31, 28, 0.24);
  --news-tick: 132px;
}

.page-news .news-head {
  padding: clamp(24px, 4.5vw, 52px) 0 clamp(20px, 3.5vw, 38px);
}

.page-news .news-head h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(29px, 6vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0.32em 0 0.45em;
  max-width: 15em;
}

.page-news .news-head .lede {
  max-width: 36em;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.82;
  color: var(--news-muted);
}

/* 头条 */
.page-news .news-lead {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(22px, 4vw, 44px) 0;
  border-top: 1px solid var(--news-hair);
  border-bottom: 1px solid var(--news-hair);
}

.page-news .news-lead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--news-muted);
}

.page-news .news-lead__body h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.28;
  color: var(--ink);
  margin: 0.38em 0 0.5em;
}

.page-news .news-lead__body > p {
  margin: 0 0 0.9em;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.82;
  color: var(--news-muted);
}

.page-news .news-lead__body .news-lead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 20px 0 0;
  max-width: none;
}

.page-news .news-lead__figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--news-hair-strong);
  background: var(--frost);
  box-shadow: var(--shadow-soft);
}

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

.page-news .news-lead__figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--news-muted);
}

/* 分类条 */
.page-news .news-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--news-hair);
  background: var(--paper);
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 6;
}

.page-news .news-filter::-webkit-scrollbar {
  display: none;
}

.page-news .news-filter__label {
  flex: 0 0 auto;
  margin-right: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--news-muted);
}

.page-news .news-filter a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--news-hair-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .news-filter a:hover,
.page-news .news-filter a:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* 笔记列表 */
.page-news .news-list {
  display: grid;
  gap: clamp(16px, 2.5vw, 30px);
  padding: clamp(26px, 4.5vw, 52px) 0;
  border-bottom: 1px solid var(--news-hair);
}

.page-news .news-list__rail h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  margin: 0;
}

.page-news .news-ticks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--news-muted);
}

.page-news .news-item {
  padding: clamp(16px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--news-hair);
  transition: transform 0.25s var(--ease);
}

.page-news .news-item:first-child {
  border-top: 1px solid var(--news-hair);
}

.page-news .news-item:hover {
  transform: translateX(4px);
}

.page-news .news-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--news-muted);
}

.page-news .news-item__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.38;
  color: var(--ink);
  margin: 0.5em 0 0.4em;
}

.page-news .news-item__sum {
  margin: 0;
  max-width: 44em;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--news-muted);
}

.page-news .news-item__by {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--news-muted);
}

.page-news .news-item--featured {
  display: grid;
  gap: 16px;
}

.page-news .news-item__thumb {
  margin: 0;
  padding: 6px;
  border: 1px solid var(--news-hair);
  background: var(--frost);
}

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

/* 章节 */
.page-news .news-chapter {
  padding: clamp(28px, 5vw, 60px) 0;
  border-bottom: 1px solid var(--news-hair);
  scroll-margin-top: 84px;
}

.page-news .news-chapter:last-of-type {
  border-bottom: 0;
}

.page-news .news-chapter h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.26;
  color: var(--ink);
  margin: 0.32em 0 0.6em;
}

.page-news .news-copy {
  margin: 0 0 0.9em;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.82;
  color: var(--news-muted);
}

.page-news .news-chapter__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 18px;
}

.page-news .news-chapter__figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--news-hair);
  background: var(--frost);
}

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

.page-news .news-chapter__figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--news-muted);
}

.page-news .news-topics {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

/* 版本更新双栏 */
.page-news .news-updates {
  display: grid;
  gap: 16px;
}

.page-news .news-update {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--news-hair);
  background: var(--stone);
  scroll-margin-top: 84px;
}

.page-news .news-update__ver {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--autumn);
}

.page-news .news-update h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.6em;
}

.page-news .news-update .news-copy {
  max-width: 32em;
}

.page-news .news-update .link-quiet {
  display: inline-block;
  margin-top: 4px;
}

/* 企业服务 */
.page-news .news-enterprise {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

.page-news .news-enterprise__list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--news-hair);
}

.page-news .news-enterprise__list li {
  display: grid;
  gap: 3px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--news-hair);
  font-size: 14px;
  line-height: 1.72;
  color: var(--news-muted);
}

.page-news .news-enterprise__list strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}

/* 错峰显现 */
.page-news .news-item:nth-child(1) { --d: 0ms; }
.page-news .news-item:nth-child(2) { --d: 50ms; }
.page-news .news-item:nth-child(3) { --d: 100ms; }
.page-news .news-item:nth-child(4) { --d: 60ms; }
.page-news .news-item:nth-child(5) { --d: 120ms; }
.page-news .news-item:nth-child(6) { --d: 80ms; }
.page-news .news-item:nth-child(7) { --d: 140ms; }
.page-news .news-item:nth-child(8) { --d: 100ms; }
.page-news .news-item:nth-child(9) { --d: 160ms; }

@media (min-width: 620px) {
  .page-news .news-item--featured {
    grid-template-columns: 1fr 190px;
    align-items: start;
    gap: 24px;
  }

  .page-news .news-item--featured .news-item__thumb {
    margin-top: 6px;
  }
}

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

@media (min-width: 860px) {
  .page-news .news-filter {
    position: sticky;
    top: 0;
  }

  .page-news .news-lead {
    grid-template-columns: 5fr 6fr;
    align-items: end;
  }

  .page-news .news-topics {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }

  .page-news .news-enterprise {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .page-news .news-list {
    grid-template-columns: var(--news-tick) 1fr;
    align-items: start;
  }

  .page-news .news-list__rail {
    position: sticky;
    top: 84px;
  }

  .page-news .news-ticks {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-left: 12px;
    border-left: 1px solid var(--news-hair);
  }

  .page-news .news-ticks li {
    position: relative;
  }

  .page-news .news-ticks li::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink);
    opacity: 0.3;
  }
}

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

  .page-news .news-item:hover {
    transform: none;
  }
}
