.page-news {
  --news-rule: var(--border-strong);
  background: var(--bg);
  color: var(--fg);
}

.page-news img {
  max-width: 100%;
  height: auto;
}

.page-news a:focus-visible,
.page-news summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.page-news .crumbs {
  padding: 20px 0 0;
}

/* ---------- 首屏 ---------- */

.page-news .news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0 44px;
}

.page-news .news-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.05em;
}

.page-news .news-hero .lead {
  max-width: 46ch;
}

.page-news .news-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.page-news .news-hero-media {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
}

.page-news .news-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.page-news .news-hero-media::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  pointer-events: none;
}

/* ---------- 本批速览 ---------- */

.page-news .news-strip {
  position: relative;
  overflow: hidden;
  margin-bottom: 56px;
  padding: 30px 22px;
  border: 1px solid var(--ink-2);
  background: var(--ink);
  color: var(--paper);
}

.page-news .news-strip-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}

.page-news .news-strip-inner {
  position: relative;
  z-index: 1;
}

.page-news .news-strip .eyebrow {
  color: var(--gold-soft);
}

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

.page-news .news-stat {
  padding-left: 12px;
  border-left: 2px solid var(--gold);
}

.page-news .news-stat dt {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}

.page-news .news-stat dd {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-news .news-strip-note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(198, 163, 74, 0.35);
  font-size: 14px;
  line-height: 1.75;
  color: var(--gold-soft);
}

/* ---------- 主体双栏 ---------- */

.page-news .news-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  padding-bottom: 72px;
}

.page-news .news-block {
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.page-news .news-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.page-news .news-block-head {
  margin-bottom: 24px;
}

.page-news .news-block-head h2 {
  margin: 10px 0 14px;
  font-size: clamp(24px, 3.6vw, 33px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.05em;
}

.page-news .news-block-head .lead {
  max-width: 56ch;
}

.page-news .news-block-foot {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-muted);
}

.page-news .news-block-foot a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 四个维度 ---------- */

.page-news .news-dims {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-news .news-dim {
  padding: 16px 18px 18px;
  border: 1px solid var(--border);
  border-top-width: 4px;
  background: var(--surface);
}

.page-news .news-dim:nth-child(1) { border-top-color: var(--gold); }
.page-news .news-dim:nth-child(2) { border-top-color: var(--gold-soft); }
.page-news .news-dim:nth-child(3) { border-top-color: var(--steel); }
.page-news .news-dim:nth-child(4) { border-top-color: var(--red); }

.page-news .news-dim h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.page-news .news-dim p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--fg-muted);
}

.page-news .news-figure {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

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

.page-news .news-figure .media-caption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* ---------- 版本观察列表 ---------- */

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

.page-news .news-entry {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: var(--surface);
  transition: border-left-color 180ms var(--ease), background 180ms var(--ease);
}

.page-news .news-entry:hover {
  border-left-color: var(--red);
}

.page-news .news-entry[open] {
  border-left-color: var(--red);
  background: var(--surface-2);
}

.page-news .news-entry > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-areas:
    "meta cue"
    "title cue";
  gap: 4px 12px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

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

.page-news .news-entry-meta {
  grid-area: meta;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
}

.page-news .news-entry-title {
  grid-area: title;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.page-news .news-entry-cue {
  grid-area: cue;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--news-rule);
  color: var(--accent-ink);
  font-size: 16px;
  line-height: 1;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}

.page-news .news-entry-cue::before {
  content: "+";
}

.page-news .news-entry[open] .news-entry-cue {
  border-color: var(--red);
  color: var(--red);
}

.page-news .news-entry[open] .news-entry-cue::before {
  content: "–";
}

.page-news .news-entry-body {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-muted);
}

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

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

.page-news .news-entry-num {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--gold);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
}

/* ---------- 专题系列 ---------- */

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

.page-news .news-series-media {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.page-news .news-series-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-news .news-series-list {
  display: grid;
  gap: 20px;
}

.page-news .news-series-item {
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.page-news .news-series-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.page-news .news-series-item p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--fg-muted);
}

.page-news .news-series-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- 标签索引与往批 ---------- */

.page-news .news-tagcloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.page-news .news-tagcloud .tag {
  font-size: 13px;
  padding: 3px 9px;
}

.page-news .news-tagcloud .tag--lg {
  font-size: 19px;
  font-weight: 900;
  border-color: var(--gold);
  color: var(--accent-ink);
}

.page-news .news-tagcloud .tag--md {
  font-size: 16px;
  color: var(--fg);
}

.page-news .news-tagcloud .tag--sm {
  font-size: 13px;
  color: var(--fg-muted);
}

.page-news .news-archive {
  border: 1px solid var(--border);
  background: var(--surface);
}

.page-news .news-archive h3 {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

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

.page-news .news-archive-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
}

.page-news .news-archive-item:last-child {
  border-bottom: 0;
}

.page-news .news-archive-item::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.page-news .news-archive-item .mono {
  color: var(--accent-ink);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.page-news .news-archive-item span:last-child {
  color: var(--fg);
}

/* ---------- 右侧栏 ---------- */

.page-news .news-rail {
  display: grid;
  gap: 20px;
}

.page-news .news-rail-card {
  padding: 22px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.page-news .news-rail-card h2 {
  margin: 10px 0 16px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

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

.page-news .news-picks a {
  display: block;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  background: var(--bg-alt);
  color: var(--fg);
  font-size: 15px;
  text-decoration: none;
  transition: border-left-color 180ms var(--ease), background 180ms var(--ease);
}

.page-news .news-picks a:hover {
  border-left-color: var(--red);
  background: var(--surface-2);
}

.page-news .news-rail-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-muted);
}

.page-news .news-rail-actions {
  margin: 16px 0 0;
}

.page-news .news-rail-card--dark {
  border-color: var(--ink-2);
  background: var(--ink);
  color: var(--paper);
}

.page-news .news-rail-card--dark .eyebrow {
  color: var(--gold-soft);
}

.page-news .news-rail-batch {
  margin: 12px 0 0;
  font-size: clamp(34px, 8vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-news .news-rail-batch-label {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
}

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

.page-news .news-rail-stats li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(198, 163, 74, 0.25);
  font-size: 14px;
  color: var(--gold-soft);
}

.page-news .news-rail-stats li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* ---------- 响应式 ---------- */

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

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

  .page-news .news-series {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
}

@media (min-width: 920px) {
  .page-news .news-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
    padding: 32px 0 64px;
  }

  .page-news .news-strip {
    padding: 36px 32px;
  }
}

@media (min-width: 1040px) {
  .page-news .news-body {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .page-news .news-rail {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-entry,
  .page-news .news-entry-cue,
  .page-news .news-picks a {
    transition: none;
  }
}
