/* ============================================
   文章中心 · 页面专属样式
   作用域：.page-news
   ============================================ */
.page-news {
  --news-card-w: 280px;
  --news-border: rgba(0, 229, 255, 0.14);
  position: relative;
  background:
    radial-gradient(ellipse at 90% 8%, rgba(0, 229, 255, 0.045) 0%, transparent 55%),
    radial-gradient(ellipse at 8% 82%, rgba(139, 92, 246, 0.035) 0%, transparent 50%);
  padding-bottom: 64px;
}

/* ===== Hero 区块 ===== */
.page-news .news-hero {
  position: relative;
  padding: 36px 0 36px;
  border-bottom: 1px solid var(--news-border);
  overflow: hidden;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 360px;
  height: 360px;
  background:
    linear-gradient(135deg, transparent 0%, transparent 44%, rgba(0, 229, 255, 0.05) 44%, rgba(0, 229, 255, 0.05) 46%, transparent 46%),
    linear-gradient(45deg, transparent 0%, transparent 54%, rgba(139, 92, 246, 0.04) 54%, rgba(139, 92, 246, 0.04) 56%, transparent 56%);
  pointer-events: none;
  z-index: 0;
}

.page-news .breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.page-news .breadcrumb-sep {
  display: inline-block;
  margin: 0 8px;
  color: var(--text-sub);
  opacity: 0.5;
}

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

.page-news .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.page-news .news-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(42px, 9vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: var(--text-main);
}

.page-news .news-hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 0 26px;
}

.page-news .news-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-news .hero-meta-item {
  padding: 12px 16px;
  background: var(--bg-panel);
  border-left: 2px solid var(--cyan);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  min-width: 118px;
}

.page-news .hero-meta-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.page-news .hero-meta-label {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 5px;
}

.page-news .news-signal {
  display: none;
  width: 100%;
  max-width: 320px;
  justify-self: end;
  align-self: center;
  opacity: 0.9;
}

/* ===== 章节头部 ===== */
.page-news .section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 30px;
  max-width: 640px;
}

.page-news .section-header .section-heading {
  min-width: 0;
}

.page-news .section-header .section-eyebrow {
  margin-bottom: 6px;
}

.page-news .section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  color: var(--text-main);
}

.page-news .section-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0;
  max-width: 520px;
}

/* ===== 区块节奏 ===== */
.page-news .news-feed,
.page-news .news-archive {
  padding: 54px 0 44px;
}

.page-news .news-topics,
.page-news .news-guide-banner {
  padding: 44px 0 36px;
}

.page-news .news-popular {
  padding: 54px 0 48px;
}

/* ===== 首页·补看昨段资讯 / 横向滚动 ===== */
.page-news .feed-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.3) transparent;
  scroll-snap-type: x proximity;
  margin-right: -16px;
  margin-left: -16px;
  padding: 0 16px 14px;
}

.page-news .feed-scroll::-webkit-scrollbar {
  height: 6px;
}

.page-news .feed-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.25);
  border-radius: 3px;
}

.page-news .scroll-hint {
  position: absolute;
  top: 8px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(138, 148, 166, 0.7);
  z-index: 2;
  pointer-events: none;
}

.page-news .feed-track {
  display: flex;
  gap: 16px;
  width: max-content;
  min-width: 100%;
  align-items: stretch;
}

.page-news .feed-card {
  position: relative;
  width: var(--news-card-w);
  min-height: 230px;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-snap-align: start;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.page-news .feed-card:hover {
  border-color: var(--news-border);
  transform: translateY(-2px);
}

.page-news .feed-card .card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(0, 229, 255, 0.55);
}

.page-news .feed-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--text-main);
}

.page-news .feed-card-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news .card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .data-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  background: rgba(0, 0, 0, 0.24);
  padding: 3px 9px;
  border-radius: 2px;
}

.page-news .feed-card-media {
  padding: 0 0 20px;
}

.page-news .feed-card-media img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  display: block;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.page-news .feed-card-media .card-index,
.page-news .feed-card-media .tag,
.page-news .feed-card-media .feed-card-title,
.page-news .feed-card-media .feed-card-text,
.page-news .feed-card-media .card-meta {
  margin-right: 20px;
  margin-left: 20px;
}

/* ===== 专题组合 ===== */
.page-news .topic-grid {
  display: grid;
  gap: 16px;
}

.page-news .topic-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  overflow: hidden;
}

.page-news .topic-card-main {
  display: grid;
  padding: 0;
  gap: 0;
}

.page-news .topic-card-main img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.page-news .topic-card-body {
  padding: 20px 22px 24px;
}

.page-news .topic-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 12px 0 10px;
  color: var(--text-main);
}

.page-news .topic-card-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0 0 16px;
}

.page-news .card-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s var(--ease-out);
}

.page-news .card-link:hover {
  color: var(--orange);
}

.page-news .topic-card-side {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.page-news .topic-card-side .topic-card-title {
  margin-top: 14px;
}

.page-news .topic-num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.045);
  line-height: 1;
  pointer-events: none;
}

/* ===== 栏目分类 / 筛选 ===== */
.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 12px;
}

.page-news .filter-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  color: var(--text-sub);
  text-decoration: none;
  padding: 8px 14px;
  position: relative;
  transition: color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.page-news .filter-btn::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -15px;
  height: 2px;
  background: transparent;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.page-news .filter-btn:hover,
.page-news .filter-btn.is-active {
  color: var(--cyan);
}

.page-news .filter-btn.is-active::after {
  background: var(--cyan);
  transform: scaleX(1);
}

.page-news .filter-btn.is-active {
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.22);
}

/* ===== 栏目分类 / 文章列表 ===== */
.page-news .archive-group {
  margin-top: 18px;
}

.page-news .group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
}

.page-news .group-line {
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.page-news .group-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(0, 229, 255, 0.7);
  text-transform: uppercase;
}

.page-news .article-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  position: relative;
  transition: background 0.25s var(--ease-out), padding-left 0.25s var(--ease-out);
}

.page-news .article-row:hover {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(0, 229, 255, 0.024) 8px,
    rgba(0, 229, 255, 0.024) 10px
  );
}

.page-news .article-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(0, 229, 255, 0.5);
  padding-top: 4px;
}

.page-news .article-body h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
}

.page-news .article-body h3 a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.page-news .article-body h3 a:hover {
  color: var(--cyan);
}

.page-news .article-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0;
}

.page-news .article-tags {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.page-news .article-read {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

/* ===== 观赛指南横幅 ===== */
.page-news .guide-banner-inner {
  background: var(--bg-panel);
  border: 1px solid rgba(139, 92, 246, 0.24);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.page-news .guide-banner-inner img {
  width: 100%;
  height: 176px;
  object-fit: cover;
  display: block;
}

.page-news .guide-banner-copy {
  padding: 26px 24px 28px;
}

.page-news .guide-banner-copy .section-eyebrow {
  margin-bottom: 8px;
}

.page-news .guide-banner-copy h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--text-main);
}

.page-news .guide-banner-copy p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  margin: 0 0 20px;
  max-width: 480px;
}

.page-news .guide-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== 热门阅读 ===== */
.page-news .popular-grid {
  display: grid;
  gap: 16px;
}

.page-news .popular-featured {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  overflow: hidden;
}

.page-news .popular-featured img {
  width: 100%;
  height: 206px;
  object-fit: cover;
  display: block;
}

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

.page-news .popular-featured-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 12px 0 10px;
}

.page-news .popular-featured-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.page-news .popular-featured-title a:hover {
  color: var(--cyan);
}

.page-news .popular-featured-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0 0 16px;
}

.page-news .popular-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .popular-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-news .popular-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.page-news .popular-item:hover {
  border-left-color: var(--orange);
  background: var(--bg-panel-2);
}

.page-news .rank {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-sub);
  min-width: 24px;
  text-align: center;
}

.page-news .popular-item:nth-child(1) .rank { color: var(--orange); }
.page-news .popular-item:nth-child(2) .rank { color: var(--cyan); }
.page-news .popular-item:nth-child(3) .rank { color: var(--purple); }

.page-news .popular-item-body {
  min-width: 0;
}

.page-news .popular-item h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s var(--ease-out);
}

.page-news .popular-item:hover h4 {
  color: var(--cyan);
}

/* ===== 桌面端适配 ===== */
@media (min-width: 768px) {

  .page-news .news-hero {
    padding: 56px 0 52px;
  }

  .page-news .news-hero-grid {
    grid-template-columns: 1fr 240px;
    align-items: center;
    gap: 40px;
  }

  .page-news .news-signal {
    display: block;
  }

  .page-news .news-hero-meta {
    flex-wrap: nowrap;
  }

  .page-news .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
  }

  .page-news .section-desc {
    max-width: 440px;
    text-align: right;
  }

  .page-news .news-feed,
  .page-news .news-archive {
    padding: 72px 0 56px;
  }

  .page-news .news-topics,
  .page-news .news-guide-banner {
    padding: 56px 0;
  }

  .page-news .news-popular {
    padding: 72px 0 64px;
  }

  .page-news .feed-scroll {
    margin-right: 0;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .page-news .feed-card {
    width: 320px;
    min-height: 240px;
  }

  .page-news .scroll-hint {
    right: 4px;
  }

  .page-news .topic-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main main"
      "side1 side2";
  }

  .page-news .topic-card-main {
    grid-area: main;
  }

  .page-news .topic-card-main img {
    height: 260px;
  }

  .page-news .article-row {
    grid-template-columns: 48px 1fr auto;
    gap: 0 20px;
    align-items: center;
    padding: 18px 0;
  }

  .page-news .article-tags {
    grid-column: 3;
    justify-self: end;
    margin-top: 0;
  }

  .page-news .guide-banner-inner {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .page-news .guide-banner-inner img {
    height: 100%;
    min-height: 280px;
  }

  .page-news .guide-banner-copy {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-news .popular-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }

  .page-news .popular-featured img {
    height: 250px;
  }

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

@media (min-width: 1024px) {

  .page-news .topic-grid {
    grid-template-columns: 1.35fr 0.65fr;
    grid-template-areas:
      "main side1"
      "main side2";
  }

  .page-news .topic-card-main {
    grid-template-rows: 1fr auto;
  }

  .page-news .topic-card-main img {
    height: 100%;
    min-height: 320px;
  }

  .page-news .topic-card-main .topic-card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .page-news .feed-card {
    width: 340px;
  }

  .page-news .popular-featured {
    display: flex;
    flex-direction: column;
  }

  .page-news .popular-featured img {
    flex-shrink: 0;
  }
}
