/* ChatGPTCN 样式修复和优化 */
/* 针对特定问题的样式修复 */

/* 修复容器布局 */
.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
}

.blog-fixed {
  margin-top: 1em !important;
  margin-bottom: 2em !important;
}

/* 减少内容区顶部间距 */
.am-article.blog-article-p {
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  padding: 2em !important;
  margin-bottom: 2em !important;
  border: 1px solid #e9ecef !important;
  margin-top: 0 !important;
}

/* 已合并到上面的样式规则中 */

/* 修复文章内容样式 */
#post-content {
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #333 !important;
}

#post-content h2 {
  color: #2c3e50 !important;
  font-size: 1.8em !important;
  font-weight: 600 !important;
  border-bottom: 3px solid #3498db !important;
  padding-bottom: 0.5em !important;
  margin-top: 1em !important;
  margin-bottom: 0.8em !important;
}

/* 首个标题减少顶部间距 */
#post-content h2:first-child,
#post-content h1:first-child {
  margin-top: 0 !important;
}

#post-content h3 {
  color: #e67e22 !important;
  font-size: 1.4em !important;
  font-weight: 600 !important;
  margin-top: 1.8em !important;
  margin-bottom: 0.8em !important;
}

#post-content h4 {
  color: #9b59b6 !important;
  font-size: 1.2em !important;
  font-weight: 600 !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.6em !important;
}

/* 修复列表样式 */
#post-content ul, #post-content ol {
  margin: 1.2em 0 !important;
  padding-left: 2em !important;
}

#post-content li {
  margin: 0.8em 0 !important;
  line-height: 1.7 !important;
}

#post-content li strong {
  color: #2c3e50 !important;
  font-weight: 600 !important;
}

/* 修复引用块样式 */
#post-content blockquote {
  border-left: 4px solid #3498db !important;
  background-color: #f8f9fa !important;
  margin: 1.5em 0 !important;
  padding: 1.2em 1.8em !important;
  font-style: italic !important;
  color: #555 !important;
  border-radius: 0 6px 6px 0 !important;
}

#post-content blockquote p {
  margin: 0 !important;
  font-size: 1.1em !important;
}

/* 修复链接样式 */
#post-content a {
  color: #3498db !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

#post-content a:hover {
  color: #2980b9 !important;
  text-decoration: underline !important;
}

/* 修复段落间距 */
#post-content p {
  margin: 1em 0 !important;
  line-height: 1.8 !important;
}

/* 修复分隔线样式 */
#post-content hr {
  border: none !important;
  height: 2px !important;
  background: linear-gradient(to right, #3498db, #e74c3c) !important;
  margin: 2em 0 !important;
  border-radius: 1px !important;
}

/* 修复强调文本样式 */
#post-content em {
  color: #7f8c8d !important;
  font-style: italic !important;
  font-weight: 500 !important;
}

/* 修复导航栏样式 */
.navbar-brand {
  font-size: 14px !important;
  font-weight: 600 !important;
  max-width: 350px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.navbar-nav > li > a {
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 18px 12px !important;
  height: 50px !important;
  line-height: 14px !important;
  display: flex !important;
  align-items: center !important;
}

/* 减少导航栏整体高度 */
.navbar {
  min-height: 50px !important;
  max-height: 50px !important;
  height: 50px !important;
}

.navbar-brand {
  padding: 15px !important;
  height: 50px !important;
  line-height: 20px !important;
  display: flex !important;
  align-items: center !important;
}

/* 修复导航栏固定定位和可见性 */
.navbar-custom {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid #e9ecef !important;
  transition: all 0.3s ease !important;
}

/* 修复导航栏文字颜色 */
.navbar-custom .navbar-brand {
  color: #333 !important;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
  color: #3498db !important;
}

.navbar-custom .nav > li > a {
  color: #333 !important;
  font-weight: 500 !important;
}

.navbar-custom .nav > li > a:hover,
.navbar-custom .nav > li > a:focus {
  color: #3498db !important;
}

.navbar-custom .nav > li.active > a {
  color: #3498db !important;
}

.navbar-custom.is-fixed {
  background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-custom.is-visible {
  transform: translateY(0) !important;
}

/* 修复下拉菜单样式 */
.dropdown-menu.submenu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 1000 !important;
  display: none !important;
  float: left !important;
  min-width: 180px !important;
  padding: 0.5em 0 !important;
  margin: 0 !important;
  background-color: white !important;
  border: 1px solid #e9ecef !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.dropdown-menu.submenu li {
  list-style: none !important;
}

.dropdown-menu.submenu li a {
  display: block !important;
  padding: 0.8em 1.2em !important;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
}

.dropdown-menu.submenu li a:hover {
  background-color: #f8f9fa !important;
  color: #3498db !important;
}

/* 下拉菜单悬浮显示 */
.dropdown:hover .dropdown-menu.submenu {
  display: block !important;
}

/* 修复下拉箭头 */
.caret {
  display: inline-block !important;
  width: 0 !important;
  height: 0 !important;
  margin-left: 2px !important;
  vertical-align: middle !important;
  border-top: 4px solid !important;
  border-right: 4px solid transparent !important;
  border-left: 4px solid transparent !important;
}

/* 确保导航栏始终可见 */
body#blog {
  padding-top: 70px !important; /* 为固定导航栏留出空间 */
}

/* 修复头部区域的间距 */
.intro-header {
  margin-top: -70px !important;
  padding-top: 70px !important;
  margin-bottom: 0 !important;
}

/* 减少hero区域高度和间距 */
.intro-header {
  min-height: 180px !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

.intro-header .post-heading {
  padding: 1em 0 !important;
}

/* 优化标题显示和换行 */
.intro-header .post-heading h1,
.intro-header .site-heading h1 {
  font-size: 1.8em !important;
  line-height: 1.4 !important;
  margin-bottom: 0.3em !important;
}

/* 首页标题特殊样式 */
.intro-header .site-heading h1 {
  font-size: 3em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  font-weight: 700 !important;
}

.intro-header .site-heading h1 .subtitle {
  display: block !important;
  font-size: 0.6em !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  margin-top: 0.4em !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}

/* 其他页面header样式 */
.page-header {
  position: relative !important;
  overflow: hidden !important;
}

.page-heading {
  text-align: center !important;
  padding: 1.5em 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.page-title-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.8em !important;
}

.page-icon {
  font-size: 3em !important;
  margin-bottom: 0.3em !important;
  opacity: 0.9 !important;
}

.page-title {
  color: white !important;
  font-size: 2.2em !important;
  font-weight: 700 !important;
  margin: 0 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.1em !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.page-meta {
  display: flex !important;
  justify-content: center !important;
  gap: 2em !important;
  margin-top: 1.5em !important;
}

.meta-item {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95em !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5em !important;
}

.meta-icon {
  font-size: 1.1em !important;
}

/* 装饰性元素 */
.header-decoration {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.decoration-circle {
  position: absolute !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.circle-1 {
  width: 150px !important;
  height: 150px !important;
  top: -50px !important;
  right: 10% !important;
  animation: float 6s ease-in-out infinite !important;
}

.circle-2 {
  width: 100px !important;
  height: 100px !important;
  bottom: -30px !important;
  left: 15% !important;
  animation: float 4s ease-in-out infinite reverse !important;
}

.circle-3 {
  width: 80px !important;
  height: 80px !important;
  top: 20% !important;
  left: 5% !important;
  animation: float 5s ease-in-out infinite !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* 移动端标题优化 */
@media (max-width: 768px) {
  .intro-header .site-heading h1 {
    font-size: 1.6em !important;
  }
  
  .intro-header .site-heading h1 .subtitle {
    font-size: 0.7em !important;
  }
  
  .page-title {
    font-size: 1.8em !important;
  }
  
  .page-icon {
    font-size: 2.5em !important;
  }
  
  .page-meta {
    flex-direction: column !important;
    gap: 1em !important;
  }
  
  .decoration-circle {
    display: none !important;
  }
}

/* 修复移动端导航 */
@media (max-width: 768px) {
  .navbar-collapse {
    background-color: white !important;
    border-top: 1px solid #e9ecef !important;
    margin-top: 1px !important;
  }
  
  .dropdown-menu.submenu {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
    background-color: #f8f9fa !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  
  .dropdown-menu.submenu li a {
    padding-left: 2em !important;
  }
}

/* 修复头部标题区域 */
.intro-header {
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  min-height: 300px !important;
}

.intro-header .post-heading {
  padding: 2em 0 !important;
}

.intro-header .post-heading h1 {
  font-size: 2.2em !important;
  line-height: 1.3 !important;
  margin-bottom: 0.5em !important;
  color: #fff !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
  font-weight: 700 !important;
}

.intro-header .meta {
  color: #f8f9fa !important;
  font-size: 1em !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

/* 修复页脚样式 */
.blog-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
  color: #bdc3c7 !important;
  padding: 3em 0 !important;
  margin-top: 4em !important;
}

.blog-footer a {
  color: #3498db !important;
  transition: color 0.3s ease !important;
}

.blog-footer a:hover {
  color: #5dade2 !important;
}

/* 修复协议链接容器 */
.blog-footer .mt-8.mb-4 {
  margin-top: 2em !important;
  margin-bottom: 2em !important;
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 1em !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 12px !important;
    max-width: 200px !important;
    padding: 15px 10px !important;
  }
  
  .intro-header .post-heading h1 {
    font-size: 1.8em !important;
  }
  
  .am-article.blog-article-p {
    padding: 1.5em !important;
    margin: 1em 0 !important;
  }
  
  #post-content {
    font-size: 15px !important;
  }
  
  #post-content h2 {
    font-size: 1.5em !important;
  }
  
  #post-content h3 {
    font-size: 1.3em !important;
  }
  
  .blog-footer .mt-8.mb-4 {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .protocol-link {
    margin: 0.3em !important;
    width: auto !important;
  }
}

/* 覆盖主题原有目录CSS - 防止冲突 */
.directory-content,
.directory-content.initial,
.directory-content.pinned,
.directory-content.unpinned,
.directory-content.headroom--top,
.directory-content.headroom--not-top {
  all: unset !important;
  display: none !important;
}

/* 完全重写文章目录悬浮样式 - 覆盖所有主题冲突 */
#directory-content {
  /* 重置所有可能的冲突属性 */
  all: unset !important;
  /* 重新定义所有必要样式 */
  position: fixed !important;
  top: 150px !important; /* 增加顶部距离，避免被导航遮挡 */
  right: 10px !important;
  width: 60px !important;
  height: 60px !important;
  max-height: calc(100vh - 250px) !important; /* 相应调整最大高度 */
  z-index: 99999 !important;
  background: transparent !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  border: none !important;
  overflow: visible !important;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  pointer-events: all !important;
  box-sizing: border-box !important;
}

/* 悬停时展开 - 稳定的触发 */
#directory-content:hover {
  width: 320px !important;
  height: auto !important;
  min-height: 60px !important;
  max-height: calc(100vh - 200px) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 16px !important;
}

/* 重置directory元素 */
#directory {
  all: unset !important;
  display: block !important;
  position: relative !important;
  width: 60px !important;
  height: 60px !important;
  overflow: visible !important; /* 改为visible，让内容能够显示 */
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

/* 重新设计的悬浮按钮 */
#directory::before {
  content: "📖" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 60px !important;
  height: 60px !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: white !important;
  font-weight: 700 !important;
  font-size: 1.5em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4) !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
}

/* 悬停时按钮变化 */
#directory-content:hover #directory::before {
  width: 320px !important;
  height: 56px !important;
  border-radius: 16px 16px 0 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
  justify-content: flex-start !important;
  padding-left: 1.2em !important;
  font-size: 1.3em !important;
}

/* 悬停时directory容器适应 */
#directory-content:hover #directory {
  width: 320px !important;
  height: auto !important;
  overflow: visible !important;
  border-radius: 16px !important;
}

/* 完全重写目录列表样式 */
#directory > ul {
  all: unset !important;
  position: absolute !important;
  top: 56px !important;
  left: 0 !important;
  width: 320px !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  max-height: 0px !important;
  overflow: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease, padding 0.3s ease !important;
  z-index: 5 !important;
  box-sizing: border-box !important;
  list-style: none !important;
  display: block !important;
}

/* 悬停时显示目录列表 */
#directory-content:hover #directory > ul {
  opacity: 1 !important;
  visibility: visible !important;
  max-height: 300px !important;
  padding: 1em 0.5em 1.5em !important; /* 减少左右padding从1.5em到0.5em，给文字更多空间 */
  overflow-y: auto !important;
  overflow-x: visible !important; /* 确保水平方向内容可见 */
  display: block !important;
  width: 100% !important; /* 确保ul占满容器宽度 */
}

/* 显示目录标题 */
#directory > ul > span {
  display: block !important;
  color: #3498db !important;
  font-weight: 600 !important;
  font-size: 0.9em !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  margin: 0 !important; /* 重置所有margin */
  padding: 0.5em 0 !important; /* 只保留上下padding，去掉左右padding */
  border-bottom: 1px solid #e1e8ed !important;
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: none !important;
  line-height: 1.4 !important;
  min-height: auto !important;
  text-indent: 0 !important; /* 确保没有文字缩进 */
}

/* 重写所有目录相关的元素样式 */
#directory ul,
#directory li {
  all: unset !important;
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#directory li {
  margin-bottom: 0.3em !important;
}

/* 重写目录链接样式 */
#directory a {
  all: unset !important;
  display: block !important;
  color: #374151 !important;
  padding: 0.5em 0.8em !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  border-left: 3px solid transparent !important;
  font-size: 0.9em !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

#directory a:hover {
  background: rgba(79, 70, 229, 0.1) !important;
  color: #4f46e5 !important;
  border-left-color: #4f46e5 !important;
  transform: translateX(3px) !important;
}

/* 层级缩进样式 */
/* H2级别 (主标题) - 去掉缩进 */
#directory > ul > li > a {
  padding-left: 0 !important; /* 去掉第一级缩进 */
  font-weight: 600 !important;
  color: #1f2937 !important;
  font-size: 0.95em !important;
}

/* H3级别 (子标题) */
#directory > ul > li > ul > li > a {
  padding-left: 2em !important;
  font-size: 0.85em !important;
  color: #6b7280 !important;
  border-left-width: 2px !important;
  font-weight: 400 !important;
}

/* H4级别如果存在 */
#directory > ul > li > ul > li > ul > li > a {
  padding-left: 3.2em !important;
  font-size: 0.8em !important;
  color: #9ca3af !important;
  border-left-width: 1px !important;
  font-weight: 300 !important;
}

/* 修复锚点定位 - 考虑固定导航栏高度 */
h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
  scroll-margin-top: 300px !important;
  padding-top: 0 !important;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth !important;
}

/* 确保锚点链接正确定位 */
:target {
  scroll-margin-top: 300px !important;
}

/* 强制修复锚点跳转 - 通过额外的偏移量 */
*[id]:target {
  scroll-margin-top: 300px !important;
  scroll-padding-top: 300px !important;
}

/* 专门针对目录悬浮按钮中的锚点链接添加JavaScript修复 */
#directory a {
  scroll-behavior: smooth !important;
}

/* JavaScript修复脚本会在页面加载后执行 */

/* 在CSS后添加内联JavaScript来修复锚点跳转 */

/* 确保目录在非悬停状态下正确收缩 */
#directory-content:not(:hover) {
  width: 60px !important;
  height: 60px !important;
}

#directory-content:not(:hover) #directory > ul {
  opacity: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
  #directory-content {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  #directory-content {
    width: 50px !important;
    height: 50px !important;
    right: 10px !important;
  }
  
  #directory-content:hover {
    width: 240px !important;
  }
}
  transition: all 0.2s ease !important;
  border-left: 3px solid transparent !important;
}

#directory a:hover {
  background: #f8f9fa !important;
  border-left-color: #667eea !important;
  color: #495057 !important;
  transform: translateX(3px) !important;
}

#directory li.active > a {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
  border-left-color: #2196f3 !important;
  color: #1976d2 !important;
  font-weight: 500 !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
  #directory-content {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  #directory-content {
    width: 50px !important;
    height: 50px !important;
    right: 10px !important;
  }
  
  #directory-content:hover {
    width: 240px !important;
  }
}

/* 首页不显示目录 */
.homepage #directory-content {
  display: none !important;
}

/* 目录可见性控制 */
#directory:empty {
  display: none !important;
}

#directory-content:has(#directory:empty) {
  display: none !important;
}

/* 确保有内容的目录可见 */
#directory-content:not(:has(#directory:empty)) {
  display: block !important;
}

/* 空目录时显示占位按钮 */
#directory:empty::before {
  content: "目录" !important;
  display: block !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.8em 1em !important;
  text-align: center !important;
  font-size: 0.9em !important;
  letter-spacing: 0.5px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
}

/* 隐藏标题前的锚点链接符号 */
.am-article-bd h1:before,
.am-article-bd h2:before,
.am-article-bd h3:before,
.am-article-bd h4:before,
.am-article-bd h5:before,
.am-article-bd h6:before {
  display: none !important;
}

/* 隐藏Hugo自动生成的标题锚点 */
.am-article-bd h1 a,
.am-article-bd h2 a,
.am-article-bd h3 a,
.am-article-bd h4 a,
.am-article-bd h5 a,
.am-article-bd h6 a {
  display: none !important;
}

/* 确保标题文本正常显示 */
.am-article-bd h1,
.am-article-bd h2,
.am-article-bd h3,
.am-article-bd h4,
.am-article-bd h5,
.am-article-bd h6 {
  text-decoration: none !important;
}

/* 文章列表样式 */
.post-list {
  margin-top: 2em !important;
}

.post-item {
  background: white !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  padding: 1.5em !important;
  margin-bottom: 1.5em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.post-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.post-item h3 {
  margin: 0 0 0.5em 0 !important;
  font-size: 1.3em !important;
}

.post-item h3 a {
  color: #2c3e50 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.post-item h3 a:hover {
  color: #3498db !important;
}

.post-meta {
  font-size: 0.9em !important;
  color: #666 !important;
  margin-bottom: 1em !important;
}

.post-date {
  margin-right: 1em !important;
}

.post-categories a.category {
  background-color: #3498db !important;
  color: white !important;
  padding: 0.2em 0.6em !important;
  border-radius: 12px !important;
  font-size: 0.8em !important;
  margin-left: 0.5em !important;
  text-decoration: none !important;
}

.post-categories a.category:hover {
  background-color: #2980b9 !important;
}

.post-summary {
  color: #555 !important;
  line-height: 1.6 !important;
  margin-bottom: 1em !important;
}

.read-more {
  color: #3498db !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

.read-more:hover {
  color: #2980b9 !important;
  text-decoration: underline !important;
}

/* 首页两列布局样式 */
.latest-posts {
  margin-bottom: 2em !important;
}

.section-title {
  color: #2c3e50 !important;
  font-size: 1.6em !important;
  font-weight: 600 !important;
  margin-bottom: 1.5em !important;
  border-bottom: 3px solid #3498db !important;
  padding-bottom: 0.5em !important;
}

.post-item-card {
  background: white !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  padding: 1.2em !important;
  margin-bottom: 1.2em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
}

.post-item-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

.post-item-card h3 {
  margin: 0 0 0.5em 0 !important;
  font-size: 1.2em !important;
}

.post-item-card h3 a {
  color: #2c3e50 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.post-item-card h3 a:hover {
  color: #3498db !important;
}

.post-item-card .post-meta {
  font-size: 0.85em !important;
  color: #666 !important;
  margin-bottom: 0.8em !important;
}

.post-item-card .post-date {
  margin-right: 1em !important;
}

.post-item-card .post-categories .category {
  background-color: #e8f4fd !important;
  color: #0c5460 !important;
  padding: 0.15em 0.5em !important;
  border-radius: 10px !important;
  font-size: 0.8em !important;
  margin-left: 0.5em !important;
}

.post-item-card .post-summary {
  color: #555 !important;
  line-height: 1.5 !important;
  margin-bottom: 0.8em !important;
  font-size: 0.9em !important;
}

.post-item-card .read-more {
  color: #3498db !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.9em !important;
}

.view-all-posts {
  text-align: center !important;
  margin-top: 2em !important;
}

.btn {
  display: inline-block !important;
  background-color: #3498db !important;
  color: white !important;
  padding: 0.8em 1.5em !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
}

.btn:hover {
  background-color: #2980b9 !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

.btn-primary {
  background-color: #3498db !important;
}

/* 右侧边栏样式 */
.sidebar {
  /* margin-left: 0.8em !important; */
}

/* 去掉sidebar-container的padding */
.sidebar-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 左侧内容区域 */
.home-main-content,
.list-main-content {
  margin-right: 0.8em !important;
}

.sidebar-content {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  padding: 1.5em !important;
}

.sidebar-content h2,
.sidebar-content h3 {
  margin-top: 1em !important;
}

.sidebar-content h2:first-child,
.sidebar-content h3:first-child {
  margin-top: 0 !important;
}

/* 新版首页样式 */
.home-main-content {
  margin-bottom: 2em !important;
}

.section-header {
  text-align: center !important;
  margin-bottom: 2em !important;
}

.section-title {
  color: #2c3e50 !important;
  font-size: 1.8em !important;
  font-weight: 700 !important;
  margin-bottom: 0.5em !important;
  border: none !important;
  padding: 0 !important;
}

.section-subtitle {
  color: #7f8c8d !important;
  font-size: 1em !important;
  margin: 0 !important;
}

/* 最新文章卡片 */
.post-card {
  background: white !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  padding: 1.5em !important;
  margin-bottom: 1.5em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.post-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
  border-color: #3498db !important;
}

.post-card-header h3 {
  margin: 0 0 0.8em 0 !important;
  font-size: 1.3em !important;
  line-height: 1.4 !important;
}

.post-card-header h3 a {
  color: #2c3e50 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.post-card-header h3 a:hover {
  color: #3498db !important;
}

.post-card .post-meta {
  font-size: 0.9em !important;
  color: #7f8c8d !important;
  margin-bottom: 1em !important;
}

.post-card .post-date {
  margin-right: 1em !important;
}

.post-card .category {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 0.2em 0.8em !important;
  border-radius: 12px !important;
  font-size: 0.8em !important;
  margin-left: 0.5em !important;
}

.post-card-body .post-summary {
  color: #555 !important;
  line-height: 1.7 !important;
  margin-bottom: 1.2em !important;
}

.post-card-body .read-more {
  color: #3498db !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.95em !important;
}

.post-card-body .read-more:hover {
  color: #2980b9 !important;
}

/* 更多文章按钮 */
.more-posts {
  text-align: center !important;
  margin: 2.5em 0 !important;
}

.btn-outline {
  background: transparent !important;
  border: 2px solid #3498db !important;
  color: #3498db !important;
  padding: 0.8em 2em !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
}

.btn-outline:hover {
  background: #3498db !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

/* 特色服务网格 */
.featured-sections {
  margin-top: 3em !important;
}

.feature-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.2em !important;
  margin-top: 2em !important;
}

.feature-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 1.8em !important;
  border-radius: 15px !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.feature-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

.feature-icon {
  font-size: 2.5em !important;
  margin-bottom: 0.5em !important;
}

.feature-card h4 {
  color: white !important;
  margin: 0.5em 0 !important;
  font-size: 1.2em !important;
  font-weight: 600 !important;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 1.2em !important;
  line-height: 1.5 !important;
}

.feature-link {
  display: inline-block !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  padding: 0.6em 1.2em !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: background 0.3s ease !important;
}

.feature-link:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

/* 侧边栏组件样式 */
.sidebar-widget {
  background: white !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  margin-bottom: 1.5em !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.widget-header {
  background: #f8f9fa !important;
  padding: 1em 1.2em !important;
  border-bottom: 1px solid #e9ecef !important;
}

.widget-title {
  margin: 0 !important;
  font-size: 1.1em !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
}

/* 确保widget标题中的链接保持正常颜色 */
.widget-title a,
.widget-title a:hover,
.widget-title a:focus,
.widget-title a:active {
  color: #2c3e50 !important;
  text-decoration: none !important;
}

.widget-content {
  padding: 1.2em !important;
}

/* 关于站点组件 */
.site-description {
  color: #555 !important;
  line-height: 1.6 !important;
  margin-bottom: 1.5em !important;
}

.site-stats {
  display: flex !important;
  justify-content: space-around !important;
  margin-bottom: 1.5em !important;
}

.stat-item {
  text-align: center !important;
}

.stat-number {
  display: block !important;
  font-size: 1.5em !important;
  font-weight: 700 !important;
  color: #3498db !important;
}

.stat-label {
  font-size: 0.85em !important;
  color: #7f8c8d !important;
}

.site-motto {
  background: #f8f9fa !important;
  border-left: 4px solid #3498db !important;
  padding: 1em !important;
  margin: 0 !important;
  font-style: italic !important;
  color: #555 !important;
}

/* 协议列表 */
.protocol-item {
  display: flex !important;
  align-items: center !important;
  padding: 1em 0 !important;
  text-decoration: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  transition: all 0.3s ease !important;
}

.protocol-item:last-child {
  border-bottom: none !important;
}

.protocol-item:hover {
  background: #f8f9fa !important;
  transform: translateX(5px) !important;
}

.protocol-icon {
  font-size: 1.5em !important;
  margin-right: 0.8em !important;
  width: 40px !important;
  text-align: center !important;
}

.protocol-info h4 {
  margin: 0 0 0.2em 0 !important;
  color: #2c3e50 !important;
  font-size: 1em !important;
}

.protocol-info p {
  margin: 0 !important;
  color: #7f8c8d !important;
  font-size: 0.9em !important;
}

/* 快速链接 */
.quick-links {
  display: grid !important;
  gap: 0.8em !important;
}

.quick-link {
  display: block !important;
  padding: 0.8em !important;
  background: #f8f9fa !important;
  color: #555 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.quick-link:hover {
  background: #3498db !important;
  color: white !important;
  transform: translateX(3px) !important;
}

/* 分类列表样式 */
.categories-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5em !important;
}

.category-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.5em 0.8em !important;
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  color: #495057 !important;
  transition: all 0.3s ease !important;
}

.category-item:hover {
  background: #e3f2fd !important;
  border-color: #2196f3 !important;
  color: #1976d2 !important;
  text-decoration: none !important;
  transform: translateX(3px) !important;
}

.category-name {
  font-weight: 500 !important;
  flex-grow: 1 !important;
}

.category-count {
  background: #6c757d !important;
  color: white !important;
  padding: 0.2em 0.5em !important;
  border-radius: 12px !important;
  font-size: 0.8em !important;
  font-weight: 600 !important;
}

/* 标签云样式 */
.tags-cloud {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5em !important;
}

.tag-item {
  display: inline-block !important;
  padding: 0.3em 0.8em !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  color: #495057 !important;
  font-size: 0.85em !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.tag-item:hover {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) !important;
  border-color: #1976d2 !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3) !important;
}

/* 标签页面专用样式 */
.tags-page-content {
  padding: 0 !important;
}

/* 标签页统计区域 */
.tags-stats-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 16px !important;
  padding: 2em !important;
  margin-bottom: 2.5em !important;
  text-align: center !important;
}

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 1.5em !important;
  margin-bottom: 1.5em !important;
}

.stats-card {
  background: white !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  padding: 1.5em 1em !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.stats-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(33, 150, 243, 0.15) !important;
  border-color: #2196f3 !important;
}

.stats-icon {
  font-size: 2.5em !important;
  margin-bottom: 0.5em !important;
  opacity: 0.8 !important;
}

.stats-info .stats-number {
  display: block !important;
  font-size: 2.2em !important;
  font-weight: 700 !important;
  color: #2196f3 !important;
  line-height: 1 !important;
  margin-bottom: 0.3em !important;
}

.stats-info .stats-label {
  font-size: 0.9em !important;
  color: #6c757d !important;
  font-weight: 500 !important;
}

.page-description {
  color: #6c757d !important;
  font-size: 1.1em !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* 分类页面专用样式 */
.categories-page-content {
  padding: 0 !important;
}

.categories-stats-section {
  background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%) !important;
  border: 1px solid #c8e6c9 !important;
  border-radius: 16px !important;
  padding: 2em !important;
  margin-bottom: 2.5em !important;
  text-align: center !important;
}

.categories-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 1.2em !important;
}

.category-card {
  display: block !important;
  padding: 1.5em !important;
  background: white !important;
  border: 1px solid #e8f5e8 !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  color: #2e7d2e !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.category-card:hover {
  text-decoration: none !important;
  color: #1b5e20 !important;
  border-color: #4caf50 !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 24px rgba(76, 175, 80, 0.2) !important;
}

.category-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #4caf50 0%, #2e7d2e 100%) !important;
  transform: scaleX(0) !important;
  transition: transform 0.3s ease !important;
}

.category-card:hover::before {
  transform: scaleX(1) !important;
}

.category-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1em !important;
}

.category-icon {
  font-size: 1.8em !important;
  opacity: 0.7 !important;
}

.category-count {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%) !important;
  color: #2e7d2e !important;
  padding: 0.3em 0.8em !important;
  border-radius: 20px !important;
  font-size: 0.8em !important;
  font-weight: 600 !important;
}

.category-name {
  font-size: 1.2em !important;
  font-weight: 700 !important;
  margin: 0 0 0.5em 0 !important;
  color: inherit !important;
  line-height: 1.3 !important;
}

.category-desc {
  font-size: 0.9em !important;
  color: #4caf50 !important;
  margin: 0 0 1em 0 !important;
  line-height: 1.4 !important;
}

.category-bar {
  width: 100% !important;
  height: 4px !important;
  background: #e8f5e8 !important;
  border-radius: 2px !important;
  overflow: hidden !important;
}

.category-progress {
  height: 100% !important;
  background: linear-gradient(90deg, #4caf50 0%, #2e7d2e 100%) !important;
  transition: width 0.3s ease !important;
}

.page-intro {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 12px !important;
  padding: 2em !important;
  margin-bottom: 2em !important;
  text-align: center !important;
}

.page-intro-title {
  color: #495057 !important;
  font-size: 2em !important;
  font-weight: 700 !important;
  margin-bottom: 0.5em !important;
}

.page-intro-description {
  color: #6c757d !important;
  font-size: 1.1em !important;
  margin-bottom: 1.5em !important;
  line-height: 1.6 !important;
}

.tags-stats {
  display: flex !important;
  justify-content: center !important;
  gap: 2em !important;
}

.stats-item {
  text-align: center !important;
}

.stats-number {
  display: block !important;
  font-size: 2em !important;
  font-weight: 700 !important;
  color: #2196f3 !important;
  line-height: 1 !important;
}

.stats-label {
  display: block !important;
  font-size: 0.9em !important;
  color: #6c757d !important;
  margin-top: 0.3em !important;
}

/* 热门标签区域 */
.hot-tags-section,
.all-tags-section {
  margin-bottom: 2.5em !important;
}

.section-title {
  color: #495057 !important;
  font-size: 1.4em !important;
  font-weight: 600 !important;
  margin-bottom: 1.2em !important;
  padding-bottom: 0.5em !important;
  border-bottom: 2px solid #e9ecef !important;
}

.hot-tags-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1.2em !important;
}

.hot-tag-card {
  display: block !important;
  padding: 1.5em !important;
  background: white !important;
  border: 1px solid #e9ecef !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  color: #495057 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  position: relative !important;
  overflow: hidden !important;
}

.hot-tag-card:hover {
  text-decoration: none !important;
  color: #1976d2 !important;
  border-color: #2196f3 !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 24px rgba(33, 150, 243, 0.2) !important;
}

.hot-tag-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #2196f3 0%, #1976d2 100%) !important;
  transform: scaleX(0) !important;
  transition: transform 0.3s ease !important;
}

.hot-tag-card:hover::before {
  transform: scaleX(1) !important;
}

.hot-tag-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1em !important;
}

.hot-tag-count {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
  color: #1976d2 !important;
  padding: 0.3em 0.8em !important;
  border-radius: 20px !important;
  font-size: 0.8em !important;
  font-weight: 600 !important;
}

.hot-tag-icon {
  font-size: 1.8em !important;
  opacity: 0.7 !important;
}

.hot-tag-name {
  font-size: 1.2em !important;
  font-weight: 700 !important;
  margin: 0 0 0.5em 0 !important;
  color: inherit !important;
  line-height: 1.3 !important;
}

.hot-tag-desc {
  font-size: 0.9em !important;
  color: #6c757d !important;
  margin: 0 0 1em 0 !important;
  line-height: 1.4 !important;
}

.hot-tag-bar {
  width: 100% !important;
  height: 4px !important;
  background: #e9ecef !important;
  border-radius: 2px !important;
  overflow: hidden !important;
}

.hot-tag-progress {
  height: 100% !important;
  background: linear-gradient(90deg, #2196f3 0%, #1976d2 100%) !important;
  transition: width 0.3s ease !important;
}

/* 增强版标签云 */
.tags-cloud-enhanced {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.8em !important;
  justify-content: center !important;
  padding: 1.5em !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  border: 1px solid #e9ecef !important;
}

.tag-bubble {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3em !important;
  padding: 0.4em 0.8em !important;
  background: white !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  color: #495057 !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.tag-bubble:hover {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) !important;
  border-color: #1976d2 !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3) !important;
}

.tag-bubble-count {
  background: #e9ecef !important;
  color: #495057 !important;
  padding: 0.1em 0.4em !important;
  border-radius: 10px !important;
  font-size: 0.8em !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.tag-bubble:hover .tag-bubble-count {
  background: rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .sidebar {
    margin-left: 0 !important;
    margin-top: 2em !important;
  }
  
  .latest-posts {
    margin-bottom: 2em !important;
  }
  
  .feature-grid {
    grid-template-columns: 1fr !important;
  }
  
  .site-stats {
    flex-direction: column !important;
    gap: 1em !important;
  }
  
  .protocol-item {
    padding: 0.8em !important;
  }
}

/* 归档页面样式 */
.page-intro {
  background: white !important;
  border-radius: 12px !important;
  padding: 1.5em !important;
  margin-bottom: 2em !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  border: 1px solid #e9ecef !important;
}

.intro-content {
  color: #555 !important;
  line-height: 1.6 !important;
}

.archive-content {
  background: white !important;
  border-radius: 12px !important;
  padding: 2em !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  border: 1px solid #e9ecef !important;
}

/* 归档头部 */
.archive-header,
.taxonomy-header,
.terms-header {
  text-align: center !important;
  margin-bottom: 2.5em !important;
  padding-bottom: 1.5em !important;
  border-bottom: 2px solid #f0f0f0 !important;
}

.archive-title,
.taxonomy-title,
.terms-title {
  color: #2c3e50 !important;
  font-size: 2em !important;
  font-weight: 700 !important;
  margin-bottom: 0.5em !important;
}

.archive-count,
.taxonomy-count,
.terms-description {
  color: #7f8c8d !important;
  font-size: 1.1em !important;
  margin: 0 !important;
}

/* 归档统计信息 */
.archive-stats {
  margin-bottom: 2em !important;
  padding: 1em !important;
  background: #f8f9fa !important;
  border-radius: 8px !important;
  text-align: center !important;
}

/* 归档列表项 */
.archive-item,
.taxonomy-item {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 10px !important;
  padding: 1.5em !important;
  margin-bottom: 1.2em !important;
  transition: all 0.3s ease !important;
}

.archive-item:hover,
.taxonomy-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  border-color: #3498db !important;
}

.archive-item-header,
.taxonomy-item-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 1em !important;
}

.archive-item h3,
.taxonomy-item h3 {
  margin: 0 !important;
  flex: 1 !important;
  font-size: 1.2em !important;
  line-height: 1.4 !important;
}

.archive-item h3 a,
.taxonomy-item h3 a {
  color: #2c3e50 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.archive-item h3 a:hover,
.taxonomy-item h3 a:hover {
  color: #3498db !important;
}

/* 分类和标签徽章 */
.archive-categories,
.item-tags,
.item-categories {
  display: flex !important;
  gap: 0.5em !important;
  flex-wrap: wrap !important;
  margin-left: 1em !important;
}

.category-tag,
.tag-badge,
.category-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 0.3em 0.8em !important;
  border-radius: 15px !important;
  font-size: 0.8em !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.tag-badge {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

/* 归档内容体 */
.archive-item-body,
.taxonomy-item-body {
  padding-top: 0.5em !important;
}

.archive-summary,
.taxonomy-summary {
  color: #666 !important;
  line-height: 1.6 !important;
  margin-bottom: 1em !important;
}

.archive-link,
.taxonomy-link {
  color: #3498db !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.9em !important;
}

.archive-link:hover,
.taxonomy-link:hover {
  color: #2980b9 !important;
  text-decoration: underline !important;
}

/* 标签云样式 */
.terms-cloud {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1em !important;
  justify-content: center !important;
  margin-top: 2em !important;
}

.term-item {
  display: flex !important;
  align-items: center !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 0.8em 1.2em !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

.term-item:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
  color: white !important;
}

.term-name {
  font-weight: 600 !important;
  margin-right: 0.5em !important;
}

.term-count {
  background: rgba(255, 255, 255, 0.3) !important;
  padding: 0.2em 0.6em !important;
  border-radius: 12px !important;
  font-size: 0.85em !important;
  font-weight: 700 !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .archive-item-header,
  .taxonomy-item-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .archive-categories,
  .item-tags,
  .item-categories {
    margin-left: 0 !important;
    margin-top: 0.8em !important;
  }
  
  .archive-title,
  .taxonomy-title,
  .terms-title {
    font-size: 1.5em !important;
  }
  
  .terms-cloud {
    justify-content: flex-start !important;
  }
  
  .term-item {
    font-size: 0.9em !important;
  }
}

/* 分页样式优化 */
.pagination {
  margin-top: 3em !important;
  text-align: center !important;
}

.pagination .page-item {
  display: inline-block !important;
  margin: 0 0.3em !important;
}

.pagination .page-link {
  background: white !important;
  border: 1px solid #e9ecef !important;
  color: #555 !important;
  padding: 0.6em 1em !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.pagination .page-link:hover {
  background: #3498db !important;
  border-color: #3498db !important;
  color: white !important;
}

.pagination .page-item.active .page-link {
  background: #3498db !important;
  border-color: #3498db !important;
  color: white !important;
}

/* 添加一些视觉改进 */
.fade-in {
  animation: fadeInUp 0.6s ease-out !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 添加平滑滚动 */
html {
  scroll-behavior: smooth !important;
}

/* 优化选择文本的颜色 */
::selection {
  background: #3498db !important;
  color: white !important;
}

::-moz-selection {
  background: #3498db !important;
  color: white !important;
}
