.page-news {
  --news-line: rgba(138, 147, 163, 0.24);
  --news-line-strong: rgba(46, 216, 230, 0.42);
  --news-rail-w: 268px;
  --news-cut: 20px;
  --news-tint: rgba(46, 216, 230, 0.06);
  --hard: 6px 6px 0 var(--black);
  --hard-sm: 4px 4px 0 var(--black);
  background-color: var(--ink);
  color: var(--paper);
}

.page-news .shell {
  position: relative;
}

/* ---------- 首屏 ---------- */

.page-news .news-masthead {
  position: relative;
  overflow: hidden;
  padding: clamp(104px, 16vh, 164px) 0 clamp(36px, 5vw, 60px);
  background: linear-gradient(158deg, var(--ink) 0%, var(--ink-2) 56%, #0b2137 100%);
  border-bottom: 2px solid var(--line-soft);
}

.page-news .news-masthead::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -14%;
  width: min(760px, 82%);
  height: 150%;
  background: repeating-linear-gradient(
    102deg,
    rgba(46, 216, 230, 0.13) 0 2px,
    transparent 2px 28px
  );
  transform: skewX(-12deg);
  pointer-events: none;
}

.page-news .news-masthead .breadcrumb {
  position: relative;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.page-news .news-masthead .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--rock);
}

.page-news .news-masthead .breadcrumb a {
  color: var(--rock);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-news .news-masthead .breadcrumb a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-news .news-masthead .breadcrumb li + li::before {
  content: "／";
  margin-right: 8px;
  color: var(--line-soft);
}

.page-news .news-masthead__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-news .news-title {
  margin: 14px 0 22px;
  font-size: clamp(32px, 7vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: var(--paper);
}

.page-news .news-masthead__copy .lead {
  color: var(--paper);
  opacity: 0.86;
  max-width: 46em;
}

.page-news .news-masthead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-news .news-mark {
  margin: 0;
  width: min(150px, 40vw);
  background: var(--ink-2);
  border: 2px solid var(--line-strong, var(--line-soft));
  box-shadow: var(--hard-sm);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--news-cut)), calc(100% - var(--news-cut)) 100%, 0 100%);
}

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

/* 今日最热 */

.page-news .news-hot {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: clamp(30px, 5vw, 56px);
  padding-top: 18px;
  border-top: 2px solid var(--news-line-strong);
}

.page-news .news-hot__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--flame);
}

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

.page-news .news-hot__item a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid var(--news-line);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.page-news .news-hot__item a:hover {
  color: var(--cyan);
  padding-left: 6px;
}

.page-news .news-hot__rank {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--lime);
}

/* ---------- 项目标签条 ---------- */

.page-news .news-projects {
  padding: clamp(34px, 5vw, 58px) 0 0;
  background: var(--ink);
}

.page-news .news-projects__head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.page-news .news-projects__hint {
  margin: 0;
  color: var(--rock);
  font-size: 14px;
  line-height: 1.7;
}

.page-news .news-sec-title {
  margin: 0;
  font-size: clamp(23px, 3.4vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--paper);
}

.page-news .proj-bar {
  display: flex;
  gap: 10px;
  margin: 0 0 clamp(24px, 4vw, 40px);
  padding: 4px 0 10px;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-news .proj-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--line-soft);
  background: transparent;
  color: var(--paper);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.page-news .proj-tab__num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lime);
}

.page-news .proj-tab.is-active {
  background: var(--flame);
  border-color: var(--black);
  color: var(--black);
  box-shadow: var(--hard-sm);
}

.page-news .proj-tab.is-active .proj-tab__num {
  color: var(--black);
}

.page-news .news-hero {
  position: relative;
  margin: 0;
  border: 2px solid var(--line-soft);
  box-shadow: var(--hard);
  overflow: hidden;
}

.page-news .news-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ---------- 画布 ---------- */

.page-news .news-canvas {
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(120% 60% at 12% 0%, rgba(15, 44, 74, 0.85) 0%, rgba(6, 26, 46, 0) 62%),
    var(--ink);
}

.page-news .news-canvas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.page-news .news-sec {
  position: relative;
  padding: clamp(34px, 6vw, 64px) 0;
  border-top: 2px solid var(--news-line);
}

.page-news .news-sec:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-news .news-sec::after {
  content: attr(data-index);
  position: absolute;
  top: 12px;
  right: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--rock);
}

.page-news .news-sec:first-child::after {
  top: 0;
}

.page-news .news-sec__head {
  max-width: 46em;
  margin-bottom: clamp(22px, 3.4vw, 36px);
}

.page-news .news-sec__head .eyebrow {
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.page-news .news-sec__note {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rock);
}

/* ---------- 动态列表 ---------- */

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

.page-news .feed-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 20px 0 20px 20px;
  border-bottom: 1px solid var(--news-line);
  transition: background-color 0.25s ease;
}

.page-news .feed-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 3px;
  height: 18px;
  background: var(--rock);
  transition: top 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.page-news .feed-item--match::before { background: var(--cyan); }
.page-news .feed-item--replay::before { background: var(--flame); }
.page-news .feed-item--venue::before { background: var(--sand); }
.page-news .feed-item--version::before { background: var(--lime); }
.page-news .feed-item--partner::before { background: var(--rock); }

.page-news .feed-item:hover,
.page-news .feed-item:focus-within {
  background-color: var(--news-tint);
}

.page-news .feed-item:hover::before,
.page-news .feed-item:focus-within::before {
  top: 0;
  height: 100%;
  background: var(--cyan);
}

.page-news .feed-item__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--rock);
}

.page-news .feed-item--match .feed-item__tag { color: var(--cyan); }
.page-news .feed-item--replay .feed-item__tag { color: var(--flame); }
.page-news .feed-item--venue .feed-item__tag { color: var(--sand); }
.page-news .feed-item--version .feed-item__tag { color: var(--lime); }
.page-news .feed-item--partner .feed-item__tag { color: var(--rock); }

.page-news .feed-item__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-news .feed-item__desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rock);
}

.page-news .feed-item__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--news-line-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-news .feed-item__link:hover {
  color: var(--flame);
  border-bottom-color: var(--flame);
}

.page-news .feed-item__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--rock);
}

/* ---------- 赛季阶段 ---------- */

.page-news .phase-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
  border-left: 2px solid var(--news-line);
}

.page-news .phase-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 0 14px 4px;
  border-bottom: 1px solid rgba(138, 147, 163, 0.14);
}

.page-news .phase-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 20px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border: 2px solid var(--rock);
}

.page-news .phase-item__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--paper);
}

.page-news .phase-item__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--rock);
}

.page-news .phase-item.is-past .phase-item__name {
  color: var(--rock);
}

.page-news .phase-item.is-past::before {
  background: var(--rock);
  border-color: var(--rock);
}

.page-news .phase-item.is-current {
  border-bottom-color: var(--news-line-strong);
}

.page-news .phase-item.is-current .phase-item__name {
  color: var(--cyan);
}

.page-news .phase-item.is-current::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(46, 216, 230, 0.2);
}

/* ---------- 技术统计 ---------- */

.page-news .stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
}

.page-news .stats-block__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--flame);
}

.page-news .stats-block__title + .stat-list + .stats-block__title {
  margin-top: 30px;
}

.page-news .stat-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .stat-list li {
  padding: 11px 0 11px 16px;
  border-bottom: 1px solid var(--news-line);
  font-size: 15px;
  line-height: 1.55;
  color: var(--paper);
  position: relative;
}

.page-news .stat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  background: var(--lime);
}

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

.page-news .board-list li {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
  font-size: 14px;
  line-height: 1.65;
  color: var(--rock);
}

.page-news .board-list__num {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.page-news .stats-figure {
  margin: 0;
  border: 2px solid var(--line-soft);
  box-shadow: var(--hard-sm);
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-news .stats-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-news .stats-figure figcaption {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--rock);
  border-top: 1px solid var(--news-line);
}

/* ---------- 重点场次合集 ---------- */

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

.page-news .replays-figure {
  margin: 0;
  border: 2px solid var(--line-soft);
  box-shadow: var(--hard-sm);
  overflow: hidden;
}

.page-news .replays-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-news .replays-parts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .replays-part {
  position: relative;
  padding: 18px 0 18px 46px;
  border-bottom: 1px solid var(--news-line);
}

.page-news .replays-part:first-child {
  padding-top: 0;
}

.page-news .replays-part__idx {
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--flame);
}

.page-news .replays-part:first-child .replays-part__idx {
  top: 0;
}

.page-news .replays-part__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-news .replays-part p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rock);
}

.page-news .replays-foot {
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--lime);
  background: rgba(123, 240, 123, 0.06);
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper);
}

/* ---------- 关注与提醒 ---------- */

.page-news .follow-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--news-line-strong);
}

.page-news .follow-step {
  position: relative;
  padding: 22px 0 22px 0;
  border-bottom: 1px solid var(--news-line);
}

.page-news .follow-step__num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.page-news .follow-step__title {
  margin: 8px 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-news .follow-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--rock);
}

.page-news .follow-actions,
.page-news .contribute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 32px);
}

/* ---------- 投稿与合作 ---------- */

.page-news .contribute-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-news .contribute-card {
  padding: 20px 18px;
  border: 2px solid var(--line-soft);
  background: rgba(15, 44, 74, 0.55);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.page-news .contribute-card:hover {
  border-color: var(--cyan);
  transform: translate(-2px, -2px);
}

.page-news .contribute-card__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--sand);
}

.page-news .contribute-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--rock);
}

/* ---------- 右侧迷你比分带 ---------- */

.page-news .news-rail {
  order: 2;
}

.page-news .news-rail__inner {
  border: 2px solid var(--line-soft);
  background: var(--ink-2);
  padding: 18px 16px 20px;
  box-shadow: var(--hard-sm);
}

.page-news .news-rail__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--news-line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--lime);
}

.page-news .news-rail__pulse {
  width: 9px;
  height: 9px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(123, 240, 123, 0.18);
}

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

.page-news .rail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "league state"
    "score  score";
  gap: 4px 10px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(138, 147, 163, 0.2);
}

.page-news .rail-item__league {
  grid-area: league;
  font-size: 12px;
  line-height: 1.4;
  color: var(--rock);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-news .rail-item__state {
  grid-area: state;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--rock);
  white-space: nowrap;
}

.page-news .rail-item__state--live {
  color: var(--flame);
}

.page-news .rail-item__score {
  grid-area: score;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--lime);
}

.page-news .rail-item__score--text {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--sand);
}

.page-news .rail-item__sep {
  color: var(--rock);
}

.page-news .news-rail__note {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--rock);
}

.page-news .news-rail__btn {
  display: block;
  text-align: center;
}

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

@media (min-width: 560px) {
  .page-news .stat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
  }

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

@media (min-width: 768px) {
  .page-news .news-masthead__grid {
    grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 250px);
  }

  .page-news .news-mark {
    width: 100%;
  }

  .page-news .news-hot {
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: start;
  }

  .page-news .news-hot__label {
    padding-top: 10px;
  }

  .page-news .feed-item {
    grid-template-columns: minmax(0, 1fr) 168px;
    align-items: baseline;
  }

  .page-news .feed-item__meta {
    text-align: right;
  }

  .page-news .follow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 26px;
  }

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

@media (min-width: 900px) {
  .page-news .phase-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-left: 0;
    border-left: 0;
  }

  .page-news .phase-item {
    border-bottom: 0;
    border-top: 2px solid var(--news-line);
    padding: 24px 14px 0 0;
  }

  .page-news .phase-item::before {
    left: 0;
    top: -2px;
    width: 2px;
    height: 12px;
    background: var(--rock);
    border: 0;
    box-shadow: none;
  }

  .page-news .phase-item.is-past::before {
    background: var(--rock);
  }

  .page-news .phase-item.is-current {
    border-top-color: var(--cyan);
  }

  .page-news .phase-item.is-current::before {
    top: -10px;
    width: 4px;
    height: 24px;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(46, 216, 230, 0.18);
  }

  .page-news .stats-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  }

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

  .page-news .replays-part:first-child {
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .page-news .news-canvas__grid {
    grid-template-columns: minmax(0, 1fr) var(--news-rail-w);
    gap: clamp(36px, 4vw, 60px);
  }

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

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

@media (min-width: 1280px) {
  .page-news .stat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .feed-item,
  .page-news .feed-item::before,
  .page-news .contribute-card,
  .page-news .proj-tab,
  .page-news .feed-item__link,
  .page-news .news-hot__item a {
    transition: none;
  }
}

.page-news {
  --line-strong: currentColor;
}
