.page-news {
  --band-cyan: var(--cyan);
  --band-moss: var(--moss);
  --band-clay: var(--clay);
  --band-haze: var(--haze);
  --entry-radius: 12px;
  display: block;
  padding-bottom: clamp(48px, 8vw, 112px);
}

.page-news .breadcrumbs {
  padding: 18px 0 4px;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 4vw, 40px) 0 clamp(30px, 6vw, 70px);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  inset: -14% -18% auto -18%;
  height: 78%;
  background:
    linear-gradient(112deg, rgba(61, 242, 224, 0.13), rgba(61, 242, 224, 0) 46%),
    linear-gradient(292deg, rgba(255, 63, 164, 0.12), rgba(255, 63, 164, 0) 52%);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 90%);
  pointer-events: none;
  z-index: 0;
}

.page-news .news-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-news .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
}

.page-news .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-news .hero-kicker .num {
  color: var(--clay);
}

.page-news .news-hero h1 {
  margin: 0 0 18px;
  max-width: 20ch;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(32px, 6.6vw, 60px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-shadow: var(--glow-cyan);
}

.page-news .hero-lede {
  margin: 0;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(239, 233, 220, 0.86);
}

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

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

.page-news .hero-panel {
  position: relative;
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--radius);
}

.page-news .panel-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--haze);
}

.page-news .hero-panel .kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(46, 57, 73, 0.9);
}

.page-news .hero-panel .kv-row:last-of-type {
  border-bottom: 0;
}

.page-news .hero-panel .kv-key {
  font-size: 13px;
  color: var(--haze);
  letter-spacing: 0.06em;
}

.page-news .hero-panel .kv-val {
  font-size: 14px;
  color: var(--cream);
  text-align: right;
}

.page-news .hero-panel .kv-val .num {
  font-family: var(--font-mono);
  color: var(--cyan);
}

.page-news .panel-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: var(--hair);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(138, 155, 176, 0.95);
}

@media (min-width: 920px) {
  .page-news .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    align-items: end;
  }
}

/* ---------- 批次索引条与筛选 ---------- */
.page-news .rail-section {
  padding-top: 6px;
}

.page-news .batch-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 16px;
  border-bottom: var(--hair);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.page-news .rail-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: var(--hair);
  border-radius: 999px;
  background: rgba(26, 33, 48, 0.7);
  color: var(--haze);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  scroll-snap-align: start;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-news .rail-item:hover,
.page-news .rail-item:focus-visible {
  color: var(--cyan);
  border-color: rgba(61, 242, 224, 0.5);
}

.page-news .rail-item.is-current {
  color: var(--cyan);
  border-color: rgba(61, 242, 224, 0.55);
  background: rgba(61, 242, 224, 0.07);
}

.page-news .rail-num {
  font-family: var(--font-mono);
  color: var(--clay);
}

.page-news .rail-item.is-current .rail-num {
  color: var(--cyan);
}

.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0 4px;
}

.page-news .filter-label {
  margin-right: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--haze);
}

.page-news .filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-news .filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: var(--hair);
  border-radius: 999px;
  background: rgba(26, 33, 48, 0.6);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .filter-chip:hover {
  border-color: rgba(61, 242, 224, 0.4);
  color: var(--cyan);
}

.page-news .filter-input:checked + .filter-chip {
  color: var(--ink);
  background: linear-gradient(100deg, var(--moss), var(--cyan));
  border-color: transparent;
}

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

/* ---------- 章节骨架 ---------- */
.page-news .section {
  padding-top: clamp(40px, 7vw, 88px);
}

.page-news .section-head {
  margin-bottom: clamp(18px, 3vw, 34px);
  max-width: 68ch;
}

.page-news .section-head .section-num {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--clay);
}

.page-news .section-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.28;
  color: var(--cream);
}

.page-news .section-lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(138, 155, 176, 0.98);
}

/* ---------- 图 ---------- */
.page-news .figure {
  margin: 0 0 clamp(22px, 3.4vw, 38px);
}

.page-news .figure-frame {
  border: var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
}

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

.page-news .figure-cap {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--haze);
}

/* ---------- 摘要列表 ---------- */
.page-news .summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--hair);
  counter-reset: none;
}

.page-news .summary-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 15px 2px;
  border-bottom: var(--hair);
}

.page-news .sum-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--clay);
}

.page-news .summary-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(239, 233, 220, 0.92);
}

/* ---------- 批次分组 ---------- */
.page-news .batch-group {
  margin-top: clamp(26px, 4vw, 46px);
}

.page-news .batch-group:first-of-type {
  margin-top: 0;
}

.page-news .batch-band {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--band-color, var(--stone-2));
}

.page-news .band-cyan { --band-color: var(--band-cyan); }
.page-news .band-moss { --band-color: var(--band-moss); }
.page-news .band-clay { --band-color: var(--band-clay); }
.page-news .band-amber { --band-color: var(--amber); }
.page-news .band-haze { --band-color: var(--band-haze); }

.page-news .band-num {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
  color: var(--band-color, var(--cream));
  text-shadow: 0 0 12px rgba(61, 242, 224, 0.25);
}

.page-news .band-label {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.page-news .band-count {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--haze);
}

/* ---------- 条目卡 ---------- */
.page-news .entry-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-top: 16px;
}

.page-news .entry-card {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 14px;
  padding: clamp(16px, 2.2vw, 22px);
  border: var(--hair);
  border-left: 2px solid var(--topic-color, var(--stone-2));
  border-radius: var(--entry-radius);
  background: linear-gradient(170deg, rgba(26, 33, 48, 0.92), rgba(11, 18, 32, 0.92));
  transition: opacity 0.24s var(--ease), filter 0.24s var(--ease), transform 0.24s var(--ease);
}

.page-news .entry-card:hover {
  transform: translateY(-2px);
}

.page-news .entry-card[data-topic="version"] { --topic-color: var(--cyan); }
.page-news .entry-card[data-topic="guide"] { --topic-color: var(--moss); }
.page-news .entry-card[data-topic="catalog"] { --topic-color: var(--clay); }
.page-news .entry-card[data-topic="tablet"] { --topic-color: var(--amber); }

.page-news .entry-card .status-lamp {
  margin-top: 6px;
}

.page-news .entry-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cream);
}

.page-news .entry-desc {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(239, 233, 220, 0.78);
}

.page-news .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .entry-scope {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--haze);
}

/* 主题聚焦：仅让同类条目保持高亮 */
.page-news:has(#nf-version:checked) .entry-card:not([data-topic="version"]),
.page-news:has(#nf-guide:checked) .entry-card:not([data-topic="guide"]),
.page-news:has(#nf-catalog:checked) .entry-card:not([data-topic="catalog"]),
.page-news:has(#nf-tablet:checked) .entry-card:not([data-topic="tablet"]) {
  opacity: 0.22;
  filter: saturate(0.3);
}

@media (min-width: 780px) {
  .page-news .entry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .page-news .entry-list > .entry-card:nth-child(even) {
    margin-top: 20px;
  }
}

/* ---------- 节奏说明安静区 ---------- */
.page-news .cadence-quiet {
  padding: clamp(18px, 3vw, 34px) 0;
  border-top: var(--hair);
}

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

.page-news .step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: var(--hair);
}

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

.page-news .step .step-num {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-shadow: var(--glow-amber);
}

.page-news .step p {
  margin: 0;
  max-width: 76ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(239, 233, 220, 0.9);
}

/* ---------- 反馈与选题 ---------- */
.page-news .submit-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber);
}

.page-news .submit-copy p {
  margin: 0 0 16px;
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(239, 233, 220, 0.88);
}

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

.page-news .copy-value {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  word-break: break-all;
}

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

.page-news .submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

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

@media (min-width: 820px) {
  .page-news .submit-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

/* ---------- 焦点可见性 ---------- */
.page-news a:focus-visible,
.page-news button:focus-visible,
.page-news label:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .page-news .entry-card,
  .page-news .rail-item,
  .page-news .filter-chip {
    transition: none;
  }

  .page-news .entry-card:hover {
    transform: none;
  }
}
</main>
