.page-news {
  --news-border: 2px solid var(--border-color);
  --news-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --news-shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(123, 45, 223, 0.3);
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
}

.page-news .news-hero {
  position: relative;
  padding: 32px 0 56px;
  border-bottom: 3px solid var(--border-color);
  background:
    radial-gradient(circle at 82% 18%, rgba(123, 45, 223, 0.16) 0%, transparent 42%),
    linear-gradient(180deg, #080B1A 0%, var(--bg-deep) 100%);
}

.page-news .news-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 28px;
}

.page-news .news-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  text-transform: uppercase;
  border-left: 3px solid var(--orange);
  padding-left: 14px;
}

.page-news .news-hero-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  display: inline-block;
  transform: rotate(45deg);
  flex: none;
}

.page-news .news-hero-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.04;
  margin: 18px 0 14px;
  letter-spacing: 0.02em;
}

.page-news .news-hero-en {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--purple);
  margin-top: 6px;
}

.page-news .news-hero-desc {
  color: var(--text-sub);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.9;
  max-width: 58ch;
  margin-bottom: 24px;
}

.page-news .news-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-news .news-hero-aside {
  display: none;
}

.page-news .news-hero-glyph {
  position: relative;
  max-width: 260px;
  margin-left: auto;
}

.page-news .news-hero-glyph-index {
  position: absolute;
  top: -14px;
  right: 18px;
  font-size: 3.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  z-index: 0;
  pointer-events: none;
}

.page-news .news-hero-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.page-news .news-featured,
.page-news .news-categories,
.page-news .news-articles,
.page-news .news-updates {
  padding: 64px 0;
  border-bottom: 1px solid var(--bg-translucent);
}

.page-news .section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 32px;
}

.page-news .section-index {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.page-news .section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.02em;
}

.page-news .section-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--purple);
  text-transform: uppercase;
  margin-left: auto;
}

.page-news .featured-card {
  background: var(--bg-card);
  border: var(--news-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-news .featured-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-strong);
}

.page-news .featured-card-media {
  border-bottom: 3px solid var(--border-color);
}

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

.page-news .featured-card-body {
  padding: 28px 24px 26px;
}

.page-news .featured-card-top {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.page-news .featured-card-code {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

.page-news .featured-card-title {
  font-family: var(--font-headline);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 14px;
}

.page-news .featured-card-desc {
  font-family: var(--font-body);
  color: var(--text-sub);
  font-weight: 300;
  line-height: 1.9;
  font-size: 0.98rem;
  max-width: 72ch;
  margin: 0 0 22px;
}

.page-news .featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-news .featured-card-hash {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-sub);
}

.page-news .featured-card-hash span {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  background: rgba(26, 35, 80, 0.4);
}

.page-news .news-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 16px 5px 14px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  line-height: 1.4;
}

.page-news .news-tag--orange {
  background: var(--orange);
  color: #080B1A;
}

.page-news .news-tag--purple {
  background: rgba(123, 45, 223, 0.2);
  color: #E4D5FF;
  border: 1px solid rgba(123, 45, 223, 0.6);
}

.page-news .category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-news .category-card {
  position: relative;
  background: linear-gradient(160deg, rgba(123, 45, 223, 0.22) 0%, var(--bg-card) 56%);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  padding: 26px 20px 22px;
  transition: transform 0.2s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-news .category-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(160deg, rgba(123, 45, 223, 0.38) 0%, var(--bg-card) 62%);
}

.page-news .category-icon {
  margin-bottom: 12px;
}

.page-news .category-icon img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: block;
  background: var(--bg-deep);
}

.page-news .category-title {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.02em;
}

.page-news .category-text {
  font-family: var(--font-body);
  color: var(--text-sub);
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.page-news .category-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  margin-top: 8px;
  align-self: flex-start;
}

.page-news .category-link:hover,
.page-news .category-link:focus-visible {
  border-bottom-color: var(--orange);
}

.page-news .article-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.page-news .article-item {
  background: var(--bg-card);
  border: var(--news-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.page-news .article-item:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-hover);
}

.page-news .article-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 3 / 2;
}

.page-news .article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.page-news .article-item:hover .article-thumb img {
  transform: scale(1.04);
}

.page-news .article-body-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.page-news .article-date {
  font-size: 0.74rem;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}

.page-news .article-title {
  font-family: var(--font-headline);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 8px;
}

.page-news .article-summary {
  font-family: var(--font-body);
  color: var(--text-sub);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news .article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .article-code {
  font-size: 0.72rem;
  color: rgba(160, 174, 192, 0.7);
  letter-spacing: 0.05em;
}

.page-news .article-more {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.page-news .article-more:hover,
.page-news .article-more:focus-visible {
  border-bottom-color: var(--orange);
}

.page-news .updates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.page-news .updates-visual {
  border: var(--news-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

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

.page-news .update-feed {
  position: relative;
  padding-left: 32px;
}

.page-news .update-feed::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple) 0%, var(--border-color) 100%);
}

.page-news .update-node {
  position: relative;
  margin-bottom: 28px;
}

.page-news .update-node:last-child {
  margin-bottom: 0;
}

.page-news .update-node::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--orange);
  transform: rotate(45deg);
  border-radius: 2px;
}

.page-news .update-node-version {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(123, 45, 223, 0.14);
  border: 1px solid rgba(123, 45, 223, 0.5);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: 6px;
}

.page-news .update-node-state {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-sub);
  margin-left: 8px;
  letter-spacing: 0.06em;
}

.page-news .update-node p {
  font-family: var(--font-body);
  color: var(--text-sub);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 6px 0 0;
}

@media (hover: hover) {
  .page-news .article-item:hover .article-summary {
    -webkit-line-clamp: 6;
  }
}

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

  .page-news .news-featured,
  .page-news .news-categories,
  .page-news .news-articles,
  .page-news .news-updates {
    padding: 84px 0;
  }

  .page-news .news-hero-aside {
    display: block;
  }

  .page-news .featured-card-body {
    padding: 38px 38px 34px;
  }

  .page-news .article-item {
    grid-template-columns: 180px minmax(0, 1fr);
    padding: 18px;
    gap: 22px;
  }

  .page-news .article-item--right .article-thumb {
    order: 2;
  }

  .page-news .article-item--right .article-body {
    order: 1;
  }

  .page-news .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-news .category-icon img {
    width: 76px;
    height: 76px;
  }
}

@media (min-width: 1024px) {
  .page-news .news-hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    margin-top: 40px;
  }

  .page-news .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-news .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
  }

  .page-news .article-item--right {
    margin-top: 72px;
  }

  .page-news .updates-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }

  .page-news .article-summary {
    -webkit-line-clamp: 3;
  }
}

.page-news {
  --shadow-hover: var(--news-shadow-hover);
}
