/* ===========================================
   Base Styles
   基础样式设置
   =========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* 确保所有元素都不会超出容器 */
  max-width: 100%;
}

/* 确保html元素也正确设置 */
html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* 确保所有图片都能自适应容器宽度 */
img {
  max-width: 100%;
  height: auto;
}

/* 确保所有视频都能自适应容器宽度 */
video {
  max-width: 100%;
  height: auto;
}

/* 确保所有iframe都能自适应容器宽度 */
iframe {
  max-width: 100%;
}

/* 确保所有表格都能自适应容器宽度 */
table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

/* 确保所有代码块都能自适应容器宽度 */
pre {
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* 确保所有文本都能自适应容器宽度 */
p {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h3 {
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* 确保所有链接都能自适应容器宽度 */
a {
  overflow-wrap: break-word;
}

/* 确保所有按钮都能自适应容器宽度 */
button {
  overflow-wrap: break-word;
}

/* 确保所有表单元素都能自适应容器宽度 */
input, textarea, select {
  max-width: 100%;
  box-sizing: border-box;
}

/* 确保所有容器都能自适应屏幕宽度 */
.container, .wrapper, .inner {
  max-width: 100%;
  box-sizing: border-box;
}

/* 定义主题配色变量 */
:root {
  /* 主色�?- 梦想�?*/
  --primary-color: #4a6cf7;
  /* 辅助�?- 云朵�?*/
  --secondary-color: #f0f4ff;
  /* 强调�?- 梦想�?*/
  --accent-color: #7c4dff;
  /* 背景�?- 天空�?*/
  --background-color: #ffffff;
  /* 卡片背景�?- 云朵�?*/
  --card-background: #ffffff;
  /* 文本主色 - 深空�?*/
  --text-primary: #2c3e50;
  /* 文本辅助�?- 云层�?*/
  --text-secondary: #7f8c8d;
  /* 边框�?- 薄雾�?*/
  --border-color: rgba(74, 108, 247, 0.15);
  /* 阴影�?- 云影�?*/
  --shadow-color: rgba(0, 0, 0, 0.1);
  /* 成功�?- 晴空�?*/
  --success-color: #36cbcb;
  /* 警告�?- 日落�?*/
  --warning-color: #ff9800;
  /* 错误�?- 晚霞�?*/
  --error-color: #f44336;
  /* 渐变背景 */
  --gradient-primary: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  --gradient-secondary: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  /* 字体变量 */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  /* 间距变量 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  /* 圆角变量 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  /* 阴影变量 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  /* 过渡变量 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 夜间模式配色变量 */
body.dark-mode {
  /* 主色�?- 夜空�?*/
  --primary-color: #8bb7f7;
  /* 辅助�?- 星际�?*/
  --secondary-color: #2c3e50;
  /* 强调�?- 星云�?*/
  --accent-color: #9c88ff;
  /* 背景�?- 宇宙�?*/
  --background-color: #1a1a2e;
  /* 卡片背景�?- 深空�?*/
  --card-background: rgba(30, 30, 50, 0.8);
  /* 文本主色 - 星光�?*/
  --text-primary: #e0e0e0;
  /* 文本辅助�?- 月光�?*/
  --text-secondary: #aaa;
  /* 边框�?- 银河�?*/
  --border-color: rgba(139, 183, 247, 0.15);
  /* 阴影�?- 宇宙�?*/
  --shadow-color: rgba(0, 0, 0, 0.2);
  /* 成功�?- 极光�?*/
  --success-color: #5ccfd6;
  /* 警告�?- 火星�?*/
  --warning-color: #ffb74d;
  /* 错误�?- 星云�?*/
  --error-color: #ef5350;
}

body {
  /* 字体设置：使用系统默认无衬线字体，确保跨平台一致�?*/
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  /* 文本颜色：深空灰，提高可读�?*/
  color: var(--text-primary);
  /* 背景颜色：天空蓝，与云朵白内容区域形成柔和对�?*/
  background-color: var(--background-color);
  /* 平滑滚动效果 */
  scroll-behavior: smooth;
  /* 防止水平滚动 */
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  /* 确保页面最小高度为视口高度 */
  min-height: 100vh;
  /* 确保页面内容正确布局 */
  display: flex;
  flex-direction: column;
  /* 移除默认边距，防止额外空间 */
  margin: 0;
  padding: 0;
}


/* 确保文本元素在悬停时保持清晰 */
p:hover,
h1:hover,
h2:hover,
h3:hover,
h4:hover,
h5:hover,
h6:hover,
span:hover,
a:hover {
  text-shadow: none !important;
}

/* 确保文章内容区域的文本悬停时保持清晰 */
.post-content p:hover,
.post-content a:hover,
.post-content h2:hover,
.post-content h3:hover,
.post-content h4:hover,
.post-content h5:hover,
.post-content h6:hover,
.post-content span:hover,
.post-content li:hover {
}

/* 确保所有文章相关元素悬停时保持清晰 */
.post:hover,
.post-item:hover,
.post-title-link:hover,
.post-excerpt:hover {
}

/* 全局禁用所有悬停时的模糊效�?*/
*:hover {
  text-shadow: none !important;
}

/* 夜间模式样式 */
body.dark-mode {
  /* 文本颜色：星光白，提高可读�?*/
  color: var(--text-primary);
  /* 背景颜色：宇宙黑，与深色内容区域形成对比 */
  background-color: var(--background-color);
}

body.dark-mode h3 {
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* 流星样式 */
.meteor {
  position: fixed;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: meteor-fall linear forwards;
}

/* 流星坠落动画 */
@keyframes meteor-fall {
  0% {

    opacity: 0;
  }
  10% {
    opacity: 1;

  }
  90% {
    opacity: 1;
  }
  100% {

    opacity: 0;
  }
}

/* ===========================================
   Header
   头部导航样式
   =========================================== */
.header {
  /* 背景颜色：白色，干净整洁 */
  background-color: #fff;
  /* 阴影效果：轻微的下阴影，增加层次�?*/
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  /* 内边距：上下�?rem，左�? */
  padding: 1rem 0;
  /* 定位：粘性定位，滚动时固定在顶部 */
  position: sticky;
  top: 0;
  /* 层级：确保头部在其他元素之上 */
  z-index: 1000;
  /* 过渡效果：背景色变化时平滑过�?*/
  transition: all 0.3s ease;
  /* 添加背景渐变效果 */
  background: linear-gradient(135deg, #ffffff, #f8faff);
}

/* 头部滚动效果：滚动时背景色略微变�?*/
.header.scrolled {
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 0.8rem 0;
}

.header-inner {
  /* 最大宽度：1400px，居中显示，增加宽度以容纳更多导航项 */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  /* 布局：flex布局，两端对�?*/
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 1rem;
  /* 不允许导航项换行，确保在一行显�?*/
  flex-wrap: nowrap;
  /* 确保导航栏不会被截断，允许水平滚动，同时确保垂直方向内容完整显示 */
  overflow: visible auto;
  /* 隐藏滚动条但保留滚动功能 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: flex-start;
  /* 确保头部容器不会被其他元素限制宽�?*/
  width: 100%;
  box-sizing: border-box;
}

/* 隐藏滚动�?*/
.header-inner::-webkit-scrollbar {
  display: none;
}

/* 隐藏导航容器滚动�?*/
.nav::-webkit-scrollbar {
  display: none;
}



/* 头部天气插件 */
.header-weather {
  flex-shrink: 0;
  margin-right: 1rem;
  z-index: 9999;
  position: relative;
  order: 1;
}

/* 天气插件容器 */
#tp-weather-widget {
  width: 180px;
  height: auto;
  min-width: 180px;
}

/* 菜单切换按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 6px;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px;
}

.menu-toggle:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.menu-icon {
  width: 20px;
  height: 2px;
  background-color: #333;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-toggle.active .menu-icon:nth-child(1) {

}

.menu-toggle.active .menu-icon:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-icon:nth-child(3) {

}



/* Logo */
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  order: 2;
  flex-shrink: 0;
}

.logo-text {
  /* 字体大小�?.4rem，突出显示，自适应分辨�?*/
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  /* 字体粗细�?00，加�?*/
  font-weight: 800;
  /* 颜色：深灰色，与整体风格一�?*/
  color: #3c4858;
  /* 过渡效果：颜色变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 背景渐变 - 更自然的蓝色�?*/
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* 确保标题横向显示 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: #8492a6;
  transition: all 0.3s ease;
}

.logo:hover .logo-text {
  
  text-shadow: 0 2px 8px rgba(74, 108, 247, 0.3);
}

/* 导航容器 */
.nav {
  /* 布局：flex布局，水平排�?*/
  display: flex;
  /* 间距�?.8rem，导航项之间的距�?*/
  gap: 0.8rem;
  align-items: center;
  /* 不允许导航项换行，确保所有导航项在一行显�?*/
  flex-wrap: nowrap;
  /* 确保导航项在小屏幕上也能正确显示 */
  justify-content: flex-start;
  flex: 1 1 auto;
  order: 3;
  min-width: 0;
  /* 允许水平滚动，确保所有导航项都能显示，同时确保垂直方向内容完整显�?*/
  overflow: visible auto;
  /* 隐藏滚动条但保留滚动功能 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* 确保导航容器不会被压�?*/
  white-space: nowrap;
  /* 确保导航容器占据足够的空�?*/
  min-height: 50px;
  /* 确保导航容器在父容器中正确定�?*/
  position: relative;
  /* 增加导航栏的z-index，确保它在其他元素之�?*/
  z-index: 100;
}

/* 隐藏导航容器的滚动条 */
.nav::-webkit-scrollbar {
  display: none;
}

.search-toggle {
  order: 4;
  flex-shrink: 0;
}

.nav-item {
  /* 颜色：深灰色，与整体风格一�?*/
  color: #3c4858;
  /* 文本装饰：无下划�?*/
  text-decoration: none;
  /* 字体粗细�?00，中等粗�?*/
  font-weight: 500;
  /* 字体大小�?.85rem，适当缩小字体 */
  font-size: 0.85rem;
  /* 过渡效果：颜色和边框变化时平滑过�?*/
  transition: all 0.3s ease;
  /* 内边距：上下0.3rem，左�?.6rem，增加点击区�?*/
  padding: 0.3rem 0.6rem;
  /* 相对定位，用于指示器和子菜单 */
  position: relative;
  /* 确保导航项不换行 */
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  z-index: 100;
  overflow: visible;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 导航项文本容�?*/
.nav-text-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 有子菜单的导航项 */
.nav-item.has-submenu {
  position: relative;
}

/* 子菜单切换按�?*/
.submenu-toggle {
  font-size: 0.6rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.nav-item.has-submenu:hover .submenu-toggle {
  
}

/* 子菜�?*/
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #ffffff, #f8faff);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(74, 108, 247, 0.15);
  border: 1px solid rgba(74, 108, 247, 0.15);
  padding: 0.8rem 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  backdrop-filter: blur(10px);
  overflow: visible;
}

/* 鼠标悬停显示子菜�?*/
.nav-item.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  
  z-index: 1000;
}

/* 子菜单项 */
.submenu-item {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #3c4858;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}

/* 子菜单项图标 */
.submenu-item::before {
  content: '�?;
  position: absolute;
  left: 0.6rem;
  color: #4a6cf7;
  font-size: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

/* 子菜单项悬停效果 */
.submenu-item:hover {
  background: linear-gradient(90deg, rgba(74, 108, 247, 0.1), transparent);
  color: #4a6cf7;
  padding-left: 1.4rem;
  border-left-color: #4a6cf7;
  
}

.submenu-item:hover::before {
  opacity: 1;
}

/* 夜间模式下的子菜�?*/
body.dark-mode .submenu {
  background: linear-gradient(135deg, rgba(40, 40, 60, 0.95), rgba(50, 50, 70, 0.95));
  border-color: rgba(139, 183, 247, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .submenu-item {
  color: #e0e0e0;
}

body.dark-mode .submenu-item:hover {
  background: linear-gradient(90deg, rgba(139, 183, 247, 0.15), transparent);
  color: #90caf9;
  border-left-color: #90caf9;
}

body.dark-mode .submenu-item::before {
  color: #90caf9;
}

.nav-text {
  position: relative;
  z-index: 2;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  
  width: 80%;
  height: 3px;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  border-radius: 2px;
  transition: all 0.3s ease;
  z-index: 1;
  opacity: 0;
}

/* 导航项悬停效果：颜色变为主题色，底部显示主题色边�?*/
.nav-item:hover {
  color: #4a6cf7;
  background-color: rgba(74, 108, 247, 0.05);
  
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item:hover .nav-indicator {
  opacity: 1;
  
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 随机文章按钮 */
.random-post-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #3c4858;
  transition: all 0.3s ease;
  border-radius: 50%;
  padding: 8px;
}

.random-post-toggle:hover {
  background-color: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
}

/* 搜索按钮 */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #3c4858;
  transition: all 0.3s ease;
  border-radius: 50%;
  padding: 8px;
}

.search-toggle:hover {
  background-color: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
}

/* 二级导航�?*/
.secondary-nav {
  background-color: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.header.scrolled .secondary-nav {
  padding: 0.6rem 0;
}

.secondary-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(135deg, #f0f4ff, #f8faff);
  border: 1px solid rgba(74, 108, 247, 0.15);
  border-radius: 25px;
  color: #3c4858;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 108, 247, 0.1);
}

.dropdown-toggle:hover {
  background: rgba(74, 108, 247, 0.1);
  border-color: rgba(74, 108, 247, 0.2);
  
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.15);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  
  margin-top: 0.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  min-width: 180px;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.2rem;
  color: #3c4858;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.dropdown-item:hover {
  background-color: rgba(74, 108, 247, 0.05);
  color: #4a6cf7;
  padding-left: 1.4rem;
}

/* 搜索容器 */
.search-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-container.active {
  opacity: 1;
  visibility: visible;
}

.search-inner {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 0 2rem;
}

.search-input {
  width: 100%;
  padding: 1.2rem 5rem 1.2rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  box-shadow: 0 12px 40px rgba(0, 123, 255, 0.3);
  
}

.search-button {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  margin-top: -20px;
  width: 40px;
  height: 40px;
  background: #4a6cf7;
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.search-button:hover {
  background: #3a58d6;
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.4);
}

.search-close {
  position: absolute;
  top: -60px;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 夜间模式样式 */
body.dark-mode .header {
  background-color: rgba(26, 26, 46, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .header.scrolled {
  background-color: rgba(26, 26, 46, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo-text {
  background: linear-gradient(135deg, #8bb7f7, #5ccfd6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .logo-subtitle {
  color: #aaa;
}

body.dark-mode .nav-item {
  color: #e0e0e0;
}

body.dark-mode .nav-item:hover {
  color: #8bb7f7;
  background-color: rgba(139, 183, 247, 0.1);
}

body.dark-mode .nav-indicator {
  background: linear-gradient(90deg, #8bb7f7, #5ccfd6);
}

body.dark-mode .menu-icon {
  background-color: #e0e0e0;
}

body.dark-mode .search-toggle {
  color: #e0e0e0;
}

body.dark-mode .search-toggle:hover {
  background-color: rgba(139, 183, 247, 0.1);
  color: #8bb7f7;
}

body.dark-mode .secondary-nav {
  background-color: rgba(26, 26, 46, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .dropdown-toggle {
  background: rgba(139, 183, 247, 0.1);
  border: 1px solid rgba(139, 183, 247, 0.2);
  color: #e0e0e0;
}

body.dark-mode .dropdown-toggle:hover {
  background: rgba(139, 183, 247, 0.2);
  border-color: rgba(139, 183, 247, 0.3);
}

body.dark-mode .dropdown-menu {
  background: rgba(36, 36, 56, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dropdown-item {
  color: #e0e0e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .dropdown-item:hover {
  background-color: rgba(139, 183, 247, 0.1);
  color: #8bb7f7;
}

body.dark-mode .search-input {
  background: rgba(36, 36, 56, 0.95);
  color: #e0e0e0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .search-input::placeholder {
  color: #aaa;
}

body.dark-mode .search-input:focus {
  box-shadow: 0 12px 40px rgba(139, 183, 247, 0.3);
}

body.dark-mode .search-button {
  background: #8bb7f7;
  color: #1a1a2e;
}

body.dark-mode .search-button:hover {
  background: #7aa7e7;
  box-shadow: 0 4px 12px rgba(139, 183, 247, 0.4);
}

body.dark-mode .search-close {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

body.dark-mode .search-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 响应式样�?*/
@media (max-width: 1200px) {
  .main {
    max-width: 100%;
    margin: 1.5rem auto;
    padding: 0 1rem;
  }
  
  .main-inner {
    gap: 1.5rem;
  }
  
  .sidebar {
    width: 280px;
  }
  
  .content {
    padding: 1.8rem;
    flex: 1;
    min-width: 300px;
  }
  
  /* 确保导航栏在中等屏幕上也能正确显�?*/
  .header-inner {
    flex-wrap: nowrap;
  }
  
  .nav {
    gap: 0.5rem;
  }
}

@media (max-width: 992px) {
  .main-inner {
    flex-direction: column;
    align-items: stretch;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    margin-bottom: 1.5rem;
  }
  
  .content {
    width: 100%;
    max-width: none;
  }
  
  /* 确保导航栏在平板屏幕上也能正确显�?*/
  .header-inner {
    flex-wrap: nowrap;
  }
  
  .nav {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 1rem;
    padding: 0 1rem;
    /* 确保头部容器在小屏幕上也能正确显示所有元�?*/
    flex-wrap: nowrap;
    /* 确保头部容器在小屏幕上有足够的高�?*/
    min-height: 60px;
  }
  
  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }
  
  .nav {
    /* 默认隐藏导航栏，通过show类显�?*/
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--card-background);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: all 0.3s ease;
    border-radius: 0 0 16px 16px;
  }
  
  .nav.show {
    
    opacity: 1;
    visibility: visible;
  }
  
  .main {
    max-width: 100%;
    margin: 1rem auto;
    padding: 0 0.8rem;
  }
  
  .main-inner {
    gap: 1rem;
  }
  
  .content {
    padding: 1.2rem;
    min-width: 100%;
  }
  
  .sidebar {
    width: 100%;
    padding: 1.2rem;
  }
  
  .nav::-webkit-scrollbar {
    display: none;
  }
  
  .nav-item {
    width: auto;
    text-align: center;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    border-bottom: none;
    font-size: 0.85rem;
    white-space: nowrap;
    /* 确保导航项在小屏幕上有足够的点击区域 */
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-item:hover {
    background-color: rgba(74, 108, 247, 0.05);
  }
  
  .logo-text {
    font-size: 1.3rem;
    white-space: nowrap;
  }
  
  .logo-subtitle {
    font-size: 0.7rem;
    display: none;
  }
  
  .secondary-nav {
    display: none;
  }
  
  .search-inner {
    padding: 0 1rem;
  }
  
  .search-input {
    font-size: 1rem;
    padding: 1rem 4rem 1rem 1.5rem;
  }
  
  .search-button {
    right: 1.5rem;
  }
  
  .content {
    padding: 1.5rem;
    border-radius: 16px;

  }
  
  body.dark-mode .nav {
    background: transparent;
    box-shadow: none;
  }
  
  body.dark-mode .nav-item {
    border-bottom: none;
  }
  
  body.dark-mode .nav-item:hover {
    background-color: rgba(139, 183, 247, 0.1);
  }
  
  .menu-sidebar {
    width: 100%;
    right: -100%;
  }
  
  /* 优化手机端侧边栏样式 */
  .menu-sidebar {
    width: 85%;
    max-width: 300px;
    right: -85%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  body.dark-mode .menu-sidebar {
    background: rgba(30, 30, 50, 0.95);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }
  
  /* 手机端侧边栏动画优化 */
  .menu-sidebar {
    transition: right 0.3s ease-in-out;
  }
  
  .menu-sidebar.show {
    right: 0;
  }
  
  /* 手机端侧边栏内容优化 */
  .menu-content {
    padding: 1.5rem;
  }
  
  .menu-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .theme-button {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* 手机端隐藏传统侧边栏，使用菜单侧边栏 */
  .sidebar {
    display: none !important;
  }
  
  /* 轮播组件响应式优�?*/
  .carousel-container {
    height: 400px;
  }
  
  .carousel-content {
    padding: 0 2rem;
  }
  
  .carousel-content h2 {
    font-size: 2.5rem;
  }
  
  .carousel-content p {
    font-size: 1rem;
  }
  
  /* 统计页面响应式优�?*/
  .stats-overview {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .timeline-date {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 0.8rem;
    /* 确保头部容器在极小屏幕上也能正确显示所有元�?*/
    flex-wrap: nowrap;
    padding: 0 0.8rem;
  }
  
  .logo-text {
    font-size: 1.1rem;
    white-space: nowrap;
  }
  
  .logo-subtitle {
    display: none;
  }
  
  .nav {
    gap: 0.3rem;
    padding: 0.8rem;
  }
  
  .nav-item {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
  }
  
  .content {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .sidebar {
    padding: 1.2rem;
    border-radius: 16px;
  }
  
  .main {
    padding: 0 0.6rem;
    margin: 0.8rem auto;
  }
  
  .main-inner {
    gap: 0.8rem;
  }
  
  /* 轮播组件响应式优�?*/
  .carousel-container {
    height: 300px;
  }
  
  .carousel-content {
    padding: 0 1rem;
  }
  
  .carousel-content h2 {
    font-size: 2rem;
  }
  
  .carousel-content p {
    font-size: 0.9rem;
  }
  
  /* 统计页面响应式优�?*/
  .stats-overview {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
  }
  
  .stat-card {
    padding: 1.2rem;
  }
}

/* ===========================================
   Main Content
   主要内容区域样式
   =========================================== */
.main {
  /* 最大宽度：1600px，大幅增加宽度使页面更加宽敞 */
  max-width: 1600px;
  /* 外边距：上下�?rem，左右自动居�?*/
  margin: 2rem auto;
  /* 内边距：左右�?rem，适配小屏�?*/
  padding: 0 1rem;
  /* 响应式宽�?*/
  width: 100%;
  box-sizing: border-box;
  /* 占据剩余空间，确保footer在底部 */
  flex: 1;
  /* 禁止水平滚动 */
  overflow-x: hidden;
}

.main-inner {
  /* 布局：flex布局，水平排�?*/
  display: flex;
  /* 间距�?rem，调整内容区与侧边栏之间的距�?*/
  gap: 1.5rem;
  /* 响应式：确保在小屏幕上正确换�?*/
  flex-wrap: nowrap;
  /* 对齐：顶部对�?*/
  align-items: flex-start;
  /* 确保内容区和侧边栏能够正确分配空�?*/
  justify-content: space-between;
  /* 确保元素按照HTML顺序排列 */
  flex-direction: row;
}

/* 双栏侧边栏布局调整 */
.main-inner:has(.sidebar-left):has(.sidebar-right) {
  /* 确保在双栏侧边栏时内容区能够居中 */
  justify-content: space-between;
}

.main-inner:has(.sidebar-left):has(.sidebar-right) .content {
  /* 确保内容区在双栏侧边栏时有足够的宽度 */
  /* 最小宽度：300px，确保在双栏侧边栏时内容区有足够的宽�?*/
  min-width: 300px;
  /* 最大宽度：1000px，确保内容区有足够的空间显示div元素 */
  max-width: 1000px;
  /*  margin: 0 auto; 居中显示 */
  margin: 0;
  overflow: visible;
}

/* ===========================================
   Content
   内容区样�?   =========================================== */
.content {
  /* 弹性布局：占据剩余空间 */
  /* 最小宽度：300px，确保在小屏幕上有足够的宽度 */
  min-width: 300px;
  /* 最大宽度：1000px，合理设置内容区最大宽度，确保有足够的空间显示内容 */
  max-width: 1000px;
  /* 背景颜色：白色，干净整洁 */
  background: #fff;
  /* 内边距：2rem，与侧边栏一�?*/
  padding: 2rem;
  /* 边框圆角�?0px，与侧边栏一�?*/
  border-radius: 20px;
  /* 阴影效果：轻微的阴影，增加层次感 */
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  /* 过渡效果：所有变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 边框�?px浅灰色边框，增加立体�?*/
  border: 1px solid #f0f0f0;
  /* 外边距：底部0，移除多余的外边�?*/
  margin-bottom: 0;
  /* 对齐：顶部对齐，确保与侧边栏一�?*/
  align-self: flex-start;
  /* 相对定位，用于装饰效�?*/
  position: relative;
  overflow: visible;
  /* 确保内容区在小屏幕上能够正确显示 */
  box-sizing: border-box;
  display: block;
}

/* 卡片装饰效果 */
.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(74, 108, 247, 0.05),
    transparent
  );
  
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* 装饰动画 */
@keyframes shimmer {
  0% {
    
  }
  100% {
    
  }
}

/* 内容区悬停效果：增加阴影深度，提升立体感 */
.content:hover {
  box-shadow: 0 16px 50px rgba(74, 108, 247, 0.1);
  
  border-color: rgba(74, 108, 247, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

/* ===========================================
   Sidebar
   侧边栏样�?   =========================================== */
.sidebar {
  /* 宽度：根据屏幕宽度自动调整，最大320px */
  flex: 0 0 auto;
  width: 320px;
  max-width: 100%;
  /* 背景颜色：云朵白，与背景融合 */
  background: var(--card-background);
  /* 内边距：2rem，增加内容与边框的距离 */
  padding: 2rem;
  /* 边框圆角 20px，更柔和的圆角效果 */
  border-radius: 20px;
  /* 阴影效果：云影灰 */
  box-shadow: 0 8px 30px var(--shadow-color);
  /* 定位：粘性定位，滚动时固定在顶部 */
  position: sticky;
  top: 90px;
  /* 对齐：顶部对齐，确保粘性定位生效 */
  align-self: flex-start;
  /* 过渡效果：所有变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 层级：确保在背景之上 */
  z-index: 100;
  /* 确保内容能够正确显示，不被截断 */
  overflow: visible;
  /* 确保侧边栏在小屏幕上能够正确显示 */
  box-sizing: border-box;
}

/* 侧边栏悬停效果：增加阴影深度，提升立体感，但不缩放和移动 */
.sidebar:hover {
  box-shadow: 0 16px 50px rgba(74, 108, 247, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

/* 黑夜模式侧边栏 */
body.dark-mode .sidebar {
  background: var(--card-background);
  box-shadow: 0 12px 40px var(--shadow-color);
}

body.dark-mode .sidebar:hover {
  box-shadow: 0 16px 50px rgba(74, 108, 247, 0.15);
  background: rgba(26, 26, 46, 0.95);
}

/* 响应式调整：根据屏幕宽度自动缩放 */
@media (max-width: 1400px) {
  .sidebar {
    width: 320px;
  }
  
  .main-inner {
    gap: 1.5rem;
  }
}

@media (max-width: 1200px) {
  .sidebar {
    width: 280px;
  }
  
  .main-inner {
    gap: 1.2rem;
  }
  
  .content {
    padding: 1.8rem;
  }
  
  .sidebar {
    padding: 1.8rem;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    width: 100%;
    position: static;
    min-height: auto;
    margin-bottom: 1.5rem;
  }
  
  .main-inner {
    flex-direction: column;
    align-items: stretch;
  }
  
  .content {
    width: 100%;
    max-width: 100%;
  }
  
  /* 双栏侧边栏时，确保左右侧边栏能够正确显示 */
  .main-inner:has(.sidebar-left):has(.sidebar-right) {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .main-inner:has(.sidebar-left):has(.sidebar-right) .sidebar-left,
  .main-inner:has(.sidebar-left):has(.sidebar-right) .sidebar-right {
    width: calc(50% - 0.75rem);
    margin-bottom: 0;
  }
  
  .main-inner:has(.sidebar-left):has(.sidebar-right) .content {
    order: -1;
    width: 100%;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main {
    padding: 0 0.8rem;
    margin: 1rem auto;
  }
  
  .main-inner {
    gap: 1rem;
  }
  
  .content {
    padding: 1.2rem;
    border-radius: 16px;
  }
  
  .sidebar {
    padding: 1.2rem;
    border-radius: 16px;
  }
  
  /* 双栏侧边栏时，在小屏幕上堆叠显示 */
  .main-inner:has(.sidebar-left):has(.sidebar-right) .sidebar-left,
  .main-inner:has(.sidebar-left):has(.sidebar-right) .sidebar-right {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* 确保所有容器在移动端都能正确显示 */
  .container, .wrapper, .inner {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* 确保所有元素在移动端都不会导致水平滚动 */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* 修复移动端水平滚动问题 */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  /* 手机端适配 */
  .main {
    margin: 1rem auto;
    padding: 0 0.8rem;
  }
  
  /* 确保所有元素在手机端都能正确显示 */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* 确保页面在手机端能够正常滚动 */
  body {
    overflow-y: auto !important;
  }
  
  /* 调整字体大小 */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 0 0.6rem;
    margin: 0.8rem auto;
  }
  
  .main-inner {
    gap: 0.8rem;
  }
  
  .content {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .sidebar {
    padding: 1rem;
    border-radius: 12px;
  }
  
  /* 调整字体大小 */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: 0.9rem;
  }
  
  /* 确保所有链接在移动端都能正确显示 */
  a {
    font-size: 0.9rem;
  }
  
  /* 确保所有按钮在移动端都能正确显示 */
  button {
    font-size: 0.9rem;
  }
  
  /* 确保所有表单元素在移动端都能正确显示 */
  input, textarea, select {
    font-size: 0.9rem;
  }
}

.sidebar-inner {
  /* 布局：flex布局，垂直排�?*/
  display: flex;
  flex-direction: column;
  /* 间距�?rem，各组件之间的距�?*/
  gap: 2rem;
}

/* 个人信息卡片 */
.profile-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.profile-card:hover {
  
  box-shadow: 0 12px 35px rgba(74, 108, 247, 0.1);
  border-color: rgba(74, 108, 247, 0.2);
}

/* 头像容器 */
.avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
}

/* 头像图片 */
.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(74, 108, 247, 0.2);
  transition: all 0.4s ease;
}

.avatar-container:hover .avatar-img {
  box-shadow: 0 6px 20px rgba(74, 108, 247, 0.3);
}

/* 头像边框 */
.avatar-border {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(74, 108, 247, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* 个人名称 */
.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #3c4858;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 个人描述 */
.profile-desc {
  font-size: 1rem;
  color: #8492a6;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* 个人统计 */
.profile-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* 统计�?*/
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 0.5rem;
}

/* 统计数字 */
.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #4a6cf7;
  margin-bottom: 0.2rem;
}

/* 统计标签 */
.stat-label {
  font-size: 0.85rem;
  color: #8492a6;
}

/* 统计分隔�?*/
.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(0, 0, 0, 0.05);
}

/* 小部件头�?*/
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(74, 108, 247, 0.1);
}

/* 小部件标�?*/
.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title:not(h3) {
  color: #3c4858;
}

.widget-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* 倒计时样�?*/
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

/* 运行时间样式 */
.blog-age-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.blog-age-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

/* 查看全部链接 */
.widget-more {
  font-size: 0.85rem;
  color: #4a6cf7;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  background: rgba(74, 108, 247, 0.1);
}

.widget-more:hover {
  background: rgba(74, 108, 247, 0.2);
  color: #3a58d6;
  
}

/* 分类图标 */
.category-icon {
  margin-right: 0.8rem;
  font-size: 1.1rem;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 分类名称 */
.category-name {
  flex: 1;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 归档图标 */
.archive-icon {
  margin-right: 0.8rem;
  font-size: 1.1rem;
}

/* 归档名称 */
.archive-name {
  flex: 1;
}

/* 最新文章项 */
.recent-post-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* 最新文章内�?*/
.recent-post-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* 最新文章标�?*/
.recent-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3c4858;
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.widget-link:hover .recent-post-title {
  color: #4a6cf7;
}

/* 最新文章日�?*/
.recent-post-date {
  font-size: 0.8rem;
  color: #8492a6;
}

/* 小部件标签云 */
.widget-tag-cloud {
  padding: 1rem 1rem 1rem 0.6rem;
  background: rgba(248, 249, 250, 0.9);
  border-radius: 12px;
  gap: 0.6rem;
  flex-wrap: wrap;
  display: flex;
}

/* 博客统计 */
.widget-stats {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* 统计容器 */
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 统计卡片 */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(248, 249, 250, 0.9);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.1);
  background: rgba(240, 244, 255, 0.9);
  border-color: rgba(74, 108, 247, 0.1);
}

/* 统计图标 */
.stat-icon {
  font-size: 1.5rem;
}

/* 统计信息 */
.stat-info {
  flex: 1;
}

/* 统计�?*/
.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #4a6cf7;
}

/* 统计描述 */
.stat-desc {
  font-size: 0.85rem;
  color: #8492a6;
}

/* 社交链接 */
.widget-social .social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* 社交链接�?*/
.widget-social .social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(248, 249, 250, 0.9);
  border-radius: 12px;
  color: #3c4858;
  text-decoration: none;
  transition: all 0.3s ease;
}

.widget-social .social-link:hover {
  
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.1);
  background: rgba(240, 244, 255, 0.9);
  color: #4a6cf7;
}

/* 社交图标 */
.social-icon {
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

/* 社交名称 */
.social-name {
  font-weight: 500;
}

/* 黑夜模式样式 */
body.dark-mode .profile-card {
  background: rgba(40, 40, 60, 0.9);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .profile-name {
  background: linear-gradient(135deg, #90caf9, #64b5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .profile-desc {
  color: #b0b0b0;
}

body.dark-mode .stat-number {
  color: #90caf9;
}

body.dark-mode .stat-label {
  color: #888;
}

body.dark-mode .stat-divider {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .widget-title:not(h3) {
  color: #e0e0e0;
}

body.dark-mode .widget-more {
  color: #90caf9;
  background: rgba(144, 202, 249, 0.1);
}

body.dark-mode .widget-more:hover {
  background: rgba(144, 202, 249, 0.2);
  color: #64b5f6;
}

body.dark-mode .widget-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .recent-post-title {
  color: #e0e0e0;
}

body.dark-mode .widget-link:hover .recent-post-title {
  color: #90caf9;
}

body.dark-mode .recent-post-date {
  color: #777;
}

body.dark-mode .widget-tag-cloud {
  background: rgba(40, 40, 60, 0.8);
}

body.dark-mode .widget-stats {
  background: rgba(40, 40, 60, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-card {
  background: rgba(50, 50, 70, 0.8);
}

body.dark-mode .stat-card:hover {
  background: rgba(60, 60, 80, 0.9);
  box-shadow: 0 4px 12px rgba(144, 202, 249, 0.1);
}

body.dark-mode .stat-value {
  color: #90caf9;
}

body.dark-mode .stat-desc {
  color: #888;
}

body.dark-mode .widget-social .social-link {
  background: rgba(40, 40, 60, 0.8);
  color: #e0e0e0;
}

body.dark-mode .widget-social .social-link:hover {
  background: rgba(50, 50, 70, 0.9);
  color: #90caf9;
  box-shadow: 0 4px 12px rgba(144, 202, 249, 0.1);
}

body.dark-mode .recent-post-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ===========================================
   Avatar
   头像样式
   =========================================== */
.avatar {
  /* 文本对齐：居中显�?*/
  text-align: center;
  /* 背景颜色：轻微的灰色，与侧边栏背景形成对�?*/
  background-color: #f8f9fa;
  /* 内边距：2rem，内容与边框的距�?*/
  padding: 2rem;
  /* 边框圆角�?0px，柔和的圆角效果 */
  border-radius: 10px;
  /* 边框�?px浅灰色边框，增加立体�?*/
  border: 1px solid #e9ecef;
  /* 过渡效果：所有变化时平滑过渡 */
  transition: all 0.3s ease;
}

/* 头像容器悬停效果：增加阴影深度，提升立体�?*/
.avatar:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.avatar-img {
  /* 宽度和高度：120px，固定尺�?*/
  width: 120px;
  height: 120px;
  /* 边框圆角�?0%，圆形头�?*/
  border-radius: 50%;
  /* 对象适应：cover，确保图片填充整个容�?*/
  object-fit: cover;
  /* 边框�?px白色边框，增加层次感 */
  border: 4px solid #fff;
  /* 阴影效果：轻微的阴影，增加立体感 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* 过渡效果：变换时平滑过渡 */
  transition: all 0.3s ease;
  /* 外边距：底部1rem，与站点描述保持距离 */
  margin-bottom: 1rem;
}

/* 头像悬停效果：轻微放大，增加交互�?*/
.avatar-img:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 头像名字样式 */
.avatar-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-top: 0.8rem;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
  transition: all 0.3s ease;
}

/* 头像名字渐变效果 */
.avatar-name {
  background: linear-gradient(135deg, #333, #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 头像名字悬停效果 */
.avatar-name:hover {
  
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 头像名字样式（黑夜模式） */
body.dark-mode .avatar-name {
  color: #e0e0e0;
  background: linear-gradient(135deg, #e0e0e0, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 头像名字悬停效果（黑夜模式） */
body.dark-mode .avatar-name:hover {
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

/* ===========================================
   Site Description
   站点描述样式
   =========================================== */
.site-description {
  /* 文本对齐：居中显�?*/
  text-align: center;
  /* 颜色：中灰色，不刺眼 */
  color: #666;
  /* 字体大小�?rem，保持默认字体大�?*/
  font-size: 1rem;
  /* 行高�?.6，提高可读�?*/
  line-height: 1.6;
  /* 背景颜色：轻微的蓝色，与站点描述形成对比 */
  background-color: rgba(100, 149, 237, 0.05);
  /* 内边距：1rem，内容与边框的距�?*/
  padding: 1rem;
  /* 边框圆角�?px，柔和的圆角效果 */
  border-radius: 8px;
  /* 边框�?px浅蓝色边框，增加立体�?*/
  border: 1px solid rgba(100, 149, 237, 0.2);
}

/* ===========================================
   Widgets
   侧边栏小部件样式
   =========================================== */
.widget {
  /* 外边距：底部1.5rem，与其他小部件保持距�?*/
  margin-bottom: 1.5rem;
  /* 背景颜色：轻微的灰色，与侧边栏背景形成对�?*/
  background-color: #f8f9fa;
  /* 内边距：1.5rem，内容与边框的距�?*/
  padding: 1.5rem;
  /* 边框圆角 20px，柔和的圆角效果 */
  border-radius: 20px;
  /* 过渡效果：所有变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 边框�?px浅灰色边框，增加立体�?*/
  border: 1px solid #e9ecef;
}

/* ===========================================
   Cloud Clock
   云朵时钟样式
   =========================================== */
.cloud-clock {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.cloud-body {
  position: relative;
  width: 200px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 60px;
  box-shadow: 
    -30px 20px 0 rgba(255, 255, 255, 0.9),
    30px 20px 0 rgba(255, 255, 255, 0.9),
    0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.cloud-body:hover {
  
  box-shadow: 
    -30px 20px 0 rgba(255, 255, 255, 0.9),
    30px 20px 0 rgba(255, 255, 255, 0.9),
    0 10px 30px rgba(0, 0, 0, 0.15);
}

.clock-display {
  text-align: center;
  z-index: 2;
}

.clock-time {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.clock-date {
  display: block;
  font-size: 0.9rem;
  color: #666;
  font-family: 'Courier New', monospace;
}

/* 黑夜模式下的云朵时钟样式 */
body.dark-mode .cloud-body {
  background-color: rgba(40, 40, 60, 0.8);
  box-shadow: 
    -30px 20px 0 rgba(40, 40, 60, 0.8),
    30px 20px 0 rgba(40, 40, 60, 0.8),
    0 0 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .cloud-body:hover {
  box-shadow: 
    -30px 20px 0 rgba(40, 40, 60, 0.8),
    30px 20px 0 rgba(40, 40, 60, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .clock-time {
  color: #e0e0e0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .clock-date {
  color: #aaa;
}

/* 小部件悬停效果：增加轻微阴影，提升立体感 */
.widget:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  border-color: #dee2e6;
}

.widget-title {
  /* 字体大小�?.2rem，突出显�?*/
  font-size: 1.2rem;
  /* 字体粗细�?00，加�?*/
  font-weight: 700;
  /* 外边距：底部1.2rem，与内容保持距离 */
  margin-bottom: 1.2rem;
  /* 边框：底�?px主题色边框，分隔标题和内�?*/
  border-bottom: 2px solid #007bff;
  /* 内边距：底部0.8rem，与边框保持距离 */
  padding-bottom: 0.8rem;
  /* 字母间距�?px，增加可读�?*/
  letter-spacing: 1px;
  /* 文本对齐：居中显�?*/
  text-align: center;
}

.widget-title:not(h3) {
  /* 颜色：深灰色，与整体风格一�?*/
  color: #333;
  /* 背景：线性渐变下划线，增加视觉效�?*/
  background: linear-gradient(to right, transparent, #007bff, transparent) no-repeat;
  background-size: 100% 2px;
  background-position: bottom;
}

.widget-list {
  /* 列表样式：无，移除默认列表标�?*/
  list-style: none;
}

.widget-item {
  /* 外边距：底部0.8rem，与其他项保持距�?*/
  margin-bottom: 0.8rem;
  /* 布局：flex布局，两端对�?*/
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 过渡效果：变换时平滑过渡 */
  transition: all 0.3s ease;
  /* 内边距：0.5rem，增加点击区�?*/
  padding: 0.5rem;
  /* 边框圆角�?px，柔和的圆角效果 */
  border-radius: 6px;
}

/* 小部件项悬停效果：轻微向右移动，增加交互�?*/
.widget-item:hover {
  
  background-color: rgba(100, 149, 237, 0.05);
}

.widget-link {
  /* 颜色：中灰色，不刺眼 */
  color: #555;
  /* 文本装饰：无下划�?*/
  text-decoration: none;
  /* 过渡效果：颜色变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 字体大小�?.95rem，略小于默认字体 */
  font-size: 0.95rem;
  /* 字体粗细�?00，中等粗�?*/
  font-weight: 500;
}

/* 小部件链接悬停效果：颜色变为主题�?*/
.widget-link:hover {
  color: #007bff;
  text-decoration: underline;
  text-decoration-color: #007bff;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.widget-count {
  /* 颜色：白色，提高可读�?*/
  color: #fff;
  /* 字体大小�?.8rem，明显小于链接文�?*/
  font-size: 0.8rem;
  /* 背景颜色：主题色，与数字形成对比 */
  background-color: #007bff;
  /* 内边距：0.2rem 0.6rem，增加点击区�?*/
  padding: 0.2rem 0.6rem;
  /* 边框圆角�?2px，圆形背�?*/
  border-radius: 12px;
  /* 过渡效果：所有变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 字体粗细�?00，加�?*/
  font-weight: 600;
}

/* 小部件计数悬停效果：背景色变为深主题�?*/
.widget-item:hover .widget-count {
  background-color: #0056b3;
}

/* ===========================================
   Statistics Page
   统计页面样式
   =========================================== */

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.stat-card:hover {
  
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.stat-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.detail-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.tag-list,
.category-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tag-item,
.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.tag-item:hover,
.category-item:hover {
  background: #f0f4ff;
  border-color: rgba(102, 126, 234, 0.2);
  
}

.tag-name,
.category-name {
  font-weight: 500;
  color: #333;
}

.tag-count,
.category-count {
  background: #667eea;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  min-width: 80px;
}

.timeline-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.timeline-bar::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 1s ease;
}

.timeline-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: #667eea;
  min-width: 30px;
}

/* 夜间模式 */
body.dark-mode .stat-card {
  background: rgba(30, 30, 50, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-number {
  color: #90caf9;
}

body.dark-mode .stat-label {
  color: #aaa;
}

body.dark-mode .detail-item {
  background: rgba(40, 40, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .detail-label {
  color: #aaa;
}

body.dark-mode .detail-value {
  color: #e0e0e0;
}

body.dark-mode .tag-item,
body.dark-mode .category-item {
  background: rgba(40, 40, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tag-item:hover,
body.dark-mode .category-item:hover {
  background: rgba(50, 50, 70, 0.9);
}

/* ===========================================
   Post Styles
   文章页面样式
   =========================================== */

/* 文章样式 */
.post {
  background: var(--card-background);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}

.post:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  
}

.post-cover {
  margin: 0 0 2rem 0;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid transparent;
}

.post-cover-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
  border-radius: 8px;
}

.post:hover .post-cover-img {
}

.post-covers-container {
  display: flex;
  margin: 0 0 2rem 0;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid transparent;
}

.post-cover-left, .post-cover-right {
  flex: 1;
  overflow: hidden;
}

.post-cover-left img, .post-cover-right img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  border-radius: 8px;
}

.post-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 2.5rem 2.5rem 0 2.5rem;
  margin-top: 0;
}

.post-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 0 2.5rem 1rem 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.post-content {
  line-height: 1.8;
  color: var(--text-primary);
  font-size: 1.05rem;
  overflow: visible;
  width: 100%;
  padding: 2.5rem;
  box-sizing: border-box;
  flex: 1;
}

/* 确保文章内容中的div元素能够自适应容器宽度 */
.post-content div {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  display: block;
}

/* 确保嵌套的div元素也能正确显示 */
.post-content div div {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  display: block;
}

/* 确保三层嵌套的div元素也能正确显示 */
.post-content div div div {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  display: block;
}

.post-content h1,
.post-content h2,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-content h1 {
  font-size: 1.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.post-content h2 {
  font-size: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.post-content h3 {
  font-size: 1.3rem;
}

.post-content h4 {
  font-size: 1.1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.post-content img:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  color: var(--text-secondary);
  background: var(--primary-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  position: relative;
}

.post-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.post-content code {
  background: var(--primary-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--primary-color);
  font-family: 'Courier New', Courier, monospace;
}

.post-content pre {
  background: var(--bg-dark);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.post-footer {
  margin-top: 0;
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.post-footer-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.post-footer-divider {
  width: 80px;
  height: 2px;
  background: var(--primary-color);
  margin: 0 auto 1.5rem;
  border-radius: 1px;
}

.post-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.tag-link {
  display: inline-block;
  background: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag-link:hover {
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  box-shadow: 0 4px 12px rgba(0, 201, 255, 0.3);
}

/* 文章评论 */
.post-comments {
  margin-top: 0;
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border-color);
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* 响应式设�?*/
@media (max-width: 768px) {
  .post {
    padding: 0;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
  }
  
  .post-cover {
    margin: 0 0 1.5rem 0;
  }
  
  .post-cover-img {
    height: 200px;
  }
  
  .post-title {
    font-size: 1.8rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem 1.5rem;
  }
  
  .post-content {
    font-size: 1rem;
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .post-footer {
    padding: 1.5rem;
  }
  
  .post-comments {
    padding: 1.5rem;
  }
  
  .post-content h1 {
    font-size: 1.6rem;
  }
  
  .post-content h2 {
    font-size: 1.4rem;
  }
  
  .post-content h3 {
    font-size: 1.2rem;
  }
  
  .post-content blockquote {
    padding: 1rem 1.5rem;
  }
  
  .post-footer-tags {
    justify-content: flex-start;
  }
  
  /* 确保文章内容中的div元素能够自适应容器宽度 */
  .post-content div {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* 确保嵌套的div元素也能正确显示 */
  .post-content div div {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* 确保三层嵌套的div元素也能正确显示 */
  .post-content div div div {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .post {
    padding: 0;
  }
  
  .post-cover-img {
    height: 180px;
  }
  
  .post-title {
    font-size: 1.5rem;
    padding: 1.25rem 1.25rem 0 1.25rem;
  }
  
  .post-meta {
    padding: 0 1.25rem 1rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .post-content {
    padding: 1.25rem;
    font-size: 0.95rem;
  }
  
  .post-footer {
    padding: 1.25rem;
  }
  
  .post-comments {
    padding: 1.25rem;
  }
  
  .comments-title {
    font-size: 1.3rem;
  }
}

body.dark-mode .tag-name,
body.dark-mode .category-name {
  color: #e0e0e0;
}

body.dark-mode .tag-count,
body.dark-mode .category-count {
  background: #90caf9;
  color: #1a1a2e;
}

body.dark-mode .timeline-date {
  color: #aaa;
}

body.dark-mode .timeline-bar {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .timeline-bar::after {
  background: linear-gradient(90deg, #90caf9, #64b5f6);
}

body.dark-mode .timeline-count {
  color: #90caf9;
}

/* 响应式样�?*/
@media (max-width: 768px) {
  .stats-overview {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .timeline-date {
    min-width: auto;
  }
}

/* ===========================================
   Search Results
   搜索结果样式
   =========================================== */
.search-results {
  margin-top: 2rem;
}

.search-result-item {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.search-result-item:hover {
  
  box-shadow: 0 8px 20px rgba(74, 108, 247, 0.15);
  border-color: rgba(74, 108, 247, 0.2);
}

.search-result-item h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.search-result-item h3 a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.search-result-item h3 a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.search-result-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===========================================
   Diary Page
   日记页面样式
   =========================================== */
.diary-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.diary-item {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.diary-item:hover {
  
  box-shadow: 0 8px 20px rgba(74, 108, 247, 0.15);
  border-color: rgba(74, 108, 247, 0.2);
}

.diary-item h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.diary-item h3 a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.diary-item h3 a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.diary-item p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.diary-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(74, 108, 247, 0.05);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
}

/* ===========================================
   Games Page
   游戏页面样式
   =========================================== */
.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.game-item {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  text-align: center;
}

.game-item:hover {
  
  box-shadow: 0 8px 20px rgba(74, 108, 247, 0.15);
  border-color: rgba(74, 108, 247, 0.2);
}

.game-item h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.game-item p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.game-button {
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.game-button:hover {
  
  box-shadow: 0 6px 16px rgba(74, 108, 247, 0.4);
}

/* ===========================================
   Tag Cloud
   标签云样�?   =========================================== */
.tag-cloud {
  /* 布局：flex布局，自动换�?*/
  display: flex;
  flex-wrap: wrap;
  /* 间距�?.6rem，标签之间的距离 */
  gap: 0.6rem;
  /* 内边距：1rem，与边框保持距离 */
  padding: 1rem;
  /* 背景颜色：轻微的灰色，与标签形成对比 */
  background-color: rgba(100, 149, 237, 0.05);
  /* 边框圆角�?px，柔和的圆角效果 */
  border-radius: 8px;
  /* 边框�?px浅蓝色边框，增加立体�?*/
  border: 1px solid rgba(100, 149, 237, 0.2);
}

.tag-link {
  /* 颜色：中灰色，不刺眼 */
  color: #555;
  /* 文本装饰：无下划�?*/
  text-decoration: none;
  /* 内边距：0.4rem 1rem，增加点击区�?*/
  padding: 0.4rem 1rem;
  /* 背景颜色：白色，与标签文本形成对�?*/
  background-color: #fff;
  /* 边框圆角�?5px，圆形背�?*/
  border-radius: 25px;
  /* 字体大小�?.9rem，略小于默认字体 */
  font-size: 0.9rem;
  /* 过渡效果：所有变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 边框�?px浅灰色边框，增加立体�?*/
  border: 1px solid #e9ecef;
  /* 字体粗细�?00，中等粗�?*/
  font-weight: 500;
  /* 显示方式：内联块，确保标签能够正确显示 */
  display: inline-block;
}

/* 标签悬停效果：背景色变为主题色，文本颜色变为白色，显示主题色边框 */
.tag-link:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  /* 变换：轻微放大，增加交互�?*/
  
  /* 阴影效果：增加阴影深度，提升立体�?*/
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ===========================================
   Home Page
   首页样式
   =========================================== */
.home {
  /* 宽度�?00%，占据整个内容区�?*/
  width: 100%;
}

/* 轮播图容�?*/
.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  max-height: 50vh;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 3rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.carousel-container:hover {
  box-shadow: 0 30px 60px rgba(74, 108, 247, 0.2);
  
}

/* 轮播�?*/
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 轮播�?*/
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease-in-out;
  
}

.carousel-item.active {
  opacity: 1;
  visibility: visible;
  
}

/* 轮播内容 */
.carousel-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 6rem;
  transition: padding 0.3s ease;
}

/* 轮播标题优化 */
.carousel-content h2 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, #f0f4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 轮播描述优化 */
.carousel-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 轮播按钮容器优化 */
.carousel-buttons {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* 轮播按钮优化 */
.carousel-btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-btn.primary {
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(74, 108, 247, 0.4);
}

.carousel-btn.primary:hover {
  
  box-shadow: 0 12px 35px rgba(74, 108, 247, 0.6);
}

.carousel-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.carousel-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  
  border-color: rgba(255, 255, 255, 0.5);
}

/* 轮播内容内部 */
.carousel-content-inner {
  max-width: 600px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 轮播副标�?*/
.carousel-subtitle {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

/* 轮播标题 */
.carousel-content h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 轮播描述 */
.carousel-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* 轮播按钮容器 */
.carousel-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* 轮播按钮 */
.carousel-btn {
  display: inline-block;
  padding: 1.5rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
  width: 180px;
  height: 60px;
  text-align: center;
  line-height: 30px;
}

/* 主要按钮 */
.carousel-btn.primary {
  background: white;
  color: #3c4858;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  border: 1px solid #e0e0e0;
}

.carousel-btn.primary::before,
.carousel-btn.primary::after {
  content: "";
  position: absolute;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  border: 1px solid #e0e0e0;
  z-index: -1;
}

.carousel-btn.primary::before {
  width: 80px;
  height: 80px;
  top: -30px;
  left: 25px;
}

.carousel-btn.primary::after {
  width: 100px;
  height: 100px;
  top: -50px;
  right: 20px;
}

.carousel-btn.primary:hover {
  background: #f8f9fa;
  color: #3c4858;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.carousel-btn.primary:hover::before {
  background-color: #f8f9fa;
  border-color: white;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.carousel-btn.primary:hover::after {
  background-color: #f8f9fa;
  border-color: white;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* 次要按钮 */
.carousel-btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #3c4858;
  border-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.carousel-btn.secondary::before,
.carousel-btn.secondary::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: -1;
}

.carousel-btn.secondary::before {
  width: 80px;
  height: 80px;
  top: -30px;
  left: 25px;
}

.carousel-btn.secondary::after {
  width: 100px;
  height: 100px;
  top: -50px;
  right: 20px;
}

.carousel-btn.secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.carousel-btn.secondary:hover::before {
  background-color: rgba(255, 255, 255, 1);
  border-color: white;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.carousel-btn.secondary:hover::after {
  background-color: rgba(255, 255, 255, 1);
  border-color: white;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* 轮播背景 */
.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 6s ease-in-out;
}

.carousel-item.active .carousel-bg {
  
}

/* 轮播遮罩 */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  z-index: 2;
}

/* 轮播指示�?*/
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  
  display: flex;
  gap: 0.8rem;
  z-index: 4;
}

.carousel-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-indicator::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

.carousel-indicator.active::before {
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 1);
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.carousel-indicator:hover::before {
  background: white;
}

/* 轮播控制按钮 */
.carousel-control {
  position: absolute;
  top: 50%;
  
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);

  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control.prev {
  left: 2rem;
}

.carousel-control.next {
  right: 2rem;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.3);
  
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

/* 轮播进度�?*/
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  width: 0%;
  z-index: 4;
  transition: width 5s linear;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    
  }
  to {
    opacity: 1;
    
  }
}

.post-list {
  /* 布局：flex布局，垂直排�?*/
  display: flex;
  flex-direction: column;
  /* 间距�?rem，文章之间的距离 */
  gap: 2rem;
}

.post-item {
  /* 背景颜色：白色，干净整洁 */
  background-color: #fff;
  /* 内边距：2rem，增加内容与边框的距�?*/
  padding: 2rem;
  /* 边框圆角 20px，柔和的圆角效果 */
  border-radius: 20px;
  /* 阴影效果：轻微的阴影，增加层次感 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* 过渡效果：所有变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 外边距：底部2rem，与下一篇文章保持距�?*/
  margin-bottom: 2rem;
  /* 边框�?px浅灰色边框，增加立体�?*/
  border: 1px solid #f0f0f0;
}

/* 文章项悬停效果：轻微向上移动，增加阴影深�?*/
.post-item:hover {
  
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: #e0e0e0;
}

.post-title {
  /* 字体大小�?.6rem，突出显�?*/
  font-size: 1.6rem;
  /* 字体粗细�?00，加�?*/
  font-weight: 700;
  /* 外边距：底部1.2rem，与元数据保持距�?*/
  margin-bottom: 1.2rem;
  /* 行高�?.3，提高可读�?*/
  line-height: 1.3;
  /* 颜色：深灰色，与整体风格一�?*/
  color: #3c4858;
}

.post-title-link {
  /* 颜色：深灰色，与整体风格一�?*/
  color: #3c4858;
  /* 文本装饰：无下划�?*/
  text-decoration: none;
  /* 过渡效果：颜色变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 显示：inline-block，支持变换效�?*/
  display: inline-block;
  /* 背景：线性渐变下划线，悬停时显示 */
  background: linear-gradient(to right, #4a6cf7, #4a6cf7) no-repeat;
  background-size: 0 2px;
  background-position: bottom;
  padding-bottom: 0.3rem;
}

/* 文章标题链接悬停效果：颜色变为主题色，显示渐变下划线 */
.post-title-link:hover {
  color: #4a6cf7;
  background-size: 100% 2px;
}

.post-meta {
  /* 颜色：中灰色，不刺眼 */
  color: #8492a6;
  /* 字体大小�?.85rem，略小于默认字体 */
  font-size: 0.85rem;
  /* 外边距：底部1.2rem，与摘要保持距离 */
  margin-bottom: 1.2rem;
  /* 布局：flex布局，水平排�?*/
  display: flex;
  gap: 1rem;
  align-items: center;
  /* 背景颜色：轻微的灰色，与内容形成对比 */
  background-color: #f8f9fa;
  /* 内边距：0.8rem 1.2rem，增加视觉效�?*/
  padding: 0.8rem 1.2rem;
  /* 边框圆角�?0px，圆形背�?*/
  border-radius: 20px;
  /* 边框�?px浅灰色边框，增加立体�?*/
  border: 1px solid #e9ecef;
}

.post-excerpt {
  /* 颜色：中灰色，不刺眼 */
  color: #555;
  /* 外边距：底部1.5rem，与阅读更多链接保持距离 */
  margin-bottom: 1.5rem;
  /* 行高�?.7，提高可读�?*/
  line-height: 1.7;
  /* 字体大小�?rem，保持默认字体大�?*/
  font-size: 1rem;
  /* 文本缩进�?em，增加排版美观度 */
  text-indent: 2em;
  /* 背景颜色：轻微的灰色，与内容形成对比 */
  background-color: #fafafa;
  /* 内边距：1.2rem，增加视觉效�?*/
  padding: 1.2rem;
  /* 边框圆角�?px，柔和的圆角效果 */
  border-radius: 8px;
  /* 边框�?px浅灰色边框，增加立体�?*/
  border: 1px solid #f0f0f0;
}

/* 迷你白云（适合做小按钮） */
.cloud-btn, .read-more, .read-more-btn, .carousel-bottom-btn {
  width: 120px;
  height: 40px;
  background: #f8f9fb;
  background: -webkit-linear-gradient(top, #ffffff 0%, #f5f8fd 100%);
  background: -moz-linear-gradient(top, #ffffff 0%, #f5f8fd 100%);
  background: -ms-linear-gradient(top, #ffffff 0%, #f5f8fd 100%);
  background: -o-linear-gradient(top, #ffffff 0%, #f5f8fd 100%);
  background: linear-gradient(to bottom, #ffffff 0%, #f5f8fd 100%);
  border-radius: 50px;
  /* 按钮基础样式 */
  border: 1px solid #e0e0e0;
  cursor: pointer;
  padding: 0 15px;
  display: inline-block;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  text-align: center;
  line-height: 27px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
}

/* 悬停效果 */
.cloud-btn:hover,
.read-more:hover,
.read-more-btn:hover,
.carousel-bottom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
  background: #ffffff;
  background: -webkit-linear-gradient(top, #ffffff 0%, #f8faff 100%);
  background: -moz-linear-gradient(top, #ffffff 0%, #f8faff 100%);
  background: -ms-linear-gradient(top, #ffffff 0%, #f8faff 100%);
  background: -o-linear-gradient(top, #ffffff 0%, #f8faff 100%);
  background: linear-gradient(to bottom, #ffffff 0%, #f8faff 100%);
}

/* ===========================================
   Post Page
   文章页面样式
   =========================================== */
.post {
  /* 宽度�?00%，占据整个内容区�?*/
  width: 100%;
}

.post-content {
  /* 外边距：顶部2rem，与标题保持距离 */
  margin-top: 2rem;
  /* 行高�?.8，提高可读�?*/
  line-height: 1.8;
}

.post-content h2 {
  /* 外边距：顶部2rem，底�?rem，与其他内容保持距离 */
  margin-top: 2rem;
  margin-bottom: 1rem;
  /* 字体大小�?.3rem，突出显�?*/
  font-size: 1.3rem;
  /* 字体粗细�?00，中等加�?*/
  font-weight: 600;
  /* 颜色：深灰色，与整体风格一�?*/
  color: #333;
  /* 边框：底�?px浅灰色边框，分隔标题和内�?*/
  border-bottom: 1px solid #f0f0f0;
  /* 内边距：底部0.5rem，与边框保持距离 */
  padding-bottom: 0.5rem;
}

.post-content p {
  /* 外边距：底部1rem，与其他段落保持距离 */
  margin-bottom: 1rem;
  /* 颜色：深灰色，提高可读�?*/
  color: #333;
}

.post-content img {
  /* 最大宽度：100%，确保图片适应容器 */
  max-width: 100%;
  /* 高度：自动，保持图片比例 */
  height: auto;
  /* 边框圆角�?px，柔和的圆角效果 */
  border-radius: 4px;
  /* 外边距：上下�?rem，左�?，与其他内容保持距离 */
  margin: 1rem 0;
  /* 阴影效果：轻微的阴影，增加立体感 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  /* 过渡效果：变换时平滑过渡 */
  transition: transform 0.3s ease;
}

/* 文章图片悬停效果：轻微放大，增加交互�?*/
.post-content img:hover {
}

.post-content a {
  /* 颜色：主题色，突出显�?*/
  color: #007bff;
  /* 文本装饰：无下划�?*/
  text-decoration: none;
  /* 过渡效果：颜色变化时平滑过渡 */
  transition: color 0.3s ease;
  /* 边框：底�?px虚线，提示可点击 */
  border-bottom: 1px dashed #007bff;
}

/* 文章链接悬停效果：颜色变为深主题色，底部边框变为实线 */
.post-content a:hover {
  color: #0056b3;
  border-bottom-style: solid;
}

.post-toc {
  /* 外边距：底部2rem，与文章内容保持距离 */
  margin-bottom: 2rem;
  /* 内边距：1rem，内容与边框保持距离 */
  padding: 1rem;
  /* 背景颜色：轻微的灰色，与内容形成对比 */
  background-color: #f9f9f9;
  /* 边框圆角�?px，柔和的圆角效果 */
  border-radius: 4px;
  /* 边框�?px浅灰色边框，增加视觉效果 */
  border: 1px solid #f0f0f0;
}

.post-toc h3 {
  /* 外边距：底部1rem，与目录内容保持距离 */
  margin-bottom: 1rem;
  /* 字体大小�?.1rem，突出显�?*/
  font-size: 1.1rem;
  /* 字体粗细�?00，中等加�?*/
  font-weight: 600;
  /* 颜色：深灰色，与整体风格一�?*/
  color: #333;
  /* 文本转换：大写，增加视觉层次�?*/
  text-
  /* 字母间距�?px，增加可读�?*/
  letter-spacing: 1px;
}

/* ===========================================
   Pagination
   分页样式
   =========================================== */
.pagination {
  /* 布局：flex布局，两端对�?*/
  display: flex;
  justify-content: space-between;
  /* 外边距：顶部2rem，与内容保持距离 */
  margin-top: 2rem;
  /* 内边距：顶部2rem，与内容保持距离 */
  padding-top: 2rem;
  /* 边框：顶�?px浅灰色边框，分隔内容和分�?*/
  border-top: 1px solid #f0f0f0;
  /* 背景颜色：轻微的灰色，与内容形成对比 */
  background-color: #fafafa;
  /* 内边距：1.5rem，增加视觉效�?*/
  padding: 1.5rem;
  /* 边框圆角�?px，柔和的圆角效果 */
  border-radius: 6px;
  /*  margin-top: 2rem; */
}

.prev-page, .next-page {
  /* 颜色：主题色，突出显�?*/
  color: #007bff;
  /* 文本装饰：无下划�?*/
  text-decoration: none;
  /* 内边距：0.6rem 1.2rem，增加点击区�?*/
  padding: 0.6rem 1.2rem;
  /* 边框�?px主题色边�?*/
  border: 1px solid #007bff;
  /* 边框圆角�?0px，圆形按钮效�?*/
  border-radius: 20px;
  /* 过渡效果：所有变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 字体大小�?.95rem，略小于默认字体 */
  font-size: 0.95rem;
  /* 字体粗细�?00，中等加�?*/
  font-weight: 500;
  /* 显示：inline-block，支持变换效�?*/
  display: inline-block;
}

/* 分页链接悬停效果：背景色变为主题色，文本颜色变为白色，轻微放�?*/
.prev-page:hover, .next-page:hover {
  background-color: #4a6cf7;
  color: #fff;
  
}

/* 新分页样式 */
.pagination-section {
  margin-top: 2rem;
  text-align: center;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.8rem;
  background: var(--card-background);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pagination-link {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--card-background);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  min-width: 30px;
  text-align: center;
}

.pagination-link:hover {
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  color: white;
  border-color: #D7003A;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(215, 0, 58, 0.3);
}

.pagination-link.active {
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  color: white;
  border-color: #D7003A;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(215, 0, 58, 0.3);
}

.pagination-ellipsis {
  padding: 0.4rem 0.6rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8rem;
  text-align: center;
}

.pagination-jump {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border-color);
}

.pagination-jump-input {
  width: 50px;
  padding: 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.pagination-jump-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.pagination-jump-btn {
  padding: 0.4rem 0.8rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-jump-btn:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 108, 247, 0.3);
}



/* 响应式设计 */
@media (max-width: 768px) {
  .pagination-container {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.3rem !important;
    justify-content: center !important;
    overflow-x: auto !important;
    padding: 0.6rem !important;
  }
  
  .pagination-link {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
    min-width: 28px !important;
  }
  
  .pagination-ellipsis {
    padding: 0.3rem 0.4rem !important;
    font-size: 0.75rem !important;
  }
  
  .pagination-jump {
    margin-left: 0.3rem !important;
    padding-left: 0.3rem !important;
  }
  
  .pagination-jump-input {
    width: 45px !important;
    padding: 0.3rem !important;
    font-size: 0.75rem !important;
  }
  
  .pagination-jump-btn {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
  }
}

/* ===========================================
   Back to Top Button
   回到顶部按钮
   =========================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(215, 0, 58, 0.3);
  border: 2px solid transparent;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(215, 0, 58, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.back-to-top::before {
  content: '↑';
  font-size: 1.5rem;
  font-weight: bold;
}

/* ===========================================
   Footer
   页脚样式
   =========================================== */
.footer {
  /* 背景颜色：白色，干净整洁 */
  background-color: #fff;
  /* 颜色：深灰色，提高可读�?*/
  color: #3c4858;
  /* 内边距：4rem 0，增加视觉效�?*/
  padding: 4rem 0;
  /* 外边距：顶部4rem，与内容保持距离 */
  margin-top: 4rem;
  /* 边框：顶�?px浅蓝色边框，增加视觉效果 */
  border-top: 1px solid rgba(74, 108, 247, 0.3);
  /* 过渡效果：所有变化时平滑过渡 */
  transition: all 0.3s ease;
  /* 确保footer不会超出页面 */
  width: 100%;
  box-sizing: border-box;
  /* 确保footer在页面底部 */
  flex-shrink: 0;
  /* 阴影：明显的底部阴影 */
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
}

.footer-inner {
  /* 最大宽度：1200px，居中显�?*/
  max-width: 1200px;
  /* 外边距：0 auto，居中显�?*/
  margin: 0 auto;
  /* 内边距：0 1rem，适配小屏�?*/
  padding: 0 1rem;
  /* 文本对齐：居中显�?*/
  text-align: center;
}

/* Footer 中的 p 元素 */
.footer-inner p {
  /* 阴影：明显的文本阴影，使文字更突出 */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 页脚响应式设计 */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0;
    margin-top: 2rem;
  }
  
  .footer-inner {
    padding: 0 1rem;
  }
  
  .copyright {
    font-size: 1rem;
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .powered-by {
    font-size: 0.9rem;
    padding: 0.6rem;
    margin-bottom: 1.5rem;
  }
  
  .social-links {
    gap: 1rem;
    padding: 1rem;
  }
  
  .footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .footer-badge {
    flex: 1 1 45%;
    max-width: 150px;
  }
  
  .footer-badge img {
    width: 100%;
    height: auto;
  }
  
  .footer-blog-age {
    font-size: 0.9rem;
    margin: 1rem 0;
  }
  
  .footer-custom {
    padding: 1rem;
    margin: 1rem 0;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1.5rem 0;
  }
  
  .footer-inner {
    padding: 0 0.8rem;
  }
  
  .copyright {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
  
  .powered-by {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  
  .social-links {
    gap: 0.8rem;
    padding: 0.8rem;
  }
  
  .footer-badge {
    flex: 1 1 100%;
    max-width: 120px;
  }
  
  .footer-blog-age {
    font-size: 0.8rem;
  }
  
  .footer-custom {
    padding: 0.8rem;
  }
}

.copyright {
  /* 外边距：底部1.5rem，与其他内容保持距离 */
  margin-bottom: 1.5rem;
  /* 字体大小�?.1rem，保持默认字体大�?*/
  font-size: 1.1rem;
  /* 字体粗细�?00，加�?*/
  font-weight: 600;
  /* 颜色：主题色，与页脚背景形成对比 */
  color: #4a6cf7;
  /* 内边距：1rem，增加视觉效�?*/
  padding: 1rem;
  /* 背景颜色：轻微的蓝色，与版权信息形成对比 */
  background-color: rgba(74, 108, 247, 0.1);
  /* 边框圆角�?px，柔和的圆角效果 */
  border-radius: 8px;
  /* 最大宽度：600px，居中显�?*/
  max-width: 600px;
  /* 外边距：0 auto 1.5rem，居中显�?*/
  margin: 0 auto 1.5rem;
  /* 边框�?px浅蓝色边框，增加立体�?*/
  border: 1px solid rgba(74, 108, 247, 0.2);
}

.powered-by {
  /* 颜色：黑色，不刺眼 */
  color: #000000;
  /* 字体大小�?rem，略小于默认字体 */
  font-size: 1rem;
  /* 外边距：底部2rem，与社交链接保持距离 */
  margin-bottom: 2rem;
  /* 内边距：0.8rem，增加视觉效�?*/
  padding: 0.8rem;
  /* 背景颜色：轻微的灰色，与页脚背景形成对比 */
  background-color: rgba(0, 0, 0, 0.05);
  /* 边框圆角�?px，柔和的圆角效果 */
  border-radius: 6px;
  /* 最大宽度：500px，居中显�?*/
  max-width: 500px;
  /* 外边距：0 auto 2rem，居中显�?*/
  margin: 0 auto 2rem;
}

.social-links {
  /* 布局：flex布局，居中对�?*/
  display: flex;
  justify-content: center;
  /* 间距�?rem，社交链接之间的距离 */
  gap: 2rem;
  /* 内边距：1.5rem，增加视觉效�?*/
  padding: 1.5rem;
  /* 背景颜色：轻微的灰色，与页脚背景形成对比 */
  background-color: rgba(0, 0, 0, 0.05);
  /* 边框圆角�?0px，柔和的圆角效果 */
  border-radius: 10px;
  /* 最大宽度：500px，居中显�?*/
  max-width: 500px;
  /* 外边距：0 auto，居中显�?*/
  margin: 0 auto;
  /* 边框�?px浅蓝色边框，增加立体�?*/
  border: 1px solid rgba(74, 108, 247, 0.2);
  /* 过渡效果：所有变化时平滑过渡 */
  transition: all 0.3s ease;
}

/* 社交链接容器悬停效果：增加阴影深度，提升立体�?*/
.social-links:hover {
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2);
  border-color: rgba(74, 108, 247, 0.4);
}

.social-link {
  /* 颜色：深灰色，提高可读�?*/
  color: #3c4858;
  /* 文本装饰：无下划�?*/
  text-decoration: none;
  /* 过渡效果：颜色和变换时平滑过�?*/
  transition: all 0.3s ease;
  /* 字体大小�?.2rem，突出显�?*/
  font-size: 1.2rem;
  /* 字体粗细�?00，加�?*/
  font-weight: 600;
  /* 显示：inline-block，支持变换效�?*/
  display: inline-block;
  /* 内边距：0.8rem 1.2rem，增加点击区�?*/
  padding: 0.8rem 1.2rem;
  /* 背景颜色：轻微的蓝色，与社交链接形成对比 */
  background-color: rgba(74, 108, 247, 0.1);
  /* 边框圆角�?5px，圆形背�?*/
  border-radius: 25px;
  /* 边框�?px浅蓝色边框，增加立体�?*/
  border: 1px solid rgba(74, 108, 247, 0.3);
}

/* 社交链接悬停效果：颜色变为主题色，轻微放�?*/
.social-link:hover {
  color: #fff;
  background-color: #4a6cf7;
  
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.4);
  border-color: #4a6cf7;
}

/* ===========================================
   About Page Styles
   关于页面样式
   =========================================== */
.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* 头部信息 */
.about-header {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 20px;

  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.about-header:hover {
  
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.15);
}

.avatar-section {
  text-align: center;
  flex-shrink: 0;
}

.avatar {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
  transition: all 0.3s ease;
}

.avatar-img:hover {
  box-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
}

.avatar-border {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.name {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.header-info {
  flex: 1;
}

.intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  text-decoration: none;
  border-radius: 25px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-link:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  border-color: transparent;
}

/* 章节样式 */
.about-section {
  margin-bottom: 4rem;
  padding: 2.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.about-section:hover {
  
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(102, 126, 234, 0.2);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
  padding-bottom: 1rem;
  border-bottom: 3px solid linear-gradient(90deg, #00C9FF, #92FE9D, #FF006E);
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-icon {
  font-size: 1.8rem;
}

.section-content {
  line-height: 1.8;
  color: #555;
}

.section-content p {
  margin-bottom: 1.5rem;
}

/* 技术栈 */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tech-category h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-tag {
  padding: 0.4rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 时间�?*/
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #667eea, #764ba2);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 3px solid #667eea;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
  font-style: italic;
}

/* 兴趣爱好 */
.hobbies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.hobby-item {
  text-align: center;
  padding: 2rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.hobby-item:hover {
  
  background: rgba(102, 126, 234, 0.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.hobby-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hobby-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

/* 联系方式 */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(102, 126, 234, 0.1);
  
  border-color: rgba(102, 126, 234, 0.3);
}

.contact-item a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* 关于博客 */
.blog-purpose {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.blog-purpose li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.blog-purpose li::before {
  content: '�?;
  position: absolute;
  left: 0;
  top: 0;
}

.blog-motto {
  font-size: 1.2rem;
  font-weight: 600;
  color: #667eea;
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

/* 想说的话 */
.message-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

.message-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: rgba(102, 126, 234, 0.2);
  font-family: serif;
}

.message-signature {
  font-style: italic;
  font-weight: 600;
  color: #667eea;
  text-align: right;
  margin-top: 2rem;
}

/* 动画 */
@keyframes pulse {
  0% {
    
    opacity: 1;
  }
  50% {
    
    opacity: 0.8;
  }
  100% {
    
    opacity: 1;
  }
}

/* 夜间模式支持 */
body.dark-mode .about-header {
  background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.8));
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .about-section {
  background: rgba(30, 30, 50, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .section-content {
  color: #e0e0e0;
}

body.dark-mode .intro {
  color: #ccc;
}

body.dark-mode .subtitle {
  color: #aaa;
}

body.dark-mode .section-title {
  background: linear-gradient(135deg, #90caf9, #64b5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .tech-category h3 {
  color: #e0e0e0;
  border-bottom-color: rgba(144, 202, 249, 0.3);
}

body.dark-mode .tech-tag {
  background: rgba(144, 202, 249, 0.2);
  color: #90caf9;
  border-color: rgba(144, 202, 249, 0.3);
}

body.dark-mode .tech-tag:hover {
  background: linear-gradient(135deg, #90caf9, #64b5f6);
  color: #1a1a1a;
}

body.dark-mode .timeline-content h3 {
  color: #e0e0e0;
}

body.dark-mode .timeline-company {
  color: #aaa;
}

body.dark-mode .timeline-date {
  color: #90caf9;
}

body.dark-mode .hobby-item {
  background: rgba(144, 202, 249, 0.1);
  border-color: rgba(144, 202, 249, 0.2);
}

body.dark-mode .hobby-item h3 {
  color: #e0e0e0;
}

body.dark-mode .contact-item {
  background: rgba(144, 202, 249, 0.1);
  border-color: rgba(144, 202, 249, 0.2);
}

body.dark-mode .contact-item a {
  color: #90caf9;
}

body.dark-mode .contact-item a:hover {
  color: #64b5f6;
}

body.dark-mode .blog-motto {
  color: #90caf9;
  background: rgba(144, 202, 249, 0.1);
  border-color: rgba(144, 202, 249, 0.2);
}

body.dark-mode .message-card {
  background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.8));
  border-color: rgba(144, 202, 249, 0.2);
}

body.dark-mode .message-card::before {
  color: rgba(144, 202, 249, 0.2);
}

body.dark-mode .message-signature {
  color: #90caf9;
}

body.dark-mode .social-link {
  background: rgba(144, 202, 249, 0.1);
  color: #90caf9;
  border-color: rgba(144, 202, 249, 0.3);
}

body.dark-mode .social-link:hover {
  background: linear-gradient(135deg, #90caf9, #64b5f6);
  color: #1a1a1a;
}

/* ===========================================
   Responsive
   响应式样�?   =========================================== */
@media (max-width: 768px) {
  /* 主内容区域：垂直排列 */
  .main-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* 侧边栏：宽度100%，静态定位，添加底部间距 */
  .sidebar {
    width: 100%;
    position: static;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
  
  /* 内容区：内边距调整为1.5rem，适配小屏幕，最小宽度调�?*/
  .content {
    padding: 1.5rem;
    min-width: 100%;
    max-width: 100%;
  }
  
  /* 双栏侧边栏布局调整（移动端�?*/
  .main-inner:has(.sidebar-left):has(.sidebar-right) .content {
    min-width: 100%;
    max-width: 100%;
  }
  
  /* 头部：垂直排列，增加间距 */
  .header-inner {
    gap: 1rem;
    padding: 1rem;
  }
  
  /* 导航：自动换行，居中对齐 */
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  /* 文章标题：字体大小调整为1.3rem，适配小屏�?*/
  .post-title {
    font-size: 1.3rem;
  }
  
  /* 分页：调整为垂直排列，居中对�?*/
  .pagination {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  /* 社交链接：调整间距为1rem，适配小屏�?*/
  .social-links {
    gap: 1rem;
    padding: 0.8rem;
  }
  
  /* 侧边控制面板：调整位置和大小 */
  .sidebar-control-panel {
    right: 15px;
    gap: 0.8rem;
  }
  
  .control-button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* 目录侧边栏：全屏显示 */
  .toc-sidebar {
    width: 100%;
    right: -100%;
  }
  
  /* 菜单切换按钮：显示在移动�?*/
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  body.dark-mode .menu-toggle {
    color: #e0e0e0;
  }
  
  /* 导航菜单：在移动端默认隐�?*/
  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 1rem 0;
  }
  
  /* 导航菜单：在移动端显示时的样�?*/
  .nav.show {
    display: flex;
  }
  
  /* 关于页面响应式样�?*/
  .about-container {
    padding: 1rem 0;
  }
  
  .about-header {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
  }
  
  .avatar {
    width: 120px;
    height: 120px;
  }
  
  .name {
    font-size: 1.6rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .intro {
    font-size: 1rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .social-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .about-section {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .tech-stack {
    grid-template-columns: 1fr;
  }
  
  .hobbies {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hobby-item {
    padding: 1.5rem;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .message-card {
    padding: 1.5rem;
  }
  
  .message-card::before {
    font-size: 3rem;
  }
}

/* 平板设备响应式样�?*/
@media (min-width: 769px) and (max-width: 1024px) {
  .about-header {
    gap: 2rem;
    padding: 2.5rem;
  }
  
  .about-section {
    padding: 2rem;
  }
  
  .tech-stack {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .hobbies {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================================
   Statistics Page Styles
   统计页面样式
   =========================================== */
.statistics-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* 页面标题 */
.stats-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.stats-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
}

/* 主要统计数据 */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.stat-card:hover {
  
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

/* 详细统计 */
.stats-details {
  margin-bottom: 4rem;
}

.stats-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.stats-section:hover {
  
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(102, 126, 234, 0.2);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 统计网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
  
}

.detail-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.detail-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

/* 标签统计 */
.tag-stats {
  padding: 1rem 0;
}

.top-tags h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}

.tag-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: rgba(102, 126, 234, 0.1);
  
}

.tag-name {
  font-weight: 500;
  color: #333;
}

.tag-count {
  background: #667eea;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* 分类统计 */
.category-stats {
  padding: 1rem 0;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.category-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
  
}

.category-name {
  font-weight: 500;
  color: #333;
}

.category-count {
  background: #764ba2;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* 统计说明 */
.stats-note {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 15px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.stats-note p {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.6;
}

#update-time {
  font-weight: 600;
  color: #667eea;
}

/* 夜间模式支持 */
body.dark-mode .stats-header {
  background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.8));
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stats-header h1 {
  background: linear-gradient(135deg, #90caf9, #64b5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .stats-subtitle {
  color: #aaa;
}

body.dark-mode .stat-card {
  background: rgba(30, 30, 50, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-number {
  color: #90caf9;
}

body.dark-mode .stat-label {
  color: #aaa;
}

body.dark-mode .stats-section {
  background: rgba(30, 30, 50, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .section-title {
  color: #e0e0e0;
}

body.dark-mode .detail-item {
  background: rgba(144, 202, 249, 0.1);
  border-color: rgba(144, 202, 249, 0.2);
}

body.dark-mode .detail-label {
  color: #aaa;
}

body.dark-mode .detail-value {
  color: #90caf9;
}

body.dark-mode .tag-item {
  background: rgba(144, 202, 249, 0.1);
  border-color: rgba(144, 202, 249, 0.2);
}

body.dark-mode .tag-name {
  color: #e0e0e0;
}

body.dark-mode .tag-count {
  background: #90caf9;
  color: #1a1a1a;
}

body.dark-mode .category-item {
  background: rgba(144, 202, 249, 0.1);
  border-color: rgba(144, 202, 249, 0.2);
}

body.dark-mode .category-name {
  color: #e0e0e0;
}

body.dark-mode .category-count {
  background: #64b5f6;
  color: #1a1a1a;
}

body.dark-mode .stats-note {
  background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.8));
  border-color: rgba(144, 202, 249, 0.2);
}

body.dark-mode .stats-note p {
  color: #ccc;
}

body.dark-mode #update-time {
  color: #90caf9;
}

/* 统计页面响应式样�?*/
@media (max-width: 768px) {
  .statistics-container {
    padding: 1rem 0;
  }
  
  .stats-header {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .stats-header h1 {
    font-size: 2rem;
  }
  
  .stats-subtitle {
    font-size: 1rem;
  }
  
  .stats-overview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stats-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .detail-item {
    padding: 1.2rem;
  }
  
  .stats-note {
    padding: 1.5rem;
  }
}

/* 平板设备统计页面响应式样�?*/
@media (min-width: 769px) and (max-width: 1024px) {
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 轮播图响应式设计 */
@media (max-width: 768px) {
  .carousel-container {
    height: 500px;
    border-radius: 16px;
  }
  
  .carousel-content {
    padding: 0 2rem;
  }
  
  .carousel-content h2 {
    font-size: 2.5rem;
  }
  
  .carousel-content p {
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
  }
  
  .carousel-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .carousel-btn {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 450px;
  }
  
  .carousel-content h2 {
    font-size: 2rem;
  }
  
  .carousel-content p {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .carousel-content {
    padding: 0 8rem;
  }
  
  .carousel-content h2 {
    font-size: 4.5rem;
  }
  
  .carousel-content p {
    font-size: 1.4rem;
  }
}
