/* ===== 最新动态页专属样式 ===== */
.page-news {
  --news-angle: -2deg;
  --news-scroll-offset: calc(var(--header-h) + 24px);
  background: var(--light);
}

.page-news .news-timeline,
.page-news .news-sidebar,
.page-news .timeline-entry {
  scroll-margin-top: var(--news-scroll-offset);
}

/* 面包屑 */
.page-news .breadcrumb {
  padding: 24px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.page-news .breadcrumb a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

.page-news .breadcrumb a:hover {
  color: var(--orange);
}

.page-news .breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* 首屏英雄区 */
.page-news .news-hero {
  position: relative;
  margin-top: 20px;
  padding: 32px 0 96px;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 55%, var(--teal) 120%);
  color: #fff;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  right: -20%;
  top: -30%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(242, 101, 34, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

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

.page-news .news-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.page-news .news-eyebrow-line {
  display: inline-block;
  width: 34px;
  height: 3px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--orange), #ffb088);
}

.page-news .news-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-news .news-hero-desc {
  max-width: 640px;
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

/* 首屏装饰曲线 */
.page-news .news-hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page-news .news-hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}

/* 公告封面卡片 */
.page-news .news-featured {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-md);
  transform: rotate(var(--news-angle));
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.page-news .news-featured:hover {
  transform: rotate(-0.5deg) translateY(-4px);
  box-shadow: 0 20px 44px rgba(27, 59, 76, 0.16);
}

.page-news .news-featured-imgwrap {
  position: relative;
  min-height: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: var(--blue-deep);
}

.page-news .news-featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .news-featured-flag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border-radius: var(--pill);
  box-shadow: var(--shadow-orange);
  letter-spacing: 0.08em;
  z-index: 1;
}

.page-news .news-featured-body {
  padding: 26px 24px 28px;
  min-width: 0;
}

.page-news .news-featured-bar {
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--orange), #ffb088);
}

.page-news .news-featured-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* 通用胶囊 */
.page-news .news-chip {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--pill);
  letter-spacing: 0.04em;
}

.page-news .news-chip--update {
  color: #fff;
  background: var(--green);
}

.page-news .news-chip--feature {
  color: #fff;
  background: var(--teal);
}

.page-news .news-chip--match {
  color: #fff;
  background: var(--wine);
}

.page-news .news-chip--hot {
  color: var(--orange);
  background: rgba(242, 101, 34, 0.12);
  border: 1px solid rgba(242, 101, 34, 0.3);
}

.page-news .news-featured-body h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-news .news-featured-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

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

/* 更新日志章节 */
.page-news .news-log {
  background: var(--light);
  padding: 40px 0 72px;
}

.page-news .news-log-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

/* 侧边分类面板 */
.page-news .news-sidebar {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--teal);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-news .news-sidebar::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page-news .news-panel-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.page-news .news-sidebar .news-panel-title {
  color: #fff;
}

.page-news .news-sidebar-desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.page-news .news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.page-news .news-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--pill);
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.page-news .news-tag:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(18, 41, 51, 0.28);
}

.page-news .news-tag.is-active {
  color: var(--blue-deep);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 8px 20px rgba(18, 41, 51, 0.28);
}

.page-news .news-sidebar-card {
  margin-top: 28px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  z-index: 1;
}

.page-news .news-sidebar-icon {
  width: 26px;
  height: 26px;
  color: #ffb088;
  margin-bottom: 6px;
}

.page-news .news-sidebar-card p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.page-news .news-sidebar-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

/* 时间线 */
.page-news .news-timeline {
  min-width: 0;
}

.page-news .news-timeline-head {
  margin-bottom: 28px;
}

.page-news .news-timeline-head .news-panel-title {
  color: var(--text);
  font-size: 28px;
}

.page-news .news-timeline-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.page-news .timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.page-news .timeline-axis {
  position: relative;
  display: flex;
  justify-content: center;
}

.page-news .timeline-axis::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: -24px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--green) 0%, rgba(46, 110, 78, 0.2) 100%);
}

.page-news .timeline-entry:last-of-type .timeline-axis::before {
  display: none;
}

.page-news .timeline-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 22px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.25);
}

/* 时间线卡片 */
.page-news .timeline-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.page-news .timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.page-news .timeline-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.page-news .timeline-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--light);
  padding: 4px 12px;
  border-radius: var(--pill);
}

.page-news .timeline-badge--teal {
  color: var(--teal);
  background: rgba(14, 94, 110, 0.12);
}

.page-news .timeline-badge--wine {
  color: var(--wine);
  background: rgba(122, 46, 79, 0.12);
}

.page-news .timeline-index {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  opacity: 0.35;
}

.page-news .timeline-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-news .timeline-lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 时间线配图 */
.page-news .timeline-figure {
  position: relative;
  width: 100%;
  margin: 14px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--blue-deep);
}

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

.page-news .timeline-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-deep);
}

.page-news .timeline-figure--square img {
  max-width: 240px;
  margin: 0 auto;
}

/* 展开摘要 */
.page-news .timeline-more {
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.page-news .timeline-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  list-style: none;
}

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

.page-news .timeline-more summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  transition: transform var(--duration) var(--ease);
}

.page-news .timeline-more[open] summary::before {
  transform: rotate(45deg);
}

.page-news .timeline-more p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* 时间线底部 */
.page-news .timeline-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-left: 36px;
}

/* 桌面端布局 */
@media (min-width: 900px) {
  .page-news .news-featured {
    grid-template-columns: 1.05fr 1fr;
  }

  .page-news .news-featured-imgwrap {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .page-news .news-featured-body {
    padding: 32px 36px;
  }

  .page-news .news-log-grid {
    grid-template-columns: 280px 1fr;
    gap: 44px;
    align-items: start;
  }

  .page-news .news-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .page-news .timeline-entry {
    grid-template-columns: 28px 1fr;
    margin-bottom: 28px;
  }

  .page-news .timeline-entry:nth-of-type(even) .timeline-card {
    transform: translateX(12px);
  }

  .page-news .timeline-entry:nth-of-type(even) .timeline-card:hover {
    transform: translateX(12px) translateY(-4px);
  }

  .page-news .timeline-card {
    padding: 26px 28px;
  }

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

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .page-news .news-featured,
  .page-news .news-tag,
  .page-news .timeline-card,
  .page-news .timeline-more summary::before {
    transition: none;
  }

  .page-news .news-featured:hover,
  .page-news .news-tag:hover,
  .page-news .timeline-card:hover,
  .page-news .timeline-entry:nth-of-type(even) .timeline-card:hover {
    transform: none;
  }
}
