:root {
   --max-width: 1200px;
   --primary-color: #2c3e50;
   --accent-color: #3498db;
   --bg-color: #f9f9f9;
   --card-bg: #fff;
   --border-radius: 12px;
   --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
 }


/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
     background: #111;
     color: white;
     padding: 20px 0;
     text-align: center;
     position: fixed;
     width: 100%;
     top: 0;
     left: 0;
     z-index: 1000;
   }

   header h1 {
     margin: 0;
     font-size: 1.5rem;
   }

   header h1 a {
     color: white;
     text-decoration: none;
     transition: color 0.3s;
   }

   header h1 a:hover {
     color: var(--accent-color);
   }
   
   
   nav {
        margin-top: 10px;
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
      }

      nav a {
        color: var(--accent-color);
        text-decoration: none;
        font-size: 1rem;
        padding: 6px 10px;
        border-radius: 6px;
        transition: background 0.3s, color 0.3s;
      }
      nav .active,
      nav a:hover {
        background: var(--accent-color);
        color: white;
      }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 主容器布局 */
main {
    display: flex;
    max-width: 1200px;
    margin: 30px auto 40px;
    padding: 0 20px;
    gap: 40px;
}

/* 左侧内容区域 */
.left {
    flex: 1;
}

/* 文章项样式 */
.article-link {
    display: block;
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-item {
    display: flex;
}
.article-item .article-content{
    padding: 20px;
}
.article-item .img{
    position: relative;
    overflow: hidden;
    flex: 0 1 32%;
}
.article-item img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;    
    object-fit: cover;
}

.article-content {
/*    padding: 20px;*/
    flex: 1;
    min-width: 0;
}

.article-content h2 {
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1.4;
    color: #222;
}

.meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.article-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
 /*   overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;*/
}

/* 右侧边栏样式 */
.right {
    width: 320px;
    flex-shrink: 0;
}

/* 搜索框样式 */
.search-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    padding-right: 40px;
    transition: border-color 0.3s;
}
.search-form{
    position: relative;
}
.search-input:focus {
    border-color: #007bff;
}
.search-button{
    background: none;
    border: none;
    position: absolute;
    top: 50%;
    right: 0;
    padding: 0 10px;
    height: 100%;
    transform:translateY(-50%);
    cursor: pointer;
    opacity: .5;
    -webkit-transition:.3s;
    transition:.3s;
}
.search-button:hover{
    opacity: 1;
}
.search-button svg{
    width: 20px;
    height: 20px;
}
.search-button {
    
}

/* 推荐区域样式 */
.recommend-section {
    margin-bottom: 20px;
}

.recommend-title {
    font-size: 1.2rem;
    text-align: center;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.recommend-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.recommend-item:hover {
    transform: translateX(5px);
}

.recommend-item a {
    margin-bottom: 8px;
}

.recommend-item img {
    height: 160px;
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.recommend-item small {
    color: #888;
    font-size: 0.8rem;
    display: block;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #e0e0e0;
}

.pagination a[style*="background-color: #007bff"] {
    background-color: #007bff !important;
    color: white !important;
}

/* 响应式设计 */
@media (max-width: 992px) {
    main {
        flex-direction: column;
    }
    
    .right {
        width: 100%;
        margin-top: 40px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-item .img {
        width: 100%;
        padding-top: 60%;
    }
    
}

@media (max-width: 768px) {
    main {
        padding: 0 15px;
    }
    
    .article-content h2 {
        font-size: 1.2rem;
    }
    
    .recommend-item a {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recommend-item img {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .pagination a {
        padding: 8px 12px;
        margin: 0 2px;
    }
}

@media (max-width: 480px) {

    
    .article-content h2 {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 15px;
    }
}
#ez-toc-container{
    margin: 20px 0;
}


.breadcrumbs li{

    margin: 0;padding: 0;

}

.breadcrumbs{
    font-size: 16px;
    color: #666;
    margin: 0 0 1rem 0;

    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;

}
@media screen and (max-width: 760px){
    .breadcrumbs{
        font-size: 14px;
    }
}


.breadcrumbs .seperator{

    margin-left: 4px;

    margin-right: 4px;

}

.breadcrumbs a{

    color: #666;

    text-decoration: none;

    -webkit-transition:.3s;

    transition:.3s;

}

.breadcrumbs a:hover{

    color: #000;

}



/* 文章容器 */

.article-container {

   max-width: 56rem; /* max-w-4xl */

   margin-left: auto;

   margin-right: auto;


}



/* 特色图片 */

.featured-image {

   width: 100%;

   height: 16rem; /* h-64 */

   object-fit: cover;

}



/* 文章内容区域的内边距 */

.content-padding {
    background-color: #fff;
   padding: 2rem; /* p-8 */
   border-radius: 0.75rem; /* rounded-xl */

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* shadow-lg */
}



/* 文章标题 */

.article-title {

   font-size: 1.875rem; /* text-3xl */

   font-weight: 700; /* font-bold */

   color: #111827; /* text-gray-900 */

   margin-bottom: 1rem;

}



/* 作者和日期信息 */

.meta-info {

   display: flex;

   align-items: center;

   color: #6b7280; /* text-gray-500 */

   margin-bottom: 2rem;

}

.meta-info span + span {

   margin-left: 0.5rem;

}

.meta-info .separator {

   margin-right: 0.5rem;

}



/* 文章内容排版 */

.article-content {

   color: #374151; /* text-gray-700 */

}

.article-content h2 {
    display: -webkit-box;        /* 必须，启用伸缩盒模型 */
    -webkit-box-orient: vertical; /* 必须，设置为垂直排列 */
    -webkit-line-clamp: 2;       /* 显示几行文字 */
    overflow: hidden;            /* 超出隐藏 */
    text-overflow: ellipsis;     /* 多余部分显示省略号 */
    height: 2.8em;
}

.article-content p {
   line-height: 1.75;
}



/* 响应式设计 */

@media (min-width: 768px) {

   .featured-image {

       height: 24rem; /* md:h-96 */

   }

   .content-padding {

       padding: 3rem; /* md:p-12 */

   }

   .article-title {

       font-size: 2.25rem; /* md:text-4xl */

   }

}

.cover{
    width: 100%;
}
.article-container{
    margin-top: 40px;
}



.related-posts {

    margin-top: 3rem;

    padding: 15px;

    background-color: #f9f9f9;

    border-radius: 8px;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}



.related-posts .related-title {

    font-size: 1.5rem;

    font-weight: 700;

    color: #333;

    margin-bottom: 1.5rem;

    text-align: center;

}



.related-posts .related-list {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 1.5rem;

    list-style: none;

    padding: 0;

    margin: 0;

}



.related-posts .related-item {

    background-color: #fff;

    border: 1px solid #ddd;

    border-radius: 8px;

    overflow: hidden;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



.related-posts .related-item:hover {

    transform: translateY(-5px);

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);

}



.related-posts .related-item a {

    display: block;

    text-decoration: none;

    color: #333;

    height: 100%;

}



.related-posts .related-thumb {
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    position: relative;
}



.related-posts .related-thumb img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
}



.related-posts .related-item:hover .related-thumb img {

    transform: scale(1.05);

}



.related-posts .related-info {

    padding: 1rem;

}



.related-posts .related-info .related-title {

    font-size: 1rem;

    font-weight: 600;

    line-height: 1.4;

    margin: 0;

    color: #333;

    text-align: left;

}
.header-holder{
    height: 125px;
}


.pagination-nav{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    list-style: none;
}
.pagination-nav span,
.pagination-nav .page-numbers{
    font-size: 1em;
    justify-content: center;
    margin: .25rem;
    padding-left: .5em;
    padding-right: .5em;
    text-align: center;
    display: block;
    height: 2.5em;
    min-width: 2.5em;
    line-height: 2.5;
    border: 1px solid  #dbdbdb;
    color: #363636;
    text-decoration: none;
    -webkit-transition:.3s;
    transition:.3s;
}
.pagination-nav .current{
    color: #fff;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.pagination-nav span:hover,
.pagination-nav a:hover{
    text-decoration: none;
}
.pagination-nav span:hover,
.pagination-nav a:hover{
    border-color: #000;
}
.pagination-nav .current:hover{
    border-color: var(--accent-color);
}



.simple-footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 20px 15px;
  font-size: 14px;
  font-family: "Arial", sans-serif;
}

.simple-footer a {
  color: #ccc;
  text-decoration: none;
}

.simple-footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
}
.search-highlight{
    color: var(--accent-color);
}
hr{
    margin: 20px 0;
}

@media (max-width: 760px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead {
    display: none; /* 隐藏表头 */
  }
  tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
  }
  td {
    border: none;
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
  }
  td:first-child {
    font-weight: bold;
    width: 100%;
  }
  td:last-child {
    width: 60%;
    word-break: break-word;
  }
  .article-title{
    font-size: 20px;
  }
}


.iframe-wrapper {

  position: relative;

  padding-bottom: 56.25%;

  /* 16:9 */

  height: 0;

}



.iframe-wrapper iframe {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

}



#faqsu-faq-list {

    background: #F0F4F8;

    border-radius: 5px;

    padding: 15px;

    margin-top: 20px;

    margin-bottom: 20px;

}

#faqsu-faq-list .faqsu-faq-single {

    background: #fff;

    padding: 15px 15px 20px;

    box-shadow: 0px 0px 10px #d1d8dd, 0px 0px 40px #ffffff;

    border-radius: 5px;

    margin-bottom: 1rem;

}

#faqsu-faq-list .faqsu-faq-single:last-child {

    margin-bottom: 0;

}

#faqsu-faq-list .faqsu-faq-question {
    font-weight: bold;
    font-size: 20px;

    border-bottom: 1px solid #F0F4F8;

    padding-bottom: 0.825rem;

    margin-bottom: 0.825rem;

    position: relative;

    padding-right: 40px;

}

#faqsu-faq-list .faqsu-faq-question:after {

    content: "?";

    position: absolute;

    right: 0;

    top: 0;

    width: 30px;

    line-height: 30px;

    text-align: center;

    color: #c6d0db;

    background: #F0F4F8;

    border-radius: 40px;

    font-size: 20px;

}

.content-padding a{
    color: #3498db;
}
.content-padding a:hover{
    text-decoration: underline;
}