/* docs/assets/css/custom.css */

/* ===== Footer 样式 ===== */
/* 确保页脚容器干净 */
.md-footer {
    background-color: var(--md-footer-bg-color);
}

/* 自定义内容区域样式 */
.md-footer-custom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--md-footer-fg-color--light);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.md-footer-custom__line1 {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.md-footer-custom__line2 {
    opacity: 0.6;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.md-footer-custom__made-with {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.md-footer-custom__copyright {
    opacity: 0.8;
}

/* 社交链接样式优化 */
.md-footer-social {
    margin-left: auto;
    padding: 0 0.4rem;
    display: flex;
    align-items: center;
}

.md-footer-social__link {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    transition: color 125ms;
    color: var(--md-footer-fg-color--light);
}

.md-footer-social__link:hover {
    color: var(--md-accent-fg-color);
}

.md-footer-social__link svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}
.md-footer-meta__inner {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
	}
.md-footer-custom__icp {
    color: var(--md-footer-fg-color--light);
    text-decoration: none;
    transition: color 125ms;
}
.md-footer-custom_icp:hover {
    color: var(--md-accent-fg-color);
    text-decoration: underline;
}
.md-footer-custom__separator {
    margion:0 0.25rem;
    opacity: 0.5;
}
.md-footer-custom__text {
    opacity: 0.6;
}
/* 响应式设计 */
@media screen and (max-width: 76.1875em) {
    .md-footer-meta__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    
    .md-footer-custom {
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .md-footer-social {
        margin-left: 0;
    }
}

/* 移除任何可能的默认"Made with"文字 */
.md-footer-copyright {
    display: none !important;
}

/* 确保没有其他意外元素 */
.md-footer-meta__inner > :not(.md-footer-custom):not(.md-footer-social) {
    display: none;
}

/* ===== 其他自定义样式（可以继续添加） ===== */
/* 例如：自定义代码块样式 */
/* .md-typeset code {
    border-radius: 8px;
} */

/* 自定义导航栏样式 */
/* .md-header {
    background-color: #your-color;
} */
.md-header__title {
    margin-left: auto !important;
}
/* 社交媒体上下弹跳 + 旋转特效 */
.md-footer-social__link:hover {
  color: var(--md-accent-fg-color);
  animation: bounceRotate 0.4s ease;
}
@keyframes bounceRotate {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(15deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ===== 微信公众号二维码样式 ===== */
.md-footer-social__wechat-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.md-footer-social__link--wechat {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  transition: color 125ms;
  color: var(--md-footer-fg-color--light);
  cursor: pointer;
}

.md-footer-social__link--wechat:hover {
  color: var(--md-accent-fg-color);
}

.md-footer-social__link--wechat svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

/* 二维码弹出框 */
.md-footer-social__qrcode {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  margin-bottom: 12px;
  padding: 12px;
  background-color: var(--md-default-bg-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  text-align: center;
  min-width: 150px;
  pointer-events: none;
}

/* 小三角箭头 */
.md-footer-social__qrcode::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--md-default-bg-color);
}

/* 二维码图片 */
.md-footer-social__qrcode img {
  display: block;
  width: 150px;
  height: 150px;
  margin-bottom: 8px;
  border-radius: 4px;
}

/* 二维码文字提示 */
.md-footer-social__qrcode span {
  display: block;
  font-size: 12px;
  color: var(--md-default-fg-color);
  line-height: 1.4;
  white-space: nowrap;
}

/* hover显示二维码 */
.md-footer-social__wechat-wrapper:hover .md-footer-social__qrcode {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 响应式设计 - 移动端调整 */
@media screen and (max-width: 76.1875em) {
  .md-footer-social__qrcode {
    bottom: 1rem;
    margin-top: 12px;
    margin-bottom: 0;
  }
  
  .md-footer-social__qrcode::before {
    bottom: auto;
    top: -6px;
    border-top: none;
    border-bottom: 6px solid var(--md-default-bg-color);
  }
  
  .md-footer-social__wechat-wrapper:hover .md-footer-social__qrcode {
    transform: translateX(-50%) translateY(0);
  }

  /* 小三角箭头 */
 .md-footer-social__qrcode::before {
   content: '';
   position: fixed;
   bottom: -6px;
   left: 50%;
   transform: translateX(-50%);
   width: 0;
   height: 0;
   border-left: 6px solid transparent;
   border-right: 6px solid transparent;
   border-top: 6px solid var(--md-default-bg-color);
 }
}

/* 暗色模式适配 */
[data-md-color-scheme="slate"] .md-footer-social__qrcode {
  background-color: var(--md-default-bg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-md-color-scheme="slate"] .md-footer-social__qrcode::before {
  border-top-color: var(--md-default-bg-color);
}

@media screen and (max-width: 76.1875em) {
  [data-md-color-scheme="slate"] .md-footer-social__qrcode::before {
    border-bottom-color: var(--md-default-bg-color);
  }
}

/* 文章内CSS覆盖优化start */

/* 文章内段落子目录 文字效果 */
.md-container .md-main .md-typeset h3 {
  font-size: 1.25em;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.5;
  margin: 1.6em 0 .8em;
  position: relative;
  padding-left: 0.75rem;
  transition: all 0.2s ease;
  text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* 文字内段落子目录 左侧装饰条 */
.md-container .md-main .md-typeset h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4.5px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

/* 文章内段落子目录 悬浮效果 */
.md-container .md-main .md-typeset h3:hover {
  transform: translateX(4px);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.md-container .md-main .md-typeset h5 {
  font-size: .8rem;
}
/* 文章内CSS覆盖优化end */
