/* ===== 页面专属：page-news（最新动态） ===== */
.page-news {
  --news-hero-height: 300px;
  --timeline-line-color: #D4AF37;
  --timeline-dot-size: 16px;
  --timeline-card-radius: 18px;
  --filter-gap: 10px;
}

/* ----- Hero 区 ----- */
.page-news .news-hero {
  position: relative;
  width: 100%;
  height: var(--news-hero-height);
  overflow: hidden;
  background-color: #0B1A3A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news .news-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  display: block;
}

.page-news .news-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width, 1200px);
  padding: 0 var(--space-md, 24px);
  color: #FFFFFF;
  text-align: center;
}

.page-news .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--small-size, 14px);
  margin-bottom: 12px;
  color: rgba(255,255,255,0.7);
}

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

.page-news .breadcrumb a:hover,
.page-news .breadcrumb a:focus-visible {
  color: #F28C28;
  outline: none;
  text-decoration: underline;
}

.page-news .breadcrumb-sep {
  color: rgba(255,255,255,0.35);
  user-select: none;
}

.page-news .news-hero-title {
  font-size: var(--h1-size, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.page-news .news-hero-desc {
  font-size: var(--body-size, 16px);
  line-height: var(--line-height-body, 1.7);
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto;
}

/* ----- 筛选栏 ----- */
.page-news .filter-wrapper {
  padding-top: var(--space-lg, 48px);
  padding-bottom: var(--space-sm, 16px);
}

.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--filter-gap);
  justify-content: center;
}

.page-news .filter-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.page-news .filter-label {
  display: inline-block;
  padding: 8px 22px;
  font-size: var(--small-size, 14px);
  font-weight: 600;
  border: 2px solid #D4AF37;
  border-radius: var(--radius-pill, 999px);
  color: #0B1A3A;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s);
  user-select: none;
  letter-spacing: 0.02em;
}

.page-news .filter-radio:checked + .filter-label {
  background: #D4AF37;
  color: #0B1A3A;
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.3);
}

.page-news .filter-label:hover {
  background: rgba(212,175,55,0.12);
  border-color: #F28C28;
}

.page-news .filter-radio:focus-visible + .filter-label {
  outline: 2px solid #D4AF37;
  outline-offset: 3px;
}

/* ----- 筛选功能（:has 控制显示） ----- */
.page-news:has(#f-all:checked) .timeline-item { display: flex; }
.page-news:has(#f-update:checked) .timeline-item[data-category="update"] { display: flex; }
.page-news:has(#f-update:checked) .timeline-item:not([data-category="update"]) { display: none; }
.page-news:has(#f-info:checked) .timeline-item[data-category="info"] { display: flex; }
.page-news:has(#f-info:checked) .timeline-item:not([data-category="info"]) { display: none; }
.page-news:has(#f-observe:checked) .timeline-item[data-category="observe"] { display: flex; }
.page-news:has(#f-observe:checked) .timeline-item:not([data-category="observe"]) { display: none; }

/* ----- 章节标题 ----- */
.page-news .section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: var(--space-lg, 48px);
  border-bottom: 2px solid rgba(212,175,55,0.25);
  padding-bottom: 12px;
}

.page-news .section-index {
  font-size: var(--h3-size, 28px);
  font-weight: 800;
  color: #D4AF37;
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-news .section-title {
  font-size: var(--h2-size, 36px);
  font-weight: 700;
  color: #0B1A3A;
  margin: 0;
  letter-spacing: -0.02em;
}

/* ----- 时间轴布局 ----- */
.page-news .timeline-section {
  padding-bottom: var(--space-xl, 80px);
}

.page-news .timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 40px;
}

/* 时间轴竖线 */
.page-news .timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #D4AF37 0%, rgba(212,175,55,0.2) 100%);
  border-radius: 2px;
}

/* ----- 时间轴单项 ----- */
.page-news .timeline-item {
  display: flex;
  gap: 0;
  position: relative;
  padding-bottom: var(--space-lg, 48px);
  opacity: 1;
  transition: opacity var(--transition-smooth, 0.35s);
}

.page-news .timeline-item:last-child {
  padding-bottom: 0;
}

/* 标记区：编号 + 圆点 */
.page-news .timeline-marker {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.page-news .timeline-num {
  font-size: var(--small-size, 14px);
  font-weight: 700;
  color: #0B1A3A;
  background: #FFFFFF;
  border: 2px solid #D4AF37;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(11,26,58,0.08);
}

.page-news .timeline-dot {
  display: none;
}

/* ----- 卡片区 ----- */
.page-news .timeline-card {
  flex: 1;
  background: #FFFFFF;
  border-radius: var(--timeline-card-radius);
  padding: var(--space-md, 24px);
  box-shadow: 0 2px 16px rgba(11,26,58,0.06);
  border-left: 4px solid #D4AF37;
  transition: box-shadow var(--transition-smooth, 0.35s), transform var(--transition-smooth, 0.35s);
  position: relative;
}

.page-news .timeline-item:hover .timeline-card,
.page-news .timeline-item:focus-within .timeline-card {
  box-shadow: 0 6px 28px rgba(11,26,58,0.10);
  transform: translateY(-2px);
}

.page-news .timeline-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.page-news .timeline-time {
  font-size: var(--small-size, 14px);
  color: #666;
  letter-spacing: 0.02em;
}

.page-news .timeline-title {
  font-size: var(--h4-size, 22px);
  font-weight: 700;
  color: #0B1A3A;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.page-news .timeline-summary {
  font-size: var(--body-size, 16px);
  line-height: var(--line-height-body, 1.7);
  color: #1A1A2E;
  margin: 0 0 6px;
}

.page-news .timeline-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin: 0;
}

.page-news .timeline-item:hover .timeline-detail,
.page-news .timeline-item:focus-within .timeline-detail {
  max-height: 360px;
  opacity: 1;
  margin-top: 12px;
}

.page-news .timeline-detail p {
  font-size: var(--body-size, 16px);
  line-height: var(--line-height-body, 1.7);
  color: #333;
  margin: 0 0 10px;
}

.page-news .timeline-link {
  display: inline-block;
  color: #D4AF37;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast, 0.2s), color var(--transition-fast, 0.2s);
}

.page-news .timeline-link:hover,
.page-news .timeline-link:focus-visible {
  color: #F28C28;
  border-bottom-color: #F28C28;
  outline: none;
}

/* 卡片内的图标 */
.page-news .timeline-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 64px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
  transition: opacity var(--transition-smooth, 0.35s);
}

.page-news .timeline-item:hover .timeline-icon {
  opacity: 0.35;
}

/* 行业观察配图（宽） */
.page-news .timeline-img-wide {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-md, 16px);
  object-fit: cover;
  margin-top: 14px;
  display: block;
  box-shadow: 0 2px 12px rgba(11,26,58,0.06);
}

/* ----- Badge 变体（仅在 page-news 内微调） ----- */
.page-news .badge-gold {
  background: rgba(212,175,55,0.15);
  color: #0B1A3A;
  border: 1px solid #D4AF37;
}

.page-news .badge-orange {
  background: rgba(242,140,40,0.15);
  color: #8B4E00;
  border: 1px solid #F28C28;
}

.page-news .badge-silver {
  background: rgba(192,192,192,0.25);
  color: #333;
  border: 1px solid #C0C0C0;
}

.page-news .badge {
  display: inline-block;
  padding: 3px 14px;
  border-radius: var(--radius-pill, 999px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ----- 常见更新说明区 ----- */
.page-news .info-section {
  padding-top: var(--space-lg, 48px);
  padding-bottom: var(--space-xl, 80px);
}

.page-news .info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg, 48px);
}

.page-news .info-card {
  padding: var(--space-md, 24px);
  border-radius: var(--radius-lg, 24px);
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(11,26,58,0.04);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-smooth, 0.35s), transform var(--transition-smooth, 0.35s);
}

.page-news .info-card:hover {
  box-shadow: 0 6px 24px rgba(11,26,58,0.08);
  transform: translateY(-3px);
}

.page-news .card-highlight {
  border-left: 4px solid #D4AF37;
}

.page-news .info-card-icon {
  margin-bottom: var(--space-sm, 16px);
  max-width: 80px;
}

.page-news .info-card-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm, 8px);
  object-fit: cover;
  display: block;
}

.page-news .info-card-title {
  font-size: var(--h4-size, 22px);
  font-weight: 700;
  color: #0B1A3A;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.page-news .info-card-text {
  font-size: var(--body-size, 16px);
  line-height: var(--line-height-body, 1.7);
  color: #1A1A2E;
  margin: 0 0 14px;
  flex: 1;
}

.page-news .info-card-link {
  display: inline-block;
  color: #D4AF37;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color var(--transition-fast, 0.2s), color var(--transition-fast, 0.2s);
}

.page-news .info-card-link:hover,
.page-news .info-card-link:focus-visible {
  color: #F28C28;
  border-bottom-color: #F28C28;
  outline: none;
}

/* ----- 信任声明 ----- */
.page-news .trust-note {
  padding-top: var(--space-sm, 16px);
  padding-bottom: var(--space-lg, 48px);
  border-top: 1px solid rgba(192,192,192,0.3);
}

.page-news .trust-note p {
  font-size: var(--small-size, 14px);
  color: #888;
  line-height: var(--line-height-body, 1.7);
  margin: 0;
  text-align: center;
}

/* ===== 响应式：平板 >= 640px ===== */
@media (min-width: 640px) {
  .page-news .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news .info-card:first-child {
    grid-column: 1 / -1;
  }

  .page-news .news-hero-title {
    font-size: 40px;
  }

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

  .page-news .timeline-marker {
    left: -56px;
    width: 48px;
  }

  .page-news .timeline-num {
    width: 38px;
    height: 38px;
    font-size: var(--body-size, 16px);
  }

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

  .page-news .timeline-icon {
    width: 56px;
    right: 20px;
    bottom: 20px;
  }

  .page-news .timeline-img-wide {
    max-width: 320px;
  }
}

/* ===== 响应式：桌面 >= 1024px ===== */
@media (min-width: 1024px) {
  .page-news .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-news .info-card:first-child {
    grid-column: auto;
  }

  .page-news .news-hero-title {
    font-size: var(--h1-size, 48px);
  }

  .page-news .timeline-card {
    padding: var(--space-lg, 48px) var(--space-md, 24px);
  }

  .page-news .timeline-icon {
    width: 64px;
    right: 24px;
    bottom: 24px;
  }

  .page-news .timeline-img-wide {
    max-width: 400px;
    margin-top: 18px;
  }

  .page-news .timeline-detail p {
    max-width: 640px;
  }

  .page-news .filter-label {
    padding: 10px 28px;
    font-size: var(--body-size, 16px);
  }
}

/* ===== 响应式：大屏 >= 1440px ===== */
@media (min-width: 1440px) {
  .page-news .timeline {
    padding-left: 72px;
  }

  .page-news .timeline-marker {
    left: -72px;
    width: 56px;
  }

  .page-news .timeline-num {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

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

  .page-news .timeline-card {
    padding: var(--space-xl, 80px) var(--space-lg, 48px);
  }
}

/* ===== 移动端额外优化：防止横向溢出 ===== */
@media (max-width: 399px) {
  .page-news .news-hero {
    height: 220px;
  }

  .page-news .news-hero-title {
    font-size: 28px;
  }

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

  .page-news .timeline-marker {
    left: -32px;
    width: 28px;
  }

  .page-news .timeline-num {
    width: 26px;
    height: 26px;
    font-size: 12px;
    border-width: 1.5px;
  }

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

  .page-news .timeline-card {
    padding: var(--space-sm, 16px);
    border-left-width: 3px;
    border-radius: var(--radius-md, 16px);
  }

  .page-news .timeline-icon {
    width: 40px;
    right: 10px;
    bottom: 10px;
    opacity: 0.12;
  }

  .page-news .timeline-img-wide {
    max-width: 100%;
  }

  .page-news .filter-label {
    padding: 6px 16px;
    font-size: 13px;
  }

  .page-news .section-title {
    font-size: 24px;
  }

  .page-news .info-card {
    padding: var(--space-sm, 16px);
  }

  .page-news .info-card-icon {
    max-width: 60px;
  }
}
