/* ============ 战报专栏 /reports/ ============ */

.page-news {
  --news-node-shot: var(--blue);
  --news-node-goal: var(--orange);
  --news-node-card: var(--amber);
  --news-node-sub: var(--blue);
  --news-node-red: var(--red);
}

/* ---------- 面包屑 ---------- */

.page-news .news-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: clamp(16px, 3vw, 28px);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-news .news-crumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.page-news .news-crumb a:hover,
.page-news .news-crumb a:focus-visible {
  color: var(--orange);
}

.page-news .news-crumb__current {
  color: var(--white);
}

/* ---------- 首屏框景 ---------- */

.page-news .news-hero {
  padding-top: clamp(18px, 3vw, 34px);
}

.page-news .news-hero__frame {
  position: relative;
  border: 1px solid var(--grid);
  background: linear-gradient(180deg, rgba(12, 20, 36, 0.94) 0%, rgba(5, 7, 15, 0.68) 100%);
  padding: clamp(26px, 5vw, 52px) clamp(18px, 4vw, 48px) clamp(26px, 5vw, 52px) clamp(32px, 6vw, 80px);
  overflow: hidden;
}

.page-news .news-hero__frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: repeating-linear-gradient(180deg, var(--grid) 0 1px, transparent 1px 11px);
  border-right: 1px solid var(--grid-soft);
}

.page-news .news-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 9vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 16px 0 0;
}

.page-news .news-hero__lead {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
}

.page-news .news-hero__lead strong {
  color: var(--white);
  font-weight: 600;
}

.page-news .news-hero__stats {
  list-style: none;
  margin: clamp(24px, 4vw, 38px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}

.page-news .news-hero__stat {
  background: var(--panel-deep);
  padding: 14px 16px 16px;
}

.page-news .news-hero__stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.page-news .news-hero__stat:first-child b {
  color: var(--orange);
}

.page-news .news-hero__stat span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- 媒体容器 ---------- */

.page-news .news-media {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--grid);
  background: var(--panel-deep);
  aspect-ratio: 16 / 9;
}

.page-news .news-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) brightness(0.8) contrast(1.06);
}

.page-news .news-hero__media {
  margin-top: 14px;
}

.page-news .news-media__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid var(--grid);
  background: rgba(5, 7, 15, 0.84);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---------- 章节标题 ---------- */

.page-news .news-head {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.page-news .section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0;
}

.page-news .section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
}

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

/* ---------- 筛选条 ---------- */

.page-news .news-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--grid);
  margin-bottom: clamp(26px, 4vw, 40px);
}

.page-news .news-chip {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--grid);
  background: var(--panel-deep);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-news .news-chip:hover,
.page-news .news-chip:focus-visible {
  border-color: var(--orange);
  color: var(--white);
}

.page-news .news-filter__hint {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- 战报分组与卡片 ---------- */

.page-news .news-group {
  margin-top: clamp(30px, 4vw, 46px);
}

.page-news .news-group:first-of-type {
  margin-top: 0;
}

.page-news .news-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--grid);
  margin-bottom: 18px;
}

.page-news .news-group__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--white);
}

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

.page-news .news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--grid);
  overflow: hidden;
  transition: border-color 0.22s var(--ease);
}

.page-news .news-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent, var(--blue));
  z-index: 3;
}

.page-news .news-card--epl { --accent: var(--orange); }
.page-news .news-card--laliga { --accent: var(--blue); }
.page-news .news-card--seriea { --accent: var(--purple); }

.page-news .news-card:hover {
  border-color: var(--accent, var(--blue));
}

.page-news .news-card__media {
  border: 0;
  border-bottom: 1px solid var(--grid);
}

.page-news .news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 20px 20px;
}

.page-news .news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.page-news .news-card__score {
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 14px 0 0;
}

.page-news .news-card__score span {
  color: var(--muted);
  font-size: 0.7em;
  margin: 0 6px;
}

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

.page-news .news-card__extra {
  margin-top: 10px;
}

.page-news .news-card__extra p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-news .news-card__extra p:last-child {
  margin-bottom: 0;
}

/* ---------- 控球率数据条 ---------- */

.page-news .data-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.page-news .data-bar__track {
  position: relative;
  flex: 1;
  height: 4px;
  background: var(--grid);
  overflow: hidden;
}

.page-news .data-bar__fill {
  display: block;
  height: 100%;
  background: var(--blue);
}

.page-news .data-bar__fill--green {
  background: var(--green);
}

.page-news .data-bar__fill--blue {
  background: var(--blue);
}

.page-news .data-bar__value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 战报结构四层 ---------- */

.page-news .news-layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}

.page-news .news-layer {
  position: relative;
  background: var(--panel);
  padding: 22px 20px 26px;
}

.page-news .news-layer__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.page-news .news-layer:first-child .news-layer__num {
  color: var(--orange);
}

.page-news .news-layer__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--white);
}

.page-news .news-layer__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 时间轴窄栏 ---------- */

.page-news .news-cut {
  max-width: 1000px;
}

.page-news .news-timeline-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-news .news-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--grid) 26%, var(--grid) 100%);
}

.page-news .news-event {
  position: relative;
  padding: 12px 0 15px;
  border-bottom: 1px solid var(--grid-soft);
}

.page-news .news-event:last-child {
  border-bottom: 0;
}

.page-news .news-event::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 18px;
  width: 9px;
  height: 9px;
  background: var(--node, var(--blue));
  transform: rotate(45deg);
}

.page-news .news-event--shot { --node: var(--news-node-shot); }
.page-news .news-event--goal { --node: var(--news-node-goal); }
.page-news .news-event--card { --node: var(--news-node-card); }
.page-news .news-event--sub  { --node: var(--news-node-sub); }
.page-news .news-event--red  { --node: var(--news-node-red); }

.page-news .news-event__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.page-news .news-event__min {
  min-width: 44px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--white);
}

.page-news .news-event__type {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--node, var(--blue));
}

.page-news .news-event__stamp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-news .news-event__text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-news .news-clip {
  border: 1px solid var(--grid);
  background: var(--panel);
  padding: 14px 14px 16px;
}

.page-news .news-clip p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 评分区 ---------- */

.page-news .news-rating-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.page-news .news-rating__media {
  aspect-ratio: 8 / 5;
}

.page-news .news-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--grid);
  background: var(--panel);
}

.page-news .news-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.page-news .news-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-news .news-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  border-bottom: 1px solid var(--grid);
  white-space: nowrap;
}

.page-news .news-table td {
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--noise);
  border-bottom: 1px solid var(--grid-soft);
}

.page-news .news-table tr:last-child td {
  border-bottom: 0;
}

.page-news .news-table td.mono {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.page-news .score-hi {
  color: var(--green);
  font-weight: 600;
}

.page-news .score-mid {
  color: var(--white);
}

.page-news .score-low {
  color: var(--amber);
}

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

.page-news .news-weight li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--muted);
}

.page-news .news-weight li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  transform: rotate(45deg);
}

.page-news .news-weight li strong {
  color: var(--white);
  font-weight: 600;
}

/* ---------- 赛季专题带 ---------- */

.page-news .news-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}

.page-news .news-topic {
  position: relative;
  background: var(--panel);
  padding: 20px 16px 22px;
}

.page-news .news-topic::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--accent, var(--blue));
  opacity: 0.9;
}

.page-news .news-topic:nth-child(3n + 1) { --accent: var(--orange); }
.page-news .news-topic:nth-child(3n + 2) { --accent: var(--blue); }
.page-news .news-topic:nth-child(3n + 3) { --accent: var(--purple); }

.page-news .news-topic__title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.page-news .news-topic__meta {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--amber);
}

.page-news .news-topic__text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

.page-news .news-topics__note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.page-news .news-topics__note a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--grid);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .news-topics__note a:hover,
.page-news .news-topics__note a:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
}

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

.page-news .news-follow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  border: 1px solid var(--grid);
  background: linear-gradient(135deg, rgba(12, 20, 36, 0.96) 0%, rgba(5, 7, 15, 0.84) 100%);
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.page-news .news-follow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 96px;
  height: 3px;
  background: var(--orange);
}

.page-news .news-follow__lead {
  margin: 14px 0 24px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.page-news .news-follow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}

.page-news .news-follow__list li {
  background: var(--panel-deep);
  padding: 14px 16px 16px;
  display: grid;
  gap: 5px;
}

.page-news .news-follow__list b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}

.page-news .news-follow__list span {
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 结尾指路 ---------- */

.page-news .news-next {
  padding-bottom: clamp(40px, 7vw, 88px);
}

.page-news .news-next__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}

.page-news .news-next__item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 24px 20px 26px;
  background: var(--panel-deep);
  text-decoration: none;
  transition: background 0.22s var(--ease);
}

.page-news .news-next__item strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: color 0.22s var(--ease);
}

.page-news .news-next__item:hover,
.page-news .news-next__item:focus-visible {
  background: var(--panel);
}

.page-news .news-next__item:hover strong,
.page-news .news-next__item:focus-visible strong {
  color: var(--orange);
}

.page-news .news-next__arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--orange);
}

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

@media (min-width: 640px) {
  .page-news .news-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-news .news-hero__media {
    aspect-ratio: 32 / 15;
  }

  .page-news .news-filter__hint {
    margin-left: auto;
  }
}

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

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

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

@media (min-width: 900px) {
  .page-news .news-card__extra {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.34s var(--ease), opacity 0.28s var(--ease), margin-top 0.28s var(--ease);
  }

  .page-news .news-card:hover .news-card__extra,
  .page-news .news-card:focus-within .news-card__extra {
    max-height: 200px;
    margin-top: 12px;
    opacity: 1;
  }

  .page-news .news-timeline-wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: start;
  }

  .page-news .news-follow {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }
}

@media (min-width: 1040px) {
  .page-news .news-layers {
    grid-template-columns: 1.2fr 1fr 1fr 1.15fr;
  }

  .page-news .news-rating-wrap {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-card__extra,
  .page-news .news-next__item,
  .page-news .news-chip,
  .page-news .news-card {
    transition: none;
  }
}
