/* 资讯中心列表与详情 */

/* —— 列表页：参考行业资讯站 —— 扁平白底、宽版式、下划线 Tab、分隔线列表 —— */
.news-page--events {
  padding-top: 80px;
  min-height: 60vh;
  background: #fff;
}

/* 顶区：底图为单层，标题叠在图上（z-index，非上下排版） */
.news-page-hero {
  background: #fff;
}

.news-page-hero-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: clamp(200px, 32vw, 360px);
  background: #e5e7eb;
}

.news-page-hero-banner-img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: clamp(200px, 32vw, 360px);
  object-fit: cover;
  object-position: center;
}

.news-page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.2) 0%,
    rgba(15, 23, 42, 0.45) 100%
  );
}

.news-page-hero-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  padding: 32px 28px 40px;
  pointer-events: none;
}

.news-page-hero-text-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.news-page-hero .news-events-title {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.news-page-hero .news-events-lead {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.news-events-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 88px;
}

.news-page--events .news-events-wrap {
  padding-bottom: 104px;
}

.news-page--events .news-events-shell {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 0;
}

.news-bc {
  padding: 0 0 24px;
  font-size: 13px;
  color: #9ca3af;
  letter-spacing: 0;
}

/* 列表页：面包屑与下方筛选区拉开 */
.news-page--events .news-bc {
  padding-bottom: 32px;
}

.news-bc-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.news-bc a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.news-bc a:hover {
  color: var(--primary-color);
}

.news-bc-sep {
  color: #d1d5db;
  user-select: none;
}

.news-bc-current {
  color: #374151;
  font-weight: 500;
}

.news-events-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.news-events-lead {
  margin: 0;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  max-width: 56ch;
  font-weight: 400;
}

/* 筛选：主导航 = 浅灰条仅包住按钮；右侧同级 = 年份；子 Tab = 下划线式 */
.news-page--events .news-toolbar {
  border-bottom: none;
  padding-bottom: 12px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.news-page--events .news-toolbar-primary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  margin-top: 24px;
  box-sizing: border-box;
}

/* 左侧：三大分类已隐藏；资讯中心时为「新闻动态/公告/活动」，其余板块为空占位 */
.news-page--events .news-toolbar-tabs-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.news-page--events .news-toolbar-tabs-slot #newsFilterTypes.news-filter--tabs-pill:not(.is-hidden),
.news-page--events .news-toolbar-tabs-slot .news-filter--tabs-pill:not(.is-hidden) {
  margin-top: 0;
  margin-bottom: 0;
  width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
}

.news-page--events .news-filter-primary {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 4px;
  padding: 6px;
  margin: 0;
  max-width: 100%;
  width: fit-content;
  box-sizing: border-box;
  background: #eef1f5;
  border-radius: 4px;
  border-bottom: none;
}

.news-page--events .news-filter-primary button {
  position: relative;
  padding: 10px 22px;
  margin: 0;
  border-radius: 2px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.news-page--events .news-filter-primary button:hover:not(.active) {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.65);
}

.news-page--events .news-filter-primary button.active {
  background: var(--primary-color);
  color: #fff;
}

.news-page--events .news-filter-primary button.active:hover {
  background: var(--primary-color);
  color: #fff;
}

/* 资讯二级 Tab：与原先固定「三大 Tab」相同的灰底圆角条（pill） */
.news-page--events .news-filter--tabs-pill {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  /* stretch：灰条被拉高时各 Tab 同高，避免激活态蓝底贴顶、底部留白 */
  align-items: stretch;
  gap: 4px;
  padding: 6px;
  margin: 0;
  max-width: 100%;
  width: fit-content;
  box-sizing: border-box;
  background: #eef1f5;
  border-radius: 4px;
  border-bottom: none;
}

.news-page--events .news-filter--tabs-pill .news-type-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0;
  /* 显式上下内边距，覆盖各浏览器 button 默认不对称内边距，蓝底在灰条内垂直居中 */
  padding: 10px 22px;
  min-height: 40px;
  border-radius: 2px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #4b5563;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.news-page--events .news-filter--tabs-pill .news-type-tab:hover:not(.active) {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.65);
}

.news-page--events .news-filter--tabs-pill .news-type-tab.active {
  background: var(--primary-color);
  color: #fff;
}

.news-page--events .news-filter--tabs-pill .news-type-tab.active:hover {
  background: var(--primary-color);
  color: #fff;
}

/* 子级 Tab：轻量下划线 + 细顶距，与主导航灰条区分层级 */
.news-page--events .news-filter--tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 4px 0 0;
  margin: 6px 0 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid #e5e7eb;
}

.news-page--events .news-filter--tabs .news-type-tab {
  position: relative;
  margin: 0 4px -1px 0;
  padding: 10px 16px 12px;
  border-radius: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  border-bottom: 2px solid transparent;
}

.news-page--events .news-filter--tabs .news-type-tab:hover:not(.active) {
  color: #374151;
  background: transparent;
}

.news-page--events .news-filter--tabs .news-type-tab.active {
  color: var(--primary-color);
  background: transparent;
  border-bottom-color: var(--primary-color);
}

.news-page--events .news-filter--tabs .news-type-tab.active:hover {
  color: var(--primary-color);
  background: transparent;
  border-bottom-color: var(--primary-color);
}

/* 年份筛选（与主导航 Tab 同行靠右） */
.news-page--events .news-year-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex-shrink: 0;
}

.news-year-select {
  min-width: 160px;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  color: #374151;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.news-year-search-btn {
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--primary-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.news-year-search-btn:hover {
  opacity: 0.92;
}

/* 列表：双列卡片（参考行业资讯站） */
.news-stream {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-stream--cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-bottom: 80px;
}

/*
 * 工具栏与卡片网格之间必须有间距（仅靠 ul 默认 margin 易被全局样式清掉）
 */
.news-page--events ul#newsList.news-stream.news-stream--cards {
  margin-top: 32px;
  margin-bottom: 96px;
}

.news-stream--cards .news-stream__item {
  border-bottom: none;
}

.news-stream__link--card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 769px) {
  .news-stream__link--card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12);
  }

  .news-stream__link--card:hover .news-card__title {
    color: var(--primary-color);
  }
}

.news-card__date {
  margin-bottom: 14px;
}

.news-card__time {
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.news-card__dm {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 700;
  color: var(--primary-color);
}

.news-card__ds {
  font-size: 1rem;
  font-weight: 400;
  color: #93c5fd;
}

.news-card__dy {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.news-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.news-card__excerpt {
  flex: 1;
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
}

.news-card__more-arrow::before {
  content: '\2192';
  display: inline-block;
  margin-left: 2px;
  font-size: 14px;
}

.news-stream__link--card.news-stream__link--no-date .news-card__title {
  margin-top: 0;
}

/* 与上方卡片区留出明显间距（避免贴住末行卡片） */
.news-pagination--footer {
  border-top: 1px solid #e5e7eb;
  justify-content: center;
  gap: 24px;
}

.news-pagination--footer .page-info {
  font-size: 14px;
  color: #9ca3af;
  min-width: 5.5rem;
  text-align: center;
}

.news-page-btn {
  padding: 10px 22px;
  border-radius: 2px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.news-page-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #fff;
}

.news-page-btn:disabled {
  opacity: 0.4;
}

.news-page {
  padding-top: 80px;
  min-height: 60vh;
}

.news-hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: var(--spacing-md) 40px var(--spacing-sm);
  text-align: center;
}

.news-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.news-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border-color);
}

.news-filter button {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.news-filter button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.news-filter button.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* 工具栏：分区模式 / 资讯子 Tab / 单板块标题 */
.news-toolbar {
  border-bottom: 1px solid var(--border-color);
}

.news-filter.is-hidden,
.news-context-bar.is-hidden,
#newsFilterTypes.is-hidden {
  display: none !important;
}

.news-context-bar {
  padding: 20px 40px 24px;
  background: var(--bg-white);
}

.news-context-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 12px 24px;
  text-align: center;
}

.news-context-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.news-context-desc {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  width: 100%;
}

.news-context-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}

.news-context-back:hover {
  text-decoration: underline;
}

.news-filter-secondary {
  padding-top: 12px;
}

.news-filter-label {
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.news-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) 40px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.news-card-cover {
  aspect-ratio: 16 / 9;
  background: var(--bg-light);
  overflow: hidden;
}

.news-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-cover.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.news-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.news-card-meta .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eff6ff;
  color: var(--primary-color);
  margin-right: 8px;
}

.news-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card a.wrap-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-pagination {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/*
 * 列表页分页间距：
 * 1）勿用 .news-pagination { margin: 0 auto }，否则会抵消 margin-top；
 * 2）用更高优先级覆盖 .news-pagination 的 padding 简写上内边距。
 */
.news-page--events .news-pagination.news-pagination--footer {
  margin-top: 104px;
  padding-top: 64px;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.news-pagination button {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
}

.news-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.news-pagination .page-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.news-empty,
.news-error {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

/* 详情页 */
.news-detail-page {
  padding-top: 80px;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 80px;
}

.news-detail-inner {
  max-width: 880px;
  margin: 0 auto;
}

.news-bc--detail {
  padding: 8px 0 28px;
  margin-bottom: 8px;
}

.news-detail-header {
  padding-top: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.news-detail-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
}

.news-detail-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.news-detail-meta span {
  margin-right: 16px;
}

.news-detail-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-primary);
}

.news-detail-body img {
  max-width: 100%;
  height: auto;
}

.news-detail-body p {
  margin-bottom: 1em;
}

.news-detail-prevnext {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.news-detail-prevnext-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.news-detail-prevnext-link:hover:not(.is-disabled) {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--primary-color);
}

.news-detail-prevnext-link.is-disabled {
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 768px) {
  .news-page-hero-text {
    align-items: flex-end;
    padding: 24px 16px 28px;
  }

  .news-page-hero-banner-img {
    height: clamp(176px, 46vw, 280px);
  }

  .news-stream--cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-stream__link--card {
    padding: 18px 16px 16px;
  }

  .news-page--events .news-toolbar-primary-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 20px;
  }

  .news-page--events .news-year-bar {
    justify-content: stretch;
    width: 100%;
    flex-wrap: wrap;
  }

  .news-year-select {
    flex: 1;
    min-width: 0;
  }

  .news-events-wrap {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 4px;
  }

  /* 小屏：主导灰条仍铺满内容区宽度，便于三枚均分点击 */
  .news-page--events .news-filter-primary {
    width: 100%;
    justify-content: stretch;
    gap: 3px;
    padding: 5px;
  }

  .news-page--events .news-filter-primary button {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 10px;
    font-size: 14px;
  }

  /* 资讯 pill：灰底宽度随三钮内容收紧，不铺满一行 */
  .news-page--events .news-filter--tabs-pill {
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
    gap: 3px;
    padding: 5px;
  }

  .news-page--events .news-filter--tabs-pill .news-type-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex: 0 1 auto;
    padding: 9px 12px;
    min-height: 38px;
    font-size: 14px;
    line-height: 1.35;
  }

  /* 子 Tab（下划线版，若其它页仍使用） */
  .news-page--events .news-filter--tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    padding: 6px 0 0;
    margin-top: 8px;
  }

  .news-page--events .news-filter--tabs .news-type-tab {
    flex: 0 1 auto;
    padding: 8px 12px 10px;
    font-size: 13px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }
  .news-filter {
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-context-bar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-context-bar-inner {
    flex-direction: column;
    align-items: center;
  }

  .news-detail-prevnext {
    flex-direction: column;
    align-items: stretch;
  }

  .news-detail-prevnext-link {
    text-align: center;
  }
}
