/* ===== 战报专栏 · 页面专属样式 ===== */
.page-news {
  --news-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  --news-gold-bg: rgba(242, 183, 5, 0.08);
  --news-red-bg: rgba(230, 57, 70, 0.14);
  background: var(--c-primary);
  color: var(--c-text);
  overflow-x: hidden;
}

/* 页首 */
.page-news .news-hero {
  position: relative;
  padding: var(--sp-5) 0 var(--sp-6);
}

.page-news .news-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0.35;
}

.page-news .news-hero__grid {
  display: grid;
  gap: var(--sp-5);
}

.page-news .news-hero__title {
  margin: var(--sp-3) 0 var(--sp-4);
  font-family: var(--f-display);
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--c-text);
  text-transform: uppercase;
}

.page-news .news-hero__lead {
  max-width: 62ch;
  color: var(--c-muted);
  line-height: 1.7;
}

.page-news .news-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

.page-news .news-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-news .news-hero__num {
  font-family: var(--f-mono);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
}

.page-news .news-hero__name {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
}

.page-news .news-hero__quick {
  margin-top: var(--sp-5);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--c-accent);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.page-news .news-hero__quick a {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(242, 183, 5, 0.45);
}

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

.page-news .news-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  filter: saturate(1.04);
}

.page-news .news-hero__caption {
  margin-top: var(--sp-2);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
  letter-spacing: 0.08em;
}

/* 布局 */
.page-news .news-layout {
  display: grid;
  gap: var(--sp-6);
  padding: var(--sp-6) 0 var(--sp-7);
}

.page-news .news-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

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

/* 侧栏组件共同外观 */
.page-news .news-filter,
.page-news .news-tags,
.page-news .news-tool {
  padding: var(--sp-5);
  background: linear-gradient(160deg, var(--c-card), var(--c-deep));
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}

.page-news .news-filter__title,
.page-news .news-tags__title {
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px dashed var(--c-line);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* 索引 */
.page-news .news-filter__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.page-news .news-filter__item {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--c-text);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .news-filter__item:hover,
.page-news .news-filter__item:focus-visible {
  background: var(--news-gold-bg);
  border-color: rgba(242, 183, 5, 0.35);
}

.page-news .news-filter__num {
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
}

.page-news .news-filter__name {
  font-weight: 700;
  font-size: var(--fs-base);
}

/* 标签云 */
.page-news .news-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .news-tags__list a {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  color: var(--c-muted);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .news-tags__list a:hover,
.page-news .news-tags__list a:focus-visible {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-deep);
}

/* 工具卡 */
.page-news .news-tool {
  position: relative;
  overflow: hidden;
}

.page-news .news-tool::before {
  content: '';
  position: absolute;
  top: -36px;
  right: -36px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 5, 0.22), transparent 65%);
}

.page-news .news-tool__badge {
  position: relative;
  display: inline-block;
  margin-bottom: var(--sp-3);
  padding: 2px var(--sp-3);
  background: var(--c-accent);
  border-radius: var(--r-pill);
  color: var(--c-deep);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
}

.page-news .news-tool__title {
  position: relative;
  margin: 0 0 var(--sp-3);
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-text);
}

.page-news .news-tool__desc {
  position: relative;
  margin: 0 0 var(--sp-4);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* 章节 */
.page-news .news-section {
  scroll-margin-top: 88px;
  margin-bottom: var(--sp-7);
}

.page-news .news-section__head {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-4);
  border-left: 4px solid var(--c-accent);
}

.page-news .news-section__title {
  margin: var(--sp-2) 0;
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--c-text);
}

.page-news .news-section__desc {
  margin: 0;
  max-width: 68ch;
  color: var(--c-muted);
  line-height: 1.7;
}

/* 战报卡片 */
.page-news .report-card {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-5);
  background: linear-gradient(160deg, var(--c-card), var(--c-deep));
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-news .report-card:hover,
.page-news .report-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(242, 183, 5, 0.45);
  box-shadow: var(--news-shadow);
}

.page-news .report-card:last-child {
  margin-bottom: 0;
}

.page-news .report-card__media {
  position: relative;
  background: var(--c-deep);
}

.page-news .report-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-news .report-card__body {
  padding: var(--sp-5);
}

.page-news .report-card__num {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 2;
  padding: var(--sp-1) var(--sp-2);
  background: rgba(8, 18, 51, 0.8);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  color: var(--c-gold);
  font-family: var(--f-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.page-news .report-card__body--plain .report-card__num {
  position: static;
  display: inline-block;
  margin-bottom: var(--sp-3);
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--c-accent);
  font-size: 1.5rem;
}

.page-news .report-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.page-news .report-card__tag {
  padding: 2px var(--sp-2);
  border: 1px solid rgba(230, 57, 70, 0.4);
  border-radius: var(--r-pill);
  background: var(--news-red-bg);
  color: var(--c-red);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
}

.page-news .report-card__score {
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1;
}

.page-news .report-card__title {
  margin: 0 0 var(--sp-2);
  color: var(--c-text);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.35;
}

.page-news .report-card__summary {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.7;
}

.page-news .report-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-4);
}

.page-news .report-card__competition {
  color: var(--c-muted);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}

.page-news .report-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .report-card__labels li {
  padding: 2px var(--sp-2);
  border: 1px solid rgba(242, 183, 5, 0.28);
  border-radius: var(--r-sm);
  background: var(--news-gold-bg);
  color: var(--c-gold);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
}

/* 卡片展开 */
.page-news .report-card__details {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--c-line);
}

.page-news .report-card__details summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  list-style: none;
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}

.page-news .report-card__details summary::-webkit-details-marker {
  display: none;
}

.page-news .report-card__details summary::before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border: 1px solid rgba(242, 183, 5, 0.5);
  border-radius: 50%;
  transition: transform var(--dur) var(--ease);
}

.page-news .report-card__details[open] summary::before {
  content: '-';
}

.page-news .report-card__detail-body {
  padding-top: var(--sp-3);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.75;
  animation: pageNewsFadeUp 0.3s var(--ease);
}

/* 专题卡片 */
.page-news .feature-grid {
  display: grid;
  gap: var(--sp-5);
}

.page-news .feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--c-card), var(--c-deep));
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-news .feature-card:hover,
.page-news .feature-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(242, 183, 5, 0.45);
  box-shadow: var(--news-shadow);
}

.page-news .feature-card__media {
  position: relative;
  background: var(--c-deep);
}

.page-news .feature-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-news .feature-card__body {
  padding: var(--sp-5);
}

.page-news .feature-card__kicker {
  display: block;
  margin-bottom: var(--sp-3);
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-news .feature-card__title {
  margin: 0 0 var(--sp-3);
  color: var(--c-text);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.3;
}

.page-news .feature-card__summary {
  margin: 0 0 var(--sp-4);
  color: var(--c-muted);
  line-height: 1.7;
}

.page-news .feature-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  list-style: none;
}

.page-news .feature-card__stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-news .feature-card__stat-num {
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.page-news .feature-card__stat-name {
  color: var(--c-muted);
  font-size: var(--fs-xs);
}

/* 数据更新日志时间线 */
.page-news .update-timeline {
  position: relative;
  margin: var(--sp-6) 0 0 var(--sp-2);
  padding-left: var(--sp-6);
  border-left: 2px solid var(--c-line);
}

.page-news .update-item {
  position: relative;
  padding-bottom: var(--sp-6);
}

.page-news .update-item:last-child {
  padding-bottom: 0;
}

.page-news .update-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-6) - 6px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.14);
}

.page-news .update-item__time {
  display: inline-block;
  margin-bottom: var(--sp-3);
  padding: 2px var(--sp-3);
  border: 1px solid rgba(242, 183, 5, 0.32);
  border-radius: var(--r-pill);
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
}

.page-news .update-item__title {
  margin: 0 0 var(--sp-2);
  color: var(--c-text);
  font-size: 1.15rem;
  font-weight: 900;
}

.page-news .update-item__desc {
  max-width: 46ch;
  margin: 0;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* 更多 */
.page-news .news-section__more {
  margin-top: var(--sp-5);
  text-align: center;
}

/* 末尾延伸区 */
.page-news .news-outro {
  position: relative;
  overflow: hidden;
  padding: var(--sp-7) 0;
  background: var(--c-deep);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.page-news .news-outro::before {
  content: 'JOURNAL';
  position: absolute;
  right: -0.08em;
  bottom: -0.15em;
  z-index: 0;
  font-family: var(--f-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  color: rgba(242, 183, 5, 0.05);
  pointer-events: none;
  letter-spacing: 0.04em;
}

.page-news .news-outro__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-5);
}

.page-news .news-outro__title {
  margin: var(--sp-2) 0 var(--sp-3);
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  color: var(--c-text);
}

.page-news .news-outro__desc {
  max-width: 58ch;
  margin: 0;
  color: var(--c-muted);
}

.page-news .news-outro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.page-news .news-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72em 1.5em;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-text);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .news-btn--ghost:hover,
.page-news .news-btn--ghost:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--news-gold-bg);
}

/* 动画 */
@keyframes pageNewsFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 桌面端增强 */
@media (min-width: 768px) {
  .page-news .news-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--sp-7);
    align-items: center;
  }

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

  .page-news .report-card--feature {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .page-news .report-card--feature .report-card__media {
    min-height: 280px;
  }

  .page-news .report-card--feature .report-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .page-news .feature-card--wide {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .page-news .feature-card--wide .feature-card__media {
    min-height: 320px;
  }

  .page-news .feature-card--wide .feature-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .page-news .news-outro__inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

@media (min-width: 992px) {
  .page-news .news-layout {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }

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

  .page-news .feature-card--portrait {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
  }

  .page-news .feature-card--portrait .feature-card__media {
    min-height: 340px;
  }

  .page-news .feature-card--portrait .feature-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}
