.page-news {
  --news-rule: rgba(159, 196, 220, .45);
  --news-rule-strong: rgba(20, 80, 127, .16);
  --news-track: #C9DCEA;
  --news-c-panel: #14507F;
  --news-c-index: #FF7A4D;
  --news-c-doc: #1FA98A;
  --news-c-ops: #5A6B7B;
}

/* ---------- 首屏 ---------- */
.page-news .news-intro {
  position: relative;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--news-rule-strong);
}

.page-news .news-intro::after {
  content: "";
  position: absolute;
  right: 0;
  top: -30px;
  width: min(48%, 380px);
  height: 300px;
  background:
    radial-gradient(circle at 38% 34%, rgba(46, 127, 184, .18), transparent 62%),
    radial-gradient(circle at 72% 70%, rgba(255, 122, 77, .14), transparent 58%);
  pointer-events: none;
  z-index: 0;
}

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

.page-news .news-intro h1 {
  margin: 12px 0 18px;
  font-size: clamp(26px, 5.4vw, 42px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--deep);
}

.page-news .news-intro .lede {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate);
}

.page-news .intro-facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.page-news .intro-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--news-rule-strong);
  border-left: 3px solid var(--sea);
  border-radius: 0 12px 12px 0;
}

.page-news .intro-facts li:nth-child(2) {
  border-left-color: var(--coral);
}

.page-news .intro-facts li:nth-child(3) {
  border-left-color: var(--jade);
}

.page-news .intro-facts .stat-value {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}

.page-news .intro-facts .stat-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate);
}

/* ---------- 通用节 ---------- */
.page-news .section {
  padding: 40px 0;
}

.page-news .section-title {
  margin: 6px 0 0;
  font-size: clamp(21px, 3.4vw, 28px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--deep);
}

.page-news .eyebrow--coral {
  color: #C2471C;
}

.page-news .eyebrow--jade {
  color: #0C6B55;
}

/* ---------- 本季概览 ---------- */
.page-news .season-media {
  margin: 0 0 24px;
}

.page-news .season-media img,
.page-news .legend-media img,
.page-news .archive-media img,
.page-news .doc-sync-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-news .season-copy {
  display: grid;
  gap: 14px;
  max-width: 76ch;
}

.page-news .season-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
}

/* ---------- 主体两栏 ---------- */
.page-news .news-body {
  display: grid;
  gap: 8px;
}

.page-news .section-note {
  margin: -6px 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.page-news .legend-media {
  margin: 0 0 20px;
}

/* ---------- 标签说明 ---------- */
.page-news .tag-legend {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.page-news .tag-legend li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--salt);
  border-left: 3px solid var(--news-track);
  border-radius: 0 12px 12px 0;
}

.page-news .dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--news-c-panel);
}

.page-news .dot--panel { background: var(--news-c-panel); }
.page-news .dot--index { background: var(--news-c-index); }
.page-news .dot--doc   { background: var(--news-c-doc); }
.page-news .dot--ops   { background: var(--news-c-ops); }

.page-news .legend-copy {
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate);
}

.page-news .legend-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--deep);
}

/* ---------- 时间轴 ---------- */
.page-news .timeline {
  position: relative;
  margin-top: 4px;
  padding-left: 28px;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 24px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--sea) 36%, var(--coral) 72%, var(--jade) 100%);
  opacity: .5;
}

.page-news .week-block {
  position: relative;
  padding-bottom: 30px;
}

.page-news .week-block:last-child {
  padding-bottom: 0;
}

.page-news .week-block::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 9px;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--panel);
  border: 3px solid var(--sea);
}

.page-news .week-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 0 0 14px;
}

.page-news .week-num {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--salt);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.page-news .week-meta {
  margin: 0;
  font-size: 13px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

/* ---------- 条目 ---------- */
.page-news .entry {
  --news-accent: var(--brand);
  background: var(--panel);
  border: 1px solid var(--news-rule-strong);
  border-left: 3px solid var(--news-accent);
  border-radius: 0 14px 14px 0;
  margin-bottom: 10px;
  transition: box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.page-news .entry:last-child {
  margin-bottom: 0;
}

.page-news .entry:hover,
.page-news .entry[open] {
  box-shadow: 0 8px 22px -16px rgba(6, 26, 46, .55);
}

.page-news .entry--panel { --news-accent: var(--news-c-panel); }
.page-news .entry--index { --news-accent: var(--news-c-index); }
.page-news .entry--doc   { --news-accent: var(--news-c-doc); }
.page-news .entry--ops   { --news-accent: var(--news-c-ops); }

.page-news .entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.page-news .entry-head::-webkit-details-marker {
  display: none;
}

.page-news .entry-head::marker {
  content: "";
}

.page-news .entry-tag {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.page-news .entry--panel .entry-tag { background: rgba(20, 80, 127, .10); color: #12456B; }
.page-news .entry--index .entry-tag { background: rgba(255, 122, 77, .20); color: #9C380C; }
.page-news .entry--doc .entry-tag   { background: rgba(31, 169, 138, .18); color: #0A6350; }
.page-news .entry--ops .entry-tag   { background: rgba(90, 107, 123, .15); color: #3C4B59; }

.page-news .entry-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--deep);
  overflow-wrap: break-word;
}

.page-news .entry-toggle {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-left: auto;
  position: relative;
}

.page-news .entry-toggle::before,
.page-news .entry-toggle::after {
  content: "";
  position: absolute;
  background: var(--slate);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.page-news .entry-toggle::before {
  left: 2px;
  right: 2px;
  top: 8px;
  height: 2px;
}

.page-news .entry-toggle::after {
  top: 2px;
  bottom: 2px;
  left: 8px;
  width: 2px;
}

.page-news .entry[open] .entry-toggle::after {
  transform: scaleY(0);
  opacity: 0;
}

.page-news .entry-text {
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--news-rule-strong);
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

/* ---------- 侧栏 ---------- */
.page-news .news-side {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 8px;
}

.page-news .side-card {
  background: var(--panel);
  border: 1px solid var(--news-rule-strong);
  border-top: 4px solid var(--sea);
  border-radius: 0 0 14px 14px;
  padding: 20px;
}

.page-news .side-card--archive { border-top-color: var(--coral); }
.page-news .side-card--next    { border-top-color: var(--jade); }

.page-news .side-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.005em;
  color: var(--deep);
}

.page-news .archive-group {
  padding: 10px 0;
  border-bottom: 1px solid var(--news-rule);
}

.page-news .archive-group:first-of-type {
  padding-top: 0;
}

.page-news .archive-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-news .archive-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--deep);
}

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

.page-news .archive-caret {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-left: auto;
  margin-bottom: 3px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform var(--t-fast) var(--ease);
}

.page-news .archive-group[open] .archive-caret {
  transform: rotate(-135deg);
}

.page-news .archive-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-news .archive-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--slate);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.page-news .archive-list a:hover,
.page-news .archive-list a:focus-visible {
  background: var(--salt);
  border-left-color: var(--coral);
  color: var(--brand);
}

.page-news .archive-count {
  font-size: 13px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.page-news .archive-note {
  margin: 10px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--news-rule);
  font-size: 13px;
  line-height: 1.8;
  color: var(--slate);
}

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

.page-news .next-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--salt);
  border-left: 3px solid var(--jade);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.page-news .next-list a:hover,
.page-news .next-list a:focus-visible {
  background: #E4EEF6;
  transform: translateX(2px);
}

.page-news .next-list a::after {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: .7;
}

/* ---------- 归档读法 ---------- */
.page-news .archive-read {
  display: grid;
  gap: 26px;
  border-top: 1px solid var(--news-rule-strong);
}

.page-news .archive-copy p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
}

.page-news .archive-copy p:last-child {
  margin-bottom: 0;
}

.page-news .archive-media {
  margin: 0;
}

/* ---------- 文档同步 ---------- */
.page-news .doc-sync {
  display: grid;
  gap: 26px;
  border-top: 1px solid var(--news-rule-strong);
}

.page-news .doc-sync-media {
  margin: 0;
}

.page-news .doc-sync-copy p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
}

.page-news .doc-sync-copy p:last-child {
  margin-bottom: 0;
}

.page-news .doc-sync-copy .btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* ---------- 显现动效 ---------- */
.page-news [data-reveal] {
  animation: news-rise 420ms var(--ease) both;
}

@keyframes news-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 焦点可见 ---------- */
.page-news a:focus-visible,
.page-news summary:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
  .page-news .news-intro {
    padding: 44px 0 34px;
  }

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

  .page-news .entry-title {
    font-size: 16px;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 980px) {
  .page-news .news-intro {
    padding: 56px 0 40px;
  }

  .page-news .news-body {
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
    gap: 44px;
    align-items: start;
  }

  .page-news .news-side {
    position: sticky;
    top: 96px;
  }

  .page-news .section {
    padding: 48px 0;
  }

  .page-news .tag-legend {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-news .archive-read {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 44px;
  }

  .page-news .doc-sync {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 44px;
  }

  .page-news .timeline {
    padding-left: 32px;
  }

  .page-news .week-block::before {
    left: -33px;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-news [data-reveal] {
    animation: none;
  }

  .page-news .next-list a,
  .page-news .entry,
  .page-news .archive-caret,
  .page-news .entry-toggle::before,
  .page-news .entry-toggle::after {
    transition: none;
  }

  .page-news .next-list a:hover,
  .page-news .next-list a:focus-visible {
    transform: none;
  }
}
