:root {
  --bg: #07111f;
  --bg-soft: #0b1828;
  --surface: #0f2033;
  --surface-2: #13283e;
  --ink: #f2f6f4;
  --muted: #a9bacb;
  --faint: #71869b;
  --line: #29435c;
  --accent: #a8e6a3;
  --accent-ink: #0b1b19;
  --max: 1180px;
  --radius: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .22);
  color: var(--ink);
  background: var(--bg);
  font-family: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); }
body.is-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(169, 201, 223, .14);
  background: rgba(7, 17, 31, .92);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font: 700 15px/1 "JetBrains Mono", ui-monospace, monospace;
}
.brand strong { display: block; font-size: 15px; letter-spacing: 0; }
.brand small { display: block; margin-top: 1px; color: var(--faint); font-size: 11px; line-height: 1.2; }
.main-nav { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.main-nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.main-nav .nav-cta { color: var(--accent-ink); background: var(--accent); }
.top-help { border-top: 1px solid rgba(169, 201, 223, .1); border-bottom: 1px solid rgba(169, 201, 223, .14); background: var(--bg-soft); }
.top-help-inner { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.top-help strong { color: var(--ink); }
.top-qq { color: var(--accent); font: 700 13px "JetBrains Mono", ui-monospace, monospace; }
.top-help-copy { min-height: 28px; padding: 0 10px; border: 1px solid rgba(168, 230, 163, .5); border-radius: 6px; background: transparent; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.top-help-copy:hover { border-color: var(--accent); background: rgba(168, 230, 163, .08); }
.top-help-copy.copied::after { margin-left: 6px; content: "已复制"; font-size: 11px; }
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

.hero {
  overflow: hidden;
  padding: 84px 0 92px;
  border-bottom: 1px solid rgba(169, 201, 223, .1);
  background:
    radial-gradient(circle at 76% 8%, rgba(168, 230, 163, .12), transparent 25%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(390px, .8fr); gap: 70px; align-items: center; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font: 700 11px/1.2 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.08;
}
.hero h1 span { color: var(--accent); }
.hero-lede { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); border-color: var(--accent); }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button.secondary { background: transparent; color: var(--ink); }
.hero-note { max-width: 600px; margin: 17px 0 0; color: var(--faint); font-size: 12px; }
.hero-visual { position: relative; }
.hero-visual::after {
  position: absolute;
  right: -24px;
  bottom: -18px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(168, 230, 163, .4);
  border-radius: 50%;
  content: "";
}
.hero-visual img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 22px 36px rgba(0, 0, 0, .24)); }

.screenshots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.screenshot-card { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.screenshot-card img { width: 100%; aspect-ratio: 977 / 820; object-fit: cover; background: #171717; }
.screenshot-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 13px 15px 15px; }
.screenshot-card strong { font-size: 14px; }
.screenshot-card span, .screenshot-note { color: var(--faint); font-size: 12px; }
.screenshot-note { margin: 16px 0 0; }

.section { padding: 88px 0; }
.section.tinted { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 34px; }
.section-head h2 { max-width: 700px; margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.14; }
.section-head > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 15px; }
.section-head a { color: var(--accent); font-size: 13px; font-weight: 700; }

.search-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 26px; }
.search-field {
  min-height: 50px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
}
.search-field::placeholder { color: var(--faint); }
.search-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 230, 163, .16); }
.search-result { min-height: 24px; margin: 13px 0 0; color: var(--faint); font-size: 12px; }

.intent-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.intent-list a, .article-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.intent-list a { display: block; min-height: 130px; padding: 19px; }
.intent-list a:hover, .article-row:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.intent-list strong { display: block; font-size: 16px; line-height: 1.4; }
.intent-list span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }

.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.article-grid > article { min-width: 0; }
.article-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 20px; }
.article-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  font: 700 13px/1 "JetBrains Mono", ui-monospace, monospace;
}
.article-row h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.article-row p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; color: var(--faint); font-size: 11px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: stretch; }
.plain-panel, .warning-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.plain-panel h3, .warning-panel h3 { margin: 0; font-size: 23px; line-height: 1.25; }
.plain-panel p, .warning-panel p, .plain-panel li, .warning-panel li { color: var(--muted); font-size: 14px; }
.plain-panel ul, .warning-panel ul { display: grid; gap: 10px; margin: 18px 0 0; padding-left: 20px; }
.warning-panel { border-color: rgba(168, 230, 163, .4); }
.warning-panel a, .text-link { color: var(--accent); font-size: 13px; font-weight: 750; }
.text-link { display: inline-flex; margin-top: 17px; }

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.source-strip a { color: var(--accent); font-weight: 700; }

.contact-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--accent); border-radius: var(--radius); background: rgba(168, 230, 163, .08); }
.contact-strip h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.contact-strip p { max-width: 650px; margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.qq-number { display: inline-flex; min-height: 44px; align-items: center; padding: 0 15px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 700 15px "JetBrains Mono", ui-monospace, monospace; cursor: pointer; }
.qq-number.copied::after { margin-left: 8px; content: "已复制"; font: 700 11px "IBM Plex Sans", sans-serif; }

.page-hero { padding: 72px 0 62px; border-bottom: 1px solid rgba(169, 201, 223, .1); background: var(--bg-soft); }
.breadcrumbs { margin: 0 0 18px; color: var(--faint); font-size: 12px; }
.breadcrumbs a { color: var(--accent); }
.page-hero .hero-lede { max-width: 760px; }
.content-section { padding: 72px 0 90px; }
.content-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin: 36px 0 12px; font-size: 30px; line-height: 1.22; }
.prose h3 { margin: 26px 0 9px; font-size: 20px; line-height: 1.3; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 23px; }
.prose li + li { margin-top: 8px; }
.note { margin: 20px 0; padding: 15px 17px; border-left: 3px solid var(--accent); background: rgba(168, 230, 163, .08); color: var(--muted); font-size: 14px; }
.code-block { position: relative; overflow-x: auto; margin: 18px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #050c15; color: var(--accent); font: 14px/1.75 "JetBrains Mono", ui-monospace, Consolas, monospace; }
.copy-code { position: absolute; top: 9px; right: 9px; min-width: 40px; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); cursor: pointer; }
.copy-code:hover { border-color: var(--accent); color: var(--ink); }
.side-nav { position: sticky; top: 100px; padding-left: 20px; border-left: 1px solid var(--line); }
.side-nav h2 { margin: 0 0 10px; font-size: 12px; color: var(--faint); font-weight: 700; }
.side-nav a { display: block; padding: 7px 0; color: var(--muted); font-size: 13px; }
.side-nav a:hover { color: var(--accent); }

.faq-list { display: grid; gap: 10px; max-width: 850px; }
details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
summary { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; color: var(--ink); cursor: pointer; font-size: 15px; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { color: var(--accent); content: "+"; font: 24px/1 "JetBrains Mono", monospace; }
details[open] summary::after { content: "-"; }
details p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 14px; }

.site-footer { padding: 43px 0 50px; border-top: 1px solid var(--line); background: #050c15; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 28px; }
.footer-grid h2 { margin: 0 0 10px; font-size: 14px; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 13px; }
.footer-grid a { display: block; margin-top: 7px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .hero-grid, .content-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .hero-visual { max-width: 720px; }
  .screenshots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { gap: 34px; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 0 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav h2 { width: 100%; }
  .side-nav a { padding: 0; }
  .intent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 64px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 104px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(7, 17, 31, .98);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
  .top-help-inner { min-height: 40px; gap: 10px; padding: 6px 0; }
  .top-help-copy { flex: 0 0 auto; }
  .hero { padding: 59px 0 67px; }
  .hero h1, .page-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-lede { font-size: 16px; }
  .hero-visual::after { right: -10px; bottom: -10px; width: 68px; height: 68px; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .section { padding: 65px 0; }
  .section-head { display: block; }
  .section-head > p { margin-top: 15px; }
  .search-panel, .article-grid, .split, .contact-strip, .footer-grid { grid-template-columns: 1fr; }
  .intent-list { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .article-index { width: 38px; height: 38px; }
  .content-section { padding: 56px 0 72px; }
  .prose h2 { font-size: 27px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
