/* ============================================
   更新纪事页专属样式
   作用域: .page-news
   ============================================ */
.page-news {
  --news-rule: rgba(28, 45, 58, 0.12);
  --news-rule-strong: rgba(28, 45, 58, 0.28);
  --news-gold-soft: rgba(229, 182, 62, 0.14);
  overflow-x: clip;
}
.page-news [id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---- 首屏：报纸封面 ---- */
.page-news .news-hero {
  background: var(--space-900);
  color: var(--paper);
  padding: 22px 0 60px;
  position: relative;
}
.page-news .news-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--signal-orange) 0%, var(--gold) 55%, transparent 78%);
}
.page-news .news-hero-grid {
  display: grid;
  gap: 40px;
}
.page-news .news-dateline {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
}
.page-news .news-hero-main h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 10px 0 22px;
}
.page-news .news-hero-main .section-kicker {
  margin-bottom: 6px;
}
.page-news .news-hero-lead {
  color: rgba(244, 239, 230, 0.86);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 62ch;
}
.page-news .news-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}
.page-news .news-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
}
.page-news .stat-item {
  display: grid;
  gap: 4px;
}
.page-news .news-hero-stats .data-label {
  color: rgba(244, 239, 230, 0.58);
}
.page-news .news-hero-stats .data-value {
  color: var(--gold);
  font-size: 1.55rem;
}

/* 首屏右侧时间线 */
.page-news .news-hero-aside {
  position: relative;
}
.page-news .news-timeline-panel {
  padding: 22px 20px;
}
.page-news .news-timeline-panel .panel-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-news .news-refresh-note {
  font-family: var(--font-data);
  font-size: 0.82rem;
  color: var(--cyan);
  margin: 10px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}
.page-news .news-timeline {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
}
.page-news .news-timeline li {
  position: relative;
  padding: 0 0 20px 18px;
  border-left: 2px solid rgba(77, 208, 225, 0.22);
}
.page-news .news-timeline li:last-child {
  padding-bottom: 2px;
  border-left-color: transparent;
}
.page-news .news-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(77, 208, 225, 0.16);
}
.page-news .tl-time {
  display: block;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 230, 0.52);
}
.page-news .tl-label {
  display: block;
  font-size: 0.95rem;
  margin-top: 4px;
}
.page-news .tl-version {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--gold);
  background: var(--news-gold-soft);
  border: 1px solid rgba(229, 182, 62, 0.28);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}

/* ---- 最新动态 ---- */
.page-news .news-feed-section {
  background: var(--paper);
  padding: 64px 0 40px;
}
.page-news .section-head-row {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.page-news .news-feed-section .section-kicker,
.page-news .news-topics-section .section-kicker,
.page-news .archive-intro .section-kicker {
  margin-bottom: 8px;
}
.page-news .feed-categories {
  list-style: none;
  margin: 0 0 32px;
  padding: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--news-rule);
}
.page-news .feed-tag {
  font-size: 0.84rem;
  line-height: 1;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper-dim);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.page-news .feed-tag-active {
  background: var(--space-900);
  color: var(--paper);
}

.page-news .feed-layout {
  display: grid;
  gap: 24px;
}

/* 卡片基础 */
.page-news .feed-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--news-rule);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 12px rgba(10, 20, 40, 0.05);
}
.page-news .feed-card-media {
  position: relative;
}
.page-news .feed-card-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.page-news .feed-media-hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.page-news .feed-media-sm img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page-news .feed-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.page-news .feed-badge {
  display: inline-block;
  background: var(--space-900);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.page-news .feed-card-media .feed-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  box-shadow: 0 4px 12px rgba(10, 20, 40, 0.28);
}
.page-news .feed-badge-warm {
  background: var(--signal-orange);
  color: #fff;
}
.page-news .feed-badge-gold {
  background: var(--gold);
  color: var(--space-900);
}
.page-news .feed-card h3 {
  position: relative;
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 12px 0 10px;
  transition: color 0.2s ease;
}
.page-news .feed-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--signal-orange) 0%, var(--signal-orange) 72%, var(--gold) 72%, var(--gold) 86%, transparent 86%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.page-news .feed-card:hover h3::after,
.page-news .feed-card:focus-within h3::after {
  transform: scaleX(1);
}
.page-news .feed-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(28, 45, 58, 0.78);
  margin: 0 0 14px;
}
.page-news .feed-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.78rem;
  color: rgba(28, 45, 58, 0.52);
}
.page-news .feed-more-link {
  color: var(--signal-orange);
  font-weight: 700;
}
.page-news .feed-more-link::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}

/* 头条大卡 */
.page-news .feed-featured .feed-card-body {
  padding: 26px;
}
.page-news .feed-featured h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}

/* 紧凑卡 */
.page-news .feed-compact {
  padding: 22px;
}
.page-news .feed-compact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.page-news .feed-time {
  font-family: var(--font-data);
  font-size: 0.74rem;
  color: rgba(28, 45, 58, 0.5);
}
.page-news .feed-loss-wrap {
  border-top: 1px dashed var(--news-rule-strong);
  padding-top: 14px;
  margin-top: 14px;
}
.page-news .feed-loss-svg {
  display: block;
  width: 100%;
  height: 32px;
}
.page-news .feed-loss-inline .feed-loss-svg {
  height: 24px;
}
.page-news .feed-loss-note {
  display: block;
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: rgba(28, 45, 58, 0.58);
  margin-top: 6px;
}

/* Feed 底部 */
.page-news .feed-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--news-rule);
}
.page-news .feed-footer p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(28, 45, 58, 0.7);
}
.page-news .feed-footer a {
  color: var(--signal-orange);
  font-weight: 700;
  text-decoration: none;
}

/* ---- 专题策划 ---- */
.page-news .news-topics-section {
  background: var(--paper-dim);
  padding: 64px 0;
}
.page-news .topics-grid {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
.page-news .topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 250px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-news .topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(10, 20, 40, 0.2);
}
.page-news .topic-num {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: var(--font-headline);
  font-size: 2.4rem;
  opacity: 0.2;
  letter-spacing: 0.02em;
}
.page-news .topic-label {
  font-family: var(--font-data);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.page-news .topic-title {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
.page-news .topic-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.82;
  margin-bottom: 22px;
}
.page-news .topic-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
}
.page-news .topic-card-ink {
  background: var(--panel);
  color: var(--paper);
}
.page-news .topic-card-ink .topic-label {
  background: var(--news-gold-soft);
  color: var(--gold);
  border: 1px solid rgba(229, 182, 62, 0.3);
}
.page-news .topic-card-ink .topic-link {
  color: var(--gold);
}
.page-news .topic-card-paper {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(28, 45, 58, 0.1);
}
.page-news .topic-card-paper .topic-label {
  background: var(--space-900);
  color: var(--paper);
}
.page-news .topic-card-paper .topic-link {
  color: var(--signal-orange);
}
.page-news .topic-card-orange {
  background: var(--signal-orange);
  color: #fff;
}
.page-news .topic-card-orange .topic-label {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.page-news .topic-card-orange .topic-link {
  color: #fff;
}

/* ---- 反馈更新时间 ---- */
.page-news .news-refresh-section {
  background: var(--panel);
  padding: 64px 0;
}
.page-news .refresh-panel {
  display: grid;
  gap: 36px;
  padding: 34px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0D1C33 0%, var(--panel) 100%);
  border: 1px solid rgba(77, 208, 225, 0.18);
  position: relative;
  overflow: hidden;
}
.page-news .refresh-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), transparent 70%);
}
.page-news .refresh-panel .section-kicker {
  margin-bottom: 8px;
}
.page-news .refresh-lead {
  color: rgba(244, 239, 230, 0.78);
  line-height: 1.7;
  margin: 14px 0 0;
  max-width: 56ch;
}
.page-news .refresh-status-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-news .refresh-status-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: rgba(244, 239, 230, 0.9);
  font-size: 0.9rem;
}
.page-news .refresh-value {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--cyan);
}
.page-news .refresh-chart-panel {
  background: rgba(10, 20, 40, 0.5);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  border: 1px solid rgba(77, 208, 225, 0.14);
}
.page-news .refresh-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-news .refresh-chart-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--paper);
}
.page-news .refresh-svg {
  display: block;
  width: 100%;
  height: auto;
}
.page-news .refresh-grid-lines line {
  stroke: rgba(244, 239, 230, 0.1);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}
.page-news .refresh-area {
  fill: rgba(77, 208, 225, 0.12);
}
.page-news .refresh-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-news .refresh-dot {
  fill: var(--gold);
  stroke: rgba(229, 182, 62, 0.4);
  stroke-width: 3;
}
.page-news .refresh-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: rgba(244, 239, 230, 0.52);
  margin-top: 10px;
}

/* ---- 归档索引 ---- */
.page-news .news-archive-section {
  background: var(--paper);
  padding: 64px 0 88px;
}
.page-news .archive-intro-lead {
  color: rgba(28, 45, 58, 0.78);
  line-height: 1.7;
  margin: 14px 0 0;
  max-width: 52ch;
}
.page-news .archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.page-news .archive-panel {
  background: var(--paper-dim);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 45, 58, 0.1);
  padding: 24px;
}
.page-news .archive-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(28, 45, 58, 0.14);
  margin-bottom: 8px;
}
.page-news .archive-panel-title {
  font-weight: 800;
  font-size: 1.05rem;
}
.page-news .archive-league-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-news .archive-league-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px dashed rgba(28, 45, 58, 0.12);
}
.page-news .archive-league-list li:last-child {
  border-bottom: none;
}
.page-news .archive-league-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  position: relative;
}
.page-news .archive-league-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--signal-orange), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.page-news .archive-league-list a:hover::after,
.page-news .archive-league-list a:focus-visible::after {
  transform: scaleX(1);
}
.page-news .archive-count {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: rgba(28, 45, 58, 0.58);
}
.page-news .archive-season-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(28, 45, 58, 0.14);
}
.page-news .archive-season-label {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---- 平板 / 桌面断点 ---- */
@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 28px 0 72px;
  }
  .page-news .news-hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }
  .page-news .news-hero-aside {
    padding-top: 8px;
  }
  .page-news .section-head-row {
    grid-template-columns: 4fr 8fr;
    align-items: end;
    gap: 24px;
  }
  .page-news .feed-layout {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }
  .page-news .feed-featured {
    grid-column: span 7;
    position: relative;
  }
  .page-news .feed-featured::after {
    content: "";
    position: absolute;
    right: -13px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--news-rule-strong);
  }
  .page-news .feed-compact-col {
    grid-column: span 5;
    display: grid;
    gap: 24px;
  }
  .page-news .feed-standard {
    grid-column: span 4;
  }
  .page-news .feed-wide {
    grid-column: span 7;
    display: grid;
    grid-template-columns: 5fr 7fr;
  }
  .page-news .feed-wide .feed-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 26px;
  }
  .page-news .feed-stand-offset {
    margin-top: 28px;
  }
  .page-news .news-feed-section,
  .page-news .news-topics-section,
  .page-news .news-refresh-section {
    padding: 72px 0;
  }
  .page-news .news-archive-section {
    padding: 72px 0 96px;
  }
  .page-news .topics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .page-news .refresh-panel {
    padding: 42px 36px;
  }
  .page-news .refresh-chart-panel {
    padding: 22px 20px;
  }
  .page-news .archive-layout {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
  }
  .page-news .archive-panel {
    padding: 28px;
  }
}

@media (min-width: 1000px) {
  .page-news .news-hero-aside::before {
    content: "";
    position: absolute;
    top: 12px;
    left: -20px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, var(--gold), rgba(229, 182, 62, 0.08));
  }
  .page-news .refresh-panel {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }
}
