/* ===== UNIBET赛场 最新动态页 ===== */
.page-news {
  position: relative;
  background:
    radial-gradient(rgba(0, 255, 136, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #081020 0%, var(--primary-dark) 42%, #0D1F36 100%);
  background-size: 28px 28px, auto;
  padding-bottom: calc(var(--gap-section) * 1.15);
  overflow-x: hidden;
}

/* 面包屑 */
.page-news .breadcrumb {
  margin-bottom: 8px;
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--slate-gray);
}

.page-news .breadcrumb a {
  color: var(--chart-line);
  text-decoration: none;
  transition: color var(--transition);
}

.page-news .breadcrumb a:hover {
  color: var(--fluorescent-green);
}

.page-news .breadcrumb-sep {
  margin: 0 8px;
  color: var(--slate-gray);
}

.page-news .breadcrumb-current {
  color: var(--fluorescent-green);
}

/* 首页标识区 */
.page-news .news-ident {
  padding-top: 36px;
  padding-bottom: 24px;
}

.page-news .news-ident .section-kicker {
  margin-bottom: 16px;
}

.page-news .news-ident h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-h1);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 8px 36px rgba(0, 255, 136, 0.10);
}

.page-news .news-ident-desc {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--off-white);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.page-news .news-ident-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* 新赛季横幅 */
.page-news .news-season-banner {
  margin-top: 28px;
}

.page-news .news-season-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  padding: 28px;
}

.page-news .news-season-copy .section-kicker {
  margin-bottom: 8px;
}

.page-news .news-season-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: 1.3;
  color: var(--white);
}

.page-news .news-season-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--off-white);
  line-height: 1.75;
}

/* 通用区块标题 */
.page-news .section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 48px 0 24px;
  padding-top: 6px;
}

.page-news .section-index {
  font-family: var(--font-data);
  font-size: 2rem;
  line-height: 1;
  color: var(--fluorescent-green);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-orange);
}

.page-news .section-header-text h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
}

.page-news .section-header-text p {
  margin: 8px 0 0;
  color: var(--slate-gray);
  line-height: 1.6;
}

/* 推荐阅读 */
.page-news .news-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.page-news .news-featured-media {
  position: relative;
}

.page-news .news-featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-news .news-featured-flag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--accent-orange);
  color: var(--white);
  padding: 5px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
}

.page-news .news-featured-body {
  padding: 28px;
}

.page-news .news-featured-body .section-kicker {
  margin-bottom: 14px;
}

.page-news .news-featured-body h3 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--white);
}

.page-news .news-featured-body p {
  margin: 0;
  max-width: 640px;
  color: var(--off-white);
  line-height: 1.8;
}

.page-news .news-featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.page-news .news-featured-note {
  font-family: var(--font-data);
  font-size: 0.875rem;
  color: var(--slate-gray);
}

/* 主体布局：左侧列表 + 右侧面板 */
.page-news .news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 8px;
}

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

.page-news .news-aside {
  display: grid;
  gap: 24px;
  align-content: start;
}

/* 分类筛选 */
.page-news .filter-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-news .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.page-news .filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(139, 157, 195, 0.32);
  background: rgba(27, 42, 74, 0.35);
  color: var(--chart-line);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.page-news .filter-tab:hover {
  border-color: var(--fluorescent-green);
  color: var(--white);
}

.page-news #filter-all:checked ~ .filter-tabs label[for="filter-all"],
.page-news #filter-version:checked ~ .filter-tabs label[for="filter-version"],
.page-news #filter-topic:checked ~ .filter-tabs label[for="filter-topic"],
.page-news #filter-guide:checked ~ .filter-tabs label[for="filter-guide"] {
  background: var(--fluorescent-green);
  border-color: var(--fluorescent-green);
  color: var(--primary-dark);
}

/* 文章列表网格 */
.page-news .article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-news .news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  background: linear-gradient(145deg, rgba(27, 42, 74, 0.72), rgba(10, 25, 47, 0.92));
  border: 1px solid rgba(139, 157, 195, 0.14);
  border-radius: var(--angle-size);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.page-news .news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  border-color: rgba(0, 255, 136, 0.24);
}

.page-news .news-card--bare::before {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--fluorescent-green), var(--accent-orange));
}

.page-news .news-card-media {
  margin: -22px -22px 0;
  overflow: hidden;
}

.page-news .news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-news .news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.page-news .news-card-meta .data-tag {
  background: rgba(61, 139, 109, 0.16);
  color: var(--moss-green);
  border: 1px solid rgba(61, 139, 109, 0.30);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.page-news .news-card-id {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--slate-gray);
}

.page-news .news-card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.42;
  color: var(--white);
}

.page-news .news-card-excerpt {
  margin: 6px 0 0;
  flex-grow: 1;
  color: var(--off-white);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page-news .news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-data);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--fluorescent-green);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.page-news .news-card-link:hover {
  gap: 12px;
}

/* 加载更多 */
.page-news .news-loadmore {
  margin-top: 28px;
  width: 100%;
}

/* 侧边栏 */
.page-news .news-aside-panel {
  padding: 24px;
}

.page-news .news-aside-panel .section-kicker {
  margin-bottom: 8px;
}

.page-news .news-aside-panel h3 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
}

.page-news .news-aside-media {
  margin: -24px -24px 18px;
}

.page-news .news-aside-media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-news .news-aside-copy {
  margin: 0 0 18px;
  color: var(--off-white);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.page-news .news-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .news-topic-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(139, 157, 195, 0.10);
}

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

.page-news .news-topic-list span {
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--slate-gray);
}

.page-news .news-topic-list a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.5;
  transition: color var(--transition);
}

.page-news .news-topic-list a:hover {
  color: var(--fluorescent-green);
}

/* ===== 移动端优先 / 桌面增强 ===== */
@media (min-width: 768px) {
  .page-news .news-season-inner {
    flex-direction: row;
    align-items: center;
  }

  .page-news .news-featured-card {
    grid-template-columns: 400px 1fr;
  }

  .page-news .news-featured-media img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 250px;
  }

  .page-news .article-list {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-news .news-card--span2 {
    grid-column: span 2;
  }

  .page-news .news-card--span3 {
    grid-column: span 3;
  }

  .page-news .news-card--span4 {
    grid-column: span 4;
  }

  .page-news .news-loadmore {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .page-news .news-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 40px;
  }

  .page-news .news-aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }
}

/* 过滤：纯 CSS 渐进增强 */
.page-news #filter-all:checked ~ .article-list .news-card,
.page-news #filter-version:checked ~ .article-list .news-card[data-category="version"],
.page-news #filter-topic:checked ~ .article-list .news-card[data-category="topic"],
.page-news #filter-guide:checked ~ .article-list .news-card[data-category="guide"] {
  display: flex;
}

.page-news #filter-version:checked ~ .article-list .news-card:not([data-category="version"]),
.page-news #filter-topic:checked ~ .article-list .news-card:not([data-category="topic"]),
.page-news #filter-guide:checked ~ .article-list .news-card:not([data-category="guide"]) {
  display: none;
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
