:root {
  --vp-c-brand-1: #0f766e;
  --vp-c-brand-2: #0d9488;
  --vp-c-brand-3: #14b8a6;
  --vp-c-brand-soft: rgba(20, 184, 166, 0.14);
  --vp-home-hero-name-color: transparent;
  --vp-home-hero-name-background: linear-gradient(135deg, #0f766e, #2563eb);
  --vp-home-hero-image-background-image: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(37, 99, 235, 0.18));
  --vp-home-hero-image-filter: blur(52px);
}

.dark {
  --vp-c-brand-1: #5eead4;
  --vp-c-brand-2: #2dd4bf;
  --vp-c-brand-3: #14b8a6;
}

.VPDoc .content-container {
  max-width: 1080px;
}

.vp-doc h2 {
  margin-top: 34px;
}

.vp-doc table {
  display: table;
  width: 100%;
}

.vp-doc figure {
  margin: 20px 0 32px;
}

.vp-doc figure img {
  width: 100%;
  border: 1px solid var(--vp-c-divider);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  background: var(--vp-c-bg-soft);
  cursor: zoom-in;
}

.vp-doc figcaption {
  margin-top: 8px;
  color: var(--vp-c-text-2);
  font-size: 13px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.feature-card {
  padding: 16px;
  border: 1px solid var(--vp-c-divider);
  border-radius: 14px;
  background: var(--vp-c-bg-soft);
}

.feature-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--vp-c-text-1);
}

.feature-card span {
  color: var(--vp-c-text-2);
  font-size: 14px;
  line-height: 1.7;
}

.flow-list li {
  margin: 7px 0;
}

.image-preview-open {
  overflow: hidden;
}

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px 76px;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
}

.image-preview__figure {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: min(1180px, 100%);
  max-height: 100%;
  margin: 0;
}

.image-preview__image {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  background: #fff;
  object-fit: contain;
}

.image-preview__caption,
.image-preview__count {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.image-preview__count {
  color: rgba(255, 255, 255, 0.62);
}

.image-preview__close,
.image-preview__nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.image-preview__close:hover,
.image-preview__nav:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.image-preview__close {
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  font-size: 30px;
  line-height: 1;
}

.image-preview__nav {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
}

.image-preview__nav:hover {
  transform: translateY(calc(-50% - 1px));
}

.image-preview__nav--prev {
  left: 22px;
}

.image-preview__nav--next {
  right: 22px;
}

@media (max-width: 640px) {
  .image-preview {
    padding: 64px 14px 28px;
  }

  .image-preview__image {
    max-height: calc(100vh - 180px);
  }

  .image-preview__close {
    top: 12px;
    right: 12px;
  }

  .image-preview__nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .image-preview__nav:hover {
    transform: translateY(-1px);
  }
}
