.page-news {
  --news-glow: rgba(57, 255, 20, 0.3);
  --news-card-bg: linear-gradient(140deg, rgba(22, 36, 72, 0.94), rgba(30, 10, 60, 0.9));
}

/* ===== Hero 首屏 ===== */
.page-news .news-hero {
  position: relative;
  padding: 40px 0 0;
  overflow: hidden;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(106, 13, 173, 0.55), transparent 68%);
  clip-path: polygon(25% 0%, 100% 0%, 100% 75%, 0% 100%);
  transform: rotate(12deg);
  pointer-events: none;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  top: 24px;
  left: -40px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(0, 191, 255, 0.18);
  transform: rotate(-14deg);
  pointer-events: none;
}

.page-news .news-hero-copy {
  position: relative;
  z-index: 1;
}

.page-news .news-hero-kicker {
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-neon);
  margin: 0 0 16px;
  padding-left: 24px;
  position: relative;
}

.page-news .news-hero-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--c-neon);
  box-shadow: 0 0 10px var(--news-glow);
}

.page-news .news-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--c-white);
  max-width: 920px;
  margin: 0 0 20px;
  text-shadow: 0 4px 32px rgba(6, 12, 40, 0.8);
}

.page-news .news-hero-desc {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-gray);
  max-width: 880px;
  margin: 0 0 32px;
}

.page-news .news-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  margin: 0 0 36px;
}

.page-news .news-hero-stat {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--c-neon);
  padding-left: 14px;
}

.page-news .news-hero-stat dd {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  color: var(--c-white);
  margin: 0;
}

.page-news .news-hero-stat dt {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(224, 224, 224, 0.66);
}

.page-news .news-hero-figure {
  margin: 0;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.page-news .news-hero-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(220px, 36vw, 400px);
  object-fit: cover;
  object-position: center 20%;
}

/* ===== 布局主区 ===== */
.page-news .news-layout {
  padding: 64px 0 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 191, 255, 0.03) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(0, 191, 255, 0.03) 0 1px, transparent 1px 32px);
}

.page-news .news-layout .container {
  position: relative;
}

.page-news .news-target {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  scroll-margin-top: 140px;
}

.page-news .news-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* ===== 侧栏筛选 ===== */
.page-news .news-sidebar h2 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  color: var(--c-white);
  margin: 0 0 8px;
}

.page-news .news-filter-desc {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(224, 224, 224, 0.72);
  margin: 0 0 20px;
}

.page-news .news-cat-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-news .news-cat-list::-webkit-scrollbar {
  display: none;
}

.page-news .news-cat-list li {
  flex: 0 0 auto;
}

.page-news .news-cat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(224, 224, 224, 0.2);
  border-radius: var(--radius);
  background: rgba(44, 44, 44, 0.55);
  font-family: var(--f-body);
  font-size: 14px;
  text-decoration: none;
  color: var(--c-gray);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.page-news .news-cat-label em {
  font-style: normal;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(106, 13, 173, 0.35);
  color: rgba(224, 224, 224, 0.85);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.page-news .news-cat-label:hover {
  border-color: rgba(57, 255, 20, 0.5);
  transform: translateY(-2px);
}

/* 默认全部激活 */
.page-news .news-cat-list a[href="#news-cat-all"] {
  border-color: rgba(57, 255, 20, 0.55);
  background: rgba(57, 255, 20, 0.1);
  color: var(--c-white);
}

.page-news .news-cat-list a[href="#news-cat-all"] em {
  background: var(--c-neon);
  color: var(--c-navy);
}

/* 分类激活 */
.page-news #news-cat-notice:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-notice"],
.page-news #news-cat-record:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-record"],
.page-news #news-cat-release:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-release"],
.page-news #news-cat-adapt:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-adapt"] {
  border-color: rgba(57, 255, 20, 0.7);
  background: rgba(57, 255, 20, 0.12);
  color: var(--c-white);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.12);
}

.page-news #news-cat-notice:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-notice"] em,
.page-news #news-cat-record:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-record"] em,
.page-news #news-cat-release:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-release"] em,
.page-news #news-cat-adapt:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-adapt"] em {
  background: var(--c-neon);
  color: var(--c-navy);
  font-weight: 700;
}

/* 分类目标时取消全部激活 */
.page-news #news-cat-notice:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-all"],
.page-news #news-cat-record:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-all"],
.page-news #news-cat-release:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-all"],
.page-news #news-cat-adapt:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-all"] {
  border-color: rgba(224, 224, 224, 0.2);
  background: rgba(44, 44, 44, 0.55);
  color: var(--c-gray);
  box-shadow: none;
}

.page-news #news-cat-notice:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-all"] em,
.page-news #news-cat-record:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-all"] em,
.page-news #news-cat-release:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-all"] em,
.page-news #news-cat-adapt:target ~ .news-layout-grid .news-cat-list a[href="#news-cat-all"] em {
  background: rgba(106, 13, 173, 0.35);
  color: rgba(224, 224, 224, 0.85);
}

/* 筛选结果 */
.page-news #news-cat-notice:target ~ .news-layout-grid .news-item:not([data-cat="notice"]),
.page-news #news-cat-record:target ~ .news-layout-grid .news-item:not([data-cat="record"]),
.page-news #news-cat-release:target ~ .news-layout-grid .news-item:not([data-cat="release"]),
.page-news #news-cat-adapt:target ~ .news-layout-grid .news-item:not([data-cat="adapt"]) {
  display: none;
}

/* 分类图标 */
.page-news .news-cat-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}

.page-news .news-cat-icons figure {
  margin: 0;
  background: rgba(44, 44, 44, 0.5);
  border: 1px solid rgba(224, 224, 224, 0.14);
  border-radius: var(--radius);
  padding: 12px 10px 10px;
  text-align: center;
  transition: border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.page-news .news-cat-icons figure:hover {
  border-color: rgba(0, 191, 255, 0.5);
  transform: translateY(-3px);
}

.page-news .news-cat-icons img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.page-news .news-cat-icons figcaption {
  font-family: var(--f-body);
  font-size: 12px;
  color: rgba(224, 224, 224, 0.7);
  margin-top: 8px;
}

.page-news .news-sidebar-note {
  border-left: 2px solid var(--c-purple);
  padding: 12px 16px;
  background: rgba(106, 13, 173, 0.12);
}

.page-news .news-sidebar-note p {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(224, 224, 224, 0.78);
  margin: 0;
}

.page-news .news-sidebar-note p + p {
  margin-top: 8px;
}

/* ===== 文章流 ===== */
.page-news .news-stream-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 191, 255, 0.25);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.page-news .news-stream-head h2 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  color: var(--c-white);
  margin: 0;
}

.page-news .news-stream-count {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--c-neon);
  letter-spacing: 0.08em;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.page-news .news-stream-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 13px;
  color: rgba(224, 224, 224, 0.7);
  margin: 0 0 28px;
  padding: 10px 14px;
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: var(--radius);
}

.page-news .news-stream-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-neon);
  animation: kok-news-pulse 1.6s ease-in-out infinite;
}

@keyframes kok-news-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--news-glow); opacity: 1; }
  50% { box-shadow: 0 0 18px var(--news-glow); opacity: 0.7; }
}

/* 时间线 */
.page-news .news-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-neon), var(--c-blue) 40%, rgba(0, 191, 255, 0.25) 80%, transparent);
}

.page-news .news-item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 28px;
}

.page-news .news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-navy);
  border: 2px solid var(--c-neon);
  box-shadow: 0 0 10px var(--news-glow);
  z-index: 1;
}

.page-news .news-item-card {
  position: relative;
  background: linear-gradient(140deg, rgba(22, 36, 72, 0.94), rgba(30, 10, 60, 0.9));
  border: 1px solid rgba(224, 224, 224, 0.14);
  border-left: 3px solid var(--c-purple);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-news .news-item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.45);
  border-left-color: var(--c-neon);
  box-shadow: 0 12px 32px rgba(4, 8, 30, 0.5);
}

.page-news .news-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.page-news .news-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: 999px;
  line-height: 1.4;
}

.page-news .news-tag-notice {
  color: var(--c-neon);
  border-color: rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.08);
}

.page-news .news-tag-record {
  color: var(--c-blue);
  border-color: rgba(0, 191, 255, 0.4);
  background: rgba(0, 191, 255, 0.08);
}

.page-news .news-tag-release {
  color: var(--c-gold);
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.08);
}

.page-news .news-tag-adapt {
  color: #b57bff;
  border-color: rgba(181, 123, 255, 0.4);
  background: rgba(181, 123, 255, 0.08);
}

.page-news .news-item-time {
  font-family: var(--f-body);
  font-size: 13px;
  color: rgba(224, 224, 224, 0.6);
}

.page-news .news-item-card h3 {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.page-news .news-item-card h3 a {
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.page-news .news-item-card h3 a:hover {
  color: var(--c-blue);
}

.page-news .news-item-card > p {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(224, 224, 224, 0.8);
  margin: 0 0 16px;
}

.page-news .news-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(224, 224, 224, 0.1);
  padding-top: 12px;
}

.page-news .news-item-index {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 800;
  color: rgba(57, 255, 20, 0.75);
  letter-spacing: 0.06em;
}

.page-news .news-item-more {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--c-blue);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.25s var(--ease);
}

.page-news .news-item-more:hover {
  color: var(--c-neon);
}

.page-news .news-stream-foot {
  margin-top: 40px;
  padding: 18px 24px;
  background: rgba(106, 13, 173, 0.14);
  border-left: 3px solid var(--c-purple);
  text-align: right;
}

.page-news .news-stream-foot a {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--c-gray);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.page-news .news-stream-foot a:hover {
  color: var(--c-neon);
}

/* ===== 热门内容 ===== */
.page-news .news-popular {
  margin-top: 72px;
  padding: 72px 0;
  background: linear-gradient(120deg, var(--c-darkp), var(--c-navy) 58%, #0d1544);
  clip-path: polygon(0 3.5%, 100% 0, 100% 96.5%, 0 100%);
}

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

.page-news .news-popular-kicker {
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-neon);
  margin: 0 0 8px;
}

.page-news .news-popular h2 {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 800;
  font-style: italic;
  color: var(--c-white);
  margin: 0 0 28px;
}

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

.page-news .news-popular-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(224, 224, 224, 0.12);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.page-news .news-popular-item:last-child {
  border-bottom: none;
}

.page-news .news-popular-item:hover {
  background: rgba(57, 255, 20, 0.05);
  padding-left: 8px;
}

.page-news .news-popular-rank {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: rgba(57, 255, 20, 0.8);
  -webkit-text-stroke: 1px var(--c-neon);
}

.page-news .news-popular-body .news-tag {
  margin-bottom: 6px;
}

.page-news .news-popular-body h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.page-news .news-popular-body h3 a {
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.page-news .news-popular-body h3 a:hover {
  color: var(--c-blue);
}

.page-news .news-popular-figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 191, 255, 0.3);
}

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

.page-news .news-popular-figure figcaption {
  font-family: var(--f-body);
  font-size: 12px;
  color: rgba(224, 224, 224, 0.7);
  padding: 10px 14px;
  background: rgba(11, 27, 61, 0.8);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ===== 帮助 CTA ===== */
.page-news .news-help {
  padding: 64px 0 80px;
}

.page-news .news-help-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  background: rgba(44, 44, 44, 0.5);
  border: 1px solid rgba(224, 224, 224, 0.16);
  border-left: 4px solid var(--c-purple);
}

.page-news .news-help-inner p {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-white);
  margin: 0;
}

.page-news .news-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== 桌面端增强 ===== */
@media (min-width: 900px) {
  .page-news .news-hero-figure img {
    height: 400px;
  }

  .page-news .news-layout-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
  }

  .page-news .news-sidebar {
    position: sticky;
    top: 140px;
    align-self: start;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 8px;
  }

  .page-news .news-cat-list {
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .page-news .news-cat-list li {
    flex: none;
  }

  .page-news .news-cat-label {
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
  }

  .page-news .news-popular-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 56px;
  }

  .page-news .news-popular-figure {
    transform: rotate(1.2deg);
    transition: transform 0.3s var(--ease);
  }

  .page-news .news-popular-figure:hover {
    transform: rotate(0deg) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    animation: none !important;
    transition: none !important;
  }
}
