/* page-news 专属样式 - 文章中心 */
.page-news {
  --page-bg-accent: rgba(10, 61, 145, 0.08);
  --page-timeline-color: var(--color-accent, #FF6B35);
  --page-card-hover-bg: rgba(255, 107, 53, 0.08);
  --page-heading-clip: polygon(0 0, 100% 0, 95% 100%, 0 100%);
  position: relative;
  color: var(--color-text, #FFFFFF);
  background: var(--color-bg, #0D1117);
}

/* 首屏标题区域 */
.page-news .article-intro {
  padding: var(--space-3xl, 64px) 0 var(--space-2xl, 48px);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-news .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 8px);
  font-size: 0.85rem;
  font-family: var(--font-body, 'Roboto Condensed', Arial, sans-serif);
  color: var(--color-text-secondary, #B0B8C5);
  margin-bottom: var(--space-md, 16px);
}

.page-news .breadcrumb a {
  color: var(--color-accent, #FF6B35);
  text-decoration: none;
  transition: opacity 0.2s;
}

.page-news .breadcrumb a:hover {
  opacity: 0.8;
}

.page-news .breadcrumb-separator {
  color: var(--color-text-secondary, #B0B8C5);
}

.page-news .breadcrumb-current {
  color: var(--color-text, #FFFFFF);
}

.page-news .section-title {
  font-family: var(--font-heading, 'Inter', system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 var(--space-md, 16px);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  text-stroke: 1px rgba(255, 255, 255, 0.05);
  clip-path: var(--page-heading-clip);
  padding: 0.2em 0.5em 0.2em 0;
  display: inline-block;
  background: linear-gradient(135deg, var(--color-text, #FFFFFF) 60%, var(--color-accent, #FF6B35));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 所有章节共用 */
.page-news .timeline-section {
  padding: var(--space-2xl, 48px) 0;
}

.page-news .timeline-section + .timeline-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.page-news .section-subtitle {
  font-family: var(--font-heading, 'Inter', system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin: 0 0 var(--space-xl, 32px);
  color: var(--color-text, #FFFFFF);
  position: relative;
  display: inline-block;
}

.page-news .section-subtitle::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: var(--color-accent, #FF6B35);
  margin-top: var(--space-sm, 8px);
  border-radius: 2px;
}

.page-news .intro-text {
  font-size: 1.1rem;
  max-width: 640px;
  font-family: var(--font-body, 'Roboto Condensed', Arial, sans-serif);
  margin: var(--space-md, 16px) 0 0;
  line-height: 1.6;
}

/* 时间线布局 */
.page-news .timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg, 24px);
  position: relative;
  padding-left: var(--space-3xl, 64px);
}

.page-news .timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--page-timeline-color), var(--color-primary, #0A3D91));
  opacity: 0.6;
}

/* 每一项 */
.page-news .timeline-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md, 16px);
  background: var(--color-surface-glass, rgba(10, 61, 145, 0.15));
  backdrop-filter: blur(var(--glass-blur, 12px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 12px));
  border: var(--glass-border, 1px solid rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 8px);
  padding: var(--space-md, 16px);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  cursor: default;
  position: relative;
}

.page-news .timeline-item:hover {
  background: var(--page-card-hover-bg);
  transform: translateX(4px);
  box-shadow: var(--neon-glow, 0 0 12px rgba(10, 61, 145, 0.5));
}

/* 时间标记 */
.page-news .timeline-marker {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  position: relative;
  z-index: 1;
}

.page-news .timeline-marker .icon-timeline {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--page-timeline-color);
  background: var(--color-bg, #0D1117);
}

/* 内容区 */
.page-news .timeline-content {
  flex: 1;
  min-width: 0;
}

.page-news .timeline-heading {
  font-family: var(--font-heading, 'Inter', system-ui, sans-serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 var(--space-xs, 4px);
  color: var(--color-text, #FFFFFF);
  line-height: 1.3;
}

.page-news .timeline-excerpt {
  margin: 0 0 var(--space-sm, 8px);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 可展开详细内容 */
.page-news [data-details] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s;
  opacity: 0;
  font-size: 0.9rem;
  margin-top: 0;
}

.page-news [data-expandable="summary"]:hover [data-details],
.page-news [data-expandable="summary"]:focus-within [data-details] {
  max-height: 100px;
  opacity: 1;
  margin-top: var(--space-sm, 8px);
}

/* 右侧图片 */
.page-news .timeline-visual {
  flex-shrink: 0;
  width: 200px;
  margin-top: var(--space-sm, 8px);
}

.page-news .timeline-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 200px;
  border-radius: var(--radius-sm, 4px);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 返回顶部按钮 */
.page-news .back-to-top {
  position: fixed;
  bottom: var(--space-lg, 24px);
  right: var(--space-lg, 24px);
  z-index: 100;
  background: var(--color-primary, #0A3D91);
  color: var(--color-text, #FFFFFF);
  border: none;
  border-radius: var(--radius-sm, 4px);
  padding: var(--space-sm, 8px) var(--space-md, 16px);
  font-family: var(--font-body, 'Roboto Condensed', Arial, sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--neon-glow, 0 0 12px rgba(10, 61, 145, 0.5));
  transition: transform 0.2s, opacity 0.3s, box-shadow 0.3s;
  opacity: 0.9;
  line-height: 1.2;
}

.page-news .back-to-top:hover,
.page-news .back-to-top:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--neon-glow-accent, 0 0 14px rgba(255, 107, 53, 0.6));
  opacity: 1;
}

/* 移动端优先：窄屏适配 */
@media (max-width: 768px) {
  .page-news .article-intro {
    padding: var(--space-xl, 32px) 0 var(--space-lg, 24px);
  }

  .page-news .timeline {
    padding-left: var(--space-2xl, 48px);
  }

  .page-news .timeline::before {
    left: 20px;
  }

  .page-news .timeline-item {
    flex-wrap: wrap;
    padding: var(--space-sm, 8px);
  }

  .page-news .timeline-marker {
    width: 40px;
    height: 40px;
  }

  .page-news .timeline-marker img {
    width: 40px;
    height: 40px;
  }

  .page-news .timeline-content {
    width: calc(100% - 56px);
  }

  .page-news .timeline-visual {
    width: 100%;
    margin-top: var(--space-sm, 8px);
  }

  .page-news .timeline-visual img {
    max-width: 100%;
    height: auto;
  }

  .page-news .back-to-top {
    bottom: var(--space-md, 16px);
    right: var(--space-md, 16px);
    padding: var(--space-xs, 4px) var(--space-sm, 8px);
    font-size: 0.8rem;
  }
}

/* 桌面端调整 */
@media (min-width: 769px) {
  .page-news .timeline-item {
    align-items: center;
  }

  .page-news .timeline-visual {
    margin-top: 0;
  }
}
