/* ============================================================
   Blockchain Downloads CSS
   合并自：下载列表页 + 下载详情页
   ============================================================ */

/* ----- 基础容器 ----- */
.gg-news-right .news-list-wrapper {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 40, 80, 0.08);
  padding: 16px 20px 8px 20px;
  border: 1px solid #e9edf2;
}

.news_list_dh {
  color: #666;
  text-decoration: none;
}
.news_list_dh:hover {
  color: #666;
  text-decoration: none;
}

/* ============================================================
   下载列表页样式
   ============================================================ */

/* ----- 下载列表项 ----- */
.download-list .download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.15s ease;
}

.download-list .download-item:last-child {
  border-bottom: none;
}

.download-list .download-item:hover {
  background-color: #f7f9fc;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 4px;
}

/* ----- 下载图标 ----- */
.download-list .download-icon {
  flex-shrink: 0;
  width: 60px;
  height: 44px;
  background: #1e88e5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

/* 统一为灰色调，与详情页文件图标区分 */
.download-list .download-icon.pdf,
.download-list .download-icon.doc,
.download-list .download-icon.xls,
.download-list .download-icon.zip,
.download-list .download-icon.ppt,
.download-list .download-icon.txt,
.download-list .download-icon.other {
  background: #95a5a6;
}

/* ----- 下载标题 ----- */
.download-list .download-body {
  flex: 1;
  min-width: 0;
}

.download-list .download-title {
  font-size: 14px;
  font-weight: bold;
  color: #1e2a3a;
  line-height: 1.5;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.download-list .download-title:hover {
  color: #1e88e5;
  text-decoration: none;
}

.download-list .download-meta {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.download-list .download-meta span {
  margin-right: 16px;
}

/* ----- 下载按钮 ----- */
.download-list .download-action {
  flex-shrink: 0;
}

.download-list .download-action .btn-download {
  display: inline-block;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #1e88e5;
  background: #eef5fb;
  border: 1px solid #d4e3f0;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.download-list .download-action .btn-download:hover {
  background: #1e88e5;
  color: #fff;
  border-color: #1e88e5;
  text-decoration: none;
}

.download-list .download-action .download-count {
  font-size: 11px;
  color: #bbb;
  margin-left: 6px;
}

/* ----- 标签 ----- */
.label-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 0 8px;
  height: 18px;
  line-height: 18px;
  border-radius: 3px;
  margin-right: 6px;
  color: #fff;
  background: #9aa9b9;
}

.label-tag.hot {
  background: #c0392b;
}

.label-tag.important {
  background: #0b76e4;
}

.label-tag.new {
  background: #27ae60;
}

/* ----- 分页 ----- */
.pagination-wrapper {
  text-align: center;
  padding: 20px 0 12px 0;
}

.pagination-wrapper .pagination {
  display: inline-block;
  padding-left: 0;
  margin: 0;
  border-radius: 4px;
}

.pagination-wrapper .pagination > li {
  display: inline;
}

.pagination-wrapper .pagination > li > a,
.pagination-wrapper .pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 14px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #1e3a5f;
  text-decoration: none;
  background-color: #ffffff;
  border: 1px solid #dce1e8;
  font-size: 14px;
}

.pagination-wrapper .pagination > li > a:hover {
  background-color: #1e88e5;
  color: #fff;
  border-color: #1e88e5;
}

.pagination-wrapper .pagination > .active > a,
.pagination-wrapper .pagination > .active > span {
  background-color: #1e88e5;
  border-color: #1e88e5;
  color: #fff;
  cursor: default;
}

/* ----- 分类筛选 ----- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 14px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 6px;
}

.filter-tabs .filter-item {
  display: inline-block;
  padding: 4px 16px;
  font-size: 13px;
  color: #555;
  background: #f5f7fa;
  border: 1px solid #e9edf2;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.filter-tabs .filter-item:hover {
  background: #eef5fb;
  border-color: #1e88e5;
  color: #1e88e5;
  text-decoration: none;
}

.filter-tabs .filter-item.active {
  background: #1e88e5;
  border-color: #1e88e5;
  color: #fff;
}

/* ----- 空状态 ----- */
.empty-state {
  text-align: center;
  padding: 40px 0;
  color: #999;
}
.empty-state i {
  font-size: 48px;
  color: #ddd;
  display: block;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 14px;
}

/* ----- 分类名称徽标 ----- */
.category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 0 10px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  margin-right: 8px;
  color: #fff;
}
.category-badge.default,
.category-badge.magazine {
  background: #7f8c8d;
}

/* ============================================================
   下载详情页样式
   ============================================================ */

/* ----- 详情头部 ----- */
.download-detail-header {
  text-align: center;
  padding: 20px 0 10px 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.download-detail-header .detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a3c6e;
  margin-bottom: 10px;
}

.download-detail-header .detail-meta {
  font-size: 13px;
  color: #999;
}

.download-detail-header .detail-meta span {
  margin: 0 12px;
}

/* ----- 文件信息卡片 ----- */
.file-info-card {
  background: #f7f9fc;
  border: 1px solid #e9edf2;
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.file-info-card .file-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.file-info-card .file-icon-large {
  width: 70px;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
}

.file-info-card .file-icon-large.pdf { background: #e74c3c; }
.file-info-card .file-icon-large.doc { background: #2b6cb0; }
.file-info-card .file-icon-large.xls { background: #27ae60; }
.file-info-card .file-icon-large.zip { background: #f39c12; }
.file-info-card .file-icon-large.ppt { background: #d35400; }
.file-info-card .file-icon-large.txt { background: #7f8c8d; }
.file-info-card .file-icon-large.other { background: #95a5a6; }

.file-info-card .file-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e2a3a;
}

.file-info-card .file-info p {
  margin: 0;
  font-size: 13px;
  color: #888;
}

.file-info-card .btn-download-large {
  padding: 10px 32px;
  font-size: 16px;
  font-weight: 600;
  background: #1e88e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s;
}

.file-info-card .btn-download-large:hover {
  background: #1565c0;
  color: #fff;
  text-decoration: none;
}

/* ----- 下载说明 ----- */
.download-desc {
  padding: 16px 0;
  border-top: 1px solid #eee;
  margin-top: 16px;
}

.download-desc h5 {
  font-size: 15px;
  font-weight: 700;
  color: #1a3c6e;
  margin-bottom: 10px;
}

.download-desc .desc-content {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

/* ----- 上一篇/下一篇 ----- */
.prev-next-nav {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 8px 0;
  border-top: 1px solid #eee;
  margin-top: 16px;
}

.prev-next-nav .nav-item {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.prev-next-nav .nav-item:hover {
  color: #1e88e5;
  text-decoration: none;
}

.prev-next-nav .nav-item.disabled {
  color: #ccc;
  cursor: default;
}

.prev-next-nav .nav-item .arrow {
  color: #1e88e5;
}

/* ============================================================
   响应式适配
   ============================================================ */

@media (max-width: 768px) {
  /* 列表页响应式 */
  .gg-news-right .news-list-wrapper {
    padding: 12px 14px;
  }

  .download-list .download-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0;
  }

  .download-list .download-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .download-list .download-title {
    font-size: 13px;
  }

  .download-list .download-action .btn-download {
    padding: 3px 12px;
    font-size: 11px;
  }

  .filter-tabs .filter-item {
    padding: 3px 12px;
    font-size: 12px;
  }

  .pagination-wrapper .pagination > li > a,
  .pagination-wrapper .pagination > li > span {
    padding: 4px 10px;
    font-size: 13px;
  }

  /* 详情页响应式 */
  .download-detail-header .detail-title {
    font-size: 18px;
  }

  .file-info-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .file-info-card .file-left {
    flex-direction: column;
  }

  .file-info-card .btn-download-large {
    width: 100%;
    text-align: center;
  }

  .prev-next-nav {
    flex-direction: column;
    gap: 8px;
  }

  .prev-next-nav .nav-item {
    max-width: 100%;
    white-space: normal;
  }
}