/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

*:before,
*:after {
  box-sizing: border-box;
}

/* 颜色变量 */
:root {
  --primary-color: #216de8;
  --secondary-color: #6c757d;
  --accent-color: #216de8;
  --background-color: #ffffff;
  --text-color: #121212;
  --text-secondary-color: #666666;
  --border-color: #e9ecef;
  --hover-color: #1979ff;
  --body-bg: #f6f6f6;
  /* 移动端文章元信息空白控制 */
  --mobile-post-meta-margin-bottom: 0px;
}

/* 基础样式 */
body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--body-bg);
  letter-spacing: 0.4px;
}

a {
  color: #333;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

a:hover {
  color: var(--hover-color);
}

a:hover {
  color: var(--hover-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  clear: both;
}

.navbar .container {
  display: flex;
  overflow: inherit;
  justify-content: flex-start;
  align-items: center;
}

/* 导航栏 */
.navbar {
  background-color: var(--background-color);
  border: 0;
  box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: transform 0.3s ease;
}

body.header-fixed {
  margin-top: 70px;
}

body.hide-header .navbar {
  transform: translateY(-100%);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  height: 55px;
}

.logo img {
  height: 36px;
  transition: all 0.3s ease-out 0s;
}

.site-title {
  margin-left: 0px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

/* 网站标题文本样式 */
.logo-text {
  /* 基础样式 */
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  /* 文字美化效果 */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--primary-color), #4a89dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* 平滑过渡 */
  transition: all 0.3s ease;
}

/* 悬停效果 */
.logo-text:hover {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .logo-text {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 18px;
  }
}

.navbar-nav {
  display: flex;
  align-items: center;
  margin: 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-nav li {
  margin-left: 15px;
}

.navbar-nav a {
  display: block;
  padding: 0 15px;
  font-weight: 400;
  color: var(--text-color);
  line-height: 55px;
  font-size: 15px;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary-color);
}

/* 搜索按钮样式 */
.header-search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search-form form {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search-form .search-input {
  position: absolute;
  right: 100%;
  margin-right: 10px;
  width: 0;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  outline: none;
  z-index: 1000;
}

.header-search-form.expanded .search-input {
  width: 200px;
  opacity: 1;
  visibility: visible;
  display: block;
}

.search-button {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: var(--hover-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 18px;
  color: var(--text-color);
  cursor: pointer;
  padding: 9px 10px;
  float: right;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu a {
  display: block;
  padding: 15px 20px;
  color: var(--text-color);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary-color);
  background-color: #f8f9fa;
}

/* 主内容区 */
.main-content {
  margin-top: 70px; /* 增加上边距避免被导航栏遮挡 */
  overflow: hidden;
  display: flex;
  gap: 15px;
}

/* 内容布局 */
.content-layout {
  display: flex;
  gap: 15px;
}

.content {
  flex: 1;
  min-width: 0;
}

.content.has-sidebar {
  flex: 1;
  min-width: 0;
}

/* 侧边栏 */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.sidebar.left {
  order: -1;
}

.sidebar.right {
  order: 1;
}

/* 小部件 */
.widget {
  margin-bottom: 15px;
  padding: 15px;
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 0 20px -5px rgba(158, 158, 158, 0.22);
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-header {
  position: relative;
  padding-bottom: 10px;
  overflow: hidden;
  display: block;
}

.widget-header::before {
  content: '';
  position: absolute;
  right: -20px;
  bottom: 0;
  height: 1px;
  width: 108%;
  border-bottom: 1px solid #f5f6f7;
}

.widget-title {
  display: block;
  position: relative;
}

/* 侧边栏栏目标题下方虚线效果 */
.widget-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  height: 1px;
  width: 98%;
  border-bottom: 1px solid #f5f6f7;
}

/* 调整侧边栏内容与虚线之间的距离 */
.widget .recent-posts,
.widget .popular-posts,
.widget .categories,
.widget .archives {
  margin-top: 12px;
}

.widget-title .title-text {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 24px;
  width: 100%;
  position: relative;
  background-color: var(--background-color);
  color: #364e65;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0;
  border-radius: 5px;
  padding-left: 15px;
}

.widget-title .title-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 5px;
  background: #216de8;
}

.widget-title i {
  margin-right: 10px;
  color: var(--primary-color);
}

/* 热门文章标题装饰样式 */
.bg-primary {
    content: " ";
    position: absolute;
    border-radius: 50%;
    background: #fc625d !important;
    width: 10px;
    height: 10px;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
    float: right;
    right: 40px;
    top: 7px;
}

/* 搜索框 */
.search-form {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  padding: 0 15px;
  background-color: transparent;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-btn:hover {
  color: var(--primary-color);
}

/* 顶部搜索表单样式 */
.header-search-form {
  position: relative;
  display: inline-flex;
  align-items: center;
}
/* 搜索图标样式 - 放置在搜索框内最右边并居中对齐 */
.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  pointer-events: none;
  font-size: 16px;
}

/* 搜索输入框包装器样式 */
.search-input-wrapper {
  position: relative;
  width: 100%;
}

/* 搜索结果容器样式 - 默认隐藏 */
.search-result-container {
  max-height: 400px;
  overflow-y: auto;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-top: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* 搜索结果显示状态 */
.search-result-container.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 搜索结果列表样式 */
.search-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 搜索结果项样式 */
.search-result-list li {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.search-result-list li:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* 搜索结果标题样式 */
.search-result-title {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.search-result-title:hover {
  color: var(--primary-color);
}

/* 搜索结果摘要样式 */
.search-result {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* 搜索框覆盖层样式 - 确保默认隐藏 */
#search-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.85) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: 10vh !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 搜索框覆盖层激活状态 */
#search-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 搜索容器样式 */
.search-container {
  width: 100% !important;
  max-width: 600px !important;
  position: relative !important;
  transform: scale(0.95) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#search-overlay.active .search-container {
  transform: scale(1) !important;
}

/* 搜索关闭按钮美化 */
.search-close {
  position: absolute !important;
  top: -45px !important;
  right: 10px !important;
  background: none !important;
  border: none !important;
  color: white !important;
  font-size: 24px !important;
  cursor: pointer !important;
  padding: 8px !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease !important;
}

.search-close:hover {
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

/* 搜索关键词高亮样式 */
.search-keyword {
  color: var(--primary-color);
  font-weight: bold;
  background-color: rgba(62, 97, 249, 0.1);
  padding: 1px 2px;
  border-radius: 2px;
}

.header-search-form .search-input {
  position: absolute;
  right: 100%;
  margin-right: 10px;
  width: 0;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  outline: none;
}

.header-search-form.expanded .search-input {
  width: 200px;
  opacity: 1;
  visibility: visible;
  display: block;
}

/* 最新文章、热门文章、分类、归档 */
.recent-posts ul,
.popular-posts ul,
.categories ul,
.archives ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li,
.popular-posts li,
.categories li,
.archives li {
  margin-bottom: 6px;
  padding-bottom: 6px;
}

/* 友情链接 - 一行展示两个 */
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.links-list li {
  width: 48%; /* 留出一些间距 */
  margin-bottom: 8px;
  padding-bottom: 0;
  box-sizing: border-box;
}

.recent-posts li:last-child,
.popular-posts li:last-child,
.categories li:last-child,
.archives li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-link,
.archive-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  background-color: var(--primary-color);
  color: white;
  font-size: 12px;
  border-radius: 10px;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 2px;
}

.tag-link {
  font-size: 12px;
  color: #fff;
  display: inline-block;
  margin: 0 7px 7px 0;
  padding: 6px 18px;
  line-height: 22px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.tag-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.6s ease;
}

.tag-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.tag-link:hover::before {
  left: 100%;
}

/* 为不同大小的标签添加不同效果 */
.tag-link[style*="font-size: 12px"] {
  padding: 4px 14px;
}

.tag-link[style*="font-size: 14px"] {
  padding: 6px 18px;
}

.tag-link[style*="font-size: 16px"] {
  padding: 8px 22px;
  font-weight: 600;
}

/* 丰富的标签颜色集 - 明亮和谐的配色方案 */
.tag-color-1 { background: linear-gradient(135deg, #428bca, #5bc0de); }
.tag-color-2 { background: linear-gradient(135deg, #5cb85c, #66bb6a); }
.tag-color-3 { background: linear-gradient(135deg, #d9534f, #ef5350); }
.tag-color-4 { background: linear-gradient(135deg, #f0ad4e, #ffb74d); }
.tag-color-5 { background: linear-gradient(135deg, #5bc0de, #4fc3f7); }
.tag-color-6 { background: linear-gradient(135deg, #9575cd, #ba68c8); }
.tag-color-7 { background: linear-gradient(135deg, #66bb6a, #81c784); }
.tag-color-8 { background: linear-gradient(135deg, #ff7043, #ff8a65); }
.tag-color-9 { background: linear-gradient(135deg, #8d6e63, #a1887f); }
.tag-color-10 { background: linear-gradient(135deg, #7986cb, #9fa8da); }

/* 新增颜色选项 */
.tag-color-11 { background: linear-gradient(135deg, #ec407a, #f06292); }
.tag-color-12 { background: linear-gradient(135deg, #26a69a, #4db6ac); }
.tag-color-13 { background: linear-gradient(135deg, #8bc34a, #aed581); }
.tag-color-14 { background: linear-gradient(135deg, #ffca28, #ffd54f); }
.tag-color-15 { background: linear-gradient(135deg, #009688, #26a69a); }

/* 社交媒体 */
.social-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  justify-content: center;
  padding: 5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text-secondary-color);
  border-radius: 50%;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* 为每个社交媒体设置品牌特色颜色 */
.social-links a[title="GitHub"] {
  color: #333;
}

.social-links a[title="QQ"] {
  color: #4bbce6;
}

.social-links a[title="邮箱"] {
  color: #333;
}

.social-links a[title="Telegram"] {
  color: #258abd;
}

.social-links a[title="RSS订阅"] {
  color: #333;
}

/* Banner区域 */
.banner {
  margin-bottom: 40px;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a40b9 100%);
  color: white;
  text-align: center;
  border-radius: 8px;
}

.banner-title {
  margin-bottom: 15px;
  font-size: 2.5rem;
  font-weight: 700;
}

.banner-subtitle {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 400;
}

.banner-description {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1rem;
  opacity: 0.9;
}

.banner-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: white;
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.banner-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  color: var(--primary-color);
}

/* Banner幻灯片区域 */
.banner-slider {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block !important;
}

.banner-container {
  display: flex;
  gap: 10px;
  height: 280px;
  position: relative;
}

/* 确保幻灯片图片正确加载 */
.banner-slider img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 确保幻灯片描述文字清晰可见 */
.slide-description {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 10px 15px !important;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%) !important;
  z-index: 2 !important;
}

/* 移动端自适应 */
@media (max-width: 768px) {
  .banner-container {
    flex-direction: column;
    height: auto;
  }
  
  .main-slide,
  .side-slides {
    flex: none;
    width: 100%;
  }
  
  .small-slide {
    height: 140px;
  }
}

/* 左侧大幻灯片 */
.main-slide {
  flex: 1.5;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 100%;
}

/* 右侧小幻灯片 - 调整为220x134px */
.side-slides {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

/* 右侧单个小幻灯片尺寸 */
.side-slides .small-slide {
  height: 134px;
  width: 220px;
  position: relative;
  overflow: hidden;
}

/* 移动端自适应 - 右侧幻灯片 */
@media (max-width: 768px) {
  .side-slides {
    flex: none;
    width: 100%;
  }
  .side-slides .small-slide {
    height: 140px;
    width: 100%;
  }
}

.slide-item {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  /* 移除过渡效果 */
}

/* 移除悬停效果 */
.slide-item:hover {
  transform: none;
}

/* 确保图片完全填充容器 - 加强样式优先级 */
.slide-link .slide-item {
  display: block;
  height: 100%;
}

.slide-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* 右侧小幻灯片尺寸 */
.small-slide {
  height: calc(50% - 5px);
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* 幻灯片链接 */
.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* 移除悬停效果 */
.slide-link:hover {
  transform: none;
  box-shadow: none;
}

/* 幻灯片描述 */
.slide-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  padding: 10px 15px;
  text-align: left;
  z-index: 2;
}

.slide-description p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

/* 文章列表 */
.post-list {
  margin-bottom: 40px;
}

.section-title {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.posts {
  margin-bottom: 30px;
}

.list-container {
  background: white;
  box-shadow: 0 0 20px -5px rgba(158, 158, 158, 0.22);
  border-radius: 5px;
  padding: 15px;
}

.post-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
  background-color: white;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 150px;
  opacity: 1 !important;
  z-index: 1;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item:hover {
  transform: none;
}

.post-category-label {
  position: absolute;
  background: var(--primary-color);
  top: 2rem;
  left: -20px;
  width: 5px;
  height: 25px;
  transform: scaleY(0);
  transition: transform 0.35s;
}

.post-item:hover .post-category-label {
  transform: scaleY(1);
}

/* 文章分类样式 */
.post-category {
  display: inline-block;
  margin-right: 10px;
}

.post-category i {
  margin-right: 5px;
  color: var(--text-secondary-color);
}

.post-category a {
  color: var(--text-secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.post-category a:hover {
  color: var(--primary-color);
}

.post-category span {
  color: var(--text-secondary-color);
}

.post-thumbnail {
  width: 180px;
  height: 120px;
  margin-right: 15px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 已移除过渡效果 */
}

.post-item:hover .post-thumb-img {
  /* 已移除图片缩放效果 */
}

/* 针对a、p、div三个元素的垂直分布优化 */
.post-content h3.post-title a {
  display: inline-block;
  vertical-align: middle;
}

/* 确保文章预览(p元素)显示为两行并整体再向上移动一部分 */
.post-content .post-excerpt {
  display: block !important;
  min-height: 48px;
  margin: -10px 0 4px 0;
  line-height: 0;
}

.post-content .post-excerpt p {
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  height: 3.2em;
  margin: 0;
  word-break: break-word;
  font-size: 13px;
}

/* 优化元信息(分类菜单)的位置 */
.post-content .post-meta {
  margin-top: 4px;
  margin-bottom: 0;
  display: block;
}

/* 优化文章项的flex布局 */
.post-item {
  display: flex !important;
  align-items: center;
  padding: 15px 0;
  min-height: 150px;
}

.post-content.has-thumbnail {
  margin-left: 0;
}

.post-header {
  position: relative;
  margin-bottom: 0;
}

.post-title {
  margin-bottom: 0;
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.post-excerpt {
  display: block !important;
  opacity: 1 !important;
}

.post-title a {
  color: #2c2e3b;
  transition: color 0.2s ease;
}

.post-item:hover .post-title a {
  color: var(--primary-color);
}

.post-meta {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 10px;
  color: #828a92;
  line-height: 1.3;
}

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

.post-meta i {
  margin-right: 5px;
}

.post-author-info {
  float: left;
  position: relative;
  cursor: pointer;
}

.author-avatar {
  margin-right: 5px;
  margin-top: -5px;
  border-radius: 50%;
  transition: all 0.3s linear;
}

.meta-separator {
  color: #828a92;
  padding: 0 5px;
}

.post-likes {
  float: right;
  cursor: pointer;
}

.post-excerpt p {
  padding: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #333;
  height: 38px;
  min-height: 38px;
  line-height: 18px;
  margin: 0 0 4px 0;
}

.post-read-more {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-color);
  color: white;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.post-read-more:hover {
  background-color: var(--hover-color);
  color: white;
  transform: translateY(-1px);
}

/* 分页 */
.pagination {
  margin: 0;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  display: block;
}

.pagination-nav {
  display: inline-block;
}

.pagination-list {
  display: inline-block;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-item {
  display: inline;
  margin: 0;
}

.pagination-link {
  margin: 3px 5px 3px 0;
  float: left;
  padding: 7px 14px;
  color: #666;
  border: none;
  border-radius: 2px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif;
  font-weight: normal;
  transition: all 0.3s ease;
  width: auto;
  height: auto;
  line-height: 1;
}

.pagination-link:hover {
  background-color: #06c;
  color: white;
  border-color: #06c;
  opacity: 1;
}

.pagination-item.active .pagination-link {
  background-color: #06c;
  color: white;
  border-color: #06c;
  cursor: default;
}

.pagination-item.disabled .pagination-link {
  background-color: transparent;
  color: #828a92;
  cursor: default;
  border-color: transparent;
}

.pagination-ellipsis {
  margin: 3px 5px 3px 0;
  float: left;
  padding: 7px 14px;
  color: #828a92;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif;
  width: auto;
  height: auto;
  line-height: 1;
}

/* 文章页 */
.post {
  padding: 15px;
  background-color: white;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 0 20px -5px rgba(158, 158, 158, 0.22);
}

.post-header {
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3e3e3;
}

.post-title {
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 700;
  color: #404040;
}

.post-meta {
  font-size: 13px;
  color: #333;
}

.post-meta span {
  margin-right: 24px;
  list-style: none;
}

.post-meta .post-list-cat {
  font-size: 12px;
  color: white;
  background-color: rgba(32, 107, 231, 0.1);
  display: inline-block;
  padding: 2px 15px;
  line-height: 20px;
  font-weight: 400;
  border-radius: 4px;
}

.post-meta .post-list-cat a {
  color: #206be7;
}

.post-content {
  margin-bottom: 0px;
  font-size: 16px;
  line-height: 25px;
  word-wrap: break-word;
  position: relative;
  overflow: visible;
  /* 恢复正常文本流显示 */
  display: block;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 600;
}

.post-content h2 {
  font-size: 24px;
  line-height: 32px;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 20px;
}

.post-content h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.post-content h4 {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 18px;
}

.post-content h5 {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 18px;
}

.post-content ol,
.post-content ul {
  margin: 0 0 18px 46px;
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: circle;
}

.post-content li {
  list-style: inherit;
  margin-bottom: 6px;
}

.post-content p img:only-child {
  text-indent: 0;
}

.post-content img {
  margin: 5px 0;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.post-content video {
  width: 100%;
  height: auto;
}

.post-content a {
  color: #121212;
  text-decoration: none;
}

.post-content a:hover {
  opacity: 0.8;
}

.post-content code {
  padding: 2px 6px;
  background-color: transparent;
  color: inherit;
  font-family: 'courier new';
  font-size: 0.9em;
  border-radius: 0;
}

.post-content pre {
  margin: 20px 0;
  color: #121212;
  border: none;
  border-radius: 0;
  overflow-x: auto;
  font: 13px/20px 'courier new';
}

.post-content pre code {
  padding: 0;
  background-color: transparent;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}

.post-content blockquote {
  margin: 20px 0;
  padding: 15px;
  background-color: #f5f6f7;
  border-radius: 4px;
  width: 100%;
  font-style: normal;
  position: relative;
}

.post-content blockquote p {
  padding: 8px 0 0 0;
  margin: 0;
  text-indent: 0;
  text-align: justify;
  word-break: break-all;
  color: #2a2a2a;
}

.post-content blockquote::before {
  content: "\f10d";
  display: block;
  color: #555;
  width: 24px;
  height: 16px;
  font: normal normal normal 18px/1 FontAwesome;
  position: static;
  font-size: inherit;
  opacity: 1;
}

/* 文章标签 */
.post-tags {
  position: relative;
  padding-top: 12px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.tag {
  display: inline-block;
  margin: 10px 10px 0 0;
  padding: 0 10px;
  max-width: calc(100% - 16px);
  font-size: 13px;
  background-color: #fafafa;
  color: #8599ab;
  border-radius: 4px;
  border: 1px solid rgba(133, 153, 171, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: text-bottom;
}

.tag::before {
  content: "# ";
}

.tag:hover {
  background-color: #216de8;
  color: white;
  border-color: #216de8;
  transition: all 0.2s ease-in;
}

/* 点赞功能 */
.post-like {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.like-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #fff;
  color: #8599ab;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid rgba(133, 153, 171, 0.2);
  transition: all 0.3s ease;
  background-image: linear-gradient(135deg, #f2f6f8 0%, #f2f6f8 100%);
  background-size: 100% 0px;
  background-repeat: no-repeat;
}

.like-btn:hover {
  background-color: #216de8;
  color: white;
  border-color: #216de8;
  background-size: 100% 100%;
  transition: all 0.2s ease-in;
}

/* 社交分享 */
.post-share {
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
}

.share-links a {
  display: inline-block;
  width: 38px;
  height: 38px;
  margin: 0 10px 10px 0;
  line-height: 38px;
  text-align: center;
  background-color: #f8f8f8;
  color: #666;
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.share-links a:hover {
  background-color: #216de8;
  color: white;
  transform: translateY(-3px);
}

/* 文章导航 */
.post-nav {
  margin-bottom: 30px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
}

.post-nav-prev,
.post-nav-next {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  background-color: #fff;
  color: #2c2e3b;
  border: 1px solid rgba(133, 153, 171, 0.2);
  border-radius: 4px;
  transition: all 0.3s ease;
  background-image: linear-gradient(135deg, #f2f6f8 0%, #f2f6f8 100%);
  background-size: 100% 0px;
  background-repeat: no-repeat;
}

.post-nav-prev:hover,
.post-nav-next:hover {
  background-color: #216de8;
  color: white;
  border-color: #216de8;
  background-size: 100% 100%;
}

.post-nav-prev i,
.post-nav-next i {
  font-size: 1rem;
}

.post-nav-prev span,
.post-nav-next span {
  margin: 0 8px;
  font-weight: 500;
  font-size: 14px;
}

/* 相关文章 */
.related-posts {
  margin-bottom: 30px;
  padding-top: 20px;
}

.related-title {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #404040;
  
}

.related-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.related-item {
  flex: 1;
  min-width: 200px;
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  /* 已移除过渡效果 */
  box-shadow: 0 0 20px -5px rgba(158, 158, 158, 0.22);
}

.related-item:hover {
  /* 已移除悬浮效果 */
  box-shadow: 0 0 20px -5px rgba(158, 158, 158, 0.22);
}

.related-thumbnail {
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
}

.related-thumb-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  /* 已移除过渡效果 */
}

.related-item:hover .related-thumb-img {
  /* 已移除图片缩放效果 */
}

.related-post-title {
  margin: 10px 15px;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-post-title a {
  color: #404040;
}

.related-post-title a:hover {
  color: #216de8;
}

.related-post-date {
  font-size: 12px;
  color: #828a92;
  margin: 0 15px 10px;
  display: block;
}

/* 评论区域 */
.post-comments {
  margin-top: 40px;
  padding: 30px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0 20px -5px rgba(158, 158, 158, 0.22);
  position: relative;
  overflow: hidden;
}

.comments-title {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #404040;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3e3e3;
}



/* 页面 */
.page {
  padding: 15px;
  background-color: white;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 0 20px -5px rgba(158, 158, 158, 0.22);
}

.page-header {
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3e3e3;
}

.page-title {
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 700;
  color: #404040;
}

.page-meta {
  font-size: 13px;
  color: #828a92;
}

.page-meta span {
  margin-right: 24px;
  list-style: none;
}

.page-content {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 25px;
  word-wrap: break-word;
  position: relative;
  overflow: hidden;
}

.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 600;
}

.page-content h2 {
  font-size: 24px;
  line-height: 32px;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 20px;
}

.page-content h3 {
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 20px;
}

.page-content h4 {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 18px;
}

.page-content h5 {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 18px;
}

.page-content ol,
.page-content ul {
  margin: 0 0 18px 46px;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: circle;
}

.page-content li {
  list-style: inherit;
  margin-bottom: 6px;
}

.page-content p {
  margin-bottom: 25px;
  line-height: 170%;
  color: #2a2a2a;
}

.page-content img {
  margin: 5px 0;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.page-share {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.page-comments {
  margin-top: 40px;
  padding: 30px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0 20px -5px rgba(158, 158, 158, 0.22);
  position: relative;
  overflow: hidden;
}

/* 归档页 */
.archive {
  padding: 15px;
  background-color: white;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 0 20px -5px rgba(158, 158, 158, 0.22);
}

.archive-header {
  text-align: center;
}

.archive-title {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #404040;
}

.archive-count {
  font-size: 13px;
  color: #828a92;
  display: inline-block;
  margin-left: 10px;
  margin-bottom: 0;
}

.archive-group {
  margin-bottom: 30px;
}

.archive-year {
  margin: 25px 0 15px;
  padding-left: 15px;
  font-size: 20px;
  font-weight: 600;
  color: #216de8;
  border-left: 4px solid #216de8;
}

.archive-month {
  margin: 15px 0 10px;
  font-size: 16px;
  font-weight: 500;
  color: #404040;
}

.archive-item {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.archive-item::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: #216de8;
  border-radius: 50%;
}

.archive-date {
  display: inline-block;
  width: 80px;
  font-size: 13px;
  color: #828a92;
}

.archive-title {
  font-size: 15px;
  font-weight: 500;
  color: #404040;
  flex: 1;
  margin-left: 10px;
}

.archive-title:hover {
  color: #216de8;
}

.archive-categories {
  margin-left: 10px;
  font-size: 13px;
  color: #828a92;
}

.archive-category {
  color: #828a92;
}

.archive-category:hover {
  color: #216de8;
}

.archive-empty {
  padding: 40px 0;
  text-align: center;
  color: #828a92;
}

/* 页脚 */
.footer {
  padding: 20px 0;
  color: #666;
  
  position: relative;
}

.footer-social {
  margin-bottom: 20px;
  text-align: center;
}

.footer-social .social-links {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}

.footer-social .social-links a {
  display: inline-block;
  width: 38px;
  height: 38px;
  margin: 0 10px 10px 0;
  line-height: 38px;
  text-align: center;
  background-color: #f8f8f8;
  color: #666;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.footer-social .social-links a:hover {
  background-color: #216de8;
  color: white;
  transform: translateY(-3px);
}

.footer-copyright {
  text-align: center;
  font-size: 14px;
  color: #828a92;
}

.footer-copyright p {
  margin-bottom: 10px;
  line-height: 24px;
}

.footer-copyright a {
  color: #828a92;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #1a5bc9;
  text-decoration: none;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: #33333300;
  color: #444;
  border: none;
  border-radius: 3px;
  font-size: 28px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: background-color 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #c2bfbf00;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e3e3e3;
  border-radius: 50%;
  border-top-color: #216de8;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 代码高亮主题（Atom One Dark） */
.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  color: #abb2bf;
  background: #282c34;
}

.hljs-comment,
.hljs-quote {
  color: #5c6370;
  font-style: italic;
}

.hljs-doctag,
.hljs-keyword,
.hljs-formula {
  color: #c678dd;
}

.hljs-section,
.hljs-name,
.hljs-selector-tag,
.hljs-deletion,
.hljs-subst {
  color: #e06c75;
}

.hljs-literal {
  color: #56b6c2;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta-string {
  color: #98c379;
}

.hljs-built_in,
.hljs-class .hljs-title {
  color: #e6c07b;
}

.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-number {
  color: #d19a66;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-title {
  color: #61afef;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

.hljs-link {
  text-decoration: underline;
}

/* 公告通知样式 */
.announcement {
  background-color: #f8f9fa;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 0 5px 5px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.announcement p {
  margin: 0;
  color: #2c2e3b;
  font-size: 14px;
  line-height: 1.6;
}

.announcement i {
  font-size: 14px;
  margin-right: 10px;
  color: #216de8;
}

.fa-fw {
  width: 1.28571429em;
  text-align: center;
}

/* 响应式公告样式 */
@media (max-width: 768px) {
  .announcement {
    padding: 10px 15px;
    margin-bottom: 10px;
  }
  
  .announcement p {
    font-size: 13px;
  }
}
/* 分类菜单标签样式 */
.post-meta .post-category-label {
  font-size: 13px;
  color: #828a92;
  margin-right: 8px;
}

/* 响应式设计：确保分类菜单名称自适应显示 */
@media (max-width: 768px) {
  .post-meta .post-category-label {
    display: inline-block;
    font-size: 12px;
    margin-right: 6px;
  }
}

/* 热门文章列表的蓝色小圆点样式 */
.gray-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #007bff;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* 热门文章标题样式 - 加粗变黑 */
.popular-post-title {
  color: #121212; /* 变黑 */
  font-weight: 700; /* 加粗 */
  display: block;
  transition: color 0.3s ease;
  white-space: nowrap; /* 禁止换行 */
  overflow: hidden; /* 隐藏超出部分 */
  text-overflow: ellipsis; /* 超出部分显示省略号 */
}

.popular-post-title:hover {
  color: var(--primary-color);
}

/* 友情链接标题样式 */
.links-list a {
  color: #121212;
  font-weight: 700;
  display: block;
  transition: color 0.3s ease;
}

.links-list a:hover {
  color: var(--primary-color);
}

/* 标签云样式 */
.tag-cloud {
  margin: 15px 0;
  padding: 0;
  text-align: left;
  line-height: 1.6;
}

.tag-cloud a {
  display: inline-block !important;
  margin: 0 8px 8px 0 !important;
  padding: 4px 10px !important;
  background-color: #f8f9fa !important;
  color: #666 !important;
  border-radius: 15px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-size: 14px !important;
  font-weight: normal !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.tag-cloud a:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

/* 确保所有标签颜色类都能正常显示 */
.tag-cloud .tag-link,
.tag-cloud .tag-link.tag-color-8 {
  display: inline-block !important;
  margin: 0 8px 8px 0 !important;
  padding: 0px 10px !important;
  background-color: #f8f9fa !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: normal !important;
  opacity: 1 !important;
  visibility: visible !important;
}
