/* ========== 更新动态页 · 页面专属样式 ========== */
.page-news {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 5%, rgba(212, 175, 55, .08), transparent 30%),
    linear-gradient(180deg, rgba(26, 58, 107, .04), transparent 320px),
    var(--c-light);
  color: var(--c-text);
  overflow-x: clip;
  font-family: var(--f-sans);
}

.page-news .breadcrumb,
.page-news .news-hero,
.page-news .section-group,
.page-news .news-related {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin-inline: auto;
}

/* ---------- 面包屑 ---------- */
.page-news .breadcrumb {
  padding-top: 10px;
  margin-bottom: 4px;
}

/* ---------- 首屏声明 ---------- */
.page-news .news-hero {
  position: relative;
  padding: 38px 0 30px;
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.page-news .news-hero::after {
  content: "UPDATES";
  position: absolute;
  right: 0;
  top: 20px;
  font-family: var(--f-mono);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: 1;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 31, 58, .07);
  pointer-events: none;
  z-index: 0;
}
.page-news .news-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: .76rem;
  font-weight: 500;
}
.page-news .hero-version {
  display: inline-flex;
  align-items: center;
  background: var(--c-dark);
  color: var(--c-gold);
  padding: 5px 12px;
  border-radius: 4px;
}
.page-news .hero-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  color: var(--c-text2);
  padding: 5px 12px;
  border-radius: 4px;
}
.page-news .hero-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}
.page-news .news-hero h1 {
  position: relative;
  z-index: 1;
  margin: 16px 0 14px;
  font-size: clamp(1.7rem, 4.6vw, 2.65rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.01em;
  max-width: 820px;
}
.page-news .news-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 16px;
  background: linear-gradient(100deg, var(--c-gold) 0 55%, var(--c-red) 56% 62%, var(--c-gold) 63% 100%);
  transform: skewX(-22deg);
  border-radius: 2px;
}
.page-news .news-hero-desc {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--c-text2);
}

/* ---------- 数据概览 ---------- */
.page-news .news-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.page-news .stat-item {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-gold);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 0 rgba(11, 31, 58, .03);
  overflow: hidden;
}
.page-news .stat-item::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 24px;
  height: 2px;
  background: rgba(212, 175, 55, .4);
  transform: rotate(-18deg);
}
.page-news .stat-num {
  display: block;
  font-family: var(--f-mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-dark);
}
.page-news .stat-label {
  display: block;
  margin-top: 4px;
  font-size: .74rem;
  color: var(--c-text2);
}

/* ---------- 章节节奏 ---------- */
.page-news .section-group {
  padding: 48px 0;
  border-bottom: 1px solid var(--c-border);
}
.page-news .section-heading {
  margin-bottom: 22px;
}
.page-news .section-title {
  font-size: 1.45rem;
}
.page-news .news-latest {
  scroll-margin-top: 18px;
}

/* ---------- 筛选栏 ---------- */
.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.page-news .filter-btn {
  appearance: none;
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-text2);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.page-news .filter-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-text);
}
.page-news .filter-btn.is-active {
  background: var(--c-dark);
  border-color: var(--c-dark);
  color: var(--c-white);
  box-shadow: 0 4px 10px rgba(11, 31, 58, .16);
}

/* ---------- 最新动态布局 ---------- */
.page-news .latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.page-news .news-timeline {
  position: relative;
  padding-left: 72px;
}
.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 6px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-gold) 0%, rgba(212, 175, 55, .4) 40%, rgba(11, 31, 58, .08) 100%);
  border-radius: 2px;
}
.page-news .news-item {
  position: relative;
  margin-bottom: 20px;
  animation: newsItemIn .5s var(--ease) both;
}
.page-news .news-item:nth-child(2) { animation-delay: .05s; }
.page-news .news-item:nth-child(3) { animation-delay: .1s; }
.page-news .news-item:nth-child(4) { animation-delay: .15s; }
.page-news .news-item:nth-child(5) { animation-delay: .2s; }

@keyframes newsItemIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-news .news-item-marker {
  position: absolute;
  left: -69px;
  top: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--c-dark);
  background: var(--c-white);
  border: 2px solid var(--c-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .14);
  z-index: 1;
}
.page-news .news-item-card {
  position: relative;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.page-news .news-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11, 31, 58, .1);
}
.page-news .news-item-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background-image: repeating-linear-gradient(-42deg, transparent 0 7px, rgba(11, 31, 58, .016) 7px 8px);
  pointer-events: none;
}
.page-news .news-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.page-news .news-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
}
.page-news .tag-revamp {
  color: var(--c-deep);
  background: rgba(26, 58, 107, .07);
  border-color: rgba(26, 58, 107, .22);
}
.page-news .tag-data {
  color: #8a6a15;
  background: rgba(212, 175, 55, .1);
  border-color: rgba(212, 175, 55, .4);
}
.page-news .tag-feature {
  color: var(--c-text);
  background: var(--c-white);
  border-color: var(--c-dark);
}
.page-news .tag-hot {
  color: #fff;
  background: var(--c-red);
  border-color: var(--c-red);
}
.page-news .news-item-title {
  margin: 10px 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
}
.page-news .news-item-summary {
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--c-text2);
}

/* ---------- 展开详情 ---------- */
.page-news .news-detail {
  margin-top: 12px;
  border-top: 1px dashed var(--c-border);
  padding-top: 10px;
}
.page-news .news-detail summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--c-deep);
  user-select: none;
}
.page-news .news-detail summary::-webkit-details-marker {
  display: none;
}
.page-news .news-detail summary::before {
  content: "▶";
  font-size: .58rem;
  color: var(--c-gold);
  transition: transform var(--t-fast) var(--ease);
}
.page-news .news-detail[open] summary::before {
  transform: rotate(90deg);
}
.page-news .news-detail-body {
  margin-top: 10px;
  font-size: .85rem;
  line-height: 1.65;
  color: var(--c-text2);
}
.page-news .news-detail-body ul {
  margin: 0;
  padding-left: 18px;
}
.page-news .news-detail-body li + li {
  margin-top: 6px;
}
.page-news .news-detail-body img {
  margin-top: 12px;
}

/* ---------- 侧栏数据快报 ---------- */
.page-news .news-latest-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}
.page-news .news-latest-aside img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
.page-news .data-brief {
  position: relative;
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
}
.page-news .data-brief::before {
  content: "";
  position: absolute;
  right: -20px;
  top: -28px;
  width: 88px;
  height: 88px;
  border: 2px solid rgba(212, 175, 55, .35);
  border-radius: 50%;
}
.page-news .data-brief::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -16px;
  width: 64px;
  height: 64px;
  background: rgba(212, 175, 55, .14);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
}
.page-news .data-brief h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-gold);
}
.page-news .data-brief ul {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-news .data-brief li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
  font-size: .82rem;
}
.page-news .data-brief li:last-child {
  border-bottom: 0;
}
.page-news .data-brief strong {
  color: var(--c-gold);
  font-family: var(--f-mono);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 02 改版专题 ---------- */
.page-news .news-revamp {
  position: relative;
}
.page-news .news-revamp::after {
  content: "REVAMP";
  position: absolute;
  right: 0;
  bottom: -8px;
  font-family: var(--f-mono);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 31, 58, .05);
  pointer-events: none;
  z-index: 0;
}
.page-news .news-revamp > * {
  position: relative;
  z-index: 1;
}
.page-news .revamp-hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  margin: 0 0 22px;
}
.page-news .revamp-note {
  background: linear-gradient(135deg, rgba(26, 58, 107, .06), rgba(212, 175, 55, .08));
  border: 1px solid rgba(26, 58, 107, .12);
  border-left: 4px solid var(--c-gold);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: .86rem;
  line-height: 1.65;
  color: var(--c-text);
  margin-bottom: 22px;
}
.page-news .revamp-note p {
  margin: 0;
}
.page-news .revamp-note strong {
  color: var(--c-deep);
}
.page-news .revamp-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.page-news .revamp-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 14px;
  align-items: start;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: calc(var(--radius) * 1.2);
  padding: 16px;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.page-news .revamp-step:hover {
  transform: translateX(4px);
  border-color: rgba(212, 175, 55, .5);
}
.page-news .revamp-step-num {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--f-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-gold);
  background: rgba(212, 175, 55, .1);
  border-radius: 10px;
}
.page-news .revamp-step h3 {
  margin: 2px 0 4px;
  font-size: .96rem;
  font-weight: 700;
}
.page-news .revamp-step p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.6;
  color: var(--c-text2);
}

/* ---------- 03 历史归档 ---------- */
.page-news .news-archive {
  position: relative;
}
.page-news .archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.page-news .archive-versions {
  display: grid;
  gap: 12px;
}
.page-news .version-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 14px;
  align-items: start;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-deep);
  border-radius: 8px;
  padding: 14px 16px;
}
.page-news .version-tag {
  grid-row: span 2;
  align-self: start;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  color: var(--c-deep);
  background: rgba(26, 58, 107, .08);
  border-radius: 6px;
  padding: 6px 4px;
}
.page-news .version-card h3 {
  margin: 2px 0 4px;
  font-size: .94rem;
  font-weight: 700;
}
.page-news .version-card p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--c-text2);
}
.page-news .version-current {
  border-left-color: var(--c-red);
}
.page-news .version-current .version-tag {
  background: var(--c-red);
  color: #fff;
}
.page-news .archive-aside {
  display: grid;
  gap: 12px;
  align-content: start;
}
.page-news .archive-aside img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
.page-news .archive-aside p {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--c-gold);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--c-text2);
}

/* ---------- 页内相关导航 ---------- */
.page-news .news-related {
  margin-top: 52px;
  padding: 26px 24px;
  background: var(--c-dark);
  border-radius: calc(var(--radius) * 1.4);
  color: var(--c-white);
}
.page-news .news-related h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-gold);
}
.page-news .news-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-news .news-related .btn-outline {
  border-color: rgba(212, 175, 55, .55);
  color: var(--c-white);
  background: transparent;
}
.page-news .news-related .btn-outline:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

/* ---------- 返回顶部 ---------- */
.page-news .news-back-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 30;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--c-dark);
  color: var(--c-white);
  font-family: var(--f-mono);
  font-size: .72rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 31, 58, .2);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.page-news .news-back-top:hover {
  background: var(--c-deep);
  transform: translateY(-2px);
}

/* ---------- 图片通用 ---------- */
.page-news img {
  max-width: 100%;
  height: auto;
}

/* ---------- 极小屏适配 ---------- */
@media (max-width: 420px) {
  .page-news .news-timeline {
    padding-left: 52px;
  }
  .page-news .news-timeline::before {
    left: 20px;
  }
  .page-news .news-item-marker {
    left: -50px;
    width: 38px;
    height: 38px;
    font-size: .66rem;
  }
  .page-news .news-item-card {
    padding: 14px;
  }
  .page-news .version-card {
    grid-template-columns: 48px 1fr;
    column-gap: 10px;
    padding: 12px;
  }
  .page-news .revamp-step {
    grid-template-columns: 44px 1fr;
    column-gap: 10px;
    padding: 14px;
  }
  .page-news .revamp-step-num {
    width: 40px;
    height: 40px;
  }
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 720px) {
  .page-news .news-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-news .revamp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 桌面布局 ---------- */
@media (min-width: 960px) {
  .page-news {
    margin-left: var(--sidebar-w);
  }
  .page-news .section-group {
    padding: 64px 0;
  }
  .page-news .latest-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }
  .page-news .news-latest-aside {
    position: sticky;
    top: 24px;
  }
  .page-news .revamp-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-news .archive-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }
}
