.page-news {
  --news-line: var(--hairline);
  --news-glow: rgba(168, 85, 247, .22);
}

/* ---------- 面包屑 ---------- */
.page-news > .shell > nav {
  padding-top: clamp(16px, 3vw, 28px);
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  padding: clamp(36px, 7vw, 84px) 0 clamp(26px, 4vw, 48px);
  overflow: hidden;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto -35%;
  height: 460px;
  background:
    radial-gradient(58% 100% at 26% 42%, var(--news-glow), transparent 70%),
    radial-gradient(42% 82% at 88% 18%, rgba(58, 199, 245, .10), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.page-news .news-hero > * {
  position: relative;
  z-index: 1;
}

.page-news .news-hero .eyebrow {
  color: var(--violet-soft);
}

.page-news .news-hero .display {
  margin: 18px 0 0;
  color: var(--text-primary);
}

.page-news .news-hero .lede {
  margin: 22px 0 0;
  max-width: 60ch;
  color: var(--text-secondary);
}

.page-news .news-hero__stats {
  list-style: none;
  margin: clamp(26px, 4vw, 42px) 0 0;
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  border-top: 1px solid var(--hairline);
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-news .news-hero__stats .mono {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .02em;
}

/* ---------- 章节骨架 ---------- */
.page-news .section {
  position: relative;
  padding: clamp(44px, 6vw, 82px) 0;
  border-top: 1px solid rgba(43, 35, 68, .7);
}

.page-news .section__head {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-right: 46px;
}

.page-news .section__head .section__num {
  color: var(--neon);
  font-weight: 700;
  letter-spacing: .08em;
}

.page-news .section__head .section__title {
  margin: 0;
  color: var(--text-primary);
}

.page-news .section__anno {
  position: absolute;
  right: 0;
  top: 2px;
  max-height: 92px;
  overflow: hidden;
  opacity: .7;
}

.page-news .section__lede {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.page-news .section__foot {
  margin: 26px 0 0;
  max-width: 62ch;
  font-size: .9rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.page-news .section__link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 199, 245, .35);
}

.page-news .section__link:hover {
  border-bottom-color: var(--blue);
}

/* ---------- 分类编号芯片 ---------- */
.page-news .cat {
  --cat: var(--neon);
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  color: var(--cat);
  border: 1px solid color-mix(in srgb, var(--cat) 48%, transparent);
  background: rgba(255, 255, 255, .035);
}

.page-news .cat--c01 { --cat: #C9B0FF; }
.page-news .cat--c02 { --cat: #B98CFF; }
.page-news .cat--c03 { --cat: #A855F7; }
.page-news .cat--c04 { --cat: #8FA6F5; }
.page-news .cat--c05 { --cat: #6BA4F6; }
.page-news .cat--c06 { --cat: #5ABAF5; }
.page-news .cat--c07 { --cat: #4FC9E8; }
.page-news .cat--c08 { --cat: #7C8CF8; }
.page-news .cat--c09 { --cat: #9A8CF0; }
.page-news .cat--c10 { --cat: #C77CFF; }
.page-news .cat--c11 { --cat: #B26BF8; }
.page-news .cat--c12 { --cat: #FFA653; }

/* ---------- 01 速览 ---------- */
.page-news .brief-grid {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}

.page-news .brief {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: linear-gradient(158deg, var(--slate), var(--ink) 78%);
  box-shadow: var(--shadow-card);
  transition: border-color .18s var(--ease), transform .22s var(--ease);
}

.page-news .brief:hover {
  border-color: rgba(168, 85, 247, .5);
  transform: translateY(-2px);
}

.page-news .brief--hot {
  border-color: rgba(168, 85, 247, .34);
}

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

.page-news .brief__title {
  margin: 14px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-primary);
}

.page-news .brief__title .mono {
  color: var(--violet-soft);
  font-size: 1.12rem;
}

.page-news .brief__desc {
  margin: 10px 0 0;
  font-size: .91rem;
  line-height: 1.82;
  color: var(--text-secondary);
}

/* ---------- 02 时间线 ---------- */
.page-news .track-grid {
  margin-top: 26px;
  display: grid;
  gap: 32px;
}

.page-news .timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-news .entry {
  position: relative;
}

.page-news .entry__node {
  display: none;
}

.page-news .entry__card {
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--ink);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.page-news .entry__card:hover {
  border-color: rgba(168, 85, 247, .42);
}

.page-news .entry--hot .entry__card {
  background: linear-gradient(158deg, rgba(76, 29, 149, .28), var(--ink) 62%);
}

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

.page-news .entry__time {
  font-size: .76rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.page-news .entry__title {
  margin: 14px 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
}

.page-news .entry__desc {
  margin: 10px 0 0;
  max-width: 46ch;
  font-size: .93rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.page-news .entry__fold {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(43, 35, 68, .95);
}

.page-news .entry__fold > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 600;
  color: var(--violet-soft);
}

.page-news .entry__fold > summary::-webkit-details-marker {
  display: none;
}

.page-news .entry__fold > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--neon);
  line-height: 1;
}

.page-news .entry__fold[open] > summary::after {
  content: "–";
}

.page-news .entry__delta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--hairline);
  overflow: hidden;
}

.page-news .delta-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px;
  background: var(--slate);
}

.page-news .delta-cell--now {
  background: linear-gradient(158deg, rgba(76, 29, 149, .6), var(--slate) 88%);
}

.page-news .delta-cell__k {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--text-muted);
}

.page-news .delta-cell__v {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
}

.page-news .delta-cell--now .delta-cell__v {
  color: var(--violet-soft);
}

.page-news .entry__note {
  margin: 14px 0 0;
  font-size: .85rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---------- 图片容器 ---------- */
.page-news .media-frame {
  position: relative;
  margin: 28px 0 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--slate);
  overflow: hidden;
}

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

.page-news .media-frame__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 176, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 176, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-news .media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  background: rgba(7, 6, 13, .74);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--violet-soft);
}

.page-news .track-grid__side .media-frame {
  margin-top: 0;
}

/* ---------- 03 记录量 ---------- */
.page-news .vol-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-news .vol-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--ink);
  transition: border-color .16s var(--ease);
}

.page-news .vol-row:hover {
  border-color: rgba(168, 85, 247, .38);
}

.page-news .vol-row__name {
  flex: 0 0 auto;
  font-size: .88rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.page-news .vol-row__bar {
  flex: 1 1 auto;
  min-width: 32px;
  height: 6px;
  border-radius: 999px;
  background: rgba(43, 35, 68, .8);
  overflow: hidden;
}

.page-news .vol-row__bar i {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--deep-violet), var(--neon));
}

.page-news .vol-row__num {
  flex: 0 0 auto;
  min-width: 1.6em;
  text-align: right;
  font-size: .98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.page-news .vol-row__delta {
  flex: 0 0 auto;
  min-width: 3.4em;
  text-align: right;
  font-size: .8rem;
  color: var(--text-muted);
}

.page-news .vol-row__delta--up {
  color: var(--amber);
}

/* ---------- 04 移动端日志 ---------- */
.page-news .mobile-grid {
  margin-top: 4px;
  display: grid;
  gap: 26px;
}

.page-news .mobile-grid .media-frame {
  margin-top: 22px;
}

.page-news .mobile-log {
  margin-top: 22px;
}

.page-news .log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-news .log-item {
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--hairline);
}

.page-news .log-item--now {
  border-left-color: var(--amber);
}

.page-news .log-item__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .log-item__ver {
  font-family: var(--font-mono);
  font-size: .96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.page-news .log-item__time {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--text-muted);
}

.page-news .log-item__desc {
  margin: 8px 0 0;
  font-size: .92rem;
  line-height: 1.82;
  color: var(--text-secondary);
}

.page-news .mobile-note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: .88rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.page-news .mobile-note .mono {
  color: var(--text-primary);
  font-weight: 700;
}

/* ---------- 05 专题 ---------- */
.page-news .topic-grid {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.page-news .topic {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--ink);
  transition: border-color .18s var(--ease);
}

.page-news .topic:hover {
  border-color: rgba(168, 85, 247, .45);
}

.page-news .topic__idx {
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--neon);
}

.page-news .topic__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
}

.page-news .topic__desc {
  flex: 1 1 auto;
  margin: 0;
  font-size: .9rem;
  line-height: 1.82;
  color: var(--text-secondary);
}

.page-news .topic__link {
  align-self: flex-start;
  font-size: .86rem;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 199, 245, .3);
}

.page-news .topic__link:hover {
  border-bottom-color: var(--blue);
}

/* ---------- 收尾引导 ---------- */
.page-news .news-cta {
  margin: clamp(36px, 5vw, 64px) 0 clamp(44px, 6vw, 84px);
  padding: clamp(24px, 3.6vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid rgba(168, 85, 247, .3);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(76, 29, 149, .38), var(--ink) 64%);
}

.page-news .news-cta__text {
  margin: 0;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
}

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

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-news .brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 900px) {
  .page-news .timeline {
    padding-left: 72px;
    gap: 20px;
  }

  .page-news .timeline::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--hairline) 6%, var(--hairline) 94%, transparent);
  }

  .page-news .entry__node {
    display: block;
    position: absolute;
    left: -52px;
    top: 26px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, .16), 0 0 18px rgba(168, 85, 247, .5);
  }

  .page-news .entry--hot .entry__node {
    background: var(--amber);
    box-shadow: 0 0 0 4px rgba(255, 166, 83, .16), 0 0 18px rgba(255, 166, 83, .48);
  }

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

@media (min-width: 980px) {
  .page-news .mobile-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 40px;
    align-items: start;
  }

  .page-news .mobile-grid .media-frame,
  .page-news .mobile-log {
    margin-top: 26px;
  }
}

@media (min-width: 1040px) {
  .page-news .track-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 40px;
    align-items: start;
  }

  .page-news .track-grid__side {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }

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

  .page-news .news-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .page-news .vol-row {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .page-news .vol-row__bar {
    order: 5;
    flex-basis: 100%;
  }

  .page-news .vol-row__delta {
    margin-left: auto;
  }

  .page-news .section__head {
    padding-right: 0;
  }

  .page-news .section__anno {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .brief,
  .page-news .entry__card,
  .page-news .vol-row,
  .page-news .topic {
    transition: none;
  }

  .page-news .brief:hover {
    transform: none;
  }
}

.page-news {
  --w: 1rem;
}
