:root {
  --primary-color: #059862;
  --primary-dark-color: #047a4e;
  --primary-light-color: #e8f5ed;

  --title-color: #393939;
  --text-color: #262626;
  --article-text-color: #3e3e3e;
  --text-dark-color: #000000;
  --text-light-color: #66666e;
  --text-grey-color: #909191;

  --body-bg-color: #f2f2f2;
  --card-bg-color: #FFFFFF;
  /* --card-bg-color: #fafcfd; */

  --line-color: #cecfcf;
  --line-light-color: #e9e9e9;

  --tutor-nav-hover-bg: #cdeae0;
  --tutor-item-bg: #f2f2f2;
  --tutor-item-hover-bg: #e8e9e9;

  --code-red-color: #ff5f58;
  --code-yellow-color: #ffbd2e;
  --code-green-color: #28c941;
  --pre-line-color: #cecfcf;
  --inline-code-bg: #b4e0d0;
  --toc-border-color: #e5e7eb;

  --table-row-bg: #f6f6f6;
}

html.dark-theme {
  --primary-light-color: #303b35;

  --title-color: #f5f5f5;
  --text-color: #f1f1f1;
  --text-dark-color: #f5f5f5;
  --text-light-color: #909191;
  --text-grey-color: #909191;
  --article-text-color: #c8c8c8;

  --body-bg-color: #343b37;
  --card-bg-color: #1D2521;

  --line-color: #484f4b;
  --line-light-color: #323735;

  --tutor-nav-hover-bg: #444947;
  --tutor-item-bg: #343b37;
  --tutor-item-hover-bg: #343b37;

  --pre-line-color: #484f4b;
  --inline-code-bg: #303b35;
  --toc-border-color: #484f4b;

  --table-row-bg: #343b37;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  width: 100%;
  height: auto;
}

.clearfix {
  display: block;
  content: '';
  clear: both;
}

/* 滚动条样式 start*/

::-webkit-scrollbar {
  width: 5px;
  height: 6px;
  background-color: #f3f3f3;
}

::-webkit-scrollbar-track {
  background-color: #d6d7d6;
}

::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.55);
  background-color: rgba(0, 0, 0, 0.33);
}

/* 滚动条样式 end */


.scroll-top-btn {
  height: 4rem;
  width: 4rem;
  position: fixed;
  right: .8rem;
  bottom: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  outline: none;
  appearance: none;
  border: none;
  cursor: pointer;
  pointer-events: none;
  z-index: 99;

  opacity: 0;
  transition: opacity 0.3s, transform 0.3s, background-color 0.3s ease;
  transform: translateY(20px);
}

.scroll-top-btn:hover {
  background-color: rgba(0, 0, 0, 0.66);
}

.scroll-top-btn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* copy button end */

html {
  height: 100%;
  width: 100%;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  width: 100%;
  /* -webkit-font-smoothing: antialiased; */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--body-bg-color);
}

.container {
  max-width: 124rem;
  min-width: 32.8rem;
  margin: 0 auto;
}

.site-main {
  min-height: 100vh;
  padding-top: 8.5rem;
}

.site-main .container {
  transition: background-color .33s ease;
}

/* ========================================================
    common end
============================================================*/

/* ========================================================
    site header start
============================================================*/
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.77);
}

html.dark-theme .site-header {
  background-color: #1D2521;
}

.a-nav {
  height: 5rem;
  padding: 0 .8rem;
}

.a-nav .container .a-nav__menu {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a-nav__left,
.a-nav__right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.a-nav__link {
  font-size: 1.5rem;
  color: var(--text-color);
  font-weight: 400;
  transition: color 0.33s ease;
}

.a-nav__link:hover {
  color: var(--primary-color);
}

.a-nav__logo {
  height: 2.2rem;
  display: flex;
  align-items: center;
  color: var(--primary-color) !important;
  font-weight: 800 !important;
  font-size: 2rem !important;
  gap: .4rem;
  border-right: 1px solid var(--line-color);
  padding-right: 1.6rem;
  padding-left: 1.2rem;
}

.a-nav__right .bi {
  font-size: 2rem;
  color: var(--text-color);
}

.a-nav__right .theme-button {
  height: 2.2rem;
  width: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4a514d;
  border-radius: 100%;
  cursor: pointer;
  font-size: 1.2rem !important;
  color: #fff !important;
  margin-right: .4rem;
}

/* b-nav */
.b-nav {
  height: 3.5rem;
  background-color: var(--primary-color);
  padding: 0 .8rem;
}

.b-nav .container {
  height: inherit;
  display: flex;
  flex-direction: column;
}

.b-nav__menu {
  width: 100%;
  height: 3.5rem;
  display: flex;
  align-items: center;
}

.b-nav__list {
  width: 100%;
  height: inherit;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.b-nav__list::-webkit-scrollbar {
  display: none;
}

.b-nav__link {
  height: 3.5rem;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: normal;
  padding: 0 1.2rem;
  transition: background-color .33s ease;
}

.b-nav__link:hover,
.b-nav__link.active {
  background-color: var(--primary-dark-color);
}

.left-aside--toggle {
  outline: none;
  border: none;
  appearance: none;
  height: inherit;
  display: flex;
  align-items: center;
  padding: 0 .8rem;
  background: none;
  cursor: pointer;
  font-size: 2.4rem;
  color: #fff;
  display: none;
  pointer-events: none;
}

.left-aside--toggle:hover {
  background-color: var(--primary-dark-color);
}

.b-nav__arrow {
  height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.b-nav__arrow .bi {
  font-size: 1.8rem;
}


.c-nav {
  height: 3.5rem;
  padding: 0 .8rem;
}

.c-nav__list {
  width: 100%;
  height: 3.5rem;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.c-nav__link {
  height: 3.5rem;
  display: flex;
  align-items: center;
  color: var(--title-color);
  font-size: 1.4rem;
  font-weight: normal;
  padding: 0 .8rem;
  transition: background-color .33s ease;
}

.c-nav__link.active {
  background-color: var(--primary-light-color);
  color: var(--primary-color);
}

.c-nav__link:hover {
  color: var(--primary-color);
}


/* ========================================================
    site header end
============================================================*/

/* ========================================================
    site footer start
============================================================*/
.site-footer {
  background-color: var(--card-bg-color);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.66);
  color: var(--text-grey-color);
  font-size: 1.3rem;
  padding: 1.6rem 0;
}

.site-footer .container {
  padding: 0 .8rem;
  display: grid;
  grid-template-columns: 8fr 4fr;
}

.site-footer .container section ul {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.site-footer .container section:last-child {
  justify-self: flex-end;
}

.site-footer .container section ul a {
  color: var(--text-grey-color);
}

.site-footer .container section ul a:hover {
  color: var(--primary-color);
}

/* ========================================================
    site footer end
  ============================================================*/


/* ========================================================
    article start
  ============================================================*/
.article__header {
  border-bottom: 1px solid var(--toc-border-color);
  margin-bottom: .8rem;
}

.article__header h1 {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 2.6rem;
  font-weight: bolder;
  color: var(--primary-dark-color);
}

.article__header .article__meta {
  height: 2.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: .8rem;
}

.article__header .article__meta .author a {
  color: var(--text-color);
}

.article__header .article__meta .author a:hover {
  color: var(--primary-color);
}

.article__body {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--article-text-color);
  /* letter-spacing: .04rem; */
  /* -webkit-font-smoothing: antialiased; */
  word-wrap: break-word;
  word-break: normal;
  overflow-wrap: break-word;
}

.article__body h2 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  vertical-align: middle;
  color: var(--text-color);
  font-size: 2.4rem;
  font-weight: 500;
  padding: .4rem 0;
}

.article__body h2:not(:first-child) {
  margin-top: 1.8rem;
  border-top: 1px solid #e2e2e2;
}

html.dark-theme .article__body h2:not(:first-child) {
  border-top-color: #323735;
}

.article__body h2::before {
  display: block;
  content: " ";
  font-weight: 510;
  border-radius: 5px;
  width: 3px;
  margin-top: 0.1rem;
  height: 2.4rem;
  margin-right: 0.6rem;
  background-color: var(--primary-color);
}

.article__body h3 {
  margin: 1.2rem 0;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-color);
}

.article__body h4 {
  margin: 1.2rem 0;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-color);
}

.article__body p {
  font-size: 1.5rem;
  line-height: 1.6;
  text-underline-offset: .3rem;
  font-weight: normal;
  margin: 1.2rem 0;
}

.article__body a {
  color: var(--primary-color);
}

.article__body a:hover {
  text-decoration: underline;
}

.article__body strong {
  color: var(--title-color);
  font-weight: 500;
}

.article__body span strong {
  color: inherit !important;
}

.article__body ul {
  list-style: disc;
  margin: .8rem 0;
  list-style-position: inside;
}

.article__body ul ul,
.article__body ol ul {
  text-indent: 2rem;
  list-style: square;
  list-style-position: inside;
}

.article__body ul ul ul,
.article__body ol ul {
  text-indent: 4rem;
  list-style: square;
  list-style-position: inside;
}

.article__body ol ol {
  text-indent: 2rem;
  list-style: decimal;
  list-style-position: inside;
}

.article__body ol {
  list-style: decimal;
  margin: .8rem 0;
  list-style-position: inside;
}

.article__body li {
  margin-bottom: .8rem;
}

.article__body hr {
  border: none;
  border-top: .1rem solid var(--line-color);
  margin: 1.2rem 0;
}

.article__body table:not(.hljs-ln) {
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 1.4rem;
}

.article__body table:not(.hljs-ln) th,
.article__body table:not(.hljs-ln) tr,
.article__body table:not(.hljs-ln) td {
  border: .1rem solid var(--line-color);
  border-left: none;
  border-right: none;
  padding: .4rem;
}

.article__body table:not(.hljs-ln) th {
  font-weight: 500;
  background-color: #f2f2f2;
}

html.dark-theme .article__body table:not(.hljs-ln) th {
  background-color: #343b37;
}

.article__body table:not(.hljs-ln) tr:hover {
  background-color: #f9f9f9;
}

html.dark-theme .article__body table:not(.hljs-ln) tr:hover {
  background-color: #444947;
}

.article__body blockquote {
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 1.6rem 0;
  padding: .8rem;
  border: 1px solid var(--inline-code-bg);
  border-radius: .4rem;
  background-color: var(--primary-light-color);
}

html.dark-theme .article__body blockquote {
  background-color: #303b35;
}

html.dark-theme .article__body span[style*="background-color"] {
  color: #494949;
}

.article__body pre {
  margin: .4rem 0;
  border-radius: .5rem;
}

/* copy button start */
pre[class*="prettyprint"] {
  -moz-tab-size: 4;
  -moz-hyphens: none;
  tab-size: 4;
  hyphens: none;
  overflow: hidden;
}

.copy-code-button {
  padding-top: .1rem;
  font-size: 2.2rem;
  cursor: pointer;
}

.copy-code-button:hover {
  color: var(--primary-color);
}

.copy-code-button.bi-clipboard-check {
  color: var(--primary-color);
}

/* copy button end */

.code-stars {
  height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .6rem;
  border-bottom: 1px solid var(--line-color);
}

.code-stars .code-lang {
  font-size: 1.4rem;
  color: var(--text-light-color);
}

/* .code-stars span {
  display: block;
  height: 1.2rem;
  width: 1.2rem;
  border-radius: 50%;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.88);
}

.code-stars span:nth-child(1) {
  background-color: var(--code-red-color);
}

.code-stars span:nth-child(2) {
  background-color: var(--code-yellow-color);
}

.code-stars span:nth-child(3) {
  background-color: var(--code-green-color);
} */

/* 行内代码 */
.article__body code {
  padding: .1rem .2rem;
  font-size: 1.4rem;
  border-radius: .2rem;
  background-color: var(--primary-light-color);
  color: var(--primary-color);
}

.article__body code strong {
  color: var(--primary-color);
}

.article__body h2 code,
.article__body h3 code,
.article__body h4 code {
  margin: 0 .2rem;
  font-weight: 600;
}

.article__body h2 code {
  font-size: 2rem;
  padding: 0 .2rem;
}

.article__body h3 code {
  font-size: 1.8rem;
}

.article__body h4 code {
  font-size: 1.5rem;
}

.article__body pre,
.article__body pre code {
  background-color: #f2f2f2;
  color: var(--article-text-color);
}

.article__body pre code {
  font-size: 1.3rem;
  line-height: 1.6;
  border-bottom-left-radius: .5rem;
  border-bottom-right-radius: .5rem;
}

html.dark-theme .article__body pre,
html.dark-theme .article__body pre code {
  background-color: #343b37;
}

.hljs-ln-numbers {
  text-align: right;
  color: var(--text-grey-color);
  user-select: none;
}

.hljs-ln-code {
  padding-left: 1.6rem !important;
}

.article__body div[data-w-e-type="todo"] {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .2rem;
}

.article__body div[data-w-e-type="todo"]:first-of-type {
  margin-top: .4rem;
}

.article__body div[data-w-e-type="todo"]:last-of-type {
  margin-bottom: .8rem;
}

.article__body div[data-w-e-type="todo"] input[type="checkbox"] {
  appearance: none;
  vertical-align: middle;
  outline: none;
  width: 1.6rem;
  height: 1.6rem;
  border: .2rem solid #535858;
  padding: 0;
  margin: 0;
  border-radius: .2rem;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease-in-out;
}

.article__body div[data-w-e-type="todo"] input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.article__body div[data-w-e-type="todo"] input[type="checkbox"]:checked::after {
  position: absolute;
  content: "";
  height: .5rem;
  width: 1rem;
  border: .2rem solid #fff;
  border-top: none;
  border-right: none;
  border-radius: .2rem;
  top: .3rem;
  left: .1rem;
  transform: rotate(-45deg);
}

/* highlightjs hack */
.hljs-keyword {
  color: #059862;
  font-weight: 500;
}

.hljs-tag,
.hljs-name,
.hljs-attr {
  color: #059862;
}

.hljs-selector-tag {
  color: #059862;
}

.hljs-attribute {
  color: #d64200;
}

.hljs-comment {
  color: #9f9f9f;
}

.hljs-variable {
  color: #059862;
}

.hljs-title {
  color: #690;
}

.hljs-title {
  font-weight: 500;
}

.hljs-string {
  color: #be6700;
}

.hljs-number {
  color: #dd4a68;
}

.hljs-built_in,
.hljs-meta {
  color: #1c69d3;
}

.hljs-selector-class,
.hljs-selector-id,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: #6F42C1;
}

html.dark-theme .hljs-selector-class,
html.dark-theme .hljs-selector-id,
html.dark-theme .hljs-selector-attr,
html.dark-theme .hljs-selector-pseudo {
  color: #B392F0;
}

/* highlightjs hack end */

/* ========================================================
    article end
============================================================*/

/* ========================================================
    page home start
============================================================*/
.home-hero {
  background-color: var(--card-bg-color);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  background: url(/assets/images/robot.webp) no-repeat right;
  background-size: auto 90%;
  padding: 0 15rem;
  height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home-hero h1 {
  font-size: 3rem;
  font-weight: 500;
  color: var(--title-color);
}

.home-hero strong {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 3;
  color: var(--text-light-color);
}

.home-container {
  display: grid;
  grid-template-columns: 22rem 1fr;
  gap: 1.6rem;
  padding: .1rem 0.8rem;
}

.tutor-nav {
  height: calc(100vh - 8.5rem);
  position: sticky;
  top: 8.5rem;
  overflow-y: auto;
  padding: .8rem 0;
  overflow-y: scroll;
  background-color: var(--body-bg-color);
}

.tutor-nav__list {
  padding: 0 .4rem;
}

.tutor-nav__item {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  height: 3.3rem;
  color: var(--text-color);
  gap: .8rem;
  border-radius: .5rem;
  padding: 0 .8rem;
  margin-bottom: .4rem;
  cursor: pointer;
  transition: all .33s ease;
}

.tutor-nav__item:hover,
.tutor-nav__item.active {
  background-color: var(--tutor-nav-hover-bg);
  color: var(--primary-color);
}

.tutor-nav__item strong {
  font-weight: 400;
}

.tutor-nav__item .en-slug {
  font-size: 1.2rem;
  color: var(--text-grey-color);
}

.show-all {
  height: 4rem;
  border-bottom: 1px solid var(--line-color);
}

.tutor-nav__item:first-child {
  background: none !important;
  border-radius: 0 !important;
}

.tutor-nav__item.show-all .bi {
  font-size: 1.8rem;
}

.show-all strong {
  font-size: 1.4rem;
  font-weight: 500;
}

.tutor-panel {
  padding: .8rem 0;
}

.tutor-filter {
  margin-bottom: 1.2rem;
}

.tutor-filter__wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--primary-color);
  border-radius: 6rem;
  width: 50%;
  background-color: #fafafa;
  transition: all 0.2s ease;
}

html.dark-theme .tutor-filter__wrapper {
  background-color: #484f4b;
}

.tutor-filter__wrapper .bi-search {
  font-size: 1.6rem;
  padding: 0 .8rem;
  color: var(--primary-color);
}

.tutor-filter__input {
  outline: none;
  border: none;
  background: none;
  height: 3.5rem;
  width: 100%;
  padding: .8rem 0;
  font-size: 1.5rem;
  color: var(--text-light-color);
}

.tutor-filter__wrapper:focus-within {
  box-shadow: 0 0 0 2px #cdeae0;
}

.tutor__section h2 {
  height: 3rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-light-color);
  font-weight: 500;
  font-size: 1.5rem;
}

.tutor__section h2 .en-slug {
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text-grey-color);
}

.tutor__list {
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  /* gap: 2.4rem; */
  gap: 1.6rem;
  margin: 1.6rem 0 1.6rem 0;
}

.tutor__item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem;
  border-radius: .4rem;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.66);
  background-color: #fff;
  transition: background-color .33s ease;
}

html.dark-theme .tutor__item {
  background-color: #484f4b;
  border: 1px solid var(--line-color);
}

.tutor__icon {
  width: 5rem;
  height: 5rem;
}

.tutor__item h3 {
  color: var(--title-color);
  font-weight: 500;
  font-size: 1.4rem;
}

.tutor__item p {
  color: var(--text-grey-color);
  font-size: 1.2rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tutor__item:hover {
  background-color: var(--tutor-item-hover-bg) !important;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.22);
}

.tutor__item:hover h3 {
  color: var(--primary-color);
}

/* ========================================================
    page home end
============================================================*/

/* ========================================================
    page tutuorial post start
============================================================*/
/* POST START */
.tutor-post {
  background-color: var(--card-bg-color);
  padding-top: 12rem;
}

.tutor-post .container {
  display: grid;
  grid-template-columns: 22rem 1fr 26rem;
  padding-bottom: .1rem;
}

.post-nav {
  height: calc(100vh - 8.5rem);
  position: sticky;
  top: 8.5rem;
  z-index: 80;
  overflow-y: scroll;
  background-color: var(--card-bg-color);
  padding: 0 .8rem;
  padding-bottom: 2rem;
}

.post-nav__header strong {
  height: 5rem;
  line-height: 5rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 1px solid var(--line-color);
  margin-bottom: .4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.post-nav__menu>ul>li {
  padding-bottom: .4rem;
  margin-bottom: .4rem;
}

.post-nav__menu>ul>li:not(:last-child) {
  border-bottom: 1px solid var(--line-light-color);
}

.post-nav__subject {
  height: 3.2rem;
  line-height: 3.2rem;
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 500;
  padding-left: .8rem;
  padding-right: .4rem;
  border-radius: .5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.post-nav__link {
  height: 3rem;
  line-height: 3rem;
  color: var(--text-light-color);
  font-size: 1.4rem;
  font-weight: normal;
  padding-left: .8rem;
  padding-right: .8rem;
  border-radius: .5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.post-nav__link.active-post {
  background-color: var(--primary-light-color);
  color: var(--primary-color);
}

html.dark-theme .post-nav__link.active-post {
  background-color: #303b35;
  color: var(--primary-color);
}

.post-nav__link:not(.active-post):hover {
  background-color: #f5f4f4;
  color: var(--primary-color);
}

html.dark-theme .post-nav__link:not(.active-post):hover {
  background-color: var(--line-color);
}

.post {
  padding: 0 2.4rem;
  overflow: auto;
}

.pagin {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagin.up {
  border-bottom: 1px solid var(--line-color);
}

.pagin.down {
  border-top: 1px solid var(--line-color);
  margin: 3.2rem 0;
}

.pagin .pagin__link {
  max-width: 50%;
  height: 3.5rem;
  display: flex;
  align-items: center;
  line-height: 3.5rem;
  gap: .4rem;
  color: var(--text-light-color);
  font-size: 1.5rem;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.pagin .pagin__link.prev::before {
  content: "上一篇: ";
  color: var(--primary-dark-color);
  font-weight: 500;
}

.pagin .pagin__link.next::before {
  content: "下一篇: ";
  color: var(--primary-dark-color);
  font-weight: 500;
}

.pagin .pagin__link:hover {
  color: var(--primary-color);
}

/* ========================================================
    page tutuorial post end
============================================================*/

/* ========================================================
    blog start
============================================================*/
.blog {
  background-color: var(--card-bg-color);
}

.blog .container {
  min-height: calc(100vh - 8.5rem);
  display: grid;
  grid-template-columns: 22rem 1fr 28rem;
  padding-bottom: .1rem;
}

.blog-nav {
  height: calc(100vh - 8.5rem);
  position: sticky;
  top: 8.5rem;
  overflow: auto;
  padding: 0 1.2rem;
  padding-top: 1.6rem;
  background-color: var(--card-bg-color);
  overflow-y: scroll;
}

.blog-nav__header {
  height: 4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.6rem;
  color: var(--title-color);
  font-weight: 500;
  border-bottom: 1px solid var(--line-color);
  margin-bottom: .8rem;
  cursor: default;
}

.blog-nav__header a {
  color: var(--title-color);
}

.blog-nav__list li {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.blog .blog-nav__link {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  height: 3rem;
  color: var(--text-color);
}

.blog-nav__link.active {
  color: var(--primary-color);
  font-weight: 500;
}

.blog .blog-nav__link .bi {
  font-size: 1.2rem !important;
}

.blog-nav__list li .slug {
  font-size: 1.2rem;
  color: var(--text-grey-color);
}

.blog .blog-nav__link:hover,
.blog .blog-nav__link:hover .slug {
  color: var(--primary-color);
}

.blog-list {
  border-right: 1px dashed var(--line-color);
  padding: 1.6rem 2.4rem;
}

.blog-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: .8rem 0;
}

.blog-list__item .blog__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 1.5rem;
}

.blog-list__item:not(:last-child) .blog__meta {
  border-bottom: 1px dashed var(--line-color);
}

.blog__meta h2 {
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.blog__meta h2 a {
  font-size: 1.8rem;
  color: var(--title-color);
  transition: color .33s ease;
}

.blog__meta p {
  line-height: 1.5;
  font-size: 1.4rem;
  color: var(--text-grey-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: .25rem;
  padding-right: .5rem;
}

.blog__meta-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  width: 12.8rem;
  flex-shrink: 0;
  margin-left: 2rem;
  background-color: #f2f2f2;
  border-radius: .5rem;
  user-select: none;
}

html.dark-theme .blog__meta-tag {
  background-color: #303b35;
}

.blog__meta-tag span {
  text-transform: uppercase;
  color: var(--text-light-color);
  font-size: 1.8rem;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-list__item:hover .blog__meta a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: .4rem;
}

.blog-list__item:hover .blog__meta p {
  color: var(--text-light-color);
}

.blog-list__item:hover .blog__meta-tag span {
  color: var(--primary-color);
}

.blog-list__pagin {
  padding: 1.6rem 0;
  display: flex;
  justify-content: flex-start;
  gap: 1.6rem;
}

.blog-list__pagin a,
.blog-list__pagin span {
  font-size: 1.6rem;
  color: var(--text-light-color);
}

.blog-list__pagin a:hover {
  color: var(--primary-color);
}

.blog-list__pagin span.active {
  color: var(--primary-color);
  cursor: default;
}

/* Blog rside */
.blog-rside {
  padding: 1.6rem;
}

.blog-rside .blog-tags header {
  height: 4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.6rem;
  color: var(--title-color);
  font-weight: 500;
  border-bottom: 1px dashed var(--line-color);
  margin-bottom: .8rem;
  cursor: default;
}

.blog-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.blog-tags__list li {
  flex: 1;
}

.blog-tags__list li a {
  display: block;
  color: var(--text-color);
  background-color: var(--tutor-item-bg);
  padding: .4rem 1.2rem;
  border-radius: .6rem;
  text-align: center;
  border: 1px solid var(--line-color);
  transition: all .33s ease;
  white-space: nowrap;
}

.blog-tags__list li a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* blog post page */
.blog-post .container {
  grid-template-columns: 22rem 1fr 26rem;
}

.blog-post__main {
  padding: 0 2.4rem;
  overflow: auto;
  border-right: 1px dashed var(--line-color);
}

.blog-post__bar {
  height: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.breadcrumb__list li {
  font-size: 1.4rem;
  color: var(--text-grey-color);
  /* -webkit-font-smoothing: antialiased; */
}

.breadcrumb__list li .bi {
  margin-left: .4rem;
  color: var(--text-grey-color);
}

.breadcrumb__list .breadcrumb__link {
  color: var(--text-grey-color);
}

.breadcrumb__list .breadcrumb__link:hover {
  color: var(--primary-color);
}

.blog-post__pagin {
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-color);
  margin-bottom: 1.6rem;
  margin-top: 3.2rem;
}

.blog-post__pagin a {
  display: flex;
  flex-direction: column;
  max-width: 50%;
  color: var(--text-light-color);
  font-size: 1.5rem;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.blog-post__pagin a:hover {
  color: var(--primary-color);
}

.blog-post__prev::before {
  content: "上一篇: ";
  color: var(--primary-dark-color);
  font-weight: 500;
}

.blog-post__next::before {
  content: "下一篇:";
  color: var(--primary-dark-color);
  font-weight: 500;
}

.recommend {
  margin: 1.6rem 0;
}

.recommend .recommend__header {
  padding: 1.2rem 0;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--title-color);
}

.recommend__posts {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 1.2rem;
}

.recommend__posts a {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.recommend__posts a:nth-child(odd) {
  justify-self: start;
}

.recommend__posts a:nth-child(even) {
  justify-self: end;
}

.recommend__posts a {
  font-size: 1.4rem;
  color: var(--primary-color);
}

.recommend__posts a:hover {
  text-decoration: underline;
  text-underline-offset: .2rem;
}

/* ****TOC START******************************* */
.toc-container {
  position: sticky;
  top: 12rem;
  height: calc(100vh - 95px);
  overflow-y: auto;
  padding: 0 .8rem;
  padding-bottom: 4rem;
  scrollbar-width: none;
}

.toc-container::-webkit-scrollbar {
  display: none;
}

.toc-title {
  height: 5rem;
  line-height: 5rem;
  font-size: 16px;
  font-weight: bold;
  color: var(--title-color);
  padding-left: .8rem;
  /* border-bottom: 1px solid var(--line-color); */
}

/* 列表重置 */
.toc-list {
  border-left: 1px solid var(--toc-border-color);
}

.toc-list,
.toc-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin: .6rem 0;
  margin-left: -0.05rem;
  line-height: 1.3;
}

/* 链接样式 */
.toc-link {
  display: block;
  padding: .1rem 1.6rem;
  text-decoration: none;
  color: var(--text-dark-color);
  font-size: 1.4rem;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* 激活状态 (Active) */
.toc-link.active {
  color: var(--primary-color);
  font-weight: 500;
  border-left-color: var(--primary-color);
}

/* 二级菜单 (H3) 样式 */
.toc-sub-list .toc-link {
  padding-left: 3.2rem;
  font-size: 1.4rem;
  font-weight: normal;
  color: var(--text-light-color);
}

.toc-sub-list .toc-link.active,
.toc-link:hover {
  color: var(--primary-color);
}

/* ****TOC END******************************* */

/* ========================================================
    blog end
============================================================*/


/* ========================================================
    single page start
============================================================*/
.site-page {
  background-color: var(--card-bg-color);
}

.site-page .container {
  min-height: calc(100vh - 8.5rem);
  display: grid;
  grid-template-columns: 22rem 1fr;
  padding-bottom: .1rem;
}

.site-page .page-nav {
  height: calc(100vh - 8.5rem);
  position: sticky;
  top: 8.5rem;
  overflow-y: scroll;
  padding: 0 1.2rem;
  padding-top: 1.6rem;
  background-color: var(--card-bg-color);
}

.site-page .page-nav ul li {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.site-page .page-nav ul li a {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.4rem;
  height: 3rem;
  color: var(--text-color);
}

.site-page .page-nav ul li a.active {
  color: var(--primary-color);
  font-weight: 500;
}

.site-page .page-nav ul li .bi {
  font-size: 1.2rem !important;
}

.site-page .page-nav ul li .slug {
  font-size: 1.2rem !important;
  color: var(--text-grey-color);
}

.site-page .post {
  padding: .8rem 1.6rem;
}

/* ========================================================
    single page end
============================================================*/

/* ========================================================
    query start
============================================================*/
@media (max-width: 992px) {
  .left-aside--toggle {
    display: flex;
    pointer-events: all;
  }

  .home .container {
    grid-template-columns: 1fr;
  }

  .post {
    padding: 0 .8rem;
  }

  .tutor-post .container {
    grid-template-columns: 1fr;
  }

  .toc-container {
    display: none;
  }

  .home .left-aside,
  .tutor-post .left-aside,
  .blog .left-aside,
  .site-page .left-aside {
    display: none;
    position: fixed;
    top: 8.5rem;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 22rem;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.33);
  }

  .left-aside.active {
    display: block;
  }

  .post-nav {
    top: 12rem !important;
  }

  /*.home .tutor-panel {
    padding: .8rem;
  }*/

  .blog .container {
    grid-template-columns: 1fr 30rem;
  }

  .blog .blog-list {
    padding-left: .8rem;
    padding-right: .8rem;
  }

  .blog-post .container {
    grid-template-columns: 1fr;
  }

  .blog-post__rside {
    display: none;
  }

  .blog-post__main {
    border: none;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
  }

  .site-footer .container section {
    justify-self: center !important;
  }

  .site-page .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width:768px) {
  .home .home-hero {
    display: none;
  }

  .tutor-panel .tutor__icon {
    display: none;
  }

  .tutor-panel .tutor__list {
    grid-template-columns: 6fr 6fr;
  }

  .blog .container {
    grid-template-columns: 1fr;
  }

  .blog .container .blog-rside {
    display: none;
  }

  .blog-post__main {
    padding: 0 .8rem;
  }

}

@media (max-width:576px) {
  .a-nav__right li:not(:last-child) {
    display: none;
  }

  .tutor-filter__wrapper {
    width: 100%;
  }

  .blog__meta-tag {
    display: none;
  }
}

/* ========================================================
    query end
============================================================*/