@import "./prism-dark.css";
@import "./prism-line-numbers.css";
@import "./search-modal.css";
@import "./fonts.css";


/* 自定义属性 */
/* 个性信息 */
.header-profile {
  display: block;
  border-radius: 50%;
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.profile-icon i {
  color: #ccc;
  margin: 3px;
  font-size: 1.5rem;
  /* 默认大小 */
  transition: font-size 0.3s ease;
  /* 平滑过渡 */
}

.profile-icon i:hover {
  font-size: 2rem;
}

.profile-url {
  text-decoration: none;
  color: inherit;
  outline: none;
  font-size: 20px;
}

.profile-author {
  font-family: profile-author-font;
  display: block;
  font-size: 30px;
}

/* 个人信息卡片 */
.profile-card {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  /* 移除阴影 */
}


/* 不动 */
.nav-brand>a {
  font-family: 'profile-author-font';
  text-decoration: none;
  color: inherit;
  outline: none;
  font-size: 30px;
}

/* Z-Index 层次管理 */
/* 
  - 背景壁纸: z-index: -1
  - 普通内容: z-index: 1
  - 固定导航栏: z-index: 1000
  - 模态框背景: z-index: 1040
  - 模态框内容: z-index: 1050
  - 返回顶部按钮: z-index: 999
*/

/* 背景壁纸 */
.wallpaper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* 导航栏样式 */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* 导航栏基础样式 */
.navbar {
  padding: 8px 16px;
  border-radius: 12px !important;
  margin: 16px auto;
  width: calc(100% - 32px);
  max-width: 100%;
  box-sizing: border-box;
}

/* 导航栏内容区域 */
.navbar .container-fluid {
  padding: 0;
  max-width: 100%;
}

/* 导航栏Grid布局 */
.navbar-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* 导航栏三栏布局 */
#navbar-left {
  justify-self: start;
  min-width: 0;
}

#navbar-center {
  justify-self: center;
  min-width: 0;
  width: 100%;
}

#navbar-right {
  justify-self: end;
  min-width: 0;
}

/* 品牌Logo样式 */
.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand a {
  color: var(--bs-body-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: 'profile-author-font', sans-serif;
}

/* 模糊效果 */
.blur {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 深色模式下的模糊效果 */
[data-bs-theme="dark"] .blur {
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 实心背景效果 */
.navbar-solid {
  backdrop-filter: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 浅色主题实心背景 */
.navbar-solid.navbar-light {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 深色主题实心背景 */
.navbar-solid.navbar-dark {
  background-color: rgba(33, 37, 41, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 深色模式下的实心背景效果 */
[data-bs-theme="dark"] .navbar-solid {
  background-color: rgba(33, 37, 41, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 浅色模式下的实心背景效果 */
[data-bs-theme="light"] .navbar-solid {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 导航栏标题容器 */
.navbar-title-container {
  width: 100%;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* 导航栏标题文本 */
.navbar-title-text {
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
  text-align: center;
  color: var(--bs-body-color);
  position: relative;
}

/* 导航栏标题显示时的样式增强 */
.navbar-title-container.show {
  opacity: 1;
  transform: translateY(0);
}

/* 为导航栏添加标题显示状态的背景变化 */
.navbar.show-title {
  backdrop-filter: blur(12px);
}

.navbar.show-title .navbar-title-text {
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    filter: brightness(1);
  }

  100% {
    filter: brightness(1.2);
  }
}

/* 深色模式下的标题样式 */
[data-bs-theme="dark"] .navbar.show-title .navbar-title-text {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 返回顶部按钮 */
#backTopButton {
  z-index: 999;
}

/* 搜索模态框 - 更新z-index */
.search-pop-overlay {
  z-index: 1060;
  /* 提高z-index，确保在offcanvas之上 */
}

.search-pop-overlay .modal {
  z-index: 1070;
  /* 确保模态框在最顶层 */
}

/* 关闭 a 标签默认样式，然后加粗 */
.index-title {
  font-weight: bold;
  text-decoration: none;
  color: inherit;
  outline: none;
  font-size: 20px;
}

.index-date {
  color: gray;
}

/* 在按钮中使用图标,需要使用如下样式 */
.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
}

.border-around::before,
.border-around::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.border-around::before {
  top: 0;
  left: 0;
}

.border-around::after {
  bottom: 0;
  right: 0;
}

.border-around:hover::before,
.border-around:hover::after {
  width: 100%;
  height: 100%;
}

.border-around:hover::before {
  border-radius: 8px;
  border-top: 2px solid aqua;
  border-right: 2px solid aqua;
  transition: width 0.3s ease-out, height 0.3s ease-out 0.3s;
}

.border-around:hover::after {

  border-radius: 8px;
  border-bottom: 2px solid aqua;
  border-left: 2px solid aqua;
  transition: border-color 0s ease-out 0.6s, width 0.3s ease-out 0.6s, height 0.3s ease-out 0.9s;
}

footer a {
  text-decoration: none;
  color: #ccc;
}

/* 搜索按钮 */
#search-pop-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--bs-body-color);
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
}

#search-pop-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(0.98);
}

[data-bs-theme="dark"] #search-pop-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] #search-pop-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#theme {
  background: transparent;
  border: none;
  color: var(--bs-body-color);
  font-size: 1.2rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] #theme:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 导航菜单 */
.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.5rem;
  /* 统一间距 */
}

.navbar-nav .nav-item {
  margin: 0;
}

.navbar-nav .nav-link {
  color: var(--bs-body-color);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link i {
  margin-right: 0.5rem;
}

/* 导航菜单按钮 */
.navbar-toggler {
  border: none;
  padding: 4px 8px;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 确保粒子效果在背景层 */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* 文章目录样式 */
#toc-container {
  padding: 0;
  position: relative;
}

.toc-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  color: var(--bs-body-color);
}

.toc-nav {
  padding: 0.5rem 0;
}

.toc-nav .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-nav .toc-list li {
  margin: 0;
  padding: 0;
}

.toc-nav .toc-list a {
  display: block;
  color: var(--bs-body-color);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  margin: 0.1rem 0;
  border-radius: 0.375rem;
  border-left: 3px solid transparent;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.toc-nav .toc-list a:hover {
  color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.08);
  border-left-color: rgba(var(--bs-primary-rgb), 0.4);
  transform: translateX(2px);
}

.toc-nav .toc-list a.active {
  color: var(--bs-primary);
  background: linear-gradient(135deg,
      rgba(var(--bs-primary-rgb), 0.12) 0%,
      rgba(var(--bs-primary-rgb), 0.06) 100%);
  border-left-color: var(--bs-primary);
  font-weight: 600;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.15);
  animation: tocActivePulse 2s ease-in-out infinite;
}

@keyframes tocActivePulse {
  0% {
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.15);
  }

  50% {
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.25);
  }

  100% {
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.15);
  }
}

.toc-nav .toc-list a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, var(--bs-primary), var(--bs-info));
  border-radius: 0 2px 2px 0;
}

/* 二级标题缩进 */
.toc-nav .toc-list .toc-list-item-2 a {
  padding-left: 1.5rem;
  font-size: 0.8125rem;
}

/* 三级标题缩进 */
.toc-nav .toc-list .toc-list-item-3 a {
  padding-left: 2.25rem;
  font-size: 0.75rem;
}

/* 四级标题缩进 */
.toc-nav .toc-list .toc-list-item-4 a {
  padding-left: 3rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* 深色模式优化 */
[data-bs-theme="dark"] .toc-nav .toc-list a.active {
  background: linear-gradient(135deg,
      rgba(var(--bs-primary-rgb), 0.15) 0%,
      rgba(var(--bs-primary-rgb), 0.08) 100%);
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.2);
}

/* 滚动条样式 */
.toc-nav::-webkit-scrollbar {
  width: 4px;
}

.toc-nav::-webkit-scrollbar-track {
  background: transparent;
}

.toc-nav::-webkit-scrollbar-thumb {
  background: rgba(var(--bs-primary-rgb), 0.3);
  border-radius: 2px;
}

.toc-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--bs-primary-rgb), 0.5);
}

/* 移动端导航栏优化 */
@media (max-width: 991.98px) {
  .navbar {
    margin: 8px auto;
    width: calc(100% - 16px);
  }

  .navbar-grid {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
  }

  #navbar-center {
    display: none;
    /* 移动端隐藏中间标题 */
  }

  .navbar-nav {
    gap: 0.25rem;
  }

  #search-pop-btn {
    padding: 6px 10px !important;
  }

  #search-pop-btn .ms-2 {
    display: none !important;
  }
}

/* 移动端搜索按钮样式 */
#search-pop-btn-mobile {
  transition: all 0.3s ease;
}

#search-pop-btn-mobile button {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

#search-pop-btn-mobile button:hover {
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
  transform: scale(1.05);
}

#search-pop-btn-mobile button:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* 桌面端搜索按钮优化 */
#search-pop-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

#search-pop-btn:hover {
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#search-pop-btn:active {
  transform: translateY(0);
}

/* 导航栏右侧区域优化 */
.navbar-grid #navbar-right {
  gap: 0.5rem;
}

/* 汉堡菜单按钮样式 */
.navbar-toggler {
  border: none;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.navbar-toggler:hover {
  background-color: var(--bs-gray-100);
}

[data-bs-theme="dark"] .navbar-toggler:hover {
  background-color: var(--bs-gray-800);
}

/* Page Layout - Sticky Footer */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-bottom: 2rem;
}

/* Footer 样式 */
.page-footer {
  margin-top: auto;
  padding: 1rem 0;
}

.footer-container {
  width: calc(100% - 32px);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
}

.footer-text {
  color: var(--bs-body-color);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-item {
  white-space: nowrap;
}

.footer-divider {
  color: var(--bs-border-color);
  opacity: 0.5;
}

.footer-link {
  color: var(--bs-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--bs-primary);
  text-decoration: underline;
  filter: brightness(1.2);
}

/* 浅色模式下的footer优化 */
[data-bs-theme="light"] .footer-text {
  color: #6c757d;
}

[data-bs-theme="light"] .footer-link {
  color: var(--bs-primary);
}

[data-bs-theme="light"] .footer-link:hover {
  color: #0056b3;
  text-shadow: 0 0 4px rgba(13, 110, 253, 0.3);
}

[data-bs-theme="light"] .footer-divider {
  color: #dee2e6;
}

/* 深色模式下的footer优化 */
[data-bs-theme="dark"] .footer-text {
  color: #adb5bd;
}

[data-bs-theme="dark"] .footer-link {
  color: #66d9ff;
}

[data-bs-theme="dark"] .footer-link:hover {
  color: #40c4ff;
  text-shadow: 0 0 4px rgba(102, 217, 255, 0.4);
}

[data-bs-theme="dark"] .footer-divider {
  color: #495057;
}

/* 移动端footer优化 */
@media (max-width: 767.98px) {
  .footer-container {
    width: calc(100% - 16px);
    padding: 0 0.5rem;
  }

  .footer-content {
    min-height: auto;
    padding: 0.5rem 0;
  }

  .footer-text {
    font-size: 0.8125rem;
    gap: 0.25rem;
  }

  .footer-item {
    margin-bottom: 0.25rem;
  }

  .footer-item:last-child {
    margin-bottom: 0;
  }
}

/* 超小屏幕优化 */
@media (max-width: 575.98px) {
  .footer-text {
    font-size: 0.75rem;
  }

  .footer-container .container-fluid {
    padding: 0.75rem 1rem;
  }
}

/* Footer背景优化 */
.footer-container .container-fluid {
  background: rgba(var(--bs-body-bg-rgb), 0.8);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  transition: all 0.3s ease;
}

[data-bs-theme="light"] .footer-container .container-fluid {
  background: rgba(248, 249, 250, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .footer-container .container-fluid {
  background: rgba(33, 37, 41, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

/* 归档页面时间轴样式 */
.archive-container {
  max-width: 100%;
  margin: 0 auto;
}

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin-bottom: 0;
}

.archive-title .text-muted {
  font-weight: 400;
}

/* 时间轴容器 */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.timeline-wrapper {
  position: relative;
  padding: 1rem 0;
}

/* 年份部分 */
.timeline-year-section {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-year-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.timeline-year-header:hover {
  transform: translateX(5px);
}

.timeline-year-marker {
  position: relative;
  margin-right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-year-dot {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  border-radius: 50%;
  border: 3px solid var(--bs-body-bg);
  box-shadow: 0 3px 10px rgba(var(--bs-primary-rgb), 0.3);
  z-index: 2;
}

.timeline-year-line {
  width: 3px;
  height: 40px;
  background: linear-gradient(180deg, var(--bs-primary), rgba(var(--bs-primary-rgb), 0.3));
  margin-top: 8px;
}

.timeline-year-content {
  flex: 1;
}

.year-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

.year-count {
  font-size: 0.875rem;
  color: var(--bs-text-muted);
  font-weight: 400;
}

/* 时间轴文章列表 */
.timeline-posts {
  position: relative;
  margin-left: 2.5rem;
  border-left: 2px solid rgba(var(--bs-border-color-rgb), 0.3);
  padding-left: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.timeline-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.timeline-marker {
  position: absolute;
  left: -2.25rem;
  top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--bs-primary);
  border-radius: 50%;
  border: 2px solid var(--bs-body-bg);
  box-shadow: 0 2px 6px rgba(var(--bs-primary-rgb), 0.4);
  z-index: 1;
}

.timeline-line {
  width: 2px;
  height: 40px;
  background: rgba(var(--bs-border-color-rgb), 0.3);
  margin-top: 6px;
}

/* 时间轴卡片 */
.timeline-content {
  position: relative;
}

.timeline-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.card-header {
  padding: 1rem 1.25rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.1);
}

.post-date {
  font-size: 0.8rem;
  color: var(--bs-text-muted);
  font-weight: 500;
}

.post-category {
  font-size: 0.7rem;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.card-body {
  padding: 1.25rem;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.post-link {
  color: var(--bs-body-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-link:hover {
  color: var(--bs-primary);
  text-decoration: none;
}

.post-excerpt {
  color: var(--bs-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-tag {
  font-size: 0.7rem;
  color: var(--bs-info);
  background: rgba(var(--bs-info-rgb), 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

/* 折叠功能 */
.timeline-year-section.collapsed .timeline-posts {
  height: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  transition: all 0.3s ease;
}

.timeline-year-section.collapsed .timeline-year-header::after {
  content: ' (已折叠)';
  color: var(--bs-text-muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

/* 折叠指示器 */
.timeline-year-header::before {
  content: '▼';
  font-size: 0.7rem;
  color: var(--bs-text-muted);
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.timeline-year-section.collapsed .timeline-year-header::before {
  transform: rotate(-90deg);
}

/* 分页样式优化 */
.pagination-wrapper {
  margin: 2rem 0;
}

.pagination {
  --bs-pagination-padding-x: 0.875rem;
  --bs-pagination-padding-y: 0.5rem;
  --bs-pagination-font-size: 0.9rem;
  --bs-pagination-border-radius: 0.5rem;
  gap: 0.25rem;
}

.pagination .page-link {
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.3);
  border-radius: 0.5rem;
  color: var(--bs-body-color);
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  background: var(--bs-body-bg);
}

.pagination .page-link:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.3);
}

.pagination .page-item.active .page-link {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.4);
}

.pagination .page-item.disabled .page-link {
  color: var(--bs-text-muted);
  background: rgba(var(--bs-border-color-rgb), 0.1);
  border-color: rgba(var(--bs-border-color-rgb), 0.2);
  cursor: not-allowed;
}

.pagination-info {
  color: var(--bs-text-muted);
  font-size: 0.875rem;
}

/* 深色模式分页优化 */
[data-bs-theme="dark"] .pagination .page-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .pagination .page-link:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

/* 移动端分页优化 */
@media (max-width: 576px) {
  .pagination {
    --bs-pagination-padding-x: 0.5rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 0.8rem;
    gap: 0.125rem;
  }

  .pagination .page-link {
    min-width: 2rem;
  }

  /* 隐藏部分页码，只保留关键的 */
  .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
    display: none;
  }
}

/* 时间轴移动端响应式优化 */
@media (max-width: 768px) {
  .timeline-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .timeline-wrapper {
    padding: 0.5rem 0;
  }

  .timeline-year-section {
    margin-bottom: 2rem;
  }

  .timeline-year-header {
    margin-bottom: 1rem;
    padding: 0.25rem 0;
  }

  .year-title {
    font-size: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .year-count {
    font-size: 0.8rem;
  }

  .timeline-year-marker {
    margin-right: 1rem;
  }

  .timeline-year-dot {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }

  .timeline-year-line {
    height: 30px;
    margin-top: 6px;
  }

  .timeline-posts {
    margin-left: 2rem;
    padding-left: 1rem;
  }

  .timeline-item {
    margin-bottom: 1.25rem;
  }

  .timeline-marker {
    left: -1.75rem;
    top: 0.5rem;
  }

  .timeline-dot {
    width: 8px;
    height: 8px;
    border-width: 1px;
  }

  .timeline-line {
    height: 30px;
    margin-top: 4px;
  }

  .card-header {
    padding: 1rem 1.125rem 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .post-date {
    font-size: 0.75rem;
  }

  .post-category {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }

  .card-body {
    padding: 1.125rem;
  }

  .post-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .post-excerpt {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .post-tags {
    gap: 0.3rem;
  }

  .post-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .timeline-container {
    padding: 0 0.75rem;
  }

  .year-title {
    font-size: 1.1rem;
  }

  .year-count {
    font-size: 0.75rem;
  }

  .timeline-posts {
    margin-left: 1.5rem;
    padding-left: 0.75rem;
  }

  .timeline-marker {
    left: -1.25rem;
  }

  .card-header {
    padding: 0.875rem 1rem 0.375rem;
  }

  .card-body {
    padding: 1rem;
  }

  .post-title {
    font-size: 0.95rem;
  }

  .post-excerpt {
    font-size: 0.75rem;
  }
}

/* 归档页面样式 */
.archive-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.archive-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
}

.archive-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.archive-title i {
  color: var(--bs-primary);
  font-size: 1.5rem;
}

.archive-title .text-muted {
  font-size: 1rem !important;
  font-weight: 400;
}

/* 归档页面移动端优化 */
@media (max-width: 768px) {
  .archive-container {
    padding: 0.75rem;
  }

  .archive-header {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
  }

  .archive-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .archive-title i {
    font-size: 1.25rem;
  }

  .archive-title .text-muted {
    font-size: 0.875rem !important;
  }
}

@media (max-width: 480px) {
  .archive-title {
    font-size: 1.25rem;
  }

  .archive-title .text-muted {
    font-size: 0.8rem !important;
  }
}

/* 标签云墙样式 */
.tag-wall-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem 1rem;
  text-align: center;
}

.tag-wall-header {
  margin-bottom: 2.5rem;
}

.tag-wall-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-wall-title i {
  color: var(--bs-primary);
  font-size: 1.8rem;
  animation: globeRotate 4s linear infinite;
}

.tag-wall-subtitle {
  font-size: 1.1rem;
  color: var(--bs-text-muted);
  margin: 0;
  font-style: italic;
}

.tag-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  max-width: 800px;
}

.tag-wall-item {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.9), rgba(255, 255, 255, 0.95));
  color: #2c3e50;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(135, 206, 235, 0.15);
  border: 1px solid rgba(135, 206, 235, 0.3);
  margin-bottom: 0.5rem;
  position: relative;
}

.tag-wall-item:hover {
  background: linear-gradient(135deg, rgba(70, 130, 180, 0.95), rgba(240, 248, 255, 0.98));
  color: #1a365d;
  border-color: rgba(70, 130, 180, 0.5);
  box-shadow: 0 4px 16px rgba(70, 130, 180, 0.18);
  transform: scale(1.08);
  z-index: 2;
}

.tag-count {
  font-size: 0.75rem;
  color: rgba(44, 62, 80, 0.7);
  margin-left: 0.3rem;
  font-weight: 400;
  opacity: 0.8;
}

.tag-wall-item:hover .tag-count {
  opacity: 1;
  color: rgba(26, 54, 93, 0.8);
}

[data-bs-theme="dark"] .tag-count {
  color: rgba(26, 32, 44, 0.7);
}

[data-bs-theme="dark"] .tag-wall-item:hover .tag-count {
  color: rgba(45, 55, 72, 0.8);
}

/* 深色模式下的tag-wall-item样式 */
[data-bs-theme="dark"] .tag-wall-item {
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.85), rgba(230, 230, 250, 0.9));
  color: #1a202c;
  border-color: rgba(100, 149, 237, 0.3);
  box-shadow: 0 2px 8px rgba(100, 149, 237, 0.15);
}

[data-bs-theme="dark"] .tag-wall-item:hover {
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.9), rgba(248, 248, 255, 0.95));
  color: #2d3748;
  border-color: rgba(65, 105, 225, 0.5);
}

[data-bs-theme="dark"] .tag-wall-item[data-count^="1"],
[data-bs-theme="dark"] .tag-wall-item[data-count^="2"],
[data-bs-theme="dark"] .tag-wall-item[data-count^="3"],
[data-bs-theme="dark"] .tag-wall-item[data-count^="4"],
[data-bs-theme="dark"] .tag-wall-item[data-count^="5"] {
  background: linear-gradient(135deg, rgba(72, 61, 139, 0.9), rgba(176, 196, 222, 0.95));
  border-color: rgba(72, 61, 139, 0.5);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .tag-wall-container {
    padding: 1.5rem 0.5rem 1.5rem 0.5rem;
  }

  .tag-wall-title {
    font-size: 1.5rem;
  }

  .tag-wall {
    gap: 0.7rem 0.7rem;
    max-width: 98vw;
  }

  .tag-wall-item {
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
  }
}

@media (max-width: 480px) {
  .tag-wall-title {
    font-size: 1.15rem;
  }

  .tag-wall-item {
    font-size: 0.7rem;
    padding: 0.18rem 0.5rem;
  }

  .tag-wall {
    gap: 0.5rem 0.5rem;
  }
}