html, body {
  height: 100%;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.brand img {
  height: 28px;
  width: auto;
}

.brand span {
  font-size: 18px;
  font-weight: 600;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-muted);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-main);
}

/* Hero */
.hero {
  padding: 120px 0 140px;
  background:
    radial-gradient(800px 400px at 50% -100px, rgba(96,165,250,.25), transparent),
    var(--bg-main);
}

.hero-inner {
  max-width: 720px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.25;
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 strong {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0;
}

/* Install */
.install-box {
  margin-top: 48px;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-section);
  border: 1px solid var(--border);
}

.install-title {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.install-command {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.cmd {
  flex: 1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  overflow: auto;
}

.cmd code {
  display: block;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  color: var(--text-main);
}

.install-command button {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  min-width: 84px;
}

.install-command button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,.35);
}

.install-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 18px;
}

/* Sections / Features */
.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--bg-muted);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.feature h2 {
  font-size: 32px;
  margin: 0 0 16px;
}

.feature p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 12px;
}

.feature p:last-child {
  margin-bottom: 0;
}

/* reverse：不用 direction，避免奇怪排版 */
.feature.reverse img { order: 2; }
.feature.reverse > div { order: 1; }

/* Footer */
.footer {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer .muted {
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 84px 0 96px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .install-command {
    flex-direction: column;
  }

  .install-command button {
    width: 100%;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature.reverse img,
  .feature.reverse > div {
    order: initial;
  }

  .section {
    padding: 64px 0;
  }
}
