.page-news {
  --news-panel: #111A24;
  --news-panel-hi: #17232F;
  --news-hair: rgba(237, 231, 219, 0.1);
  --news-fit: rgba(237, 231, 219, 0.06);
}

/* ---------- 顶部主题区 ---------- */
.page-news .news-mast {
  position: relative;
  padding: 34px 0 76px;
  background:
    radial-gradient(120% 160% at 90% -30%, rgba(255, 75, 31, 0.22), transparent 62%),
    radial-gradient(90% 130% at 0% 120%, rgba(47, 210, 229, 0.1), transparent 60%),
    linear-gradient(180deg, #111A24 0%, #0A0B0F 84%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
}

.page-news .news-mast h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 12px 0 16px;
  max-width: 15em;
}

.page-news .news-mast .lead {
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.62;
  color: var(--fog);
  margin: 0;
}

.page-news .mast-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 26px 0 0;
  padding: 0;
}

.page-news .mast-stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-left: 11px;
  border-left: 2px solid var(--wood);
  font-size: 13px;
  color: var(--fog);
}

.page-news .mast-stats .num {
  font-size: 19px;
  line-height: 1;
  color: var(--flare);
}

/* ---------- 本周焦点 ---------- */
.page-news .news-focus {
  padding-top: 4px;
}

.page-news .focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.page-news .focus-media {
  margin: 0;
  transform: rotate(-1.2deg);
}

.page-news .focus-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 6px 0 18px;
}

.page-news .focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-news .focus-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px 16px 20px;
  background: var(--news-panel);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: background 120ms var(--ease);
}

.page-news .focus-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--flare);
  transition: width 120ms var(--ease);
}

.page-news .focus-item::after {
  content: "→";
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 14px;
  color: var(--flare);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 120ms var(--ease), transform 120ms var(--ease);
}

.page-news .focus-item:hover,
.page-news .focus-item:focus-within {
  background: var(--news-panel-hi);
}

.page-news .focus-item:hover::before,
.page-news .focus-item:focus-within::before {
  width: 9px;
}

.page-news .focus-item:hover::after,
.page-news .focus-item:focus-within::after {
  opacity: 1;
  transform: translateX(0);
}

.page-news .focus-item--rank::before {
  background: var(--cyan);
}

.page-news .focus-item--rank:hover::after,
.page-news .focus-item--rank:focus-within::after {
  color: var(--cyan);
}

.page-news .focus-item--version::before {
  background: var(--violet);
}

.page-news .focus-item--version:hover::after,
.page-news .focus-item--version:focus-within::after {
  color: var(--violet);
}

.page-news .focus-no {
  font-size: 22px;
  line-height: 1;
  color: var(--wood);
  padding-top: 2px;
}

.page-news .focus-item--rank .focus-no {
  color: var(--cyan);
}

.page-news .focus-item--version .focus-no {
  color: var(--violet);
}

.page-news .focus-cat {
  margin: 0 0 6px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fog);
  text-transform: uppercase;
}

.page-news .focus-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--paper);
  margin: 0 0 6px;
}

.page-news .focus-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fog);
  padding-right: 8px;
}

/* ---------- 主体：左索引 + 右列表 ---------- */
.page-news .news-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: 10px 0 78px;
}

.page-news .news-rail {
  align-self: start;
}

.page-news .rail-head {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
  margin: 0 0 10px;
}

.page-news .rail-head--sub {
  margin-top: 20px;
}

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

.page-news .rail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: var(--news-panel);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}

.page-news .rail-link .num {
  font-size: 11px;
  color: var(--wood);
  transition: color 120ms var(--ease);
}

.page-news .rail-link:hover {
  background: var(--news-panel-hi);
}

.page-news .rail-link.is-on {
  background: var(--flare);
  color: #0A0B0F;
}

.page-news .rail-link.is-on .num {
  color: #0A0B0F;
}

.page-news .rail-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.page-news .rail-ticks li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--news-hair);
  font-size: 12px;
  color: var(--fog);
}

.page-news .rail-ticks .num {
  font-size: 11px;
  color: var(--wood);
}

.page-news .news-stream {
  min-width: 0;
  scroll-margin-top: 92px;
}

.page-news .stream-block {
  margin: 0 0 54px;
  scroll-margin-top: 92px;
}

.page-news .stream-block:last-child {
  margin-bottom: 0;
}

.page-news .block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--news-hair);
}

.page-news .block-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 31px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0;
}

.page-news .block-note {
  flex: 1 1 260px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fog);
}

.page-news .block-note a,
.page-news .entry-main a,
.page-news .cta-fine a {
  color: var(--flare-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 69, 0.4);
  transition: color 120ms var(--ease), border-color 120ms var(--ease);
}

.page-news .block-note a:hover,
.page-news .entry-main a:hover,
.page-news .cta-fine a:hover {
  color: var(--flare);
  border-color: var(--flare);
}

.page-news .block-media {
  margin: 0 0 18px;
}

/* ---------- 条目列表 ---------- */
.page-news .entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-news .entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 15px 18px 15px 22px;
  background: var(--news-panel);
  border-radius: var(--r-md);
  transition: background 120ms var(--ease);
}

.page-news .entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--entry-accent, var(--flare));
  transition: top 140ms var(--ease), bottom 140ms var(--ease);
}

.page-news .entry:hover {
  background: var(--news-panel-hi);
}

.page-news .entry:hover::before {
  top: 0;
  bottom: 0;
}

.page-news .entry--rank {
  --entry-accent: var(--cyan);
}

.page-news .entry--version {
  --entry-accent: var(--violet);
}

.page-news .entry-main {
  min-width: 0;
}

.page-news .entry-cat {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(255, 75, 31, 0.15);
  color: var(--flare-soft);
}

.page-news .entry--rank .entry-cat {
  background: rgba(47, 210, 229, 0.14);
  color: var(--cyan);
}

.page-news .entry--version .entry-cat {
  background: rgba(91, 75, 214, 0.24);
  color: #b0a5ff;
}

.page-news .entry-main h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--paper);
  margin: 0 0 6px;
}

.page-news .entry-main p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--fog);
}

.page-news .entry-main p + p {
  margin-top: 0.7em;
}

.page-news .entry--long .entry-main h3 {
  font-size: 22px;
}

.page-news .entry--long {
  padding-top: 20px;
  padding-bottom: 20px;
}

.page-news .entry-time {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fog);
  text-align: right;
  white-space: nowrap;
  padding-top: 4px;
}

/* ---------- 版本动态时间带 ---------- */
.page-news .version-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

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

.page-news .timeline li {
  position: relative;
  padding: 0 0 18px 34px;
}

.page-news .timeline li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 16px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(180deg, rgba(91, 75, 214, 0.7), rgba(237, 231, 219, 0.12));
}

.page-news .timeline li:last-child::before {
  display: none;
}

.page-news .timeline li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(91, 75, 214, 0.16);
}

.page-news .timeline li:last-child::after {
  background: var(--wood);
  box-shadow: 0 0 0 3px rgba(192, 138, 78, 0.18);
}

.page-news .tl-meta {
  margin: 0 0 4px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.page-news .tl-meta .num {
  color: var(--violet);
  font-size: 13px;
}

.page-news .timeline li:last-child .tl-meta .num {
  color: var(--wood);
}

.page-news .tl-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--fog);
}

.page-news .version-media {
  margin: 0;
}

/* ---------- 订阅 / 继续查 ---------- */
.page-news .news-cta {
  padding: 58px 0 68px;
  background:
    linear-gradient(160deg, rgba(18, 87, 79, 0.95) 0%, rgba(15, 74, 68, 0.9) 42%, #0A0B0F 100%);
  clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
}

.page-news .cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.page-news .cta-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 36px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0 0 14px;
  max-width: 18em;
}

.page-news .cta-copy > p {
  margin: 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(237, 231, 219, 0.82);
}

.page-news .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 16px;
}

.page-news .cta-fine {
  font-size: 13px;
  color: var(--fog);
}

.page-news .cta-card {
  padding: 22px 22px 24px;
  border-radius: var(--r-lg);
  background: rgba(10, 11, 15, 0.55);
  border-left: 4px solid var(--flare);
}

.page-news .cta-label {
  margin: 0 0 10px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wood);
}

.page-news .cta-mail {
  margin: 0 0 14px;
  font-family: var(--font-num);
  font-size: 15px;
  line-height: 1.4;
  color: var(--paper);
  word-break: break-all;
}

.page-news .cta-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fog);
}

/* ---------- 断点 ---------- */
@media (min-width: 720px) {
  .page-news .entry-list {
    gap: 12px;
  }

  .page-news .version-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 30px;
  }

  .page-news .cta-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px;
  }
}

@media (min-width: 900px) {
  .page-news .focus-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 34px;
    align-items: start;
  }

  .page-news .focus-media {
    position: sticky;
    top: 84px;
  }
}

@media (min-width: 980px) {
  .page-news .news-body {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 52px;
  }

  .page-news .news-rail {
    position: sticky;
    top: 82px;
  }

  .page-news .rail-list {
    display: grid;
    gap: 5px;
    overflow: visible;
  }

  .page-news .rail-link {
    border-radius: var(--r-md);
  }

  .page-news .rail-ticks {
    display: block;
  }
}

@media (min-width: 1180px) {
  .page-news .entry--long .entry-main h3 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .focus-item,
  .page-news .focus-item::before,
  .page-news .focus-item::after,
  .page-news .entry,
  .page-news .entry::before,
  .page-news .rail-link,
  .page-news .rail-link .num {
    transition: none;
  }
}
