.page-news {
  --news-rail-w: 216px;
}

/* ---------- 顶部栏目头 ---------- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px) 0 clamp(40px, 5.5vw, 72px);
  background:
    radial-gradient(115% 80% at 88% -12%, rgba(45, 125, 255, 0.26), transparent 62%),
    radial-gradient(80% 62% at 4% 104%, rgba(51, 224, 208, 0.10), transparent 60%),
    var(--ink);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 34%, rgba(45, 125, 255, 0.10) 50%, transparent 66%);
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.page-news .news-hero > .shell {
  position: relative;
  z-index: 1;
}

.page-news .news-hero__main {
  display: grid;
  gap: clamp(26px, 4vw, 40px);
  margin-top: clamp(26px, 4vw, 44px);
}

.page-news .news-hero__copy h1 {
  margin: 0.36em 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--snow);
}

.page-news .news-hero__copy .lede {
  margin: clamp(16px, 2vw, 22px) 0 0;
  max-width: 64ch;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.85;
  color: var(--fog);
}

.page-news .news-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-news .news-hero__stats .stat {
  display: block;
  min-width: 0;
}

.page-news .news-hero__stats .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  color: var(--cyan);
}

.page-news .news-hero__stats .stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mist);
}

.page-news .news-hero__figure {
  margin: clamp(30px, 4.2vw, 52px) 0 0;
}

.page-news .news-hero__frame {
  aspect-ratio: 1600 / 520;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, var(--slate), var(--ink-deep));
}

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

/* ---------- 主体两栏 ---------- */
.page-news .news-body {
  padding-top: clamp(44px, 6vw, 84px);
}

.page-news .news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 56px);
}

.page-news .news-stream {
  min-width: 0;
}

/* ---------- 左侧标签栏 ---------- */
.page-news .news-rail {
  min-width: 0;
}

.page-news .news-rail__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-news .news-rail__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .news-rail__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 42, 68, 0.5);
  color: var(--fog);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}

.page-news .news-rail__link .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color 180ms var(--ease);
}

.page-news .news-rail__link:hover,
.page-news .news-rail__link:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.page-news .news-rail__link:hover .mono,
.page-news .news-rail__link:focus-visible .mono {
  color: rgba(255, 255, 255, 0.75);
}

.page-news .news-rail__figure {
  display: none;
  margin: clamp(20px, 3vw, 30px) 0 0;
}

.page-news .news-rail__frame {
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(160deg, var(--slate), var(--ink-deep));
}

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

/* ---------- 文章流头部 ---------- */
.page-news .news-stream__head {
  margin-bottom: clamp(22px, 3vw, 34px);
  padding-bottom: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}

.page-news .news-stream__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.01em;
  color: var(--snow);
}

.page-news .news-stream__lede {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- 精选大卡片 ---------- */
.page-news .news-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 30px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(45, 125, 255, 0.13), rgba(27, 42, 68, 0.75) 62%);
  box-shadow: inset 0 1px 0 rgba(157, 184, 217, 0.08);
  overflow: hidden;
}

.page-news .news-feature + .news-feature {
  margin-top: clamp(20px, 3vw, 28px);
}

.page-news .news-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 58%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), transparent);
}

.page-news .news-feature__body {
  min-width: 0;
}

.page-news .news-feature__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.32;
  color: var(--snow);
  overflow-wrap: break-word;
}

.page-news .news-feature__text {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--fog);
}

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

.page-news .news-feature__frame {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(150deg, var(--slate), var(--ink-deep));
}

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

.page-news .news-feature__more {
  margin-top: 18px;
}

.page-news .news-feature__more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--blue);
  list-style: none;
}

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

.page-news .news-feature__more summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
}

.page-news .news-feature__more[open] summary::after {
  content: "–";
}

.page-news .news-feature__more .tick-list {
  margin: 14px 0 0;
}

/* ---------- 标签分组 ---------- */
.page-news .news-group {
  margin-top: clamp(48px, 6vw, 84px);
  scroll-margin-top: 112px;
}

.page-news .news-group__head {
  display: grid;
  gap: 10px;
  padding-bottom: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}

.page-news .news-group__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -0.01em;
  color: var(--snow);
}

.page-news .news-group__title .mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.page-news .news-group__lede {
  margin: 0;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 文章列表 ---------- */
.page-news .news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .news-item {
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-news .news-item__title {
  position: relative;
  display: inline-block;
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.42;
  color: var(--snow);
  overflow-wrap: break-word;
  transition: color 180ms var(--ease);
}

.page-news .news-item__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease);
}

.page-news .news-item:hover .news-item__title,
.page-news .news-item:focus-within .news-item__title {
  color: #fff;
}

.page-news .news-item:hover .news-item__title::after,
.page-news .news-item:focus-within .news-item__title::after {
  transform: scaleX(1);
}

.page-news .news-item__excerpt {
  margin: 14px 0 0;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--fog);
}

/* ---------- 元信息 ---------- */
.page-news .news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.page-news .news-meta__time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-news .news-meta__tag {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
}

/* ---------- 回到精选 ---------- */
.page-news .news-back {
  position: sticky;
  bottom: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 40px);
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 21, 41, 0.92);
  color: var(--fog);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

.page-news .news-back::before {
  content: "↑";
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-news .news-back:hover,
.page-news .news-back:focus-visible {
  border-color: var(--cyan);
  color: var(--snow);
}

/* ---------- 归档区（亮色分区） ---------- */
.page-news .news-archive-wrap {
  padding-top: 0;
}

.page-news .news-archive {
  padding: clamp(30px, 4.5vw, 58px);
  border-radius: var(--radius);
  background: var(--snow);
  color: var(--ink);
}

.page-news .news-archive__title {
  margin: 0 0 clamp(22px, 3vw, 34px);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-news .news-archive__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 42px);
}

.page-news .news-archive__col {
  min-width: 0;
}

.page-news .news-archive__label {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.page-news .news-archive__text {
  margin: 0;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

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

.page-news .news-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid rgba(11, 30, 58, 0.16);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}

.page-news .news-chip:hover,
.page-news .news-chip:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

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

.page-news .news-archive__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-news .news-archive__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--blue);
}

/* ---------- 显现动画 ---------- */
@keyframes newsReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-news [data-reveal].is-shown {
  animation: newsReveal 440ms var(--ease) both;
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-news .news-hero__main {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(40px, 6vw, 88px);
  }

  .page-news .news-hero__stats {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: clamp(20px, 2.6vw, 32px);
  }

  .page-news .news-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
    align-items: center;
  }

  .page-news .news-feature--flip {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  }

  .page-news .news-feature--flip .news-feature__body {
    order: 2;
  }

  .page-news .news-feature--flip .news-feature__media {
    order: 1;
  }

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

@media (min-width: 980px) {
  .page-news .news-layout {
    grid-template-columns: var(--news-rail-w) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 76px);
  }

  .page-news .news-rail {
    position: sticky;
    top: 104px;
    align-self: start;
  }

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

  .page-news .news-rail__link {
    justify-content: flex-start;
    border-radius: var(--radius-sm);
  }

  .page-news .news-rail__figure {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news [data-reveal].is-shown {
    animation: none;
  }

  .page-news .news-rail__link,
  .page-news .news-item__title,
  .page-news .news-item__title::after,
  .page-news .news-chip,
  .page-news .news-back {
    transition: none;
  }
}
