
/* ============ 首页新闻区块 — 3列等宽网格 ============ */
.index-news-wrapper {
  position: relative;
  max-width: 95%;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 背景图片：放在 main 上 */
main {
  background-image: url('../images/content_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ============ 统一蓝白简约风格 ============ */

.news-block {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(21, 101, 192, 0.12);
  padding: 24px 24px 20px;
  border-left: 4px solid #1565c0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-block .news-header { border-bottom-color: #1565c0; }
.news-block .news-header h2 { color: #1565c0; }
.news-block .news-more a { color: #1565c0; }
.news-block .news-more a:hover { background: #1565c0; color: #fff; }

/* 轮播图卡片 — 无内边距，header 下方直接跟轮播 */
.news-block.carousel-block {
  padding: 0;
  overflow: hidden;
}

.news-block.carousel-block .news-header {
  padding: 16px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid #e8e8e8;
}

/* 标题区域 — 查看更多移至右侧 */
.news-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #1a73e8;
  position: relative;
}

.news-icon {
  font-size: 24px;
  line-height: 1;
}

.news-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

/* 查看更多 — 在标题右侧 */
.news-header .news-more {
  margin-top: 0;
  text-align: right;
}

.news-header .news-more a {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* 列表 */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: rgba(26, 115, 232, 0.03);
}

.news-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.news-item:hover .news-link {
  color: #1a73e8;
}

/* 分类标签 */
.news-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}

.news-badge-news {
  background: #e3f2fd;
  color: #1565c0;
}

.news-badge-notice {
  background: #fff3e0;
  color: #e65100;
}

.news-badge-research {
  background: #e8f5e9;
  color: #2e7d32;
}

.news-badge-party {
  background: #fce4ec;
  color: #c62828;
}

/* 标题文字 */
.news-title {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 日期 / 元信息 */
.news-date {
  flex-shrink: 0;
  font-size: 12px;
  color: #999;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-meta-item {
  font-size: 12px;
  color: #999;
}

/* ============ 列表页专用样式 ============ */
.list-page-wrapper {
  max-width: 95%;
  margin: 0 auto;
  padding: 30px 20px;
}

.list-page-wrapper .list-back {
  display: inline-block;
  margin-bottom: 24px;
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
}

.list-page-wrapper .list-back:hover {
  text-decoration: underline;
}

.list-page-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #1a73e8;
}

.list-page-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  transition: background 0.2s, color 0.2s;
}

.list-page-item:hover {
  background: rgba(26, 115, 232, 0.03);
  color: #1a73e8;
}

.list-page-item .item-title {
  flex: 1;
  font-size: 15px;
}

.list-page-item .item-date {
  flex-shrink: 0;
  font-size: 13px;
  color: #999;
  margin-left: 20px;
}

.list-page-item .item-meta {
  flex-shrink: 0;
  font-size: 12px;
  color: #bbb;
  margin-left: 16px;
}

/* ============ 列表/详情页共用 — 左右分栏 ============ */
.page-layout {
  max-width: 95%;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* 左侧栏目导航 */
.page-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}

.sidebar-title {
  margin: 0;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: #1a73e8;
}

.sidebar-nav {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-link {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: all .2s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: #1a73e8;
  background: rgba(26,115,232,.04);
  border-left-color: #1a73e8;
}

.sidebar-link.active {
  color: #1a73e8;
  background: rgba(26,115,232,.08);
  border-left-color: #1a73e8;
  font-weight: 600;
}

/* 右侧主内容 */
.page-main {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 32px 36px;
}

/* 面包屑导航 */
.page-breadcrumb {
  font-size: 13px;
  color: #999;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.page-breadcrumb a {
  color: #1a73e8;
  text-decoration: none;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb-current {
  color: #666;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin-bottom: 14px;
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
  font-size: 14px;
  color: #999;
}

.page-content {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
}

.detail-content p {
  margin-bottom: 16px;
  text-indent: 2em;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .index-news-wrapper {
    grid-template-columns: 1fr;
    padding: 30px 12px;
    gap: 20px;
  }

  .news-block {
    padding: 0 0 16px !important;
  }

  .news-block .news-header {
    padding: 14px 16px;
  }

  .news-block.carousel-block .news-header {
    padding: 14px 16px;
  }

  .news-header h2 {
    font-size: 18px;
  }

  .news-link {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 6px;
  }

  .news-title {
    width: 100%;
    flex: none;
    white-space: normal;
  }

  .news-date {
    margin-left: auto;
  }

  .list-page-wrapper,
  .page-layout {
    flex-direction: column;
    padding: 20px 12px;
    gap: 20px;
  }

  .page-sidebar {
    width: 100%;
  }

  .page-main {
    padding: 20px 18px;
  }

  .list-page-title,
  .page-title {
    font-size: 22px;
  }

  .list-page-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .list-page-item .item-date {
    margin-left: 0;
  }

  .list-page-item .item-meta {
    margin-left: 0;
    font-size: 11px;
  }

  #download .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}