.page-news {
  --c-fill-teal: #16A085;
  --c-fill-red: #E74C3C;
  --c-fill-blue: #3498DB;
  --c-fill-yellow: #F1C40F;
  --c-fill-ink: #34495E;
  --shadow-float: 0 12px 28px rgba(52, 73, 94, 0.16);
}

.page-news__hero {
  position: relative;
  padding: 24px 0 44px;
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 62%);
  overflow: hidden;
}

.page-news__hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--c-orange) 0 15%, var(--c-blue) 15% 35%, var(--c-yellow) 35% 53%, var(--c-green) 53% 72%, var(--c-purple) 72% 88%, var(--c-teal) 88% 100%);
}

.page-news__hero::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -56px;
  width: 220px;
  height: 220px;
  background: repeating-linear-gradient(135deg, rgba(52, 73, 94, 0.08) 0 8px, transparent 8px 16px);
  border-radius: 40px;
  transform: rotate(12deg);
  pointer-events: none;
}

.page-news__hero-row {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.page-news__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-orange);
  background: rgba(255, 107, 53, 0.12);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

.page-news h1 {
  margin: 14px 0 14px;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--c-ink);
}

.page-news__hero-desc {
  margin: 0 0 22px;
  max-width: 58ch;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink);
}

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

.page-news__hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.page-news__hero-metric {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 12px 8px 10px;
  text-align: center;
  overflow: hidden;
}

.page-news__hero-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-orange);
}

.page-news__hero-metric--blue::before {
  background: var(--c-blue);
}

.page-news__hero-metric--green::before {
  background: var(--c-green);
}

.page-news__hero-metric-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--c-ink);
  margin-bottom: 4px;
}

.page-news__hero-metric-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-ink);
}

.page-news__hero-metric-unit {
  font-size: 11px;
  color: var(--c-blue);
}

.page-news__hero-img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.page-news__timeline-section,
.page-news__stats-section,
.page-news__version-section,
.page-news__closing-section {
  padding: 38px 0 46px;
}

.page-news__timeline-section {
  background: var(--c-bg-alt);
}

.page-news__stats-section {
  background: var(--c-bg);
}

.page-news__version-section {
  background: var(--c-bg);
}

.page-news__closing-section {
  background: var(--c-bg-alt);
}

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

.page-news .section-head__title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--c-ink);
}

.page-news__section-note {
  display: block;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-blue);
  letter-spacing: 0.04em;
}

.page-news__head-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink);
  background: var(--c-yellow);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

.page-news__head-tag--light {
  color: var(--c-ink);
  background: var(--c-yellow);
}

.page-news__section-head--light .section-head__title {
  color: var(--c-white);
}

.page-news__section-note--light {
  color: rgba(236, 240, 241, 0.78);
}

.page-news__timeline-section .section-head__more {
  color: var(--c-orange);
}

.page-news__timeline {
  position: relative;
}

.page-news__tl-item {
  position: relative;
  padding-left: 18px;
  margin-bottom: 22px;
}

.page-news__tl-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: -14px;
  width: 2px;
  background: var(--c-line);
}

.page-news__tl-item:last-child::before {
  display: none;
}

.page-news__tl-item::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  border: 2px solid var(--c-bg-alt);
}

.page-news__tl-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.page-news__tl-batch {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--c-white);
  background: var(--c-orange);
  padding: 6px 10px;
  border-radius: var(--radius-cut);
  white-space: nowrap;
}

.page-news__tl-item:nth-child(2) .page-news__tl-batch {
  background: var(--c-blue);
}

.page-news__tl-item:nth-child(3) .page-news__tl-batch {
  background: var(--c-purple);
}

.page-news__tl-item:nth-child(4) .page-news__tl-batch {
  background: var(--c-teal);
}

.page-news__tl-item:nth-child(5) .page-news__tl-batch {
  background: var(--c-green-deep);
}

.page-news__tl-item:nth-child(6) .page-news__tl-batch {
  background: var(--c-ink);
}

.page-news__tl-vol {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink);
  background: var(--c-yellow);
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}

.page-news__tl-content {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-orange);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 14px 12px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-news__tl-item:nth-child(2) .page-news__tl-content {
  border-top-color: var(--c-blue);
}

.page-news__tl-item:nth-child(3) .page-news__tl-content {
  border-top-color: var(--c-purple);
}

.page-news__tl-item:nth-child(4) .page-news__tl-content {
  border-top-color: var(--c-teal);
}

.page-news__tl-item:nth-child(5) .page-news__tl-content {
  border-top-color: var(--c-green-deep);
}

.page-news__tl-item:nth-child(6) .page-news__tl-content {
  border-top-color: var(--c-ink);
}

.page-news__tl-content:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

.page-news__tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.page-news__tl-content h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--c-ink);
}

.page-news__tl-content p {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink);
}

.page-news__tl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news__tl-list li {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-ink);
  background: var(--c-bg);
  border-left: 3px solid var(--c-teal);
  padding: 4px 8px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-news__stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-news__stat-card {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 14px 14px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-news__stat-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

.page-news__stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c-orange);
}

.page-news__stat-card:nth-child(2)::before {
  background: var(--c-purple);
}

.page-news__stat-card:nth-child(3)::before {
  background: var(--c-teal);
}

.page-news__stat-card:nth-child(4)::before {
  background: var(--c-red);
}

.page-news__stat-card:nth-child(5)::before {
  background: var(--c-blue);
}

.page-news__stat-card:nth-child(6)::before {
  background: var(--c-ink);
}

.page-news__stat-card:nth-child(7)::before {
  background: var(--c-green-deep);
}

.page-news__stat-card:nth-child(8)::before {
  background: var(--c-yellow);
}

.page-news__stat-card::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 34px;
  height: 34px;
  background: repeating-linear-gradient(135deg, rgba(52, 73, 94, 0.08) 0 5px, transparent 5px 10px);
  transform: rotate(12deg);
  pointer-events: none;
}

.page-news__stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.page-news__stat-char {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-white);
  background: var(--c-ink);
  border-radius: var(--radius-cut);
}

.page-news__stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--c-ink);
  background: var(--c-bg);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
}

.page-news__stat-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--c-ink);
}

.page-news__stat-metric {
  margin-bottom: 6px;
}

.page-news__stat-metric .metric-bar__value {
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.page-news__stats-img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 28px auto 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.page-news__optimize-section {
  background: var(--c-ink);
  padding: 38px 0 46px;
}

.page-news__optimize-section .section-head__title {
  color: var(--c-white);
}

.page-news__optimize-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-news__optimize-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-news__optimize-row:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.page-news__optimize-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-orange);
  background: rgba(255, 107, 53, 0.14);
  border-radius: var(--radius-sm);
}

.page-news__optimize-row:nth-child(3n) .page-news__optimize-num {
  color: var(--c-green);
  background: rgba(46, 204, 113, 0.14);
}

.page-news__optimize-row:nth-child(3n + 1) .page-news__optimize-num {
  color: var(--c-teal);
  background: rgba(26, 188, 156, 0.14);
}

.page-news__optimize-body h3 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-white);
}

.page-news__optimize-body p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(236, 240, 241, 0.72);
}

.page-news__optimize-scope {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-white);
  background: var(--c-blue);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

.page-news__optimize-row:nth-child(3n) .page-news__optimize-scope {
  background: var(--c-green-deep);
}

.page-news__optimize-row:nth-child(3n + 1) .page-news__optimize-scope {
  background: var(--c-purple);
}

.page-news__version-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.page-news__version-table-wrap {
  overflow-x: auto;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.page-news__version-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

.page-news__version-table th {
  background: var(--c-ink);
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  white-space: nowrap;
}

.page-news__version-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-family: var(--font-body);
  line-height: 1.55;
  vertical-align: top;
}

.page-news__version-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-news__version-table tbody tr:nth-child(even) td {
  background: rgba(242, 240, 235, 0.55);
}

.page-news__version-table tbody tr:hover td {
  background: var(--c-bg-alt);
}

.page-news__version-side {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px;
}

.page-news__version-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 14px;
  border-radius: var(--radius-md);
}

.page-news__version-note h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-ink);
}

.page-news__version-note p {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink);
}

.page-news__closing-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-news__closing-img img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.page-news__closing-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-purple);
  background: rgba(155, 89, 182, 0.1);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
}

.page-news__closing-copy h2 {
  margin: 12px 0 10px;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--c-ink);
}

.page-news__closing-copy p {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink);
}

.page-news__closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news__closing-links .btn--ghost {
  border-color: var(--c-ink);
  color: var(--c-ink);
}

@media (min-width: 640px) {
  .page-news__stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .page-news h1 {
    font-size: 36px;
  }

  .page-news__tl-side {
    position: absolute;
    left: 0;
    top: 0;
    width: 84px;
    display: block;
    text-align: center;
    margin-bottom: 0;
  }

  .page-news__tl-item {
    padding-left: 104px;
  }

  .page-news__tl-item::before {
    left: 41px;
  }

  .page-news__tl-item::after {
    left: 37px;
  }

  .page-news__tl-batch {
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
  }

  .page-news__tl-vol {
    margin-top: 8px;
  }

  .page-news__tl-content {
    padding: 16px 18px 14px;
  }

  .page-news__optimize-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
  }

  .page-news__optimize-scope {
    align-self: center;
  }

  .page-news__version-grid {
    grid-template-columns: 1fr 280px;
  }

  .page-news__version-side {
    position: sticky;
    top: 20px;
  }

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

@media (min-width: 900px) {
  .page-news__hero-row {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 40px;
    align-items: center;
  }

  .page-news__hero-side {
    grid-column: 2;
  }

  .page-news__hero-main {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (min-width: 1024px) {
  .page-news__stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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