:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #eef2f7;
  --text: #161b22;
  --muted: #57606a;
  --border: #d8dee4;
  --accent: #175cd3;
  --accent-hover: #1248a8;
  --teal: #0f766e;
  --shadow: 0 12px 32px rgba(22, 27, 34, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-alt: #131820;
    --text: #e6edf3;
    --muted: #8b949e;
    --border: #30363d;
    --accent: #4493f8;
    --accent-hover: #6cb0ff;
    --teal: #5eead4;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.demo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 13px;
}

.demo-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
}

.demo-pin {
  color: var(--accent);
  font-weight: 600;
}

.demo-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.demo-list {
  list-style: none;
  margin: 0;
  padding: 8px;
}

.demo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
}

.demo-item.selected {
  background: var(--accent);
  color: #ffffff;
}

.demo-item.selected span {
  color: rgba(255, 255, 255, 0.85);
}

.demo-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-alt);
  color: var(--muted);
  flex-shrink: 0;
}

.demo-item.selected .demo-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.demo-item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.demo-item-body strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-item-body span {
  font-size: 11px;
  color: var(--muted);
}

.demo-footer {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

.section {
  padding: 44px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

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

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.bullet-list,
.step-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.bullet-list li,
.step-list li {
  margin-bottom: 10px;
}

.bullet-list strong,
.step-list strong {
  color: var(--text);
}

.site-footer {
  padding: 24px 0 36px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 820px) {
  .hero-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}
