.page-news {
  --pn-line: rgba(159, 176, 198, .18);
  --pn-line-strong: rgba(159, 176, 198, .34);
  --pn-card: rgba(18, 41, 74, .55);
  --pn-wine-light: #B0526A;
  --pn-text-soft: #B9C7DA;
  background: var(--ink-900);
  color: var(--snow);
  font-family: var(--font-body);
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 80px);
  position: relative;
  overflow-x: clip;
}

.page-news::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(159, 176, 198, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 176, 198, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}

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

.page-news h1,
.page-news h2,
.page-news h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.14;
}

.page-news p {
  margin: 0;
}

.page-news a {
  color: var(--flag-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 141, 255, .35);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news a:hover {
  color: var(--flag-white);
  border-bottom-color: var(--flag-white);
}

.page-news a.btn,
.page-news .crumbs a,
.page-news .news-rail__link {
  border-bottom: none;
}

.page-news a:focus-visible,
.page-news button:focus-visible,
.page-news summary:focus-visible {
  outline: 2px solid var(--flag-yellow);
  outline-offset: 2px;
}

/* 报头 */
.news-masthead {
  max-width: 1440px;
  margin: 0 auto clamp(22px, 3vw, 40px);
  display: grid;
  gap: 14px;
  padding-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--pn-line);
}

.page-news .crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mist);
}

.page-news .crumbs a {
  color: var(--mist);
}

.page-news .crumbs a:hover {
  color: var(--flag-blue);
}

.page-news .crumbs__sep {
  color: var(--mist-dim);
}

.news-masthead__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--flag-yellow);
}

.page-news h1 {
  font-size: clamp(30px, 5.4vw, 62px);
  max-width: 20ch;
}

.news-lead {
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.85;
  color: #C9D6E6;
}

.news-masthead__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
  border-left: 2px solid var(--flag-green);
  padding-left: 10px;
}

/* 左侧栏目轨 + 右侧内容 */
.news-layout {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.news-rail {
  display: grid;
  gap: 8px;
  align-content: start;
  border-top: 1px solid var(--pn-line);
  padding-top: 12px;
}

.news-rail__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--mist);
}

.news-rail__list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.news-rail__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--mist);
  border-left: 2px solid transparent;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.news-rail__link:hover {
  color: var(--snow);
  background: rgba(76, 141, 255, .1);
  border-left-color: var(--flag-blue);
}

.news-rail__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mist-dim);
}

.news-rail__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  display: block;
}

.news-rail__dot--wine { background: var(--pn-wine-light); }
.news-rail__dot--blue { background: var(--flag-blue); }
.news-rail__dot--yellow { background: var(--flag-yellow); }
.news-rail__dot--green { background: var(--flag-green); }

.news-flow {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  min-width: 0;
}

/* 章节头 */
.news-section {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.news-section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--pn-line);
  padding-bottom: 12px;
}

.news-section__num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(159, 176, 198, .55);
}

.news-section__title {
  font-size: clamp(21px, 2.6vw, 32px);
}

.news-section__kicker {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 74ch;
}

/* 置顶专题 */
.news-feature {
  background: linear-gradient(150deg, #12294A 0%, #16305A 46%, #4A1A2A 100%);
  border: 1px solid var(--pn-line-strong);
  padding: clamp(16px, 2.4vw, 28px);
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.news-feature__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--ink-750);
}

.news-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) brightness(.86);
}

.news-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 51, .1) 0%, rgba(11, 27, 51, .86) 100%);
}

.news-feature__body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.news-feature__eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--flag-yellow);
}

.news-feature__title {
  font-size: clamp(22px, 3.2vw, 38px);
  max-width: 22ch;
}

.news-feature__grid {
  display: grid;
  gap: 20px;
}

.news-feature__main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.news-feature__text {
  font-size: 14.5px;
  line-height: 1.85;
  color: #C9D6E6;
}

.news-chart {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(11, 27, 51, .5);
  border: 1px solid var(--pn-line);
  padding: 8px;
}

.news-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.news-stat {
  background: rgba(11, 27, 51, .55);
  border: 1px solid var(--pn-line);
  border-left: 2px solid var(--flag-blue);
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}

.news-stat__label {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
}

.news-stat__value {
  font-family: var(--font-mono);
  font-size: 19px;
  letter-spacing: .02em;
  color: var(--snow);
}

.news-feature__side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.news-toc {
  border-top: 1px solid var(--pn-line);
  padding-top: 10px;
}

.news-toc__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--flag-blue);
}

.news-toc__summary::-webkit-details-marker {
  display: none;
}

.news-toc__summary::before {
  content: "▸";
  font-size: 10px;
  transition: transform var(--dur) var(--ease);
}

.news-toc[open] .news-toc__summary::before {
  transform: rotate(90deg);
}

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

.news-toc__list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.7;
  color: #C9D6E6;
  border-left: 2px solid var(--pn-line);
  padding-left: 10px;
}

.news-toc__no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mist-dim);
  padding-top: 3px;
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 筛选 */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-chip {
  appearance: none;
  background: transparent;
  border: 1px solid var(--pn-line-strong);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.news-chip:hover {
  color: var(--snow);
  border-color: var(--flag-blue);
}

.news-chip[aria-pressed="true"],
.news-chip.is-active {
  background: rgba(76, 141, 255, .18);
  border-color: var(--flag-blue);
  color: var(--flag-white);
}

/* 战报列表 */
.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  --accent: var(--pn-line-strong);
  display: grid;
  gap: 10px;
  padding: clamp(14px, 2vw, 20px);
  background: var(--pn-card);
  border: 1px solid var(--pn-line);
  border-top: 2px solid var(--accent);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.news-item--flash { --accent: var(--flag-blue); }
.news-item--recap { --accent: var(--flag-yellow); }
.news-item--note { --accent: var(--flag-green); }
.news-item--plateau { --accent: var(--flag-red); }
.news-item--class { --accent: var(--pn-wine-light); }
.news-item--lead { --accent: var(--flag-blue); }

.news-item:hover,
.news-item:focus-within {
  transform: translateY(-4px);
  border-color: var(--flag-blue);
  background: rgba(22, 48, 90, .75);
  box-shadow: 0 16px 34px rgba(2, 8, 20, .45);
}

.news-item__body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.news-item__media {
  overflow: hidden;
  min-height: 132px;
}

.news-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  filter: saturate(.75) brightness(.9);
}

.news-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--mist);
}

.news-item__score {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: .08em;
  color: var(--snow);
}

.news-item__title {
  font-size: clamp(16.5px, 1.9vw, 21px);
  line-height: 1.42;
}

.news-item__summary {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--pn-text-soft);
}

.news-empty {
  display: none;
  padding: 22px;
  border: 1px dashed var(--pn-line-strong);
  color: var(--mist);
  font-size: 14px;
  text-align: center;
}

/* 专栏分类 */
.news-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.news-col {
  --accent: var(--pn-line-strong);
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(14px, 2vw, 20px);
  background: rgba(18, 41, 74, .5);
  border: 1px solid var(--pn-line);
  border-left: 3px solid var(--accent);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.news-col:hover {
  background: rgba(22, 48, 90, .7);
}

.news-col--flash { --accent: var(--flag-blue); }
.news-col--recap { --accent: var(--flag-yellow); }
.news-col--note { --accent: var(--flag-green); }
.news-col--plateau { --accent: var(--flag-red); }
.news-col--class { --accent: var(--pn-wine-light); }

.news-col__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist-dim);
}

.news-col__title {
  font-size: 17.5px;
  line-height: 1.35;
}

.news-col__text {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--pn-text-soft);
}

.news-col__media {
  margin-top: 4px;
  overflow: hidden;
}

.news-col__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.7) brightness(.88);
}

.news-editor-note {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(240, 180, 60, .06);
  border-left: 2px solid var(--flag-yellow);
}

.news-editor-note__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--flag-yellow);
}

.news-editor-note p {
  font-size: 13.5px;
  line-height: 1.85;
  color: #C9D6E6;
}

/* 订阅与反馈 */
.news-feedback {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.news-panel {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(160deg, rgba(22, 48, 90, .9), rgba(11, 27, 51, .92));
  border: 1px solid var(--pn-line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.news-panel--wine {
  background: linear-gradient(160deg, #4A1A2A 0%, #2A1220 100%);
  border-color: rgba(176, 82, 106, .45);
}

.news-panel__title {
  font-size: 19px;
}

.news-panel__text {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--pn-text-soft);
}

.news-contact {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .03em;
  color: var(--snow);
  word-break: break-all;
  border-left: 2px solid var(--flag-green);
  padding-left: 10px;
}

.news-note {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mist);
}

/* 断点 */
@media (min-width: 640px) {
  .news-item--lead {
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }

  .news-item--lead .news-item__media {
    height: 100%;
    min-height: 140px;
  }

  .news-item--lead .news-item__media img {
    height: 100%;
    aspect-ratio: auto;
  }

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

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

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

@media (min-width: 960px) {
  .news-layout {
    grid-template-columns: 188px minmax(0, 1fr);
    gap: clamp(28px, 3vw, 48px);
    align-items: start;
  }

  .news-rail {
    position: sticky;
    top: 24px;
    border-top: none;
    padding-top: 0;
    border-left: 1px solid var(--pn-line);
    padding-left: 12px;
  }

  .news-rail__list {
    display: grid;
    gap: 2px;
    overflow: visible;
    padding-bottom: 0;
  }

  .news-rail__link {
    white-space: normal;
    padding: 10px 10px 10px 0;
    border-left: 2px solid transparent;
    margin-left: -14px;
    padding-left: 12px;
  }

  .news-feature__grid {
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: 24px;
  }

  .news-feature__media {
    aspect-ratio: 21 / 7;
  }
}

@media (min-width: 1120px) {
  .news-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-col--wide {
    grid-column: span 2;
  }
}

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

  .news-item:hover,
  .news-item:focus-within {
    transform: none;
  }

  .news-toc__summary::before {
    transition: none;
  }
}
