.page-news {
  --news-border: rgba(255, 255, 255, 0.15);
  --news-green-tint: rgba(0, 255, 136, 0.08);
  --news-orange-tint: rgba(255, 127, 0, 0.12);
  --news-rail-width: 230px;
  position: relative;
  scroll-behavior: smooth;
}

.page-news .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Hero 首屏信息 ===== */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 8px;
}

.page-news .news-hero::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  right: -32px;
  top: -20px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.22), rgba(255, 127, 0, 0.08));
  border-radius: 36px;
  transform: rotate(45deg);
  pointer-events: none;
}

.page-news .news-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}

.page-news .news-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-green);
}

.page-news .news-hero h1 {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-news .news-hero__lead {
  margin: 14px 0 0;
  max-width: 680px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.page-news .news-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .news-fact {
  flex: 1 1 120px;
  min-width: 120px;
  background: linear-gradient(145deg, rgba(15, 39, 70, 0.9), rgba(27, 58, 92, 0.55));
  border: 1px solid var(--news-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
}

.page-news .news-fact__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--color-green);
}

.page-news .news-fact__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== 更新列表区 ===== */
.page-news .news-feed {
  padding: 44px 0 8px;
}

.page-news .news-feed .section__title {
  margin: 0 0 20px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-news .news-feed .section__title::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, var(--news-border), transparent);
}

/* ===== 热门标签滤镜 ===== */
.page-news .tag-filter {
  border: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-news .tag-filter__label {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.page-news .tag-filter .tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: 13px;
  cursor: pointer;
  transition: filter 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.page-news .tag-filter .tag:hover {
  filter: brightness(1.08);
}

.page-news .tag-filter .tag-filter__all {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

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

.page-news .tag-filter input:checked + .tag {
  background: var(--color-green);
  color: #0A192F;
}

.page-news .tag-filter input:checked + .tag--orange {
  background: var(--color-orange);
  color: #0A192F;
}

/* 过滤逻辑：选择标签时隐藏不匹配卡片 */
.page-news .news-feed:has(#tag-feature:checked) .update-card:not([data-tag="feature"]),
.page-news .news-feed:has(#tag-data:checked) .update-card:not([data-tag="data"]),
.page-news .news-feed:has(#tag-ui:checked) .update-card:not([data-tag="ui"]),
.page-news .news-feed:has(#tag-subscribe:checked) .update-card:not([data-tag="subscribe"]),
.page-news .news-feed:has(#tag-topic:checked) .update-card:not([data-tag="topic"]) {
  display: none;
}

/* ===== 时间线 + 摘要布局 ===== */
.page-news .news-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== 时间线面板 ===== */
.page-news .timeline-panel {
  background: linear-gradient(160deg, #0F2746, #1B3A5C);
  border: 1px solid var(--news-border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
}

.page-news .timeline-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-inline: 4px;
}

.page-news .timeline-panel__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.page-news .timeline-panel__count {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-green);
}

.page-news .timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-news .timeline-item {
  flex: 0 0 auto;
  min-width: 150px;
}

.page-news .timeline-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.25s ease, transform 0.25s ease;
}

.page-news .timeline-link:hover,
.page-news .timeline-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.page-news .timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.12);
  flex: 0 0 auto;
}

.page-news .timeline-dot--orange {
  background: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(255, 127, 0, 0.14);
}

.page-news .timeline-link__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-news .timeline-link__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.page-news .timeline-link__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}

.page-news .timeline-panel__foot {
  display: none;
}

/* ===== 更新卡片流 ===== */
.page-news .news-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-news .update-card {
  position: relative;
  border: 1px solid var(--news-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 39, 70, 0.85), rgba(27, 58, 92, 0.45));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-news .update-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: var(--color-green);
}

.page-news .update-card--ui::before,
.page-news .update-card--topic::before {
  background: var(--color-orange);
}

.page-news .update-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.page-news .update-details {
  display: block;
}

.page-news .update-summary {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 20px 18px;
  cursor: pointer;
}

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

.page-news .update-order {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-green);
  background: var(--news-green-tint);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.page-news .update-card--ui .update-order,
.page-news .update-card--topic .update-order {
  color: var(--color-orange);
  background: var(--news-orange-tint);
}

.page-news .update-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.page-news .update-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}

.page-news .update-title {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-news .update-brief {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.page-news .update-toggle {
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
  color: var(--color-green);
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.page-news .update-card--ui .update-toggle,
.page-news .update-card--topic .update-toggle {
  color: var(--color-orange);
}

.page-news .update-details[open] .update-toggle {
  transform: rotate(45deg);
}

.page-news .update-body {
  padding: 20px 20px 24px;
  border-top: 1px dashed var(--news-border);
}

.page-news .update-body p {
  margin: 0 0 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.page-news .update-list {
  margin: 8px 0 16px;
  padding-left: 20px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.page-news .update-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ===== 图片容器 ===== */
.page-news .media-figure {
  margin: 18px 0 0;
}

.page-news .media-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--news-border);
  background: linear-gradient(145deg, #0F2746, #1B3A5C);
}

.page-news .media-figure--wide img {
  width: 100%;
  object-fit: cover;
}

.page-news .media-figure--phone img {
  display: block;
  max-width: 260px;
  margin-inline: auto;
  object-fit: contain;
}

.page-news .media-figure--square img {
  width: 100%;
  max-width: 420px;
  object-fit: contain;
}

.page-news .media-figure figcaption {
  margin-top: 10px;
  text-align: center;
}

/* ===== 更新订阅 ===== */
.page-news .news-subscribe {
  padding: 56px 0 72px;
}

.page-news .news-subscribe__card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(15, 39, 70, 0.6) 50%, rgba(255, 127, 0, 0.12));
  border: 1px solid var(--news-border);
  border-radius: 24px;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-news .news-subscribe__card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.18), transparent 70%);
  top: -60px;
  right: -50px;
  pointer-events: none;
}

.page-news .news-subscribe__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green);
}

.page-news .news-subscribe h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.3;
}

.page-news .news-subscribe p {
  margin: 12px 0 0;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 560px;
}

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

.page-news .subscribe-action__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-green), #00b67f);
  color: #0A192F;
  font-weight: 900;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 26px;
  cursor: pointer;
  list-style: none;
}

.page-news .subscribe-action__btn::-webkit-details-marker {
  display: none;
}

.page-news .subscribe-action__btn:hover {
  filter: brightness(1.05);
}

.page-news .subscribe-action__feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--news-green-tint);
  color: var(--color-green);
  font-size: 14px;
  line-height: 1.5;
}

.page-news .subscribe-action__meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== 桌面端 ===== */
@media (min-width: 860px) {
  .page-news .news-hero {
    padding: 44px 0 16px;
  }

  .page-news .news-hero__grid {
    grid-template-columns: 1fr minmax(280px, 420px);
    align-items: end;
    gap: 40px;
  }

  .page-news .news-hero h1 {
    font-size: 44px;
  }

  .page-news .news-feed {
    padding-top: 64px;
  }

  .page-news .news-layout {
    display: grid;
    grid-template-columns: var(--news-rail-width) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .page-news .timeline-panel {
    position: sticky;
    top: calc(var(--topbar-height) + 28px);
    max-height: calc(100vh - var(--topbar-height) - 56px);
    overflow-y: auto;
    padding: 22px 18px;
  }

  .page-news .timeline-list {
    display: block;
    overflow: visible;
    position: relative;
    padding-left: 8px;
  }

  .page-news .timeline-list::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 255, 136, 0.5), rgba(255, 127, 0, 0.4), transparent);
  }

  .page-news .timeline-item {
    flex: none;
    min-width: 0;
    position: relative;
  }

  .page-news .timeline-link {
    background: transparent;
    padding: 10px 8px 10px 20px;
  }

  .page-news .timeline-link:hover,
  .page-news .timeline-link:focus-visible {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.06);
  }

  .page-news .timeline-dot {
    position: relative;
    z-index: 1;
  }

  .page-news .timeline-panel__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--news-border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
  }

  .page-news .update-summary {
    padding: 28px 32px 24px;
  }

  .page-news .update-body {
    padding: 22px 32px 32px;
  }

  .page-news .news-subscribe__card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 44px 52px;
  }

  .page-news .news-subscribe__text {
    max-width: 620px;
  }
}
