.page-news {
  --news-gap: clamp(18px, 3vw, 32px);
  --news-rule: 1px solid var(--line);
  overflow-x: hidden;
  color: var(--paper);
  background:
    repeating-linear-gradient(180deg, rgba(242, 239, 230, .022) 0 1px, transparent 1px 5px),
    radial-gradient(90% 55% at 8% -6%, rgba(160, 107, 255, .16), transparent 62%),
    radial-gradient(70% 45% at 98% 4%, rgba(63, 224, 208, .10), transparent 60%),
    var(--ink);
}

/* 面包屑 */
.page-news .news-crumb {
  padding: 18px 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.page-news .news-crumb a {
  color: var(--muted);
  text-decoration: none;
}
.page-news .news-crumb a:hover,
.page-news .news-crumb a:focus-visible {
  color: var(--cyan);
}

/* 置顶横幅 */
.page-news .news-banner {
  position: relative;
  overflow: hidden;
  border-block: var(--news-rule);
  background: linear-gradient(155deg, var(--ink-2) 0%, var(--ink) 62%);
}
.page-news .news-banner::before {
  content: "";
  position: absolute;
  inset: -30% -12% auto 42%;
  height: 150%;
  transform: rotate(-7deg);
  background: linear-gradient(125deg, rgba(255, 61, 139, .17), rgba(160, 107, 255, .12) 42%, transparent 68%);
  pointer-events: none;
}
.page-news .news-banner__inner {
  position: relative;
  display: grid;
  gap: var(--news-gap);
  padding: clamp(26px, 5vw, 54px) var(--gutter) clamp(30px, 5vw, 58px);
}
.page-news .news-banner__text { order: 1; }
.page-news .news-banner__media { order: 2; }
.page-news .news-banner__round { order: 3; }

.page-news .news-banner__title {
  margin: 10px 0 14px;
  max-width: 18ch;
}
.page-news .news-banner__lede {
  max-width: 46ch;
  color: var(--paper);
  opacity: .88;
}
.page-news .news-banner__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-news .news-banner__media {
  margin: 0;
  aspect-ratio: 1920 / 700;
  border: var(--news-rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
}
.page-news .news-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(88%) contrast(108%);
}

.page-news .news-banner__round {
  display: grid;
  gap: 6px;
  padding: 16px 20px 18px;
  border: var(--news-rule);
  border-left: 3px solid var(--violet);
  border-radius: var(--r-sm);
  background: rgba(14, 26, 43, .72);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.page-news .news-banner__round-k {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted);
}
.page-news .news-banner__round-num {
  font-size: clamp(46px, 9vw, 78px);
  line-height: .88;
  letter-spacing: -.03em;
  color: var(--cyan);
}
.page-news .news-banner__round-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.page-news .news-banner__round:target {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 34px rgba(63, 224, 208, .26);
}

/* 主体栅格 */
.page-news .news-body {
  padding: clamp(30px, 6vw, 66px) 0 clamp(44px, 7vw, 88px);
}
.page-news .news-body__grid {
  gap: clamp(28px, 4vw, 54px);
}

.page-news .news-section {
  padding-top: clamp(30px, 4vw, 46px);
}
.page-news .news-section:first-child {
  padding-top: 0;
}
.page-news .news-head {
  padding-top: 16px;
  margin-bottom: 16px;
  border-top: var(--news-rule);
}
.page-news .news-head__title {
  margin: 8px 0 8px;
}
.page-news .news-head__note {
  max-width: 52ch;
  margin: 0;
}

/* 笔记条目 */
.page-news .news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-news .news-note {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0 20px;
  border-top: var(--news-rule);
  transition: border-color .22s var(--ease);
}
.page-news .news-note:last-child {
  border-bottom: var(--news-rule);
}
.page-news .news-note:hover,
.page-news .news-note:focus-within {
  border-top-color: var(--violet);
}
.page-news .news-note__rail {
  position: relative;
  display: block;
}
.page-news .news-note__rail::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: -20px;
  width: 1px;
  background: var(--line);
}
.page-news .news-note:last-child .news-note__rail::before {
  bottom: 8px;
}
.page-news .news-note__rail::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--violet);
}
.page-news .news-note--version .news-note__rail::after { border-color: var(--cyan); }
.page-news .news-note--region .news-note__rail::after { border-color: var(--clay); }
.page-news .news-note--editor .news-note__rail::after { border-color: var(--moss); }

.page-news .news-note__body {
  min-width: 0;
}
.page-news .news-note__when {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cyan);
}
.page-news .news-note__title {
  position: relative;
  display: inline-block;
  margin: 0 0 8px;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.35;
}
.page-news .news-note__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--violet);
  transition: width .18s var(--ease);
}
.page-news .news-note:hover .news-note__title::after,
.page-news .news-note:focus-within .news-note__title::after {
  width: 100%;
}
.page-news .news-note__text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(242, 239, 230, .78);
}
.page-news .news-note__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.page-news .news-note__tag {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .18em;
}
.page-news .news-note__go {
  grid-column: 2;
  justify-self: start;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 224, 208, .42);
  padding-bottom: 1px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.page-news .news-note__go:hover,
.page-news .news-note__go:focus-visible {
  color: var(--paper);
  border-color: var(--paper);
}

/* 编辑短评 */
.page-news .news-pause {
  margin: 24px 0 6px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--clay);
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75;
  color: rgba(242, 239, 230, .92);
}

/* 折叠块 */
.page-news .news-fold {
  margin-top: 20px;
  border: var(--news-rule);
  border-radius: var(--r-sm);
  background: rgba(14, 26, 43, .55);
}
.page-news .news-fold > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
  transition: color .18s var(--ease);
}
.page-news .news-fold > summary::-webkit-details-marker { display: none; }
.page-news .news-fold > summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--violet);
}
.page-news .news-fold[open] > summary::after { content: "–"; }
.page-news .news-fold > summary:hover { color: var(--paper); }
.page-news .news-fold__body {
  display: grid;
  gap: 12px;
  padding: 0 16px 18px;
}
.page-news .news-fold__item {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.page-news .news-fold__item strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
}

/* 图片容器 */
.page-news .news-figure {
  margin: 26px 0 0;
  border: var(--news-rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
}
.page-news .news-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.page-news .news-figure .yb-media__cap {
  padding: 10px 14px 12px;
  border-top: var(--news-rule);
  background: rgba(7, 8, 13, .6);
}
.page-news .news-figure--editor {
  max-width: 520px;
}

/* 赛区轨道 */
.page-news .news-rail {
  display: flex;
  gap: 10px;
  margin: 4px 0 22px;
  padding: 4px var(--gutter) 12px 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.page-news .news-rail::-webkit-scrollbar { height: 4px; }
.page-news .news-rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}
.page-news .news-region {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: rgba(14, 26, 43, .6);
}
.page-news .news-region--done {
  color: var(--paper);
  border-style: solid;
  border-color: var(--moss);
}

/* 编辑手记 */
.page-news .news-jots {
  display: grid;
  gap: 0;
  margin-top: 22px;
}
.page-news .news-jot {
  margin: 0;
  padding: 16px 0 16px 16px;
  border-top: var(--news-rule);
  border-left: 2px solid rgba(124, 154, 107, .55);
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.8;
  color: rgba(242, 239, 230, .9);
}
.page-news .news-jot:last-child { border-bottom: var(--news-rule); }
.page-news .news-jot__k {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--moss);
}

/* 订阅与反馈 */
.page-news .news-sub {
  border: var(--news-rule);
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, rgba(160, 107, 255, .12), rgba(7, 8, 13, .2) 55%), var(--ink-2);
  padding: 20px;
}
.page-news .news-sub__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-news .news-sub__list li {
  display: grid;
  gap: 3px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(242, 239, 230, .82);
}
.page-news .news-sub__num {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: .05em;
}
.page-news .news-sub__hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  word-break: break-word;
}
.page-news .news-sub__hint a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 224, 208, .45);
}
.page-news .news-sub__hint a:hover,
.page-news .news-sub__hint a:focus-visible {
  color: var(--paper);
  border-color: var(--paper);
}

/* 侧栏索引 */
.page-news .news-side__inner {
  display: grid;
  gap: 26px;
}
.page-news .news-index__list,
.page-news .news-tags__list,
.page-news .news-jump__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.page-news .news-index__list a,
.page-news .news-jump__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: var(--news-rule);
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}
.page-news .news-index__list a:hover,
.page-news .news-index__list a:focus-visible,
.page-news .news-jump__list a:hover,
.page-news .news-jump__list a:focus-visible {
  color: var(--violet);
  padding-left: 4px;
}
.page-news .news-index__num {
  font-size: 12px;
  color: var(--muted);
}
.page-news .news-tags__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.page-news .news-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
}
.page-news .news-dot--violet { background: var(--violet); }
.page-news .news-dot--cyan { background: var(--cyan); }
.page-news .news-dot--clay { background: var(--clay); }
.page-news .news-dot--moss { background: var(--moss); }

.page-news .news-pulse {
  padding: 16px;
  border: var(--news-rule);
  border-radius: var(--r-sm);
  background: rgba(14, 26, 43, .62);
}
.page-news .news-pulse__list {
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.page-news .news-pulse__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}
.page-news .news-pulse__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.page-news .news-pulse__row dt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.page-news .news-pulse__row dd {
  margin: 0;
  font-size: 15px;
  color: var(--cyan);
  white-space: nowrap;
}

/* 中屏以上 */
@media (min-width: 760px) {
  .page-news .news-note__text { font-size: 16px; }
  .page-news .news-jots { margin-top: 26px; }
}

/* 桌面：横幅分栏 + 侧栏吸顶 + 条目右侧入口 */
@media (min-width: 980px) {
  .page-news .news-banner__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) auto;
    grid-template-areas: "text media round";
    align-items: end;
    column-gap: clamp(24px, 3vw, 48px);
  }
  .page-news .news-banner__text { grid-area: text; }
  .page-news .news-banner__media { grid-area: media; }
  .page-news .news-banner__round { grid-area: round; order: 0; }

  .page-news .news-side__inner {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-news .news-note {
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 22px;
  }
  .page-news .news-note__go {
    grid-column: 3;
    grid-row: 1;
    margin-top: 26px;
    opacity: .55;
    transition: opacity .22s var(--ease), color .18s var(--ease);
  }
  .page-news .news-note:hover .news-note__go,
  .page-news .news-note:focus-within .news-note__go {
    opacity: 1;
  }

  .page-news .news-section--tighter {
    max-width: 640px;
  }
  .page-news .news-figure { margin-top: 30px; }
}

@media (min-width: 1200px) {
  .page-news .news-banner__title { font-size: clamp(38px, 3.6vw, 58px); }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  .page-news .news-note,
  .page-news .news-note__title::after,
  .page-news .news-note__go,
  .page-news .news-banner__round,
  .page-news .news-index__list a,
  .page-news .news-jump__list a {
    transition: none;
  }
}
</main>
