.page-news {
  position: relative;
  background-color: var(--bg-main);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--text-main);
  overflow-x: hidden;
}

.page-news .news-hero {
  position: relative;
  display: block;
  padding: 0;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glow);
}

.page-news .news-hero-bg {
  display: block;
  width: 100%;
  height: clamp(280px, 40vw, 480px);
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(1.2) contrast(1.1);
}

.page-news .news-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 20px;
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.55) 55%, rgba(10, 10, 15, 0.12) 100%);
}

.page-news .news-hero-title {
  margin: 10px 0 6px;
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--text-main) 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-news .news-hero-subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.14em;
}

.page-news .news-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 8px 14px;
  border: 1px solid var(--border-glow);
  background: rgba(26, 26, 36, 0.72);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.page-news .news-hero-meta-divider {
  color: var(--accent-pink);
}

.page-news .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 26px;
  padding-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.page-news .breadcrumbs a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-news .breadcrumbs a:hover {
  color: var(--accent-pink);
}

.page-news .breadcrumbs-sep {
  color: var(--accent-pink);
}

.page-news .breadcrumbs-current {
  color: var(--text-main);
  font-family: var(--font-mono);
}

.page-news .news-updates::before,
.page-news .news-history::before,
.page-news .news-specials::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 30px;
  background: linear-gradient(90deg, var(--accent-pink) 0%, rgba(255, 45, 120, 0.08) 30%, rgba(0, 229, 255, 0.08) 70%, var(--accent-cyan) 100%);
}

.page-news .news-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.page-news .news-section-title {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-news .news-section-tip {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.page-news .news-filter-panel {
  position: relative;
}

.page-news .news-filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.page-news .news-filter {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  background: rgba(26, 26, 36, 0.6);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.page-news .news-filter:hover {
  border-color: var(--accent-cyan);
  color: var(--text-main);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}

.page-news .news-filter-input:checked ~ .news-filter-bar label[for="filter-all"],
.page-news .news-filter-input:checked ~ .news-filter-bar label[for="filter-version"],
.page-news .news-filter-input:checked ~ .news-filter-bar label[for="filter-function"],
.page-news .news-filter-input:checked ~ .news-filter-bar label[for="filter-content"] {
  border-color: var(--accent-pink);
  color: var(--text-main);
  background: rgba(255, 45, 120, 0.22);
  box-shadow: 0 0 18px rgba(255, 45, 120, 0.35);
}

.page-news .news-updates-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.page-news .news-timeline-rail {
  display: none;
}

.page-news .news-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.page-news .news-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.page-news .news-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-pink), var(--accent-cyan));
  opacity: 0.8;
}

.page-news .news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.1), 0 0 18px rgba(255, 45, 120, 0.16);
}

.page-news .news-card-index {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.75;
  font-weight: 700;
  padding-top: 4px;
}

.page-news .news-card-content {
  min-width: 0;
}

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

.page-news .news-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.06);
  text-transform: uppercase;
  white-space: nowrap;
}

.page-news .news-tag--gold {
  color: var(--accent-gold);
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.07);
}

.page-news .news-card-title {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-weight: 750;
}

.page-news .news-card-desc {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-news .news-card-link,
.page-news .news-special-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-news .news-card-link:hover,
.page-news .news-special-link:hover {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
}

.page-news .news-updates-figure {
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  align-self: start;
}

.page-news .news-updates-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.78;
}

.page-news .news-updates-figure figcaption {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(255, 45, 120, 0.2);
}

.page-news .news-history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.page-news .news-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-news .news-history-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  background: rgba(26, 26, 36, 0.5);
  border-left: 2px solid var(--accent-cyan);
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s var(--ease-out), border-color 0.2s ease;
}

.page-news .news-history-item:hover {
  background: rgba(26, 26, 36, 0.9);
  transform: translateX(6px);
  border-left-color: var(--accent-pink);
}

.page-news .news-history-item--current {
  border-left-color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.05);
}

.page-news .news-history-issue {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
  line-height: 1.6;
}

.page-news .news-history-info h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-news .news-history-info p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

.page-news .news-history-figure {
  margin: 0;
  align-self: start;
}

.page-news .news-history-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-glow);
}

.page-news .news-history-figure figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.page-news .news-special-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.page-news .news-special-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.page-news .news-special-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), 0 0 20px rgba(255, 45, 120, 0.18);
}

.page-news .news-special-card--accent {
  border-color: rgba(0, 229, 255, 0.4);
}

.page-news .news-special-card--wide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .news-special-serial {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
  border: 1px solid rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.page-news .news-special-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px;
  flex: 1;
}

.page-news .news-special-content h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 750;
  letter-spacing: 0.02em;
}

.page-news .news-special-content p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-news .news-special-content .btn {
  margin-top: auto;
}

.page-news .btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  background: rgba(0, 229, 255, 0.06);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.page-news .btn-ghost:hover {
  background: rgba(0, 229, 255, 0.16);
  color: var(--text-main);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

@media (min-width: 768px) {
  .page-news .news-updates-body {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .page-news .news-timeline-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    gap: 0;
  }

  .page-news .news-rail-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-pink);
    box-shadow: 0 0 12px var(--accent-pink);
    flex-shrink: 0;
  }

  .page-news .news-rail-line {
    width: 2px;
    flex: 1;
    min-height: 56px;
    background: linear-gradient(180deg, var(--accent-pink), rgba(0, 229, 255, 0.4));
  }

  .page-news .news-updates-figure {
    grid-column: 1 / -1;
  }

  .page-news .news-history-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .page-news .news-special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-news .news-special-card--wide img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

@media (min-width: 900px) {
  .page-news .news-updates-body {
    grid-template-columns: 48px minmax(0, 1fr) 240px;
  }

  .page-news .news-updates-figure {
    grid-column: auto;
  }

  .page-news #filter-version:checked ~ .news-updates-body .news-timeline-rail,
  .page-news #filter-function:checked ~ .news-updates-body .news-timeline-rail,
  .page-news #filter-content:checked ~ .news-updates-body .news-timeline-rail {
    opacity: 0.35;
  }
}

.page-news #filter-version:checked ~ .news-updates-body .news-card,
.page-news #filter-function:checked ~ .news-updates-body .news-card,
.page-news #filter-content:checked ~ .news-updates-body .news-card {
  display: none;
}

.page-news #filter-version:checked ~ .news-updates-body .news-card[data-tag="版本迭代"],
.page-news #filter-function:checked ~ .news-updates-body .news-card[data-tag="功能更新"],
.page-news #filter-content:checked ~ .news-updates-body .news-card[data-tag="内容扩展"] {
  display: grid;
}
