.page-news {
  --news-radius: 18px;
  --news-gap: 32px;
  --news-card-bg: rgba(31, 58, 95, 0.45);
}

.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  background:
    radial-gradient(circle at 85% 15%, rgba(138, 43, 226, 0.45), transparent 34%),
    radial-gradient(circle at 15% 85%, rgba(0, 229, 255, 0.2), transparent 30%),
    linear-gradient(140deg, var(--color-deep) 0%, var(--color-card) 100%);
  border-bottom: 1px solid rgba(57, 255, 20, 0.3);
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(0, 229, 255, 0.08) 0 1px, transparent 1px 24px);
}

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

.page-news .news-hero-deco {
  position: absolute;
  top: 16px;
  right: 8px;
  font-family: var(--font-serif);
  font-size: 104px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(57, 255, 20, 0.08);
  user-select: none;
  pointer-events: none;
}

.page-news .news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 28px;
}

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

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

.page-news .news-hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 12px;
}

.page-news .news-hero-title {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-white);
  max-width: 760px;
  margin: 0 0 18px;
  transform: skew(-3deg);
  text-shadow: 0 2px 0 rgba(57, 255, 20, 0.2);
}

.page-news .news-hero-sub {
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-gray);
  max-width: 660px;
  margin: 0;
}

.page-news .news-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-news .news-meta-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-white);
  background: rgba(31, 58, 95, 0.7);
  border: 1px solid rgba(57, 255, 20, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}

.page-news .news-section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 56px 0 24px;
}

.page-news .news-section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 6px;
}

.page-news .news-section-lead {
  max-width: 580px;
  color: var(--color-gray);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

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

.page-news .news-filter {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--color-gray);
  background: rgba(31, 58, 95, 0.55);
  border: 1px solid rgba(176, 184, 196, 0.2);
  cursor: default;
}

.page-news .news-filter.is-active {
  color: var(--color-deep);
  background: var(--color-green);
  border-color: var(--color-green);
  font-weight: 700;
}

.page-news .latest-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.page-news .update-list {
  display: grid;
  gap: 12px;
}

.page-news .update-item {
  background: linear-gradient(135deg, rgba(31, 58, 95, 0.55), rgba(31, 58, 95, 0.25));
  border: 1px solid rgba(176, 184, 196, 0.16);
  border-left: 3px solid var(--color-green);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.page-news .update-item[open] {
  background: var(--news-card-bg);
  border-left-color: var(--color-purple);
}

.page-news .update-summary {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  cursor: pointer;
  list-style: none;
}

.page-news .update-summary::-webkit-details-marker {
  display: none;
}

.page-news .update-summary:hover {
  background: rgba(0, 229, 255, 0.05);
}

.page-news .update-version {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--color-green);
  background: rgba(57, 255, 20, 0.08);
  border-radius: 6px;
  text-align: center;
  padding: 8px 0;
}

.page-news .update-info {
  min-width: 0;
}

.page-news .update-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-white);
  margin-bottom: 6px;
}

.page-news .update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-news .update-time {
  font-size: 11px;
  color: var(--color-gray);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.page-news .update-arrow {
  color: var(--color-green);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news .update-item[open] .update-arrow {
  transform: rotate(45deg);
}

.page-news .update-body {
  padding: 0 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-gray);
}

.page-news .update-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-news .update-visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: linear-gradient(120deg, rgba(138, 43, 226, 0.2), rgba(0, 229, 255, 0.1));
}

.page-news .update-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .update-visual figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--color-gray);
  font-family: var(--font-mono);
}

.page-news .update-metrics {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(31, 58, 95, 0.55));
  border: 1px solid rgba(138, 43, 226, 0.35);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.page-news .metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.page-news .metric-label {
  font-size: 13px;
  color: var(--color-gray);
}

.page-news .metric-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-green);
  text-align: right;
}

.page-news .update-side .btn {
  text-align: center;
}

.page-news .news-features {
  padding: 8px 0 48px;
}

.page-news .feature-item {
  position: relative;
  display: grid;
  gap: 20px;
  margin-top: 24px;
  padding: 22px;
  background: rgba(31, 58, 95, 0.32);
  border: 1px solid rgba(176, 184, 196, 0.12);
  border-radius: var(--radius-lg);
}

.page-news .feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--color-green), var(--color-cyan), var(--color-purple));
}

.page-news .feature-media {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(5, 10, 31, 0.6);
}

.page-news .feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .feature-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.page-news .feature-title {
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.3;
  color: var(--color-white);
  margin: 0 0 12px;
}

.page-news .feature-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-gray);
  margin: 0 0 14px;
}

.page-news .feature-link {
  display: inline-block;
  color: var(--color-green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.page-news .feature-link:hover {
  color: var(--color-cyan);
}

.page-news .news-timeline {
  padding: 56px 0;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 31, 0.7) 18%, rgba(5, 10, 31, 0.7) 82%, transparent);
  border-top: 1px solid rgba(138, 43, 226, 0.2);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.page-news .container-narrow {
  max-width: 900px;
}

.page-news .timeline {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 8px 0 16px;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--color-green), var(--color-purple), rgba(0, 229, 255, 0.6));
  opacity: 0.7;
}

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

.page-news .timeline-marker {
  position: absolute;
  left: 0;
  top: 14px;
  width: 22px;
  height: 22px;
}

.page-news .timeline-marker span {
  display: block;
  width: 12px;
  height: 12px;
  margin: 5px;
  border-radius: 50%;
  background: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.page-news .timeline-item:hover .timeline-marker span,
.page-news .timeline-item:focus-within .timeline-marker span {
  background: var(--color-green);
  box-shadow: 0 0 0 5px rgba(57, 255, 20, 0.25);
}

.page-news .timeline-content {
  background: rgba(31, 58, 95, 0.5);
  border-left: 2px solid var(--color-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 18px;
}

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

.page-news .timeline-version {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-green);
}

.page-news .timeline-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
}

.page-news .timeline-content h3 {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-white);
  margin: 0 0 8px;
}

.page-news .timeline-content p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-gray);
  margin: 0;
}

.page-news .timeline-cta {
  margin-top: 32px;
  padding: 24px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.18), rgba(31, 58, 95, 0.5));
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: var(--radius-lg);
}

.page-news .timeline-cta p {
  font-size: 14px;
  color: var(--color-gray);
  margin: 0;
}

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

.page-news .subscribe-panel {
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(138, 43, 226, 0.22), rgba(31, 58, 95, 0.7) 55%, rgba(0, 229, 255, 0.1));
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: grid;
  gap: 24px;
}

.page-news .subscribe-lead {
  max-width: 560px;
  color: var(--color-gray);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.page-news .subscribe-options {
  display: grid;
  gap: 16px;
}

.page-news .subscribe-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: rgba(5, 10, 31, 0.45);
  border: 1px solid rgba(176, 184, 196, 0.14);
  border-radius: var(--radius-md);
  padding: 22px;
}

.page-news .subscribe-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--color-green);
  background: rgba(57, 255, 20, 0.1);
}

.page-news .subscribe-card h3 {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-white);
  margin: 0 0 6px;
}

.page-news .subscribe-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-gray);
  margin: 0;
}

.page-news .subscribe-card .btn {
  margin-top: auto;
}

.page-news .subscribe-note {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.6;
}

.page-news .subscribe-note a {
  color: var(--color-cyan);
  text-decoration: none;
}

.page-news .subscribe-note a:hover {
  color: var(--color-green);
}

@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 64px 0 72px;
  }

  .page-news .news-hero-deco {
    font-size: 180px;
    top: 28px;
    right: 24px;
  }

  .page-news .news-hero-title {
    font-size: 52px;
    max-width: 860px;
    margin-bottom: 22px;
  }

  .page-news .news-hero-sub {
    font-size: 16px;
    max-width: 700px;
  }

  .page-news .news-section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-news .news-section-lead {
    text-align: right;
  }

  .page-news .update-summary {
    grid-template-columns: 56px 1fr auto;
    padding: 16px 18px;
  }

  .page-news .update-title {
    font-size: 15px;
  }

  .page-news .update-body {
    padding: 0 18px 18px 92px;
    font-size: 14px;
  }

  .page-news .feature-item {
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    padding: 28px;
    align-items: center;
  }

  .page-news .feature-item:nth-child(even) .feature-media {
    order: 1;
  }

  .page-news .feature-title {
    font-size: 27px;
  }

  .page-news .subscribe-panel {
    padding: 44px;
  }

  .page-news .subscribe-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-news .news-hero-title {
    font-size: 60px;
  }

  .page-news .news-hero-sub {
    font-size: 17px;
  }

  .page-news .latest-grid {
    grid-template-columns: 1.55fr 1fr;
    gap: 32px;
  }

  .page-news .update-list {
    gap: 14px;
  }

  .page-news .news-features {
    padding: 16px 0 64px;
  }

  .page-news .feature-item {
    margin-top: 32px;
  }

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

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

@media (prefers-reduced-motion: no-preference) {
  .page-news .news-hero-deco {
    animation: news-deco-float 6s ease-in-out infinite;
  }

  .page-news .update-item[open] .update-body {
    animation: news-fade-up 0.3s ease;
  }

  @keyframes news-deco-float {
    0%, 100% {
      transform: translateY(0) rotate(2deg);
    }
    50% {
      transform: translateY(-10px) rotate(0deg);
    }
  }

  @keyframes news-fade-up {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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