/*-- 文章布局样式  --*/

/*--------------------------------------------------------------
# 文字标题信息
--------------------------------------------------------------*/
.anygraphany-post {
  background-color: rgba(243, 248, 255, 1);
  border-radius: 12px;
  color: rgba(0, 0, 0, 0.8);
  padding: 50px 0;
}

.anygraphany-post .content {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 12px;
  padding-bottom: 30px;
  margin-top: 60px;
  white-space: normal;
  overflow-wrap: break-word;
  /* 50px 相当于2.6vw */
  padding: 30px 2.6vw;
}

.anygraphany-post .title {
  color: rgba(0, 0, 0, 1);
  font-size: 32px;
  font-weight: 700;
  padding-bottom: 20px;
  text-align: left;
}

.anygraphany-post ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 10px;
}

.anygraphany-post ol li+li {
  margin-left: 20px;
  font-size: 16px;
}

.anygraphany-post .author {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #f3f5f9;
  border-radius: 5px;
}

.anygraphany-post .article-info {
  margin: 10px 0;
}

.anygraphany-post .article-info H2 {
  font-size: 28px;
  margin: 40px 0;
}

.anygraphany-post .article-info H3 {
  font-size: 24px;
  margin: 30px 0;
}

.anygraphany-post .article-info H5 {
  font-size: 20px;
  margin: 20px;
}

.anygraphany-post .article-info p {
  font-size: 16px;
  line-height: 30px;
}

.anygraphany-post .article-info .opt-page-img {
  box-shadow: 5px 2px 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
}

.article-info .page-content {
  padding-right: 50px;
}

.page-content .template-img img {
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* 导图简介样式*/
.page-content .template-content {
  margin: 20px 0;
}

.page-content .template-remarks {
  background-color: #f3f5f9;
  padding: 15px 20px 5px 20px;
}

/* 文章列表 */
.page-content .mindmap-outline {
    position: relative;
    width: 350px;
    padding: 20px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    overflow: hidden;
    height: 0;
    opacity: 0; /*opacity: 1，并去除height: 0;则显示； */
    padding-top: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-content .mindmap-outline::before {
  background-color: #2196F3;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
}

/* 主表格样式 */
table {
  width: 100%;
  table-layout: fixed;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  background: white;
  margin-bottom: 30px;
}

/* 表头样式 */
thead {
  background-color: #eef4ff;
  color: #1c1b1c;
  border-bottom: 2px solid #e2e8f0;
}

th {
  padding: 16px 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-right: 1px solid rgb(242 237 237) !important;
}

th:last-child {
  border-right: none;
}

/* 表格内容样式 */
tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid #e2e8f0;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #f1f5f9;
}

td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: middle;
  line-height: 1.5;
  border-right: 1px solid rgb(242 237 237) !important;
}

/* 斑马条纹效果 */
tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

tbody tr:nth-child(even):hover {
  background-color: #f1f5f9;
}

/* 响应式设计 */
@media (max-width: 768px) {
  table {
    font-size: 14px;
  }
}

.sidebar-content .ohter-works-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #473d3a;
  position: relative;
}

.sidebar-content .sidebar {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  padding: 0 20px;
  width: 100% !important;
  background: #fff;
}

.sidebar-contentr .sidebar-item {
  border-radius: 8px;
  padding: 0px 30px;
}

/* 针对 WebKit 浏览器自定义滚动条样式 */
.sidebar-content .sidebar-item::-webkit-scrollbar {
  width: 12px;
  /* 滚动条的宽度 */
}

.sidebar-content .sidebar-item::-webkit-scrollbar-thumb {
  background-color: rgb(255, 255, 255);
  /* 滚动条滑块的颜色 */
  border-radius: 10px;
  /* 圆角 */
}

.sidebar-content .sidebar-item::-webkit-scrollbar-track {
  background: rgb(255, 255, 255);
  /* 滚动条轨道的颜色 */
}

.sidebar-content .sidebar .img-content {
  text-align: center;
  cursor: pointer;
  padding: 5px 0;
  background-color: rgb(255, 255, 255);
  opacity: 0.9;
}

.sidebar-content .sidebar .up-load-img {
  width: 30px;
  height: auto;
  margin: 0;
  box-shadow: none;
  display: none;
}


/* 修改右侧卡片图片显示 */
.sidebar-content .sidebar .recent-posts .post-item {
  display: flex;
  align-items: center;
}

.sidebar-content .sidebar .recent-posts .post-item .post-img {
  width: 100px;
  /* 固定宽度 */
  height: 100px;
  /* 固定高度 */
  overflow: hidden;
  /* 隐藏超出容器范围的内容 */
  position: relative;
  /* 设置相对定位 */
  border-radius: 8px;
  box-shadow: 5px 3px 5px rgba(136, 134, 134, 0.3);
  background-color: #f3f5f9;
  margin-right: 15px;
}

/* 11-15 修改图片显示样式*/
.sidebar-content .sidebar .recent-posts img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: none;
  margin: auto;
}

.sidebar-content .sidebar .recent-posts .post-item+.post-item {
  margin-top: 15px;
  /*width: 200px;  定义容器宽度 */
  /* white-space: nowrap;确保文本在一行内显示 */
  overflow: hidden;
  /* 隐藏超出容器的文本 */
  text-overflow: ellipsis;
  /* 使用省略号表示被截断的文本 */
}

.sidebar-content .sidebar .recent-posts .post-item .post-title {
  width: 50%;
}

.sidebar-content .entry .opt-page-img {
  box-shadow: 0px 25px 70px 0px rgba(69, 68, 68, 0.25);
  background-color: rgba(255, 255, 255, 1);
  border-radius: 15px;
}

.sidebar-content .sidebar .recent-posts h4 {
  font-size: 15px;
  /* margin-left: 120px; */
  font-weight: bold;
}

/* modify 9-20 修改右侧栏文字*/
.sidebar-content .sidebar .recent-posts h4 a {
  font-size: 14px;
  color: #473d3a;
  transition: 0.3s;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
}

.sidebar-content .sidebar .recent-posts h4 a:hover {
  color: #2b579a;
}

.sidebar-content .sidebar .recent-posts time {
  display: block;
  /* margin-left: 120px; */
  font-style: italic;
  font-size: 12px;
  color: #989595;
}

.sidebar-content .sidebar .tags {
  margin-bottom: -10px;
}

.sidebar-content .sidebar .tags ul {
  list-style: none;
  padding: 0;
}

.sidebar-content .sidebar .tags ul li {
  display: inline-block;
}

.sidebar-contentg .sidebar .tags ul a {
  font-size: 14px;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
  border: 1px solid #f4f2f2;
  display: inline-block;
  transition: 0.3s;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  text-decoration: none;
}

.sidebar-content .sidebar .tags ul a:hover {
  color: #fff;
  border: 1px solid #2b579a;
  background: #2b579a;
}

.sidebar-content .sidebar .tags ul a span {
  padding-left: 5px;
  color: #ddd7d6;
  font-size: 14px;
}

@media (max-width: 768px) {
  .article-info .page-content {
    padding-right: 5px;
  }

  .article-info .sidebar-content{
    margin-top: 20px;
  }

  .anygraphany-post .title {
    font-size: 22px;
  }

  .anygraphany-post .article-info H2 {
    font-size: 18px;
    margin: 30px 0;
  }

  .anygraphany-post .article-info H3 {
    font-size: 16px;
    margin: 20px 0;
  }

  .anygraphany-post .article-info H4 {
    font-size: 15px;
    margin: 10px;
  }

  .anygraphany-post ol li+li {
    margin-left: 0;
    font-size: 15px;
  }

  .anygraphany-post li {
    margin-right: 15px;
  }
  
  .anygraphany-post .author {
    font-size: 15px;
    display: block;
    padding-bottom: 10px;
  }

  .sidebar-content .sidebar .recent-posts h4 a {
    font-size: 15px;
  }

  .anygraphany-post .article-info p {
    font-size: 15px;
  }

  .sidebar-content .ohter-works-title {
    font-size: 18px;
  }
}
