:root {
  color-scheme: dark;
  --bg: #0c1322; --stage: #0f1729; --card: #151f36; --line: #24314f;
  --text: #e9eef8; --muted: #93a3c0; --accent: #62c0c0; --accent-ink: #062a2c; --violet: #8f82f2;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.7;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header.top { position: sticky; top: 0; z-index: 5; background: rgba(12, 19, 34, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { font-weight: 700; color: var(--text); letter-spacing: .2px; }
.brand i { font-style: normal; color: var(--accent); }
header.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; overflow-x: auto; white-space: nowrap; }
header.top nav a { color: var(--muted); }
header.top nav a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 64px 0 40px; text-align: center;
  background: radial-gradient(900px 380px at 50% -80px, rgba(98, 192, 192, .16), transparent 70%); }
.hero h1 { margin: 0 auto 16px; max-width: 820px; font-size: clamp(28px, 5vw, 46px); line-height: 1.2; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin: 0 auto 28px; max-width: 720px; color: var(--muted); font-size: clamp(15px, 2vw, 18px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-size: 15px;
  font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--card); cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }

section { padding: 48px 0; }
section h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); }
section p.sub { margin: 0 0 24px; color: var(--muted); max-width: 760px; }

.demo { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--stage); }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted); }
.demo-bar a { margin-left: auto; }
.demo-stage { position: relative; height: min(78vh, 760px); min-height: 480px; }
.demo-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 16px; text-align: center; border: 0; width: 100%; color: var(--text); cursor: pointer; font-family: inherit;
  background: linear-gradient(rgba(12, 19, 34, .55), rgba(12, 19, 34, .88)), url(img/gallery-dark.webp) top center / cover no-repeat; }
.demo-poster small { color: var(--muted); font-size: 13px; }
.demo-poster .btn { pointer-events: none; font-size: 16px; padding: 13px 26px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tile h3 { margin: 0 0 6px; font-size: 16px; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; }
.tile code, td code, p code { font-family: var(--mono); font-size: .92em; color: var(--violet); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; background: var(--card); }
tr:last-child td { border-bottom: 0; }

pre { margin: 0 0 16px; padding: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px;
  background: var(--stage); font: 13.5px/1.6 var(--mono); color: #d5def0; }
figure { margin: 0 0 20px; }
figure img { border: 1px solid var(--line); border-radius: 14px; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }

details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 16px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
details p { margin: 0 0 14px; color: var(--muted); }

footer { padding: 32px 16px 40px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }
footer a { color: var(--muted); }
footer p { margin: 4px 0; }
@media (max-width: 600px) { .hero { padding-top: 40px; } section { padding: 36px 0; } header.top nav { gap: 14px; } }
