.page-news {
  --page-news-primary: #FF6A00;
  --page-news-primary-soft: #FF8C42;
  --page-news-night: #1A1A2E;
  --page-news-slate: #2D2D44;
  --page-news-silver: #C0C0C0;
  --page-news-fog: #F0F0F5;
  --page-news-cyan: #00B4D8;
  --page-news-alert: #FF4D4D;
  background-color: var(--color-night);
  color: var(--color-fog);
  overflow-x: hidden;
}

.page-news .breadcrumb {
  padding-top: 18px;
}

.page-news .page-kicker {
  color: var(--page-news-primary);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.page-news .section-heading-row {
  margin-bottom: 28px;
  padding-left: 12px;
  border-left: 4px solid var(--page-news-primary);
}

.page-news .section-heading {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  margin: 6px 0 8px;
  letter-spacing: 0.02em;
}

.page-news .section-subhead {
  max-width: 600px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240, 240, 245, 0.68);
}

/* ===== 首屏 Hero ===== */
.page-news .news-hero {
  position: relative;
  padding: 40px 0 56px;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(255, 106, 0, 0.14), transparent 52%),
    radial-gradient(ellipse at 8% 92%, rgba(0, 180, 216, 0.08), transparent 48%),
    linear-gradient(180deg, #1D1D36 0%, #1A1A2E 100%);
  overflow: hidden;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 192, 192, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 192, 192, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.page-news .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.page-news .hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 6vw, 50px);
  font-weight: 900;
  line-height: 1.12;
  margin: 12px 0 16px;
  letter-spacing: 0.01em;
  color: var(--page-news-fog);
}

.page-news .hero-desc {
  margin: 0 0 24px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(240, 240, 245, 0.74);
}

.page-news .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.page-news .hero-stat {
  background: rgba(45, 45, 68, 0.72);
  border: 1px solid rgba(192, 192, 192, 0.14);
  border-left: 3px solid var(--page-news-primary);
  padding: 10px 14px;
}

.page-news .hero-stat .data-readout {
  display: block;
  font-family: var(--font-data);
  font-size: 22px;
  font-weight: 700;
  color: var(--page-news-fog);
  line-height: 1;
}

.page-news .hero-stat .stat-unit {
  color: var(--page-news-primary);
  font-size: 15px;
  margin-left: 2px;
}

.page-news .hero-stat .stat-label {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--page-news-silver);
}

.page-news .hero-media .media-frame {
  border: 1px solid rgba(255, 106, 0, 0.3);
}

/* ===== 最新公告：筛选 + 时间线 ===== */
.page-news .news-announcement-section {
  background: linear-gradient(180deg, #20203D 0%, #1A1A2E 280px);
  border-top: 1px solid rgba(255, 106, 0, 0.18);
}

.page-news .news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-news .filter-anchor {
  display: none;
}

.page-news .news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .filter-btn {
  display: block;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--page-news-silver);
  background: var(--page-news-slate);
  border: 1px solid rgba(192, 192, 192, 0.18);
  border-left: 3px solid transparent;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-news .filter-btn:hover,
.page-news .filter-btn:focus-visible {
  color: var(--page-news-fog);
  background: rgba(255, 106, 0, 0.14);
  border-color: rgba(255, 106, 0, 0.35);
  outline: none;
}

.page-news .filter-btn.is-active {
  background: var(--gradient-fire);
  color: #fff;
  border-left-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.28);
}

.page-news #filter-version:target ~ .news-sidebar .filter-btn--version,
.page-news #filter-data:target ~ .news-sidebar .filter-btn--data,
.page-news #filter-topic:target ~ .news-sidebar .filter-btn--topic,
.page-news #filter-ops:target ~ .news-sidebar .filter-btn--ops {
  background: var(--gradient-fire);
  color: #fff;
  border-left-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.28);
}

.page-news #filter-version:target ~ .news-sidebar .filter-btn--all,
.page-news #filter-data:target ~ .news-sidebar .filter-btn--all,
.page-news #filter-topic:target ~ .news-sidebar .filter-btn--all,
.page-news #filter-ops:target ~ .news-sidebar .filter-btn--all {
  background: var(--page-news-slate);
  color: var(--page-news-silver);
  border-left-color: transparent;
  box-shadow: none;
}

.page-news #filter-version:target ~ .news-main .news-item:not(.cat-version),
.page-news #filter-data:target ~ .news-main .news-item:not(.cat-data),
.page-news #filter-topic:target ~ .news-main .news-item:not(.cat-topic),
.page-news #filter-ops:target ~ .news-main .news-item:not(.cat-ops) {
  display: none;
}

.page-news .filter-hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(192, 192, 192, 0.55);
}

.page-news .news-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.55), rgba(0, 180, 216, 0.25), rgba(192, 192, 192, 0.12));
}

.page-news .news-item {
  position: relative;
  padding-left: 32px;
}

.page-news .news-marker {
  position: absolute;
  left: 6px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--page-news-silver);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05), 0 0 12px rgba(255, 106, 0, 0.5);
}

.page-news .cat-version .news-marker {
  background: var(--page-news-primary);
}

.page-news .cat-data .news-marker {
  background: var(--page-news-cyan);
}

.page-news .cat-topic .news-marker {
  background: var(--page-news-silver);
}

.page-news .cat-ops .news-marker {
  background: var(--page-news-alert);
}

.page-news .news-card {
  padding: 18px 18px 20px;
  background: var(--page-news-slate);
  border: 1px solid rgba(192, 192, 192, 0.12);
  border-radius: 0;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.page-news .news-card:hover {
  border-color: rgba(255, 106, 0, 0.35);
  background: #31314A;
}

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

.page-news .news-cycle {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--page-news-silver);
}

.page-news .news-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--page-news-fog);
}

.page-news .news-card details {
  margin-top: 8px;
}

.page-news .news-card summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--page-news-primary);
}

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

.page-news .news-card summary::before {
  content: "＋ ";
}

.page-news .news-card details[open] summary::before {
  content: "－ ";
}

.page-news .news-card details p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240, 240, 245, 0.78);
}

.page-news .news-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--page-news-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 0, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-news .news-link:hover {
  color: var(--page-news-primary-soft);
  border-bottom-color: var(--page-news-primary-soft);
}

/* ===== 标签 ===== */
.page-news .tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.2;
}

.page-news .tag-version {
  background: rgba(255, 106, 0, 0.12);
  color: var(--page-news-primary);
  border: 1px solid rgba(255, 106, 0, 0.32);
}

.page-news .tag-data {
  background: rgba(0, 180, 216, 0.1);
  color: var(--page-news-cyan);
  border: 1px solid rgba(0, 180, 216, 0.32);
}

.page-news .tag-topic {
  background: rgba(192, 192, 192, 0.1);
  color: var(--page-news-silver);
  border: 1px solid rgba(192, 192, 192, 0.28);
}

.page-news .tag-maintenance {
  background: rgba(255, 77, 77, 0.1);
  color: var(--page-news-alert);
  border: 1px solid rgba(255, 77, 77, 0.32);
}

/* ===== 版本迭代日志 ===== */
.page-news .news-version-section {
  background: var(--page-news-night);
  border-top: 1px solid rgba(0, 180, 216, 0.12);
}

.page-news .version-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-news .version-log-list {
  display: flex;
  flex-direction: column;
  border-left: 2px solid rgba(255, 106, 0, 0.3);
  margin-left: 8px;
}

.page-news .version-row {
  position: relative;
  padding: 14px 16px 14px 28px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
  outline: none;
}

.page-news .version-row::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--page-news-night);
  border: 2px solid var(--page-news-primary);
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-news .version-row[data-year="2023"]::before,
.page-news .version-row[data-year="2024"]::before {
  border-color: var(--page-news-silver);
}

.page-news .version-row:hover,
.page-news .version-row:focus,
.page-news .version-row:focus-within {
  background: rgba(255, 106, 0, 0.06);
  border-left-color: var(--page-news-primary);
}

.page-news .version-row:hover::before,
.page-news .version-row:focus::before,
.page-news .version-row:focus-within::before {
  background: var(--page-news-primary);
  transform: scale(1.15);
}

.page-news .version-no {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  color: var(--page-news-primary);
  background: rgba(255, 106, 0, 0.1);
  padding: 3px 10px;
  border: 1px solid rgba(255, 106, 0, 0.28);
}

.page-news .version-title {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--page-news-fog);
  margin: 10px 0 6px;
}

.page-news .version-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240, 240, 245, 0.72);
}

.page-news .version-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.page-news .version-changelog {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, margin 0.3s ease;
}

.page-news .version-row:hover .version-changelog,
.page-news .version-row:focus .version-changelog,
.page-news .version-row:focus-within .version-changelog {
  max-height: 220px;
  opacity: 1;
  visibility: visible;
  margin-top: 10px;
}

.page-news .version-changelog ul {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  background: rgba(45, 45, 68, 0.7);
  border-left: 2px solid var(--page-news-primary);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(240, 240, 245, 0.8);
}

.page-news .version-changelog li::before {
  content: "◆ ";
  color: var(--page-news-primary);
  font-size: 10px;
}

.version-media,
.page-news .version-media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

/* ===== 赛事数据专题 ===== */
.page-news .news-topic-section {
  background: linear-gradient(180deg, #20203D 0%, #17172A 100%);
  border-top: 1px solid rgba(255, 106, 0, 0.18);
}

.page-news .topic-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-news .topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-news .topic-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: linear-gradient(145deg, rgba(45, 45, 68, 0.95), rgba(26, 26, 46, 0.92));
  border: 1px solid rgba(192, 192, 192, 0.12);
  border-radius: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-news .topic-card:hover {
  border-color: rgba(255, 106, 0, 0.4);
  transform: translateY(-2px);
}

.page-news .topic-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-news-fog);
  margin: 14px 0 8px;
}

.page-news .topic-card p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240, 240, 245, 0.74);
}

.page-news .topic-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(192, 192, 192, 0.2);
}

.page-news .topic-value {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  color: var(--page-news-primary);
}

/* ===== 底部更新条 ===== */
.page-news .news-update-strip {
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.14), transparent 42%),
    linear-gradient(180deg, #1A1A2E 0%, #222244 100%);
  border-top: 1px solid rgba(255, 106, 0, 0.22);
  border-bottom: 1px solid rgba(0, 180, 216, 0.1);
}

.page-news .strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.page-news .strip-copy h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  margin: 8px 0 12px;
  color: var(--page-news-fog);
}

.page-news .strip-copy p {
  max-width: 560px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(240, 240, 245, 0.74);
}

.page-news .strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== 媒体帧 ===== */
.page-news .media-frame {
  background: var(--page-news-slate);
  border: 1px solid rgba(192, 192, 192, 0.14);
  overflow: hidden;
}

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

.page-news .media-dash {
  aspect-ratio: 16 / 7;
}

.page-news .media-steps {
  aspect-ratio: 4 / 3;
}

.page-news .media-calendar {
  aspect-ratio: 3 / 2;
}

.page-news .media-wave {
  aspect-ratio: 25 / 6;
}

.page-news .media-caption {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(192, 192, 192, 0.62);
  text-align: right;
  font-family: var(--font-body);
}

/* ===== 桌面端断点 ===== */
@media (min-width: 600px) {
  .page-news .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-news .media-dash {
    aspect-ratio: 8 / 3;
  }
}

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

  .page-news .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 48px;
  }

  .page-news .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .page-news .news-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .page-news .news-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }

  .page-news .news-filter {
    display: block;
  }

  .page-news .filter-btn {
    width: 100%;
    margin-bottom: 8px;
  }

  .page-news .version-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 56px;
  }

  .page-news .topic-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }

  .page-news .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news .topic-card:last-child {
    grid-column: 1 / -1;
  }

  .page-news .strip-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 48px;
  }

  .page-news .news-card {
    padding: 20px 22px;
  }
}
