:root {
  --theme-color: #00b38a;
  --taste-page: #edf7f3;
  --taste-screen: #f6fbf9;
  --taste-paper: #ffffff;
  --taste-text: #3f3f3f;
  --taste-soft: #7b8a86;
  --taste-accent: #00b38a;
  --taste-accent-deep: #008f70;
  --taste-accent-soft: rgba(0, 179, 138, 0.1);
  --taste-line: #d9eee7;
  --taste-block: #f2fbf8;
  --taste-code-bg: #f4fbf8;
  --taste-code-text: #176b59;
  --taste-table-head: #e8f8f2;
  --taste-table-stripe: #f7fcfa;
  --base-background-color: var(--taste-paper);
  --base-color: var(--taste-text);
  --base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  --base-font-size: 17px;
  --base-line-height: 1.85;
  --content-max-width: none;
  --heading-color: var(--taste-text);
  --heading-h1-font-size: 2rem;
  --heading-h2-font-size: 1.18rem;
  --heading-h3-font-size: 1.08rem;
  --link-color: var(--taste-accent-deep);
  --link-text-decoration: none;
  --sidebar-background: var(--taste-screen);
  --sidebar-border-color: var(--taste-line);
  --sidebar-width: 292px;
  --code-inline-background: var(--taste-accent-soft);
  --code-inline-color: var(--taste-accent);
  --code-theme-background: var(--taste-code-bg);
  --code-theme-text: var(--taste-code-text);
  --blockquote-background: var(--taste-block);
  --blockquote-border-color: var(--taste-accent);
  --blockquote-color: var(--taste-text);
  --table-cell-border-color: var(--taste-line);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--taste-paper);
  color: var(--taste-text);
  letter-spacing: 0;
  overflow-x: hidden;
}

.sidebar {
  background: var(--taste-screen);
  border-right: 1px solid var(--taste-line);
  box-shadow: none;
}

.app-name {
  margin: 30px 26px 22px;
  text-align: left;
}

.app-name-link {
  color: var(--taste-accent-deep);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
}

.app-name-link::after {
  color: var(--taste-soft);
  content: "cxuan-ai-labs";
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 5px;
}

.search {
  border-bottom: 1px solid var(--taste-line);
  margin: 0;
  padding: 0 20px 18px;
}

.search input {
  background: var(--taste-paper);
  border: 1px solid var(--taste-line);
  border-radius: 8px;
  color: var(--taste-text);
  font-size: 14px;
  padding: 10px 12px;
}

.search input:focus {
  border-color: var(--taste-accent);
  box-shadow: 0 0 0 3px var(--taste-accent-soft);
}

.sidebar-nav {
  padding: 22px 18px 36px;
}

.sidebar-nav > ul > li {
  margin: 10px 0;
}

.sidebar ul li p {
  color: var(--taste-text);
  font-size: 15px;
  font-weight: 750;
  margin: 18px 0 8px;
}

.sidebar ul li a {
  border-radius: 8px;
  color: #465752;
  display: block;
  font-size: 14px;
  line-height: 1.45;
  padding: 6px 8px;
}

.sidebar ul li.active > a,
.sidebar ul li a:hover {
  background: var(--taste-accent-soft);
  color: var(--taste-accent-deep);
  font-weight: 700;
}

.sidebar-toggle {
  background: rgba(242, 251, 248, 0.94);
  border-radius: 0 0 8px 0;
}

.content {
  background: var(--taste-paper);
  padding-top: 0;
}

nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--taste-line);
  box-shadow: none;
  height: auto;
  left: auto;
  margin: 0 auto;
  max-width: none;
  padding: 24px clamp(34px, 5vw, 88px) 16px;
  position: static !important;
  right: auto;
  text-align: right;
  top: auto;
  z-index: 2;
}

.wide-page nav {
  max-width: none;
  padding-left: clamp(34px, 5vw, 88px);
  padding-right: clamp(34px, 5vw, 88px);
  width: auto;
}

nav ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-flex;
  margin: 0;
}

nav a {
  border-radius: 8px;
  color: var(--taste-text);
  font-size: 14px;
  font-weight: 650;
  padding: 6px 10px;
}

nav a:hover {
  background: var(--taste-accent-soft);
  color: var(--taste-accent-deep);
}

.github-corner {
  display: none;
}

.markdown-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0 auto;
  max-width: none;
  padding: 38px clamp(34px, 5vw, 88px) 82px;
  width: 100%;
}

.wide-page .markdown-section {
  max-width: none;
  padding-left: clamp(34px, 5vw, 88px);
  padding-right: clamp(34px, 5vw, 88px);
  width: 100%;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3 {
  color: var(--taste-text);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.38;
  scroll-margin-top: 84px;
}

.markdown-section h1 {
  border-bottom: 2px solid var(--taste-accent);
  font-size: clamp(2.2rem, 3vw, 3.35rem);
  margin: 0 8px 28px;
  padding: 0 0 14px;
}

.markdown-section h2 {
  border-bottom: 2px solid var(--taste-accent);
  color: var(--taste-accent);
  display: table;
  font-size: 1.32rem;
  font-weight: 750;
  line-height: 1.75;
  margin: 4em auto 2em;
  max-width: 100%;
  padding: 0 1em;
  text-align: center;
}

.markdown-section h3 {
  border-left: 4px solid var(--taste-accent);
  color: var(--taste-text);
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.75;
  margin: 2em 8px 0.75em 0;
  padding: 0 0 0.1em 8px;
}

.markdown-section h4,
.markdown-section h5,
.markdown-section h6 {
  color: var(--taste-accent-deep);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  margin: 1.7em 8px 0.75em;
}

.markdown-section p {
  color: var(--taste-text);
  font-size: 17px;
  line-height: 1.9;
  margin: 1.5em 8px;
}

.markdown-section li {
  color: var(--taste-text);
  font-size: 17px;
  line-height: 1.9;
  margin: 0.55em 0;
  padding-left: 0.25em;
}

.markdown-section strong {
  color: var(--taste-accent);
  font-weight: 700;
}

.markdown-section em {
  color: var(--taste-accent-deep);
  font-style: normal;
}

.markdown-section a {
  border-bottom: 1px solid var(--taste-accent);
  color: var(--taste-accent-deep);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.markdown-section a:hover {
  color: var(--taste-accent);
}

.markdown-section ul,
.markdown-section ol {
  color: var(--taste-text);
  margin: 1.2em 8px 1.5em;
}

.markdown-section ul {
  list-style: disc;
  padding-left: 1.45em;
}

.markdown-section ol {
  list-style: decimal;
  padding-left: 1.65em;
}

.markdown-section li p {
  margin: 0;
}

.markdown-section blockquote {
  background: var(--taste-block);
  border: 0;
  border-left: 3px solid var(--taste-accent);
  border-radius: 8px;
  box-shadow: none;
  color: var(--taste-text);
  margin: 1.8em 8px;
  padding: 1.05em 1.25em;
}

.markdown-section blockquote p {
  color: var(--taste-text);
  margin: 0;
}

.markdown-section code {
  background: var(--taste-accent-soft);
  border-radius: 4px;
  color: var(--taste-accent);
  font-family: Menlo, "Operator Mono", Consolas, Monaco, monospace;
  font-size: 90%;
  padding: 3px 5px;
  white-space: normal;
}

.markdown-section pre {
  background: var(--taste-code-bg);
  border: 1px solid var(--taste-line);
  border-radius: 8px;
  box-shadow: none;
  margin: 1.8em 8px;
  overflow-x: hidden;
  padding: 16px 18px;
}

.markdown-section pre > code {
  background: transparent;
  color: var(--taste-code-text);
  display: block;
  font-size: 16px;
  line-height: 1.72;
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.markdown-section img {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  display: block;
  height: auto;
  margin: 2em auto;
  max-width: 100%;
}

.markdown-section .article-card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  list-style: none;
  margin: 1.8em 8px 2.6em;
  padding: 0;
}

.article-index-page .markdown-section .article-card-grid {
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.markdown-section .article-card-item {
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.markdown-section .article-card {
  background: var(--taste-paper);
  border: 1px solid var(--taste-line);
  border-radius: 10px;
  color: var(--taste-text);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 230px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.markdown-section .article-card:hover {
  border-color: rgba(0, 179, 138, 0.5);
  box-shadow: 0 10px 26px rgba(0, 143, 112, 0.12);
  color: var(--taste-text);
  text-decoration: none;
  transform: translateY(-2px);
}

.markdown-section .article-card-media {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 179, 138, 0.14), rgba(255, 255, 255, 0.55)),
    var(--taste-block);
  color: var(--taste-accent-deep);
  display: flex;
  font-size: 22px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  overflow: hidden;
  width: 100%;
}

.markdown-section .article-card-media img {
  border-radius: 0;
  display: block;
  height: 100%;
  margin: 0;
  max-width: none;
  object-fit: cover;
  width: 100%;
}

.markdown-section .article-card-media.is-empty span,
.markdown-section .article-card-media.is-loading span {
  border-bottom: 2px solid var(--taste-accent);
  line-height: 1.2;
  padding-bottom: 4px;
}

.markdown-section .article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px 16px;
}

.markdown-section .article-card-date {
  color: var(--taste-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.markdown-section .article-card-title {
  color: var(--taste-text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.markdown-section > div:first-child[align="center"] {
  display: block;
  margin: 0 auto 34px;
  overflow: visible;
  text-align: center;
}

.home-page .markdown-section > div:first-child[align="center"] {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 18px 8px 28px;
  max-height: 330px;
  overflow: hidden;
}

.markdown-section > div:first-child[align="center"] img {
  border-radius: 0;
  height: auto;
  margin: 0 auto;
  max-width: 720px;
  transform: none;
  width: min(100%, 720px) !important;
}

.home-page .markdown-section > div:first-child[align="center"] img {
  height: 320px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  width: min(100%, 980px) !important;
}

.markdown-section > div:first-child[align="center"] + h2 {
  margin-top: 18px;
}

.markdown-section table {
  background: var(--taste-paper);
  border: 1px solid var(--taste-table-border, var(--taste-line));
  border-collapse: collapse;
  display: table;
  margin: 2em 0;
  width: 100%;
}

.article-index-page .markdown-section table {
  table-layout: fixed;
  margin-left: 8px;
  margin-right: 8px;
  width: calc(100% - 16px);
}

.home-feature-grid,
.home-page .markdown-section > h2:first-of-type + ul {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  margin: 1.8em 8px 3em;
  padding: 0;
}

.markdown-section .home-feature-card,
.home-page .markdown-section > h2:first-of-type + ul > li {
  background: var(--taste-paper);
  border: 1px solid var(--taste-line);
  border-radius: 10px;
  color: var(--taste-text);
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  min-height: 164px;
  padding: 18px 18px 20px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.markdown-section .home-feature-card:hover,
.home-page .markdown-section > h2:first-of-type + ul > li:hover {
  border-color: rgba(0, 179, 138, 0.5);
  box-shadow: 0 10px 26px rgba(0, 143, 112, 0.12);
  color: var(--taste-text);
  text-decoration: none;
  transform: translateY(-2px);
}

.home-feature-card strong,
.home-page .markdown-section > h2:first-of-type + ul > li > a:first-child {
  border-bottom: 0;
  color: var(--taste-accent-deep);
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

.home-feature-card span {
  color: var(--taste-text);
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.article-index-page .markdown-section th:first-child,
.article-index-page .markdown-section td:first-child {
  width: 22%;
}

.article-index-page .markdown-section th:last-child,
.article-index-page .markdown-section td:last-child {
  width: 72px;
}

.markdown-section thead,
.markdown-section th {
  background: var(--taste-table-head);
}

.markdown-section tr:nth-child(2n) {
  background: var(--taste-table-stripe);
}

.markdown-section td,
.markdown-section th {
  border: 1px solid var(--taste-line);
  font-size: 15px;
  line-height: 1.65;
  padding: 12px 14px;
  text-align: left;
}

.markdown-section th {
  color: var(--taste-accent-deep);
  font-weight: 700;
}

.markdown-section td {
  color: var(--taste-text);
}

.markdown-section hr {
  background: var(--taste-line);
  border: 0;
  height: 1px;
  margin: 3em 8px;
}

@media (max-width: 768px) {
  nav {
    overflow: visible;
    padding: 18px 22px 14px 54px;
    text-align: left;
    white-space: normal;
  }

  nav ul {
    justify-content: flex-start;
  }

  .markdown-section {
    padding: 30px 22px 56px;
  }

  .wide-page nav,
  .wide-page .markdown-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .article-index-page .markdown-section .article-card-grid {
    grid-template-columns: 1fr;
  }

  .markdown-section > div:first-child[align="center"] {
    margin-bottom: 28px;
  }

  .home-page .markdown-section > div:first-child[align="center"] {
    max-height: 230px;
  }

  .home-page .markdown-section > div:first-child[align="center"] img {
    height: 230px;
  }
}
