/* ===== BSPORT文章中心 页面专属样式 ===== */
.page-news {
  background: var(--c-bg);
  --blueprint-line: rgba(154, 168, 192, 0.06);
  --card-hover: rgba(0, 255, 102, 0.06);
  --line-strong: rgba(0, 255, 102, 0.45);
}

.page-news .news-masthead {
  position: relative;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.page-news .news-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.page-news .news-masthead .breadcrumb {
  position: relative;
  margin-bottom: 40px;
  font-family: var(--font-data);
  font-size: 13px;
}
.page-news .masthead-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.page-news .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-accent-2);
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-news .section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--c-accent-2);
}
.page-news .masthead-copy h1 {
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--c-text);
}
.page-news .masthead-lead {
  margin-top: 16px;
  max-width: 640px;
  color: var(--c-text-dim);
  font-size: 16px;
  line-height: 1.7;
}
.page-news .masthead-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.page-news .stat-cell {
  padding: 12px 10px;
  background: var(--c-bg-panel);
  border-left: 2px solid var(--c-accent);
  border-radius: var(--radius-xs);
}
.page-news .stat-cell:nth-child(2) {
  border-left-color: var(--c-accent-2);
}
.page-news .stat-cell:nth-child(3) {
  border-left-color: var(--c-accent-3);
}
.page-news .stat-num {
  display: block;
  font-family: var(--font-data);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.2;
}
.page-news .stat-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--c-text-dim);
  line-height: 1.4;
}

/* ===== 区块标题 ===== */
.page-news .section {
  padding: 56px 0;
  scroll-margin-top: 80px;
}
.page-news .section-head {
  position: relative;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}
.page-news .index-num {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  text-transform: uppercase;
}
.page-news .section-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text);
}
.page-news .section-desc {
  margin: 8px 0 0;
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== 文章中心布局 ===== */
.page-news .news-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.page-news .filter-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===== 侧边分类索引 ===== */
.page-news .category-index {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-news .category-index-head {
  margin-bottom: 4px;
}
.page-news .coord-label {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--c-accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.page-news .category-index-title {
  margin: 4px 0 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}
.page-news .category-index nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-news .filter-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  color: var(--c-text-dim);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.page-news .filter-link::before {
  content: "▸";
  color: var(--c-accent);
  opacity: 0;
  font-size: 11px;
  transition: opacity 0.2s;
}
.page-news .filter-link:hover {
  color: var(--c-text);
  border-color: var(--line-strong);
}
.page-news .filter-link:hover::before {
  opacity: 1;
}
.page-news .filter-link[href="#filter-all"] {
  color: var(--c-text);
  border-color: var(--line-strong);
  background: rgba(0, 255, 102, 0.08);
}
.page-news .filter-link[href="#filter-all"]::before {
  opacity: 1;
}
.page-news #filter-away:target ~ .category-index .filter-link[href="#filter-all"],
.page-news #filter-schedule:target ~ .category-index .filter-link[href="#filter-all"],
.page-news #filter-sync:target ~ .category-index .filter-link[href="#filter-all"],
.page-news #filter-update:target ~ .category-index .filter-link[href="#filter-all"] {
  color: var(--c-text-dim);
  border-color: var(--c-border);
  background: transparent;
}
.page-news #filter-away:target ~ .category-index .filter-link[href="#filter-away"],
.page-news #filter-schedule:target ~ .category-index .filter-link[href="#filter-schedule"],
.page-news #filter-sync:target ~ .category-index .filter-link[href="#filter-sync"],
.page-news #filter-update:target ~ .category-index .filter-link[href="#filter-update"] {
  color: var(--c-text);
  border-color: var(--line-strong);
  background: rgba(0, 255, 102, 0.08);
}
.page-news #filter-away:target ~ .category-index .filter-link[href="#filter-away"]::before,
.page-news #filter-schedule:target ~ .category-index .filter-link[href="#filter-schedule"]::before,
.page-news #filter-sync:target ~ .category-index .filter-link[href="#filter-sync"]::before,
.page-news #filter-update:target ~ .category-index .filter-link[href="#filter-update"]::before {
  opacity: 1;
}

/* ===== 数据来源卡 ===== */
.page-news .data-source-card {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0, 255, 102, 0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.page-news .data-source-card h3 {
  margin: 6px 0 8px;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--c-text);
}
.page-news .data-source-card p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-dim);
}
.page-news .data-source-card p:last-child {
  margin-bottom: 0;
}

/* ===== 河南彩蛋卡 ===== */
.page-news .category-note {
  margin-top: 16px;
  padding: 16px;
  background: rgba(249, 199, 79, 0.05);
  border: 1px solid rgba(249, 199, 79, 0.25);
  border-radius: var(--radius-sm);
}
.page-news .category-note img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xs);
  display: block;
}
.page-news .category-note p {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-text-dim);
}

/* ===== 文章列表 ===== */
.page-news .articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.page-news .article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-bg-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.page-news .article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 102, 0.4);
  background: rgba(18, 26, 44, 0.92);
}
.page-news .article-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent var(--c-accent) transparent transparent;
  opacity: 0.85;
  pointer-events: none;
}
.page-news .article-media {
  height: 200px;
  overflow: hidden;
  background: var(--c-bg);
}
.page-news .article-media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-news .article-index {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.08), rgba(10, 14, 26, 0) 70%);
  border-bottom: 1px solid var(--c-border);
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.06em;
}
.page-news .article-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  min-width: 0;
}
.page-news .article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.page-news .article-meta .badge {
  font-size: 12px;
}
.page-news .read-time {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--c-text-dim);
  letter-spacing: 0.04em;
}
.page-news .article-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}
.page-news .article-summary {
  margin: 0;
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.65;
}
.page-news .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.page-news .article-tags span {
  padding: 3px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--c-text-dim);
  font-family: var(--font-data);
  letter-spacing: 0.02em;
}
.page-news .articles-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0 0;
}

/* ===== 分类过滤：:target 切换 ===== */
.page-news #filter-all:target ~ .articles-list .article-card {
  display: flex;
}
.page-news #filter-away:target ~ .articles-list .article-card[data-category="away"],
.page-news #filter-schedule:target ~ .articles-list .article-card[data-category="schedule"],
.page-news #filter-sync:target ~ .articles-list .article-card[data-category="sync"],
.page-news #filter-update:target ~ .articles-list .article-card[data-category="update"] {
  display: flex;
}
.page-news #filter-away:target ~ .articles-list .article-card:not([data-category="away"]),
.page-news #filter-schedule:target ~ .articles-list .article-card:not([data-category="schedule"]),
.page-news #filter-sync:target ~ .articles-list .article-card:not([data-category="sync"]),
.page-news #filter-update:target ~ .articles-list .article-card:not([data-category="update"]) {
  display: none;
}

/* ===== 热门专题 ===== */
.page-news .news-features {
  background: var(--c-bg-deep);
  border-block: 1px solid var(--c-border);
}
.page-news .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.page-news .feature-banner {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.page-news .feature-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-news .feature-banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 8, 16, 0.92) 100%);
  z-index: 1;
}
.page-news .feature-banner-overlay .badge-henan {
  display: inline-flex;
  padding: 3px 10px;
  background: var(--c-accent-3);
  color: #060810;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-family: var(--font-data);
  letter-spacing: 0.04em;
}
.page-news .feature-banner-overlay h3 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-text);
}
.page-news .feature-desc {
  margin: 8px 0 16px;
  color: rgba(232, 240, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
  max-width: 48ch;
}
.page-news .feature-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--c-bg-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.page-news .feature-panel-head h3 {
  margin: 6px 0 0;
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--c-text);
}
.page-news .feature-panel-head p {
  margin: 8px 0 0;
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.page-news .guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-news .guide-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--c-text);
  background: rgba(10, 14, 26, 0.5);
}
.page-news .step-num {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--c-accent);
}
.page-news .feature-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ===== 更新日志 ===== */
.page-news .changelog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.page-news .changelog-side p {
  margin: 0 0 20px;
  color: var(--c-text-dim);
  line-height: 1.7;
  font-size: 15px;
}
.page-news .changelog-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.page-news .changelog-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line-strong);
}
.page-news .timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 24px;
}
.page-news .timeline-item:last-child {
  padding-bottom: 0;
}
.page-news .timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-accent-3);
  box-shadow: 0 0 0 4px rgba(249, 199, 79, 0.2);
}
.page-news .timeline-date {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  background: rgba(249, 199, 79, 0.12);
  border: 1px solid rgba(249, 199, 79, 0.3);
  border-radius: var(--radius-xs);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--c-accent-3);
}
.page-news .timeline-content {
  padding: 14px 16px;
  background: var(--c-bg-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.page-news .timeline-content h3 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--c-text);
}
.page-news .timeline-content p {
  margin: 0;
  color: var(--c-text-dim);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== 平板增强 ===== */
@media (min-width: 768px) {
  .page-news .news-masthead {
    padding: 64px 0 48px;
  }
  .page-news .masthead-grid {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
  .page-news .masthead-copy {
    flex: 1;
  }
  .page-news .masthead-stats {
    flex: 0 0 320px;
    gap: 8px;
  }
  .page-news .stat-cell {
    padding: 16px 14px;
  }
  .page-news .stat-num {
    font-size: 22px;
  }
  .page-news .article-card,
  .page-news .article-card.has-media {
    flex-direction: row;
    align-items: stretch;
  }
  .page-news .article-media {
    flex: 0 0 260px;
    height: auto;
    min-height: 100%;
  }
  .page-news .article-index {
    flex: 0 0 140px;
    min-height: 160px;
    border-bottom: none;
    border-right: 1px solid var(--c-border);
  }
  .page-news .article-card:not(.has-media) .article-index {
    align-self: stretch;
  }
  .page-news .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-news .feature-banner {
    min-height: 400px;
  }
}

/* ===== 桌面增强 ===== */
@media (min-width: 992px) {
  .page-news .news-layout {
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
  }
  .page-news .category-index {
    position: sticky;
    top: 96px;
    padding-right: 16px;
    border-right: 1px solid var(--c-border);
  }
  .page-news .category-index nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .page-news .filter-link {
    border: none;
    border-left: 2px solid var(--c-border);
    border-radius: 0;
    padding: 8px 12px;
    justify-content: flex-start;
  }
  .page-news .filter-link::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
    opacity: 0;
  }
  .page-news .filter-link[href="#filter-all"] {
    border-left-color: var(--c-accent);
    background: rgba(0, 255, 102, 0.08);
  }
  .page-news #filter-away:target ~ .category-index .filter-link[href="#filter-all"],
  .page-news #filter-schedule:target ~ .category-index .filter-link[href="#filter-all"],
  .page-news #filter-sync:target ~ .category-index .filter-link[href="#filter-all"],
  .page-news #filter-update:target ~ .category-index .filter-link[href="#filter-all"] {
    border-left-color: var(--c-border);
    background: transparent;
  }
  .page-news #filter-away:target ~ .category-index .filter-link[href="#filter-away"],
  .page-news #filter-schedule:target ~ .category-index .filter-link[href="#filter-schedule"],
  .page-news #filter-sync:target ~ .category-index .filter-link[href="#filter-sync"],
  .page-news #filter-update:target ~ .category-index .filter-link[href="#filter-update"] {
    border-left-color: var(--c-accent);
    background: rgba(0, 255, 102, 0.08);
  }
  .page-news .article-media {
    flex-basis: 300px;
  }
  .page-news .article-title {
    font-size: 20px;
  }
  .page-news .feature-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
  }
  .page-news .feature-banner {
    min-height: 440px;
  }
  .page-news .feature-banner-overlay {
    padding: 40px;
  }
  .page-news .feature-banner-overlay h3 {
    font-size: 30px;
  }
  .page-news .changelog-grid {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }
  .page-news .timeline-item {
    padding-left: 48px;
  }
}
