.home-shell {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --line: #e5eaec;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #16a085;
  --primary-dark: #0f7d68;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

.home-page body {
  background:
    radial-gradient(circle at 0% 40%, rgba(22, 160, 133, 0.08), transparent 20%),
    radial-gradient(circle at 100% 10%, rgba(22, 160, 133, 0.06), transparent 18%),
    linear-gradient(180deg, #fafcfc 0%, #f3f6f7 100%);
}

.home-page .md-footer,
.home-page .md-footer-meta {
  display: none;
}

@media screen and (min-width: 960px) {
  .home-page .md-sidebar--primary,
  .home-page .md-sidebar--secondary {
    display: none;
  }
}

.home-page .md-main__inner.md-grid,
.home-page .md-content,
.home-page .md-content__inner {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.home-page .md-content__button,
.home-page .md-source-file,
.home-page .md-path,
.home-page .md-typeset > h1:first-of-type {
  display: none;
}

.home-shell a {
  color: inherit;
  text-decoration: none;
}

.home-container {
  width: min(1380px, calc(100% - 20px));
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(22, 160, 133, 0.18);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: var(--brand-text, #203047);
  background: #fff;
  border-color: #cde3db;
}

.home-main section {
  padding: 18px 0 0;
}

.about-card,
.feature-grid,
.section-head,
.article-list,
.stack-grid,
.project-list,
.footer-inner {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.visual-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  max-width: 860px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 160, 133, 0.1), transparent 16%),
    radial-gradient(circle at 0% 100%, rgba(22, 160, 133, 0.07), transparent 22%),
    linear-gradient(180deg, #fcfefe 0%, #f4f8f8 100%);
}

.visual-illustration {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(48px, 0.45fr) 1fr minmax(48px, 0.45fr) 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 260px;
  padding: 48px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(135deg, rgba(22, 160, 133, 0.15), rgba(31, 91, 120, 0.08));
}

.visual-illustration::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(22, 160, 133, 0.16);
  border-radius: 28px;
  pointer-events: none;
}

.visual-node {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px solid rgba(22, 160, 133, 0.2);
  border-radius: 24px;
  color: #0c4a48;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(14, 80, 78, 0.12);
}

.visual-node-source {
  transform: translateY(18px);
}

.visual-node-build {
  min-height: 122px;
  color: #083b3a;
  background: linear-gradient(180deg, #ffffff 0%, #dff5ef 100%);
}

.visual-node-deploy {
  transform: translateY(-18px);
}

.visual-line {
  position: relative;
  z-index: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(22, 160, 133, 0.18), rgba(22, 160, 133, 0.75));
}

.visual-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2px;
  width: 10px;
  height: 10px;
  border-top: 3px solid rgba(22, 160, 133, 0.8);
  border-right: 3px solid rgba(22, 160, 133, 0.8);
  transform: translateY(-50%) rotate(45deg);
}

.visual-orbit {
  position: absolute;
  border: 1px dashed rgba(22, 160, 133, 0.18);
  border-radius: 999px;
  pointer-events: none;
}

.visual-orbit-one {
  right: -70px;
  bottom: -78px;
  width: 220px;
  height: 220px;
}

.visual-orbit-two {
  top: -82px;
  left: 12%;
  width: 160px;
  height: 160px;
}

.about-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(180deg, #eef5f5 0%, #dce8e7 100%);
  border: 1px solid #d5e1df;
  border-radius: 50%;
}

.about-body h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.role {
  margin: 4px 0 8px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
}

.about-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.88rem;
}

.meta {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: #5f6b76;
  font-size: 0.82rem;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-card {
  padding: 20px 18px;
  text-align: center;
}

.feature-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: #eff8f5;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 800;
}

.feature-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.feature-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  color: #223047;
  font-size: 1.62rem;
  letter-spacing: -0.04em;
}

.section-head a {
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 700;
}

.article-list,
.project-list {
  display: grid;
  gap: 14px;
}

.article-card,
.project-card {
  display: block;
  padding: 10px;
}

.article-cover {
  height: 112px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e4ebee;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff7f6, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.article-cover-flow span,
.article-cover-flow span::after {
  content: "";
  position: absolute;
  border: 1px solid #dce8e5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.article-cover-flow span:first-child {
  left: 18px;
  top: 32px;
  width: 30px;
  height: 22px;
}

.article-cover-flow span:first-child::after {
  left: 42px;
  top: -6px;
  width: 52px;
  height: 30px;
}

.article-cover-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 24px 22px 18px;
}

.article-cover-bars span {
  flex: 1;
  background: linear-gradient(180deg, #74d5c2 0%, #4cae99 100%);
  border-radius: 8px 8px 0 0;
}

.article-cover-bars span:nth-child(1) { height: 18px; }
.article-cover-bars span:nth-child(2) { height: 42px; }
.article-cover-bars span:nth-child(3) { height: 26px; }
.article-cover-bars span:nth-child(4) { height: 54px; }
.article-cover-bars span:nth-child(5) { height: 34px; }

.article-cover-pipeline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.article-cover-pipeline span {
  color: #344153;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 6px 0;
}

.article-content h3,
.project-card h3 {
  margin: 0 0 7px;
  font-size: 1.02rem;
  letter-spacing: -0.04em;
  color: #1f2937;
  line-height: 1.34;
}

.article-content p,
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.72;
}

.badge {
  display: inline-flex;
  padding: 5px 8px;
  margin-bottom: 7px;
  border-radius: 999px;
  background: #ecf9f5;
  color: var(--primary-dark);
  font-size: 0.66rem;
  font-weight: 700;
}

.article-meta {
  display: flex;
  gap: 12px;
  margin-top: 9px;
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f2f7f7;
  border: 1px solid #e1e8ea;
  color: #54606d;
  font-size: 0.65rem;
  font-weight: 700;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stack-item {
  padding: 14px 10px;
  text-align: center;
}

.stack-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: #f0f7f7;
  border-radius: 10px;
  font-size: 1rem;
}

.stack-item h3 {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.project-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: #eff8f5;
  border-radius: 10px;
  font-size: 1rem;
}

.project-link {
  margin-top: 10px;
  padding-top: 8px;
  text-align: center;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  border-top: 1px solid #d9ece6;
}

.footer {
  padding: 18px 0 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  color: #6b7280;
  font-size: 0.68rem;
  border-top: 1px solid rgba(229, 234, 236, 0.9);
}

.site-beian {
  max-width: 860px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(229, 234, 236, 0.55);
  color: #909aa6;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.site-beian a {
  color: inherit;
  text-decoration: none;
}

.site-beian a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand,
.quote {
  font-weight: 700;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand small {
  color: #8a95a2;
  font-size: 0.6rem;
  font-weight: 600;
}

.quote {
  text-align: center;
  color: #606b78;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #5f6b76;
  font-size: 0.63rem;
  font-weight: 800;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.04);
}

@media (max-width: 760px) {
  .home-container {
    width: min(860px, calc(100% - 28px));
  }

  .about-card,
  .feature-grid,
  .section-head,
  .article-list,
  .stack-grid,
  .project-list,
  .footer-inner,
  .site-beian {
    max-width: none;
  }

  .visual-card {
    padding: 12px;
    max-width: none;
  }

  .visual-illustration {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 26px;
  }

  .visual-node,
  .visual-node-build {
    min-height: 72px;
    transform: none;
  }

  .visual-line {
    width: 3px;
    height: 28px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(22, 160, 133, 0.18), rgba(22, 160, 133, 0.75));
  }

  .visual-line::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-beian {
    margin-top: 12px;
    text-align: center;
  }

  .quote {
    text-align: left;
  }
}

.home-page body[data-md-color-scheme="slate"] {
  background:
    radial-gradient(circle at 0% 40%, rgba(79, 209, 181, 0.12), transparent 24%),
    radial-gradient(circle at 100% 10%, rgba(79, 209, 181, 0.1), transparent 22%),
    linear-gradient(180deg, #07111b 0%, #0d1623 100%);
}

.home-page body[data-md-color-scheme="slate"] .home-shell {
  --bg: #0b1420;
  --surface: #111c29;
  --line: #243447;
  --text: #e5eef7;
  --muted: #9eb0c3;
  --primary: #4fd1b5;
  --primary-dark: #7ce7d0;
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.38);
}

.home-page body[data-md-color-scheme="slate"] .card,
.home-page body[data-md-color-scheme="slate"] .socials a {
  background: rgba(17, 28, 41, 0.94);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.home-page body[data-md-color-scheme="slate"] .visual-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 209, 181, 0.14), transparent 16%),
    radial-gradient(circle at 0% 100%, rgba(79, 209, 181, 0.08), transparent 22%),
    linear-gradient(180deg, #122131 0%, #0f1a28 100%);
}

.home-page body[data-md-color-scheme="slate"] .visual-illustration {
  background:
    radial-gradient(circle at 20% 15%, rgba(79, 209, 181, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(79, 209, 181, 0.14), rgba(17, 28, 41, 0.48));
}

.home-page body[data-md-color-scheme="slate"] .visual-node {
  color: #d7fff7;
  background: rgba(17, 28, 41, 0.82);
  border-color: rgba(79, 209, 181, 0.22);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
}

.home-page body[data-md-color-scheme="slate"] .visual-node-build {
  background: linear-gradient(180deg, rgba(22, 42, 56, 0.96) 0%, rgba(18, 74, 69, 0.78) 100%);
}

.home-page body[data-md-color-scheme="slate"] .avatar,
.home-page body[data-md-color-scheme="slate"] .feature-icon,
.home-page body[data-md-color-scheme="slate"] .stack-icon,
.home-page body[data-md-color-scheme="slate"] .project-icon {
  background: #132635;
  border: 1px solid #274155;
  color: var(--primary);
}

.home-page body[data-md-color-scheme="slate"] .about-body h2,
.home-page body[data-md-color-scheme="slate"] .section-head h2,
.home-page body[data-md-color-scheme="slate"] .article-content h3,
.home-page body[data-md-color-scheme="slate"] .project-card h3,
.home-page body[data-md-color-scheme="slate"] .stack-item h3 {
  color: var(--text);
}

.home-page body[data-md-color-scheme="slate"] .about-body p,
.home-page body[data-md-color-scheme="slate"] .feature-card p,
.home-page body[data-md-color-scheme="slate"] .article-content p,
.home-page body[data-md-color-scheme="slate"] .project-card p,
.home-page body[data-md-color-scheme="slate"] .meta,
.home-page body[data-md-color-scheme="slate"] .article-meta,
.home-page body[data-md-color-scheme="slate"] .footer-inner,
.home-page body[data-md-color-scheme="slate"] .footer-brand small,
.home-page body[data-md-color-scheme="slate"] .site-beian,
.home-page body[data-md-color-scheme="slate"] .quote,
.home-page body[data-md-color-scheme="slate"] .socials a,
.home-page body[data-md-color-scheme="slate"] .section-head a {
  color: var(--muted);
}

.home-page body[data-md-color-scheme="slate"] .badge {
  background: #132635;
  color: var(--primary-dark);
}

.home-page body[data-md-color-scheme="slate"] .tag {
  background: #0f1d2c;
  border-color: #274155;
  color: #b8c7d8;
}

.home-page body[data-md-color-scheme="slate"] .article-cover {
  border-color: #274155;
  background: linear-gradient(135deg, #102131, #15273a);
}

.home-page body[data-md-color-scheme="slate"] .article-cover-flow span,
.home-page body[data-md-color-scheme="slate"] .article-cover-flow span::after {
  border-color: #31506a;
  background: rgba(17, 28, 41, 0.9);
}

.home-page body[data-md-color-scheme="slate"] .article-cover-bars span {
  background: linear-gradient(180deg, #4fd1b5 0%, #278f7c 100%);
}

.home-page body[data-md-color-scheme="slate"] .article-cover-pipeline span,
.home-page body[data-md-color-scheme="slate"] .project-link {
  color: var(--text);
}

.home-page body[data-md-color-scheme="slate"] .project-link,
.home-page body[data-md-color-scheme="slate"] .footer-inner {
  border-top-color: rgba(36, 52, 71, 0.95);
}

.home-page body[data-md-color-scheme="slate"] .site-beian {
  border-top-color: rgba(36, 52, 71, 0.68);
}
