:root {
  --bg: #0d1117;
  --bg-soft: #141a24;
  --bg-card: #171e2a;
  --line: #26303f;
  --text: #e6edf3;
  --muted: #98a5b5;
  --accent: #7ee2b8;
  --accent-deep: #2ea877;
  --violet: #a78bfa;
  --amber: #fbbf77;
  --radius: 14px;
  --serif: "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "JetBrains Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo .mark {
  width: 28px; height: 28px; border-radius: 7px; display: block; overflow: hidden;
  flex: none;
}
.logo .mark svg { display: block; }
.nav .links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav .links a:hover { color: var(--text); }
.btn {
  display: inline-block; padding: 9px 20px; border-radius: 9px; font-size: 14px; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #06251a; box-shadow: 0 0 0 0 rgba(126,226,184,.4); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(126,226,184,.25); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  background: radial-gradient(600px 340px at 30% 40%, rgba(46,168,119,.16), transparent 70%),
              radial-gradient(560px 320px at 75% 30%, rgba(112,86,198,.15), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 56px; align-items: center; position: relative; }
.tagline {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent);
  border: 1px solid rgba(126,226,184,.3); border-radius: 999px; padding: 4px 14px; margin-bottom: 22px;
  background: rgba(126,226,184,.06); font-family: var(--mono);
}
h1 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.28; font-weight: 800; letter-spacing: .01em; }
h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.hero p.sub { margin: 20px 0 30px; color: var(--muted); font-size: 17px; max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); }
.hero-meta span::before { content: "✓ "; color: var(--accent); }

/* editor mock */
.editor {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); box-shadow: 0 24px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(126,226,184,.05);
  font-size: 14px;
}
.editor .chrome { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #101620; border-bottom: 1px solid var(--line); }
.editor .dot { width: 11px; height: 11px; border-radius: 50%; }
.editor .file { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor .tabs { margin-left: auto; display: flex; gap: 2px; font-size: 12px; flex: none; }
.editor .tabs button { border: 0; background: none; padding: 3px 10px; border-radius: 6px; color: var(--muted); font-family: var(--sans); font-size: 12px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.editor .tabs button:hover { color: var(--text); }
.editor .tabs button[aria-pressed="true"] { background: rgba(126,226,184,.14); color: var(--accent); }
.editor .tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.editor .body { padding: 22px 24px 26px; display: grid; }
.editor .view { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .18s ease; }
.editor .view.on { opacity: 1; visibility: visible; }
.editor .view .kbd-line { margin-top: auto; padding-top: 14px; }
.editor h3 { font-size: 20px; margin-bottom: 10px; }
.editor .src { font-family: var(--mono); font-size: 12.5px; line-height: 1.95; color: #c3cfdd; white-space: pre-wrap; }
.editor .src .m { color: #6f7d8f; }
.editor .src .h { color: var(--accent); font-weight: 700; }
.editor .src .c { color: var(--amber); }
.editor ul.doc { list-style: none; margin-top: 4px; }
.editor ul.doc li { display: flex; gap: 9px; align-items: baseline; font-size: 13.5px; color: #c9d5e2; padding: 3px 0; }
.editor ul.doc li i { font-style: normal; width: 13px; flex: none; color: var(--muted); }
.editor ul.doc li i.ck { color: var(--accent); }
.editor .note {
  border-left: 3px solid var(--accent); background: rgba(126,226,184,.07);
  padding: 8px 14px; border-radius: 0 8px 8px 0; margin: 14px 0; color: #cde9dc; font-size: 13.5px;
}
.editor .slash {
  margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: #1a2230;
  overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.4);
}
.editor .slash .q { padding: 9px 14px; font-family: var(--mono); font-size: 13px; color: var(--text); border-bottom: 1px solid var(--line); }
.editor .slash .q b { color: var(--accent); }
.editor .slash .q .caret { display: inline-block; width: 1.5px; height: 14px; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.editor .slash ul { list-style: none; }
.editor .slash li { display: flex; gap: 10px; align-items: center; padding: 7px 14px; font-size: 13px; color: var(--muted); }
.editor .slash li.hot { background: rgba(126,226,184,.1); color: var(--text); }
.editor .slash li .ico { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; background: #232d3e; color: var(--accent); flex: none; }
.editor .slash li small { margin-left: auto; font-family: var(--mono); font-size: 11px; opacity: .55; }
.editor .kbd-line { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
kbd { font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: #1a2230; color: var(--text); }

/* ---------- features ---------- */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.sec-head .kicker { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 10px 0 12px; }
.sec-head p { color: var(--muted); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: #35455c; }
.card .glyph {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(126,226,184,.1); border: 1px solid rgba(126,226,184,.25);
}
.card .glyph svg { width: 21px; height: 21px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(2) .glyph { background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.28); }
.card:nth-child(2) .glyph svg { stroke: var(--violet); }
.card:nth-child(4) .glyph { background: rgba(251,191,119,.1); border-color: rgba(251,191,119,.28); }
.card:nth-child(4) .glyph svg { stroke: var(--amber); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card p b { color: #c9d5e2; font-weight: 600; }

/* ---------- 为什么不用现成插件 ---------- */
.compare { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* ---------- all features ---------- */
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; max-width: 880px; margin: 0 auto; }
.chip { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; padding: 9px 4px; border-bottom: 1px solid rgba(38,48,63,.6); }
.chip::before { content: "—"; color: var(--accent-deep); flex: none; }
.chip b { font-weight: 600; }
.chip span { color: var(--muted); }

/* ---------- 最近更新 ---------- */
.upd { list-style: none; max-width: 820px; margin: 0 auto; }
.upd li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 13px 4px; border-bottom: 1px solid rgba(38,48,63,.6); font-size: 14.5px; color: var(--muted); }
.upd li:last-child { border-bottom: none; }
.upd .v { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.upd b { color: var(--text); font-weight: 600; }
.upd-more { text-align: center; margin-top: 26px; font-size: 14px; color: var(--muted); }
.upd-items { list-style: none; margin: 6px 0 0; padding: 0; }
.upd-items li { display: block; gap: 0; border-bottom: none; padding: 2px 0 2px 16px; position: relative; font-size: 13.5px; }
.upd-items li::before { content: "·"; position: absolute; left: 3px; color: var(--accent); }
.upd-more a { color: var(--accent); }
.upd-more a:hover { text-decoration: underline; }

/* ---------- reward ---------- */
.reward { border-top: 1px solid var(--line); background: var(--bg-soft); }
.reward-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 52px; align-items: center; }
.reward h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin: 10px 0 12px; }
.reward p { color: var(--muted); font-size: 15px; max-width: 34em; }
.qr-card {
  background: #fff; border-radius: clamp(12px, 2vw, 18px); padding: clamp(8px, 2vw, 14px); flex: none;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.qr-card img { display: block; width: clamp(112px, 34vw, 224px); height: auto; image-rendering: auto; }
.qr-card figcaption { color: #1a2230; font-size: 12px; text-align: center; margin-top: 8px; font-family: var(--mono); }
.qr-pair { display: flex; gap: clamp(10px, 2.5vw, 22px); align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- install / cta ---------- */
.install { text-align: center; position: relative; overflow: hidden; }
.install::before { content: ""; position: absolute; inset: auto -20% -60%; height: 420px; background: radial-gradient(50% 60% at 50% 100%, rgba(46,168,119,.14), transparent 70%); pointer-events: none; }
.install h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; }
.install > .wrap > p { color: var(--muted); max-width: 40em; margin: 0 auto 30px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 920px; margin: 0 auto 34px; text-align: left; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-card); }
.step i { font-style: normal; font-family: var(--mono); color: var(--accent); font-size: 13px; }
.step h4 { font-size: 15px; margin: 6px 0 6px; }
.step p { font-size: 13.5px; color: var(--muted); }
.cmd-copy {
  margin: 0 auto 30px; display: inline-flex; gap: 12px; align-items: center; max-width: 100%;
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: 10px; padding: 12px 16px;
  font-family: var(--mono); font-size: 13.5px; color: #cde9dc;
}
.cmd-copy code { overflow-x: auto; white-space: nowrap; }
.cmd-copy button {
  flex: none; border: 1px solid var(--line); background: #1a2230; color: var(--muted);
  border-radius: 7px; padding: 4px 12px; font-size: 12px; cursor: pointer; font-family: var(--sans);
}
.cmd-copy button:hover { color: var(--text); border-color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 13.5px; color: var(--muted); }
.foot { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.foot .links { margin-left: auto; display: flex; gap: 12px 20px; flex-wrap: wrap; }
.foot a { white-space: nowrap; }
.foot a:hover { color: var(--text); }

/* 实图 */
.shots-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.shots-col { display: grid; gap: 20px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.shot figcaption {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 12.5px; color: var(--muted);
  font-family: var(--mono); border-bottom: 1px solid var(--line);
}
.shot figcaption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.shot img { display: block; width: 100%; height: auto; }
.shot-wide { margin-top: 20px; }

/* 模板库 */
.tpl-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tpl-card {
  flex: 0 1 calc((100% - 40px) / 3); min-width: 0; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); transition: transform .18s ease, border-color .18s ease;
}
.tpl-card:hover { transform: translateY(-3px); border-color: #35455c; }
.tpl-wide { flex-basis: 100%; }
.tpl-thumb { background: #fff; line-height: 0; }
.tpl-thumb img { display: block; width: 100%; height: auto; }
.tpl-card figcaption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.tpl-card figcaption b { font-size: 14px; font-weight: 600; }
.tpl-card figcaption span { color: var(--muted); font-size: 12.5px; text-align: right; }

/* 痛点 */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; background: var(--bg-card); }
.pain h3 { font-size: 15.5px; margin-bottom: 8px; }
.pain p { font-size: 13.5px; color: var(--muted); }
.pain .fail { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: #6b7686; border-top: 1px dashed var(--line); padding-top: 9px; }
.pain .fail::before { content: "✕ "; color: #8a6b52; }

/* 为什么不用现成插件 */
.qa { display: grid; gap: 14px; max-width: 900px; margin: 0 auto 34px; }
.qa-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); padding: 20px 24px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.qa-item .q { font-family: var(--mono); font-size: 15px; color: var(--accent); }
.qa-item h3 { font-size: 16px; margin-bottom: 6px; }
.qa-item p { font-size: 14px; color: var(--muted); }
.qa-item p b { color: var(--text); font-weight: 600; }
.qa-close { text-align: center; font-size: 15px; max-width: 40em; margin: 0 auto; color: var(--muted); }
.qa-close b { color: var(--text); font-weight: 600; }
.qa-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; max-width: 760px; margin: 22px auto 0; text-align: left; }
.qa-list li { font-size: 14px; color: var(--muted); }
.qa-list li::before { content: "→ "; color: var(--accent); font-family: var(--mono); }
.qa-list b { color: var(--text); font-weight: 600; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .editor .view { transition: none; } }

@media (max-width: 1000px) {
  .pain-grid, .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding-top: 64px; }
  .hero-grid, .feat-grid, .steps, .reward-grid, .shots-grid, .pain-grid { grid-template-columns: 1fr; }
  .tpl-card { flex-basis: calc((100% - 20px) / 2); }
  .tpl-wide { flex-basis: 100%; }
  .qa-list { grid-template-columns: 1fr; }
  .reward-grid { justify-items: center; text-align: center; gap: 30px; }
  .reward p { margin-inline: auto; }
  .feat-grid { gap: 16px; }
  .chips { grid-template-columns: 1fr; }
  .upd li { grid-template-columns: 1fr; gap: 2px; }
  .nav { gap: 14px; }
  .nav .links { gap: 18px; }
  .nav .links a[data-sec] { display: none; }
}
@media (max-width: 620px) {
  .tpl-card, .tpl-wide { flex-basis: 100%; }
  .tpl-card figcaption { flex-direction: column; gap: 2px; }
  .tpl-card figcaption span { text-align: left; }
}
@media (max-width: 480px) {
  section { padding: 44px 0; }
  .hero { padding-top: 44px; }
  .editor .file { display: none; }
  .editor .tabs button { padding: 7px 12px; }
  .cmd-copy { flex-wrap: wrap; align-items: flex-start; }
  .cmd-copy code { white-space: normal; overflow: visible; }
  .foot { gap: 14px; }
  .foot .links { margin-left: 0; }
}
@media (max-width: 760px) {
  /* 平板/手机档 logo 只留图标，把宽度让给 更新日志 / 安装 / 赞赏 三条 */
  .nav .logo .word { display: none; }
}
@media (max-width: 360px) {
  /* 最窄一档再退掉「安装」，更新日志 / 赞赏 常驻 */
  .nav .links a[data-min] { display: none; }
}
