.page-news {
  --news-rail: 128px;
  background-color: var(--paper);
  color: var(--text);
}

/* ---------- 首屏 ---------- */
.page-news .news-masthead {
  padding: 40px 0 52px;
  border-bottom: 1px solid var(--line);
}

.page-news .news-masthead__grid {
  display: grid;
  gap: 32px;
  align-items: end;
}

.page-news .news-masthead__title {
  display: inline-block;
  margin: 10px 0 0;
  font-size: clamp(52px, 11vw, 112px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.02em;
  transform: skewX(-1.5deg);
  transform-origin: left bottom;
}

.page-news .news-masthead__lede {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.page-news .news-masthead__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.page-news .news-masthead__facts .mono {
  margin-right: 4px;
  font-weight: 600;
  color: var(--ink);
}

.page-news .news-toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-news .news-toc__list .toc__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--slate);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.page-news .news-toc__list .toc__link:hover {
  color: var(--ink);
  border-color: var(--slate);
  background: var(--paper-2);
}

.page-news .news-toc__list .toc__link[aria-current="location"] {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--paper-2);
}

.page-news .news-toc__list .toc__num {
  font-size: 11px;
  color: var(--orange);
}

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

.page-news .news-masthead__fig {
  margin: 0;
}

/* ---------- 章节头 ---------- */
.page-news .news-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-news .news-head .sec-index {
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange);
}

.page-news .news-head .section__title {
  margin: 6px 0 0;
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.page-news .news-head__note {
  max-width: 62ch;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.page-news .news-head--dark {
  border-bottom-color: var(--line-dark);
}

.page-news .news-head--dark .sec-index {
  color: var(--orange-lit);
}

.page-news .news-head--dark .eyebrow {
  color: rgba(247, 245, 240, 0.6);
}

.page-news .news-head--dark .section__title {
  color: var(--paper);
}

.page-news .news-head--dark .news-head__note {
  color: rgba(247, 245, 240, 0.64);
}

/* ---------- 标签索引带 ---------- */
.page-news .ledger-filter__radio {
  position: absolute;
}

.page-news .tagband {
  display: flex;
  gap: 8px;
  padding: 4px 2px 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--line);
}

.page-news .tagcard {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  min-height: 44px;
  padding: 12px 16px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tc, var(--slate));
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.page-news .tagcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  background: var(--paper);
}

.page-news .tagcard--all { --tc: var(--ink-2); }
.page-news .tagcard--volume { --tc: var(--star-4); }
.page-news .tagcard--version { --tc: var(--star-5); }
.page-news .tagcard--branch { --tc: var(--star-2); }
.page-news .tagcard--rule { --tc: var(--star-1); }

.page-news .tagcard__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-news .tagcard__count {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.page-news #filter-all:checked ~ .tagband .tagcard--all,
.page-news #filter-volume:checked ~ .tagband .tagcard--volume,
.page-news #filter-version:checked ~ .tagband .tagcard--version,
.page-news #filter-branch:checked ~ .tagband .tagcard--branch,
.page-news #filter-rule:checked ~ .tagband .tagcard--rule {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.page-news #filter-all:checked ~ .tagband .tagcard--all .tagcard__count,
.page-news #filter-volume:checked ~ .tagband .tagcard--volume .tagcard__count,
.page-news #filter-version:checked ~ .tagband .tagcard--version .tagcard__count,
.page-news #filter-branch:checked ~ .tagband .tagcard--branch .tagcard__count,
.page-news #filter-rule:checked ~ .tagband .tagcard--rule .tagcard__count {
  color: rgba(247, 245, 240, 0.72);
}

.page-news #filter-all:focus-visible ~ .tagband .tagcard--all,
.page-news #filter-volume:focus-visible ~ .tagband .tagcard--volume,
.page-news #filter-version:focus-visible ~ .tagband .tagcard--version,
.page-news #filter-branch:focus-visible ~ .tagband .tagcard--branch,
.page-news #filter-rule:focus-visible ~ .tagband .tagcard--rule {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-news #filter-volume:checked ~ .ledger-list > .ledger-item:not([data-tag~="volume"]),
.page-news #filter-version:checked ~ .ledger-list > .ledger-item:not([data-tag~="version"]),
.page-news #filter-branch:checked ~ .ledger-list > .ledger-item:not([data-tag~="branch"]),
.page-news #filter-rule:checked ~ .ledger-list > .ledger-item:not([data-tag~="rule"]) {
  display: none;
}

/* ---------- 条目列表 ---------- */
.page-news .ledger-head {
  margin: 34px 0 12px;
}

.page-news .ledger-head__title {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.page-news .ledger-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-news .ledger-item {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  outline-offset: 4px;
}

.page-news .ledger-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-news .ledger-item__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-news .ledger-item__time {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.page-news .ledger-item__tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.page-news .ledger-item__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-news .ledger-item__sum {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
}

.page-news .ledger-item__more {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text);
}

.page-news .ledger-item__fig {
  margin: 16px 0 0;
  max-width: 100%;
}

/* ---------- 分区受理量 ---------- */
.page-news .news-volume {
  color: var(--paper);
  border-top: 1px solid var(--orange);
}

.page-news .news-volume__grid {
  row-gap: 32px;
}

.page-news .bar-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.18s ease;
}

.page-news .bar-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.page-news .bar-row__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.page-news .bar-row__num {
  margin-left: auto;
  font-size: 14px;
  color: var(--orange-lit);
}

.page-news .bar-row__share {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(247, 245, 240, 0.5);
  opacity: 0.7;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.page-news .bar-row:hover .bar-row__share,
.page-news .bar-row:focus-within .bar-row__share {
  opacity: 1;
  color: var(--orange-lit);
}

.page-news .bar-row__track {
  display: block;
  height: 10px;
  margin-top: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-news .bar-row__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-lit));
  border-radius: var(--radius);
}

.page-news .news-volume__bars .bar-row:nth-child(1) .bar-row__fill { width: 63.1%; }
.page-news .news-volume__bars .bar-row:nth-child(2) .bar-row__fill { width: 100%; }
.page-news .news-volume__bars .bar-row:nth-child(3) .bar-row__fill { width: 56.3%; }
.page-news .news-volume__bars .bar-row:nth-child(4) .bar-row__fill { width: 36.4%; }

.page-news .volume-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247, 245, 240, 0.66);
}

.page-news .news-volume__fig {
  margin: 0;
}

/* ---------- 版本与规则 ---------- */
.page-news .news-versions__grid {
  row-gap: 32px;
}

.page-news .news-versions__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-news .version-item {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.page-news .version-item__k {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-news .version-item__v {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text);
}

.page-news .news-versions__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-news .news-versions__side .img-frame {
  margin: 0;
}

.page-news .news-versions__aside {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.page-news .news-versions__aside a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 1px;
}

.page-news .news-versions__aside a:hover,
.page-news .news-versions__aside a:focus-visible {
  color: var(--orange);
}

/* ---------- 筛选与节奏 ---------- */
.page-news .news-rhythm__grid {
  row-gap: 18px;
}

.page-news .rhythm-card {
  position: relative;
  padding: 22px 22px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.page-news .rhythm-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  pointer-events: none;
}

.page-news .rhythm-card--wide {
  margin-top: 18px;
}

.page-news .rhythm-card__title {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.page-news .rhythm-card__body {
  position: relative;
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--text);
}

.page-news .rhythm-card__body:last-child {
  margin-bottom: 0;
}

.page-news .rhythm-card__body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
}

.page-news .rhythm-card__body a:hover,
.page-news .rhythm-card__body a:focus-visible {
  color: var(--orange);
}

.page-news .rhythm-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .rhythm-list li {
  padding: 10px 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}

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

.page-news .rhythm-list .mono {
  display: inline-block;
  min-width: 62px;
  margin-right: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.page-news .news-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-news .news-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-news .news-masthead {
    padding: 52px 0 64px;
  }

  .page-news .ledger-item__title {
    font-size: 19px;
  }

  .page-news .news-versions__grid .news-versions__side {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-news .news-versions__side .img-frame {
    flex: 1 1 58%;
  }

  .page-news .news-versions__aside {
    flex: 1 1 38%;
  }
}

@media (min-width: 900px) {
  .page-news .news-masthead__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }

  .page-news .news-head {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 24px;
  }

  .page-news .news-head .sec-index {
    font-size: 64px;
  }

  .page-news .ledger-item {
    grid-template-columns: var(--news-rail) minmax(0, 1fr);
    gap: 32px;
    padding: 28px 0;
    transition: background-color 0.2s ease;
  }

  .page-news .ledger-item:hover,
  .page-news .ledger-item:focus-within {
    background-color: rgba(237, 234, 226, 0.72);
  }

  .page-news .ledger-item__rail {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-right: 18px;
    border-right: 1px solid var(--line-soft);
    align-self: stretch;
  }

  .page-news .ledger-item__time {
    font-size: 13px;
    color: var(--ink);
  }

  .page-news .ledger-item__body {
    position: relative;
    padding-right: 30px;
  }

  .page-news .ledger-item__body::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 0;
    bottom: 2px;
    width: 2px;
    background: var(--orange);
    opacity: 0;
    transform: scaleY(0.25);
    transform-origin: top;
    transition: opacity 0.2s ease, transform 0.24s ease;
  }

  .page-news .ledger-item:hover .ledger-item__body::after,
  .page-news .ledger-item:focus-within .ledger-item__body::after,
  .page-news .ledger-item:focus .ledger-item__body::after {
    opacity: 1;
    transform: scaleY(1);
  }

  .page-news .ledger-item__more {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.24s ease, margin-top 0.3s ease;
    margin-top: 0;
  }

  .page-news .ledger-item:hover .ledger-item__more,
  .page-news .ledger-item:focus-within .ledger-item__more,
  .page-news .ledger-item:focus .ledger-item__more {
    max-height: 22rem;
    opacity: 1;
    margin-top: 10px;
  }

  .page-news .version-item {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 20px 0;
  }

  .page-news .version-item__k {
    padding-top: 4px;
  }
}

@media (min-width: 1080px) {
  .page-news .news-masthead__lede {
    font-size: 17px;
  }

  .page-news .news-volume__bars {
    padding-right: 12px;
  }
}
