.page-news {
  --news-divider: rgba(168, 196, 224, 0.14);
  --news-rail: rgba(57, 255, 20, 0.2);
  --news-heading: var(--font-heading);
  --news-mono: var(--font-mono);
  background: var(--c-bg-deep);
  color: var(--c-text);
  overflow-x: hidden;
}

/* ===== 面包屑 ===== */
.page-news .breadcrumb {
  padding-top: calc(var(--header-h) + 18px);
  padding-bottom: 18px;
  font-size: 14px;
  color: var(--c-text-dim);
  border-bottom: 1px solid var(--news-divider);
  background: var(--c-bg-deep);
}
.page-news .breadcrumb a {
  color: var(--c-text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-news .breadcrumb a:hover {
  color: var(--c-accent);
}
.page-news .breadcrumb-sep {
  margin: 0 8px;
  color: var(--c-accent);
}

/* ===== 首屏编辑部封面 ===== */
.page-news .news-masthead {
  position: relative;
  background:
    linear-gradient(135deg, transparent 62%, rgba(57, 255, 20, 0.12) 100%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 8px),
    var(--c-bg-main);
  padding: clamp(32px, 6vw, 72px) 0;
  border-bottom: 4px solid var(--c-accent);
  overflow: hidden;
}
.page-news .news-masthead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--c-accent), var(--c-accent) 12px, transparent 12px, transparent 24px);
  opacity: 0.4;
  pointer-events: none;
}
.page-news .news-masthead-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
}
.page-news .news-masthead-main {
  max-width: 840px;
}
.page-news .news-masthead .section-eyebrow {
  margin-bottom: 12px;
}
.page-news .news-masthead h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.page-news .news-masthead-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text-dim);
  margin: 0 0 24px;
  max-width: 40ch;
}
.page-news .news-masthead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.page-news .news-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: var(--c-text-dim);
}
.page-news .news-meta-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-accent);
}
.page-news .news-masthead-aside {
  display: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--c-text-dim);
  border-right: 2px solid var(--c-accent);
  padding-right: 10px;
  height: 140px;
  justify-self: end;
}

/* ===== 分类导航 ===== */
.page-news .news-categories {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--c-bg-surface);
  border-bottom: 1px solid var(--news-divider);
}
.page-news .news-cat-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.page-news .news-cat-tabs::-webkit-scrollbar {
  display: none;
}
.page-news .news-cat {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-dim);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.page-news .news-cat:hover {
  color: var(--c-accent);
  background: var(--c-accent-glow);
}
.page-news .news-cat.is-active {
  color: var(--c-text);
  background: var(--c-bg-main);
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 0 12px var(--c-accent-glow);
}

/* ===== 最新文章区 ===== */
.page-news .news-articles {
  padding: 56px 0 72px;
  background: var(--c-bg-deep);
}
.page-news .news-articles .section-head {
  margin-bottom: 36px;
}
.page-news .news-list {
  border-top: 1px solid var(--news-divider);
}

/* 头条文章 */
.page-news .news-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--c-bg-main);
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-top: 0;
  margin: 0 0 8px;
}
.page-news .news-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--c-accent);
  z-index: 2;
}
.page-news .news-feature-media {
  position: relative;
}
.page-news .news-feature-media .figure {
  margin: 0;
}
.page-news .news-feature-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.page-news .news-feature-media .badge-hot {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}
.page-news .news-feature-body {
  padding: 28px;
}
.page-news .news-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.page-news .news-feature-title {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.22;
  margin: 0 0 12px;
  color: var(--c-text);
}
.page-news .news-feature-excerpt {
  font-size: 15px;
  line-height: 1.72;
  color: var(--c-text-dim);
  margin: 0 0 18px;
}
.page-news .news-feature-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.page-news .news-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-accent);
}

/* 列表文章 */
.page-news .news-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 28px 0;
  border-bottom: 1px solid var(--news-divider);
}
.page-news .news-item:first-of-type {
  border-top: 1px solid var(--news-divider);
}
.page-news .news-item-index {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--c-accent);
  text-align: right;
  padding-top: 4px;
}
.page-news .news-item-title {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.32;
  margin: 0 0 8px;
  color: var(--c-text);
}
.page-news .news-item-excerpt {
  font-size: 15px;
  line-height: 1.68;
  color: var(--c-text-dim);
  margin: 0 0 12px;
  max-width: 70ch;
}
.page-news .news-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.page-news .news-readtime {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-dim);
}
.page-news .news-item-figure {
  margin: 16px 0 12px;
  max-width: 320px;
}
.page-news .news-item-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ===== 版本更新记录 ===== */
.page-news .news-versions {
  position: relative;
  background: var(--c-bg-main);
  padding: 64px 0;
  overflow: hidden;
}
.page-news .news-versions-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-news .news-versions-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  display: block;
}
.page-news .news-versions-inner {
  position: relative;
  z-index: 1;
}
.page-news .news-versions .section-head {
  margin-bottom: 32px;
}
.page-news .news-version-list {
  margin-top: 8px;
  border-top: 1px solid var(--news-divider);
}
.page-news .news-version-item {
  background: rgba(10, 30, 60, 0.88);
  border-bottom: 1px solid var(--news-divider);
}
.page-news .news-version-item summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  transition: background 0.2s ease;
}
.page-news .news-version-item summary::-webkit-details-marker {
  display: none;
}
.page-news .news-version-item summary:hover {
  background: var(--c-accent-glow);
}
.page-news .news-version-item[open] summary {
  border-left: 4px solid var(--c-accent);
  background: rgba(30, 58, 95, 0.6);
}
.page-news .news-version-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-accent);
  background: rgba(57, 255, 20, 0.08);
  padding: 4px 10px;
  white-space: nowrap;
  align-self: center;
}
.page-news .news-version-name {
  font-weight: 600;
  color: var(--c-text);
  align-self: center;
}
.page-news .news-version-status {
  grid-column: 2;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text-dim);
}
.page-news .news-version-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--c-accent);
  vertical-align: middle;
}
.page-news .news-version-detail {
  margin: 0;
  padding: 4px 20px 20px 32px;
  border-left: 4px solid rgba(57, 255, 20, 0.3);
}
.page-news .news-version-detail li {
  font-size: 14px;
  line-height: 1.72;
  color: var(--c-text-dim);
  padding: 6px 0;
}

/* ===== 延伸导读 ===== */
.page-news .news-flourish {
  padding: 56px 0 72px;
  background: var(--c-bg-deep);
}
.page-news .news-more-grid {
  display: grid;
  gap: 40px;
}
.page-news .news-more-note {
  padding: 28px;
  background: var(--c-bg-surface);
  border-left: 4px solid var(--c-action);
  box-shadow: var(--shadow-card);
}
.page-news .news-more-note .section-eyebrow {
  margin-bottom: 8px;
}
.page-news .news-more-title {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--c-text);
}
.page-news .news-more-text {
  color: var(--c-text-dim);
  font-size: 15px;
  line-height: 1.72;
  margin-bottom: 20px;
}
.page-news .news-more-note .btn + .btn {
  margin-left: 8px;
}
.page-news .news-more-stats {
  display: grid;
  gap: 16px;
  align-content: start;
}
.page-news .news-stat-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--news-divider);
}
.page-news .news-stat-label {
  font-size: 15px;
  color: var(--c-text-dim);
}
.page-news .news-stat-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
}
.page-news .news-stat-unit {
  font-size: 13px;
  color: var(--c-text-dim);
  white-space: nowrap;
}

/* ===== 桌面增强 ===== */
@media (min-width: 768px) {
  .page-news .news-masthead-inner {
    grid-template-columns: 1fr 160px;
  }
  .page-news .news-masthead-aside {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .page-news .news-feature {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }
  .page-news .news-feature .figure {
    height: 100%;
  }
  .page-news .news-feature-img {
    height: 100%;
    object-fit: cover;
  }
  .page-news .news-feature-body {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .page-news .news-feature-title {
    font-size: 32px;
  }
  .page-news .news-item {
    grid-template-columns: 64px 1fr;
    column-gap: 24px;
    padding: 36px 0;
  }
  .page-news .news-item-index {
    font-size: 24px;
  }
  .page-news .news-item-title {
    font-size: 24px;
  }
  .page-news .news-item-figure {
    max-width: 420px;
  }
  .page-news .news-version-item summary {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
  }
  .page-news .news-version-status {
    grid-column: auto;
    justify-self: end;
  }
  .page-news .news-version-detail {
    padding-left: 36px;
  }
  .page-news .news-more-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 56px;
  }
  .page-news .news-more-note {
    padding: 36px;
  }
}

@media (min-width: 1200px) {
  .page-news .news-articles {
    padding: 72px 0 96px;
  }
  .page-news .news-versions {
    padding: 88px 0;
  }
  .page-news .news-flourish {
    padding: 72px 0 96px;
  }
  .page-news .news-stat-num {
    font-size: 40px;
  }
}
