body::-webkit-scrollbar {
  width: 16px;
}

body::-webkit-scrollbar-thumb {
  border-radius: 8px;
  -webkit-box-shadow: inset 0 0 8px #cfcfcf;
}

body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 5px #cfcfcf;
  border-radius: 8px;
}

a {
  text-decoration: none;
}

/* 确保整体布局的一致性 */
#site-content {
  padding: 30px 15px; /* 保持与Bootstrap container的内边距一致 */
  margin-top: 56px;
}

/* 导航栏样式优化 */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 分页按钮样式 - 使用更高优先级 */
.nav-links .btn.btn-outline-success {
  padding: 12px 24px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-size: 0.9rem !important;
  border: 2px solid #28a745 !important;
  background: transparent !important;
  color: #28a745 !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.nav-links .btn.btn-outline-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
  border-color: #1e7e34 !important;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  color: #ffffff !important;
}

.nav-links .btn.btn-outline-success:focus {
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* 右侧边栏标题美化 */
.widget .page-title {
  position: relative;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #007bff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget .page-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(45deg, #007bff, #0056b3);
  border-radius: 2px;
}

/* 主内容区域标题美化 */
.content-area .page-header {
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content-area .page-title {
  position: relative;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0;
  padding-bottom: 15px;
  border-bottom: 3px solid #007bff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-area .page-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(45deg, #007bff, #0056b3);
  border-radius: 2px;
}

/* Category 页面标题特殊样式 */
.content-area .page-title:has-text("Category") {
  border-bottom-color: #28a745;
}

.content-area .page-title:has-text("Category")::after {
  background: linear-gradient(45deg, #28a745, #1e7e34);
}

/* Tag 页面标题特殊样式 */
.content-area .page-title:has-text("Tag") {
  border-bottom-color: #dc3545;
}

.content-area .page-title:has-text("Tag")::after {
  background: linear-gradient(45deg, #dc3545, #c82333);
}

/* 主内容区域卡片样式美化 */
.content-area .card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  height: 100%;
}

.content-area .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.content-area .card-img-top {
  transition: transform 0.3s ease;
  object-fit: cover;
}

.content-area .card:hover .card-img-top {
  transform: scale(1.05);
}

.content-area .card-body {
  padding: 20px;
  background: #ffffff;
}

.content-area .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-area .card-text {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
  font-weight: 500;
}

/* 警告信息样式美化 */
.alert-danger {
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

/* 响应式卡片网格优化 */
.row-eq-height {
  display: flex;
  flex-wrap: wrap;
}

.row-eq-height .col {
  display: flex;
  flex-direction: column;
}

/* 文章详情页样式 */
.post-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #dee2e6;
}

/* 文章标题区域 */
.post-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.post-header .entry-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: #6c757d;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-meta i {
  color: #007bff;
}

.post-meta a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-meta a:hover {
  color: #0056b3;
}

/* 图片画廊样式 */
.image-gallery {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-link:hover .gallery-image {
  transform: scale(1.05);
}

/* 为画廊添加悬停遮罩效果 */
.image-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.image-link:hover::before {
  opacity: 1;
}

.image-link::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.image-link:hover::after {
  opacity: 1;
}

/* 文章标签区域 */
.entry-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
}

.post-tags {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #dee2e6;
}

.tags-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tags-title i {
  color: #28a745;
  font-size: 1rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  text-decoration: none;
}

.tag-item {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tag-link:hover .tag-item {
  background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* 标签云样式 */
.tag-cloud-widget {
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag-cloud-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tag-cloud-widget .page-title {
  color: #495057;
  border-bottom-color: #28a745;
}

.tag-cloud-widget .page-title::after {
  background: linear-gradient(45deg, #28a745, #1e7e34);
}

/* 文章列表组件样式美化 */
.wli_popular_posts-class {
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wli_popular_posts-class:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Popular Posts 标题样式 */
#wli_popular_posts .page-title {
  color: #dc3545;
  border-bottom-color: #dc3545;
}

#wli_popular_posts .page-title::after {
  background: linear-gradient(45deg, #dc3545, #c82333);
}

/* Maybe You Like Posts 标题样式 */
#wli_random_posts .page-title {
  color: #6f42c1;
  border-bottom-color: #6f42c1;
}

#wli_random_posts .page-title::after {
  background: linear-gradient(45deg, #6f42c1, #5a32a3);
}

/* 卡片样式优化 */
.widget .card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.widget .card-img-top {
  transition: transform 0.3s ease;
}

.widget .card:hover .card-img-top {
  transform: scale(1.05);
}

.widget .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.3;
  margin-bottom: 8px;
}

.widget .card-text {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* 底部ICP备案信息样式 */
#site-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  margin-top: 50px;
}

.icp {
  max-width: 100%;
  overflow: hidden;
}

.icp a {
  color: #6c757d !important;
  font-size: 0.875rem;
}

.icp a:hover {
  color: #495057 !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
  #site-content {
    padding: 20px 15px;
  }

  .tag-cloud-widget,
  .wli_popular_posts-class {
    margin-bottom: 20px;
    padding: 15px;
  }

  .widget .page-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .tag-link {
    margin: 2px 4px 2px 0;
    padding: 3px 6px;
    font-size: 0.875rem;
  }

  /* 主内容区域移动端优化 */
  .content-area .page-header {
    margin-bottom: 20px;
    padding: 15px;
  }

  .content-area .page-title {
    font-size: 1.25rem;
    padding-bottom: 10px;
  }

  .content-area .page-title::after {
    width: 30px;
  }

  .content-area .card-body {
    padding: 15px;
  }

  .content-area .card-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .content-area .card-text {
    font-size: 0.85rem;
  }

  .nav-links {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 10px 15px;
    min-height: 50px;
  }

  .nav-links .btn.btn-outline-success {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
  }

  /* 文章详情页移动端优化 */
  .post-content {
    padding: 20px;
    margin-bottom: 20px;
  }

  .post-header .entry-title {
    font-size: 1.5rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 10px;
  }

  .image-gallery {
    gap: 15px;
  }

  .gallery-item {
    margin-bottom: 10px;
  }

  .post-tags {
    padding: 15px;
  }

  .tags-title {
    font-size: 1rem;
  }

  .tag-item {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

.tag-cloud-widget .page-title::after {
  background: linear-gradient(45deg, #28a745, #1e7e34);
}

.tag-cloud {
  line-height: 2;
  text-align: justify;
}

.tag-cloud .tag-link {
  display: inline-block;
  margin: 3px 6px 3px 0;
  padding: 4px 8px;
  background-color: #e9ecef;
  color: #495057 !important;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tag-cloud .tag-link:hover {
  background-color: #007bff;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* 标签云字体大小级别 */
.tag-size-1 {
  font-size: 0.75rem;
}

.tag-size-2 {
  font-size: 0.875rem;
}

.tag-size-3 {
  font-size: 1rem;
}

.tag-size-4 {
  font-size: 1.125rem;
  font-weight: 600;
}

.tag-size-5 {
  font-size: 1.25rem;
  font-weight: 700;
}

/* 文章列表组件样式美化 */
