/* ================= page-news ================= */
.page-news {
  --news-line: rgba(232, 230, 242, 0.14);
  --news-gold-glow: rgba(245, 196, 81, 0.55);
  color: var(--yz-text);
}

.page-news .yz-breadcrumb {
  margin-bottom: 24px;
  font-size: 13px;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  inset: -140px -30% auto -30%;
  height: 460px;
  background:
    radial-gradient(52% 60% at 22% 34%, rgba(124, 58, 237, 0.34), transparent 72%),
    radial-gradient(46% 54% at 82% 6%, rgba(34, 211, 238, 0.22), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.page-news .news-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.page-news .news-hero__copy h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-news .news-hero__copy .yz-lede {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--yz-text);
}

.page-news .news-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- 图片容器 ---------- */
.page-news .news-figure {
  position: relative;
  margin: 0;
  border-radius: var(--yz-radius);
  border: 1px solid var(--news-line);
  background: linear-gradient(150deg, rgba(27, 18, 54, 0.9), rgba(11, 11, 20, 0.85));
  overflow: hidden;
  box-shadow: var(--yz-shadow);
}

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

.page-news .news-figure--hero img {
  aspect-ratio: 2 / 1;
}

.page-news .news-figure--topics img {
  aspect-ratio: 3 / 2;
}

.page-news .news-figure--timeline img {
  aspect-ratio: 14 / 9;
  max-height: 400px;
}

.page-news .news-figure--follow img {
  aspect-ratio: 10 / 7;
}

.page-news .news-figure__caption {
  padding: 12px 18px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--yz-muted);
  border-top: 1px solid var(--news-line);
}

/* ---------- 本季概览 ---------- */
.page-news .news-overview__head {
  max-width: 62ch;
}

.page-news .news-overview__head .yz-prose {
  margin-top: 14px;
}

.page-news .news-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.page-news .news-stat {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 22px;
  border-radius: var(--yz-radius-sm);
  border: 1px solid var(--news-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(27, 18, 54, 0.58));
  backdrop-filter: blur(8px);
  transition: transform 0.32s ease, border-color 0.32s ease;
}

.page-news .news-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 196, 81, 0.42);
}

.page-news .news-stat__num {
  font-family: var(--yz-mono);
  font-size: clamp(30px, 5.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--yz-gold-light);
}

.page-news .news-stat__unit {
  margin-left: 3px;
  font-size: 0.42em;
  color: var(--yz-gold);
  letter-spacing: 0;
}

.page-news .news-stat__label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yz-text);
}

.page-news .news-stat__note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--yz-muted);
}

/* ---------- 时间轴 ---------- */
.page-news .news-stream__head {
  max-width: 62ch;
}

.page-news .news-stream__head .yz-prose {
  margin-top: 14px;
}

.page-news .news-stream {
  margin-top: 34px;
}

.page-news .news-stream__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-news .news-stream__tabs .yz-tabs__btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-news .news-stream__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 4px 0 4px 30px;
  list-style: none;
}

.page-news .news-stream__list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.95) 0%,
    rgba(34, 211, 238, 0.8) 56%,
    rgba(245, 196, 81, 0.32) 100%
  );
}

.page-news .news-entry {
  position: relative;
  padding: 20px 20px 22px;
  border-radius: var(--yz-radius-sm);
  border: 1px solid var(--news-line);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: border-color 0.32s ease, background 0.32s ease;
}

.page-news .news-entry:hover {
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.1);
}

.page-news .news-entry::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yz-gold);
  box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.14), 0 0 18px var(--news-gold-glow);
}

.page-news .news-entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-news .news-entry__meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--yz-gold-light);
}

.page-news .news-entry__title {
  margin: 12px 0 0;
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--yz-text);
}

.page-news .news-entry__body {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--yz-muted);
}

.page-news .yz-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- 专题 ---------- */
.page-news .news-topic-section {
  border-top: 1px solid var(--news-line);
  border-bottom: 1px solid var(--news-line);
}

.page-news .news-topic__head {
  max-width: 62ch;
}

.page-news .news-topic__head .yz-prose {
  margin-top: 14px;
}

.page-news .news-topics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 34px;
}

.page-news .news-topic {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 26px;
  border-radius: var(--yz-radius);
  border: 1px solid var(--news-line);
  background: linear-gradient(155deg, rgba(27, 18, 54, 0.94), rgba(11, 11, 20, 0.9));
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.page-news .news-topic::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yz-violet), var(--yz-cyan), var(--yz-gold));
  opacity: 0.66;
}

.page-news .news-topic:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 26px 54px -34px rgba(34, 211, 238, 0.8);
}

.page-news .news-topic--lead {
  background: linear-gradient(150deg, rgba(124, 58, 237, 0.28), rgba(27, 18, 54, 0.94) 62%, rgba(11, 11, 20, 0.92));
}

.page-news .news-topic__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-news .news-topic__count {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--yz-gold-light);
}

.page-news .news-topic .yz-h3 {
  margin: 16px 0 0;
  font-size: clamp(19px, 2.8vw, 24px);
  line-height: 1.35;
}

.page-news .news-topic__body {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--yz-muted);
}

.page-news .news-topic__link {
  align-self: flex-start;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yz-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.page-news .news-topic__link:hover,
.page-news .news-topic__link:focus-visible {
  color: var(--yz-gold-light);
  border-color: var(--yz-gold);
}

.page-news .news-figure--topics {
  margin-top: 30px;
}

/* ---------- 版本迭代 ---------- */
.page-news .news-version__head {
  max-width: 62ch;
}

.page-news .news-version__head .yz-prose {
  margin-top: 14px;
}

.page-news .news-version {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 34px;
}

.page-news .news-indexcard {
  padding: 24px 22px;
  border-radius: var(--yz-radius-sm);
  border: 1px solid var(--news-line);
  border-left-width: 3px;
  background: rgba(255, 255, 255, 0.045);
}

.page-news .news-indexcard--old {
  border-left-color: var(--yz-muted);
}

.page-news .news-indexcard--new {
  border-left-color: var(--yz-cyan);
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.12), rgba(27, 18, 54, 0.55));
}

.page-news .news-indexcard__tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--yz-muted);
}

.page-news .news-indexcard--new .news-indexcard__tag {
  color: var(--yz-cyan);
}

.page-news .news-indexcard .yz-h3 {
  margin: 12px 0 0;
  font-size: clamp(18px, 2.6vw, 22px);
}

.page-news .news-indexcard__body {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--yz-muted);
}

.page-news .news-indexcard__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-news .news-indexcard__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--yz-text);
}

.page-news .news-indexcard__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yz-violet);
}

.page-news .news-indexcard--new .news-indexcard__list li::before {
  background: var(--yz-cyan);
}

.page-news .news-figure--timeline {
  margin-top: 30px;
}

/* ---------- 收藏与订阅 ---------- */
.page-news .news-follow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--yz-radius);
  border: 1px solid var(--news-line);
  background:
    radial-gradient(70% 90% at 8% 12%, rgba(192, 38, 94, 0.2), transparent 68%),
    radial-gradient(60% 80% at 92% 88%, rgba(124, 58, 237, 0.26), transparent 70%),
    rgba(255, 255, 255, 0.04);
}

.page-news .news-follow__copy .yz-prose {
  margin-top: 14px;
}

.page-news .news-follow__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-news .news-follow__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--yz-muted);
}

.page-news .news-follow__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--yz-gold), var(--yz-magenta));
}

.page-news .news-follow__list strong {
  color: var(--yz-text);
  font-weight: 700;
}

.page-news .news-follow__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--yz-muted);
}

.page-news .news-follow__note a {
  color: var(--yz-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
}

.page-news .news-follow__note a:hover,
.page-news .news-follow__note a:focus-visible {
  color: var(--yz-gold-light);
  border-color: var(--yz-gold);
}

.page-news .news-follow__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- 平板 ---------- */
@media (min-width: 700px) {
  .page-news .news-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

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

  .page-news .news-topic--lead {
    grid-column: 1 / -1;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 960px) {
  .page-news .news-hero__grid {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 52px;
  }

  .page-news .news-stream__list {
    padding-left: 34px;
  }

  .page-news .news-entry {
    padding: 24px 26px 26px;
  }

  .page-news .news-entry::before {
    left: -32px;
    top: 30px;
  }

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

  .page-news .news-follow {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 46px;
  }

  .page-news .news-follow__copy {
    order: 1;
  }

  .page-news .news-figure--follow {
    order: 2;
  }
}

@media (min-width: 1200px) {
  .page-news .news-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-news .news-topic--lead {
    grid-column: 1 / 3;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-news .news-stat,
  .page-news .news-topic,
  .page-news .news-entry,
  .page-news .news-topic__link {
    transition: none;
  }

  .page-news .news-stat:hover,
  .page-news .news-topic:hover {
    transform: none;
  }
}
</main>
