.page-news {
  --news-pad: clamp(38px, 5.6vw, 86px);
  --news-line: var(--line-soft);
  background:
    radial-gradient(110% 72% at 100% 0%, rgba(201, 146, 74, 0.10), transparent 58%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink) 52%, var(--ink-2) 100%);
}

/* ---------- 面包屑 ---------- */
.page-news .news-crumbs {
  padding-top: clamp(16px, 2.6vw, 30px);
}

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

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  padding-block: clamp(22px, 3.6vw, 44px) clamp(34px, 5.4vw, 76px);
  border-bottom: 1px solid var(--news-line);
}

.page-news .news-hero-grid {
  display: grid;
  gap: clamp(24px, 4vw, 50px);
  align-items: end;
}

.page-news .news-hero-copy h1 {
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 14px 0 18px;
  text-wrap: balance;
}

.page-news .news-hero-copy .lede {
  max-width: 54ch;
  margin: 0;
}

.page-news .news-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-news .news-hero-figure {
  margin: 0;
}

.page-news .news-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (min-width: 960px) {
  .page-news .news-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* ---------- 章节骨架 ---------- */
.page-news .news-section {
  padding-block: var(--news-pad);
  border-bottom: 1px solid var(--news-line);
}

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

.page-news .news-head {
  max-width: 70ch;
  margin-bottom: clamp(26px, 3.6vw, 48px);
}

.page-news .news-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 14px 0 0;
  text-wrap: balance;
}

.page-news .news-sub {
  margin: 14px 0 0;
  color: var(--silver);
  font-size: var(--fs-body);
  line-height: 1.78;
  max-width: 64ch;
}

.page-news a.textlink {
  color: var(--copper-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.page-news a.textlink:hover,
.page-news a.textlink:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--copper-bright);
}

/* ---------- 时间轴 ---------- */
.page-news .rail {
  list-style: none;
  margin: 0 0 clamp(30px, 4.4vw, 54px);
  padding: 0 0 10px;
  display: flex;
  gap: clamp(18px, 3.4vw, 46px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-news .rail-node {
  position: relative;
  flex: 0 0 auto;
  width: clamp(172px, 44vw, 248px);
  padding: 28px 10px 0 0;
  scroll-snap-align: start;
}

.page-news .rail-node::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: -2px;
  height: 1px;
  background: var(--line);
}

.page-news .rail-node:last-child::before {
  right: 0;
}

.page-news .rail-node::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--copper);
  background: var(--ink);
  transform: rotate(45deg);
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.page-news .rail-node:hover::after,
.page-news .rail-node:focus-within::after {
  background: var(--copper-bright);
  border-color: var(--copper-bright);
  box-shadow: 0 0 0 3px rgba(232, 185, 107, 0.16);
}

.page-news .rail-issue {
  display: block;
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--copper);
  letter-spacing: 0.06em;
}

.page-news .rail-label {
  display: block;
  margin-top: 6px;
  color: var(--cream);
  font-size: 15.5px;
  line-height: 1.5;
}

.page-news .rail-note {
  display: block;
  margin-top: 8px;
  color: var(--stone);
  font-size: 13.5px;
  line-height: 1.72;
  transition: color var(--t-fast) ease;
}

.page-news .rail-node:hover .rail-note,
.page-news .rail-node:focus-within .rail-note {
  color: var(--silver);
}

/* ---------- 差异对照 ---------- */
.page-news .diff-layout {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.page-news .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--news-line);
  background: rgba(26, 21, 18, 0.55);
}

.page-news .diff-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.page-news .diff-table th,
.page-news .diff-table td {
  text-align: left;
  padding: 15px clamp(12px, 2vw, 22px);
  border-bottom: 1px solid var(--news-line);
  font-size: 15px;
  vertical-align: top;
}

.page-news .diff-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stone);
  background: rgba(201, 146, 74, 0.07);
  white-space: nowrap;
}

.page-news .diff-table tbody th {
  font-weight: 500;
  color: var(--silver);
  white-space: nowrap;
}

.page-news .diff-table tbody td.was {
  color: var(--stone);
}

.page-news .diff-table tbody td.now {
  color: var(--copper-bright);
}

.page-news .diff-table tbody tr:last-child th,
.page-news .diff-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-news .diff-figure {
  margin: 0;
}

.page-news .diff-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (min-width: 920px) {
  .page-news .diff-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- 更新条目 ---------- */
.page-news .entries-cover {
  margin: 0 0 clamp(24px, 3.4vw, 40px);
}

.page-news .entries-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
}

.page-news .entries-shell {
  position: relative;
}

.page-news .nf-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.page-news .entry-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(16px, 2.4vw, 26px);
}

.page-news .nf-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  color: var(--silver);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: transparent;
  transition: background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.page-news .nf-chip:hover {
  border-color: var(--copper-bright);
  color: var(--cream);
}

.page-news .nf-input:checked + .nf-chip {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--ink);
}

.page-news .nf-input:focus-visible + .nf-chip {
  outline: 2px solid var(--copper-bright);
  outline-offset: 2px;
}

.page-news #nf-class:checked ~ .entry-list .entry:not([data-cat="class"]),
.page-news #nf-entry:checked ~ .entry-list .entry:not([data-cat="entry"]),
.page-news #nf-archive:checked ~ .entry-list .entry:not([data-cat="archive"]),
.page-news #nf-rights:checked ~ .entry-list .entry:not([data-cat="rights"]),
.page-news #nf-note:checked ~ .entry-list .entry:not([data-cat="note"]) {
  display: none;
}

.page-news .entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .entry {
  display: grid;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--news-line);
  transition: background var(--t-fast) ease;
}

.page-news .entry:last-child {
  border-bottom: 1px solid var(--news-line);
}

.page-news .entry:hover {
  background: rgba(201, 146, 74, 0.035);
}

.page-news .entry-cat {
  align-self: start;
  width: fit-content;
  padding: 5px 11px;
  border-left: 3px solid var(--stone);
  background: rgba(201, 209, 199, 0.08);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-news .entry[data-cat="class"] .entry-cat {
  border-left-color: var(--bronze-moss);
  background: rgba(70, 120, 95, 0.24);
}

.page-news .entry[data-cat="entry"] .entry-cat {
  border-left-color: var(--copper);
  background: rgba(201, 146, 74, 0.18);
}

.page-news .entry[data-cat="archive"] .entry-cat {
  border-left-color: var(--copper-bright);
  background: rgba(232, 185, 107, 0.14);
}

.page-news .entry[data-cat="rights"] .entry-cat {
  border-left-color: var(--neon);
  background: rgba(255, 62, 127, 0.14);
}

.page-news .entry[data-cat="note"] .entry-cat {
  border-left-color: var(--stone);
  background: rgba(201, 209, 199, 0.10);
}

.page-news .entry-details summary {
  cursor: pointer;
  list-style: none;
  display: block;
  position: relative;
  padding-right: 36px;
}

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

.page-news .entry-sum::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: transform var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.page-news .entry-details[open] .entry-sum::after {
  transform: rotate(45deg);
  color: var(--copper-bright);
  border-color: var(--copper);
}

.page-news .entry-issue {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--stone);
}

.page-news .entry-title {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.4;
  color: var(--cream);
  margin: 7px 0 0;
}

.page-news .entry-time {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--stone);
}

.page-news .entry-body {
  padding-top: 12px;
  max-width: 68ch;
  color: var(--silver);
  font-size: 15.5px;
  line-height: 1.78;
}

.page-news .entry-body p {
  margin: 0;
}

@media (min-width: 780px) {
  .page-news .entry {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: clamp(16px, 2.6vw, 34px);
    padding: 24px 0;
  }

  .page-news .entry-details {
    grid-column: 2;
  }
}

/* ---------- 专题展签条 ---------- */
.page-news .topic-section {
  background:
    linear-gradient(180deg, rgba(46, 92, 78, 0.16) 0%, rgba(14, 21, 18, 0) 62%);
}

.page-news .topic-scroller {
  padding-bottom: 6px;
}

.page-news .topic-strip {
  list-style: none;
  margin: 0;
  padding: 0 0 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 76%);
  gap: clamp(12px, 2vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-news .topic-card {
  scroll-snap-align: start;
  min-height: 218px;
  padding: 20px 18px 24px;
  border-top: 2px solid var(--copper);
  background: linear-gradient(180deg, rgba(26, 21, 18, 0.92), rgba(14, 21, 18, 0.86));
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease;
}

.page-news .topic-card:hover {
  border-top-color: var(--copper-bright);
  background: linear-gradient(180deg, rgba(46, 92, 78, 0.28), rgba(14, 21, 18, 0.9));
}

.page-news .topic-num {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--copper);
}

.page-news .topic-card h3 {
  margin: 2px 0 0;
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--cream);
  line-height: 1.35;
}

.page-news .topic-card p {
  margin: 0;
  color: var(--silver);
  font-size: 14.5px;
  line-height: 1.76;
}

@media (min-width: 880px) {
  .page-news .topic-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.page-news .topic-figure {
  margin: clamp(26px, 3.6vw, 46px) 0 0;
}

.page-news .topic-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---------- 资料上新与提醒 ---------- */
.page-news .supply-grid {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}

.page-news .supply-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--news-line);
}

.page-news .supply-card--moss {
  background: linear-gradient(180deg, rgba(46, 92, 78, 0.26), rgba(14, 21, 18, 0.72));
}

.page-news .supply-card--ink {
  background: linear-gradient(180deg, rgba(201, 146, 74, 0.11), rgba(26, 21, 18, 0.76));
}

.page-news .supply-title {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--cream);
  line-height: 1.35;
}

.page-news .supply-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.page-news .supply-list li {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--news-line);
  color: var(--silver);
  font-size: 15px;
  line-height: 1.74;
}

.page-news .supply-list li::before {
  content: "—";
  flex: 0 0 auto;
  color: var(--copper);
}

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

/* ---------- 常见问题 ---------- */
.page-news .qa-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .qa-item {
  padding: 20px 0;
  border-top: 1px solid var(--news-line);
}

.page-news .qa-item:last-child {
  border-bottom: 1px solid var(--news-line);
}

.page-news .qa-q {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--cream);
  line-height: 1.5;
}

.page-news .qa-a {
  margin: 0;
  max-width: 72ch;
  color: var(--silver);
  font-size: 15.5px;
  line-height: 1.78;
}

@media (min-width: 900px) {
  .page-news .qa-item {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(16px, 3vw, 40px);
    align-items: start;
    padding: 24px 0;
  }

  .page-news .qa-q {
    margin: 0;
  }
}

/* ---------- 窄屏收口 ---------- */
@media (max-width: 519px) {
  .page-news .news-hero-actions .btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }

  .page-news .topic-strip {
    grid-auto-columns: minmax(200px, 84%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .rail-node::after,
  .page-news .rail-note,
  .page-news .nf-chip,
  .page-news .entry,
  .page-news .entry-sum::after,
  .page-news .topic-card,
  .page-news a.textlink {
    transition: none;
  }
}
