.page-news {
  --news-line: rgba(159, 182, 201, 0.18);
  position: relative;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

.page-news h1,
.page-news h2,
.page-news h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.015em;
  margin: 0;
}

.page-news p {
  margin: 0;
}

.page-news .mono {
  font-family: var(--font-mono);
}

.page-news .news-kicker {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-news .news-crumb {
  padding-top: 22px;
}

/* ---------- 首屏刊头 ---------- */
.page-news .news-masthead {
  position: relative;
  padding: clamp(20px, 4vw, 34px) 0 clamp(38px, 6vw, 70px);
  background:
    radial-gradient(112% 120% at 6% -12%, rgba(57, 242, 208, 0.13), transparent 58%),
    linear-gradient(180deg, rgba(16, 42, 66, 0.92) 0%, rgba(10, 26, 43, 0.55) 56%, rgba(6, 16, 31, 0) 100%);
  border-bottom: 1px solid var(--news-line);
}

.page-news .news-masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 26px);
  opacity: 0.45;
  pointer-events: none;
}

.page-news .news-masthead__inner {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}

.page-news .news-masthead h1 {
  font-size: clamp(31px, 6.2vw, 60px);
  line-height: 1.05;
  text-wrap: balance;
}

.page-news .news-masthead__lead {
  margin-top: clamp(14px, 2.4vw, 22px);
  max-width: 62ch;
  color: rgba(238, 246, 251, 0.8);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
}

.page-news .news-masthead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 30px);
}

.page-news .news-facts {
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 8px 18px 10px;
  box-shadow: var(--shadow-nav);
}

.page-news .news-facts__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--news-line);
}

.page-news .news-facts__row:last-child {
  border-bottom: 0;
}

.page-news .news-facts__key {
  font-size: 13px;
  color: var(--mist);
}

.page-news .news-facts__val {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--cyan);
  white-space: nowrap;
}

/* ---------- 置顶本期 ---------- */
.page-news .news-pin {
  padding: clamp(34px, 6vw, 74px) 0;
  background: linear-gradient(180deg, rgba(10, 26, 43, 0.95), rgba(10, 26, 43, 0.55));
  border-bottom: 1px solid var(--news-line);
}

.page-news .news-pin__grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.page-news .news-pin__board {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-m);
  padding: clamp(20px, 3.2vw, 34px);
}

.page-news .news-pin__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.page-news .news-pin__tag {
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
}

.page-news .news-pin__stamp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.page-news .news-pin__board h2 {
  font-size: clamp(22px, 3.4vw, 33px);
  line-height: 1.24;
}

.page-news .news-pin__lead {
  margin-top: 14px;
  color: rgba(238, 246, 251, 0.78);
  font-size: 15.5px;
  line-height: 1.82;
}

.page-news .pin-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-news .pin-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14.6px;
  line-height: 1.75;
  color: rgba(238, 246, 251, 0.82);
}

.page-news .pin-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.page-news .pin-points strong {
  color: var(--white);
  font-weight: 600;
}

.page-news .news-pin__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.page-news .news-pin__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

/* ---------- 通用 figure ---------- */
.page-news .news-figure {
  margin: 0;
}

.page-news .news-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}

/* ---------- 章节 ---------- */
.page-news .news-block {
  padding: clamp(34px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--news-line);
}

.page-news .news-block--stream {
  background: linear-gradient(180deg, rgba(10, 26, 43, 0.7), rgba(6, 16, 31, 0));
}

.page-news .news-block__head {
  max-width: 68ch;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-news .news-block__head h2 {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
}

.page-news .news-block__head p {
  margin-top: 12px;
  color: rgba(238, 246, 251, 0.75);
  font-size: 15.5px;
  line-height: 1.82;
}

/* ---------- 四类标签 ---------- */
.page-news .cat-grid {
  display: grid;
  gap: 14px;
}

.page-news .cat-item {
  position: relative;
  background: rgba(16, 42, 66, 0.62);
  border-top: 2px solid var(--line-strong);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  padding: 18px 18px 20px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-news .cat-item:hover {
  border-top-color: var(--cyan);
  background: rgba(16, 42, 66, 0.92);
}

.page-news .cat-item__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-news .cat-item h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.page-news .cat-item p {
  font-size: 14px;
  line-height: 1.72;
  color: rgba(238, 246, 251, 0.72);
}

.page-news .news-cat-figure {
  margin-top: clamp(20px, 3vw, 30px);
}

/* ---------- 条目流 ---------- */
.page-news .news-stream__figure {
  margin-bottom: clamp(20px, 3vw, 30px);
}

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

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

.page-news .filter__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--mist);
  font-size: 13.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .filter__label:hover {
  border-color: var(--amber);
  color: var(--white);
}

.page-news .filter__count {
  font-size: 11.5px;
  opacity: 0.7;
}

.page-news .filter__input:checked + .filter__label {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 600;
}

.page-news .filter__input:focus-visible + .filter__label {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-news #filter-list:checked ~ .entry-list .entry:not(.entry--list),
.page-news #filter-version:checked ~ .entry-list .entry:not(.entry--version),
.page-news #filter-guide:checked ~ .entry-list .entry:not(.entry--guide),
.page-news #filter-pack:checked ~ .entry-list .entry:not(.entry--pack) {
  display: none;
}

.page-news .entry-list {
  list-style: none;
  flex: 1 0 100%;
  width: 100%;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-news .entry {
  position: relative;
  display: grid;
  gap: 8px 18px;
  padding: 20px 0 20px 16px;
  border-bottom: 1px solid var(--news-line);
}

.page-news .entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--cyan);
  opacity: 0.45;
  transition: opacity var(--dur) var(--ease);
}

.page-news .entry:hover::before {
  opacity: 1;
}

.page-news .entry__id {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding-top: 3px;
}

.page-news .entry__title {
  margin: 0 0 6px;
  font-size: clamp(16px, 2.3vw, 19px);
  line-height: 1.4;
  font-weight: 600;
}

.page-news .entry__desc {
  font-size: 14.4px;
  line-height: 1.72;
  color: rgba(238, 246, 251, 0.72);
}

.page-news .entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-news .entry__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--mist);
  white-space: nowrap;
}

.page-news .entry__tag--list {
  color: var(--amber);
  border-color: rgba(255, 178, 74, 0.5);
}

.page-news .entry__tag--version {
  color: var(--cyan);
  border-color: rgba(57, 242, 208, 0.45);
}

.page-news .entry__tag--guide {
  color: var(--white);
  border-color: var(--line-strong);
}

.page-news .entry__tag--pack {
  color: var(--teal);
  border-color: rgba(15, 175, 154, 0.55);
}

.page-news .entry__time {
  font-size: 12px;
  color: var(--mist);
}

.page-news .news-stream__tail {
  margin-top: 22px;
  font-size: 14.5px;
  color: rgba(238, 246, 251, 0.72);
}

.page-news .news-inline-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 242, 208, 0.45);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

/* ---------- 订阅 ---------- */
.page-news .news-block--sub {
  background:
    radial-gradient(90% 120% at 92% 0%, rgba(255, 178, 74, 0.1), transparent 58%),
    rgba(10, 26, 43, 0.72);
}

.page-news .news-sub__grid {
  display: grid;
  gap: clamp(22px, 3.4vw, 40px);
  align-items: start;
}

.page-news .news-sub__text h2 {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.2;
}

.page-news .news-sub__lead {
  margin-top: 14px;
  max-width: 62ch;
  color: rgba(238, 246, 251, 0.78);
  font-size: 15.5px;
  line-height: 1.82;
}

.page-news .sub-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-news .sub-steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  font-size: 14.6px;
  line-height: 1.74;
  color: rgba(238, 246, 251, 0.8);
}

.page-news .sub-steps__num {
  font-size: 12px;
  color: var(--amber);
  padding-top: 4px;
  border-top: 2px solid var(--amber);
}

.page-news .news-sub__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.page-news .news-sub__mail {
  font-size: 12.5px;
  color: var(--mist);
  word-break: break-all;
}

/* ---------- 往期索引 ---------- */
.page-news .archive-wrap {
  overflow-x: auto;
  border: 1px solid var(--news-line);
  border-radius: var(--radius-s);
  background: rgba(10, 26, 43, 0.72);
}

.page-news .archive-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14.4px;
}

.page-news .archive-table th,
.page-news .archive-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--news-line);
  vertical-align: top;
}

.page-news .archive-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(16, 42, 66, 0.7);
}

.page-news .archive-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-news .archive-table tbody tr:hover {
  background: rgba(16, 42, 66, 0.55);
}

.page-news .archive-table td:first-child {
  font-family: var(--font-mono);
  color: var(--cyan);
  white-space: nowrap;
}

.page-news .arc-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mist);
  white-space: nowrap;
}

.page-news .archive-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--mist);
}

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

@media (min-width: 760px) {
  .page-news .entry {
    grid-template-columns: 68px minmax(0, 1fr) 138px;
    align-items: start;
    padding-left: 18px;
  }

  .page-news .entry__meta {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 8px;
    padding-top: 2px;
  }
}

@media (min-width: 900px) {
  .page-news .news-pin__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  }

  .page-news .news-sub__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

@media (min-width: 940px) {
  .page-news .news-masthead__inner {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.85fr);
    align-items: end;
  }
}

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

  .page-news .entry {
    grid-template-columns: 82px minmax(0, 1fr) 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .filter__label,
  .page-news .cat-item,
  .page-news .entry::before,
  .page-news .news-inline-link {
    transition: none;
  }
}
