.page-news {
  --news-line: rgba(233, 236, 247, 0.14);
  --news-line-soft: rgba(233, 236, 247, 0.07);
  --news-panel: #141B4D;
  color: var(--mist);
  font-family: var(--font-body);
  background: var(--indigo);
}

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

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

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.25rem, 3.4vw, 2.5rem) clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--news-line);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(61, 224, 255, 0.16), transparent 62%),
    radial-gradient(90% 70% at 0% 100%, rgba(255, 106, 43, 0.13), transparent 68%),
    var(--indigo);
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  top: -32%;
  right: -14%;
  width: min(640px, 84vw);
  aspect-ratio: 1;
  pointer-events: none;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  background: linear-gradient(140deg, rgba(61, 224, 255, 0.16), rgba(167, 139, 250, 0.07) 48%, transparent 72%);
}

.page-news .breadcrumb {
  position: relative;
  z-index: 1;
  font-size: var(--fs-12);
}

.page-news .news-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.page-news .news-hero-copy {
  min-width: 0;
}

.page-news .news-hero h1 {
  margin: 0.45em 0 0;
  max-width: 19ch;
  font-family: var(--font-display);
  font-size: var(--fs-64);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--mist);
}

.page-news .news-hero-lead {
  margin: clamp(0.9rem, 2vw, 1.25rem) 0 0;
  max-width: 60ch;
  font-size: var(--fs-20);
  line-height: 1.75;
  color: var(--ink-body);
}

.page-news .news-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.25rem, 3vw, 1.85rem);
}

.page-news .news-status {
  position: relative;
  min-width: 0;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--news-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 27, 77, 0.95), rgba(5, 8, 23, 0.92));
  box-shadow: inset 0 1px 0 rgba(233, 236, 247, 0.06), 0 22px 44px -34px rgba(0, 0, 0, 0.95);
}

.page-news .news-status::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 2px;
  background: var(--orange);
}

.page-news .news-status-label {
  margin: 0 0 0.4rem;
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  color: var(--stone);
}

.page-news .news-status-ver {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-64);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cyan);
}

.page-news .news-status-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .news-status-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  font-size: var(--fs-14);
  border-bottom: 1px solid var(--news-line-soft);
}

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

.page-news .news-status-list .k {
  color: var(--stone);
}

.page-news .news-status-list .v {
  color: var(--mist);
}

/* ---------- 章节标题 ---------- */
.page-news .news-head {
  max-width: 78ch;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.page-news .news-head h2 {
  margin: 0.35em 0 0.4em;
  font-family: var(--font-display);
  font-size: var(--fs-40);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-news .news-head-note {
  margin: 0;
  max-width: 66ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--ink-body);
}

/* ---------- 本周归档 ---------- */
.page-news .latest-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.page-news .latest-media {
  margin: 0;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--news-line);
  border-radius: var(--radius);
}

.page-news .latest-body {
  min-width: 0;
}

.page-news .meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--news-line);
  border-bottom: 1px solid var(--news-line);
}

.page-news .meta-grid dt {
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--stone);
}

.page-news .meta-grid dd {
  margin: 0.25rem 0 0;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--mist);
}

.page-news .latest-points {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.page-news .latest-points li {
  position: relative;
  padding-left: 1.2rem;
  font-size: var(--fs-16);
  line-height: 1.7;
  color: var(--ink-body);
}

.page-news .latest-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5rem;
  height: 2px;
  background: var(--orange);
}

.page-news .latest-note {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--stone);
}

.page-news .latest-note a,
.page-news .tl-side-note a,
.page-news .sub-foot a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(61, 224, 255, 0.42);
  text-underline-offset: 3px;
}

.page-news .latest-note a:hover,
.page-news .tl-side-note a:hover,
.page-news .sub-foot a:hover {
  text-decoration-color: var(--cyan);
}

/* ---------- 时间轴 ---------- */
.page-news .tl-media {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  aspect-ratio: 5 / 2;
  border: 1px solid var(--news-line);
  border-radius: var(--radius);
}

.page-news .tl-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-news .tl-layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.page-news .tl-side {
  min-width: 0;
}

.page-news .tl-side-title {
  margin: 0 0 0.75rem;
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--stone);
}

.page-news .tl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-news .tl-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  font-size: var(--fs-14);
  color: var(--ink-body);
  cursor: pointer;
  border: 1px solid var(--news-line);
  border-radius: var(--radius);
  background: rgba(20, 27, 77, 0.6);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.page-news .tl-filter:hover {
  color: var(--mist);
  border-color: var(--line-cyan);
  transform: translateY(-1px);
}

.page-news .tl-count {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-style: normal;
  color: var(--stone);
}

.page-news #f-all:checked ~ .tl-layout label[for="f-all"],
.page-news #f-feat:checked ~ .tl-layout label[for="f-feat"],
.page-news #f-ux:checked ~ .tl-layout label[for="f-ux"],
.page-news #f-notice:checked ~ .tl-layout label[for="f-notice"],
.page-news #f-doc:checked ~ .tl-layout label[for="f-doc"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(61, 224, 255, 0.12);
}

.page-news #f-all:focus-visible ~ .tl-layout label[for="f-all"],
.page-news #f-feat:focus-visible ~ .tl-layout label[for="f-feat"],
.page-news #f-ux:focus-visible ~ .tl-layout label[for="f-ux"],
.page-news #f-notice:focus-visible ~ .tl-layout label[for="f-notice"],
.page-news #f-doc:focus-visible ~ .tl-layout label[for="f-doc"] {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.page-news #f-feat:checked ~ .tl-layout .tl-item:not([data-cat="feat"]),
.page-news #f-ux:checked ~ .tl-layout .tl-item:not([data-cat="ux"]),
.page-news #f-notice:checked ~ .tl-layout .tl-item:not([data-cat="notice"]),
.page-news #f-doc:checked ~ .tl-layout .tl-item:not([data-cat="doc"]) {
  display: none;
}

.page-news .tl-side-note {
  margin: 1rem 0 0;
  max-width: 30ch;
  font-size: var(--fs-12);
  line-height: 1.8;
  color: var(--stone);
}

.page-news .timeline {
  position: relative;
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.15rem);
  margin: 0;
  padding: 0 0 0 1.75rem;
  list-style: none;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 1px;
  background: linear-gradient(180deg, var(--line-cyan), rgba(233, 236, 247, 0.12) 55%, transparent);
}

.page-news .tl-item {
  position: relative;
  min-width: 0;
}

.page-news .tl-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 1.15rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--indigo);
  border: 1px solid var(--line-strong);
}

.page-news .tl-item[data-cat="feat"]::before {
  border-color: var(--orange);
}

.page-news .tl-item[data-cat="ux"]::before {
  border-color: var(--cyan);
}

.page-news .tl-item[data-cat="notice"]::before {
  border-color: var(--gold);
}

.page-news .tl-item[data-cat="doc"]::before {
  border-color: var(--violet);
}

.page-news .tl-item--now::before {
  background: var(--orange);
  border-color: var(--orange);
  animation: news-node-pulse 3.2s ease-in-out infinite;
}

@keyframes news-node-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 43, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 106, 43, 0);
  }
}

.page-news .tl-card {
  padding: clamp(0.9rem, 1.8vw, 1.25rem);
  border: 1px solid var(--news-line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(20, 27, 77, 0.86), rgba(11, 16, 53, 0.78));
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.page-news .tl-card:hover,
.page-news .tl-card:focus-within {
  border-color: var(--line-cyan);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -28px rgba(0, 0, 0, 0.95);
}

.page-news .tl-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
}

.page-news .tl-ver {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-news .tl-type {
  padding: 0.1rem 0.55rem;
  font-size: var(--fs-12);
  border-radius: 999px;
  border: 1px solid var(--news-line);
  color: var(--ink-body);
}

.page-news .tl-type--feat {
  color: var(--orange);
  border-color: rgba(255, 106, 43, 0.45);
}

.page-news .tl-type--ux {
  color: var(--cyan);
  border-color: rgba(61, 224, 255, 0.42);
}

.page-news .tl-type--notice {
  color: var(--gold);
  border-color: rgba(244, 196, 106, 0.45);
}

.page-news .tl-type--doc {
  color: var(--violet);
  border-color: rgba(167, 139, 250, 0.45);
}

.page-news .tl-when {
  margin-left: auto;
  font-size: var(--fs-12);
  color: var(--stone);
}

.page-news .tl-title {
  margin: 0.55rem 0 0.5rem;
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.4;
  color: var(--mist);
}

.page-news .tl-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  margin: 0 0 0.6rem;
  font-size: var(--fs-12);
}

.page-news .tl-fields > div {
  display: flex;
  gap: 0.35rem;
}

.page-news .tl-fields dt {
  margin: 0;
  color: var(--stone);
}

.page-news .tl-fields dd {
  margin: 0;
  color: var(--ink-body);
}

.page-news .tl-details {
  padding-top: 0.6rem;
  border-top: 1px dashed var(--news-line);
}

.page-news .tl-details summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-12);
  color: var(--cyan);
  cursor: pointer;
  list-style: none;
}

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

.page-news .tl-details summary::after {
  content: "▾";
  font-family: var(--font-mono);
}

.page-news .tl-details[open] summary::after {
  content: "▴";
}

.page-news .tl-details p {
  margin: 0.6rem 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--ink-body);
}

/* ---------- 更新分类 ---------- */
.page-news .news-types {
  background: var(--cream);
  color: var(--indigo);
  border-block: 1px solid rgba(11, 16, 53, 0.16);
}

.page-news .news-types .eyebrow {
  color: rgba(11, 16, 53, 0.6);
}

.page-news .news-head--dark h2 {
  color: var(--indigo);
}

.page-news .news-head--dark .news-head-note {
  color: rgba(11, 16, 53, 0.72);
}

.page-news .types-grid {
  display: grid;
  gap: 1px;
  background: rgba(11, 16, 53, 0.16);
  border: 1px solid rgba(11, 16, 53, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-news .type-card {
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  background: var(--cream);
}

.page-news .type-num {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--clay);
}

.page-news .type-card h3 {
  margin: 0 0 0.5rem;
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--indigo);
}

.page-news .type-card p {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: rgba(11, 16, 53, 0.72);
}

.page-news .types-foot {
  margin: clamp(1rem, 2.2vw, 1.5rem) 0 0;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: rgba(11, 16, 53, 0.7);
}

.page-news .types-foot a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-news .types-foot a:hover {
  color: var(--indigo);
}

/* ---------- 专题系列 ---------- */
.page-news .topics-band {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.page-news .topic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--news-line);
  border-radius: var(--radius);
  background: rgba(20, 27, 77, 0.55);
  transition: border-color 200ms ease, transform 200ms ease;
}

.page-news .topic-card:hover {
  border-color: var(--line-cyan);
  transform: translateY(-3px);
}

.page-news .topic-media {
  margin: 0;
  aspect-ratio: 16 / 9;
}

.page-news .topic-card--wide .topic-media {
  aspect-ratio: 3 / 2;
}

.page-news .topic-body {
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.page-news .topic-tag {
  margin: 0 0 0.5rem;
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--violet);
}

.page-news .topic-body h3,
.page-news .topic-row h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.4;
  color: var(--mist);
}

.page-news .topic-body p,
.page-news .topic-row p {
  margin: 0 0 0.9rem;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--ink-body);
}

.page-news .topic-link {
  display: inline-block;
  font-size: var(--fs-14);
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 224, 255, 0.4);
  padding-bottom: 2px;
  transition: border-color 180ms ease, color 180ms ease;
}

.page-news .topic-link:hover {
  color: var(--mist);
  border-color: var(--mist);
}

.page-news .topic-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(1rem, 2.4vw, 1.75rem);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--news-line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius);
  background: rgba(20, 27, 77, 0.5);
}

.page-news .topic-row > div {
  min-width: 0;
  flex: 1 1 20rem;
}

.page-news .topic-row p:last-child {
  margin-bottom: 0;
}

/* ---------- 版本提醒 ---------- */
.page-news .sub-panel {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(61, 224, 255, 0.12), transparent 62%),
    rgba(20, 27, 77, 0.55);
}

.page-news .sub-copy {
  min-width: 0;
}

.page-news .sub-copy h2 {
  margin: 0.35em 0 0.55em;
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 800;
  line-height: 1.25;
  color: var(--mist);
}

.page-news .sub-copy p {
  margin: 0 0 0.75rem;
  max-width: 60ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--ink-body);
}

.page-news .sub-foot {
  font-size: var(--fs-14);
  color: var(--stone);
}

.page-news .sub-control {
  position: relative;
  min-width: 0;
}

.page-news .sub-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.page-news .sub-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.15rem;
  font-size: var(--fs-14);
  color: var(--mist);
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 16, 53, 0.7);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.page-news .sub-switch::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--stone);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.page-news .sub-switch:hover {
  border-color: var(--cyan);
}

.page-news .sub-check:checked + .sub-switch {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(61, 224, 255, 0.1);
}

.page-news .sub-check:checked + .sub-switch::before {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(61, 224, 255, 0.18);
}

.page-news .sub-check:focus-visible + .sub-switch {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.page-news .sub-state-line {
  margin: 1rem 0 0.3rem;
  font-size: var(--fs-14);
  color: var(--stone);
}

.page-news .sub-state::after {
  content: "未开启";
  color: var(--stone);
}

.page-news .sub-check:checked ~ .sub-state-line .sub-state::after {
  content: "已开启";
  color: var(--cyan);
}

.page-news .sub-state-note {
  margin: 0;
  font-size: var(--fs-12);
  color: var(--stone);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-news .types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-news .news-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: end;
  }

  .page-news .latest-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .page-news .topics-band {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
  }

  .page-news .topic-card--tall .topic-media {
    aspect-ratio: 16 / 10;
  }

  .page-news .sub-panel {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-news .tl-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .page-news .tl-side {
    position: sticky;
    top: 5rem;
  }

  .page-news .tl-filters {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .page-news .tl-side-note {
    max-width: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-news .tl-item--now::before {
    animation: none;
  }

  .page-news .tl-card,
  .page-news .topic-card,
  .page-news .tl-filter,
  .page-news .sub-switch {
    transition: none;
  }

  .page-news .tl-card:hover,
  .page-news .topic-card:hover,
  .page-news .tl-filter:hover {
    transform: none;
  }
}
