:root {
  --wiki-accent: #3f51b5;
  --wiki-accent-soft: #eef1fb;
  --wiki-accent-strong: #283593;
  --wiki-card-bg: #ffffff;
  --wiki-card-border: rgba(63, 81, 181, 0.18);
  --wiki-card-shadow: 0 10px 24px rgba(40, 53, 147, 0.08);
  --wiki-card-shadow-hover: 0 18px 36px rgba(40, 53, 147, 0.16);
  --wiki-muted: #607080;
  --wiki-prompt-bg: #eef1fb;
  --wiki-table-head: #283593;
  --wiki-table-zebra: #f5f7ff;
  --wiki-scrollbar: #7986cb;
  --wiki-scrollbar-track: #e8eaf6;
  --wiki-code-inline-bg: rgba(63, 81, 181, 0.1);
  --md-admonition-icon--prompt: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2024%2024'%3E%3Cpath d='M19,8L15.5,11.5V7.5L19,8M5,8L8.5,7.5V11.5L5,8M20,13V6L15,4V3A1,1,0,0,0,14,2H10A1,1,0,0,0,9,3V4L4,6V13A1,1,0,0,0,5,14H7V17A1,1,0,0,0,8,18H10A1,1,0,0,0,11,17V14H13V17A1,1,0,0,0,14,18H16A1,1,0,0,0,17,17V14H19A1,1,0,0,0,20,13M9.5,8.5A1.5,1.5,0,0,1,11,10A1.5,1.5,0,0,1,9.5,11.5A1.5,1.5,0,0,1,8,10A1.5,1.5,0,0,1,9.5,8.5M14.5,8.5A1.5,1.5,0,0,1,16,10A1.5,1.5,0,0,1,14.5,11.5A1.5,1.5,0,0,1,13,10A1.5,1.5,0,0,1,14.5,8.5Z'/%3E%3C/svg%3E");
  --md-admonition-icon--original: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2024%2024'%3E%3Cpath d='M10.59,13.41C11.37,14.2,12.63,14.2,13.41,13.41L17.71,9.12C18.5,8.34,18.5,7.07,17.71,6.29C16.93,5.5,15.66,5.5,14.88,6.29L13.59,7.59L12.17,6.17L13.47,4.88C15.03,3.32,17.56,3.32,19.12,4.88C20.68,6.44,20.68,8.97,19.12,10.54L14.83,14.83C13.27,16.39,10.73,16.39,9.17,14.83L7.76,13.41L9.17,12L10.59,13.41M13.41,10.59C12.63,9.8,11.37,9.8,10.59,10.59L6.29,14.88C5.5,15.66,5.5,16.93,6.29,17.71C7.07,18.5,8.34,18.5,9.12,17.71L10.41,16.41L11.83,17.83L10.54,19.12C8.97,20.68,6.44,20.68,4.88,19.12C3.32,17.56,3.32,15.03,4.88,13.47L9.17,9.17C10.73,7.61,13.27,7.61,14.83,9.17L16.24,10.59L14.83,12L13.41,10.59Z'/%3E%3C/svg%3E");
}

[data-md-color-scheme="slate"] {
  --wiki-card-bg: #1a1e2e;
  --wiki-card-border: rgba(121, 134, 203, 0.25);
  --wiki-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  --wiki-card-shadow-hover: 0 22px 40px rgba(0, 0, 0, 0.4);
  --wiki-muted: #9ea8c0;
  --wiki-prompt-bg: #242838;
  --wiki-table-head: #283593;
  --wiki-table-zebra: #1e2233;
  --wiki-scrollbar: #7986cb;
  --wiki-scrollbar-track: #1a1e2a;
  --wiki-code-inline-bg: rgba(121, 134, 203, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}


.md-typeset {
  font-size: 0.82rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.md-typeset p {
  margin: 0 0 1rem;
}

.md-typeset :is(h1, h2, h3, h4, h5) {
  line-height: 1.45;
}

.md-typeset code {
  border-radius: 0.35rem;
  background: var(--wiki-code-inline-bg);
  padding: 0.12em 0.4em;
}

.md-typeset pre code {
  background: transparent;
  padding: 0;
}

.prompt-block {
  position: relative;
  margin: 1rem 0;
  border-left: 3px solid var(--wiki-accent);
  border-radius: 8px;
  background: var(--wiki-prompt-bg);
  padding: 1.2rem;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prompt-block[data-lang] {
  padding-top: 2.05rem;
}

.prompt-block[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(63, 81, 181, 0.14);
  color: var(--wiki-accent-strong);
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-md-color-scheme="slate"] .prompt-block[data-lang]::before {
  background: rgba(121, 134, 203, 0.22);
  color: #c5cae9;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--wiki-card-border);
  background: var(--wiki-card-bg);
  box-shadow: var(--wiki-card-shadow);
  padding: 1.5rem;
  text-decoration: none !important;
  color: inherit !important;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 81, 181, 0.36);
  box-shadow: var(--wiki-card-shadow-hover);
}

.card-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
}

.card-desc {
  color: var(--wiki-muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.card-meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--wiki-muted);
  opacity: 0.75;
}

.md-typeset .md-tag {
  border-radius: 999px;
  border: 1px solid rgba(63, 81, 181, 0.25);
  background: rgba(63, 81, 181, 0.1);
  color: var(--wiki-accent-strong);
  padding: 0.08rem 0.55rem;
  font-weight: 600;
}

.md-typeset .md-tag.md-tag--primary {
  border-color: rgba(2, 132, 199, 0.4);
  background: rgba(2, 132, 199, 0.14);
  color: #075985;
}

.md-typeset .md-tag.md-tag--accent {
  border-color: rgba(234, 88, 12, 0.45);
  background: rgba(234, 88, 12, 0.14);
  color: #9a3412;
}

[data-md-color-scheme="slate"] .md-typeset .md-tag {
  border-color: rgba(121, 134, 203, 0.32);
  background: rgba(121, 134, 203, 0.18);
  color: #c5cae9;
}

[data-md-color-scheme="slate"] .md-typeset .md-tag.md-tag--primary {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(14, 116, 144, 0.35);
  color: #bae6fd;
}

[data-md-color-scheme="slate"] .md-typeset .md-tag.md-tag--accent {
  border-color: rgba(253, 186, 116, 0.5);
  background: rgba(194, 65, 12, 0.35);
  color: #fed7aa;
}

.md-typeset .md-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 1rem;
}

.md-typeset img.project-hero {
  display: block;
  width: 100%;
  margin: 0.7rem 0 1.2rem;
  border: 1px solid var(--wiki-card-border);
  border-radius: 14px;
  box-shadow: var(--wiki-card-shadow);
  background: var(--wiki-card-bg);
}

.md-typeset [data-md-tag] a {
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(63, 81, 181, 0.25);
  background: rgba(63, 81, 181, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset [data-md-tag] a {
  border-color: rgba(121, 134, 203, 0.35);
  background: rgba(121, 134, 203, 0.15);
}

.md-typeset :is(pre, .highlight pre) {
  border-radius: 8px;
  max-height: 600px;
  overflow: auto;
  line-height: 1.65;
}

.md-typeset :is(pre, .highlight pre)::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.md-typeset .highlight code {
  font-size: 0.74rem;
}

.md-typeset .admonition.prompt,
.md-typeset details.prompt {
  border-color: rgb(63, 81, 181);
}

.md-typeset .prompt > .admonition-title,
.md-typeset .prompt > summary {
  background-color: rgba(63, 81, 181, 0.12);
}

.md-typeset .prompt > .admonition-title::before,
.md-typeset .prompt > summary::before {
  background-color: rgb(63, 81, 181);
  -webkit-mask-image: var(--md-admonition-icon--prompt);
  mask-image: var(--md-admonition-icon--prompt);
}

.md-typeset .admonition.original,
.md-typeset details.original {
  border-color: rgb(255, 152, 0);
}

.md-typeset .original > .admonition-title,
.md-typeset .original > summary {
  background-color: rgba(255, 152, 0, 0.12);
}

.md-typeset .original > .admonition-title::before,
.md-typeset .original > summary::before {
  background-color: rgb(255, 152, 0);
  -webkit-mask-image: var(--md-admonition-icon--original);
  mask-image: var(--md-admonition-icon--original);
}

[data-md-color-scheme="slate"] .md-typeset .prompt > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset .prompt > summary {
  background-color: rgba(121, 134, 203, 0.18);
}

[data-md-color-scheme="slate"] .md-typeset .original > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset .original > summary {
  background-color: rgba(255, 152, 0, 0.2);
}

.md-typeset table:not([class]) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--wiki-card-border);
  border-radius: 10px;
  overflow: hidden;
}

.md-typeset table:not([class]) :is(th, td) {
  padding: 0.72rem 0.88rem;
}

.md-typeset table:not([class]) th {
  background: var(--wiki-table-head);
  color: #fff;
  font-weight: 700;
}

.md-typeset table:not([class]) tr:nth-child(even) td {
  background: var(--wiki-table-zebra);
}

/* ═══════════════════════════════════════
   Navigation
   ═══════════════════════════════════════ */

/* --- Shared --- */
.md-header            { box-shadow: none !important; }
.md-header__source,
.md-nav__source       { display: none !important; }
.md-content > .md-typeset > h1:first-of-type { display: none !important; }

/* --- Desktop (≥ 76.2em): single-line merged bar --- */
@media screen and (min-width: 76.2344em) {
  .md-header {
    --wiki-nav-row-height: 3rem;
    --wiki-search-collapsed-width: 13rem;
    --wiki-search-expanded-width: 19rem;
    --wiki-search-panel-top: 0.45rem;
    --wiki-search-panel-gutter: 0.25rem;
  }

  /* Title: invisible spacer pushes search to the right */
  .md-header__title {
    display: block !important;
    visibility: hidden !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .md-header__inner { height: var(--wiki-nav-row-height); }

  /* Pull tabs into the header row */
  .md-tabs {
    margin-top: calc(var(--wiki-nav-row-height) * -1);
    height: var(--wiki-nav-row-height);
    display: flex;
    align-items: center;
    background: transparent !important;
    pointer-events: none;
  }
  .md-tabs * { pointer-events: auto; }

  .md-tabs .md-tabs__list {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .md-tabs__link {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    opacity: 0.82;
  }
  .md-tabs__link--active,
  .md-tabs__link:hover { opacity: 1; }

  /* Search: pill shape, constrained to avoid tab overlap */
  .md-search {
    max-width: var(--wiki-search-collapsed-width);
    overflow: visible;
  }
  .md-search__form {
    border-radius: 1.2rem !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }
  [data-md-toggle="search"]:checked ~ .md-header .md-search__inner {
    position: fixed !important;
    top: var(--wiki-search-panel-top) !important;
    right: var(--wiki-search-panel-gutter) !important;
    left: auto !important;
    width: var(--wiki-search-expanded-width) !important;
    max-width: calc(100vw - (var(--wiki-search-panel-gutter) * 2)) !important;
    z-index: 10 !important;
  }
  [data-md-toggle="search"]:checked ~ .md-header .md-search__form {
    border-radius: 0.5rem !important;
  }
  [data-md-toggle="search"]:checked ~ .md-header .md-search__output {
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
  }
  .md-search-result__link,
  .md-search-result__article,
  .md-search-result__terms,
  .md-search-result__article :is(a, p, span, strong, em) {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* --- Mobile (< 76.2em): Material default + minor tweaks --- */
@media screen and (max-width: 76.2343em) {
  .md-header__title,
  .md-tabs { display: none !important; }

  /* Keep the drawer above Material's backdrop so nav items stay clickable */
  .md-sidebar--primary {
    z-index: 6;
  }

  .md-nav--primary > .md-nav__title { text-indent: -9999px; overflow: hidden; }
  .md-nav--primary > .md-nav__title .md-logo { text-indent: 0; }
  .md-nav--primary .md-nav__item { font-size: 0.78rem; }
}

@media screen and (max-width: 60em) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 45em) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .card {
    padding: 1.15rem;
  }

  .md-typeset {
    font-size: 0.8rem;
  }

  .md-typeset :is(pre, .highlight pre) {
    max-height: 460px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }


  .md-nav--primary .md-nav__title {
    padding: 0.8rem 0.9rem;
  }
}

/* ═══════════════════════════════════════
   Featured Carousel
   ═══════════════════════════════════════ */

.featured-carousel {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 1rem;
  margin: 0 -0.5rem;
  scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.featured-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: white !important;
  position: relative;
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
  transition: transform 0.2s;
}

.featured-card:hover {
  transform: translateY(-3px);
}

.featured-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  z-index: 0;
}

/* Featured card color themes */
.featured-card--blue { background: linear-gradient(135deg, #1a237e, #42a5f5); }
.featured-card--green { background: linear-gradient(135deg, #1b5e20, #66bb6a); }
.featured-card--purple { background: linear-gradient(135deg, #4a148c, #ab47bc); }
.featured-card--orange { background: linear-gradient(135deg, #e65100, #ffa726); }
.featured-card--teal { background: linear-gradient(135deg, #004d40, #26a69a); }

@media screen and (max-width: 45em) {
  .featured-card {
    flex: 0 0 160px;
    height: 120px;
  }
  .featured-card-title {
    font-size: 0.75rem;
  }
}

/* Blog post cover (bottom of post) */
.blog-cover {
  margin: 2rem 0 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.blog-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ═══════════════════════════════════════
   Repository & Social Cards
   ═══════════════════════════════════════ */

.repo-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem;
}

.repo-card {
  padding: 0.5rem;
  flex: 1 1 260px;
  max-width: 100%;
  text-align: center;
}

.repo-card a {
  text-decoration: none !important;
}

/* GitHub README Card */
.gh-card-img {
  width: 100%;
  max-width: 420px;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

/* GitHub Profile Card */
.gh-profile-card {
  border: 1px solid var(--wiki-card-border);
  border-radius: 8px;
  padding: 14px 16px;
  background-color: var(--wiki-card-bg);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gh-profile-card:hover,
a:hover .gh-profile-card {
  border-color: #24292f;
  box-shadow: 0 2px 12px rgba(36, 41, 47, 0.12);
}

[data-md-color-scheme="slate"] .gh-profile-card:hover,
[data-md-color-scheme="slate"] a:hover .gh-profile-card {
  border-color: #58a6ff;
  box-shadow: 0 2px 12px rgba(88, 166, 255, 0.15);
}

.gh-profile-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-logo-area { flex-shrink: 0; }

.gh-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.gh-info { flex: 1; min-width: 0; }

.gh-platform {
  font-size: 0.7rem;
  color: #24292f;
  font-weight: 600;
  letter-spacing: 0.04em;
}

[data-md-color-scheme="slate"] .gh-platform {
  color: #58a6ff;
}

.gh-username {
  font-size: 0.92rem;
  font-weight: 700;
  color: inherit;
}

.gh-arrow {
  flex-shrink: 0;
  opacity: 0.4;
  color: inherit;
}

.gh-arrow svg {
  width: 18px;
  height: 18px;
}

/* XHS Note Card */
.xhs-note-card {
  border: 1px solid var(--wiki-card-border);
  border-radius: 6px;
  padding: 12px 16px 10px;
  background-color: var(--wiki-card-bg);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xhs-note-card:hover,
a:hover .xhs-note-card {
  border-color: #ff2442;
  box-shadow: 0 2px 12px rgba(255, 36, 66, 0.12);
}

.xhs-note-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.xhs-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ff2442;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.xhs-badge-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.xhs-note-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.xhs-note-desc {
  font-size: 0.78rem;
  color: var(--wiki-muted);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.xhs-note-stats {
  display: flex;
  gap: 14px;
  align-items: center;
}

.xhs-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--wiki-muted);
}

.xhs-stat svg {
  width: 13px;
  height: 13px;
  color: #ff2442;
  flex-shrink: 0;
}

/* XHS Profile Card */
.xhs-card {
  border: 1px solid var(--wiki-card-border);
  border-radius: 8px;
  padding: 14px 16px;
  background-color: var(--wiki-card-bg);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xhs-card:hover,
a:hover .xhs-card {
  border-color: #ff2442;
  box-shadow: 0 2px 12px rgba(255, 36, 66, 0.12);
}

.xhs-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xhs-logo-area {
  flex-shrink: 0;
}

.xhs-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.xhs-info {
  flex: 1;
  min-width: 0;
}

.xhs-platform {
  font-size: 0.7rem;
  color: #ff2442;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.xhs-username {
  font-size: 0.92rem;
  font-weight: 700;
  color: inherit;
}

.xhs-desc {
  font-size: 0.75rem;
  color: var(--wiki-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhs-arrow {
  flex-shrink: 0;
  opacity: 0.4;
  color: inherit;
}

.xhs-arrow svg {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════
   Blog — compact post listing
   ═══════════════════════════════════════ */

.md-post {
  margin-bottom: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}

.md-post__header {
  margin-bottom: 0.15rem !important;
}

.md-post__content > p {
  margin-bottom: 0.3rem !important;
  font-size: 0.8rem;
}

/* Smaller post title */
.md-post .md-post__content h2 {
  font-size: 1.05rem;
  margin: 0.2rem 0 0.15rem;
}

/* Compact meta line */
.md-post__meta {
  font-size: 0.7rem !important;
  margin-bottom: 0.1rem !important;
}

/* ">> 继续阅读" button style */
.md-post .md-post__action a {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.92rem;
  border-radius: 7px;
  border: 1px solid var(--wiki-accent-strong);
  background: var(--wiki-accent);
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none !important;
  margin-top: 0.3rem;
  box-shadow: 0 2px 10px rgba(40, 53, 147, 0.18);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.md-post .md-post__action a:hover {
  transform: translateY(-1px);
  background: var(--wiki-accent-strong);
  border-color: var(--wiki-accent-strong);
  box-shadow: 0 4px 12px rgba(40, 53, 147, 0.25);
}

.md-post .md-post__action a::before {
  content: "» ";
}

[data-md-color-scheme="slate"] .md-post .md-post__action a {
  border-color: rgba(197, 202, 233, 0.5);
}


/* Tags on posts */
.md-post .md-tags {
  margin-top: 0.2rem;
  gap: 0.3rem;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--wiki-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--wiki-scrollbar), var(--wiki-accent));
  border-radius: 999px;
  border: 2px solid var(--wiki-scrollbar-track);
}

/* ═══════════════════════════════════════
   Blog Social Share
   ═══════════════════════════════════════ */

.blog-share {
  margin: 3rem 0 2rem;
  padding: 1.5rem;
  border-top: 1px solid var(--wiki-card-border);
  text-align: center;
}

.blog-share-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wiki-muted);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-share-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  color: white !important;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn--wechat { background-color: #07c160; }
.share-btn--xhs { background-color: #ff2442; }
.share-btn--github { background-color: #24292f; }

.share-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* ═══════════════════════════════════════
   Enhanced Prompt-Block
   ═══════════════════════════════════════ */

.prompt-block-enhanced {
  position: relative;
  margin: 1.5rem 0;
  border: 1px solid var(--wiki-card-border);
  border-left: 4px solid var(--wiki-accent);
  border-radius: 12px;
  background: var(--wiki-prompt-bg);
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: var(--wiki-card-shadow);
}

.prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--wiki-card-border);
}

.prompt-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wiki-accent);
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prompt-copy-btn {
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: var(--wiki-muted);
  transition: background 0.2s, color 0.2s;
}

.prompt-copy-btn:hover {
  background: rgba(63, 81, 181, 0.1);
  color: var(--wiki-accent);
}

.prompt-content {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--md-typeset-color);
  white-space: pre-wrap;
  word-break: break-word;
}

[data-md-color-scheme="slate"] .prompt-block-enhanced {
  background: #1e2233;
}
