/*header*/
.current-menu-item a {
color: #ffd600;
    }
.current-post-ancestor a{
color: #0000FF;
    }
.fudong {
box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
         position: fixed;
     top: 0;
     left: 0px;
     width: 100%;
     z-index: 1001;
  }
  .cdfudong {
box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
     position: fixed;
     top: 0;
     left: 0px;
     width: 100%;
     z-index: 998;
  }
  .site-content {
margin-top: 70px;
  }
@media (max-width: 768px) {
            .site-content {
margin-top: 60px;
  }
        }   
.term-bar {
 margin-top: 60px;
  }
  .modal-content {
  }
.bg {
          width: 100%;
           background: linear-gradient( );
            background-size: 200% 200%;
            animation: gradient 15s ease infinite;
          z-index: 999;
        }
@keyframes gradient {
            0% {
                background-position: 0 12%;
            }

            50% {
                background-position: 90% 90%;
            }

            100% {
                background-position: 0 12%;
            }
        }
/* 左到右光影（::before） */
.fudong::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 1%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 1%
  );
  transform: translateX(-80%);
  animation: aslide-right 30s linear infinite; /* 左到右动画：无延迟 */
  z-index: -1; /* 分层显示，避免重叠 */
}
/* 右到左光影（::after） */
.fudong::after {
  content: "";
  position: absolute;
  width: 100%;
height: 100%;
 background: linear-gradient(
    to left,
    transparent 1%,
    rgba(255, 255, 255, 0.3) 50%,
   transparent 1%
  );
  transform: translateX(85%); /* 初始在右侧外 */
  animation: aslide-left 30s linear infinite 15s; /* 关键：延迟5秒 */
  opacity: 1; /* 确保伪元素可见（默认值，可省略） */
  z-index: -2; /* 分层显示，避免重叠 */
}           
/* 左到右动画 */
@keyframes aslide-right {
  100% {
    transform: translateX(100%); /* 从左到右 */
  }
}

/* 右到左动画 */
@keyframes aslide-left {
  100% {
    transform: translateX(-100%); /* 从右到左 */
  }
}

/*新增列表布局样式 默认存在位置duotu datu tubiao tuwen*/
* {
            margin: 0;
            padding: 0;
            font-family: "Microsoft YaHei", sans-serif;
            }
/*左右分区*/
/* 新增容器样式 - 用于包裹主内容和侧边栏 */
        .page-container {
            display: flex;
            width: 100%;
            max-width: 1500px; /* 可选：限制最大宽度 */
            margin: 0 auto;
            padding: 0 2%;
            box-sizing: border-box;
        }
.tarticle-list {
            width: 75%; /* 主内容占75%宽度 */
            padding: 0 2% 2% 0;
        }

 
        
  
/*大图*/
.dtarticle-list {
    width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 1%;
}
@media (max-width: 768px) {
    .dtarticle-list {
        width: 100%;
        margin: 0 auto;
        display: grid;
        gap: 8px;
    }
}       
.dtarticle-card {
            width: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
 }
.dtarticle-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.dtarticle-thumb {
            width: 100%;
            height: 300px;
            overflow: hidden;
}
.dtarticle-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
}
.dtarticle-card:hover .article-thumb img {
            transform: scale(1.05);
}
.dtarticle-content {
            padding: 8px;
            flex-grow: 1;
}
.dtentry-title {
            font-size: 16px;
            font-weight: bold;
            line-height: 1.5;
}
.dtentry-title a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease;
}
.dtentry-title a:hover {
            color: #e64340;
}
.dtentry-info {
            display: flex;
            flex-wrap: wrap;
            gap: 5%;
            color: #666;
            font-size: 14px;
}
.dtinfo-item {
            display: flex;
            align-items: center;
}
.dtinfo-item i {
            margin-right: 5px;
            color: #999;
}
.dtinfo-category {
            color: #e64340;
}
.dtinfo-views {
            margin-left: auto;
            color: #999;
}
@media (min-width: 1200px) {
            .dtarticle-list {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        @media (max-width: 1199px) and (min-width: 992px) {
            .dtarticle-list {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        @media (max-width: 991px) and (min-width: 768px) {
            .dtarticle-list {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (max-width: 767px) and (min-width: 576px) {
            .dtarticle-list {
                grid-template-columns: 1fr; /* 1列（小屏手机） */
            }
            .dtarticle-thumb {
                height: 180px;
            }
        }
        
        @media (max-width: 575px) {
            .dtarticle-list {
            grid-template-columns: 1fr; /* 1列（小屏手机） */
            }
            .dtarticle-thumb {
                height: 180px;
            }
        }

/*图文列表*/
 /* 容器样式 - 手动计算宽度补偿内边距 */
      .wtarticle-list {
    width: 100%;
    margin: 0 auto;
    /* padding: 2%; */
    display: grid;
    gap: 1%;
}
        
 @media (max-width: 768px) {
            .wtarticle-list {
    width: 100%;
    margin: 0 auto;
    /* padding: 2%; */
    display: grid;
    gap: 8px;
}
        }       
        
/* 单个文章卡片样式 */
        .wtarticle-card {
            width: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .wtarticle-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        /* 图片区域样式 */
        .wtarticle-thumb {
            width: 100%;
            height: 150px;
            overflow: hidden;
        }
        
        .wtarticle-thumb img {
            width: 100%;
            height: 100%;
            /*object-fit: cover;*/
            transition: transform 0.5s ease;
        }
        
        .wtarticle-card:hover .article-thumb img {
            transform: scale(1.05);
        }
        
        /* 内容区域样式 - 手动计算宽度（100% - 左右padding） */
        .wtarticle-content {
            /*width: 90%; */
            padding: 10px;
            flex-grow: 1;
        }
        
        /* 标题样式 */
        .wtentry-title {
            margin-bottom: 8px;
            font-size: 16px;
            font-weight: bold;
            line-height: 1.5;
        }
        
        .wtentry-title a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .wtentry-title a:hover {
            color: #e64340;
        }
        
        /* 信息区域样式 */
        .wtentry-info {
            display: flex;
            flex-wrap: wrap;
            gap: 5%;
            color: #666;
            font-size: 14px;
        }
        
        .wtinfo-item {
            display: flex;
            align-items: center;
        }
        
        .wtinfo-item i {
            margin-right: 5px;
            color: #999;
        }
        
        .wtinfo-category {
            color: #e64340;
        }
        
        .wtinfo-views {
            margin-left: auto;
            color: #999;
        }
        
        /* 响应式布局 */
        @media (min-width: 1200px) {
            .wtarticle-list {
                grid-template-columns: repeat(5, 1fr);
            }
        }
        
        @media (max-width: 1199px) and (min-width: 992px) {
            .wtarticle-list {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        @media (max-width: 991px) and (min-width: 768px) {
            .wtarticle-list {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (max-width: 767px) and (min-width: 576px) {
            .wtarticle-list {
                grid-template-columns: repeat(2, 1fr);
            }
            .wtarticle-thumb {
                height: 120px;
            }
        }
        
        @media (max-width: 575px) {
            .wtarticle-list {
            grid-template-columns: repeat(2, 1fr);
            }
            .wtarticle-thumb {
                height: 120px;
            }
        }

/*图标下载列表*/
 .btarticle-item {
            width: 100%;
            display: flex;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            transition: background-color 0.3s ease;
        }
        
        .btarticle-item:hover {
            background-color: #f9f9f9;
        }
        
        
        .btarticle-thumb {
            width: 100px;
            min-width: 100px;
            height: 100px; 
            flex-shrink: 0;
            overflow: hidden;
            border-radius: 12px;
            margin-right: 15px;
        }
        
        .btarticle-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .btarticle-item:hover .article-thumb img {
            transform: scale(1.05);
        }
        
       
        .btarticle-content {
            flex-grow: 1;
            min-width: 0;
            height: 100px; 
            display: flex;
            flex-direction: column;
            padding-right: 15px;
        }
        
        
        .btentry-title {
            margin-bottom: 9px; 
            padding-top: 0; 
            line-height: 1.5;
        }
        
        .btentry-title a {
            color: #333;
            text-decoration: none;
            font-size: 16px;
            font-weight: bold;
            transition: color 0.3s ease;
            white-space: normal; 
            word-wrap: break-word;
            display: block;
            max-width: 100%;
        }
        
        .btentry-title a:hover {
            color: #e64340;
        }
        
        
        .btentry-intro {
            color: #555;
            font-size: 14px;
            line-height: 1.5;
            flex-grow: 1; 
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2; 
            -webkit-box-orient: vertical;
        }
        
        
        .btentry-info {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            color: #666;
            font-size: 13px;
            margin-top: 8px; 
            padding-bottom: 0; 
        }
        
        .btinfo-item {
            display: flex;
            align-items: center;
        }
        
        .btinfo-item i {
            margin-right: 4px;
            color: #999;
            font-size: 13px;
        }
        
        .btinfo-category {
            color: #e64340;
        }
        
        
        .btdownload-btn {
            flex-shrink: 0;
            margin-left: 10px;
            height: 100px; 
            display: flex;
            align-items: center; 
        }
        
        .btdownload-btn a {
            display: inline-block;
            padding: 6px 12px;
            background-color: #e64340;
            color: #fff;
            text-decoration: none;
            border-radius: 3px;
            font-size: 13px;
            white-space: nowrap;
            transition: background-color 0.3s ease;
        }
        
        .btdownload-btn a:hover {
            background-color: #c9302c;
        }
        
        
        @media (max-width: 768px) {
            .btarticle-thumb,
            .btarticle-content,
            .btdownload-btn {
                height: 70px; 
            }
            
            .btarticle-thumb {
                width: 70px;
                min-width: 70px;
                margin-right: 10px;
            }
            
            .btentry-title a {
                font-size: 14px;
            }
            
            .btentry-intro {
                font-size: 13px;
                -webkit-line-clamp: 2; 
            }
            
            .btentry-info {
                font-size: 12px;
                gap: 8px;
            }
            
            .btdownload-btn a {
                padding: 5px 10px;
                font-size: 12px;
            }
        }
        
        @media (max-width: 480px) {
            .btarticle-thumb,
            .btarticle-content,
            .btdownload-btn {
                height: 70px; 
            }
            
            .btarticle-thumb {
                min-width: 60px;
            }
            
            .btentry-title a {
                font-size: 13px;
            }
            
            .btentry-intro {
                font-size: 12px;
                -webkit-line-clamp: 1; 
            }
            
            /* 超小屏幕隐藏部分信息 
            .btinfo-item:nth-child(2) {
                display: none;
            }*/
        }

/* 多图列表样式 */
.xarticle-item {
            width: 100%;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            transition: background-color 0.3s ease;
            }
        .xarticle-item:hover {
            background-color: #f9f9f9;
            }
        .xsingle-image-layout {
            display: flex;
            align-items: flex-start;
            }
        .xmulti-image-layout {
            display: block; 
            }
        .xarticle-thumbs {
            display: flex;
            gap: 5px;
            margin-bottom: 10px;
            }
        .xsingle-image .xarticle-thumbs {
            flex: 0 0 20%;
            margin-right: 15px;
            margin-bottom: 0;
            }
        .xsingle-image .xarticle-thumb {
            width: 100%;
            height: 120px;
            }
        .xmulti-image .xarticle-thumbs {
            width: 100%;
            }
        .xmulti-image .xarticle-thumb {
            flex-grow: 1;
            height: 140px;
            min-width: 30%;
            }
        .xarticle-thumb {
            overflow: hidden;
            border-radius: 4px;
            }
        .xarticle-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
            }
        .xarticle-item:hover .xarticle-thumb img {
            transform: scale(1.05);
            }
        .xarticle-content {
            flex-grow: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            }
        .xsingle-image .xarticle-content {
    /* 继承flex布局，确保信息区域能靠下 */
            }
        .xmulti-image .xarticle-content-header {
            /*margin-bottom: 10px;*/
            flex-shrink: 0; /* 不压缩标题区域 */
            }
        .xentry-title {
            margin-bottom: 8px;
            line-height: 1.5;
            }
        .xentry-title a {
            color: #333;
            text-decoration: none;
            font-size: 16px;
            font-weight: bold;
            transition: color 0.3s ease;
            white-space: normal;
            word-wrap: break-word;
            }
        .xentry-title a:hover {
            color: #e64340;
            }
        .xentry-intro {
            color: #555;
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 8px;
            flex-shrink: 0; /* 不压缩简介 */
            }
        .xarticle-content p {
            color: #989494;
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 1px;
            }
        .xentry-info {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            color: #666;
            font-size: 13px;
            margin-top: auto;
            padding-top: 10px;
            }
        .xinfo-item {
            display: flex;
            align-items: center;
            }
        .xinfo-item i {
            margin-right: 4px;
            color: #999;
            font-size: 13px;
            }
        .xinfo-category {
            color: #e64340;
            }
        .xsingle-image-layout {
            display: flex;
            align-items: flex-start;
            }
        .xsingle-image-container {
            display: flex;
            width: 100%;
            align-items: stretch;
            }
        .xsingle-image .xarticle-content {
            flex: 1;
            }
        @media (max-width: 768px) {
            .xsingle-image .xarticle-thumb {
                height: 100px;
                }
            .xmulti-image .xarticle-thumb {
                height: 120px;
                }
            .xentry-title a {
                font-size: 16px;
                }
            .xentry-intro {
                font-size: 13px;
                }
            .xentry-info {
                font-size: 12px;
                gap: 8px;
                }
            }
        @media (max-width: 480px) {
            .xsingle-image .xarticle-thumb {
                height: 80px;
                min-width: 70px;
                }
            .xmulti-image .xarticle-thumb {
                height: 100px;
                }
            .xentry-title a {
                font-size: 16px;
                }
            .xentry-intro {
                font-size: 12px;
                }
            /*.xinfo-item:nth-child(2) {
                display: none;
                }*/
            }

















 /*右侧边栏*/        
        /* 新增右侧边栏样式 */
        .sidebar {
            width: 25%; /* 侧边栏占25%宽度 */
            padding: 0 10px;
            box-sizing: border-box;
            border-left: 1px solid #eee; /* 分隔线 */
        }
        
        /* 侧边栏内容样式 */
        .sidebar-widget {
            margin-bottom: 30px;
        }
        
        .sidebar-title {
            font-size: 18px;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid #cfcaca;
        }
        
        .sidebar-list {
            list-style: none;
        }
        
        .sidebar-list li {
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px dashed #eee;
        }
        
        .sidebar-list a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .sidebar-list a:hover {
            color: #e64340;
        }
        
        /* 响应式调整 - 小屏幕隐藏侧边栏 */
        @media (max-width: 768px) {
            .sidebar {
                display: none; /* 小屏幕隐藏侧边栏 */
            }
            
            .tarticle-list {
                width: 100%; /* 主内容占满宽度 */
                padding: 2% 0;
            }
        } 
  /* 热门课程图文列表样式 - 新增 */
        .hot-course-list li {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px dashed #eee;
            display: flex; /* 启用flex布局 */
            align-items: center; /* 垂直居中对齐 */
        }
        
        .hot-course-list li:last-child {
            border-bottom: none; /* 最后一项去掉下划线 */
        }
        
        .course-thumb {
            width: 70px; /* 固定图片宽度 */
            height: 50px; /* 固定图片高度 */
            flex-shrink: 0; /* 不压缩 */
            overflow: hidden;
            border-radius: 3px;
            margin-right: 10px;
        }
        
        .course-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .hot-course-list li:hover .course-thumb img {
            transform: scale(1.05); /* 悬停放大效果 */
        }
        
        .course-info {
            flex-grow: 1; /* 占满剩余空间 */
            min-width: 0; /* 解决内容溢出问题 */
        }
        
        .hot-course-list a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 14px;
            display: -webkit-box;
            -webkit-line-clamp: 2; /* 最多显示2行 */
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .hot-course-list a:hover {
            color: #e64340;
        }

  /* 友情链接容器样式 */
.footer-nav-listlink {
    padding: 10px 8px;
    margin: 0 auto;
    max-width: 1500px;
    
    
    
}

/* 标题样式 */
.footer-nav-listlink h3 {
    color: #333;
    font-size: 18px;
    
    
}

/* 列表样式 */
.footer-nav-listlink ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 列表项样式 */
.footer-nav-listlink li {
    margin-right: 20px;
    margin-bottom: 1px;
}

/* 链接样式 */
.footer-nav-listlink a {
    color: #5d6268;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
}

/* 鼠标悬停效果 */
.footer-nav-listlink a:hover {
    color: #0044aa;
    
}

/* 移动端隐藏 (屏幕宽度小于768px时) */
@media (max-width: 768px) {
    .footer-nav-listlink {
        display: none;
    }
}

/* 小屏幕适配 (768px到1024px之间) */
@media (min-width: 768px) and (max-width: 1024px) {
    .footer-nav-listlink li {
        margin-right: 15px;
    }
}
 /* 筛选式子分类列表容器 */
.sibling-categories {
  list-style: none;
  margin: 10px 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* 紧凑的间距 */
}

/* 筛选项 */
.sibling-categories li {
  /* 取消弹性拉伸，保持内容宽度 */
  flex: none;
}

/* 筛选链接样式 */
.sibling-categories a {
  display: inline-block; /* 紧凑显示，不占满整行 */
  padding: 6px 12px; /* 小尺寸内边距 */
  text-decoration: none;
  color: #555; /* 稍浅的文字色 */
  background-color: #f0f0f0; /* 浅灰背景 */
  border-radius: 20px; /* 胶囊形圆角，更像筛选标签 */
  font-size: 13px; /* 小号字体 */
  transition: all 0.2s ease; /* 快速过渡 */
}

/* 悬停效果 */
.sibling-categories a:hover {
  background-color: #e0e0e0;
  color: #333;
}

/* 当前选中分类高亮 */
.sibling-categories .current-cat a {
  background-color: #2c3e50; /* 深色背景突出选中状态 */
  color: #fff;
  font-weight: 500;
}

/* 选中状态禁用不必要的悬停效果 */
.sibling-categories .current-cat a:hover {
  background-color: #2c3e50;
}