@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* 仅在暗黑模式下对 logo 图片应用颜色反转 */
html.dark .VPImage.logo {
  filter: invert(1) hue-rotate(180deg);
}

/* 顶部导航栏搜索框 */
@media (min-width: 960px) {
  .DocSearch-Button {
    width: 400px;
    max-width: 400px;
    justify-content: space-between;
  }
}

/* Official Home Style */
.VPHome {
  --official-primary: #2563eb;
  --official-accent: #f97316;
  --official-text: #10213a;
  --official-muted: #526277;
  --official-border: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(1200px 540px at 0% -15%, rgba(37, 99, 235, 0.16), transparent 56%),
    radial-gradient(1100px 420px at 100% 0%, rgba(249, 115, 22, 0.09), transparent 52%),
    linear-gradient(180deg, #f4f8ff 0%, #f7fafc 46%, #f8fafc 100%);
  font-family: 'Source Sans 3', sans-serif;
}

.VPHome .VPHero {
  padding-top: calc(var(--vp-nav-height, 64px) + 30px);
}

.VPHome .VPHero .name {
  color: var(--official-primary);
  -webkit-text-fill-color: var(--official-primary);
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.VPHome .VPHero .text {
  color: var(--official-text);
  -webkit-text-fill-color: var(--official-text);
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.VPHome .VPHero .tagline {
  max-width: 700px;
  color: var(--official-muted);
  font-size: 19px;
  line-height: 1.7;
}

.VPHome .VPHero .actions {
  padding-top: 10px;
}

.VPHome .VPHero .action {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.VPHome .VPHero .action:hover {
  transform: translateY(-1px);
}

.VPHome .VPHero .action.brand {
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
}

.VPHome .VPHero .action.alt {
  border-color: rgba(15, 23, 42, 0.12);
}

.VPHome .VPFeature {
  border: 1px solid var(--official-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.VPHome .VPFeature:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  border-color: rgba(37, 99, 235, 0.18);
}

.VPHome .VPFeature .title {
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
}

.VPHome .VPFeature .details {
  color: var(--official-muted);
  line-height: 1.7;
}

.official-home-shell {
  padding-top: 16px;
  padding-bottom: 48px;
}

.official-hero-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  margin: 18px 0;
}

.official-hero-panel-top {
  margin-top: 26px;
}

.official-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.official-btn.ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--official-text) !important;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

html.dark .official-btn.ghost {
  background: rgba(15, 23, 42, 0.45);
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.2);
}

.official-hero-copy,
.official-stage-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--official-border);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.08);
}

.official-hero-copy {
  padding: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.96));
}

.official-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--official-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.official-hero-copy h2 {
  margin: 18px 0 14px;
  color: var(--official-text);
  font-family: 'Lexend', sans-serif;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.official-hero-copy p {
  max-width: 640px;
  margin: 0;
  color: var(--official-muted);
  font-size: 18px;
  line-height: 1.75;
}

.official-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.official-metric-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.official-metric-card strong {
  display: block;
  color: var(--official-text);
  font-family: 'Lexend', sans-serif;
  font-size: 20px;
}

.official-metric-card span {
  display: block;
  margin-top: 6px;
  color: var(--official-muted);
  line-height: 1.55;
}

.official-stage-card {
  padding: 18px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(249, 115, 22, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(8, 15, 33, 0.97), rgba(17, 24, 39, 0.95));
  color: #f8fafc;
}

.official-stage-top {
  display: flex;
  gap: 8px;
}

.official-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.official-stage-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  margin-top: 18px;
}

.official-stage-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
}

.official-stage-sidebar span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.09);
  color: rgba(226, 232, 240, 0.84);
  font-size: 14px;
}

.official-stage-sidebar .is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(59, 130, 246, 0.18));
  color: #ffffff;
}

.official-stage-main {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.05);
}

.official-stage-banner {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(37, 99, 235, 0.18));
}

.official-stage-banner strong {
  display: block;
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
}

.official-stage-banner small {
  display: block;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.78);
}

.official-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.official-stage-stat {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.official-stage-stat.wide {
  grid-column: 1 / -1;
}

.official-stage-stat b {
  display: block;
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
}

.official-stage-stat span {
  display: block;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.55;
}

.official-stage-preloader {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}

.official-preloader-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.official-preloader {
  width: 46px;
  height: 46px;
  display: block;
}

.official-home-section {
  margin: 38px 0 10px;
}

.official-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.official-section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--official-muted);
  line-height: 1.7;
  text-align: right;
}

.official-home-section h2 {
  margin: 8px 0 0;
  color: var(--official-text);
  font-family: 'Lexend', sans-serif;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.official-grid {
  display: grid;
  gap: 18px;
}

.official-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.official-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.official-card {
  padding: 22px;
  border: 1px solid var(--official-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98));
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.official-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.09);
  border-color: rgba(37, 99, 235, 0.16);
}

.official-card h3 {
  margin: 0 0 10px;
  color: var(--official-text);
  font-family: 'Lexend', sans-serif;
  font-size: 22px;
  line-height: 1.2;
}

.official-card p {
  margin: 0;
  color: var(--official-muted);
  font-size: 17px;
  line-height: 1.7;
}

.official-card small {
  display: inline-block;
  margin-top: 10px;
  color: #64748b;
}

.official-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--official-primary);
  font-weight: 600;
  text-decoration: none;
}

.official-card a:hover,
.official-inline-link:hover {
  text-decoration: underline;
}

.official-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--official-primary);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.official-btn.alt {
  background: var(--official-accent);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.official-card-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--official-primary);
  font-size: 13px;
  font-weight: 700;
}

.official-card-spotlight {
  min-height: 268px;
}

.official-card-dark {
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(249, 115, 22, 0.15), transparent 65%),
    linear-gradient(180deg, #0f172a, #162033);
  border-color: rgba(255, 255, 255, 0.08);
}

.official-card-dark h3,
.official-card-dark p,
.official-card-dark li,
.official-card-dark a {
  color: #f8fafc;
}

.official-card-dark .official-card-tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.official-card-dark .official-mini-list li {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.official-card-module {
  min-height: 250px;
}

.official-mini-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.official-mini-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--official-muted);
  line-height: 1.55;
}

.official-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.official-process-card {
  padding: 24px;
  border: 1px solid var(--official-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.98));
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.official-process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--official-primary);
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
}

.official-process-card h3 {
  margin: 16px 0 10px;
  color: var(--official-text);
  font-family: 'Lexend', sans-serif;
  font-size: 22px;
}

.official-process-card p {
  margin: 0;
  color: var(--official-muted);
  line-height: 1.7;
}

.official-role-card {
  min-height: 210px;
}

.official-home-faq .official-card {
  min-height: 170px;
}

.official-inline-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--official-primary);
  font-weight: 700;
  text-decoration: none;
}

.official-screenshot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin-top: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  color: #64748b;
  font-size: 14px;
}

.official-screenshot.large {
  height: 360px;
  margin-top: 0;
}

.official-carousel {
  overflow: hidden;
  border-radius: 12px;
}

.official-carousel-track {
  display: flex;
  width: 400%;
  animation: official-carousel 20s ease-in-out infinite;
}

.official-carousel:hover .official-carousel-track {
  animation-play-state: paused;
}

.official-slide {
  width: 25%;
  flex: 0 0 25%;
}

.official-slide-caption {
  margin: 10px 2px 0;
  color: #475569;
  font-size: 14px;
}

.official-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.official-carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
}

@media (max-width: 960px) {
  .VPHome .VPHero {
    padding-top: calc(var(--vp-nav-height, 64px) + 18px);
  }

  .VPHome .VPHero .tagline {
    font-size: 17px;
  }

  .official-hero-panel,
  .official-process-grid,
  .official-metric-row {
    grid-template-columns: 1fr;
  }

  .official-section-head {
    display: block;
  }

  .official-section-head p {
    max-width: none;
    margin-top: 12px;
    text-align: left;
  }

  .official-grid.two,
  .official-grid.three {
    grid-template-columns: 1fr;
  }

  .official-home-section h2 {
    font-size: 26px;
  }

  .official-hero-copy,
  .official-stage-card,
  .official-card,
  .official-process-card {
    padding: 20px;
  }

  .official-hero-copy h2 {
    font-size: 30px;
  }

  .official-stage-body {
    grid-template-columns: 1fr;
  }

  .official-stage-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-screenshot.large {
    height: 240px;
  }
}

html.dark .VPHome {
  --official-text: #f8fafc;
  --official-muted: #c5d2e3;
  --official-border: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(1200px 540px at 0% -15%, rgba(37, 99, 235, 0.24), transparent 56%),
    radial-gradient(1100px 420px at 100% 0%, rgba(249, 115, 22, 0.12), transparent 52%),
    linear-gradient(180deg, #09111f 0%, #0b1324 46%, #0f172a 100%);
}

html.dark .VPHome .VPHero .name {
  color: #60a5fa;
  -webkit-text-fill-color: #60a5fa;
}

html.dark .VPHome .VPHero .text {
  color: #f8fafc;
  -webkit-text-fill-color: #f8fafc;
}

html.dark .VPHome .VPHero .tagline {
  color: #cbd5e1;
}

html.dark .VPHome .VPFeature {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.3);
}

html.dark .official-home-section h2,
html.dark .official-card h3,
html.dark .official-process-card h3 {
  color: #f8fafc;
}

html.dark .official-hero-copy,
html.dark .official-process-card,
html.dark .official-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.88));
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
}

html.dark .official-card p,
html.dark .official-hero-copy p,
html.dark .official-section-head p,
html.dark .official-mini-list li,
html.dark .official-process-card p,
html.dark .official-metric-card span {
  color: #c5d2e3;
}

html.dark .official-card small {
  color: #94a3b8;
}

html.dark .official-kicker,
html.dark .official-card-tag,
html.dark .official-process-card span {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

html.dark .official-metric-card {
  border-color: rgba(96, 165, 250, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.82));
}

html.dark .official-stage-card {
  box-shadow: 0 22px 56px rgba(2, 6, 23, 0.34);
}

html.dark .official-btn.alt {
  background: #fb923c;
}

html.dark .official-screenshot {
  border-color: rgba(148, 163, 184, 0.45);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
  color: #94a3b8;
}

html.dark .official-slide-caption {
  color: #cbd5e1;
}

html.dark .official-carousel-dots span {
  background: #475569;
}

@media (prefers-reduced-motion: reduce) {
  .VPHome .VPFeature,
  .VPHome .VPHero .action,
  .official-card,
  .official-inline-link,
  .official-btn {
    transition: none;
  }

  .official-carousel-track {
    animation: none;
  }
}

@keyframes official-carousel {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(-25%); }
  50%, 70% { transform: translateX(-50%); }
  75%, 95% { transform: translateX(-75%); }
  100% { transform: translateX(0); }
}
