 /* 已有的样式保持不变，这里只添加返回顶部按钮的样式 */
 @font-face {
     font-family: 'XiaoKeNaiLao';
     src: url('../fonts/XiaoKeNaiLao.woff2') format('truetype');
     font-weight: normal;
     font-style: normal;
     font-display: swap;
 }

 @font-face {
     font-family: 'MaoKenZhuYuan';
     src: url('../fonts/MaoKenZhuYuan.woff2') format('truetype');
     font-weight: normal;
     font-style: normal;
     font-display: swap;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'XiaoKeNaiLao', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }

 body {
     background-color: #f8f9fa;
     color: #333;
     line-height: 1.6;
     min-height: 100vh;
     position: relative;
     overflow-x: hidden;
 }

 a,
 a:link,
 a:visited,
 a:hover,
 a:active {
     text-decoration: none;
 }

 /* 格子背景 */
 .grid-background {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: -1;
     background-image:
         linear-gradient(rgba(180, 180, 180, 0.1) 1px, transparent 1px),
         linear-gradient(90deg, rgba(180, 180, 180, 0.1) 1px, transparent 1px);
     background-size: 40px 40px;
     background-position: center center;
 }

 /* 动态格子效果 */
 .grid-dots {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: -1;
     background-image: radial-gradient(rgba(100, 100, 255, 0.1) 2px, transparent 2px);
     background-size: 50px 50px;
     opacity: 0.7;
 }

 /* 主要内容容器 */
 .main-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 20px;
     position: relative;
     z-index: 1;
     display: flex;
     flex-wrap: wrap;
     gap: 40px;
 }

 /* 左侧栏样式 */
 .left-sidebar {
     width: 220px;
     flex-shrink: 0;
     display: flex;
     flex-direction: column;
     height: fit-content;
     position: sticky;
     top: 20px;
     align-items: center;
     text-align: center;
     padding-top: 15px;
     opacity: 0;
     /* 初始透明 */
     transform: translateX(-30px);
     /* 初始向右偏移 */

     /* 动画属性 */
     animation: left 4s ease forwards;
     animation-delay: 0.2s;
     /* 延迟启动 */
 }

 /* 定义滑动渐显动画 */
 @keyframes left {
     0% {
         opacity: 0;
         transform: translateX(-30px);
         /* 从右侧100px开始 */
     }

     100% {
         opacity: 1;
         transform: translateX(0);
         /* 移动到原始位置 */
     }
 }

 /* 右侧内容区域 */
 .right-content {
     flex: 1;
     overflow: hidden;
     min-height: 100vh;
 }

 /* Logo部分 */
 .logo-container {
     display: flex;
     align-items: flex-start;
     margin-bottom: 50px;
     padding-bottom: 25px;
     position: relative;
     justify-content: center;
 }

 .logo-text {
     display: inline-flex;
     color: #2c3e50 !important;
     padding-left: 0.625rem;
     padding-right: 0.625rem;
     transition: transform 0.5s ease, box-shadow 0.5s ease;
 }

 .logo-text:hover {
     transform: translateY(-5px);
     color: white !important;
     background: #2c3e50;
 }

 .logo-english {
     writing-mode: vertical-lr;
     font-size: 18px;
     font-weight: 600;
     transform: rotate(180deg);
     text-orientation: mixed;
     padding-bottom: 40px;
     font-family: 'MaoKenZhuYuan', cursive, sans-serif;
 }

 .logo-chinese {
     writing-mode: vertical-rl;
     color: inherit;
     font-size: 36px;
     font-weight: bold;
     letter-spacing: 5px;
     line-height: 1.2;
     text-decoration: overline;
     font-family: 'MaoKenZhuYuan', cursive, sans-serif;
 }

 /* 返回顶部按钮样式 */
 .back-to-top {
     position: fixed;
     bottom: 40px;
     right: 40px;
     width: 50px;
     height: 50px;
     color: #2c3e50;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 20px;
     cursor: pointer;
     z-index: 9999;
     opacity: 0;
     visibility: hidden;
     transition: all 0.4s ease;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
     border: 1px solid #2c3e50;
 }

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

 .back-to-top:hover {
     transform: translateY(-5px);
     box-shadow: 0 6px 20px #2c3e50;
 }

 .back-to-top:active {
     transform: translateY(0);
 }

 /* 导航部分 */
 .nav-container {
     margin-bottom: 20px;
     width: 100%;
     position: relative;
 }

 .nav-list {
     list-style: none;
 }

 .nav-item {
     margin-bottom: 15px;
     position: relative;
 }

 /* 有二级菜单的导航项样式 */
 .nav-item.has-submenu>.nav-link {
     position: relative;
 }

 .nav-item.has-submenu>.nav-link::after {
     content: '\f078';
     font-family: 'Font Awesome 5 Free';
     font-weight: 900;
     position: absolute;
     right: 50px;
     top: 50%;
     transform: translateY(-50%);
     font-size: 12px;
     transition: transform 0.3s ease;
 }

 .nav-item.has-submenu.active>.nav-link::after {
     transform: translateY(-50%) rotate(180deg);
 }

 .nav-link {
     display: flex;
     align-items: center;
     padding: 12px 15px;
     color: #2c3e50;
     text-decoration: none;
     border-radius: 8px;
     transition: all 0.3s ease;
     font-size: 16px;
     justify-content: center;
     position: relative;
 }

 .nav-link:hover {
     color: #3498db;
     transform: translateX(5px);
 }

 .nav-icon {
     margin-right: 12px;
     font-size: 18px;
     width: 24px;
     text-align: center;
 }

 /* 二级菜单样式 - 桌面端 */
 .submenu {
     list-style: none;
     max-height: 0;
     overflow: hidden;
     opacity: 0;
     transform: translateY(-10px);
     transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
     border-radius: 8px;
     margin: 5px 0 0 0;
     position: relative;
     z-index: 100;
 }

 .nav-item.active .submenu {
     max-height: 300px;
     opacity: 1;
     transform: translateY(0);
     margin-top: 8px;
     margin-bottom: 8px;
 }

 .submenu-item {
     margin: 0;
 }

 .submenu-link {
     display: block;
     padding: 10px 15px;
     color: #2c3e50;
     font-size: 14px;
     transition: all 0.3s ease;
     border-radius: 6px;
     margin: 2px;
 }

 .submenu-link:hover {
     color: #3498db;
     transform: translateX(5px);
 }

 .submenu-icon {
     margin-right: 8px;
     font-size: 12px;
     width: 16px;
     text-align: center;
 }

 /* 搜索区域 - 桌面端 */
 .search-nav-item {
     margin-bottom: 15px;
 }

 .search-btn-nav {
     display: flex;
     align-items: center;
     padding: 12px 15px;
     color: #2c3e50;
     text-decoration: none;
     border-radius: 8px;
     transition: all 0.3s ease;
     font-size: 16px;
     width: 100%;
     border: none;
     background: none;
     cursor: pointer;
     text-align: center;
     justify-content: center;
 }

 .search-btn-nav:hover {
     color: #3498db;
     transform: translateX(5px);
 }

 /* 搜索框容器 - 移动端使用独立容器 */
 .search-box-nav {
     display: none;
     margin-top: 15px;
     animation: fadeIn 0.3s ease;
 }

 /* 移动端专用的搜索框容器 */
 .mobile-search-container {
     display: none;
     width: 100%;
     margin: 10px auto 0;
 }

 .search-box-nav.active {
     display: block;
 }

 .search-input-nav {
     width: 100%;
     padding: 12px 15px;
     border: 1px solid #ddd;
     border-radius: 8px;
     font-size: 16px;
     background: rgba(255, 255, 255, 0.9);
     transition: border 0.3s ease;
 }

 .search-input-nav:focus {
     outline: none;
     border-color: #2c3e50;
 }

 /* 移动端分类菜单容器 - 修改：添加居中样式 */
 .mobile-category-container {
     display: none;
     width: 100%;
 }

 .mobile-category-box {
     display: none;
     width: 100%;
     border-radius: 8px;
     animation: fadeIn 0.3s ease;
 }

 .mobile-category-box.active {
     display: block;
 }

 .mobile-category-list {
     display: flex;
     flex-wrap: nowrap;
     overflow-x: auto;
     overflow-y: hidden;
     gap: 10px;
     padding: 10px;
     border-radius: 12px;
     -webkit-overflow-scrolling: touch;
     /* 修改：居中对齐 */
     justify-content: center;
 }

 .mobile-category-list::-webkit-scrollbar {
     display: none;
 }

 .mobile-category-list {
     -ms-overflow-style: none;
     scrollbar-width: none;
 }

 .mobile-category-item {
     flex: 0 0 auto;
     white-space: nowrap;
 }

 .mobile-category-link {
     display: flex;
     flex-direction: column;
     align-items: center;
     padding: 10px 15px;
     border-radius: 8px;
     text-align: center;
     min-width: 90px;
     transition: all 0.3s ease;
     color: #2c3e50;
     text-decoration: none;
     font-size: 14px;
 }

 .mobile-category-link:hover {
     transform: translateY(-3px);
     border-color: #3498db;
     color: #3498db;
 }

 .mobile-category-icon {
     margin-bottom: 8px;
     font-size: 18px;
     width: auto;
     text-align: center;
     font-size: 13px;
 }

 /* 分类页面样式 */
 .categories-header {
     margin-bottom: 2rem;
     text-align: center;
 }

 .categories-description {
     color: #666;
     font-size: 1rem;
     margin-top: 0.5rem;
 }

 .categories-list {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     /* 创建4列等宽网格 */
     gap: 10px;
     /* 网格间距 */
     padding: 0;
     margin: 0;
     list-style: none;
 }

 .category-item {
     margin-bottom: 1rem;
 }

 .category-link {
     display: flex;
     align-items: center;
     padding: 6px 10px;
     border-radius: 8px;
     text-decoration: none;
     color: #2c3e50;
     transition: all 0.2s ease;
 }

 .category-link:hover {
     transform: translateY(-3px);
     color: #3498db;
 }

 .category-icon {
     width: 40px;
     height: 40px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 8px;
     color: #2c3e50;
     font-size: 1.2rem;
 }


 .category-name {
     font-size: 1.2rem;
     font-weight: 500;
     flex-grow: 1;
 }

 .category-count {
     background: #f8f9fa;
     padding: 0.3rem 0.8rem;
     border-radius: 20px;
     font-size: 0.9rem;
     color: #666;
     font-weight: 500;
 }

 /* 文章列表tags样式 */
 .article-tags {
     display: flex;
     align-items: center;
     flex-wrap: wrap;
     margin-right: 15px;
 }

 .article-tags a {
     text-decoration: none;
     color: #666;
     transition: color 0.3s ease;
 }

 .article-tags a:hover {
     color: #2196F3;
 }

 /* 移动端适配 */
 @media (max-width: 768px) {
     .article-tags {
         margin-bottom: 10px;
     }

 }

 /* 响应式设计 */
 @media (max-width: 768px) {
     .category-link {
         padding: 0;
     }

     .category-icon {
         width: 36px;
         height: 36px;
         font-size: 0.8rem;
     }

     .category-name {
         font-size: 1rem;
     }
 }

 /* 社交媒体链接 */
 .social-container {
     margin-top: auto;
     padding-top: 30px;
     border-top: 1px solid #eaeaea;
     width: 100%;
     padding-bottom: 30px;
 }

 .social-links {
     display: flex;
     justify-content: center;
     gap: 20px;
 }

 .social-link {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     color: #2c3e50;
     font-size: 20px;
     text-decoration: none;
     transition: all 0.3s ease;
     background: none !important;
     border: 2px solid transparent;
 }

 .social-link:hover {
     transform: translateY(-3px);
     color: #fff;
 }

 .social-bilibili:hover {
     color: #fb7299;
 }

 .social-douyin:hover {
     color: #000;
 }

 .social-youtube:hover {
     color: #ff0000;
 }

 /* 文章列表 */
 .article-list {
     display: flex;
     flex-direction: column;
     gap: 25px;
     opacity: 0;
     /* 初始透明 */
     transform: translateY(-30px);
     /* 初始向右偏移 */

     /* 动画属性 */
     animation: article 4s ease forwards;
     animation-delay: 0.2s;
     /* 延迟启动 */
 }

 /* 定义滑动渐显动画 */
 @keyframes article {
     0% {
         opacity: 0;
         transform: translateY(-30px);
         /* 从右侧100px开始 */
     }

     100% {
         opacity: 1;
         transform: translateY(0);
         /* 移动到原始位置 */
     }
 }

 /* 初始文章没有动画 */
 .article-item {
     padding: 15px;
     border-radius: 12px;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 /* 滚动加载的文章有动画 */
 .article-item.loading-animation {
     opacity: 0;
     transform: translateY(30px);
     animation: slideUpFadeIn 0.5s ease forwards;
 }

 .article-item:hover {
     transform: translateY(-5px);
 }

 .article-date {
     font-size: 14px;
     color: #777;
     margin-bottom: 8px;
 }

 .article-title {
     font-size: 22px;
     font-weight: 600;
     color: #2c3e50;
     margin-bottom: 12px;
     line-height: 1.3;
 }

 .article-title a {
     color: inherit;
     text-decoration: none;
     transition: color 0.3s ease;
     overflow: hidden;
     text-overflow: ellipsis;
     max-width: 100%;
 }

 .article-title a:hover {
     color: #3498db;
 }

 .article-excerpt {
     color: #666;
     line-height: 1.7;
     margin-bottom: 15px;
     overflow: hidden;
     text-overflow: ellipsis;
     max-width: 100%;
 }

 .article-meta {
     display: flex;
     align-items: center;
     font-size: 14px;
     color: #888;
 }

 .article-category {
     border-radius: 15px;
     margin-right: 15px;
     color: #888;
 }

 .article-meta a:hover {
     color: #3498db;
 }

 .article-readtime {
     display: flex;
     align-items: center;
     margin-right: 15px;
 }

 .article-readtime i {
     margin-right: 5px;
 }

 /* 页脚 */
 .footer {
     text-align: center;
     color: #2c3e50;
     font-size: 16px;
     border-top: 1px solid #eee;
 }

 .desktop-footer {
     display: block;
 }

 .mobile-footer {
     display: none;
 }

 /* ========== 归档页面样式 ========== */
 .file-container {
     padding: 18px 15px;

     opacity: 0;
     /* 初始透明 */
     transform: translateY(-30px);
     /* 初始向右偏移 */

     /* 动画属性 */
     animation: file 4s ease forwards;
     animation-delay: 0.2s;
     /* 延迟启动 */
 }

 /* 定义滑动渐显动画 */
 @keyframes file {
     0% {
         opacity: 0;
         transform: translateY(-30px);
         /* 从右侧100px开始 */
     }

     100% {
         opacity: 1;
         transform: translateY(0);
         /* 移动到原始位置 */
     }
 }

 /* 标题区域 */
 .file-header {
     margin-bottom: 50px;
     text-align: center;
     position: relative;
 }

 .file-title {
     font-size: 2.5rem;
     margin-bottom: 12px;
     color: #333;
     font-weight: 700;
     letter-spacing: 1px;
     position: relative;
     display: inline-block;
     padding-bottom: 15px;
 }

 .file-title::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 80px;
     height: 3px;
     background: linear-gradient(90deg, #4CAF50, #2196F3);
     border-radius: 2px;
 }

 .file-subtitle {
     font-size: 1.1rem;
     color: #666;
     font-weight: 300;
     line-height: 1.6;
 }

 /* 年份区块 */
 .file-year {
     margin-bottom: 50px;
 }

 .file-year-title {
     font-size: 1.8rem;
     margin-bottom: 25px;
     padding-bottom: 12px;
     border-bottom: 2px solid #eaeaea;
     color: #2c3e50;
     position: relative;
     font-weight: 600;
     letter-spacing: 0.5px;
 }

 .file-year-title::before {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 60px;
     height: 2px;
     background: linear-gradient(90deg, #FF9800, #FF5722);
     transition: width 0.4s ease;
 }

 .file-year:hover .file-year-title::before {
     width: 100px;
 }

 /* ========== 内容页样式 ========== */
 .content-container {
     padding: 18px 10px;
     opacity: 0;
     /* 初始透明 */
     transform: translateY(-30px);
     /* 初始向右偏移 */

     /* 动画属性 */
     animation: content 4s ease forwards;
     animation-delay: 0.2s;
     /* 延迟启动 */
 }
 .content-main p {
     margin-bottom: 10px;
 }
 
 /* 定义滑动渐显动画 */
 @keyframes content {
     0% {
         opacity: 0;
         transform: translateY(-30px);
         /* 从右侧100px开始 */
     }

     100% {
         opacity: 1;
         transform: translateY(0);
         /* 移动到原始位置 */
     }
 }

 /* 标题区域 */
 .content-header {
     margin-bottom: 40px;
     position: relative;
 }

 .content-title-group {
     padding-bottom: 20px;
     border-bottom: 2px solid #f0f0f0;
 }

 .content-title {
     font-size: 1.5rem;
     margin-bottom: 20px;
     color: #2c3e50;
     font-weight: 700;
     line-height: 1.3;
     position: relative;
 }

 .content-meta {
     display: flex;
     flex-wrap: wrap;
     gap: 20px;
     align-items: center;
 }

 .content-category {
     padding-right: 6px;
     padding-top: 10px;
     padding-bottom: 10px;
     border-radius: 20px;
     font-size: 0.9rem;
     font-weight: 500;
     transition: all 0.3s ease;
 }

 .content-category:hover {
     transform: translateY(-2px);
 }

 .content-info {
     display: flex;
     align-items: center;
     gap: 6px;
     color: #666;
     font-size: 0.95rem;
 }

 .content-section {
     margin-bottom: 40px;
     font-size: 1.2rem;
 }
.content-section img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.content-section img:hover {
  opacity: 0.9;
}
/* 灯箱样式 */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.lightbox-image {
  max-width: 90%;
  max-height: 80vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  color: #ddd;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  padding: 10px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
}

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

@keyframes zoomIn {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 导航按钮（可选） */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  padding: 16px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}
 .content-section h2 {
     font-size: 1.4rem;
     margin-bottom: 20px;
     color: #2c3e50;
     padding-bottom: 10px;
     border-bottom: 2px solid #f0f0f0;
     position: relative;
 }

 .content-section h2::after {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 60px;
     height: 2px;
     background: linear-gradient(90deg, #FF9800, #FF5722);
     transition: width 0.4s ease;
 }

 .content-section:hover h2::after {
     width: 100px;
 }

 .content-section h3 {
     font-size: 1.3rem;
     margin: 25px 0 15px;
     color: #444;
 }

 .content-section p {
     line-height: 1.8;
     margin-bottom: 7px;
     color: #555;
     font-size: 1.2rem;
 }

 /* 列表样式 */
 .content-list {
     margin: 20px 0 20px 30px;
     color: #555;
 }

 .content-list li {
     margin-bottom: 12px;
     line-height: 1.6;
     padding-left: 10px;
     position: relative;
     list-style: none;
 }

 .content-list li::before {
     content: '•';
     color: #2c3e50;
     font-weight: bold;
     position: absolute;
     left: -15px;
 }

 /* 标签区域 */
 .content-tags {
     margin-top: 40px;
     padding-top: 20px;
     border-top: 1px solid #eee;
     display: flex;
     align-items: center;
     flex-wrap: wrap;
     gap: 10px;
     opacity: 0;
     animation: tagsFadeIn 0.6s ease-out 1.6s forwards;
 }

 @keyframes tagsFadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 .tag-label {
     color: #666;
     font-size: 0.95rem;
 }

 .content-tag {
     color: #666;
     padding: 6px 6px;
     font-size: 1rem;
     text-decoration: none;
     transition: all 0.3s ease;
     display: inline-block;
 }

 .content-tag:hover {
     color: #2c3e50;
     transform: translateY(-2px);
 }

 /* 上一篇下一篇导航 */
 .content-navigation {
     display: flex;
     justify-content: space-between;
     margin-top: 20px;
     padding-top: 30px;
     border-top: 2px solid #f0f0f0;
     opacity: 0;
     animation: navFadeIn 0.6s ease-out 1.8s forwards;
 }

 @keyframes navFadeIn {
     from {
         opacity: 0;
         transform: translateY(20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .nav-prev,
 .nav-next {
     display: flex;
     align-items: center;
     text-decoration: none;
     padding: 20px;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     flex: 0 0 48%;
     position: relative;
     overflow: hidden;
 }

 .nav-prev::before,
 .nav-next::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     transition: left 0.6s ease;
 }

 .nav-prev:hover,
 .nav-next:hover {
     transform: translateY(-5px);
     border-color: #2196F3;
 }

 .nav-prev:hover::before,
 .nav-next:hover::before {
     left: 100%;
 }

 .nav-prev:active,
 .nav-next:active {
     transform: translateY(-2px);
     transition: all 0.2s ease;
 }

 .nav-arrow {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     color: #2c3e50;
     font-size: 1.2rem;
     transition: all 0.3s ease;
 }

 .nav-prev:hover .nav-arrow {
     transform: translateX(-5px);
 }

 .nav-next:hover .nav-arrow {
     transform: translateX(5px);
 }

 .nav-content {
     flex: 1;
     margin: 0 20px;
 }

 .nav-label {
     display: block;
     font-size: 1.1rem;
     color: #2c3e50;
     margin-bottom: 5px;
 }

 .nav-title {
     display: block;
     font-size: 1.1rem;
     color: #2c3e50;
     font-weight: 500;
     line-height: 1.4;
     transition: color 0.3s ease;
     display: -webkit-box;
     /* 老式webkit盒模型 */
     -webkit-line-clamp: 2;
     /* 限制显示行数 */
     -webkit-box-orient: vertical;
     /* 垂直方向排列 */
     overflow: hidden;
 }

 .nav-prev:hover .nav-title,
 .nav-next:hover .nav-title {
     color: #2196F3;
 }

 .nav-next {
     text-align: right;
 }

 .nav-next .nav-content {
     order: 1;
 }

 .nav-next .nav-arrow {
     order: 2;
 }

 /* 广告位样式 */
 .ad-container {
     width: auto !important;
     overflow: hidden;
     transition: all 0.3s ease;
 }

 .ad-container:hover {
     transform: translateY(-2px);
 }

 /* 文章中间广告特殊样式 */

 /* 响应式设计 */
 @media (max-width: 768px) {
     .content-container {
         padding: 20px 15px;
     }

     .content-title {
         font-size: 1.3rem;
     }

     .content-meta {
         gap: 10px;
     }

     .content-section h2 {
         font-size: 1.2rem;
     }

     .content-section h3 {
         font-size: 1.1rem;
     }

     .content-navigation {
         flex-direction: column;
         gap: 15px;
     }

     .content-section p {
         font-size: 1rem;
     }

     .content-section {
         font-size: 1rem;
     }

     .content-category {
         padding: 3px 7px;
         font-size: 0.75rem;
     }
     
     .content-info{
         font-size: 0.75rem;
     }
     
     .nav-prev,
     .nav-next {
         flex: 0 0 auto;
         width: 100%;
     }

     .nav-prev {
         margin-bottom: 10px;
     }

     .search-input-nav {
         font-size: 14px;
     }
 }

 /* 文章列表 */
 .file-list {
     border-left: 1px dashed #ddd;
 }

 /* 文章项 */
 .file-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 5px 10px;
     margin-bottom: 8px;
     border-radius: 10px;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
 }

 .file-item::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
 }

 .file-item:hover {
     transform: translateX(10px) translateY(-2px);
     border-color: #2196F3;
 }

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

 .file-item:active {
     transform: translateX(5px) translateY(-1px);
     transition: all 0.1s ease;
 }

 /* 文章链接 */
 .file-link {
     font-size: 1.1rem;
     color: inherit;
     text-decoration: none;
     flex: 1;
     margin-right: 25px;
     font-weight: 500;
     line-height: 1.5;
     position: relative;
     padding-left: 20px;
     transition: all 0.3s ease;
 }

 .file-link::before {
     content: '📄';
     position: absolute;
     left: 0;
     top: 2px;
     font-size: 0.9rem;
     opacity: 0.6;
     transition: all 0.3s ease;
 }

 .file-item:hover .file-link {
     color: #2196F3;
     padding-left: 25px;
 }

 .file-item:hover .file-link::before {
     opacity: 1;
     transform: scale(1.2);
 }

 .file-link:hover {
     color: #1565C0 !important;
 }

 /* 日期样式 */
 .file-date {
     font-size: 0.9rem;
     color: #888;
     font-weight: 400;
     min-width: 100px;
     text-align: right;
     padding: 4px 10px;
     border-radius: 15px;
     transition: all 0.3s ease;
 }

 .file-item:hover .file-date {
     color: #888;
     transform: scale(1.05);
 }

 /* 响应式设计 */
 @media (max-width: 768px) {
     .file-container {
         padding: 20px 15px;
     }

     .file-title {
         font-size: 2rem;
     }

     .file-year-title {
         font-size: 1.3rem;
         margin-bottom: 20px;
     }

     .file-list {
         border-left: 1px solid #eee;
     }

     .file-item {
         flex-direction: column;
         align-items: flex-start;
     }

     .file-link {
         margin-right: 0;
         margin-bottom: 10px;
         font-size: 1rem;
         padding-left: 0;
     }

     .file-link::before {
         position: static;
         display: inline-block;
         margin-right: 8px;
     }

     .file-item:hover .file-link {
         padding-left: 0;
     }

     .file-date {
         text-align: left;
         min-width: auto;
         align-self: flex-start;
     }
 }

 /* 添加年份动画延迟变量 */
 .file-year:nth-child(1) {
     --year-index: 1;
 }

 .file-year:nth-child(2) {
     --year-index: 2;
 }

 .file-year:nth-child(3) {
     --year-index: 3;
 }

 .file-year:nth-child(4) {
     --year-index: 4;
 }

 /* 动画 */
 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 @keyframes slideUpFadeIn {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes spin {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 /* ==================== 响应式设计 ==================== */

 /* 桌面端小屏幕 */
 @media (max-width: 1024px) {
     .main-container {
         flex-direction: column;
         gap: 20px;
     }

     .left-sidebar {
         width: 100%;
         position: static;
         margin-bottom: 0;
     }

     .desktop-footer {
         display: none;
     }

     .mobile-footer {
         display: block;
     }

     /* 移动端Logo横向排列 */
     .logo-container {
         flex-direction: row;
         align-items: center;
         justify-content: center;
         text-align: center;
         border-right: none;
         margin-bottom: 0;
     }

     .logo-text {
         text-decoration: none !important;
     }

     .logo-english {
         writing-mode: horizontal-tb;
         transform: none;
         margin-right: 15px;
         margin-bottom: 0;
         font-size: 18px;
         padding-top: 10px;
         padding-bottom: 0;
     }

     .logo-chinese {
         writing-mode: horizontal-tb;
         font-size: 32px;
         letter-spacing: 3px;
         text-decoration: none;
     }

     /* 移动端导航横向排列 */
     .nav-container {
         width: 100%;
         margin-bottom: 10px;
     }

     .nav-list {
         display: flex;
         flex-wrap: wrap;
         justify-content: center;
         gap: 15px;
     }

     .nav-item {
         margin-bottom: 0;
         flex: 0 0 auto;
     }

     .nav-link {
         padding: 10px 15px;
         border-radius: 20px;
         font-size: 15px;
     }

     .nav-link:hover {
         transform: translateY(-3px);
     }

     /* 移动端修改：分类箭头位置和动画 */
     .nav-item.has-submenu>.nav-link::after {
         right: 5px !important;
         /* 调整箭头位置 */
         font-size: 10px;
         transition: transform 0.3s ease;
     }

     /* 移动端分类激活状态箭头动画 */
     .nav-item.has-submenu.active>.nav-link::after {
         transform: translateY(-50%) rotate(180deg) !important;
     }

     /* 移动端隐藏桌面版子菜单 */
     .submenu {
         display: none !important;
     }

     /* 移动端显示分类容器 */
     .mobile-category-container {
         display: block;
     }

     /* 移动端搜索按钮与其他导航项在同一行 */
     .search-nav-item {
         flex: 0 0 auto;
         margin: 0;
         width: auto;
     }

     .search-btn-nav {
         padding: 14px 15px;
         border-radius: 20px;
         font-size: 15px;
     }

     .search-btn-nav:hover {
         transform: translateY(-3px);
     }

     /* 隐藏桌面端搜索框 */
     .search-box-nav {
         display: none !important;
     }

     /* 显示移动端搜索容器 */
     .mobile-search-container {
         display: block;
     }

     .mobile-search-box {
         display: none;
         width: 100%;
         border-radius: 8px;
         animation: fadeIn 0.3s ease;
         margin-top: 10px;
     }

     .mobile-search-box.active {
         display: block;
     }

     .right-content {
         min-height: auto;
         max-width: 100%;
     }

     .social-container {
         padding-top: 10px;
         padding-bottom: 10px;
     }

     .nav-label {
         font-size: 1rem;
     }

     .nav-title {
         font-size: 0.9rem;
     }

     .nav-arrow {
         font-size: 0.9rem;
     }

 }

 /* 平板设备 */
 @media (max-width: 768px) {
     .back-to-top {
         bottom: 30px;
         right: 20px;
         width: 45px;
         height: 45px;
         font-size: 18px;
     }

     .social-links {
         justify-content: center;
         gap: 15px;
     }

     .article-item {
         padding: 20px;
     }

     .article-title {
         font-size: 20px;
     }

     .nav-list {
         gap: 8px;
     }

     .nav-link {
         padding: 8px 12px;
     }

     .nav-icon {
         margin-right: 8px;
         font-size: 16px;
     }

     .search-btn-nav {
         padding: 11.5px 12px;
     }

     /* 平板端调整箭头位置 */
     .nav-item.has-submenu>.nav-link::after {
         right: 3px !important;
         font-size: 9px;
     }

     .mobile-category-list {
         padding: 8px;
         gap: 8px;
         justify-content: center;
         /* 确保居中 */
     }

     .mobile-category-link {
         padding: 8px 12px;
         min-width: 80px;
         font-size: 13px;
     }

     .mobile-category-icon {
         font-size: 13px;
         margin-bottom: 6px;
     }

     .nav-label {
         font-size: 1rem;
     }

     .nav-next {
         text-align: left;
     }

     .nav-prev,
     .nav-next {
         padding: 0;
     }

     .nav-next .nav-arrow {
         order: 0;
     }
 }

 /* 手机设备 */
 @media (max-width: 620px) {
     .nav-list {
         gap: 5px;
     }

     .nav-link {
         padding: 0 5px !important;
     }

     .nav-icon {
         margin-right: 5px;
         font-size: 14px;
     }

     .search-btn-nav {
         padding: 3px 5px !important;
     }

     .logo-english {
         font-size: 16px;
         margin-right: 10px;
     }

     .logo-chinese {
         font-size: 26px;
         letter-spacing: 2px;
     }

     .mobile-search-container {
         padding-top: 10px;
     }


     .mobile-category-list {
         padding: 6px;
         gap: 6px;
         justify-content: center;
         /* 确保居中 */
     }

     .mobile-category-link {
         padding: 6px 10px;
         min-width: 70px;
         font-size: 12px;
     }

     .mobile-category-icon {
         font-size: 14px;
         margin-bottom: 4px;
     }

     /* 超小屏幕隐藏二级菜单箭头 - 只在宽度小于480px时隐藏 */
     .nav-item.has-submenu>.nav-link::after {
         display: block !important;
         /* 确保显示 */
         right: -5px !important;
         font-size: 8px;
     }

     .category-icon {
         width: 28px;
         height: 28px;
         font-size: 0.8rem;
     }

     .categories-list {
         gap: 5px;
     }
 }

 /* 超小手机设备 */
 @media (max-width: 480px) {
     .nav-list {
         gap: 3px;
     }

     .back-to-top {
         bottom: 25px;
         right: 15px;
         width: 40px;
         height: 40px;
         font-size: 16px;
     }

     .nav-link {
         padding: 0 3px !important;
     }

     .nav-icon {
         margin-right: 3px;
         font-size: 12px;
     }

     .search-btn-nav {
         padding: 3px 3px !important;
     }

     .logo-english {
         font-size: 14px;
         margin-right: 8px;
     }

     .logo-chinese {
         font-size: 22px;
         letter-spacing: 1px;
     }

     /* 超小屏幕确实需要隐藏箭头时 */
     .nav-item.has-submenu>.nav-link::after {
         display: none !important;
         /* 只在超小屏幕隐藏箭头 */
     }

     .mobile-category-list {
         justify-content: flex-start;
         /* 超小屏允许左对齐以便滚动 */
         padding: 5px;
         gap: 4px;
     }

     .mobile-category-link {
         min-width: 60px;
         font-size: 11px;
         padding: 5px 8px;
     }

     .mobile-category-icon {
         font-size: 12px;
         margin-bottom: 3px;
     }
     .categories-list {
         grid-template-columns: repeat(3, 1fr);
     }
 }

 /* 极小屏幕设备 */
 @media (max-width: 360px) {
     .mobile-category-list {
         justify-content: flex-start;
         /* 极小屏幕必须左对齐以便滚动 */
     }

     .mobile-category-link {
         min-width: 55px;
         font-size: 10px;
         padding: 4px 6px;
     }

     .mobile-category-icon {
         font-size: 11px;
         margin-bottom: 2px;
     }
 }

 /* 加载更多容器样式 */
 .load-more-container {
     margin: 40px auto;
     text-align: center;
     max-width: 600px;
 }

 /* 加载指示器 */
 .auto-loading-indicator {
     display: flex;
     flex-direction: row;
     /* 水平排列 */
     align-items: center;
     justify-content: center;
     gap: 15px;
     color: #666;
     padding: 20px;
 }

 .auto-loading-indicator span {
     font-size: 16px;
     color: inherit;
     opacity: 0.8;
 }

 .no-more-articles {
     display: flex;
     flex-direction: row;
     align-items: center;
     justify-content: center;
     gap: 10px;
     color: inherit;
     padding: 20px;
     animation: fade-in-up 0.5s ease;
 }

 .no-more-articles i {
     font-size: 18px;
     color: #28a745;
     animation: scale-in 0.5s ease;
 }

 .load-error {
     display: flex;
     flex-direction: row;
     align-items: center;
     justify-content: center;
     gap: 15px;
     color: #dc3545;
     padding: 20px;
     animation: shake 0.5s ease;
 }

 .load-error i {
     font-size: 18px;
 }

 .retry-btn {
     background: #dc3545;
     color: white;
     border: none;
     padding: 8px 16px;
     border-radius: 4px;
     cursor: pointer;
     font-size: 14px;
     transition: all 0.3s ease;
 }

 .retry-btn:hover {
     background: #c82333;
     transform: translateY(-1px);
 }

 /* 旋转动画 */
 .spinner {
     width: 40px;
     height: 40px;
     border: 3px solid rgba(0, 0, 0, 0.1);
     border-top: 3px solid #667eea;
     border-radius: 50%;
     animation: spin 1s linear infinite;
 }

 .spinner.small {
     width: 20px;
     height: 20px;
     border-width: 2px;
 }

 @keyframes spin {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 /* 其他动画 */
 @keyframes fade-in-up {
     from {
         opacity: 0;
         transform: translateY(20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes scale-in {
     from {
         transform: scale(0.8);
         opacity: 0;
     }

     to {
         transform: scale(1);
         opacity: 1;
     }
 }

 @keyframes shake {

     0%,
     100% {
         transform: translateX(0);
     }

     10%,
     30%,
     50%,
     70%,
     90% {
         transform: translateX(-5px);
     }

     20%,
     40%,
     60%,
     80% {
         transform: translateX(5px);
     }
 }

 /* 移动端适配 */
 @media (max-width: 768px) {
     .load-more-container {
         margin: 30px 20px;
     }

     .auto-loading-indicator {
         padding: 30px 20px;
     }

     .auto-loading-indicator span {
         font-size: 16px;
     }
 }

 .searchform {
     position: relative;
     display: inline-block;
     width: 100%;
 }

 .searchform button {
     position: absolute;
     right: 0;
     top: 50%;
     transform: translateY(-50%);
     width: 40px;
     height: 100%;
     background: transparent;
     border: none;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .searchform button i {
     font-size: 16px;
     color: #2c3e50;
 }

 .searchform button:hover i {
     color: #3498db;
 }

 /* 分页容器样式 */
 .text-center .pagination {
     margin: 20px 0;
     padding: 0;
     font-family: Arial, sans-serif;
 }

 /* 分页项基础样式 */
 .page-item {
     display: inline-block;
     margin: 0 2px;
     list-style: none;
 }

 /* 链接和文本样式 */
 .page-link,
 .page-item.disabled .page-link {
     display: inline-block;
     padding: 8px 10px;
     color: #6c757d;
     text-decoration: none;
     transition: all 0.3s ease;
     font-size: 16px;
     font-weight: 600;
 }

 /* 悬停效果 */
 .page-link:hover {
     background-color: #f8f9fa;
     border-color: #ddd;
     text-decoration: none;
 }

 /* 当前活动页样式 */
 .page-item.active .page-link {
     color: #2c3e50;
     cursor: default;
 }

 /* 禁用状态样式 */
 .page-item.disabled .page-link {
     color: #6c757d;
     cursor: not-allowed;
 }

 /* 跳转表单样式 */
 .jumpto {
     display: inline-flex;
     align-items: center;
     margin-left: 10px;
 }

 /* 页码输入框样式 */
 .page_number {
     width: 60px;
     padding: 6px 10px;
     border: 1px solid #ddd;
     border-radius: 4px;
     margin-right: 5px;
     text-align: center;
     font-size: 14px;
 }

 .page_number:focus {
     outline: none;
     border-color: #007bff;
     box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
 }

 /* 跳转按钮样式 */
 .submit {
     padding: 6px 15px;
     background-color: #007bff;
     color: white;
     border: none;
     border-radius: 4px;
     cursor: pointer;
     font-size: 14px;
     transition: background-color 0.3s;
 }

 .submit:hover {
     background-color: #0056b3;
 }

 /* 响应式设计 */
 @media (max-width: 768px) {

     .page_number {
         width: 50px;
     }

     .submit {
         padding: 6px 10px;
     }
 }

 @media (max-width: 576px) {
     .jumpto {
         margin-top: 10px;
         margin-left: 0;
         width: 100%;
         justify-content: center;
     }
 }
 .adsbygoogle{
      width: 100%;
 }