/*
Theme Name: VVWiki
Theme URI: https://www.zevost.com/
Author: VVWiki Team
Author URI: https://www.zevost.com/
Description: A high-performance Wiki theme for WordPress powered by UnoCSS.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: vvwiki
*/

:root {
  --vvwiki-brand: #1d4ed8;
  --vvwiki-brand-dark: #1e40af;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.home {
  overflow-x: hidden;
  overflow-y: auto;
}

:is(.single-wiki, .single-post, .page:not(.home)) main,
:is(.single-wiki, .single-post, .page:not(.home)) article {
  overflow: visible;
}

.vvwiki-home-shell {
  min-height: calc(100vh - 8.5rem);
  min-height: calc(100dvh - 8.5rem);
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .vvwiki-home-shell {
    min-height: calc(100vh - 9rem);
    min-height: calc(100dvh - 9rem);
  }
}

body.home main {
  padding-bottom: 4.5rem;
}

body.home footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  margin-top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(6px);
}

body.home footer .mx-auto {
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
  text-align: center;
}

body.home footer nav {
  display: none;
}

body.home .vvwiki-hero-title img {
  display: inline-block;
  margin: 0 0.16em;
  vertical-align: middle;
  transform: translateY(0.08em);
}

a {
  text-decoration: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu > li > a {
  color: #475569;
  transition: color 0.2s ease;
}

.menu > li > a:hover {
  color: var(--vvwiki-brand);
}

.vvwiki-header-menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 0 0.25rem;
  padding: 0;
  list-style: none;
}

.vvwiki-header-menu > li {
  margin: 0;
  padding: 0;
}

.vvwiki-header-menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.2rem 0.3rem;
  border-bottom: 2px solid transparent;
  color: #334155;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.vvwiki-header-menu > li > a:hover {
  color: var(--vvwiki-brand);
  border-bottom-color: rgba(29, 78, 216, 0.3);
}

.vvwiki-header-menu > li.current-menu-item > a,
.vvwiki-header-menu > li.current-menu-ancestor > a,
.vvwiki-header-menu > li.current_page_item > a {
  color: #1d4ed8;
  border-bottom-color: rgba(29, 78, 216, 0.45);
}

.vvwiki-pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.vvwiki-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.72rem;
  border-radius: 0.7rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.vvwiki-pagination .page-numbers:hover {
  border-color: #93c5fd;
  color: var(--vvwiki-brand);
}

.vvwiki-pagination .page-numbers.current {
  border-color: rgba(29, 78, 216, 0.34);
  background: #eff6ff;
  color: #1e40af;
}

.line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vvwiki-card-cover {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.78rem;
  background: #f8fafc;
}

.vvwiki-card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  border-style: dashed;
}

.vvwiki-card-cover-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vvwiki-card-cover img {
  display: block;
  width: 100%;
  height: 10.4rem;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.vvwiki-card-cover-compact img {
  height: 8.2rem;
}

.vvwiki-card-cover-side {
  width: 5.8rem;
  border-radius: 0.62rem;
}

.vvwiki-card-cover-side img {
  height: 4.4rem;
}

.vvwiki-post-card-side {
  padding: 1rem 1.05rem;
}

.vvwiki-post-card-side-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(9.4rem, 24vw, 11rem);
  align-items: center;
  gap: 0.95rem;
}

.vvwiki-post-card-side .vvwiki-card-cover-side {
  width: 100%;
  border-radius: 0.72rem;
  aspect-ratio: 4 / 3;
  align-self: center;
  height: auto;
}

.vvwiki-post-card-side .vvwiki-card-cover-side img {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.vvwiki-post-card-side .vvwiki-card-cover-side.vvwiki-card-cover-placeholder {
  min-height: 0;
}

.vvwiki-related-list .vvwiki-post-card-side h3 {
  font-size: 1.02rem;
  line-height: 1.42;
}

.vvwiki-related-list .vvwiki-post-card-side .line-clamp-3 {
  -webkit-line-clamp: 2;
}

.vvwiki-related-list .vvwiki-post-card-side .line-clamp-2 {
  -webkit-line-clamp: 2;
}

.group:hover .vvwiki-card-cover img {
  transform: scale(1.02);
}

body.home .vvwiki-home-recommend {
  max-width: 50rem;
  padding-bottom: 0;
  transform: translateY(1.8rem);
}

body.home .vvwiki-home-recommend .grid {
  gap: 0.45rem;
}

body.home .vvwiki-home-recommend article {
  padding: 0.55rem !important;
}

body.home .vvwiki-home-recommend article h3 {
  font-size: 0.88rem;
  line-height: 1.28;
}

body.home .vvwiki-home-recommend article p {
  font-size: 0.73rem;
  line-height: 1.32;
}

body.home .vvwiki-home-recommend .vvwiki-card-cover-compact img {
  height: 100%;
}

body.home .vvwiki-home-recommend .vvwiki-card-cover-compact {
  aspect-ratio: 16 / 9;
}

body.home .vvwiki-home-recommend .vvwiki-card-cover-compact.vvwiki-card-cover-placeholder {
  min-height: 0;
}

.vvwiki-wiki-archive-hero {
  background:
    radial-gradient(circle at 9% -12%, rgba(59, 130, 246, 0.13), rgba(59, 130, 246, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.vvwiki-wiki-archive-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem;
  border: 1px solid #dbe2ee;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.vvwiki-wiki-archive-search-input {
  width: 100%;
  min-width: 0;
  height: 2.65rem;
  border: 0;
  border-radius: 0.7rem;
  background: #fff;
  padding: 0 0.9rem;
  color: #334155;
  font-size: 0.95rem;
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.vvwiki-wiki-archive-search-input::placeholder {
  color: #94a3b8;
}

.vvwiki-wiki-archive-search-input:focus {
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.45);
}

.vvwiki-wiki-archive-search-btn {
  height: 2.65rem;
  min-width: 6rem;
  border: 0;
  border-radius: 0.72rem;
  background: var(--vvwiki-brand);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0 1rem;
  cursor: pointer;
  box-shadow: 0 10px 20px -14px rgba(29, 78, 216, 0.72);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.vvwiki-wiki-archive-search-btn:hover {
  transform: translateY(-1px);
  background: var(--vvwiki-brand-dark);
}

.vvwiki-wiki-archive-chip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.vvwiki-wiki-archive-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  padding: 0.2rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #d4dce8;
  background: #fff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.vvwiki-wiki-archive-chip:hover {
  border-color: #93c5fd;
  color: var(--vvwiki-brand);
}

.vvwiki-wiki-archive-chip.is-active {
  border-color: rgba(29, 78, 216, 0.3);
  background: #eff6ff;
  color: #1e40af;
}

.vvwiki-wiki-archive-grid .vvwiki-wiki-archive-card {
  height: 100%;
  padding: 0.72rem;
}

.vvwiki-wiki-archive-cover {
  aspect-ratio: 16 / 9;
  border-radius: 0.72rem;
}

.vvwiki-wiki-archive-cover img {
  width: 100%;
  height: 100%;
}

.vvwiki-wiki-archive-cover.vvwiki-card-cover-placeholder {
  min-height: 0;
}

.vvwiki-wiki-archive-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.4rem;
  padding: 0.1rem 0.48rem;
  border-radius: 0.42rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vvwiki-wiki-archive-title {
  font-size: 0.98rem;
  line-height: 1.42;
}

.vvwiki-wiki-archive-summary {
  line-height: 1.6;
  -webkit-line-clamp: 2;
}

.vvwiki-search-hero {
  background:
    radial-gradient(circle at 12% -8%, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.vvwiki-search-inline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem;
  border: 1px solid #dbe2ee;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.vvwiki-search-inline-input {
  width: 100%;
  min-width: 0;
  height: 2.65rem;
  border: 0;
  border-radius: 0.7rem;
  background: #fff;
  padding: 0 0.88rem;
  color: #334155;
  font-size: 0.95rem;
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.vvwiki-search-inline-input::placeholder {
  color: #94a3b8;
}

.vvwiki-search-inline-input:focus {
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.45);
}

.vvwiki-search-inline-btn {
  height: 2.65rem;
  min-width: 5.25rem;
  border: 0;
  border-radius: 0.72rem;
  background: var(--vvwiki-brand);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px -14px rgba(29, 78, 216, 0.72);
}

.vvwiki-search-inline-btn:hover {
  transform: translateY(-1px);
  background: var(--vvwiki-brand-dark);
}

.vvwiki-search-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.vvwiki-search-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d4dce8;
  background: #fff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.vvwiki-search-chip:hover {
  border-color: #93c5fd;
  color: var(--vvwiki-brand);
}

.vvwiki-search-chip.is-active {
  border-color: rgba(29, 78, 216, 0.3);
  background: #eff6ff;
  color: #1e40af;
}

.vvwiki-search-grid .vvwiki-search-card {
  height: 100%;
}

.vvwiki-search-card-cover {
  aspect-ratio: 16 / 9;
}

.vvwiki-search-card-cover img {
  width: 100%;
  height: 100%;
}

.vvwiki-search-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.36rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.42rem;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vvwiki-search-type-wiki {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.vvwiki-search-type-post {
  color: #0f766e;
  background: #f0fdfa;
  border-color: #99f6e4;
}

.vvwiki-search-type-page {
  color: #a16207;
  background: #fefce8;
  border-color: #fde68a;
}

.vvwiki-search-type-generic {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.vvwiki-toc-nav {
  scrollbar-width: thin;
}

.vvwiki-toc-link {
  border-radius: 0.625rem;
  color: #64748b;
}

.vvwiki-toc-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vvwiki-toc-link-active {
  color: #374151 !important;
  background: #f3f4f6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.prose img {
  border-radius: 0.75rem;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose .wp-block-heading,
:is(.single-wiki, .single-post, .page:not(.home)) .prose h2,
:is(.single-wiki, .single-post, .page:not(.home)) .prose h3,
:is(.single-wiki, .single-post, .page:not(.home)) .prose h4 {
  margin-top: 1.05em;
  margin-bottom: 0.42em;
  line-height: 1.35;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose .wp-block-heading:first-child,
:is(.single-wiki, .single-post, .page:not(.home)) .prose h2:first-child,
:is(.single-wiki, .single-post, .page:not(.home)) .prose h3:first-child,
:is(.single-wiki, .single-post, .page:not(.home)) .prose h4:first-child {
  margin-top: 0;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose p {
  text-indent: 2em;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose li p,
:is(.single-wiki, .single-post, .page:not(.home)) .prose blockquote p,
:is(.single-wiki, .single-post, .page:not(.home)) .prose figcaption p,
:is(.single-wiki, .single-post, .page:not(.home)) .prose td p,
:is(.single-wiki, .single-post, .page:not(.home)) .prose th p {
  text-indent: 0;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose {
  max-width: 100%;
  overflow-wrap: anywhere;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose img,
:is(.single-wiki, .single-post, .page:not(.home)) .prose video,
:is(.single-wiki, .single-post, .page:not(.home)) .prose iframe,
:is(.single-wiki, .single-post, .page:not(.home)) .prose canvas,
:is(.single-wiki, .single-post, .page:not(.home)) .prose svg {
  max-width: 100%;
  height: auto;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose figure,
:is(.single-wiki, .single-post, .page:not(.home)) .prose .wp-block-image,
:is(.single-wiki, .single-post, .page:not(.home)) .prose .wp-block-embed,
:is(.single-wiki, .single-post, .page:not(.home)) .prose .wp-block-gallery {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose .wp-block-table {
  margin: 1rem 0 1.45rem;
  border: 1px solid #475569;
  border-radius: 0.9rem;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose table {
  display: table;
  width: 100%;
  min-width: 34rem;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
  background: transparent;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.55;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose table th,
:is(.single-wiki, .single-post, .page:not(.home)) .prose table td {
  padding: 0.78rem 0.86rem;
  border-right: 1px solid #475569;
  border-bottom: 1px solid #475569;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose table th:last-child,
:is(.single-wiki, .single-post, .page:not(.home)) .prose table td:last-child {
  border-right: 0;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose table tr:last-child > * {
  border-bottom: 0;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #0f172a;
  font-weight: 700;
  border-bottom-width: 2px;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid #334155;
  border-radius: 0.9rem;
  background: #1e293b;
  color: #dbe4ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px -16px rgba(15, 23, 42, 0.7);
  font-size: 0.95rem;
  line-height: 1.72;
  -webkit-overflow-scrolling: touch;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose pre code {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: pre;
}

:is(.single-wiki, .single-post, .page:not(.home)) .prose :not(pre) > code {
  padding: 0.16em 0.44em;
  border: 1px solid #cbd5e1;
  border-radius: 0.42rem;
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.9em;
}

.vvwiki-toc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vvwiki-toc-item-level-2 {
  margin-left: 0;
  font-size: 0.94rem;
}

.vvwiki-toc-item-level-3 {
  margin-left: 0.62rem;
  font-size: 0.88rem;
}

.vvwiki-toc-item-level-4 {
  margin-left: 1.28rem;
  font-size: 0.82rem;
}

@media (min-width: 1536px) {
  body:not(.home) main.mx-auto.w-full.max-w-7xl,
  body:not(.home) header > .mx-auto.w-full.max-w-7xl {
    max-width: 92rem;
  }

  :is(.single-wiki, .single-post, .page:not(.home)) #wiki-top {
    max-width: 78rem;
  }

  :is(.single-wiki, .single-post, .page:not(.home)) #wiki-top > .grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.8rem;
  }

  body.home .vvwiki-home-shell > section:first-child > .mx-auto {
    max-width: 64rem;
  }

  body.home .vvwiki-home-shell > section:first-child form {
    max-width: 60rem;
  }

  body.home .vvwiki-home-shell > section:first-child .vvwiki-hero-title {
    font-size: clamp(4rem, 4.6vw, 5rem);
  }

  body.home .vvwiki-home-shell > section:first-child input[type="search"] {
    height: 3.4rem;
    font-size: 1.02rem;
  }

  body.home .vvwiki-home-shell > section:first-child button[type="submit"] {
    height: 3.4rem;
    min-width: 12rem;
    font-size: 1.12rem;
  }

  body.home .vvwiki-home-recommend {
    max-width: 62rem;
    transform: translateY(1.25rem);
  }

  body.home .vvwiki-home-recommend .grid {
    gap: 0.62rem;
  }

  body.home .vvwiki-home-recommend article {
    padding: 0.7rem !important;
  }

  body.home .vvwiki-home-recommend article h3 {
    font-size: 0.96rem;
    line-height: 1.34;
  }

  body.home .vvwiki-home-recommend article p {
    font-size: 0.8rem;
    line-height: 1.42;
  }

  .vvwiki-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1920px) {
  body:not(.home) main.mx-auto.w-full.max-w-7xl,
  body:not(.home) header > .mx-auto.w-full.max-w-7xl {
    max-width: 100rem;
  }

  :is(.single-wiki, .single-post, .page:not(.home)) #wiki-top {
    max-width: 84rem;
  }

  :is(.single-wiki, .single-post, .page:not(.home)) #wiki-top > .grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
  }

  body.home .vvwiki-home-shell > section:first-child > .mx-auto {
    max-width: 70rem;
  }

  body.home .vvwiki-home-shell > section:first-child form {
    max-width: 66rem;
  }

  body.home .vvwiki-home-recommend {
    max-width: 68rem;
    transform: translateY(0.95rem);
  }

  .vvwiki-search-grid {
    gap: 1rem;
  }
}


@media (min-width: 768px) {
  :is(.single-wiki, .single-post, .page:not(.home)) .vvwiki-toc-aside {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    height: fit-content;
    align-self: start;
  }

  :is(.single-wiki, .single-post, .page:not(.home)) .vvwiki-toc-nav {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 767px) {
  .vvwiki-home-shell {
    min-height: auto;
    gap: 0.85rem;
  }

  .vvwiki-home-recommend {
    display: none;
  }

  body.home footer .mx-auto {
    justify-content: center;
    gap: 0.35rem;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
    text-align: center;
  }

  :is(.single-wiki, .single-post, .page:not(.home)) .prose {
    font-size: 0.95rem;
    line-height: 1.72;
  }

  :is(.single-wiki, .single-post, .page:not(.home)) .prose table th,
  :is(.single-wiki, .single-post, .page:not(.home)) .prose table td {
    padding: 0.62rem 0.64rem;
    font-size: 0.92rem;
  }

  :is(.single-wiki, .single-post, .page:not(.home)) .prose table {
    min-width: 30rem;
  }

  :is(.single-wiki, .single-post, .page:not(.home)) .prose pre {
    padding: 0.88rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.66;
  }

  .vvwiki-card-cover img {
    height: 8.6rem;
  }

  .vvwiki-card-cover-compact img {
    height: 7.4rem;
  }

  .vvwiki-card-cover-side {
    width: 5.1rem;
  }

  .vvwiki-card-cover-side img {
    height: 3.9rem;
  }

  .vvwiki-post-card-side .vvwiki-card-cover-side {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .vvwiki-post-card-side .vvwiki-card-cover-side img {
    height: 100%;
    min-height: 0;
  }

  .vvwiki-post-card-side-wrap {
    grid-template-columns: minmax(0, 1fr) 7.6rem;
    align-items: center;
    gap: 0.72rem;
  }

  body.home .vvwiki-home-recommend {
    max-width: 100%;
    transform: none;
  }

  .vvwiki-search-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 0.42rem;
  }

  .vvwiki-search-inline-btn {
    width: 100%;
  }

  .vvwiki-wiki-archive-search {
    flex-direction: column;
    align-items: stretch;
    gap: 0.42rem;
  }

  .vvwiki-wiki-archive-search-btn {
    width: 100%;
  }
}
