.page-news {
  --news-surface: #14141A;
  --news-surface-2: #1D1D27;
  --news-red: #E01414;
  --news-hot: #FF3B30;
  --news-gold: #F5B83D;
  --news-dim: #A0A0B8;
  background: var(--c-bg, #0B0B0F);
  color: var(--c-text, #F5F5F5);
  font-family: var(--f-body, "Noto Sans SC", sans-serif);
  line-height: 1.7;
}

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

.page-news .news-masthead {
  position: relative;
  padding: 36px 16px 32px;
  border-bottom: 1px solid rgba(224, 20, 20, 0.5);
  background:
    linear-gradient(135deg, rgba(224, 20, 20, 0.14) 0%, rgba(11, 11, 15, 0) 38%),
    linear-gradient(to right, #14141A, #0B0B0F 70%);
  overflow: hidden;
}

.page-news .news-masthead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--news-red), var(--news-gold));
}

.page-news .news-speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    -35deg,
    rgba(224, 20, 20, 0.1) 0,
    rgba(224, 20, 20, 0.1) 1px,
    transparent 1px,
    transparent 16px
  );
  clip-path: polygon(0 0, 42% 0, 64% 100%, 0 100%);
}

.page-news .news-masthead-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.page-news .news-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--news-dim);
}

.page-news .news-breadcrumbs a {
  color: var(--news-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.page-news .news-breadcrumbs a:hover {
  color: var(--news-gold);
}

.page-news .news-breadcrumbs [aria-current="page"] {
  color: var(--c-text);
}

.page-news .news-masthead-en {
  margin: 28px 0 0;
  font-family: var(--f-data, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--news-red);
}

.page-news .news-masthead h1 {
  margin: 10px 0 0;
  font-family: var(--f-head, "Noto Sans SC", sans-serif);
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 760px;
}

.page-news .news-masthead-lead {
  max-width: 620px;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--news-dim);
}

.page-news .news-masthead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.page-news .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(224, 20, 20, 0.4);
  border-radius: 2px;
  background: rgba(224, 20, 20, 0.06);
  font-family: var(--f-ui, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--news-dim);
  white-space: nowrap;
}

.page-news .tag-red {
  border-color: var(--news-red);
  background: var(--news-red);
  color: #ffffff;
}

.page-news .tag-gold {
  border-color: var(--news-gold);
  background: rgba(245, 184, 61, 0.1);
  color: var(--news-gold);
}

.page-news .news-pinned {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 16px;
}

.page-news .news-pinned-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px 24px 28px;
  background: var(--news-surface);
  border: 1px solid rgba(224, 20, 20, 0.25);
  border-left: 4px solid var(--news-red);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-news .news-pinned-inner::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 12px;
  width: 72px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--news-gold));
}

.page-news .news-pinned-title {
  margin: 0;
  font-family: var(--f-head, "Noto Sans SC", sans-serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--c-text);
}

.page-news .news-pinned-text {
  max-width: 720px;
  margin: 0;
  color: var(--news-dim);
  font-size: 14px;
  line-height: 1.7;
}

.page-news .news-pinned .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.page-news .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 18px;
  font-family: var(--f-ui, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.page-news .btn-primary {
  color: #fff;
  background: var(--news-red);
  border: none;
  clip-path: var(--clip-angle, polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)));
}

.page-news .btn-primary:hover {
  background: var(--news-hot);
  transform: translateY(-1px);
}

.page-news .btn-outline {
  color: var(--c-text);
  background: transparent;
  border: 1px solid rgba(224, 20, 20, 0.55);
}

.page-news .btn-outline:hover {
  border-color: var(--news-red);
  background: rgba(224, 20, 20, 0.1);
  color: #fff;
}

.page-news .news-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-news .news-dir-sticky {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 16px;
  background: var(--news-surface);
  border: 1px solid rgba(224, 20, 20, 0.22);
  border-left: 3px solid var(--news-red);
}

.page-news .news-dir-label {
  margin: 0;
  font-family: var(--f-head, "Noto Sans SC", sans-serif);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--c-text);
}

.page-news .news-dir-label::before {
  content: "//";
  margin-right: 8px;
  color: var(--news-red);
}

.page-news .news-dir-nav {
  display: flex;
  gap: 4px;
  flex-direction: column;
}

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

.page-news .news-dir-nav .chapter-index-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--news-dim);
  text-decoration: none;
  border: 1px solid transparent;
  font-family: var(--f-ui, "Inter", sans-serif);
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.page-news .news-dir-nav .chapter-index-link:hover {
  color: #fff;
  background: rgba(224, 20, 20, 0.08);
  border-color: rgba(224, 20, 20, 0.3);
}

.page-news .news-dir-nav .chapter-index-link[data-active] {
  color: #fff;
  background: rgba(224, 20, 20, 0.15);
  border-color: var(--news-red);
}

.page-news .chapter-index-num {
  font-family: var(--f-data, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 800;
  color: var(--news-red);
}

.page-news .news-dir-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-news .news-dir-cats-label {
  width: 100%;
  font-family: var(--f-ui, "Inter", sans-serif);
  font-size: 12px;
  color: var(--news-dim);
}

.page-news .news-dir-foot {
  border-top: 1px solid rgba(224, 20, 20, 0.25);
  padding-top: 14px;
}

.page-news .news-dir-foot span {
  display: block;
  font-size: 12px;
  color: var(--news-dim);
}

.page-news .news-dir-foot strong {
  display: block;
  margin-top: 4px;
  font-family: var(--f-data, "Inter", sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--news-gold);
}

.page-news .news-content {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

.page-news .chapter {
  scroll-margin-top: calc(var(--header-h, 68px) + 20px);
}

.page-news .chapter-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0 20px;
  margin-bottom: 20px;
  border-top: 2px solid var(--news-red);
}

.page-news .chapter-label {
  margin: 0;
  font-family: var(--f-data, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--news-red);
}

.page-news .chapter-title {
  margin: 0;
  font-family: var(--f-head, "Noto Sans SC", sans-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
}

.page-news .chapter-note {
  margin: 6px 0 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--news-dim);
}

.page-news .news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(224, 20, 20, 0.4);
}

.page-news .news-item {
  border-bottom: 1px solid rgba(224, 20, 20, 0.35);
  background: transparent;
  transition: background 0.2s;
}

.page-news .news-item[open] {
  background: rgba(224, 20, 20, 0.04);
}

.page-news .news-item-head {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.page-news .news-item-head::-webkit-details-marker {
  display: none;
}

.page-news .news-item-head:hover {
  background: rgba(224, 20, 20, 0.08);
}

.page-news .news-item-head:focus-visible {
  outline: 2px solid var(--news-gold);
  outline-offset: -2px;
}

.page-news .news-item-index {
  font-family: var(--f-data, "Inter", sans-serif);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--news-red);
  min-width: 32px;
}

.page-news .news-item-cat {
  flex-shrink: 0;
}

.page-news .news-item-title {
  flex: 1;
  min-width: 0;
  font-family: var(--f-head, "Noto Sans SC", sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-text);
}

.page-news .news-item-arrow {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transform: rotate(0deg);
  transition: transform 0.3s;
}

.page-news .news-item-arrow::before,
.page-news .news-item-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--news-dim);
  transition: background 0.2s;
}

.page-news .news-item-arrow::before {
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.page-news .news-item-arrow::after {
  width: 2px;
  height: 10px;
  transform: translate(-50%, -50%);
}

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

.page-news .news-item[open] .news-item-arrow::before,
.page-news .news-item[open] .news-item-arrow::after {
  background: var(--news-red);
}

.page-news .news-item-body {
  display: grid;
  gap: 12px;
  padding: 0 8px 24px 52px;
}

.page-news .news-item-body p {
  margin: 0;
  max-width: 660px;
  color: var(--news-dim);
  font-size: 14px;
  line-height: 1.75;
}

.page-news .news-item-link {
  color: var(--news-red);
  font-family: var(--f-ui, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  width: max-content;
}

.page-news .news-item-link:hover {
  text-decoration: underline;
}

.page-news .news-item-link-inline {
  color: var(--news-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-news .news-item-link-inline:hover {
  color: var(--news-gold);
}

.page-news .topic-card {
  display: grid;
  gap: 0;
  background: var(--news-surface);
  border: 1px solid rgba(224, 20, 20, 0.25);
  transition: transform 0.2s, border-color 0.2s;
}

.page-news .topic-card:hover {
  transform: translateY(-1px);
  border-color: var(--news-red);
}

.page-news .topic-media {
  overflow: hidden;
}

.page-news .topic-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s;
}

.page-news .topic-card:hover .topic-media img {
  transform: scale(1.02);
}

.page-news .topic-body {
  display: grid;
  gap: 14px;
  padding: 24px 20px;
}

.page-news .topic-title {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
}

.page-news .topic-excerpt {
  margin: 0;
  color: var(--news-dim);
  font-size: 14px;
  line-height: 1.75;
}

.page-news .topic-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-news .topic-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-news .topic-stat-num {
  font-family: var(--f-data, "Inter", sans-serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--news-gold);
}

.page-news .topic-stat-label {
  font-size: 12px;
  color: var(--news-dim);
}

.page-news .topic-body .btn {
  justify-self: start;
  margin-top: 8px;
}

.page-news .version-banner {
  margin-bottom: 24px;
  overflow: hidden;
}

.page-news .version-banner img {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
}

.page-news .version-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(224, 20, 20, 0.3);
  background: var(--news-surface);
}

.page-news .version-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-family: var(--f-body, "Noto Sans SC", sans-serif);
  font-size: 14px;
}

.page-news .version-table th {
  text-align: left;
  padding: 14px 16px;
  font-family: var(--f-ui, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--news-dim);
  background: var(--news-surface-2);
  border-bottom: 2px solid var(--news-red);
  border-right: 1px solid rgba(224, 20, 20, 0.15);
}

.page-news .version-table th:last-child {
  border-right: none;
}

.page-news .version-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(224, 20, 20, 0.15);
  border-right: 1px solid rgba(224, 20, 20, 0.15);
  color: var(--c-text);
  line-height: 1.65;
  vertical-align: top;
}

.page-news .version-table td:last-child {
  border-right: none;
}

.page-news .version-table tbody tr {
  transition: background 0.2s;
}

.page-news .version-table tbody tr:hover {
  background: rgba(224, 20, 20, 0.06);
}

.page-news .version-table tbody tr:last-child td {
  border-bottom: none;
}

.page-news .version-year {
  font-family: var(--f-data, "Inter", sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--news-red);
  white-space: nowrap;
}

.page-news .versions-more {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--news-dim);
}

.page-news .versions-more a {
  color: var(--news-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 20, 20, 0.4);
}

.page-news .versions-more a:hover {
  color: var(--news-gold);
  border-bottom-color: var(--news-gold);
}

.page-news .archive-lead {
  display: grid;
  gap: 0;
  margin-bottom: 28px;
  background: var(--news-surface);
  border: 1px solid rgba(224, 20, 20, 0.25);
}

.page-news .archive-lead-media {
  overflow: hidden;
}

.page-news .archive-lead-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-news .archive-lead-body {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 20px;
}

.page-news .archive-lead-body h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

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

.page-news .archive-lead-body .btn {
  justify-self: start;
  margin-top: 4px;
}

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

.page-news .archive-card {
  display: grid;
  background: var(--news-surface-2);
  border: 1px solid rgba(224, 20, 20, 0.25);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.page-news .archive-card:hover {
  transform: translateY(-1px);
  border-color: var(--news-red);
}

.page-news .archive-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.page-news .archive-card-plain {
  align-content: center;
}

.page-news .archive-card-body {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
}

.page-news .archive-card-body h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.page-news .archive-card-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--news-dim);
}

.page-news .news-cta {
  position: relative;
  margin-top: 4px;
  padding: 32px 20px 36px;
  background:
    linear-gradient(100deg, rgba(224, 20, 20, 0.24) 0%, rgba(11, 11, 15, 0) 62%),
    var(--news-surface);
  border-top: 2px solid var(--news-red);
  border-bottom: 2px solid var(--news-red);
}

.page-news .news-cta::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 14px;
  width: 96px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--news-gold));
}

.page-news .news-cta h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
}

.page-news .news-cta p {
  max-width: 600px;
  margin: 0 0 20px;
  color: var(--news-dim);
  font-size: 14px;
  line-height: 1.7;
}

.page-news .news-cta-highlight {
  color: var(--news-gold);
}

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

@media (min-width: 768px) {
  .page-news .news-masthead {
    padding: 48px 32px 44px;
  }

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

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

  .page-news .news-pinned-title {
    font-size: 28px;
  }

  .page-news .news-layout {
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 40px 24px 72px;
  }

  .page-news .news-dir-sticky {
    position: sticky;
    top: calc(var(--header-h, 68px) + 24px);
  }

  .page-news .news-content {
    gap: 72px;
  }

  .page-news .chapter-title {
    font-size: 32px;
  }

  .page-news .version-table td {
    padding: 18px 20px;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .page-news .news-dir-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .page-news .news-dir-nav .chapter-index-link {
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .page-news .topic-body {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 0 36px;
    padding: 28px 24px 24px;
  }

  .page-news .topic-body > * {
    grid-column: 1;
  }

  .page-news .topic-body .tag {
    grid-column: 1;
  }

  .page-news .topic-stats {
    grid-column: 2;
    grid-row: 1 / span 4;
    flex-direction: column;
    align-self: start;
    gap: 18px;
    padding-top: 0;
    padding-left: 24px;
    border-top: none;
    border-left: 1px solid rgba(224, 20, 20, 0.25);
  }

  .page-news .archive-lead {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .page-news .archive-lead-media img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

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

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

@media (max-width: 767px) {
  .page-news .news-dir-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .page-news .news-dir-nav .chapter-index-link {
    white-space: nowrap;
  }

  .page-news .news-item-body {
    padding-left: 44px;
  }
}
