.page-news {
  background: var(--bg-deep);
}

.page-news .breadcrumb {
  margin-bottom: 8px;
}

/* ---- Hero ---- */
.page-news .news-hero {
  padding: 28px 0 8px;
}

.page-news .news-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 16px 0 14px;
  color: var(--text-light);
  letter-spacing: 0.01em;
}

.page-news .news-hero__accent {
  display: block;
  margin-top: 6px;
  color: var(--accent-green);
  font-size: 0.48em;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.page-news .news-hero__lead {
  max-width: 58em;
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-silver);
}

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

.page-news .news-hero__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

/* ---- 两列布局 ---- */
.page-news .news-layout {
  display: block;
  padding-top: 32px;
}

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

.page-news .news-layout__side {
  min-width: 0;
  margin-top: 40px;
}

/* ---- 通用 section 头部 ---- */
.page-news .section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.page-news .section-head__index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  margin: 4px 0 0;
  color: var(--accent-green);
}

.page-news .section-head__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  margin: 0;
  color: var(--text-light);
}

.page-news .section-head__desc {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--text-silver);
}

.page-news .news-feed,
.page-news .version-archive {
  margin-bottom: 64px;
}

/* ---- 分类筛选栏 ---- */
.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.page-news .filter-bar__btn {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 8px 16px;
  color: var(--text-silver);
  background: var(--bg-panel);
  border: 1px solid rgba(176, 184, 201, 0.25);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  scroll-margin-top: 80px;
}

.page-news .filter-bar__btn:hover {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.page-news .filter-bar__btn:target {
  color: var(--bg-deep);
  background: var(--accent-green);
  border-color: var(--accent-green);
}

/* ---- 文章列表卡片 ---- */
.page-news .news-list {
  display: block;
}

.page-news .news-item {
  position: relative;
  display: block;
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-left-color 0.3s var(--ease);
  scroll-margin-top: 16px;
}

.page-news .news-item:hover {
  background: var(--green-veil);
  border-left-color: var(--accent-green);
  transform: translateX(4px);
}

.page-news .news-item--featured {
  border-left-color: var(--accent-orange);
}

.page-news .news-item--featured:hover {
  border-left-color: var(--accent-orange);
}

.page-news .news-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.page-news .news-item__time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-silver);
  opacity: 0.72;
}

.page-news .news-item__title {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.35;
  margin: 0 0 8px;
}

.page-news .news-item__title a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.page-news .news-item__title a:hover {
  color: var(--accent-green);
}

.page-news .news-item__desc {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-silver);
}

.page-news .news-item__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-green);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease);
}

.page-news .news-item__more:hover {
  color: var(--text-light);
}

.page-news .news-item__arrow {
  transition: transform 0.25s var(--ease);
}

.page-news .news-item__more:hover .news-item__arrow {
  transform: translateX(4px);
}

/* ---- 分类过滤（:target 渐进增强） ---- */
.page-news .filter-bar:has(#feed-match:target) ~ .news-list .news-item:not(.news-item--match),
.page-news .filter-bar:has(#feed-expert:target) ~ .news-list .news-item:not(.news-item--expert),
.page-news .filter-bar:has(#feed-version:target) ~ .news-list .news-item:not(.news-item--version),
.page-news .filter-bar:has(#feed-data:target) ~ .news-list .news-item:not(.news-item--data) {
  display: none;
}

.page-news .filter-bar:has(#feed-all:target) ~ .news-list .news-item {
  display: block;
}

/* ---- 版本档案时间轴 ---- */
.page-news .version-timeline {
  position: relative;
  margin: 32px 0;
  padding-left: 20px;
  border-left: 2px solid rgba(176, 184, 201, 0.14);
}

.page-news .timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 22px;
}

.page-news .timeline-item:last-child {
  margin-bottom: 0;
}

.page-news .timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--bg-deep);
  border: 3px solid var(--accent-green);
  border-radius: 50%;
}

.page-news .timeline-item__year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 0 6px;
  color: var(--accent-green);
  letter-spacing: 0.04em;
}

.page-news .timeline-item__card {
  padding: 16px 18px;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease);
}

.page-news .timeline-item__card:hover {
  border-color: rgba(0, 255, 136, 0.4);
}

.page-news .timeline-item__card h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--text-light);
}

.page-news .timeline-item__card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-silver);
}

/* ---- 版本快照 ---- */
.page-news .version-snapshots {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--bg-track);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-news .version-snapshots__thumb {
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  line-height: 0;
  transition: border-color 0.25s var(--ease);
}

.page-news .version-snapshots__thumb:hover {
  border-color: var(--accent-green);
}

.page-news .version-snapshots__thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 240px;
}

.page-news .version-snapshots__note {
  flex: 1 1 220px;
}

.page-news .version-snapshots__hint {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  margin: 0 0 8px;
  color: var(--accent-green);
}

.page-news .version-snapshots__text {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-silver);
}

/* ---- 侧边栏共用面板 ---- */
.page-news .hot-panel,
.page-news .expert-panel,
.page-news .data-panel {
  padding: 20px;
  margin-bottom: 20px;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
}

.page-news .side-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.page-news .side-head__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  margin: 0;
  padding: 4px 8px;
  color: var(--accent-orange);
  background: rgba(255, 106, 0, 0.1);
  border-radius: var(--radius);
}

.page-news .side-head__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
  color: var(--text-light);
}

/* 热门专题 */
.page-news .hot-panel__figure {
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-track);
}

.page-news .hot-panel__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto;
}

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

.page-news .hot-panel__item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-news .hot-panel__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-news .hot-panel__rank {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--accent-green);
}

.page-news .hot-panel__item a {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-silver);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.page-news .hot-panel__item a:hover {
  color: var(--accent-green);
}

/* 专家数据面板 */
.page-news .expert-panel__title,
.page-news .data-panel__title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--text-light);
}

.page-news .venn {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 14px;
}

.page-news .venn__c--green {
  fill: rgba(0, 255, 136, 0.16);
  stroke: var(--accent-green);
  stroke-width: 1.5;
}

.page-news .venn__c--blue {
  fill: rgba(45, 107, 255, 0.14);
  stroke: var(--data-blue);
  stroke-width: 1.5;
}

.page-news .venn__c--orange {
  fill: rgba(255, 106, 0, 0.12);
  stroke: var(--accent-orange);
  stroke-width: 1.5;
}

.page-news .expert-panel__text {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-silver);
}

.page-news .expert-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}

.page-news .expert-panel__grid div {
  padding: 10px 12px;
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease);
}

.page-news .expert-panel__grid div:hover {
  border-color: rgba(0, 255, 136, 0.4);
}

.page-news .expert-panel__grid dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--text-silver);
  opacity: 0.75;
}

.page-news .expert-panel__grid dd {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  margin: 0;
  color: var(--accent-green);
}

/* 数据面板 */
.page-news .data-panel__figure {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: var(--radius);
}

.page-news .data-panel__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-news .data-panel__text {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-silver);
}

/* ---- 版本截图灯箱 ---- */
.page-news .lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.page-news .lightbox:target {
  visibility: visible;
  opacity: 1;
}

.page-news .lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.9);
}

.page-news .lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100vw - 32px));
  padding: 14px;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

.page-news .lightbox__panel img {
  display: block;
  width: 100%;
  height: auto;
}

.page-news .lightbox__note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin: 10px 0 0;
  color: var(--text-silver);
}

.page-news .lightbox__close {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.page-news .lightbox__close:hover {
  background: var(--accent-green);
  color: var(--bg-deep);
}

/* ---- 桌面端两列与侧栏固定 ---- */
@media (min-width: 960px) {
  .page-news .news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
  }

  .page-news .news-layout__side {
    position: sticky;
    top: 24px;
    margin-top: 0;
  }

  .page-news .news-hero {
    padding-top: 40px;
  }

  .page-news .news-item {
    padding: 24px 28px;
  }
}
