.page-news {
  --news-panel: rgba(27, 49, 73, 0.52);
  --news-ink-soft: #33475e;
  padding-bottom: 20px;
}

.page-news .news-head {
  padding-top: 22px;
}

.page-news .news-head .kicker {
  margin: 14px 0 10px;
}

.page-news .news-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 5.4vw, 50px);
  line-height: 1.16;
  color: var(--paper-50);
}

.page-news .news-lede {
  margin: 0;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist-200);
}

.page-news .news-stats {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.page-news .news-stat {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border-top: 2px solid var(--amber-500);
}

.page-news .news-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1.1;
  color: var(--amber-500);
}

.page-news .news-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mist-200);
}

/* 双栏：左索引抽屉 + 右内容 */
.page-news .layout-rail {
  display: grid;
  gap: 26px;
  align-items: start;
  padding-top: 30px;
}

.page-news .news-main {
  min-width: 0;
}

.page-news .news-rail {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}

.page-news .rail__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--amber-500);
}

.page-news .rail__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-news .rail__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border-left: 3px solid transparent;
  font-size: 14.5px;
  color: var(--paper-50);
  text-decoration: none;
  transition: background 0.16s ease-out, border-color 0.16s ease-out;
}

.page-news .rail__link:hover {
  background: var(--ink-700);
  border-left-color: var(--amber-700);
}

.page-news .rail__link[aria-current="true"] {
  background: var(--ink-700);
  border-left-color: var(--amber-500);
  font-weight: 700;
}

.page-news .rail__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-500);
}

/* 标签筛选 */
.page-news .tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .tag-label {
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--mist-200);
  transition: background 0.16s ease-out, color 0.16s ease-out, border-color 0.16s ease-out;
}

.page-news .tag-label:hover {
  border-color: var(--amber-700);
  color: var(--paper-50);
}

.page-news #tag-all:checked ~ .layout-rail .tag-label[for="tag-all"],
.page-news #tag-version:checked ~ .layout-rail .tag-label[for="tag-version"],
.page-news #tag-route:checked ~ .layout-rail .tag-label[for="tag-route"],
.page-news #tag-compat:checked ~ .layout-rail .tag-label[for="tag-compat"] {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--ink-900);
  font-weight: 700;
}

.page-news #tag-all:focus-visible ~ .layout-rail .tag-label[for="tag-all"],
.page-news #tag-version:focus-visible ~ .layout-rail .tag-label[for="tag-version"],
.page-news #tag-route:focus-visible ~ .layout-rail .tag-label[for="tag-route"],
.page-news #tag-compat:focus-visible ~ .layout-rail .tag-label[for="tag-compat"] {
  outline: 2px solid var(--celadon-400);
  outline-offset: 2px;
}

.page-news #tag-version:checked ~ .layout-rail .notice-card:not(.notice-card--version),
.page-news #tag-route:checked ~ .layout-rail .notice-card:not(.notice-card--route),
.page-news #tag-compat:checked ~ .layout-rail .notice-card:not(.notice-card--compat) {
  display: none;
}

/* 章节骨架 */
.page-news .news-sec {
  margin-top: 46px;
}

.page-news .news-main > .news-sec:first-child {
  margin-top: 0;
}

.page-news .news-sec .section-title,
.page-news .news-sec .kicker {
  margin-top: 0;
}

.page-news .section-title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.25;
  color: var(--paper-50);
}

.page-news .section-lede {
  margin: 0 0 4px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--mist-200);
}

.page-news .news-inline-link {
  color: var(--amber-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 线路调整：瓷白通栏 */
.page-news .route-board {
  margin-top: 20px;
  padding: 18px;
  background: var(--cream-100);
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
  display: grid;
  gap: 20px;
}

.page-news .route-board .figure__caption {
  color: var(--news-ink-soft);
}

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

.page-news .route-item {
  position: relative;
  padding: 12px 14px 12px 32px;
  border-radius: var(--radius-sm);
  background: rgba(11, 22, 38, 0.06);
}

.page-news .route-item__dot {
  position: absolute;
  left: 13px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ember-500);
  box-shadow: 0 0 0 4px rgba(224, 106, 60, 0.18);
}

.page-news .route-item__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-900);
}

.page-news .route-item__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--news-ink-soft);
}

/* 对照表 */
.page-news .compare-scroll {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-800);
  -webkit-overflow-scrolling: touch;
}

.page-news .compare-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-news .compare-table th {
  padding: 12px 14px;
  text-align: left;
  background: var(--ink-700);
  color: var(--amber-500);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.page-news .compare-table td {
  padding: 13px 14px;
  vertical-align: top;
  line-height: 1.65;
  color: var(--mist-200);
  border-top: 1px solid var(--line);
}

.page-news .compare-table td:first-child {
  color: var(--paper-50);
  font-weight: 700;
}

.page-news .compare-table .mono {
  color: var(--celadon-400);
}

/* 时间线 */
.page-news .timeline-wrap {
  margin-top: 20px;
  display: grid;
  gap: 22px;
}

.page-news .timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--line-strong);
  display: grid;
  gap: 12px;
}

.page-news .timeline__item {
  position: relative;
}

.page-news .timeline__dot {
  position: absolute;
  left: -29px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-700);
  border: 2px solid var(--line-strong);
}

.page-news .timeline__dot--done {
  background: var(--celadon-400);
  border-color: var(--celadon-400);
  box-shadow: 0 0 0 4px rgba(99, 198, 171, 0.14);
}

.page-news .timeline__dot--pending {
  background: var(--ember-500);
  border-color: var(--ember-500);
  box-shadow: 0 0 0 4px rgba(224, 106, 60, 0.16);
}

.page-news .timeline__details {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.16s ease-out;
}

.page-news .timeline__details:hover {
  border-color: var(--amber-700);
}

.page-news .timeline__details summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  cursor: pointer;
  list-style: none;
}

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

.page-news .timeline__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--celadon-400);
  letter-spacing: 0.02em;
}

.page-news .timeline__title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--paper-50);
}

.page-news .timeline__details[open] .timeline__title {
  color: var(--amber-500);
}

.page-news .timeline__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist-200);
}

.page-news .timeline__text .mono {
  color: var(--amber-500);
}

/* 通告列表 */
.page-news .notice-intro {
  margin-top: 16px;
  display: grid;
  gap: 18px;
}

.page-news .notice-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mist-200);
  border-top: 1px dashed var(--line-strong);
  padding-top: 10px;
}

.page-news .notice-hint__value {
  color: var(--amber-500);
  font-weight: 700;
}

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

.page-news .notice-card {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: transform 0.16s ease-out, border-color 0.16s ease-out;
}

.page-news .notice-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber-700);
}

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

.page-news .notice-card__version {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--amber-500);
  letter-spacing: 0.02em;
}

.page-news .notice-card__title {
  margin: 10px 0 6px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--paper-50);
}

.page-news .notice-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--mist-200);
}

.page-news .notice-card__meta {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist-200);
}

.page-news .notice-card__meta .mono {
  color: var(--celadon-400);
  font-family: var(--font-mono);
}

/* 季度小结：档案册堆叠 */
.page-news .quarter-wrap {
  margin-top: 20px;
  display: grid;
  gap: 22px;
}

.page-news .quarter-stack {
  display: grid;
  gap: 12px;
}

.page-news .quarter-card {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-left: 4px solid var(--celadon-400);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 10px 0 -6px rgba(199, 212, 226, 0.1), 0 20px 0 -12px rgba(199, 212, 226, 0.06);
}

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

.page-news .quarter-card__no {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--amber-500);
}

.page-news .quarter-card__title {
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--paper-50);
}

.page-news .quarter-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--mist-200);
}

.page-news .quarter-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist-200);
}

/* 收尾 */
.page-news .news-cta {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}

.page-news .news-cta .kicker {
  margin: 0 0 8px;
}

.page-news .news-cta__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--paper-50);
}

.page-news .news-cta__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mist-200);
}

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

/* 图片 */
.page-news .figure {
  margin: 0;
}

.page-news .figure__frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ink-900);
}

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

.page-news .figure__caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist-200);
}

/* 断点 */
@media (min-width: 780px) {
  .page-news .route-board {
    grid-template-columns: 1.05fr 1fr;
    padding: 24px;
    gap: 26px;
    align-items: start;
  }

  .page-news .notice-intro {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }
}

@media (min-width: 920px) {
  .page-news .layout-rail {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: 32px;
    padding-top: 36px;
  }

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

  .page-news .timeline-wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 26px;
  }

  .page-news .quarter-wrap {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
  }

  .page-news .news-cta {
    padding: 30px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .notice-card:hover {
    transform: none;
  }

  .page-news .rail__link,
  .page-news .tag-label,
  .page-news .notice-card,
  .page-news .timeline__details {
    transition: none;
  }
}
