.page-news {
  --news-red: #7A2222;
  --news-purple: #4A2870;
  --news-blue: #1E3560;
  --news-amber: #FFB020;
  --news-lime: #9EFF00;
  --news-card-warm: #F0E9D8;
  --news-ink: #0A1F1A;
  --news-dim-text: #B8B29A;
  --news-line: rgba(106, 90, 205, 0.45);
  --news-radius-lg: 24px;
  --news-radius-md: 16px;
  --news-radius-pill: 999px;
  font-family: var(--font-sans);
  color: var(--text-light);
  background-color: var(--bg-ink);
  min-height: 100vh;
}

.page-news .content-container {
  width: min(var(--container-width), 92%);
  margin: 0 auto;
  padding: 24px 0 64px;
}

.page-news .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(106, 90, 205, 0.25);
  border-radius: var(--radius-md);
}

.page-news .breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.page-news .breadcrumb a:hover {
  color: var(--accent-lime);
  text-decoration: underline;
}

.page-news .breadcrumb span[aria-current="page"] {
  color: var(--accent-lime);
  font-weight: 700;
}

.page-news .news-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(58, 31, 92, 0.4) 0%, rgba(26, 43, 74, 0.4) 100%);
  border: 1px solid rgba(106, 90, 205, 0.35);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-lime), var(--line-indigo), var(--accent-lime));
  opacity: 0.8;
}

.page-news .news-hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-news .news-hero h1 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text-light);
}

.page-news .news-hero__lead {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 62ch;
}

.page-news .news-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.page-news .hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(158, 255, 0, 0.08);
  border: 1px solid rgba(158, 255, 0, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.page-news .hero-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-lime);
}

.page-news .news-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news .news-hero__visual img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(158, 255, 0, 0.25);
  box-shadow: 0 0 32px rgba(158, 255, 0, 0.08);
}

.page-news .section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--news-line);
}

.page-news .section-number {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: rgba(158, 255, 0, 0.35);
}

.page-news .section-head h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  color: var(--text-light);
}

.page-news .section-sub {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.page-news .latest-batch {
  margin-bottom: 64px;
}

.page-news .batch-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: rgba(26, 43, 74, 0.35);
  border: 1px solid rgba(26, 43, 74, 0.6);
  border-radius: var(--radius-md);
}

.page-news .batch-overview__chart img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(158, 255, 0, 0.2);
}

.page-news .overview-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2;
  color: var(--text-light);
  max-width: 55ch;
  padding: 0 12px;
  border-left: 3px solid var(--accent-lime);
}

.page-news .batch-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.page-news .batch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--bg-ink);
  background: var(--accent-lime);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
}

.page-news .batch-meta {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-lime);
  font-weight: 700;
}

.page-news .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.page-news .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--news-card-warm);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(158, 255, 0, 0.08);
}

.page-news .card--red {
  background: var(--news-red);
}

.page-news .card--purple {
  background: var(--news-purple);
}

.page-news .card--blue {
  background: var(--news-blue);
}

.page-news .card--dark {
  background: #123028;
}

.page-news .card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-news .card-batch {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
}

.page-news .card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.page-news .card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  color: #fff;
  letter-spacing: 0.01em;
}

.page-news .card-summary {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  flex: 1;
}

.page-news .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-news .tag-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.page-news .tag-item--hot {
  background: var(--tag-yellow);
  color: var(--bg-ink);
}

.page-news .tag-item--warn {
  background: var(--tag-orange);
  color: var(--bg-ink);
}

.page-news .tag-item--lime {
  background: var(--accent-lime);
  color: var(--bg-ink);
}

.page-news .tag-item--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

.page-news .card-date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-lime);
  letter-spacing: 0.03em;
}

.page-news .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  letter-spacing: 0.04em;
}

.page-news .status-badge--new {
  background: var(--status-red);
  color: #fff;
}

.page-news .status-badge--archived {
  background: var(--status-green);
  color: #fff;
}

.page-news .status-badge--updated {
  background: var(--line-indigo);
  color: #fff;
}

.page-news .status-badge--attention {
  background: var(--tag-orange);
  color: var(--bg-ink);
}

.page-news .batch-timeline-section {
  margin-bottom: 64px;
  padding: 32px;
  background: var(--news-blue);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(106, 90, 205, 0.35);
}

.page-news .batch-timeline-section .section-head {
  border-bottom-color: rgba(158, 255, 0, 0.25);
}

.page-news .timeline-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.page-news .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-lime), rgba(158, 255, 0, 0.1));
  border-radius: var(--radius-pill);
}

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

.page-news .timeline-item:last-child {
  margin-bottom: 0;
}

.page-news .timeline-item__marker {
  position: absolute;
  left: 4px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-ink);
  border: 3px solid var(--accent-lime);
  box-shadow: 0 0 12px rgba(158, 255, 0, 0.45);
}

.page-news .timeline-item.is-open .timeline-item__marker {
  background: var(--accent-lime);
  box-shadow: 0 0 20px rgba(158, 255, 0, 0.75);
}

.page-news .timeline-item__body {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: background 0.2s ease;
}

.page-news .timeline-item__body:hover {
  background: rgba(158, 255, 0, 0.05);
}

.page-news .timeline-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.page-news .timeline-item__batch {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-lime);
  background: rgba(158, 255, 0, 0.12);
  border: 1px solid rgba(158, 255, 0, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
}

.page-news .timeline-item__date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--tag-yellow);
}

.page-news .timeline-item__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text-light);
}

.page-news .timeline-item__desc {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}

.page-news .timeline-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 120px;
}

.page-news .timeline-aside img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(158, 255, 0, 0.3);
}

.page-news .aside-caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
  text-align: center;
}

.page-news .tag-adjust-section {
  margin-bottom: 64px;
  padding: 32px;
  background: var(--news-purple);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 212, 0, 0.2);
}

.page-news .tag-adjust-section .section-head {
  border-bottom-color: rgba(255, 212, 0, 0.3);
}

.page-news .adjust-list {
  display: flex;
  flex-direction: column;
}

.page-news .adjust-row {
  display: grid;
  grid-template-columns: 16px 120px minmax(160px, 260px) 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.15s ease;
}

.page-news .adjust-row:last-child {
  border-bottom: none;
}

.page-news .adjust-row:hover {
  background: rgba(255, 212, 0, 0.05);
}

.page-news .adjust-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tag-yellow);
  box-shadow: 0 0 8px rgba(255, 212, 0, 0.5);
  align-self: center;
}

.page-news .adjust-cat {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--tag-yellow);
}

.page-news .adjust-action {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
}

.page-news .adjust-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  text-align: right;
}

.page-news .version-section {
  margin-bottom: 64px;
  padding: 32px;
  background: rgba(240, 233, 216, 0.06);
  border: 1px solid rgba(106, 90, 205, 0.3);
  border-radius: var(--radius-lg);
}

.page-news .version-section .section-head {
  border-bottom-color: rgba(106, 90, 205, 0.35);
}

.page-news .version-banner-img {
  margin-bottom: 24px;
  text-align: center;
}

.page-news .version-banner-img img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(158, 255, 0, 0.2);
}

.page-news .version-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.page-news .version-card {
  background: var(--news-card-warm);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 280px;
}

.page-news .version-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(158, 255, 0, 0.1);
}

.page-news .version-card--current {
  border: 2px solid var(--accent-lime);
}

.page-news .version-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-news .version-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--bg-ink);
  background: var(--accent-lime);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
}

.page-news .version-card:not(.version-card--current) .version-tag {
  background: var(--tag-yellow);
  color: var(--bg-ink);
}

.page-news .version-num {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--bg-ink);
  letter-spacing: -0.02em;
}

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

.page-news .version-changelog li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: rgba(10, 31, 26, 0.82);
}

.page-news .version-changelog li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-indigo);
}

.page-news .version-card--current .version-changelog li::before {
  background: var(--status-green);
}

.page-news .update-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.page-news .update-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-ink);
  background: var(--news-card-warm);
  border-radius: var(--radius-pill);
  padding: 10px 26px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-news .update-link-btn:hover {
  background: var(--accent-lime);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-news .page-footer-route {
  margin-top: 24px;
  text-align: center;
}

.page-news .page-footer-route img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(106, 90, 205, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .page-news .card,
  .page-news .version-card,
  .page-news .update-link-btn {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .page-news .news-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .page-news .news-hero__visual {
    order: -1;
    justify-content: flex-start;
  }

  .page-news .timeline-wrap {
    grid-template-columns: 1fr;
  }

  .page-news .timeline-aside {
    position: static;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-news .content-container {
    width: 94%;
    padding-bottom: 40px;
  }

  .page-news .news-hero {
    padding: 20px;
  }

  .page-news .news-hero h1 {
    font-size: 22px;
  }

  .page-news .hero-stat strong {
    font-size: 15px;
  }

  .page-news .batch-overview {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .page-news .batch-overview__chart {
    text-align: center;
  }

  .page-news .batch-overview__chart img {
    width: 200px;
    height: 200px;
  }

  .page-news .overview-note {
    border-left: none;
    border-top: 3px solid var(--accent-lime);
    padding: 12px 0 0;
  }

  .page-news .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }

  .page-news .batch-timeline-section,
  .page-news .tag-adjust-section,
  .page-news .version-section {
    padding: 20px;
  }

  .page-news .section-head {
    flex-direction: column;
    gap: 6px;
  }

  .page-news .section-number {
    font-size: 30px;
  }

  .page-news .adjust-row {
    grid-template-columns: 12px 1fr;
    gap: 8px 12px;
  }

  .page-news .adjust-dot {
    grid-row: span 2;
  }

  .page-news .adjust-note {
    text-align: left;
    grid-column: 2;
  }

  .page-news .version-grid {
    grid-template-columns: 1fr;
  }

  .page-news .version-card {
    min-height: auto;
  }

  .page-news .timeline-item__body {
    padding: 14px;
  }

  .page-news .timeline-item__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-news .card,
  .page-news .version-card {
    animation: news-rise-in 0.5s ease both;
  }

  .page-news .card:nth-child(2),
  .page-news .version-card:nth-child(2) {
    animation-delay: 0.08s;
  }

  .page-news .card:nth-child(3),
  .page-news .version-card:nth-child(3) {
    animation-delay: 0.16s;
  }

  .page-news .card:nth-child(4) {
    animation-delay: 0.24s;
  }

  .page-news .card:nth-child(5) {
    animation-delay: 0.32s;
  }

  .page-news .card:nth-child(6) {
    animation-delay: 0.4s;
  }

  @keyframes news-rise-in {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
