.page-news {
  --news-rule: rgba(11, 79, 108, 0.16);
  --news-sticky-top: 56px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
}

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

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  border-bottom: var(--hair);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background: var(--lake-pale);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  display: none;
  z-index: 0;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  padding: clamp(20px, 4vw, 40px) 0 clamp(30px, 5vw, 60px);
}

.page-news .news-hero__title {
  margin: 14px 0 0;
  font-weight: 900;
  font-size: clamp(36px, 8vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--lake-deep);
}

.page-news .news-hero__lead {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.8;
  color: var(--muted);
}

.page-news .news-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: var(--hair);
  list-style: none;
}

.page-news .news-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-news .news-hero__stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--ochre);
}

.page-news .news-hero__stats li > span:last-child {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-news .news-hero__figure {
  position: relative;
  margin: 0;
}

.page-news .news-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-news .news-hero__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  gap: 2px;
  max-width: 84%;
  padding: 12px 16px;
  background: var(--white);
  border-left: 4px solid var(--ochre);
}

.page-news .news-hero__badge-k {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-news .news-hero__badge-v {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--lake-deep);
}

.page-news .news-hero__badge-n {
  font-size: 13px;
  color: var(--ink);
}

/* ---------- 吸附筛选条 ---------- */
.page-news .news-filter {
  position: sticky;
  top: var(--news-sticky-top);
  z-index: 5;
  background: rgba(245, 239, 227, 0.97);
  border-top: var(--hair);
  border-bottom: var(--hair);
  backdrop-filter: blur(6px);
}

.page-news .news-filter__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
}

.page-news .news-filter__views,
.page-news .news-filter__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-news .news-filter__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-right: 2px;
}

.page-news .news-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border: 1px solid rgba(11, 79, 108, 0.3);
  border-radius: 2px;
  color: var(--lake-deep);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-news .news-pill:hover {
  border-color: var(--lake);
  color: var(--lake);
}

.page-news #news-view-timeline:checked ~ .news-filter label[for="news-view-timeline"],
.page-news #news-view-table:checked ~ .news-filter label[for="news-view-table"] {
  background: var(--lake-deep);
  border-color: var(--lake-deep);
  color: var(--white);
}

.page-news #news-view-timeline:focus-visible ~ .news-filter label[for="news-view-timeline"],
.page-news #news-view-table:focus-visible ~ .news-filter label[for="news-view-table"] {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

.page-news .news-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--lake-deep);
  background: var(--white);
  border: 1px solid var(--news-rule);
  border-radius: 2px;
}

.page-news .news-chip .num {
  font-size: 11px;
  color: var(--ochre);
}

/* ---------- 更新记录 ---------- */
.page-news .news-log__head {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.page-news .news-log__title {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--lake-deep);
}

.page-news .news-log__intro {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--muted);
}

.page-news .news-timeline {
  list-style: none;
  margin: clamp(26px, 4vw, 44px) 0 0;
  padding: 0 0 0 24px;
  border-left: 1px solid rgba(11, 79, 108, 0.22);
}

.page-news .news-timeline__item {
  position: relative;
  padding-bottom: clamp(22px, 3vw, 32px);
}

.page-news .news-timeline__item::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -29px;
  width: 9px;
  height: 9px;
  background: var(--ochre);
}

.page-news .news-timeline__item::after {
  content: "";
  position: absolute;
  left: -26px;
  bottom: 4px;
  width: 3px;
  height: 3px;
  background: rgba(11, 79, 108, 0.3);
}

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

.page-news .news-vnum {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  color: var(--white);
  background: var(--lake-deep);
}

.page-news .news-when {
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  color: var(--lake-deep);
  background: var(--sand-deep);
}

.page-news .news-timeline__title {
  margin: 10px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.page-news .news-timeline__text {
  margin: 6px 0 0;
  max-width: 64ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 表格视图 ---------- */
.page-news .news-table-wrap {
  display: none;
  margin-top: clamp(26px, 4vw, 44px);
  overflow-x: auto;
  background: var(--white);
  border: var(--hair);
}

.page-news #news-view-table:checked ~ .news-log .news-timeline {
  display: none;
}

.page-news #news-view-table:checked ~ .news-log .news-table-wrap {
  display: block;
}

.page-news .news-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.page-news .news-table caption {
  padding: 13px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: var(--hair);
}

.page-news .news-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lake-deep);
  background: var(--lake-pale);
  border-bottom: var(--hair);
  white-space: nowrap;
}

.page-news .news-table td {
  padding: 11px 14px;
  vertical-align: top;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px solid rgba(11, 79, 108, 0.1);
}

.page-news .news-table th:first-child,
.page-news .news-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--white);
  font-family: var(--font-mono);
  color: var(--ochre);
  white-space: nowrap;
}

.page-news .news-table th:first-child {
  background: var(--lake-pale);
  color: var(--lake-deep);
}

/* ---------- 版本对照 ---------- */
.page-news .news-compare {
  background: var(--lake-pale);
  border-top: var(--hair);
  border-bottom: var(--hair);
}

.page-news .news-compare__head {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
}

.page-news .news-compare__title {
  margin: 14px 0 0;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--lake-deep);
}

.page-news .news-compare__text {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.page-news .news-compare__link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 3px;
  font-size: 14px;
  color: var(--ochre);
  text-decoration: none;
  border-bottom: 2px solid var(--ochre);
}

.page-news .news-compare__link:hover {
  color: var(--ochre-deep);
  border-color: var(--ochre-deep);
}

.page-news .news-compare__figure {
  margin: 0;
}

.page-news .news-compare__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-left: 6px solid var(--ochre);
}

.page-news .news-compare__tablewrap {
  margin-top: clamp(26px, 4vw, 40px);
  overflow-x: auto;
  background: var(--white);
}

.page-news .news-compare__table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.page-news .news-compare__table caption {
  padding: 13px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--white);
  border-bottom: var(--hair);
}

.page-news .news-compare__table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lake-deep);
  border-bottom: var(--hair);
  white-space: nowrap;
}

.page-news .news-compare__table thead th:nth-child(2) {
  background: var(--sand-deep);
  color: var(--muted);
}

.page-news .news-compare__table thead th:nth-child(3) {
  background: var(--lake-deep);
  color: var(--white);
}

.page-news .news-compare__table tbody th {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

.page-news .news-compare__table td {
  padding: 12px 14px;
  vertical-align: top;
  line-height: 1.65;
  border-bottom: 1px solid rgba(11, 79, 108, 0.1);
}

.page-news .news-compare__table td.is-v2 {
  background: var(--sand-deep);
  color: var(--muted);
}

.page-news .news-compare__table td.is-v3 {
  background: var(--white);
  border-left: 3px solid var(--ochre);
  color: var(--ink);
}

.page-news .news-compare__table .diff {
  background: rgba(201, 102, 43, 0.16);
  box-shadow: inset 0 -1px 0 var(--ochre);
  padding: 0 2px;
}

/* ---------- 发布节奏 ---------- */
.page-news .news-cadence {
  background: var(--sand);
}

.page-news .news-cadence__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

.page-news .news-cadence__title {
  margin: 14px 0 0;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--lake-deep);
}

.page-news .news-cadence__text {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-news .news-version {
  display: grid;
  gap: 1px;
  margin: 28px 0 0;
  background: var(--news-rule);
  border: 1px solid var(--news-rule);
}

.page-news .news-version__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
}

.page-news .news-version__item dt {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--ochre);
}

.page-news .news-version__item dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
}

.page-news .news-cadence__figure {
  margin: 0;
}

.page-news .news-cadence__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.page-news .news-cadence__figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.page-news .news-cadence__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(28px, 4vw, 46px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--news-rule);
  border: 1px solid var(--news-rule);
}

.page-news .news-cadence__stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--sand);
}

.page-news .news-cadence__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  line-height: 1;
  color: var(--lake-deep);
}

.page-news .news-cadence__cap {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 订阅与纠错 ---------- */
.page-news .news-feedback {
  background: var(--lake-deep);
  color: var(--white);
}

.page-news .news-feedback__inner {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

.page-news .news-feedback__figure {
  margin: 0;
}

.page-news .news-feedback__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 4px solid var(--ochre);
}

.page-news .news-feedback .eyebrow {
  color: var(--ochre-pale);
}

.page-news .news-feedback__title {
  margin: 14px 0 0;
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--white);
}

.page-news .news-feedback__text {
  margin: 16px 0 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.page-news .news-feedback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-news .news-feedback__actions .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.page-news .news-feedback__actions .btn--ghost:hover {
  border-color: var(--ochre-pale);
  color: var(--ochre-pale);
}

.page-news .news-feedback__contact {
  display: grid;
  gap: 1px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.page-news .news-feedback__contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 11px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.page-news .news-feedback__k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ochre-pale);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-news {
    --news-sticky-top: 62px;
  }

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

  .page-news .news-hero__stats {
    gap: 12px 40px;
  }
}

@media (min-width: 960px) {
  .page-news .news-hero::before {
    display: block;
  }

  .page-news .news-hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    gap: clamp(32px, 4vw, 56px);
  }

  .page-news .news-hero__figure img {
    aspect-ratio: 16 / 10;
  }

  .page-news .news-filter__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }

  .page-news .news-compare__head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-news .news-cadence__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-news .news-feedback__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-pill {
    transition: none;
  }
}
