.page-news {
  --n-grid-line: rgba(57, 255, 20, 0.035);
  --n-accent-soft: rgba(57, 255, 20, 0.10);
  --n-gold-soft: rgba(201, 162, 39, 0.14);
  --n-line-card: rgba(160, 180, 200, 0.14);
  position: relative;
  overflow-x: clip;
  background-image:
    linear-gradient(var(--n-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--n-grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center top;
}

/* ---- Page head ---- */
.page-news .news-page-head {
  position: relative;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line-rule);
}

.page-news .news-page-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 88px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
  border-radius: 0 2px 2px 0;
}

.page-news .news-page-head .section-label {
  margin-bottom: 12px;
}

.page-news .news-page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

.page-news .news-page-sub {
  margin: 0;
  max-width: 600px;
  color: var(--c-sub);
  font-size: 16px;
  line-height: 1.75;
}

.page-news .breadcrumb {
  padding-top: 26px;
}

/* ---- Section head ---- */
.page-news .section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.page-news .section-head .section-label {
  margin-bottom: 0;
}

.page-news .section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  position: relative;
  padding-left: 16px;
}

.page-news .section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--c-accent), transparent);
}

.page-news .section-sub {
  max-width: 660px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-sub);
  margin: 0;
}

/* ---- Latest news section ---- */
.page-news .news-section {
  padding: 56px 0 16px;
}

.page-news .news-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--n-line-card);
  border-radius: var(--radius);
  background: var(--c-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 40px;
}

.page-news .news-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold) 60%, transparent);
}

.page-news .news-feature-media {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-dark);
}

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

.page-news .feature-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-bg-dark);
  background: var(--c-accent);
  border-radius: 4px;
  padding: 4px 10px;
  box-shadow: 0 4px 18px rgba(57, 255, 20, 0.35);
  transform: rotate(-2deg);
}

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

.page-news .news-feature-body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}

.page-news .news-feature-body > p {
  margin: 0 0 16px;
  color: var(--c-sub);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- News meta and tags ---- */
.page-news .news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.page-news .news-cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 999px;
  padding: 3px 12px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.page-news .news-cat:hover {
  background: var(--c-accent);
  color: var(--c-bg-dark);
  border-color: var(--c-accent);
}

.page-news .news-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-sub);
}

/* ---- Text link ---- */
.page-news .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 255, 20, 0.3);
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.page-news .text-link:hover {
  color: var(--c-text);
  border-color: var(--c-accent);
}

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

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 24px;
  border-left: 2px dashed rgba(160, 180, 200, 0.25);
}

.page-news .news-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-rule);
}

.page-news .news-item:last-child {
  border-bottom: none;
  padding-bottom: 8px;
}

.page-news .news-index {
  width: 44px;
  height: 44px;
  justify-self: center;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  border: 1px solid rgba(57, 255, 20, 0.35);
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.page-news .news-item:hover .news-index {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-bg-dark);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
}

.page-news .news-item-body {
  padding-top: 2px;
  transition: transform var(--t-mid) var(--ease);
}

.page-news .news-item:hover .news-item-body {
  transform: translateX(3px);
}

.page-news .news-item-body .news-meta {
  margin-bottom: 6px;
}

.page-news .news-item-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
  transition: color var(--t-fast) var(--ease);
}

.page-news .news-item:hover .news-item-body h3 {
  color: var(--c-accent);
}

.page-news .news-item-body p {
  margin: 0 0 10px;
  color: var(--c-sub);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- Version section ---- */
.page-news .version-section {
  padding: 64px 0;
  margin-top: 40px;
  border-top: 1px dashed var(--line-rule-strong);
  border-bottom: 1px dashed var(--line-rule);
}

.page-news .version-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-news .version-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-rule);
  background: var(--c-bg-dark);
}

.page-news .version-media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-news .version-media-note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  background: rgba(5, 14, 28, 0.78);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 4px;
  padding: 5px 10px 4px;
}

.page-news .version-timeline {
  min-width: 0;
}

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

.page-news .version-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  border-left: 2px dashed rgba(201, 162, 39, 0.3);
}

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

.page-news .version-item:last-child {
  padding-bottom: 0;
}

.page-news .version-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.12);
}

.page-news .version-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-gold);
  background: var(--n-gold-soft);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 6px;
  padding: 2px 12px;
  margin-bottom: 8px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.page-news .version-item:hover .version-year {
  background: rgba(201, 162, 39, 0.25);
  border-color: var(--c-gold);
  color: #f2d678;
}

.page-news .version-content h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.4;
  transition: color var(--t-fast) var(--ease);
}

.page-news .version-item:hover .version-content h3 {
  color: var(--c-gold);
}

.page-news .version-content p {
  margin: 0;
  color: var(--c-sub);
  font-size: 15px;
  line-height: 1.65;
}

.page-news .version-more {
  margin: 10px 0 0 30px;
  font-size: 14px;
}

/* ---- Topic section ---- */
.page-news .topic-section {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 14, 28, 0.4) 100%);
}

.page-news .topic-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-news .topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--n-line-card);
  border-radius: var(--radius);
  background: var(--c-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}

.page-news .topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.45), transparent);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
  z-index: 1;
}

.page-news .topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(5, 14, 28, 0.5);
}

.page-news .topic-card:hover::before {
  opacity: 1;
}

.page-news .topic-card-wide::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold) 55%, transparent);
}

.page-news .topic-card-wide {
  grid-column: 1 / -1;
}

.page-news .topic-card-media {
  overflow: hidden;
  background: var(--c-bg-dark);
}

.page-news .topic-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-news .topic-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.page-news .topic-card-body .news-cat {
  align-self: flex-start;
  margin-bottom: 10px;
}

.page-news .topic-card-body h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
}

.page-news .topic-card-body > p {
  margin: 0;
  color: var(--c-sub);
  font-size: 15px;
  line-height: 1.65;
}

.page-news .topic-card-body > p.topic-data {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-rule);
}

.page-news .topic-data-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-gold);
  text-shadow: 0 0 18px rgba(201, 162, 39, 0.22);
  font-variant-numeric: tabular-nums;
}

.page-news .topic-data span:last-child {
  font-size: 13px;
  color: var(--c-sub);
}

/* ---- CTA ---- */
.page-news .news-cta {
  padding: 56px 0 72px;
}

.page-news .news-cta-inner {
  position: relative;
  overflow: hidden;
  padding: 36px 24px;
  border: 1px solid var(--n-line-card);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(57, 255, 20, 0.12), transparent 42%),
    radial-gradient(circle at 12% 100%, rgba(201, 162, 39, 0.1), transparent 48%),
    linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-card) 110%);
}

.page-news .news-cta-inner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border: 2px dashed rgba(57, 255, 20, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.page-news .news-cta-inner .section-label {
  margin-bottom: 10px;
}

.page-news .news-cta-inner h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

.page-news .news-cta-inner > p {
  margin: 0 0 22px;
  max-width: 460px;
  color: var(--c-sub);
  font-size: 15px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.page-news .news-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* ---- 640px+ ---- */
@media (min-width: 640px) {
  .page-news .news-feature-body {
    padding: 28px;
  }

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

  .page-news .topic-card-wide {
    grid-column: 1 / -1;
  }

  .page-news .news-cta-inner {
    padding: 40px 32px;
  }
}

/* ---- 900px+ ---- */
@media (min-width: 900px) {
  .page-news .news-page-head {
    padding: 48px 0 56px;
  }

  .page-news .news-page-head h1 {
    font-size: 56px;
  }

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

  .page-news .news-section {
    padding: 80px 0 24px;
  }

  .page-news .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
  }

  .page-news .section-sub {
    max-width: 420px;
    text-align: right;
    flex-shrink: 0;
  }

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

  .page-news .news-feature-body {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-news .news-feature-body h3 {
    font-size: 26px;
  }

  .page-news .news-feature-body > p {
    font-size: 16px;
  }

  .page-news .news-item {
    gap: 22px;
    padding: 26px 0;
  }

  .page-news .news-item-body h3 {
    font-size: 19px;
  }

  .page-news .news-item-body p {
    font-size: 16px;
  }

  .page-news .news-index {
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  .page-news .news-timeline::before {
    left: 24px;
  }

  .page-news .version-section {
    padding: 80px 0;
  }

  .page-news .version-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
  }

  .page-news .version-media {
    position: sticky;
    top: 32px;
  }

  .page-news .version-item {
    padding-left: 34px;
    padding-bottom: 32px;
  }

  .page-news .version-item::before {
    top: 26px;
  }

  .page-news .version-year {
    font-size: 20px;
  }

  .page-news .topic-section {
    padding: 80px 0 88px;
  }

  .page-news .topic-list {
    gap: 24px;
  }

  .page-news .topic-card-wide {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
  }

  .page-news .topic-card-body {
    padding: 28px;
  }

  .page-news .news-cta {
    padding: 80px 0 96px;
  }

  .page-news .news-cta-inner {
    padding: 52px;
  }

  .page-news .news-cta-inner h2 {
    font-size: 32px;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
