/* 居中页脚版权信息 */
.md-footer-copyright {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

/* 如果有多个元素，可以一并居中 */
.md-footer-meta {
    text-align: center !important;
}

/* 确保所有页脚文本居中 */
.md-footer-meta__inner {
    display: flex !important;
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
}


/* 调整 logo 大小 */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 40px;  /* 默认是 24px，可以调整为你需要的大小 */
  width: auto;
}

/* 如果侧边栏也有 logo */
.md-nav__title .md-logo img,
.md-nav__title .md-logo svg {
  height: 40px;
  width: auto;
}

/* 1. 修改导航栏背景与底边线 */
.md-header {
  /* 使用浅灰色或宣纸色，设置微弱透明度 */
  background-color: rgba(244, 241, 234, 0.9) !important; 
  /* 模拟毛笔横向划过的墨线 */
  border-bottom: none !important;  /* ← 去掉这条黑线 */
  color: #2c2c2c !important;
}


/* 2. 修改导航栏文字颜色 */
.md-header__title, .md-header__topic {
  color: #000 !important; /* 浓墨色 */
  font-family: "Kaiti", "STKaiti", serif; /* 换成楷体 */
}

/* 3. 修改搜索框背景（使其不显突兀） */
.md-search__inner {
  background-color: rgba(0, 0, 0, 0.05) !important;
  border-radius: 4px;
}

/* 4. 修改汉堡菜单和搜索图标的颜色 */
.md-header__button {
  color: #333 !important;
}


/* 浮动导航栏容器 */
.md-tabs {
  background-color: rgba(244, 241, 234, 0.95) !important; /* 宣纸色，微透明 */
  border-bottom: 1px solid #dcdcdc !important; /* 一条淡淡的清墨线 */
  box-shadow: none !important; /* 去掉现代感的阴影 */
}

/* 导航项文字 - 浓墨处理 */
.md-tabs__link {
  color: #1a1a1a !important;   /* 从 #555 改为更深的 #1a1a1a (极深墨色) */
  font-family: "Kaiti", "STKaiti", "华文楷体", serif;
  opacity: 1 !important;        /* 彻底去掉透明度，让颜色实打实地显示 */
  font-weight: 500;             /* 稍微加粗，模拟毛笔按压感 */
  transition: all 0.3s ease;
}

/* 鼠标悬停及激活时的效果 - 乌漆墨黑 */
.md-tabs__link:hover,
.md-tabs__item--active .md-tabs__link {
  color: #000000 !important;   /* 纯黑 */
  font-weight: 900;             /* 悬停时字重增加，模拟墨水洇散开的效果 */
  text-shadow: 0 0 1px rgba(0,0,0,0.3); /* 极细微的墨晕感 */
}


/* 统一背景色和模糊效果 */
.md-header, 
.md-tabs {
  background-color: #f4f1ea !important; /* 纯正宣纸色，不透明更像纸 */
}

/* 只在浮动导航栏（最下面那一层）增加一条微弱的墨色渐变边框 */
.md-tabs {
  border-bottom: 2px solid #333 !important;
  /* 模拟水墨晕染的边缘感 */
  border-image: linear-gradient(to right, transparent, #333 50%, transparent) 1;
}

/* 修改回到顶部按钮的背景色 */
.md-top {
  background-color: #333 !important; /* 浓墨色 */
  color: #f4f1ea !important;       /* 宣纸色图标 */
}

/* 鼠标悬停时：可以稍微变淡或变成红色（模拟印章） */
.md-top:hover {
  background-color: #b22222 !important; /* 硃砂红 */
  opacity: 1;
}

/* 消除原有的蓝色阴影，换成淡墨晕染感 */
.md-top {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

:root, [data-md-color-scheme="default"] {
  --md-primary-fg-color: #333333 !important;        /* 导航栏主色 */
  --md-primary-fg-color--dark: #1a1a1a !important;  /* 移动端深色主色 */
  --md-accent-fg-color: #b22222 !important;         /* 链接与强调色 */
  --md-default-bg-color: #f4f1ea !important;        /* 全局背景 */
}

/* 针对深色模式（Slate 方案）也进行强制修改，或者你可以选择关闭深色模式 */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #2c2c2c !important;
  --md-default-bg-color: #1a1a1a !important; /* 深色宣纸感 */
}


