.page-news {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(11, 27, 44, 0.96) 0%, rgba(13, 13, 15, 0.98) 100%),
    linear-gradient(rgba(232, 240, 244, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 240, 244, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  color: var(--color-mist);
  overflow-x: clip;
}

.page-news .news-masthead {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.page-news .news-masthead::after {
  content: "";
  position: absolute;
  right: 0;
  top: 1.5rem;
  bottom: 1rem;
  width: 4px;
  background: repeating-linear-gradient(180deg, rgba(232, 240, 244, 0.25) 0 2px, transparent 2px 8px);
  border-left: 2px solid rgba(57, 255, 136, 0.5);
  opacity: 0.7;
  pointer-events: none;
}

.page-news .breadcrumb {
  margin-bottom: 1.75rem;
}

.page-news .news-kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-neon);
  margin-bottom: 0.75rem;
}

.page-news .news-masthead h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 12ch;
  margin-bottom: 1rem;
  color: var(--color-mist);
}

.page-news .news-lead {
  max-width: 56ch;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(232, 240, 244, 0.72);
}

.page-news .news-statstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.page-news .news-stat {
  border-left: 2px solid var(--color-neon);
  padding-left: 0.75rem;
}

.page-news .news-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-neon);
}

.page-news .news-stat__label {
  font-size: var(--text-xs);
  color: rgba(232, 240, 244, 0.6);
}

.page-news .news-categories,
.page-news .news-latest,
.page-news .news-hot {
  margin-top: 3rem;
}

.page-news .news-categories h2,
.page-news .news-latest h2,
.page-news .news-hot h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  color: var(--color-mist);
}

.page-news .section-subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: rgba(232, 240, 244, 0.6);
  margin-bottom: 1.5rem;
}

.page-news .tabs--news {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.page-news .tabs--news::-webkit-scrollbar {
  display: none;
}

.page-news .tab-btn {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(232, 240, 244, 0.22);
  background: rgba(11, 27, 44, 0.6);
  color: var(--color-mist);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.page-news .tab-btn.is-active,
.page-news .tab-btn[aria-selected="true"] {
  background: var(--grad-neon);
  border-color: transparent;
  color: #06231a;
  font-weight: 600;
}

.page-news .tab-panel {
  margin-top: 2.25rem;
}

.page-news .tab-panel[hidden],
.page-news .tab-panel.is-hidden {
  display: none;
}

.page-news .tab-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cyan);
  border-bottom: 1px solid rgba(0, 212, 255, 0.35);
  padding-bottom: 0.5rem;
  margin-bottom: 1.75rem;
}

.page-news .tab-panel__label .pulse-dot,
.page-news .timeline-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-neon);
  box-shadow: 0 0 0 4px rgba(57, 255, 136, 0.15), 0 0 16px rgba(57, 255, 136, 0.6);
  display: inline-block;
  animation: pageNewsPulse 2.4s ease-in-out infinite;
}

@keyframes pageNewsPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(57, 255, 136, 0.12), 0 0 16px rgba(57, 255, 136, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(57, 255, 136, 0.04), 0 0 28px rgba(57, 255, 136, 0.8);
  }
}

.page-news .news-timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 0.625rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: repeating-linear-gradient(180deg, rgba(232, 240, 244, 0.22) 0 5px, transparent 5px 12px);
  opacity: 0.6;
  pointer-events: none;
}

.page-news .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 1rem;
}

.page-news .timeline-item__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news .timeline-item__round {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.5);
  margin-bottom: 0.5rem;
}

.page-news .timeline-item__dot {
  flex: 0 0 auto;
}

.page-news .timeline-item__line {
  flex: 1 0 2rem;
  width: 1px;
  min-height: 2rem;
  background: rgba(232, 240, 244, 0.16);
}

.page-news .timeline-item__panel {
  background: linear-gradient(160deg, rgba(232, 240, 244, 0.075), rgba(11, 27, 44, 0.42) 55%, rgba(13, 13, 15, 0.35));
  border: var(--border-fine);
  border-radius: 1.35rem;
  padding: 1.125rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-news .timeline-item:hover .timeline-item__panel,
.page-news .timeline-item:focus-within .timeline-item__panel {
  transform: translateY(-3px);
  border-color: rgba(57, 255, 136, 0.4);
}

.page-news .timeline-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(232, 240, 244, 0.55);
}

.page-news .timeline-item__code {
  color: var(--color-cyan);
  letter-spacing: 0.08em;
}

.page-news .timeline-item__read::before {
  content: "▪";
  margin-right: 0.25rem;
  color: var(--color-neon);
}

.page-news .timeline-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-mist);
  margin: 0 0 0.75rem;
}

.page-news .timeline-item__excerpt {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  line-height: 1.7;
  color: rgba(232, 240, 244, 0.72);
  margin-bottom: 1rem;
}

.page-news .timeline-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-neon);
  text-decoration: none;
}

.page-news .timeline-item__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-news .timeline-item__figure {
  margin: 1rem 0 0;
  border: 1px solid rgba(232, 240, 244, 0.14);
  border-radius: 0.9rem;
  overflow: hidden;
  background: rgba(13, 13, 15, 0.4);
}

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

.page-news .timeline-item__figure--phone img {
  max-width: 320px;
  margin-inline: auto;
}

.page-news .tag-badge {
  background: rgba(57, 255, 136, 0.08);
  border: 1px solid rgba(57, 255, 136, 0.3);
  color: var(--color-neon);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.page-news .tag-badge--orange {
  background: rgba(255, 107, 53, 0.09);
  border-color: rgba(255, 107, 53, 0.35);
  color: var(--color-orange);
}

.page-news .tag-badge--trend {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--color-cyan);
}

.page-news .tag-badge--version {
  background: rgba(232, 240, 244, 0.06);
  border-color: rgba(232, 240, 244, 0.22);
  color: var(--color-mist);
}

.page-news .tag-badge--local {
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.28);
  color: #ffb08a;
}

.page-news .news-hot__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.page-news .news-hot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.page-news .hot-card {
  position: relative;
  border: var(--border-fine);
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(150deg, rgba(11, 27, 44, 0.7), rgba(13, 13, 15, 0.48));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-news .hot-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: var(--grad-neon);
  border-radius: 0 4px 4px 0;
  transform: scaleY(0.4);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.page-news .hot-card:hover,
.page-news .hot-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 136, 0.35);
}

.page-news .hot-card:hover::before,
.page-news .hot-card:focus-within::before {
  transform: scaleY(1);
}

.page-news .hot-card__rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(232, 240, 244, 0.5);
  margin-bottom: 1.25rem;
}

.page-news .hot-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-neon);
  opacity: 0.9;
}

.page-news .hot-card__views {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--color-cyan);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.page-news .hot-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-mist);
  margin-bottom: 0.75rem;
}

.page-news .hot-card__excerpt {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  line-height: 1.65;
  color: rgba(232, 240, 244, 0.68);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news .hot-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-news .hot-card__foot a {
  color: var(--color-neon);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.page-news .hot-card__foot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-news .news-archive {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 240, 244, 0.12);
}

.page-news .news-archive__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(232, 240, 244, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page-news .news-archive a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-cyan);
  text-decoration: none;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 999px;
  padding: 0.375rem 0.75rem;
  transition: background 0.2s;
}

.page-news .news-archive a:hover {
  background: rgba(0, 212, 255, 0.1);
}

.page-news .news-cta {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    animation: none !important;
    transition: none !important;
  }
  .page-news .hot-card:hover,
  .page-news .hot-card:focus-within {
    transform: none;
  }
  .page-news .timeline-item:hover .timeline-item__panel,
  .page-news .timeline-item:focus-within .timeline-item__panel {
    transform: none;
  }
}

@media (min-width: 720px) {
  .page-news .news-masthead {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }
  .page-news .news-statstrip {
    gap: 2.5rem;
  }
  .page-news .news-stat__num {
    font-size: 1.875rem;
  }
  .page-news .news-categories,
  .page-news .news-latest,
  .page-news .news-hot {
    margin-top: 3.5rem;
  }
  .page-news .timeline-item {
    grid-template-columns: 2rem 1fr;
    gap: 1.5rem;
  }
  .page-news .news-timeline::before {
    left: 1rem;
  }
  .page-news .timeline-item__panel {
    padding: 1.5rem;
  }
  .page-news .timeline-item__round {
    font-size: 0.6875rem;
  }
  .page-news .news-hot-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.375rem;
  }
  .page-news .news-cta {
    justify-content: flex-start;
  }
}

@media (min-width: 960px) {
  .page-news .news-categories {
    display: flex;
    align-items: baseline;
    gap: 2rem;
  }
  .page-news .news-categories h2 {
    flex: 0 0 auto;
    margin-bottom: 0;
    max-width: 14ch;
  }
  .page-news .news-categories .section-subtitle {
    margin-bottom: 0;
  }
  .page-news .tabs--news {
    margin-left: auto;
    padding-bottom: 0;
  }
  .page-news .news-latest h2 {
    margin-bottom: 1rem;
  }
  .page-news .news-hot__head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
  }
  .page-news .news-hot__head .section-subtitle {
    margin-bottom: 0.5rem;
    text-align: right;
  }
}
