/* 自定义加载动画样式 */
#loading-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#loading-box .loading-word {
  animation: rainbow 3s infinite;
}

@keyframes rainbow {
  0% { color: #ff6b6b; }
  20% { color: #f06595; }
  40% { color: #cc5de8; }
  60% { color: #5f3dc4; }
  80% { color: #364fc7; }
  100% { color: #ff6b6b; }
}

/* 鼠标点击爱心特效增强 */
#click-heart {
  filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.8));
}

/* 页面滚动时的平滑效果 */
html {
  scroll-behavior: smooth;
}

/* 卡片悬停效果增强 */
.recent-post-item,
.card-widget {
  transition: all 0.3s ease;
}

.recent-post-item:hover,
.card-widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 彩虹滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #f093fb, #764ba2, #667eea);
}

/* 链接悬停彩虹效果 */
a {
  position: relative;
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
}

/* 图片加载时的脉动效果 */
img {
  animation: fadeInScale 0.6s ease-in-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 页面顶部渐变背景增强 */
#page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 文章卡片阅读进度条 */
.post-card {
  position: relative;
  overflow: hidden;
}

.post-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.post-card:hover::after {
  width: 100%;
}

/* 按钮悬停波纹效果 */
.button, button, .btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.button::before, button::before, .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:hover::before, button:hover::before, .btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ==================== 阅读进度条 ==================== */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  z-index: 10000;
  transition: width 0.2s ease-out;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

/* 进度条发光效果 */
#reading-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 20px;
  height: 7px;
  background: inherit;
  filter: blur(5px);
  opacity: 0.8;
}

/* ==================== 搜索框增强 ==================== */
.search-dialog {
  backdrop-filter: blur(10px);
  animation: searchFadeIn 0.3s ease;
}

@keyframes searchFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#local-search-input {
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

#local-search-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  transform: scale(1.02);
}

.search-result-list li:hover {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  transform: translateX(5px);
  transition: all 0.3s ease;
}

/* ==================== 代码块增强 ==================== */
.highlight {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.highlight:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

/* 代码复制按钮增强 */
.copy-btn {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  border-radius: 5px;
}

.copy-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.copy-btn:active {
  transform: scale(0.95);
}

/* 代码行号优化 */
.gutter {
  user-select: none;
  opacity: 0.5;
  border-right: 2px solid rgba(102, 126, 234, 0.2);
}

/* ==================== 深色模式平滑过渡 ==================== */
html,
body,
.card-widget,
#aside-content,
#page-header,
.recent-post-item {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 深色模式优化 */
[data-theme='dark'] {
  color-scheme: dark;
}

[data-theme='dark'] #reading-progress {
  background: linear-gradient(90deg, #f093fb 0%, #764ba2 50%, #667eea 100%);
}

[data-theme='dark'] .highlight {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .highlight:hover {
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

/* ==================== 音乐播放器美化 ==================== */
#nav-music {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#nav-music:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.aplayer {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
}

[data-theme='dark'] .aplayer {
  background: rgba(0, 0, 0, 0.6);
}

.aplayer-music {
  border-radius: 8px;
  overflow: hidden;
}

/* 播放按钮动画 */
.aplayer-icon-play,
.aplayer-icon-pause {
  transition: all 0.3s ease;
}

.aplayer-icon-play:hover,
.aplayer-icon-pause:hover {
  transform: scale(1.2);
  color: #667eea !important;
}

/* 进度条美化 */
.aplayer-bar-wrap {
  border-radius: 10px;
  overflow: hidden;
}

/* ==================== 目录（TOC）增强 ==================== */
#card-toc {
  backdrop-filter: blur(10px);
  border-left: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #667eea, #764ba2) border-box;
}

.toc-link {
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.toc-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.toc-link:hover::before,
.toc-link.active::before {
  width: 8px;
}

.toc-link:hover {
  color: #667eea;
  padding-left: 20px;
}

/* ==================== 返回顶部按钮增强 ==================== */
#go-up {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

#go-up:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

#go-up:active {
  transform: translateY(-3px) scale(1.05);
}

/* ==================== 标签云增强 ==================== */
.chip-container .chip {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #667eea, #764ba2) border-box;
}

.chip-container .chip:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ==================== 文章元信息图标 ==================== */
.post-meta-date-icon,
.post-meta-categories-icon,
.post-meta-tags-icon {
  transition: all 0.3s ease;
}

.post-meta-date-icon:hover,
.post-meta-categories-icon:hover,
.post-meta-tags-icon:hover {
  transform: rotate(360deg) scale(1.2);
  color: #667eea;
}

/* ==================== 分页按钮增强 ==================== */
.pagination .page-number,
.pagination .extend {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pagination .page-number:hover,
.pagination .extend:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination .page-number.current {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== 响应式优化 ==================== */
@media screen and (max-width: 768px) {
  #reading-progress {
    height: 2px;
  }
  
  .highlight:hover {
    transform: none;
  }
  
  #nav-music:hover {
    transform: none;
  }
}

/* ==================== 平滑滚动优化 ==================== */
* {
  scroll-behavior: smooth;
}

/* ==================== 选中文本样式 ==================== */
::selection {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-shadow: none;
}

::-moz-selection {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-shadow: none;
}

/* ==================== 每日一言样式增强 ==================== */
#subtitle {
  text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
  animation: subtitleGlow 3s ease-in-out infinite;
}

@keyframes subtitleGlow {
  0%, 100% {
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
  }
  50% {
    text-shadow: 0 2px 20px rgba(102, 126, 234, 0.6);
  }
}

/* ==================== 访问统计美化 ==================== */
#busuanzi_container_site_pv,
#busuanzi_container_site_uv,
#busuanzi_container_page_pv {
  display: inline-block;
  margin: 0 10px;
  padding: 5px 15px;
  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.3);
  transition: all 0.3s ease;
}

#busuanzi_container_site_pv:hover,
#busuanzi_container_site_uv:hover,
#busuanzi_container_page_pv:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

#busuanzi_value_site_pv,
#busuanzi_value_site_uv,
#busuanzi_value_page_pv {
  color: #667eea;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 5px;
  animation: countUp 0.5s ease;
}

@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 统计图标美化 */
.busuanzi-icon {
  color: #667eea;
  margin-right: 5px;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ==================== 标签云增强 ==================== */
#card-tags .chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
}

#card-tags .chip {
  position: relative;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 2px solid transparent;
  overflow: hidden;
}

#card-tags .chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

#card-tags .chip:hover::before {
  left: 100%;
}

#card-tags .chip:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

/* 标签计数样式 */
#card-tags .chip .tag-count {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

/* 3D标签云效果 */
.tag-cloud-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.tag-cloud-3d .chip {
  animation: float3D 6s ease-in-out infinite;
}

.tag-cloud-3d .chip:nth-child(2n) {
  animation-delay: 1s;
}

.tag-cloud-3d .chip:nth-child(3n) {
  animation-delay: 2s;
}

@keyframes float3D {
  0%, 100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  }
  50% {
    transform: translateY(0) rotateX(0deg) rotateY(10deg);
  }
  75% {
    transform: translateY(-5px) rotateX(-5deg) rotateY(5deg);
  }
}

/* ==================== GitHub 贡献图样式 ==================== */
.github-contribution-wrapper {
  padding: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: 12px;
  margin: 20px 0;
  overflow-x: auto;
}

.github-contribution-wrapper::-webkit-scrollbar {
  height: 6px;
}

.github-contribution-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
}

.github-contribution-title {
  font-size: 18px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.github-contribution-title::before {
  content: '📊';
  margin-right: 10px;
  font-size: 24px;
  animation: iconBounce 2s ease-in-out infinite;
}

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

.github-calendar {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* GitHub 贡献图表格美化 */
.github-calendar svg {
  border-radius: 8px;
}

.github-calendar rect {
  transition: all 0.3s ease;
}

.github-calendar rect:hover {
  stroke: #667eea;
  stroke-width: 2;
  transform: scale(1.2);
}

/* ==================== RSS 订阅按钮 ==================== */
.rss-button,
a[href*="atom.xml"],
a[href*="rss.xml"] {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.rss-button::before,
a[href*="atom.xml"]::before,
a[href*="rss.xml"]::before {
  content: '📡';
  margin-right: 8px;
  font-size: 18px;
}

.rss-button:hover,
a[href*="atom.xml"]:hover,
a[href*="rss.xml"]:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
  background: linear-gradient(135deg, #ee5a6f, #ff6b6b);
}

/* ==================== 个人信息卡片增强 ==================== */
.card-author {
  position: relative;
  overflow: hidden;
}

.card-author::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  animation: cardShine 3s ease-in-out infinite;
}

@keyframes cardShine {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.card-author .author-info {
  position: relative;
  z-index: 1;
}

/* ==================== 统计数据动画 ==================== */
.webinfo-item {
  transition: all 0.3s ease;
}

.webinfo-item:hover {
  transform: translateX(10px);
}

.webinfo-item .webinfo-value {
  color: #667eea;
  font-weight: bold;
  font-size: 1.2em;
  text-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
}

/* ==================== 深色模式适配 ==================== */
[data-theme='dark'] #busuanzi_container_site_pv,
[data-theme='dark'] #busuanzi_container_site_uv,
[data-theme='dark'] #busuanzi_container_page_pv {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-color: rgba(102, 126, 234, 0.4);
}

[data-theme='dark'] .github-contribution-wrapper {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

[data-theme='dark'] #card-tags .chip {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-color: rgba(102, 126, 234, 0.3);
}

[data-theme='dark'] #card-tags .chip:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ==================== 响应式优化 ==================== */
@media screen and (max-width: 768px) {
  .github-contribution-wrapper {
    padding: 10px;
  }
  
  #card-tags .chip {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  #busuanzi_container_site_pv,
  #busuanzi_container_site_uv,
  #busuanzi_container_page_pv {
    margin: 5px;
    padding: 3px 10px;
    font-size: 12px;
  }
}

/* ==================== 座右铭卡片样式 ==================== */
.motto-card {
  padding: 20px;
  margin: 20px 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-left: 4px solid #667eea;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  position: relative;
  overflow: hidden;
}

.motto-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 60px;
  color: rgba(102, 126, 234, 0.2);
  font-family: Georgia, serif;
}

.motto-card::after {
  content: '"';
  position: absolute;
  bottom: -30px;
  right: 10px;
  font-size: 60px;
  color: rgba(102, 126, 234, 0.2);
  font-family: Georgia, serif;
}

[data-theme='dark'] .motto-card {
  color: #ddd;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}


/* ==================== 高级页面美化 ==================== */

/* 页面整体优化 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.02em;
}

/* 主内容区域美化 */
#content-inner {
  position: relative;
}

/* 添加页面顶部装饰线 */
#page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
  background-size: 200% 100%;
  animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 文章卡片高级美化 */
.recent-post-item {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.recent-post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.recent-post-item:hover::before {
  left: 100%;
}

/* 文章卡片图片优化 */
.recent-post-item .post_cover {
  position: relative;
  overflow: hidden;
}

.recent-post-item .post_cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recent-post-item:hover .post_cover::after {
  opacity: 1;
}

.recent-post-item .post_cover img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.95);
}

.recent-post-item:hover .post_cover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* 文章标题美化 */
.recent-post-info .article-title {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  transition: all 0.3s ease;
}

.recent-post-item:hover .article-title {
  background: linear-gradient(135deg, #764ba2, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateX(5px);
}

/* 标签美化 */
.article-meta-tag a,
.tag-cloud-list a,
.chip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-meta-tag a::before,
.tag-cloud-list a::before,
.chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 0;
}

.article-meta-tag a:hover::before,
.tag-cloud-list a:hover::before,
.chip:hover::before {
  width: 300%;
  height: 300%;
}

.article-meta-tag a:hover,
.tag-cloud-list a:hover,
.chip:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 侧边栏卡片美化 */
.card-widget {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.card-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card-widget:hover::before {
  transform: scaleX(1);
}

/* 侧边栏标题美化 */
.card-widget .card-content > .item-headline,
.card-widget .card-info-title {
  position: relative;
  padding-left: 15px;
  font-weight: 700;
}

.card-widget .card-content > .item-headline::before,
.card-widget .card-info-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* 按钮美化增强 */
.button--animated,
button,
.btn,
input[type="submit"],
input[type="button"] {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-weight: 600;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.button--animated::after,
button::after,
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.button--animated:hover::after,
button:hover::after,
.btn:hover::after {
  width: 300px;
  height: 300px;
}

.button--animated:hover,
button:hover,
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* 输入框美化 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
  transform: translateY(-2px);
}

/* 分页按钮美化 */
.pagination .page-number,
.pagination .extend {
  position: relative;
  overflow: hidden;
  background: white;
  border: 2px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.pagination .page-number::before,
.pagination .extend::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: left 0.3s ease;
  z-index: -1;
}

.pagination .page-number:hover::before,
.pagination .extend:hover::before,
.pagination .page-number.current::before {
  left: 0;
}

.pagination .page-number:hover,
.pagination .extend:hover,
.pagination .page-number.current {
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 目录（TOC）美化增强 */
#card-toc {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-left: 3px solid #667eea;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#card-toc .toc-content {
  position: relative;
}

#card-toc .toc-content::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #667eea, #764ba2, #f093fb);
}

.toc-link {
  position: relative;
  padding-left: 20px;
  transition: all 0.3s ease;
}

.toc-link::before {
  content: '▸';
  position: absolute;
  left: 5px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  color: #667eea;
}

.toc-link:hover::before,
.toc-link.active::before {
  opacity: 1;
  transform: translateX(0);
}

.toc-link:hover,
.toc-link.active {
  color: #667eea;
  padding-left: 25px;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
}

/* 引用块美化 */
blockquote {
  position: relative;
  border-left: 4px solid #667eea;
  padding: 20px 20px 20px 30px;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

blockquote::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 48px;
  color: rgba(102, 126, 234, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

blockquote p {
  margin: 0;
  color: #555;
  line-height: 1.8;
}

/* 代码块美化增强 */
.highlight {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  margin: 20px 0;
}

.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  z-index: 1;
}

.highlight::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
  z-index: 2;
}

.highlight pre {
  padding-top: 45px !important;
}

/* 表格美化 */
table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

table thead tr {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

table thead th {
  padding: 15px;
  font-weight: 600;
  text-align: left;
}

table tbody tr {
  transition: all 0.3s ease;
  background: white;
}

table tbody tr:nth-child(even) {
  background: rgba(102, 126, 234, 0.03);
}

table tbody tr:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.01);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

table tbody td {
  padding: 12px 15px;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

/* 图片美化 */
.post-content img {
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.post-content img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* 链接美化 */
.post-content a {
  position: relative;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.post-content a:hover::after {
  width: 100%;
}

.post-content a:hover {
  color: #764ba2;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* 列表美化 */
.post-content ul,
.post-content ol {
  padding-left: 30px;
}

.post-content li {
  position: relative;
  margin: 10px 0;
  line-height: 1.8;
}

.post-content ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.post-content ol {
  counter-reset: list-counter;
}

.post-content ol li {
  counter-increment: list-counter;
}

.post-content ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: -30px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 分隔线美化 */
hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent, #667eea, #764ba2, #f093fb, transparent);
  margin: 30px 0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

hr::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 页脚美化 */
#footer {
  position: relative;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #667eea, #764ba2, #f093fb) 1;
}

/* 返回顶部按钮美化增强 */
#go-up {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#go-up::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

#go-up:hover::before {
  width: 100%;
  height: 100%;
}

#go-up:hover {
  transform: translateY(-8px) scale(1.1) rotate(360deg);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

/* 加载动画优化 */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 深色模式优化 */
[data-theme='dark'] .recent-post-item,
[data-theme='dark'] .card-widget {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-color: rgba(102, 126, 234, 0.2);
}

[data-theme='dark'] blockquote {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

[data-theme='dark'] table tbody tr {
  background: rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] table tbody tr:nth-child(even) {
  background: rgba(102, 126, 234, 0.05);
}

[data-theme='dark'] input[type="text"],
[data-theme='dark'] input[type="email"],
[data-theme='dark'] input[type="url"],
[data-theme='dark'] input[type="password"],
[data-theme='dark'] input[type="search"],
[data-theme='dark'] textarea,
[data-theme='dark'] select {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(102, 126, 234, 0.3);
  color: #fff;
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
  .recent-post-item:hover .post_cover img {
    transform: scale(1.05);
  }
  
  #go-up:hover {
    transform: translateY(-5px) scale(1.05);
  }
  
  .post-content img:hover {
    transform: translateY(-3px) scale(1.01);
  }
}

/* 滚动条美化增强 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(102, 126, 234, 0.05);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea, #764ba2, #f093fb);
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f093fb, #764ba2, #667eea);
  border-color: rgba(255, 255, 255, 0.4);
}

/* 选中文本美化增强 */
::selection {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

::-moz-selection {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 动画性能优化 */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.recent-post-item,
.card-widget,
button,
.btn,
a,
img {
  will-change: transform;
}

/* ==================== GitHub 统计卡片美化 ==================== */

/* GitHub Stats 图片优化 */
.github-stats-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.github-stats-container img {
  max-width: 48%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  background: #0d1117;
  padding: 10px;
}

.github-stats-container img:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* GitHub 贡献图美化 */
.github-contribution-chart {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
  background: white;
  padding: 20px;
  position: relative;
}

.github-contribution-chart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.github-contribution-chart img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* GitHub Trophies 美化 */
.github-trophies {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: 12px;
}

.github-trophies img {
  width: 100%;
  max-width: 1000px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
  .github-stats-container {
    flex-direction: column;
    align-items: center;
  }
  
  .github-stats-container img {
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  .github-contribution-chart {
    padding: 15px;
    overflow-x: auto;
  }
  
  .github-trophies {
    padding: 15px;
  }
}

/* 深色模式适配 */
[data-theme='dark'] .github-contribution-chart {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

[data-theme='dark'] .github-stats-container img {
  background: #0d1117;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .github-trophies {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* GitHub 仓库卡片样式 */
.github-repo-card {
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.github-repo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.repo-name {
  font-size: 18px;
  font-weight: bold;
  color: #667eea;
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}

.repo-name:hover {
  color: #764ba2;
}

.repo-description {
  color: #586069;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.repo-stats {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #586069;
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

.repo-language {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

[data-theme='dark'] .github-repo-card {
  background: rgba(13, 17, 23, 0.8);
  border-color: rgba(102, 126, 234, 0.2);
  color: #c9d1d9;
}

[data-theme='dark'] .repo-description {
  color: #8b949e;
}

[data-theme='dark'] .repo-stats {
  color: #8b949e;
}