:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #181818;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #9b9b9b;
  --accent: #10b981;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.has-js [data-intro] {
  opacity: 0;
  filter: blur(14px);
  will-change: transform, opacity, filter;
}

.has-js [data-intro="left"] {
  transform: translate3d(-42px, 0, 0);
}

.has-js [data-intro="right"] {
  transform: translate3d(42px, 0, 0);
}

.has-js [data-intro="top"] {
  transform: translate3d(0, -24px, 0);
}

.has-js [data-intro].is-visible {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.page {
  width: min(960px, 92vw);
  margin: 0 auto;
  min-height: 100vh;
  padding: 88px 0 72px;
  position: relative;
  display: flex;
  align-items: center;
}

.social-links {
  position: absolute;
  top: 20px;
  right: 0;
}

.social-links-list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links-item {
  display: flex;
}

.social-link {
  width: 34px;
  height: 34px;
  position: relative;
  color: #bfbfbf;
  display: inline-grid;
  place-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.social-link svg,
.social-link img {
  width: 24px;
  height: 24px;
}

.social-link svg {
  fill: currentColor;
}

.xhs-link svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  fill: #ffffff;
}

.xhs-link::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: #ff2442;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.xhs-link:hover::before {
  background: #ff4c65;
}

.douyin-link {
  padding: 0;
}

.douyin-link img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: block;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.hero {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 8vh, 88px);
  margin: 0 auto;
  justify-items: center;
}

.hero-brand {
  display: grid;
  gap: 0;
  padding: 8px 0 0;
  justify-items: center;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 24px;
  justify-items: center;
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pixel-title-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
  margin: 0;
}

.title-impact-stage {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
}

.pixel-title {
  position: relative;
  width: max-content;
  max-width: none;
  font-family: "Fira Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(7px, calc(1.15vw + 3px), 9px);
  line-height: 1.25;
  letter-spacing: -0.95px;
  padding: 0;
}

.pixel-title-layer {
  margin: 0;
  display: block;
  white-space: pre;
  user-select: none;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.pixel-title-shadow {
  position: relative;
  z-index: 1;
}

.pixel-title-main {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  color: #f3f3f3;
}

.pixel-title-shadow {
  color: transparent;
  -webkit-text-stroke: 0.85px #535353;
  paint-order: stroke fill;
}

.pixel-title-slices {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.pixel-title-slice {
  position: absolute;
  inset: 0;
  color: #f3f3f3;
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 16px, 0) scale(0.985);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.title-impact-dot,
.title-impact-burst,
.title-impact-ring,
.title-impact-particle {
  position: absolute;
  pointer-events: none;
}

.title-impact-dot,
.title-impact-burst {
  left: 11.5%;
  bottom: 8px;
  z-index: 5;
}

.title-impact-dot {
  width: 32px;
  height: 32px;
  margin-left: -16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.45);
  transform-origin: 50% 100%;
}

.title-impact-burst {
  width: 0;
  height: 0;
}

.title-impact-ring {
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  opacity: 0;
}

.title-impact-particle {
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
  border-radius: 999px;
  opacity: 0;
}

.title-impact-particle.is-bright {
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.title-impact-particle.is-accent {
  background: #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
}

.title-impact-particle.is-cool {
  background: #8be9fd;
  box-shadow: 0 0 18px rgba(139, 233, 253, 0.35);
}

.has-js [data-title-animation] .pixel-title-shadow {
  opacity: 0.14;
}

.has-js [data-title-animation] .pixel-title-main {
  opacity: 0;
}

.has-js [data-title-animation].title-static .pixel-title-shadow {
  opacity: 1;
}

.has-js [data-title-animation].title-static .pixel-title-main {
  opacity: 1;
}

.has-js [data-title-animation].title-static .title-impact-dot,
.has-js [data-title-animation].title-static .title-impact-burst,
.has-js [data-title-animation].title-ready .title-impact-dot,
.has-js [data-title-animation].title-ready .title-impact-burst {
  opacity: 0;
}

.hero-description {
  margin: 0;
  padding: 24px 0;
  color: #ffffff;
  font-size: clamp(10px, 2.8vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-align: center;
}

.vibe-tip-wrap {
  position: relative;
  display: inline-block;
}

.vibe-tip-trigger {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.vibe-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #323232;
  background: #141414;
  color: #dddddd;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.vibe-tip[hidden] {
  display: none;
}

.command-row {
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: center;
}

.command-copy {
  min-width: 0;
}

.command-copy-group {
  --command-logo-height: 50px;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.command-logo-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: var(--command-logo-height);
  color: #d8d8d8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.command-logo-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.command-logo-link svg {
  display: block;
  width: auto;
  height: 100%;
}

.command-logo-github svg {
  fill: currentColor;
}

.command-kicker,
.command-note {
  margin: 0;
}

.command-kicker {
  color: #d8d8d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-note {
  margin-top: 8px;
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.65;
}

.command-note-en {
  color: var(--muted);
}

.terminal-wrap {
  width: 100%;
  min-width: 0;
}

.terminal-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #111111 0%, #0c0c0c 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.title {
  font-size: 13px;
  color: #bdbdbd;
}

.terminal-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.7;
}

.prompt {
  color: var(--accent);
  flex-shrink: 0;
}

code {
  display: block;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  word-break: normal;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

code::-webkit-scrollbar {
  display: none;
}

.copy-btn {
  border: none;
  border-radius: 0;
  background: transparent;
  color: #d3d3d3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  opacity: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: transparent;
  color: #f5f5f5;
  transform: translateY(-1px);
}

.copy-btn .icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-btn .icon-check {
  display: none;
}

.copy-btn.success {
  color: #f5f5f5;
  background: transparent;
}

.copy-btn.success .icon-copy {
  display: none;
}

.copy-btn.success .icon-check {
  display: block;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(56px, 9vh, 104px);
    justify-items: center;
  }

  .hero-description {
    text-align: center;
  }

  .pixel-title {
    font-size: 12px;
  }

  .title-impact-dot {
    width: 36px;
    height: 36px;
    margin-left: -18px;
  }
}

.tips {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #1d1d1d;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #444;
}

@media (max-width: 640px) {
  .page {
    min-height: auto;
    padding: 40px 0 48px;
    display: block;
  }

  .hero {
    margin-top: 56px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-copy {
    gap: 14px;
  }

  .command-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .command-copy-group {
    --command-logo-height: 46px;
    gap: 12px;
  }

  .terminal-body {
    font-size: 14px;
  }

  .command-note {
    font-size: 13px;
    line-height: 1.6;
  }

  .tips {
    flex-wrap: wrap;
  }

  .social-links {
    right: 0;
  }

  .social-links-list {
    gap: 10px;
  }

  .title-impact-dot,
  .title-impact-burst {
    left: 13%;
    bottom: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-js [data-intro] {
    opacity: 1;
    filter: none;
    transform: none;
    will-change: auto;
  }

  .social-link,
  .command-logo-link,
  .copy-btn {
    transition: none;
  }

  .has-js [data-title-animation] .pixel-title-shadow,
  .has-js [data-title-animation] .pixel-title-main {
    opacity: 1;
  }

  .title-impact-dot,
  .title-impact-burst,
  .pixel-title-slices {
    display: none;
  }
}
