.page-news {
  --news-cut: 24px;
  --news-rule: rgba(20, 18, 26, 0.10);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-news .crumbs {
  padding-top: clamp(14px, 2vw, 22px);
}

/* ---------- 首屏：上新课表横带 ---------- */

.page-news .news-hero {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: var(--paper);
  padding: clamp(22px, 4vw, 42px) 0 clamp(28px, 4.6vw, 52px);
  margin-top: clamp(10px, 2vw, 18px);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: -28%;
  right: -22%;
  width: 72%;
  height: 156%;
  background: linear-gradient(158deg, rgba(255, 122, 0, 0.24), rgba(255, 93, 162, 0.10) 52%, transparent 78%);
  transform: rotate(-13deg);
  pointer-events: none;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 200, 87, 0.30) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.22;
  pointer-events: none;
}

.page-news .news-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  grid-template-columns: 1fr;
  align-items: center;
}

.page-news .news-hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-news .news-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.page-news .news-hero__title .hl {
  color: var(--gold);
  background-image: linear-gradient(transparent 66%, rgba(255, 122, 0, 0.5) 66%);
}

.page-news .news-hero__lede {
  margin: 0 0 24px;
  max-width: 56ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: rgba(247, 239, 225, 0.82);
}

.page-news .news-hero .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-news .news-hero__art {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--news-cut) 0 var(--news-cut) 0;
  background: var(--night);
  box-shadow: 0 18px 40px rgba(11, 27, 58, 0.5);
}

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

.page-news .news-week {
  position: relative;
  z-index: 1;
  margin-top: clamp(28px, 4.6vw, 52px);
}

.page-news .news-week__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 200, 87, 0.4);
}

.page-news .news-week__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(20px, 2.8vw, 26px);
  color: var(--gold);
}

.page-news .news-week__note {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(247, 239, 225, 0.62);
}

.page-news .week-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 200, 87, 0.55) transparent;
}

.page-news .week-rail::-webkit-scrollbar {
  height: 6px;
}

.page-news .week-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 200, 87, 0.5);
  border-radius: 99px;
}

.page-news .week-rail:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.page-news .week-card {
  flex: 0 0 clamp(216px, 68vw, 264px);
  scroll-snap-align: start;
  position: relative;
  padding: 18px 18px 20px;
  background: linear-gradient(168deg, rgba(43, 27, 74, 0.94), rgba(11, 27, 58, 0.94));
  border: 1px solid rgba(255, 200, 87, 0.28);
  border-radius: 2px 18px 2px 18px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .week-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(255, 122, 0, 0.24);
}

.page-news .week-card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-news .week-card__title {
  margin: 12px 0 6px;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.4;
  color: var(--paper);
  text-shadow: 0 0 14px rgba(255, 200, 87, 0.38);
}

.page-news .week-card__meta {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-news .week-card__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: rgba(247, 239, 225, 0.74);
}

/* ---------- 主体：条目流 + 分类索引 ---------- */

.page-news .news-body {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: clamp(34px, 5.5vw, 60px);
  padding-bottom: clamp(8px, 1.6vw, 18px);
}

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

.page-news .news-group + .news-group {
  margin-top: clamp(34px, 5vw, 56px);
}

.page-news .stream-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.page-news .stream-head__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: 0.01em;
  color: var(--ink);
}

.page-news .stream-head__note {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sand);
}

.page-news .post {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.6vw, 26px) clamp(18px, 2.6vw, 26px) clamp(18px, 2.6vw, 26px) clamp(24px, 3.2vw, 32px);
  background: #FFFDF8;
  border: 1px solid var(--news-rule);
  border-radius: 0 var(--news-cut) 0 var(--news-cut);
  box-shadow: 0 2px 0 rgba(20, 18, 26, 0.04);
}

.page-news .post + .post {
  margin-top: 16px;
}

.page-news .post__stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}

.page-news .post--forward .post__stripe {
  background: var(--sun);
}

.page-news .post--event .post__stripe {
  background: var(--teal);
}

.page-news .post--topic .post__stripe {
  background: var(--pink);
}

.page-news .post--paper {
  background: linear-gradient(178deg, #FFF6E2, #FBEAD0);
  border-color: rgba(138, 106, 47, 0.34);
}

.page-news .post--paper .post__stripe {
  background: var(--sand);
}

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

.page-news .news-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.page-news .news-tag--teal {
  background: var(--teal);
}

.page-news .news-tag--pink {
  background: var(--pink);
  color: #FFFFFF;
}

.page-news .post__time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--sand);
}

.page-news .post__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.48;
  color: var(--ink);
}

.page-news .post__desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.82;
  color: #3B3742;
}

.page-news .post__fold {
  margin-top: 14px;
  border-top: 1px dashed rgba(20, 18, 26, 0.16);
}

.page-news .post__fold .fold__summary {
  padding: 12px 0 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--sun);
  list-style: none;
}

.page-news .post__fold .fold__summary::-webkit-details-marker {
  display: none;
}

.page-news .post__fold .fold__summary::after {
  content: " ＋";
  font-family: var(--font-mono);
  color: var(--teal);
}

.page-news .post__fold[open] .fold__summary::after {
  content: " －";
}

.page-news .post__fold .fold__body p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #4A4552;
}

.page-news .group-media {
  margin: 20px 0 0;
}

.page-news .group-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--news-rule);
  border-radius: 0 var(--news-cut) 0 var(--news-cut);
}

.page-news .group-media figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sand);
}

/* ---------- 分类索引侧栏 ---------- */

.page-news .news-side {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.page-news .news-side__box {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 24px;
  background: var(--deep);
  color: var(--paper);
  border-radius: var(--news-cut) 0 var(--news-cut) 0;
}

.page-news .news-side__box::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.34), transparent 68%);
  pointer-events: none;
}

.page-news .news-side__title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 18px;
  color: var(--gold);
}

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

.page-news .news-side__item + .news-side__item {
  margin-top: 2px;
}

.page-news .news-side__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(247, 239, 225, 0.86);
  text-decoration: none;
  font-size: 15px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-news .news-side__link:hover,
.page-news .news-side__link:focus-visible {
  background: rgba(255, 200, 87, 0.14);
  color: var(--gold);
}

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

.page-news .news-side__hint {
  padding: 18px 18px 20px;
  background: #FFFDF8;
  border: 1px solid var(--news-rule);
  border-left: 5px solid var(--teal);
  border-radius: 0 16px 0 16px;
}

.page-news .news-side__hint-title {
  margin: 0 0 8px;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 16px;
  color: var(--deep);
}

.page-news .news-side__hint-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #4A4552;
}

.page-news .news-side__cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--sun);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 122, 0, 0.4);
  padding-bottom: 2px;
}

.page-news .news-side__cta:hover,
.page-news .news-side__cta:focus-visible {
  border-bottom-color: var(--sun);
}

/* ---------- 年度回顾 ---------- */

.page-news .news-annual {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(34px, 5vw, 60px) 0;
  background: linear-gradient(152deg, #FFF4DD, #F7E7C8 58%, #F1DBBE);
  border-top: 1px solid rgba(138, 106, 47, 0.28);
  border-bottom: 1px solid rgba(138, 106, 47, 0.28);
}

.page-news .news-annual__inner {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  grid-template-columns: 1fr;
  align-items: center;
}

.page-news .news-annual__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--sand);
}

.page-news .news-annual__title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(23px, 3.6vw, 32px);
  line-height: 1.36;
  color: var(--ink);
}

.page-news .news-annual__text {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.82;
  color: #3B3742;
}

.page-news .news-annual__text--tail {
  margin-top: 18px;
  margin-bottom: 0;
}

.page-news .news-annual__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.page-news .news-stat {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.66);
  border-left: 4px solid var(--sun);
  border-radius: 0 12px 0 12px;
}

.page-news .news-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(23px, 3.4vw, 31px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}

.page-news .news-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #5A5348;
}

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

.page-news .news-annual__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border: 1px solid rgba(138, 106, 47, 0.3);
  border-radius: var(--news-cut) 0 var(--news-cut) 0;
}

.page-news .news-annual__art figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sand);
}

/* ---------- 别错过更新 ---------- */

.page-news .news-keep {
  padding-top: clamp(38px, 5.4vw, 64px);
}

.page-news .news-keep__list {
  counter-reset: keep;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .keep-card {
  position: relative;
  padding: 20px 20px 22px 62px;
  background: #FFFDF8;
  border: 1px solid var(--news-rule);
  border-radius: 0 var(--news-cut) 0 var(--news-cut);
}

.page-news .keep-card::before {
  counter-increment: keep;
  content: counter(keep, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--sun);
  letter-spacing: -0.02em;
}

.page-news .keep-card__title {
  margin: 0 0 8px;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.5;
  color: var(--deep);
}

.page-news .keep-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #4A4552;
}

/* ---------- 底部入口 ---------- */

.page-news .news-cta {
  padding: clamp(32px, 5vw, 56px) 0 clamp(42px, 6vw, 68px);
}

.page-news .news-cta__inner {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3.6vw, 36px);
  background: var(--night);
  background-image: radial-gradient(circle at 88% 18%, rgba(255, 122, 0, 0.28), transparent 58%);
  border-radius: var(--news-cut) 0 var(--news-cut) 0;
  color: var(--paper);
}

.page-news .news-cta__text {
  margin: 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(247, 239, 225, 0.88);
}

.page-news .news-cta__text a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 200, 87, 0.45);
  padding-bottom: 1px;
}

.page-news .news-cta__text a:hover,
.page-news .news-cta__text a:focus-visible {
  border-bottom-color: var(--gold);
}

.page-news .news-cta .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .page-news .news-week__head {
    justify-content: space-between;
  }

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

@media (min-width: 900px) {
  .page-news .news-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-news .news-annual__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

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

@media (min-width: 1000px) {
  .page-news .news-body {
    grid-template-columns: minmax(0, 8fr) minmax(230px, 3.4fr);
  }

  .page-news .news-side {
    position: sticky;
    top: 96px;
  }
}

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

  .page-news .week-card:hover {
    transform: none;
  }
}
