﻿.page-news {
  --news-gold: #D4AF37;
  --news-gold-light: #FFE27A;
  --news-line: rgba(212, 175, 55, 0.45);
  --news-blue: #2E3192;
  overflow-x: hidden;
}

/* ===== 首屏 Hero ===== */
.page-news .news-hero {
  background: var(--yh-bg-primary);
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-news .news-hero__grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 24px;
}

.page-news .news-hero__content {
  position: relative;
  padding-left: 16px;
}

.page-news .news-hero__content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--news-gold-light), var(--news-gold), transparent);
}

.page-news .news-hero__lead {
  color: rgba(245, 245, 250, 0.72);
  font-size: 15px;
  line-height: 1.8;
  max-width: 640px;
  margin: 16px 0 0;
}

.page-news .news-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-news .news-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--yh-radius);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.page-news .news-hero__stat {
  background: rgba(26, 27, 58, 0.92);
  padding: 18px 12px;
  text-align: center;
}

.page-news .news-hero__stat dt {
  font-family: var(--yh-font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(245, 245, 250, 0.55);
  margin-bottom: 6px;
}

.page-news .news-hero__stat dd {
  font-family: var(--yh-font-serif);
  font-size: 28px;
  line-height: 1.2;
  color: var(--news-gold-light);
  margin: 0;
}

/* ===== 公告区 ===== */
.page-news .news-announcements {
  background: var(--yh-bg-light);
}

.page-news .news-section__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.page-news .news-section__note {
  color: var(--yh-mono);
  font-size: 14px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}

.page-news .news-feature {
  margin: 0 0 40px;
  border-radius: var(--yh-radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 40px rgba(26, 27, 58, 0.1);
}

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

.page-news .news-feature__caption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-family: var(--yh-font-mono);
  font-size: 12px;
  color: rgba(245, 245, 250, 0.92);
  background: rgba(26, 27, 58, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: 1px;
}

/* ===== 时间轴 ===== */
.page-news .news-timeline {
  position: relative;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--news-line) 8%, var(--news-line) 92%, transparent);
  border-radius: 2px;
}

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

.page-news .news-timeline__node {
  position: absolute;
  left: -26px;
  top: 26px;
  width: 14px;
  height: 14px;
  z-index: 1;
}

.page-news .news-timeline__dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--news-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 0 16px rgba(212, 175, 55, 0.45);
}

.page-news .news-timeline__card {
  background: var(--yh-text-light);
  border-radius: var(--yh-radius);
  padding: 24px 20px;
  border: 1px solid rgba(30, 30, 40, 0.05);
  box-shadow: 0 4px 20px rgba(26, 27, 58, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.page-news .news-timeline__item:hover .news-timeline__card {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(26, 27, 58, 0.1);
}

.page-news .news-timeline__item--featured .news-timeline__card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), var(--yh-text-light) 55%);
  border-color: rgba(212, 175, 55, 0.3);
}

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

.page-news .news-timeline__time {
  font-size: 12px;
  color: var(--yh-mono);
  letter-spacing: 0.5px;
}

.page-news .news-timeline__card h3 {
  margin: 0 0 8px;
  font-family: var(--yh-font-serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--yh-text-dark);
}

.page-news .news-timeline__card > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(30, 30, 40, 0.72);
}

.page-news .news-timeline__toggle {
  margin-top: 14px;
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--yh-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--news-gold);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-news .news-timeline__toggle:hover {
  background: rgba(212, 175, 55, 0.14);
  color: #A8852B;
}

.page-news .news-timeline__body {
  margin-top: 10px;
  padding: 14px 16px 2px;
  border-top: 1px dashed rgba(108, 108, 140, 0.3);
}

.page-news .news-timeline__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(30, 30, 40, 0.68);
}

/* ===== 内容目录归档 ===== */
.page-news .news-archive-section {
  background: var(--yh-bg-primary);
  background-image:
    radial-gradient(circle at 85% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
    linear-gradient(rgba(245, 245, 250, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 250, 0.03) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.page-news .news-archive__layout {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.page-news .news-archive__head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.page-news .news-archive__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--yh-radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-news .news-archive__intro {
  color: rgba(245, 245, 250, 0.65);
  font-size: 14px;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 0 28px;
}

.page-news .news-archive__groups {
  display: flex;
  flex-direction: column;
}

.page-news .news-archive-section .yh-panel {
  border-bottom: 1px solid rgba(245, 245, 250, 0.1);
}

.page-news .news-archive-section .yh-panel:first-child {
  border-top: 1px solid rgba(245, 245, 250, 0.1);
}

.page-news .news-archive__trigger {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  font-family: var(--yh-font-sans);
  font-size: 16px;
  color: var(--yh-text-light);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.page-news .news-archive__trigger:hover {
  color: var(--news-gold-light);
}

.page-news .news-archive__trigger .yh-panel__icon {
  color: var(--news-gold);
}

.page-news .news-archive__body-inner {
  padding-bottom: 18px;
}

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

.page-news .news-archive__list a {
  color: var(--yh-accent-light);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--yh-radius-sm);
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-news .news-archive__list a:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--yh-text-light);
}

.page-news .news-archive__plain {
  color: rgba(245, 245, 250, 0.55);
  font-size: 14px;
  padding: 8px 12px;
}

/* 归档侧边栏 */
.page-news .news-archive__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-news .news-archive__aside-card {
  background: rgba(61, 59, 142, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--yh-radius);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.page-news .news-archive__aside-num {
  display: block;
  font-size: 42px;
  color: var(--news-gold-light);
  line-height: 1.1;
}

.page-news .news-archive__aside-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(245, 245, 250, 0.6);
}

.page-news .news-archive__aside-note {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 245, 250, 0.55);
  margin: 8px 0 4px;
  padding: 0 4px;
}

.page-news .news-archive__aside-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== 更新日志 ===== */
.page-news .news-changelog-section {
  background: var(--yh-bg-light);
}

.page-news .news-changelog__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-news .news-changelog__intro {
  color: var(--yh-mono);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 540px;
}

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

.page-news .news-changelog__item {
  background: var(--yh-text-light);
  border-radius: var(--yh-radius);
  padding: 20px 22px 20px 24px;
  border: 1px solid rgba(30, 30, 40, 0.04);
  box-shadow: 0 4px 18px rgba(26, 27, 58, 0.05);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.page-news .news-changelog__item:hover {
  box-shadow: 0 8px 28px rgba(26, 27, 58, 0.09);
}

.page-news .news-changelog__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--news-gold), var(--news-gold-light));
}

.page-news .news-changelog__item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.page-news .news-changelog__version {
  font-size: 17px;
  font-weight: 600;
  color: var(--yh-bg-primary);
  letter-spacing: 1px;
}

.page-news .news-changelog__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(30, 30, 40, 0.72);
}

.page-news .news-changelog__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.page-news .news-changelog__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--yh-radius);
  box-shadow: 0 14px 44px rgba(26, 27, 58, 0.14);
  object-fit: cover;
}

.page-news .news-changelog__media-note {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--yh-mono);
  padding: 0 6px;
}

.page-news .news-changelog__media-line {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--news-gold);
  position: relative;
}

.page-news .news-changelog__media-line::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--news-gold);
}

/* ===== 跨设备同步 ===== */
.page-news .news-sync-section {
  background: linear-gradient(135deg, #E0BC6C 0%, var(--news-gold) 45%, #B8962E 100%);
}

.page-news .news-sync__layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.page-news .news-sync__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--yh-radius);
  box-shadow: 0 16px 48px rgba(30, 30, 40, 0.22);
  object-fit: cover;
}

.page-news .news-sync__content h2 {
  color: var(--yh-text-dark);
  font-family: var(--yh-font-serif);
  font-size: 26px;
  margin: 0 0 12px;
}

.page-news .news-sync__content p {
  color: rgba(30, 30, 40, 0.8);
  font-size: 14px;
  line-height: 1.8;
  max-width: 520px;
  margin: 0;
}

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

.page-news .news-sync-section .yh-btn--ghost {
  border-color: rgba(30, 30, 40, 0.45);
  color: var(--yh-text-dark);
}

.page-news .news-sync-section .yh-btn--ghost:hover {
  background: rgba(30, 30, 40, 0.08);
  border-color: var(--yh-text-dark);
}

/* ===== 平板 ≥768px ===== */
@media (min-width: 768px) {
  .page-news .news-hero__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;
  }

  .page-news .news-hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .page-news .news-hero__stat {
    padding: 24px 16px;
  }

  .page-news .news-hero__stat dd {
    font-size: 34px;
  }

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

  .page-news .news-timeline__node {
    left: -40px;
  }

  .page-news .news-timeline__card {
    padding: 30px 32px;
  }

  .page-news .news-timeline__card h3 {
    font-size: 22px;
  }

  .page-news .news-archive__layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .page-news .news-archive__img {
    width: 160px;
    height: 160px;
  }

  .page-news .news-changelog__layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .page-news .news-sync__layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
  }

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

/* ===== 桌面 ≥1024px ===== */
@media (min-width: 1024px) {
  .page-news .news-hero__grid {
    grid-template-columns: 7fr 3fr;
    gap: 64px;
  }

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

  .page-news .news-hero__stat {
    padding: 28px 18px;
  }

  .page-news .news-hero__stat dd {
    font-size: 40px;
  }

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

  .page-news .news-timeline__node {
    left: -48px;
    top: 32px;
  }

  .page-news .news-timeline__dot {
    width: 16px;
    height: 16px;
  }

  .page-news .news-timeline__card {
    padding: 32px 40px;
  }

  .page-news .news-timeline__card > p {
    font-size: 15px;
    max-width: 640px;
  }

  .page-news .news-archive__trigger {
    padding: 22px 4px;
    font-size: 17px;
  }

  .page-news .news-changelog__version {
    font-size: 20px;
  }

  .page-news .news-sync__content h2 {
    font-size: 30px;
  }
}

/* ===== 动效降级 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-news .news-timeline__card,
  .page-news .news-changelog__item {
    transition: none;
  }
}
