/* ==========================================
   welcome.css — 插件安装引导页
   白底居中、左右等分；版心放大，避免小气
   ========================================== */

:root {
  --welcome-bg: #ffffff;
  --welcome-ink: #171717;
  --welcome-muted: #5c6370;
  --welcome-blue: #2563eb;
  --welcome-line: rgba(23, 23, 23, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--welcome-ink);
  background: var(--welcome-bg);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.welcome-shell {
  width: min(73rem, calc(100vw - 6rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 27.5rem minmax(0, 1fr);
  column-gap: 2.5rem;
  align-items: center;
  animation: welcomeRise 0.45s ease both;
}

.welcome-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
  color: #52525b;
  text-decoration: none;
}

.welcome-brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
}

.welcome-brand span {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.welcome-intro {
  margin-bottom: 2.25rem;
}

h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.1rem, 2.4vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.welcome-lede {
  margin: 0;
  color: var(--welcome-muted);
  font-size: 1.08rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.welcome-steps {
  position: relative;
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  width: 100%;
}

.welcome-steps::before {
  content: "";
  position: absolute;
  left: 0.78rem;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 1px;
  background: var(--welcome-line);
}

.welcome-step {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.welcome-step-index {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.45rem;
  margin-top: 0.1rem;
  background: var(--welcome-bg);
  color: var(--welcome-blue);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.welcome-step-body h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.28rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.welcome-step-body h2 .lt-icon-wrap,
.welcome-step-body h2 .lt-icon {
  color: var(--welcome-blue);
  flex-shrink: 0;
}

.welcome-step-body p {
  margin: 0;
  padding-left: 1.55rem;
  color: var(--welcome-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.welcome-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  padding: 0.88rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--welcome-ink);
  color: #fafafa;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.welcome-cta:hover {
  background: #0a0a0a;
  transform: translateY(-1px);
}

.welcome-cta:active {
  transform: translateY(0);
}

.welcome-cta:focus-visible,
.welcome-close:focus-visible {
  outline: 2px solid var(--welcome-blue);
  outline-offset: 3px;
}

.welcome-media {
  min-width: 0;
}

.welcome-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1964 / 1080;
  object-fit: contain;
  background: #f4f4f5;
  border: 0;
  outline: 0;
  border-radius: 1.15rem;
  box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.06);
}

.welcome-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.welcome-close:hover {
  background: rgba(23, 23, 23, 0.05);
  color: var(--welcome-ink);
}

@keyframes welcomeRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 841px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 840px) {
  .welcome-shell {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 4rem 1.5rem 2rem;
  }

  .welcome-media {
    order: -1;
  }

  h1 {
    font-size: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-shell,
  .welcome-cta,
  .welcome-close {
    animation: none;
    transition: none;
    transform: none;
  }
}
