body {
  background: #f5f6fa;
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}
.header-navbar {
  height: 64px;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 10 !important;
}
/* 头部的特定样式 */
.header-container {
  box-shadow: 0 0px 0px #613737 !important;
  max-width: 100% !important;
  padding: 0 30px !important;
  margin: 0 !important;
  justify-content: flex-start !important;
  position: relative !important;
}
.heder-navItem {
  margin-right: 40px;
}

.heder-navLink {
  font-size: 15px;
  cursor: pointer;
  &:hover {
    color: #353fdf !important;
  }
}
.nav-item.dropdown {
    position: static;
  }
/* 下拉菜单基本样式 */
.search-dropdown {
    position: absolute; /* 绝对定位 */
    top: 100%; /* 位于父元素下方 */
    left: 0;
    right: 0; /* 左右贴边，宽度与一致 */
    padding: 20px 0;
    margin: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(-10px); /* 初始隐藏 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
  }
  
/* 悬停时显示 */
.nav-item.dropdown:hover .search-dropdown {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
  }
  .dropdown-row {
    padding-left: 234px;
    justify-content: flex-start !important;
  }
  .dropdown-rowCol9 {
    width: 705px !important;
  }
  .dropdown-rowCol3 {
    width: 200px !important;
  }
  .search-rowTitle {
    color: var(--text-3, #86909c);
    font-family: 'PingFang SC';
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e5e6eb;
  }
  .search-rowItem {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  /* 菜单内容居中 */
  .search-dropdown .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
  }
  .heder-navItem {
    margin-right: 40px;
    position: relative;
  }
  .heder-navLink {
    font-size: 15px !important;
    cursor: pointer;
    color: #1d2129 !important;
  }
  .segmentation {
    background-color: #353fdf;
    height: 1.5px;
    width: 77px;
    position: absolute;
    top: 50px;
  }
  .heder-navItem.dropdown:hover .segmentation {
    display: block !important; /* 或 inline-block, flex 等，根据实际需求选择 */
  }
/* 文章列表整体容器 */
.container {
  max-width: 900px;
  margin: 30px auto 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  /* padding: 32px 18px 24px 18px; */
}

.book {
  margin-bottom: 10px;
  padding: 10px 0;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
}

/* 标题样式 */
h2 {
  font-size: 1.5em;
  color: #222;
  border-bottom: 1.5px solid #e5e7eb;
  padding-bottom: 8px;
  margin-bottom: 24px;
  font-weight: 600;
}

/* 卡片样式 */
.card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
  margin-bottom: 18px;
  background: #fafbfc;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.card:hover {
  box-shadow: 0 2px 12px rgba(52, 152, 219, 0.07);
  border-color: #bcdffb;
}

.card-title {
  font-size: 1.13em;
  color: #222;
  font-weight: 500;
  margin-bottom: 0;
}

.card-title a {
  color: #222;
  text-decoration: none;
}

.card-title a:hover {
  color: #3498db;
  text-decoration: underline;
}

.badge.bg-category {
  background: #eaf4fb;
  color: #3498db;
  border: 1px solid #bcdffb;
}

.btn-outline-primary {
  border-color: #3498db;
  color: #3498db;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}

.btn-outline-primary:hover {
  background: #3498db;
  color: #fff;
}

/* 优化后的分页样式 */
.pagination {
  margin: 32px 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-item:first-child {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 8px 12px;
  margin-right: 16px;
  font-size: 0.9em;
  color: #666;
  border: 1px solid #e5e7eb;
}

.pagination .page-item .page-link {
  color: #555;
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination .page-item .page-link:hover {
  background: #f0f7ff;
  border-color: #3498db;
  color: #3498db;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-color: #3498db;
  color: #fff;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
  font-weight: 600;
}

.pagination .page-item.disabled .page-link {
  color: #adb5bd;
  background: #f8f9fa;
  border-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
  transform: none;
  box-shadow: none;
  background: #f8f9fa;
  border-color: #e9ecef;
  color: #adb5bd;
}

/* 省略号样式 */
.pagination .page-item.disabled .page-link {
  background: transparent;
  border: none;
  color: #adb5bd;
  font-weight: bold;
  cursor: default;
}

/* 上一页/下一页按钮特殊样式 */
.pagination .page-item:nth-child(2) .page-link,
.pagination .page-item:last-child .page-link {
  background: #f8f9fa;
  color: #495057;
  font-weight: 500;
  padding: 8px 16px;
}

.pagination .page-item:nth-child(2) .page-link:hover,
.pagination .page-item:last-child .page-link:hover {
  background: #e9ecef;
  color: #495057;
}

.pagination .page-item:nth-child(2).disabled .page-link,
.pagination .page-item:last-child.disabled .page-link {
  background: #f8f9fa;
  color: #adb5bd;
  opacity: 0.5;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .container {
    padding: 10px 2px;
  }

  h2 {
    font-size: 1.1em;
    padding-bottom: 4px;
  }

  .card-title {
    font-size: 1em;
  }

  .pagination {
    margin: 20px 0;
    gap: 2px;
  }

  .pagination .page-item .page-link {
    padding: 6px 8px;
    font-size: 0.85em;
    min-width: 32px;
  }

  .pagination .page-item:first-child {
    margin-right: 8px;
    padding: 6px 8px;
    font-size: 0.8em;
  }

  .pagination .page-item:nth-child(2) .page-link,
  .pagination .page-item:last-child .page-link {
    padding: 6px 10px;
  }
}

.badge-black {
  color: #222 !important;
  background: #f2f2f2;
  border: 1px solid #e5e7eb;
}

/* 固定分类筛选栏 */
.category-filter {
  position: sticky;
  top: 50px;
  background: #fff;
  z-index: 100;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 0 !important;
}

.category-filter .d-flex {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.category-filter .d-flex::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* 分类按钮样式优化 */
.category-filter .btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.9em;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.category-filter .btn-primary {
  background: #3498db;
  border-color: #3498db;
  color: #fff;
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.25);
}

.category-filter .btn-outline-secondary {
  background: #f8f9fa;
  border-color: #e5e7eb;
  color: #666;
}

.category-filter .btn-outline-secondary:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
  transform: translateY(-1px);
}

/* 响应式优化 */
@media (max-width: 768px) {
  .category-filter {
    padding: 12px 16px;
  }

  .category-filter .fw-bold {
    font-size: 0.9em;
    margin-right: 8px !important;
  }

  .category-filter .btn {
    font-size: 0.8em;
    padding: 4px 8px;
    margin-right: 6px !important;
  }
}
