.md-code-fold {
  background-color: #f1f1ee; /* 暖灰底色，贴合宣纸质感 */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); /* 柔和阴影 */
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}
.md-code-fold summary {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 140px 0 84px;
  background-color: #f1f1ee;
  font-family: consolas, Menlo, "Fira Code", monospace; /* 使用等宽/无衬线字体组合 */
  font-size: 14px;
  color: #4b4844;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.3s;
}
.md-code-fold summary:hover {
  background-color: #e3e3e0; /* 悬浮时加深瓦灰色 */
}
.md-code-fold summary::-webkit-details-marker {
  display: none;
}
.md-code-fold summary::before {
  content: ' ';
  position: absolute;
  left: 16px;
  top: 16px;
  background: #fc625d;
  box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
  border-radius: 50%;
  height: 12px;
  width: 12px;
}
.md-code-fold summary::after {
  content: 'Click to expand';
  display: inline-block;
  margin-left: 12px;
  font-size: 12px;
  font-weight: normal;
  color: #8e8a84; /* 远山灰 */
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}
.md-code-fold summary:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.md-code-fold[open] summary::after {
  content: 'Click to collapse';
}
.md-code-fold[open] summary:not(:hover)::after {
  opacity: 0;
  transform: translateX(0);
}
.md-code-fold figure.highlight {
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-top: 0px !important;
  position: static !important;
}
.md-code-fold figure.highlight::before {
  display: none !important;
}
.md-code-fold figure.highlight .copy-button {
  position: absolute !important;
  top: 6px !important;
  right: 12px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  background-color: transparent !important;
  color: #6b6863 !important;
  z-index: 10;
  display: flex !important;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease !important;
}
.md-code-fold figure.highlight .copy-button:hover {
  background-color: rgba(0,0,0,0.08) !important;
  color: #1e1b18 !important;
}
.md-code-fold figure.highlight .copy-button::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B6863'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}
.md-note {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 4px solid #1a4b75 /* 信息提示：靛青 */;
  background-color: rgba(26,75,117,0.05);
  border-radius: 0 4px 4px 0;
}
.md-note .md-note-title {
  margin: 0 0 10px 0;
  font-weight: 700;
  font-family: sourceHanSerif, "Noto Serif SC", STZhongsong, serif /* 标题使用宋体 */;
  font-size: 1.1em;
  color: #1a4b75;
}
.md-note p:last-child {
  margin: 0;
}
.md-note-warning {
  border-left-color: #c8a061 /* 警告提示：秋石金 */;
  background-color: rgba(200,160,97,0.08);
}
.md-note-warning .md-note-title {
  color: #b0843d;
}
.md-note-danger {
  border-left-color: #e03636 /* 危险提示：朱砂红 */;
  background-color: rgba(224,54,54,0.05);
}
.md-note-danger .md-note-title {
  color: #e03636;
}
.md-note-success {
  border-left-color: #4b6e50 /* 成功提示：竹青绿 */;
  background-color: rgba(75,110,80,0.05);
}
.md-note-success .md-note-title {
  color: #4b6e50;
}
.md-split {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}
@media (max-width: 768px) {
  .md-split {
    flex-direction: column;
  }
}
.md-split .md-split-left,
.md-split .md-split-right {
  min-width: 0;
}
.md-split .md-split-left img,
.md-split .md-split-right img {
  width: 100%;
}
.md-grid {
  display: grid;
  gap: 0px;
  margin: 24px 0;
}
.md-grid > p {
  display: contents;
}
.md-grid br {
  display: none !important;
}
.md-grid img {
  margin: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: filter 0.3s;
}
.md-grid img:hover {
  filter: brightness(1.05);
}
.md-compare {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 32px 0;
  border-radius: 8px;
  box-shadow: 0 15px 35px -5px rgba(0,0,0,0.2);
  cursor: ew-resize;
  background-color: #1e1b18;
  transform: translateZ(0);
}
.md-compare img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  pointer-events: none;
  user-select: none;
}
.md-compare .md-compare-before {
  z-index: 2;
  clip-path: polygon(0 0, var(--pos) 0, var(--pos) 100%, 0 100%);
}
.md-compare .md-compare-slider {
  position: absolute;
  top: 0;
  left: var(--pos);
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.9);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.md-compare .md-compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.md-compare .md-compare-handle::before {
  content: '';
  width: 26px;
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8L3 12L7 16' /%3E%3Cpath d='M17 8L21 12L17 16' /%3E%3Cpath d='M3 12H21' /%3E%3C/svg%3E");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
}
.md-compare:hover .md-compare-handle {
  background: rgba(255,255,255,0.3);
}
.md-compare .md-compare-label {
  position: absolute;
  bottom: 20px;
  padding: 6px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.md-compare .md-compare-label.before {
  left: 20px;
}
.md-compare .md-compare-label.after {
  right: 20px;
}
.md-glk {
  max-width: 100%;
  border-radius: 6px;
  margin: 16px 0;
  padding: 12px 16px;
  line-height: 1.7;
  color: #393633;
  border: 1px solid transparent;
  transition: background-color 0.3s;
/* 矿物颜料色板 */
/* 宣纸白 */
/* 银鼠灰 */
/* 赭石 */
/* 杏黄 */
/* 藤黄 */
/* 石绿 */
/* 石青 */
/* 藕荷 */
/* 胭脂 */
/* 朱砂浅 */
}
.md-glk > p:first-child {
  margin-top: 0;
}
.md-glk > p:last-child {
  margin-bottom: 0;
}
.md-glk.md-glk-default {
  background-color: #f2eada;
  color: #5d5a56;
}
.md-glk.md-glk-gray {
  background-color: #e5e5e5;
  color: #4b4844;
}
.md-glk.md-glk-brown {
  background-color: #cbb994;
  color: #603b2c;
}
.md-glk.md-glk-orange {
  background-color: #f2be45;
  color: #854d0e;
}
.md-glk.md-glk-yellow {
  background-color: #f1e59c;
  color: #8f6200;
}
.md-glk.md-glk-green {
  background-color: #c8d5b9;
  color: #1f5022;
}
.md-glk.md-glk-blue {
  background-color: #b7d1e4;
  color: #0b4a6f;
}
.md-glk.md-glk-purple {
  background-color: #d1d1e3;
  color: #402c7a;
}
.md-glk.md-glk-pink {
  background-color: #e9d2d2;
  color: #831843;
}
.md-glk.md-glk-red {
  background-color: #f2b0b0;
  color: #991b1b;
}
.md-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin: 20px 0;
  background-color: #fafaf9;
  border: 1px solid #e3e3e0;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.md-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: #1a4b75 /* 悬浮时边框呈现靛青色 */;
}
.md-card .md-card-media {
  width: 48px;
  height: 48px;
  margin-right: 16px;
  flex-shrink: 0;
}
.md-card .md-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 !important;
}
.md-card .md-card-icon {
  font-size: 32px;
  margin-right: 16px;
  min-width: 48px;
  text-align: center;
}
.md-card .md-card-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.md-card .md-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e1b18;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-card .md-card-desc {
  font-size: 12px;
  color: #6b6863;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.md-ref {
  margin: 48px 0 24px 0;
  padding: 20px 24px;
  background-color: #f1f1ee /* 使用暖灰底色 */;
  border-radius: 8px;
  border: 1px solid #e3e3e0;
  font-size: 14px;
  color: #4b4844;
}
.md-ref .md-ref-title {
  font-size: 18px;
  font-family: sourceHanSerif, "Noto Serif SC", STZhongsong, serif /* 标题宋体化 */;
  font-weight: 600;
  color: #1e1b18;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #d6d6d2;
  padding-bottom: 10px;
}
.md-ref .md-ref-title .md-ref-icon {
  margin-right: 8px;
  font-size: 16px;
  opacity: 0.8;
}
.md-ref .md-ref-content ol,
.md-ref .md-ref-content ul {
  margin: 0;
  padding-left: 20px;
}
.md-ref .md-ref-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.md-ref .md-ref-content li::marker {
  color: #8e8a84 /* 列表序号 */;
}
.md-ref .md-ref-content p {
  margin: 0 0 8px 0;
  font-size: 14px;
}
.md-ref .md-ref-content p:last-child {
  margin-bottom: 0;
}
.md-ref .md-ref-content a {
  color: #1a4b75;
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px dashed rgba(26,75,117,0.5);
}
.md-ref .md-ref-content a:hover {
  color: #e03636;
  border-bottom-style: solid;
}
.md-cite {
  margin: 0 2px;
  font-size: 0.8em;
}
.md-cite a {
  color: #1a4b75 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.2s;
}
.md-cite a:hover {
  color: #e03636 !important;
  text-decoration: underline !important;
}
.md-ref-content .md-ref-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
  line-height: 1.6;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 4px;
  transition: background-color 0.5s ease;
  font-size: 14px;
/* 跳转时的秋石金闪烁动画 */
}
.md-ref-content .md-ref-item .md-ref-id {
  flex-shrink: 0;
  width: 28px;
  color: #8e8a84;
  font-weight: 500;
  font-family: consolas, Menlo, "Fira Code", monospace;
}
.md-ref-content .md-ref-item .md-ref-text {
  flex-grow: 1;
}
.md-ref-content .md-ref-item .md-ref-text p {
  margin: 0 !important;
}
.md-ref-content .md-ref-item .md-ref-text a {
  color: #1a4b75;
  text-decoration: none;
  border-bottom: 1px dashed rgba(26,75,117,0.5);
  transition: all 0.2s;
}
.md-ref-content .md-ref-item .md-ref-text a:hover {
  color: #e03636;
  border-bottom-style: solid;
}
.md-ref-content .md-ref-item:target {
  animation: refFlash 1.5s ease-out forwards;
}
@-moz-keyframes refFlash {
  0% {
    background-color: rgba(200,160,97,0.3);
  }
  100% {
    background-color: transparent;
  }
}
@-webkit-keyframes refFlash {
  0% {
    background-color: rgba(200,160,97,0.3);
  }
  100% {
    background-color: transparent;
  }
}
@-o-keyframes refFlash {
  0% {
    background-color: rgba(200,160,97,0.3);
  }
  100% {
    background-color: transparent;
  }
}
@keyframes refFlash {
  0% {
    background-color: rgba(200,160,97,0.3);
  }
  100% {
    background-color: transparent;
  }
}
/* =========================================
   Now 页面排版 - 新中式
   ========================================= */
.now-container {
  padding-top: 40px;
  padding-bottom: 80px;
}
.now-paper {
  background-color: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 60px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
}
.now-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a4b75, #e03636);
  border-radius: 8px 8px 0 0;
}
/* =========================================
   头部排版
   ========================================= */
.now-header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px dashed #e3e3e0;
  padding-bottom: 25px;
}
.now-title {
  font-family: sourceHanSerif, "Noto Serif SC", STZhongsong, serif;
  font-size: 32px;
  color: #1e1b18;
  letter-spacing: 4px;
  font-weight: bold;
  margin-bottom: 15px;
}
.now-description {
  color: #1a4b75;
  font-family: sourceHanSerif, "Noto Serif SC", STZhongsong, serif;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.now-description svg {
  margin-right: 6px;
  opacity: 0.8;
}
.now-updated {
  font-size: 13px;
  color: #8e8a84;
  letter-spacing: 1px;
}
/* =========================================
   内容区排版 (修复多级列表并排 Bug)
   ========================================= */
.now-content ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0;
}
.now-content ul ul {
  width: 100%; /* 强制换行 */
  padding-left: 28px; /* 增加二级及以上缩进 */
  margin: 8px 0 4px 0; /* 微调上下间距，更显层次 */
}
.now-content li {
  margin-bottom: 6px;
  line-height: 1.6;
  color: #393633;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap; /* 必须保留，允许 100% 宽度的子列表换行 */
}
.now-content input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #b0aca6;
  border-radius: 3px;
  margin: 5px 12px 0 0;
  cursor: default;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.now-content input[type="checkbox"]:checked {
  background-color: #1a4b75;
  border-color: #1a4b75;
/* 纯 CSS 绘制打勾符号 */
}
.now-content input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.now-content h2 {
  font-family: sourceHanSerif, "Noto Serif SC", STZhongsong, serif;
  margin-top: 35px;
  padding-left: 12px;
  border-left: 4px solid #e03636;
  font-size: 20px;
  color: #1e1b18;
  margin-bottom: 15px;
}
.now-content blockquote {
  background-color: rgba(200,160,97,0.08);
  border-left: 4px solid #1a4b75;
  padding: 15px 20px;
  border-radius: 0 4px 4px 0;
  margin: 20px 0;
  color: #4b4844;
  font-family: sourceHanSerif, "Noto Serif SC", STZhongsong, serif;
}
/* =========================================
   移动端适配
   ========================================= */
@media screen and (max-width: 768px) {
  .now-container {
    padding-top: 20px;
  }
  .now-paper {
    padding: 30px 20px;
    margin: 0 15px;
  }
  .now-title {
    font-size: 26px;
  }
  .now-content ul ul {
    padding-left: 20px;
  }
}
