/* ===== PG游艺 · 更新公告页（page-news） ===== */

.page-news {
  padding-bottom: 72px;
}

.page-news .section {
  margin-top: 0;
}

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

/* ---------- 置顶公告面板 ---------- */

.page-news .pinned {
  position: relative;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(0, 224, 198, 0.14), transparent 55%),
    linear-gradient(150deg, var(--ink-800), var(--ink-900) 72%);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.page-news .pinned::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-500), var(--cyan-300) 34%, var(--amber-500) 76%, var(--yellow-400));
}

.page-news .pinned-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-news .pinned-grid {
  display: grid;
  gap: 22px;
}

.page-news .pinned-body h1 {
  margin: 10px 0 14px;
  font-size: clamp(29px, 6vw, 52px);
  line-height: 1.13;
  letter-spacing: -0.012em;
}

.page-news .pinned-body .lede {
  margin: 0;
  max-width: 56ch;
}

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

/* 加载耗时对比条 */

.page-news .speed {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: rgba(18, 49, 79, 0.42);
}

.page-news .speed-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.page-news .speed-label {
  font-size: 13px;
  color: var(--muted);
}

.page-news .speed-track {
  display: block;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(31, 74, 102, 0.55);
  overflow: hidden;
}

.page-news .speed-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
}

.page-news .speed-fill-base {
  width: 100%;
  background: linear-gradient(90deg, rgba(159, 179, 200, 0.5), rgba(159, 179, 200, 0.2));
}

.page-news .speed-fill-now {
  width: 60%;
  background: linear-gradient(90deg, var(--cyan-500), var(--cyan-300));
  box-shadow: var(--shadow-cyan);
}

.page-news .speed-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.page-news .speed-note .mono {
  color: var(--cyan-300);
  font-weight: 700;
}

/* ---------- 主区 + 侧栏 ---------- */

.page-news .news-layout {
  margin-top: 46px;
}

.page-news .news-block {
  margin-top: 0;
}

.page-news .news-block + .news-block {
  margin-top: 52px;
}

.page-news .news-aside {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  align-content: start;
}

/* ---------- 区块标题 ---------- */

.page-news .block-head {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.page-news .block-head h2 {
  margin: 10px 0 10px;
  font-size: clamp(23px, 4.2vw, 38px);
  line-height: 1.2;
}

.page-news .block-sub {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.75;
}

.page-news .block-head-media {
  border-radius: var(--radius-card);
}

/* ---------- 版本时间线 ---------- */

.page-news .timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 34px;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan-500), var(--line) 46%, rgba(31, 74, 102, 0.16));
}

.page-news .tl-item {
  position: relative;
  padding-bottom: 20px;
}

.page-news .tl-item:last-child {
  padding-bottom: 0;
}

.page-news .tl-node {
  position: absolute;
  left: -34px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--line);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.page-news .tl-item:hover .tl-node,
.page-news .tl-item:focus-within .tl-node {
  border-color: var(--cyan-500);
  background: var(--cyan-500);
  transform: scale(1.15);
}

.page-news .tl-panel {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(155deg, rgba(10, 30, 51, 0.96), rgba(6, 18, 31, 0.9));
  box-shadow: var(--shadow-panel);
  transition: border-color 0.18s ease;
}

.page-news .tl-item:hover .tl-panel {
  border-color: rgba(0, 224, 198, 0.42);
}

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

.page-news .tl-ver {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan-300);
  letter-spacing: 0.02em;
}

.page-news .tl-seq {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-news .tl-title {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.6vw, 23px);
  line-height: 1.35;
}

.page-news .tl-text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.72;
}

.page-news .tl-more {
  border-top: 1px solid rgba(31, 74, 102, 0.55);
  padding-top: 10px;
}

.page-news .tl-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-500);
}

.page-news .tl-more > summary::-webkit-details-marker {
  display: none;
}

.page-news .tl-more > summary::before {
  content: "+";
  display: inline-block;
  width: 17px;
  height: 17px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.page-news .tl-more[open] > summary::before {
  content: "−";
}

.page-news .tl-more > summary:hover {
  color: var(--cyan-300);
}

.page-news .tl-points {
  margin: 10px 0 2px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.page-news .tl-points li {
  margin-bottom: 4px;
}

.page-news .tl-points li::marker {
  color: var(--amber-500);
}

/* ---------- 公告分类索引 ---------- */

.page-news .cat-panel {
  padding: 20px 18px;
}

.page-news .cat-title {
  margin: 8px 0 14px;
  font-size: 21px;
  line-height: 1.3;
}

.page-news .cat-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-news .cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(31, 74, 102, 0.6);
  border-radius: var(--radius-soft);
  background: rgba(18, 49, 79, 0.3);
  color: var(--paper);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.page-news .cat-link:hover,
.page-news .cat-link:focus-visible {
  border-color: var(--cyan-500);
  background: rgba(0, 224, 198, 0.12);
  transform: translateX(2px);
}

.page-news .cat-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-300);
}

.page-news .cat-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--yellow-400);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 197, 61, 0.5);
}

.page-news .cat-all:hover,
.page-news .cat-all:focus-visible {
  color: var(--cyan-300);
  border-bottom-color: var(--cyan-300);
}

.page-news .cat-media {
  border-radius: var(--radius-card);
}

/* ---------- 更新摘要 ---------- */

.page-news .digest-grid {
  display: grid;
  gap: 16px;
}

.page-news .digest-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px 18px;
  background: linear-gradient(160deg, rgba(10, 30, 51, 0.92), rgba(6, 18, 31, 0.88));
}

.page-news .digest-card > .badge {
  justify-self: start;
}

.page-news .digest-card .card-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.page-news .digest-card .card-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.page-news .digest-todo {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid var(--amber-500);
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
  background: rgba(255, 122, 26, 0.09);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.65;
}

.page-news .digest-text {
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-news .digest-text > .badge {
  justify-self: start;
}

.page-news .digest-media {
  border-radius: var(--radius-card);
}

/* ---------- 看完之后 ---------- */

.page-news .followup {
  padding: 26px 22px;
}

.page-news .followup h2 {
  margin: 10px 0 12px;
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.3;
}

.page-news .followup-lede {
  margin: 0 0 20px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.75;
}

.page-news .followup-grid {
  display: grid;
  gap: 14px;
}

.page-news .followup-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(6, 18, 31, 0.55);
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.page-news .followup-card:hover,
.page-news .followup-card:focus-visible {
  border-color: var(--cyan-500);
  background: rgba(0, 224, 198, 0.09);
  transform: translateY(-2px);
}

.page-news .followup-idx {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--amber-500);
}

.page-news .followup-name {
  font-size: 18px;
  font-weight: 800;
}

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

.page-news .followup-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 平板 ---------- */

@media (min-width: 700px) {
  .page-news .digest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 820px) {
  .page-news .block-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 32px;
  }

  .page-news .pinned {
    padding: 26px;
  }
}

@media (min-width: 900px) {
  .page-news .pinned-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
  }
}

/* ---------- 桌面 ---------- */

@media (min-width: 1000px) {
  .page-news .news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 34px;
    align-items: start;
  }

  .page-news .news-aside {
    position: sticky;
    top: 96px;
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .page-news .digest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-news .digest-feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: center;
  }
}

/* ---------- 窄屏 ---------- */

@media (max-width: 480px) {
  .page-news .pinned {
    padding: 18px 15px;
  }

  .page-news .speed {
    padding: 12px;
  }

  .page-news .speed-row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
  }

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

  .page-news .tl-node {
    left: -28px;
  }

  .page-news .tl-panel {
    padding: 15px 14px 13px;
  }

  .page-news .followup {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .tl-node,
  .page-news .tl-panel,
  .page-news .cat-link,
  .page-news .followup-card,
  .page-news .tl-more > summary::before {
    transition: none;
  }
}
