.page-news {
  --news-pad: clamp(1.25rem, 4vw, 3.5rem);
  --news-radius: 28px;
  --news-card-shadow: 0 16px 44px rgba(7, 22, 51, 0.14);
}

/* 专栏头图 ================ */
.page-news .news-hero {
  background:
    radial-gradient(ellipse 90% 70% at 85% 10%, rgba(0, 212, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(255, 106, 0, 0.12), transparent 55%),
    var(--ink);
  color: var(--white);
  padding: 2rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000 30%, transparent 100%);
  pointer-events: none;
}

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

.page-news .news-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.page-news .news-hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.page-news .news-hero-kicker .section-index {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-news .news-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 1.25rem;
  color: var(--white);
  letter-spacing: -0.02em;
  max-width: 12em;
}

.page-news .news-hero .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38em;
  margin-bottom: 2rem;
}

.page-news .news-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-news .stat-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-width: 112px;
}

.page-news .stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.2;
}

.page-news .stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.2rem;
}

.page-news .news-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.page-news .news-watermark {
  font-family: var(--font-mono);
  font-size: clamp(8rem, 20vw, 15rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 180, 0, 0.3);
  position: absolute;
  right: -0.1em;
  top: -0.2em;
  user-select: none;
}

.page-news .news-hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--news-radius);
  padding: 1.75rem 2rem;
  position: relative;
  z-index: 2;
  max-width: 320px;
  transform: rotate(2deg);
}

.page-news .news-hero-card p {
  margin: 0.9rem 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
}

.page-news .chip-gold {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* 栏目分类 ================ */
.page-news .news-categories {
  padding: var(--news-pad) 0;
}

.page-news .news-categories .section-head {
  margin-bottom: 1.75rem;
}

.page-news .category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 3rem;
}

.page-news .category-bar .tag {
  font-size: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news .category-bar .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 22, 51, 0.14);
}

.page-news .tag-cyan {
  background: rgba(0, 212, 255, 0.14);
  color: #007d9e;
  border: 1px solid rgba(0, 212, 255, 0.35);
}

.page-news .tag-cyan:hover {
  background: rgba(0, 212, 255, 0.24);
}

.page-news .category-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--news-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  align-items: stretch;
}

.page-news .category-guide-text {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.page-news .category-guide-text .section-index {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.page-news .category-guide-text h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.85rem;
  line-height: 1.3;
}

.page-news .category-guide-text p {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--graphite);
  margin-bottom: 1.5rem;
  max-width: 38em;
}

.page-news .category-guide-media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

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

/* 最新发布 ================ */
.page-news .news-latest {
  padding: var(--news-pad) 0;
  background-color: var(--ink-deep);
  position: relative;
}

.page-news .section-head-light h2 {
  color: var(--white);
}

.page-news .section-head-light .section-desc {
  color: rgba(255, 255, 255, 0.68);
}

.page-news .article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--news-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-news .article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  border-color: rgba(0, 212, 255, 0.3);
}

.page-news .article-media {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  background: var(--ink-soft);
}

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

.page-news .article-card:hover .article-img {
  transform: scale(1.03);
}

.page-news .article-ref {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(7, 22, 51, 0.78);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.page-news .article-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.page-news .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.page-news .article-body h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.7rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-news .article-body p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 1.3rem;
  max-width: 38em;
}

.page-news .article-card-flip .article-media {
  order: 0;
}

/* CSS 渐变封面 */
.page-news .article-media-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.page-news .article-media-cover::before,
.page-news .article-media-cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.page-news .article-cover--cyan {
  background: linear-gradient(135deg, #0a2a55 0%, #007d9e 55%, #00d4ff 130%);
}

.page-news .article-cover--cyan::before {
  width: 190px;
  height: 190px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  top: -70px;
  right: -50px;
}

.page-news .article-cover--cyan::after {
  width: 80px;
  height: 80px;
  background: rgba(255, 180, 0, 0.28);
  bottom: 22px;
  left: 28px;
}

.page-news .article-cover--orange {
  background: linear-gradient(135deg, #ff6a00 0%, #ffb400 120%);
}

.page-news .article-cover--orange::before {
  width: 220px;
  height: 220px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  bottom: -80px;
  left: -60px;
}

.page-news .article-cover--orange::after {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  top: 30px;
  right: 36px;
}

.page-news .cover-num {
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 10vw, 7rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.16);
  line-height: 1;
  letter-spacing: -0.04em;
  z-index: 2;
}

.page-news .cover-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: -8px;
  z-index: 2;
}

/* 热门文章 ================ */
.page-news .news-popular {
  padding: var(--news-pad) 0;
}

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

.page-news .popular-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--news-radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news .popular-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(7, 22, 51, 0.16);
}

.page-news .popular-card-media {
  position: relative;
  overflow: hidden;
  background: var(--mist);
}

.page-news .popular-card-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.page-news .popular-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.page-news .popular-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.6rem;
  line-height: 1.32;
}

.page-news .popular-card-body p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--graphite);
  opacity: 0.86;
  margin-bottom: 1rem;
}

.page-news .chip-hot {
  background: rgba(255, 106, 0, 0.1);
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 106, 0, 0.2);
}

.page-news .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
}

.page-news .link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.page-news .link-arrow:hover::after {
  transform: translateX(4px);
}

.page-news .link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 更新日志 ================ */
.page-news .news-changelog {
  padding: var(--news-pad) 0;
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(0, 212, 255, 0.08), transparent 60%),
    var(--ink-deep);
  position: relative;
}

.page-news .changelog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.page-news .changelog-timeline {
  position: relative;
  padding-left: 1.8rem;
}

.page-news .changelog-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--gold), var(--cyan), transparent);
  border-radius: 2px;
  opacity: 0.5;
}

.page-news .timeline-item {
  position: relative;
  margin-bottom: 2.25rem;
  transition: transform 0.25s ease;
}

.page-news .timeline-item:hover {
  transform: translateX(4px);
}

.page-news .timeline-dot {
  position: absolute;
  left: -1.8rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--ink-deep);
  box-shadow: 0 0 0 2px var(--orange);
  z-index: 2;
}

.page-news .timeline-dot.dot-gold {
  box-shadow: 0 0 0 2px var(--gold);
}

.page-news .timeline-dot.dot-cyan {
  box-shadow: 0 0 0 2px var(--cyan);
}

.page-news .timeline-dot.dot-orange {
  box-shadow: 0 0 0 2px var(--orange);
}

.page-news .timeline-dot.dot-ink {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.page-news .timeline-content {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-news .timeline-item:hover .timeline-content {
  border-color: rgba(0, 212, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.page-news .timeline-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.page-news .timeline-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-news .timeline-content h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.6rem;
}

.page-news .timeline-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .timeline-content li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 0.3rem;
}

.page-news .timeline-content li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 900;
}

.page-news .changelog-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-news .changelog-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-news .changelog-note {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
}

.page-news .changelog-note p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
}

/* 通用按钮适配 ================ */
.page-news .btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 1.15rem;
}

/* 窄屏微调 ================ */
@media (max-width: 480px) {
  .page-news .news-hero-stats {
    gap: 0.6rem;
  }

  .page-news .stat-item {
    padding: 0.6rem 0.9rem;
    min-width: 90px;
  }

  .page-news .stat-num {
    font-size: 1.25rem;
  }

  .page-news .news-hero-card {
    padding: 1.2rem 1.3rem;
    max-width: 260px;
  }

  .page-news .article-body {
    padding: 1.2rem 1.2rem 1.4rem;
  }

  .page-news .article-body h3 {
    font-size: 1.25rem;
  }
}

/* 平板与桌面 ================ */
@media (min-width: 768px) {
  .page-news .news-hero-grid {
    grid-template-columns: 1.3fr 0.9fr;
    gap: 3rem;
    align-items: center;
  }

  .page-news .news-hero h1 {
    font-size: 3rem;
  }

  .page-news .category-guide {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-news .category-guide-text {
    padding: 2.5rem 3rem;
  }

  .page-news .article-card {
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    align-items: stretch;
  }

  .page-news .article-card .article-media {
    min-height: 320px;
  }

  .page-news .article-card-flip .article-media {
    order: 2;
  }

  .page-news .article-card-flip .article-body {
    order: 1;
  }

  .page-news .article-body {
    padding: 2.2rem 2.5rem;
  }

  .page-news .article-media-cover {
    min-height: 320px;
  }

  .page-news .popular-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .page-news .changelog-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
  }

  .page-news .changelog-aside {
    position: sticky;
    top: 6rem;
  }
}

@media (min-width: 1100px) {
  .page-news .article-card {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-news .article-body p {
    font-size: 1rem;
  }

  .page-news .news-hero .lead {
    font-size: 1.12rem;
  }
}
