/* ===== 新闻动态页专属样式 ===== */
.page-news {
  --news-deco-gold: rgba(232, 184, 69, 0.14);
  --news-deco-line: rgba(232, 184, 69, 0.45);
  --news-aside-width: 320px;
  --news-time-width: 52px;
}

/* 页头区域：深绿渐变，金色装饰线与光晕 */
.page-news .news-page-head {
  position: relative;
  overflow: hidden;
  background: var(--gradient-live);
  color: var(--text-on-green);
  padding: 26px 0 36px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.page-news .news-page-head::before {
  content: "";
  position: absolute;
  top: -42px;
  right: -30px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(232, 184, 69, 0.32), rgba(232, 184, 69, 0.04) 62%, transparent 72%);
}

.page-news .news-page-head::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 96px;
  background: repeating-linear-gradient(
    -12deg,
    transparent 0 22px,
    var(--news-deco-line) 22px 23px
  );
  opacity: 0.18;
  pointer-events: none;
}

.page-news .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-news .breadcrumb a {
  color: rgba(240, 245, 241, 0.76);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-news .breadcrumb a:hover {
  color: #ffffff;
}

.page-news .crumb-sep {
  color: rgba(240, 245, 241, 0.44);
}

.page-news .crumb-current {
  color: var(--gold);
  font-weight: 700;
}

.page-news .news-head-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.page-news .news-h1 {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.page-news .news-lead {
  max-width: 620px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(240, 245, 241, 0.92);
}

.page-news .news-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-news .news-head-meta .tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-on-green);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-news .news-head-meta .tag-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-deep);
  font-weight: 700;
}

/* 内容区块节奏 */
.page-news .section-block {
  padding: 44px 0;
}

.page-news .feature-report {
  background: var(--bg-light);
}

.page-news .news-feed-section {
  background: var(--bg-white);
  padding-top: 40px;
}

.page-news .section-head {
  margin-bottom: 24px;
}

.page-news .section-head .section-title {
  margin-bottom: 6px;
}

.page-news .section-head .section-subtitle {
  margin: 0;
}

/* 最新战报卡片 */
.page-news .report-card {
  background: var(--bg-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(14, 59, 46, 0.1);
}

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

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

.page-news .report-badge {
  position: absolute;
  left: 18px;
  bottom: 16px;
  background: var(--gradient-gold);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(168, 126, 46, 0.35);
}

.page-news .report-body {
  padding: 24px 22px 28px;
  position: relative;
}

.page-news .report-index {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--bg-light);
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.page-news .report-title {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--text-dark);
  margin: 0 0 14px;
}

.page-news .report-score {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-deep);
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-news .report-score-note {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.page-news .report-body .content-paragraph {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.page-news .report-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.page-news .stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.page-news .stat-chip .stat-number {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--green-deep);
}

.page-news .report-body .btn-gold {
  margin-top: 4px;
}

/* 分类标签筛选器：radio + label 无后端筛选 */
.page-news .filter-radio,
.page-news .filter-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-news .filter-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-soft) transparent;
  margin-bottom: 6px;
}

.page-news .filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-white);
  border: 1px solid var(--line-soft);
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-news .filter-tab:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.page-news .filter-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-light);
  color: var(--gold-deep);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

/* 选中的筛选标签 */
.page-news #filter-all:checked ~ .filter-tabs label[for="filter-all"],
.page-news #filter-match:checked ~ .filter-tabs label[for="filter-match"],
.page-news #filter-data:checked ~ .filter-tabs label[for="filter-data"],
.page-news #filter-version:checked ~ .filter-tabs label[for="filter-version"],
.page-news #filter-analysis:checked ~ .filter-tabs label[for="filter-analysis"] {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--text-on-green);
}

.page-news #filter-all:checked ~ .filter-tabs label[for="filter-all"] .filter-count,
.page-news #filter-match:checked ~ .filter-tabs label[for="filter-match"] .filter-count,
.page-news #filter-data:checked ~ .filter-tabs label[for="filter-data"] .filter-count,
.page-news #filter-version:checked ~ .filter-tabs label[for="filter-version"] .filter-count,
.page-news #filter-analysis:checked ~ .filter-tabs label[for="filter-analysis"] .filter-count {
  background: var(--gold);
  color: var(--green-deep);
}

/* radio 聚焦时高亮对应标签 */
.page-news .filter-radio:focus-visible ~ .filter-tabs label[for="filter-all"],
.page-news .filter-radio:focus-visible ~ .filter-tabs label[for="filter-match"],
.page-news .filter-radio:focus-visible ~ .filter-tabs label[for="filter-data"],
.page-news .filter-radio:focus-visible ~ .filter-tabs label[for="filter-version"],
.page-news .filter-radio:focus-visible ~ .filter-tabs label[for="filter-analysis"] {
  outline: 3px solid rgba(232, 184, 69, 0.65);
  outline-offset: 2px;
}

/* 列表默认隐藏，根据选中分类展示 */
.page-news .news-item {
  display: none;
}

.page-news #filter-all:checked ~ .feed-layout .news-list .news-item,
.page-news #filter-match:checked ~ .feed-layout .news-list .news-cat-match,
.page-news #filter-data:checked ~ .feed-layout .news-list .news-cat-data,
.page-news #filter-version:checked ~ .feed-layout .news-list .news-cat-version,
.page-news #filter-analysis:checked ~ .feed-layout .news-list .news-cat-analysis {
  display: flex;
}

/* 双栏布局：列表 + 侧边栏 */
.page-news .feed-layout {
  display: grid;
  gap: 28px;
}

/* 时间线列表 */
.page-news .news-list {
  position: relative;
  padding: 6px 0 4px;
}

.page-news .news-item {
  position: relative;
  padding: 0 0 28px var(--news-time-width);
  align-items: stretch;
}

.page-news .news-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--news-time-width);
  text-align: center;
}

.page-news .news-marker::before {
  content: "";
  position: absolute;
  left: calc(var(--news-time-width) / 2 - 1px);
  top: 6px;
  bottom: -28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(232, 184, 69, 0.16));
}

.page-news .news-item:last-child .news-marker::before {
  display: none;
}

.page-news .news-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(168, 126, 46, 0.28);
}

.page-news .news-time {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.page-news .news-content {
  flex: 1;
  min-width: 0;
  padding: 20px 20px 20px 22px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-news .news-content:hover {
  border-left-color: var(--gold);
}

.page-news .news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.page-news .news-title {
  font-family: var(--font-headline);
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  color: var(--text-dark);
}

.page-news .news-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.page-news .news-link {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.page-news .news-link:hover {
  color: var(--gold-deep);
}

/* 条目内折叠详情 */
.page-news .news-detail {
  margin-top: 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 2px 14px;
  border: 1px solid var(--line-soft);
}

.page-news .news-detail summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--green-deep);
  padding: 10px 0;
  list-style: none;
}

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

.page-news .news-detail summary::before {
  content: "＋ ";
  color: var(--gold-deep);
  font-weight: 800;
}

.page-news .news-detail[open] summary::before {
  content: "－ ";
}

.page-news .news-detail-body {
  padding: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-news .news-detail-body p {
  margin: 0;
}

.page-news .news-detail-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--bg-light);
}

/* 侧边栏 */
.page-news .news-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-news .aside-card {
  background: var(--bg-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 20px;
}

.page-news .aside-track {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
}

.page-news .aside-track-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-news .aside-track-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 210px;
  padding: 120px 16px 18px;
  background: linear-gradient(180deg, rgba(14, 59, 46, 0.06), rgba(14, 59, 46, 0.66) 68%, rgba(14, 59, 46, 0.85));
  color: #ffffff;
  font-size: 0.86rem;
  line-height: 1.5;
}

.page-news .aside-track-text p {
  margin: 0;
}

.page-news .aside-track-text::after {
  content: "";
  display: block;
  height: 8px;
  width: 100%;
  margin-top: 10px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 2px,
    transparent 2px 5px
  );
}

.page-news .aside-overview {
  background: var(--bg-light);
}

.page-news .aside-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  letter-spacing: -0.2px;
  margin: 0 0 14px;
  color: var(--text-dark);
}

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

.page-news .aside-stat-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 10px;
}

.page-news .aside-stat-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-news .aside-stat-list .stat-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.page-news .aside-stat-label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}

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

.page-news .aside-link-grid .btn {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 0.86rem;
}

/* 移动端以上的增强布局 */
@media (min-width: 700px) {
  .page-news .news-page-head {
    padding: 40px 0 48px;
  }

  .page-news .news-h1 {
    font-size: 2.4rem;
  }

  .page-news .news-head-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
  }

  .page-news .news-head-meta {
    flex-shrink: 0;
    padding-bottom: 4px;
  }

  .page-news .report-card {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }

  .page-news .report-media {
    min-height: 320px;
  }

  .page-news .report-media .report-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-news .report-body {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-news .report-title {
    font-size: 1.6rem;
  }

  .page-news .report-score {
    font-size: 2.8rem;
  }

  .page-news .filter-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .page-news .filter-tab {
    padding: 11px 20px;
    font-size: 0.92rem;
  }

  .page-news .feed-layout {
    grid-template-columns: minmax(0, 1fr) var(--news-aside-width);
    gap: 26px;
    align-items: start;
  }

  .page-news .news-aside {
    position: sticky;
    top: 88px;
  }
}

@media (min-width: 1024px) {
  .page-news .news-item {
    padding-left: 68px;
  }

  .page-news .news-marker {
    width: 68px;
  }

  .page-news .news-marker::before {
    left: 33px;
  }

  .page-news .news-index {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .page-news .news-time {
    font-size: 0.72rem;
  }

  .page-news .news-content {
    padding: 24px 26px;
  }

  .page-news .news-title {
    font-size: 1.16rem;
  }

  .page-news .news-excerpt {
    font-size: 0.93rem;
  }
}
