
.cover-banner {
  width: 100%;

  filter: grayscale(100%) contrast(120%);
}

/* 淡入效果 */
.fade-in {
  animation: fadeIn 1.5s ease-in-out both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 768px) {
  .cover-banner {
    height: 250px;
  }
}


html,body{
    height:100%;margin:0;
    font-family:"LXGW WenKai Screen","Noto Serif SC","Microsoft YaHei","PingFang SC",serif;
    font-size: 12px;
    font-weight:400;
    background-color: #fdfcf7;
    color: #2c2c2c;
    -webkit-font-smoothing:antialiased;
    scroll-behavior: smooth;
}

 
 .md-body{
   padding:3rem 8rem;
   line-height:2.5em;
   text-align:justify;
   background-color: #fdfcf7;
   text-justify:inter-ideograph;
   color:var(--ink)!important;
   padding-bottom: 5rem;
   background: linear-gradient(to bottom, rgba(5,0,0,0.05), transparent);
   background-repeat: no-repeat;
   
 }
    

.md-body h1,.md-body h2{
      font-weight:400;
      text-align:center;
      margin:3rem 0 1.2rem;
      letter-spacing:2px;
    }
    
 .md-body strong {
   font-weight: 700 !important;
 }

 .md-body em {
   font-size: 0.8em !important;
   font-style: italic !important;
   color: #666 !important;
 }


    #floating-toc {
      position: fixed;
      top: 100px;
      right: 40px;
      width: 100px;
      max-height: 70vh;
      overflow-y: auto;
      background: rgba(255,255,255,0.95);
      border: 1px solid #ddd;
      padding: 1.2rem 1rem;
      font-size: 10px;
      line-height: 1.8em;
      border-radius: 10px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.08);
      z-index: 999;
      transition: box-shadow 0.3s ease;
    }

    #floating-toc:hover {
      box-shadow: 0 12px 24px rgba(0,0,0,0.12);
      
    }

    #floating-toc h4 {
      margin-top: 0;
      margin-bottom: 1rem;
      font-weight: 500;
      font-size: 13px;
      text-align: center;
      color: #555;
    }

    #floating-toc ul {
      list-style: none;
      padding-left: 0;
      margin: 0;
      
    }

    #floating-toc li {
      margin-bottom: 0.6em;
    }

    #floating-toc a {
      color: #333;
      text-decoration: none;
      transition: color 0.2s ease, transform 0.2s ease;
      display: block;
      
    }

    #floating-toc a:hover {
      color: #0077aa;
      transform: translateX(4px);
      
    }


header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  position: relative;
}
.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}
.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%) contrast(120%);
  opacity: 0.9;
}
header h1 {
  font-size: 3rem;
  letter-spacing: 4px;
  margin: 0;
  z-index: 2;
}
header p {
  font-size: 1.2rem;
  color: #666;
  margin-top: 1rem;
  font-style: italic;
}

/* 动态墨晕效果 */
.ink-effect::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  background: radial-gradient(rgba(0, 0, 0, 0.12), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: inkSpread 4s infinite ease-in-out;
  z-index: 0;
}
@keyframes inkSpread {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.15;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.08;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

.search-bar {
  text-align: center;
  margin: 1rem 0;
}
#searchInput {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  width: 50%;
  max-width: 360px;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  color: #555;
  text-align: center;
  outline: none;
}
.category-nav {
  text-align: center;
  margin: 1.5rem auto;
}
.category-button {
  display: inline-block;
  padding: 0.3em 1.1em;
  margin: 0.4em 0.3em;
  background: none;
  color: #444;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.category-button::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #444;
  transition: all 0.3s ease;
}
.category-button:hover::after,
.category-button.active::after {
  width: 60%;
  left: 20%;
  height: 1px;
}
.category-button.all-button {
  font-weight: bold;
  font-size: 1rem;
  color: #111;
  letter-spacing: 1px;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.entry {
  background: #fff;
  border: 1px solid #eee;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  border-radius: 3px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.03);
}
.entry a {
  text-decoration: none;
  color: #333;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  display: block;
}
.entry a span {
  font-size: 0.9rem;
  color: #666;
}
.load-more-wrapper {
  text-align: center;
  margin: 2rem 0;
}
#loadMoreBtn {
  background: transparent;
  border: none;
  font-family: "LXGW WenKai Screen", "Noto Serif SC", serif;
  font-size: 1.6rem;
  cursor: pointer;
  color: #999;
  padding: 0.5rem 0;
  text-align: center;
  width: 100%;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}
#loadMoreBtn::after {
  content: '﹀';
  display: inline-block;
  font-size: 1.4rem;
  color: #aaa;
  transition: transform 0.3s ease, color 0.3s ease;
}
#loadMoreBtn:hover::after {
  transform: translateY(3px);
  color: #444;
}

.entry[data-category="山水卷"] {
  background: linear-gradient(to bottom, rgba(215, 230, 220, 0.35), rgba(255,255,255,0));
}
.entry[data-category="玄思卷"] {
  background: linear-gradient(to bottom, rgba(220, 215, 240, 0.35), rgba(255,255,255,0));
}
.entry[data-category="感官卷"] {
  background: linear-gradient(to bottom, rgba(255, 222, 200, 0.35), rgba(255,255,255,0));
}
.entry[data-category="文象卷"] {
  background: linear-gradient(to bottom, rgba(240, 235, 200, 0.35), rgba(255,255,255,0));
}

.fade-in-entry {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeEntry 0.6s forwards;
}
@keyframes fadeEntry {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


footer {
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
  padding: 2rem 1rem;
  background: #fafafa;
  font-size: 10px;
  color: #888;
  text-align: center;
  font-family: "LXGW WenKai Screen", "Noto Serif SC", "Microsoft YaHei", "PingFang SC", serif;
  letter-spacing: 1px;
  line-height: 1.8em;
  background: linear-gradient(to top, #f9f9f6 90%, rgba(0,0,0,0) 100%);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  line-height: 1.8em;
}

#footer a {
  color: #444;
  text-decoration: none;
  border-bottom: 1px dotted #999;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#footer a:hover {
  color: #0077aa;
  border-bottom-color: #0077aa;
}
#floating-panel {
  position: fixed;
  top: 12vh;   /* 原为 80px，现在更智能 */
  right: 40px;
  background-color: #f5f5f2;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.08);
  font-family: 'LXGW WenKai Screen', 'Noto Serif SC', serif;
  padding: 16px;
  width: 220px;
  z-index: 999;
}

#floating-panel ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

#floating-panel li {
  margin: 6px 0;
}

#floating-panel a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  padding: 4px 2px;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

#floating-panel a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0%;
  background-color: #999;
  transition: width 0.4s ease;
}

#floating-panel a:hover {
  color: #000;
}

#floating-panel a:hover::after {
  width: 100%;
}
.comment-entry {
  background-color: #f0f0ec;
  border-top: 1px dashed #ccc;
  margin-top: 12px;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  color: #444;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.comment-entry:hover {
  background-color: #e6e6dd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 晕开感墨迹波纹 */
.comment-entry::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 80%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.comment-entry:active::after {
  transform: translate(-50%, -50%) scale(10);
  opacity: 1;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}
.inline-input {
  width: 88%;
  margin: 10px auto 0 auto;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'LXGW WenKai Screen', 'Noto Serif SC', serif;
  background-color: #f9f9f6;
  color: #444;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  line-height: 1.4;
  display: block;
}

.inline-input::placeholder {
  color: #999;
  font-style: italic;
}

.inline-input:focus {
  border-color: #bbb;
  box-shadow: 0 0 0 2px rgba(150, 150, 150, 0.05);
  outline: none;
}

/* 留言展示区样式 */
.inline-comment-list {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed #ccc;
}

.inline-comment-list .comment-line {
  font-family: 'LXGW WenKai Screen', 'Noto Serif SC', serif;
  font-size: 10px;
  line-height: 1.7;
  color: #333;
  position: relative;
  margin-bottom: 12px;
  white-space: pre-wrap;
  padding-right: 22px;
}

.inline-comment-list .comment-line:hover .delete-btn {
  opacity: 1;
}

.inline-comment-list .author {
  color: #999;
  margin-left: 6px;
  font-size: 11px;
}

.inline-comment-list .delete-btn {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 11px;
  color: #aaa;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: serif;
}

.inline-comment-list .author {
  color: #999;
  font-size: 11px;
  margin-left: 6px;
}




/* 引用样式 */
.md-body blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: #f9f8f3;
  border-left: 3px solid #d0d0d0;
  color: #555;
  line-height: 1.8;
  text-align: left;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.md-body blockquote::before {
  position: absolute;
  top: 0.5rem;
  left: 0.8rem;
  font-size: 3rem;
  font-family: serif;
  color: rgba(0,0,0,0.08);
  line-height: 1;
}

.md-body blockquote:hover {
  border-left-color: #b0b0b0;
  background: #f7f6f1;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.md-body blockquote p {
  margin: 0.8rem 0;
  position: relative;
  z-index: 1;
}

/* 引用来源标注 */
.md-body blockquote footer {
  margin-top: 1rem;
  font-size: 0.85em;
  color: #888;
  font-style: normal;
  text-align: right;
  padding: 0;
  background: transparent;
  border-top: none;
}

.md-body blockquote footer::before {
  content: "— ";
}

/* 控制有序列表缩进 */
.md-body ol {
  padding-left: 2em; /* 调整这个值来控制缩进距离 */
  margin-left: 0;
}

/* 如果需要特别针对type="1"的有序列表 */
.md-body ol[type="1"] {
  padding-left: 1em;
}
.md-body ol[type="2"] {
  padding-left: 3em;
}



/* 面包屑导航 - 增强交互版 */
.breadcrumb {
    font-size: 0.92em;
    color: #999;
    margin: 1.5em 0 2.5em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.breadcrumb a,
.breadcrumb .current {
    padding: 0.01em 0.5em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* 链接样式 */
.breadcrumb a {
    color: #888;
    text-decoration: none;
    border-radius: 4px;
}

/* 当前页样式 */
.breadcrumb .current {
    color: #2a2a2a;
    font-weight: 500;
    background: rgba(0,0,0,0.03);
    border-radius: 4px;
}

/* 分隔符动画 */
.breadcrumb .divider {
    color: #2a2a2a;
    padding: 0 0.3em;
    font-size: 0.9em;
    position: relative;
    top: -0.05em;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

/* 悬停效果 - 类似首页分类按钮 */
.breadcrumb a:hover {
    color: #1a1a1a;
    background: rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

/* 下划线动画（类似首页分类） */
.breadcrumb a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.breadcrumb a:hover::after {
    width: 70%;
}

/* 首图标微调 */
.breadcrumb a:first-child::before {
    content: "📜 ";
    opacity: 0.7;
    margin-right: 0.2em;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .breadcrumb {
        font-size: 0.82em;
        margin: 1em 0 1.5em;
    }
    .breadcrumb a,
    .breadcrumb .current {
        padding: 0.2em 0.2em;
    }
}
