:root {
  --admonition-border-left-width: 0.2rem;
  --base-border-radius: 0.5rem;
}

strong {
  color: #ADD8E6;
}

/* 行内代码样式 */
:not(pre) > code {
  display: inline;                       /* 行内显示 */
  background-color: #2d2d2d;             /* 深灰色背景，适合黑夜模式 */
  color: #f8f8f2;                        /* 浅灰白色字体，增强对比 */
  font-family: "Fira Code", Consolas, monospace; /* 时尚等宽字体 */
  font-size: 0.95em;                     /* 字体稍微缩小，便于阅读 */
  padding: 0.2em 0.5em;                  /* 内边距，给代码块留出足够空间 */
  border-radius: 5px;                    /* 圆角，使代码块外观更现代 */
  border: 1px solid #444;                /* 深灰色边框，与背景自然融合 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 微妙的阴影提升层次感 */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 动画效果 */
}

/* 鼠标悬停时的样式 */
:not(pre) > code:hover {
  transform: scale(1.05);                /* 悬停时轻微放大 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); /* 增强阴影效果 */
  background-color: #3e3e3e;             /* 稍微变亮的背景 */
  color: #f1fa8c;                        /* 悬停时字体变亮，增加高亮感 */
  border-color: #666;                    /* 边框变亮，突出显示 */
}

/* Change font family of filename present on top of code block. */
/* .highlight span.filename {
  border-bottom: none;
  border-radius: var(--base-border-radius);
  display: inline;
  font-family: var(--md-code-font-family);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 5px;
  text-align: center;
}
.highlight span.filename + pre > code {
  border-radius: var(--base-border-radius);
  border-top-left-radius: 0;
}
.md-typeset pre > code {
  border-radius: var(--base-border-radius);
} */

/* Customize admonition layout */
/* .md-typeset .admonition {
  border-width: 0px;
  border-left-width: var(--admonition-border-left-width);
}

[dir="ltr"] .md-typeset blockquote {
  border-radius: 0.2rem;
  border-left-width: var(--admonition-border-left-width);
} */

/* Grid Cards */
.md-typeset .grid.cards > ul > li {
  border-radius: var(--base-border-radius);
}
.md-typeset .grid.cards > ul > li:hover {
  box-shadow: 0 0 0.2rem #ffffff40;
}

/* Markdown Button */
.md-typeset .md-button {
  border-radius: var(--base-border-radius);
}

/* Footer: Social Links */
.md-social__link svg {
  max-height: 1rem;
}


/* Forms */
.md-search__form {
  border-radius: var(--base-border-radius);
}

[data-md-toggle="search"]:checked ~ .md-header .md-search__form {
  border-top-right-radius: var(--base-border-radius);
  border-top-left-radius: var(--base-border-radius);
}

[dir="ltr"] .md-search__output {
  border-bottom-right-radius: var(--base-border-radius);
  border-bottom-left-radius: var(--base-border-radius);
}

/* 隐藏文章内容中的所有内容，除了一级标题 */
.md-post--excerpt .md-post__content > * {
  display: none; /* 隐藏所有直接子元素 */
}

/* 隐藏无序列表和有序列表 */
.md-post--excerpt .md-post__content > ul,
.md-post--excerpt .md-post__content > ol {
  display: none; /* 隐藏列表元素 */
}

/* 保留并显示2级标题 */
.md-post--excerpt .md-post__content > h2 {
  display: flex; /* 确保一级标题显示 */
}

/* 设置2级标题的样式 */
.md-post--excerpt .md-post__content > h2 {
  font-size: 2.0em; /* 设置字体大小 */
  font-weight: bold; /* 加粗字体 */
  text-align: center; /* 居中对齐 */
  margin-top: 1em; /* 添加一些上间距 */
  margin-bottom: 1em; /* 添加一些下间距 */
}

.md-post--excerpt {
  background-color: var(--md-accent-fg-color--transparent);
  box-shadow: 0 0 0 1rem var(--md-accent-fg-color--transparent);
  border-radius: var(--base-border-radius);
}

/* Blog - index.md */
/* div.md-content header {
  display: none;
}



.md-post--excerpt .md-post__header {
  justify-content: center;
}

.md-post--excerpt .md-post__content > h2,
.md-post__action {
  text-align: center;
} */

/* Table */
.md-typeset table:not([class]) {
  border-radius: var(--base-border-radius);
}





.carousel {
  width: 60%;
  height: 100%;

  border-radius: 0.4rem;
  overflow: hidden;
  position: relative;

  /* 居中 */
  margin-left: auto;
  margin-right: auto;

  border: 0.075rem solid #7b7b7b7a;
  box-shadow: var(--md-shadow-z1);
}

.carousel-container {
  width: 100%;
  height: 100%;

  position: relative;
  left: 0;

  display: flex;

  /* 过渡动画 1s */
  transition: all 1s;
}

.carousel-hover {
  height: 100%;
  width: 10%;
  position: absolute;
  top: 0;

  /* 子元素垂直居中 */
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
}
.carousel-hover.left {
  left: 0;
}
.carousel-hover.right {
  right: 0;
}

.carousel-hover button {
  background-color: var(--md-accent-fg-color);
  border-radius: 50%;

  cursor: pointer;

  opacity: 0;
  transition: opacity 0.3s;
}
.carousel-hover button::after {
  display: block;
  height: 1.5rem;
  width: 1.5rem;

  background-color: white;
  content: "";
  mask-position: center;
  -webkit-mask-position: center;
}
.carousel-hover.left button::after {
  mask-image: var(--md-tabbed-icon--prev);
  -webkit-mask-image: var(--md-tabbed-icon--prev);
}
.carousel-hover.right button::after {
  mask-image: var(--md-tabbed-icon--next);
  -webkit-mask-image: var(--md-tabbed-icon--next);
}

/* hover 外层 */
.carousel-hover:hover button {
  opacity: 0.5;
  transition: opacity 0.3s;
}
/* hover 内层 */
.carousel-hover button:hover {
  opacity: 0.8;
  transition: opacity 0.3s;
}

.carousel-container a {
  width: 100%;
  height: 100%;

  flex-shrink: 0;
}

.carousel-container img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}

.carousel-bottom {
  position: absolute;
  /* 宽度等同于内容宽度 */
  width: 100%;
  padding: 20px;

  bottom: 0;

  display: flex;
  justify-content: center;
  /* 指示器间距 */
  gap: 10px;

  opacity: 0;
  transition: opacity 0.3s;
}
.carousel-bottom:hover {
  opacity: 0.8;
  transition: opacity 0.3s;
}

.carousel-bottom .indicator {
  height: 5px;
  width: 20px;

  background-color: var(--md-accent-fg-color);

  opacity: 0.5;
  cursor: pointer;
}

.carousel:hover .bottom .indicator {
  opacity: 1;
}
.carousel:hover .shift .btn {
  opacity: 1;
}

@media screen and (max-width: 600px) {
  .carousel {
      width: 100%;
  }

  .carousel-hover button {
      opacity: 1;
  }
}
