.page-news {
  --track-glow: rgba(57, 255, 20, 0.6);
  --track-dim: rgba(57, 255, 20, 0.18);
  position: relative;
  color: var(--text-light);
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 107, 53, 0.1) 0, transparent 26rem),
    radial-gradient(circle at 86% 42%, rgba(57, 255, 20, 0.06) 0, transparent 22rem);
  overflow: hidden;
}

.page-news h1,
.page-news h2,
.page-news h3 {
  font-family: var(--font-display);
}

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

/* ===== 首屏 hero ===== */
.page-news .news-hero {
  position: relative;
  padding: clamp(56px, 9vw, 96px) 0 44px;
  border-bottom: 1px solid var(--border-color);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 123, 140, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 123, 140, 0.13) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

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

.page-news .news-hero-inner::after {
  content: "V4.2";
  position: absolute;
  right: 0;
  top: 8px;
  display: none;
  font: 800 104px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(57, 255, 20, 0.28);
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
}

.page-news .news-hero-content {
  max-width: 880px;
}

.page-news .news-hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(25px, 5vw, 42px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--text-white);
  max-width: 12em;
}

.page-news .news-hero-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 40em;
}

.page-news .news-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 28px;
  max-width: 720px;
}

.page-news .hero-metric {
  padding: 16px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(11, 29, 58, 0.55);
}

.page-news .hero-metric em {
  display: block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--support-gray);
}

.page-news .hero-metric strong {
  display: block;
  margin-top: 6px;
  font: 700 22px/1.2 var(--font-mono);
  color: var(--accent-green);
  letter-spacing: 0.03em;
  text-shadow: var(--glow-green);
}

.page-news .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== 最新版本 ===== */
.page-news .news-latest {
  padding: 64px 0 0;
}

.page-news .latest-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-news .latest-visual {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), rgba(255, 107, 53, 0.06));
}

.page-news .latest-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-news .latest-visual::after {
  content: "v4.2";
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 6px 14px;
  background: rgba(11, 29, 58, 0.78);
  border: 1px solid rgba(57, 255, 20, 0.45);
  border-radius: 999px;
  font: 700 14px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent-green);
}

.page-news .latest-content {
  max-width: 640px;
}

.page-news .latest-content h2 {
  margin: 12px 0 16px;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0.01em;
  color: var(--text-white);
}

.page-news .version-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 16px;
  border: 1px solid rgba(57, 255, 20, 0.45);
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.12);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-green);
  box-shadow: var(--glow-green);
}

.page-news .latest-note {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

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

.page-news .latest-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px dashed rgba(107, 123, 140, 0.3);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light);
}

.page-news .latest-list li:last-child {
  border-bottom: 0;
}

.page-news .latest-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: var(--glow-orange);
}

.page-news .latest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ===== 更新日志时间线 ===== */
.page-news .news-timeline {
  position: relative;
  padding: 72px 0 40px;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 123, 140, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 123, 140, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.page-news .timeline-header,
.page-news .timeline-track {
  position: relative;
  z-index: 1;
}

.page-news .timeline-header {
  max-width: 640px;
  margin-bottom: 28px;
}

.page-news .timeline-header h2 {
  margin: 12px 0 10px;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0.01em;
  color: var(--text-white);
}

.page-news .timeline-header p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-news .timeline-art {
  margin: 0 0 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.06), transparent);
}

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

.page-news .timeline-track {
  padding-left: 34px;
}

.page-news .timeline-track::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--track-glow), var(--track-dim) 72%, rgba(107, 123, 140, 0.25));
}

.page-news .timeline-item {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(11, 29, 58, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.page-news .timeline-item[open] {
  border-color: rgba(57, 255, 20, 0.38);
  background: rgba(13, 42, 74, 0.82);
}

.page-news .timeline-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 18px;
}

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

.page-news .timeline-item summary::marker {
  content: "";
}

.page-news .timeline-dot {
  position: absolute;
  left: -34px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--track-glow);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.16), var(--glow-green);
  transition: transform 0.3s ease;
}

.page-news .timeline-item[open] .timeline-dot {
  transform: scale(1.15);
}

.page-news .timeline-ver {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-green);
  white-space: nowrap;
}

.page-news .timeline-tit {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-light);
}

.page-news .timeline-stage {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  padding: 4px 10px;
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  white-space: nowrap;
}

.page-news .timeline-detail {
  padding: 4px 18px 16px;
  border-top: 1px dashed rgba(107, 123, 140, 0.3);
}

.page-news .timeline-detail ul {
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-news .timeline-detail li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-news .timeline-detail li::before {
  content: "›";
  position: absolute;
  left: 2px;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-green);
}

/* ===== 登录异常列表 ===== */
.page-news .news-error-log {
  position: relative;
  padding: 72px 0 80px;
  background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.05) 50%, transparent);
}

.page-news .error-log-grid {
  display: grid;
  gap: 36px;
}

.page-news .error-log-copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(23px, 4vw, 32px);
  letter-spacing: 0.01em;
  color: var(--text-white);
}

.page-news .error-log-copy > p {
  margin: 0 0 4px;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
}

.page-news .code-window {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(107, 123, 140, 0.35);
  border-radius: var(--radius-lg);
  background: #050c19;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.page-news .code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(107, 123, 140, 0.25);
}

.page-news .code-file {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--support-gray);
}

.page-news .code-count {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-green);
}

.page-news .code-list {
  margin: 0;
  padding: 8px 0;
  list-style: none;
  counter-reset: issue-counter;
}

.page-news .code-list li {
  counter-increment: issue-counter;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 7px 16px;
  border-bottom: 1px dashed rgba(107, 123, 140, 0.16);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-news .code-list li:last-child {
  border-bottom: 0;
}

.page-news .code-list li::before {
  content: counter(issue-counter, decimal-leading-zero);
  min-width: 22px;
  text-align: right;
  font-weight: 600;
  color: var(--support-gray);
}

.page-news .code-err {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-orange);
}

.page-news .error-log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-news .error-log-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-news .error-log-aside > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.page-news .error-tip {
  padding: 22px;
  border: 1px solid rgba(255, 107, 53, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(255, 107, 53, 0.07);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.page-news .error-tip h3 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text-white);
}

.page-news .error-tip ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.page-news .error-tip ol li::marker {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-orange);
}

/* ===== 底部雪花纹理 ===== */
.page-news .news-snow {
  position: relative;
  padding: 32px 0 72px;
}

.page-news .news-snow img {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-news .news-hero-meta {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-news .timeline-item summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .page-news .timeline-ver {
    grid-column: 1;
    grid-row: 1;
  }

  .page-news .timeline-tit {
    grid-column: 2;
    grid-row: 1;
  }

  .page-news .timeline-stage {
    grid-column: 3;
    grid-row: 1;
    justify-self: auto;
  }

  .page-news .timeline-detail {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (min-width: 960px) {
  .page-news .news-hero {
    padding: 84px 0 72px;
  }

  .page-news .news-latest {
    padding: 96px 0 0;
  }

  .page-news .latest-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .page-news .latest-content {
    padding-left: 12px;
  }

  .page-news .news-timeline {
    padding: 96px 0 72px;
  }

  .page-news .news-timeline::before {
    background-size: 80px 80px;
  }

  .page-news .timeline-track {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 44px;
  }

  .page-news .timeline-dot {
    left: -44px;
  }

  .page-news .timeline-item summary {
    padding: 20px 24px;
  }

  .page-news .timeline-detail {
    padding: 8px 24px 24px;
  }

  .page-news .news-error-log {
    padding: 96px 0 108px;
  }

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

  .page-news .news-snow {
    padding: 48px 0 96px;
  }
}

@media (min-width: 1200px) {
  .page-news .news-hero-inner::after {
    display: block;
  }
}
