@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-VF.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #FBF7F1;
  --paper-2: #F4EDE3;
  --card: #FFFFFF;
  --ink: #161E33;
  --ink-2: #47526F;
  --ink-3: #7E89A6;
  --line: rgba(22, 30, 51, .10);
  --line-strong: rgba(22, 30, 51, .18);
  --blue: #2B63F6;
  --blue-deep: #1A3FB5;
  --blue-soft: #E7EEFF;
  --apricot: #FF9466;
  --apricot-soft: #FFE9DD;
  --mint: #23B08C;
  --mint-soft: #DDF6EF;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 0 rgba(22, 30, 51, .04), 0 10px 24px -16px rgba(22, 30, 51, .22);
  --shadow-md: 0 2px 0 rgba(22, 30, 51, .04), 0 26px 50px -28px rgba(22, 30, 51, .32);
  --shadow-lg: 0 4px 0 rgba(22, 30, 51, .05), 0 46px 90px -40px rgba(22, 30, 51, .40);
  --font: "Space Grotesk", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1200px;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -.01em;
  font-weight: 700;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

code, pre, kbd { font-family: var(--mono); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: 96px 0; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #EEF2FB; }

.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section--ink .eyebrow { color: var(--apricot); }

.section__head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.section__lead { margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.section--ink .section__lead { color: #B9C3DA; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 0 var(--blue-deep);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--blue-deep); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--blue-deep); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 4px 0 rgba(22, 30, 51, .08);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn--ghost:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(22, 30, 51, .08); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 4px 0 #000; }
.btn--ink:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #000; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.chip--blue { background: var(--blue-soft); border-color: transparent; color: var(--blue-deep); }
.chip--apricot { background: var(--apricot-soft); border-color: transparent; color: #A2472A; }
.chip--mint { background: var(--mint-soft); border-color: transparent; color: #13695A; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 241, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(22, 30, 51, .35); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; line-height: 1; margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav__links a:hover { background: rgba(22, 30, 51, .06); color: var(--ink); }
.nav__links a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: auto;
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 16px 20px 24px;
}
.nav__drawer a {
  display: block;
  padding: 12px 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav__drawer .btn { width: 100%; margin-top: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.blob--blue { width: 520px; height: 520px; background: #BBD2FF; top: -160px; right: -80px; }
.blob--apricot { width: 420px; height: 420px; background: #FFD9C4; bottom: -180px; left: -120px; }
.hero__bg .grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(22, 30, 51, .10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 72%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.pill:hover { transform: translateY(-1px); border-color: var(--blue); }
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.pill b { color: var(--ink); font-family: var(--font); }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.mark {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.mark::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: 6px; height: 34%;
  background: var(--apricot);
  opacity: .38;
  border-radius: 8px;
  z-index: -1;
}
.lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 34em;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-3);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); opacity: .7; }

.hero__stage { position: relative; }
.window {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #0B1020;
  border: 2px solid var(--ink);
  box-shadow: 0 10px 0 var(--ink), var(--shadow-lg);
  transform: rotate(-1.2deg);
  transition: transform .5s var(--ease);
}
.window:hover { transform: rotate(0deg) translateY(-4px); }
.window img, .window video { width: 100%; height: auto; }

.sticker {
  position: absolute;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 7s ease-in-out infinite;
}
.sticker small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; line-height: 1.3; }
.sticker--mascot { left: -26px; bottom: -30px; padding: 10px 16px 10px 10px; animation-delay: -2s; }
.sticker--mascot img { width: 62px; height: 62px; }
.sticker--chip { right: -18px; top: -22px; animation-delay: -4s; }
.sticker__icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-deep);
  flex: none;
}
.sticker__icon svg { width: 18px; height: 18px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- stats ---------- */
.stats { padding: 8px 0 40px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 0 var(--ink);
  padding: 26px 12px;
}
.stats__grid li { text-align: center; padding: 4px 10px; border-right: 1px dashed var(--line-strong); }
.stats__grid li:last-child { border-right: 0; }
.stats__grid strong {
  display: block;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.02em;
}
.stats__grid span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  grid-column: span 4;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card--wide { grid-column: span 8; }
.card--half { grid-column: span 6; }
.card--blue { background: var(--blue); color: #fff; border-color: transparent; }
.card.card--blue p, .card.card--blue .card__list li { color: rgba(255, 255, 255, .88); }
.card--apricot { background: var(--apricot-soft); border-color: transparent; }
.card--ink { background: var(--ink); color: #EEF2FB; border-color: transparent; }
.card.card--ink p, .card.card--ink .card__list li { color: #B9C3DA; }

.card__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue-deep);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card--blue .card__icon { background: rgba(255, 255, 255, .2); color: #fff; }
.card--apricot .card__icon { background: #fff; color: #A2472A; }
.card--ink .card__icon { background: rgba(255, 255, 255, .12); color: var(--apricot); }

.card h3 { font-size: 21px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.card__list { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.card__list li {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(22, 30, 51, .06);
  color: var(--ink-2);
}
.card.card--blue .card__list li, .card.card--ink .card__list li { background: rgba(255, 255, 255, .16); color: #fff; }
.card__media {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--line);
}
.card__media img { width: 100%; height: auto; }
.card__media--crop img { height: 210px; object-fit: cover; object-position: 50% 0; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-weight: 600; font-size: 15px;
  color: var(--blue);
}
.card__link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card__link:hover svg { transform: translateX(3px); }
.card--blue .card__link, .card--ink .card__link { color: #fff; }

/* ---------- showcase / tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 4px 0 rgba(22, 30, 51, .25);
}
.panel { display: none; }
.panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  animation: panel-in .45s var(--ease);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.panel__media {
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink), var(--shadow-md);
  background: #0B1020;
}
.panel__media video, .panel__media img { width: 100%; height: auto; }
.panel__text h3 { font-size: 28px; }
.panel__text p { margin-top: 14px; color: var(--ink-2); }
.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.ticks li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 7px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231A3FB5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- architecture ---------- */
.arch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: arch;
}
.arch__node {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.arch__node::after {
  content: "";
  position: absolute;
  top: 50%; right: -19px;
  width: 20px; height: 2px;
  background: var(--line-strong);
}
.arch__node:last-child::after { display: none; }
.arch__step {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.arch__node h3 { font-size: 19px; }
.arch__node p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.arch__node code { font-size: 13px; background: rgba(22, 30, 51, .06); padding: 2px 6px; border-radius: 6px; }

/* ---------- code ---------- */
.code {
  background: #10162A;
  color: #DCE5FA;
  border-radius: 18px;
  border: 2px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink);
  overflow: hidden;
}
.code__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  color: #9AA7C7;
}
.code__dots { display: flex; gap: 6px; }
.code__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.code__name { font-family: var(--mono); }
.copy {
  margin-left: auto;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #DCE5FA;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .16s var(--ease);
}
.copy:hover { background: rgba(255, 255, 255, .18); }
.code pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.75;
  tab-size: 4;
}
.code .k { color: #8FB4FF; }
.code .s { color: #FFC7A8; }
.code .c { color: #7C88A8; font-style: italic; }
.code .t { color: #7FE3C8; }

/* ---------- plugin teaser ---------- */
.teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.teaser__list { margin-top: 26px; display: grid; gap: 12px; }
.teaser__list li { display: flex; gap: 12px; align-items: flex-start; color: #C6D0E6; font-size: 15.5px; }
.teaser__list li b { color: #fff; }
.teaser__list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 9px;
  border-radius: 3px;
  background: var(--apricot);
}
.section--ink .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.section--ink .btn--ghost:hover { border-color: #fff; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 8px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231A3FB5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 15.5px; }
.faq details p + p { padding-top: 0; }
.faq code { background: rgba(22, 30, 51, .06); padding: 2px 6px; border-radius: 6px; font-size: 13.5px; }

/* ---------- cta ---------- */
.cta { padding: 20px 0 110px; }
.cta__box {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-xl);
  border: 2px solid var(--ink);
  box-shadow: 0 10px 0 var(--ink), var(--shadow-lg);
  padding: 64px 48px;
  text-align: center;
}
.cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
  opacity: .5;
  pointer-events: none;
}
.cta__box > * { position: relative; }
.cta__box h2 { font-size: clamp(28px, 3.6vw, 44px); }
.cta__box p { margin: 16px auto 30px; max-width: 34em; color: rgba(255, 255, 255, .88); font-size: 17px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta__box .btn--ghost { background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.cta__mascot { width: 96px; height: 96px; margin: 0 auto 18px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25)); }

/* ---------- footer ---------- */
.footer {
  border-top: 1.5px solid var(--line);
  background: var(--paper-2);
  padding: 56px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.footer__brand p { margin-top: 14px; color: var(--ink-2); font-size: 14.5px; max-width: 30em; }
.footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { font-size: 15px; color: var(--ink-2); }
.footer ul a:hover { color: var(--blue); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-3);
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- page hero (sub pages) ---------- */
.pagehead { padding: 64px 0 40px; position: relative; overflow: hidden; }
.pagehead h1 { font-size: clamp(32px, 4.4vw, 52px); }
.pagehead .lead { margin-top: 18px; }
.pagehead__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- download page ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 0 var(--ink);
  padding: 28px;
}
.dl-card--featured { background: var(--blue); color: #fff; }
.dl-card__os { display: flex; align-items: center; gap: 12px; }
.dl-card__os svg { width: 28px; height: 28px; }
.dl-card h3 { font-size: 22px; }
.dl-card > p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.dl-card--featured > p { color: rgba(255, 255, 255, .88); }
.dl-list { margin-top: 20px; display: grid; gap: 10px; }
.dl-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(22, 30, 51, .04);
  border: 1.5px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.dl-list li:hover { transform: translateX(3px); border-color: var(--blue); background: #fff; }
.dl-card--featured .dl-list li { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
.dl-card--featured .dl-list li:hover { background: #fff; color: var(--ink); border-color: #fff; }
.dl-list small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.dl-card--featured .dl-list small { color: rgba(255, 255, 255, .8); }
.dl-list svg { width: 16px; height: 16px; flex: none; opacity: .7; }
.dl-card__note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.dl-card--featured .dl-card__note { color: rgba(255, 255, 255, .78); }

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--apricot);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: 15px;
  color: var(--ink-2);
}
.note b { color: var(--ink); }
.note + .note { margin-top: 12px; }

/* ---------- tables ---------- */
.table-wrap {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: rgba(22, 30, 51, .03); }
tr:last-child td { border-bottom: 0; }
td code, th code { background: rgba(22, 30, 51, .06); padding: 2px 7px; border-radius: 6px; font-size: 13.5px; white-space: nowrap; }
td:first-child { white-space: nowrap; }

/* ---------- plugin types ---------- */
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.type {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.type__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.type h3 { font-size: 18px; }
.type p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.type__route { margin-top: 12px; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }

/* ---------- changelog ---------- */
.log { display: grid; gap: 20px; max-width: 900px; margin-inline: auto; }
.log__item--latest { border-color: var(--blue); box-shadow: 0 6px 0 var(--blue), var(--shadow-sm); }
.log__item--latest .muted { margin-bottom: 16px; }
.log__item {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.log__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.log__ver { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.log__tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); color: #13695A; }
.log__tag--old { background: rgba(22, 30, 51, .06); color: var(--ink-3); }
.log__groups { display: grid; gap: 18px; }
.log__groups h4 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.log__groups ul { display: grid; gap: 6px; }
.log__groups li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.log__groups li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--line-strong); }

/* ---------- misc ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stack { display: grid; gap: 18px; }
.mt-40 { margin-top: 40px; }
.mt-24 { margin-top: 24px; }
.muted { color: var(--ink-3); font-size: 14px; }
.center { text-align: center; }

/* ---------- reveal (scroll-in) ---------- */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  translate: 0 22px;
  scale: .975;
  transition:
    opacity .7s var(--ease), translate .7s var(--ease), scale .7s var(--ease),
    transform .24s var(--ease), box-shadow .24s var(--ease),
    border-color .24s var(--ease), background-color .24s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; scale: 1; }
/* 入场结束后清掉延迟，保证 hover 反馈不拖沓 */
.js .reveal.is-done { transition-delay: 0s; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 100;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 200;
}
.skip:focus { left: 12px; }

/* ============================================================
   motion · 活泼感动效层
   ============================================================ */
:root { --ease-bounce: cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- keyframes ---------- */
@keyframes rise {
  from { opacity: 0; translate: 0 28px; scale: .97; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes stage-in {
  from { opacity: 0; translate: 46px 0; rotate: 4deg; scale: .94; }
  to { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; }
}
@keyframes pop {
  0% { transform: scale(.7); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-12deg) scale(1.1); }
  55% { transform: rotate(9deg) scale(1.06); }
  80% { transform: rotate(-4deg) scale(1.02); }
}
@keyframes hop {
  0%, 52%, 100% { transform: translateY(0) scale(1, 1); }
  8% { transform: translateY(0) scale(1.08, .92); }
  28% { transform: translateY(-18px) scale(.95, 1.06) rotate(-5deg); }
  44% { transform: translateY(0) scale(1.07, .93) rotate(0deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(calc(var(--s, 16px) * -1.5)) rotate(calc(var(--r, 0deg) + 24deg)); }
}
@keyframes blob {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-34px, 26px, 0) scale(1.08); }
  100% { transform: translate3d(28px, -20px, 0) scale(.94); }
}
@keyframes grid-drift { to { background-position: 26px 26px; } }
@keyframes grid-drift-24 { to { background-position: 24px 24px; } }
@keyframes ping {
  0% { transform: scale(1); opacity: .75; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ch-pop {
  0% { transform: translateY(70%) scale(.4); opacity: 0; }
  60% { transform: translateY(-10%) scale(1.14); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin-sq { to { transform: rotate(90deg); } }
@keyframes dash { to { background-position: -8px 0; } }
@keyframes nudge {
  0%, 100% { transform: translate(0, -50%) rotate(45deg); }
  50% { transform: translate(3px, -50%) rotate(45deg); }
}
@keyframes nudge-x {
  0%, 100% { transform: translateX(0); }
  40% { transform: translateX(5px); }
}
@keyframes px-fly {
  from { transform: translate(var(--x), var(--y)) rotate(0deg) scale(1); opacity: 1; }
  to { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) rotate(var(--r)) scale(.3); opacity: 0; }
}
@keyframes panel-media-in {
  from { opacity: 0; transform: translateX(-26px) rotate(-1.6deg) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-text-in {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes tick-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes count-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ---------- 首屏入场 ---------- */
.js .hero__copy > *,
.js .pagehead .container > * { animation: rise .8s var(--ease) both; }
.js .hero__copy > *:nth-child(1),
.js .pagehead .container > *:nth-child(1) { animation-delay: .04s; }
.js .hero__copy > *:nth-child(2),
.js .pagehead .container > *:nth-child(2) { animation-delay: .12s; }
.js .hero__copy > *:nth-child(3),
.js .pagehead .container > *:nth-child(3) { animation-delay: .2s; }
.js .hero__copy > *:nth-child(4),
.js .pagehead .container > *:nth-child(4) { animation-delay: .28s; }
.js .hero__copy > *:nth-child(5),
.js .pagehead .container > *:nth-child(5) { animation-delay: .36s; }
.js .hero__stage { perspective: 1400px; animation: stage-in 1s var(--ease) .18s both; }

/* ---------- 背景：漂移的色块、点阵、漂浮方块 ---------- */
.hero__bg .blob { animation: blob 18s ease-in-out infinite alternate; }
.hero__bg .blob--apricot { animation-duration: 23s; animation-direction: alternate-reverse; }
.hero__bg .grid { animation: grid-drift 14s linear infinite; }

.pix { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.pix i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  border-radius: 5px;
  background: var(--c);
  opacity: var(--o, .6);
  box-shadow: 0 3px 0 rgba(22, 30, 51, .12);
  animation: float-slow var(--dur, 9s) ease-in-out var(--d, 0s) infinite;
}
.cta__box .pix i { box-shadow: none; }

/* ---------- hero：标题逐字弹出、荧光笔扫过、窗口 3D 倾斜 ---------- */
.hero__stage .window {
  transform: rotate(-1.2deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease);
  translate: 0 calc(var(--sy, 0px) * .04);
}
.hero__stage .window:hover {
  transform: rotate(0deg) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.hero .sticker--chip { translate: 0 calc(var(--sy, 0px) * -.06); }
.hero .sticker--mascot { translate: 0 calc(var(--sy, 0px) * -.1); }
.sticker { transition: rotate .3s var(--ease-bounce), scale .3s var(--ease-bounce); }
.sticker:hover { rotate: -3deg; scale: 1.05; animation-play-state: paused; }
.sticker--mascot img { animation: hop 3.2s var(--ease) infinite; transform-origin: 50% 100%; }
.sticker__icon { transition: rotate .3s var(--ease-bounce), scale .3s var(--ease-bounce); }
.sticker:hover .sticker__icon { rotate: 12deg; scale: 1.12; }

.mark::after {
  transform-origin: left center;
  animation: wipe .8s var(--ease) .55s both;
  transition: background-color .25s var(--ease), opacity .25s var(--ease);
}
.mark:hover::after { background: var(--blue); opacity: .22; }
.mark__ch {
  display: inline-block;
  cursor: default;
  animation: ch-pop .65s var(--ease-bounce) both;
  animation-delay: calc(.5s + var(--i, 0) * .08s);
  transition: transform .22s var(--ease-bounce), color .2s var(--ease);
}
.mark__ch:hover { transform: translateY(-7px) rotate(-8deg) scale(1.08); color: var(--blue); }

.pill { transition: transform .28s var(--ease-bounce), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pill:hover { transform: translateY(-2px) scale(1.02); border-color: var(--blue); }
.pill__dot { position: relative; }
.pill__dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: ping 1.9s var(--ease) infinite;
}

.eyebrow::before { transform-origin: left center; }
.js .reveal .eyebrow::before { transform: scaleX(0); transition: transform .55s var(--ease) .12s; }
.js .reveal.is-in .eyebrow::before { transform: scaleX(1); }
.pagehead .eyebrow::before { animation: wipe .6s var(--ease) .2s both; }

/* ---------- 按钮：扫光 + 图标跳动 ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: -20%; left: -80%;
  width: 46%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  transition: left .65s var(--ease);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn--ghost::after { background: linear-gradient(100deg, transparent, rgba(43, 99, 246, .16), transparent); }
.btn--ink::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); }
.btn--ink:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.btn--primary svg { animation: bob 1.7s ease-in-out infinite; }

/* ---------- 卡片：聚光跟随 + 图标摇摆 + 标签弹跳 ---------- */
.card, .dl-card, .type, .log__item { position: relative; isolation: isolate; }
.card::before, .dl-card::before, .type::before, .log__item::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -20%), var(--glow, rgba(43, 99, 246, .10)), transparent 65%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.card:hover::before, .dl-card:hover::before, .type:hover::before, .log__item:hover::before { opacity: 1; }
.card--blue, .card--ink, .dl-card--featured { --glow: rgba(255, 255, 255, .18); }
.card--apricot { --glow: rgba(255, 148, 102, .22); }

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card:nth-child(odd):hover { rotate: -.5deg; }
.card:nth-child(even):hover { rotate: .5deg; }
.card:hover .card__icon { animation: wiggle .6s var(--ease); }
.card__list li { transition: transform .3s var(--ease-bounce), background-color .2s var(--ease); }
.card:hover .card__list li { transform: translateY(-3px) rotate(-2deg); }
.card:hover .card__list li:nth-child(even) { transform: translateY(-3px) rotate(2deg); transition-delay: .04s; }
.card:hover .card__list li:nth-child(3n) { transition-delay: .08s; }
.card__media img { transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__link:hover svg { animation: nudge-x .7s var(--ease-bounce) infinite; }

/* ---------- 数字：滚动计数 + 悬停弹跳 ---------- */
.stats__grid li { transition: transform .28s var(--ease-bounce); }
.stats__grid li:hover { transform: translateY(-4px); }
.stats__grid strong { transition: color .2s var(--ease); }
.stats__grid li:hover strong { color: var(--apricot); }
.stats__grid strong.is-counted { animation: count-pop .5s var(--ease-bounce); }

/* ---------- 走马灯 ---------- */
.marquee-wrap { overflow: hidden; padding: 20px 0 26px; margin: -14px 0 22px; }
.marquee {
  background: var(--ink);
  color: #fff;
  border-block: 2px solid var(--ink);
  box-shadow: 0 8px 0 rgba(22, 30, 51, .14);
  padding: 13px 0;
  transform: rotate(-1.6deg) scale(1.04);
  overflow: hidden;
}
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 26px; padding-right: 26px; }
.marquee__group span { font-size: 15px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.marquee__group i {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--apricot);
  animation: spin-sq 2.6s linear infinite;
}
.marquee__group i:nth-of-type(3n + 1) { background: var(--blue); animation-duration: 3.4s; }
.marquee__group i:nth-of-type(3n + 2) { background: var(--mint); animation-duration: 2.1s; }

/* ---------- tabs：滑块指示器 + 面板分栏入场 ---------- */
.tabs { position: relative; }
.tabs__glider {
  position: absolute; left: 0; top: 0;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 4px 0 rgba(22, 30, 51, .25);
  pointer-events: none;
  z-index: 0;
}
.tabs__glider.is-ready {
  transition: transform .34s var(--ease-bounce), width .32s var(--ease), height .32s var(--ease);
}
.js .tab { position: relative; z-index: 1; }
.js .tab.is-active { background: transparent; border-color: transparent; color: #fff; box-shadow: none; }
.js .tab:hover:not(.is-active) { border-color: var(--ink); color: var(--ink); }

.panel.is-active { animation: none; }
.panel.is-active .panel__media { animation: panel-media-in .6s var(--ease) both; }
.panel.is-active .panel__text > * { animation: panel-text-in .55s var(--ease) both; }
.panel.is-active .panel__text > *:nth-child(2) { animation-delay: .07s; }
.panel.is-active .panel__text > *:nth-child(3) { animation-delay: .14s; }
.panel.is-active .ticks li { animation: tick-in .45s var(--ease) both; }
.panel.is-active .ticks li:nth-child(1) { animation-delay: .2s; }
.panel.is-active .ticks li:nth-child(2) { animation-delay: .28s; }
.panel.is-active .ticks li:nth-child(3) { animation-delay: .36s; }
.panel__media { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.panel__media:hover { transform: translateY(-4px); box-shadow: 0 12px 0 var(--ink), var(--shadow-lg); }
.ticks li { transition: transform .22s var(--ease), color .2s var(--ease); }
.ticks li:hover { transform: translateX(4px); color: var(--ink); }

/* ---------- 架构图：流动的连接线 ---------- */
.arch__node { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.arch__node:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: var(--shadow-md); }
.arch__node::after {
  width: 22px; height: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 4px, transparent 4px 8px);
  background-size: 8px 3px;
  animation: dash 1.1s linear infinite;
  opacity: .7;
}
.arch__node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%; right: -24px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: translate(0, -50%) rotate(45deg);
  animation: nudge 1.1s ease-in-out infinite;
  z-index: 2;
}
.arch__step { transition: transform .28s var(--ease-bounce), background-color .2s var(--ease), color .2s var(--ease); }
.arch__node:hover .arch__step { transform: scale(1.08); background: var(--blue); color: #fff; }

/* ---------- 代码块：悬停抬升 + 交通灯点亮 ---------- */
.code { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.code:hover { transform: translateY(-4px); box-shadow: 0 12px 0 var(--ink); }
.code__dots i { transition: background-color .2s var(--ease), transform .3s var(--ease-bounce); }
.code:hover .code__dots i:nth-child(1) { background: #FF6B6B; transform: scale(1.15); }
.code:hover .code__dots i:nth-child(2) { background: #FFC857; transform: scale(1.15); }
.code:hover .code__dots i:nth-child(3) { background: #3DD6A3; transform: scale(1.15); }
.copy.is-done { background: var(--mint); border-color: transparent; color: #fff; animation: pop .35s var(--ease-bounce); }

/* ---------- FAQ：平滑展开 ---------- */
.faq details {
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .2s var(--ease), box-shadow .22s var(--ease);
}
.faq details:hover { transform: translateX(4px); border-color: var(--line-strong); }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq__panel { overflow: hidden; transition: height .34s var(--ease); }
.faq summary { transition: color .2s var(--ease); }
.faq details:hover summary { color: var(--blue); }
.faq details[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
}

/* ---------- 插件预告列表 ---------- */
.teaser__list li { transition: transform .22s var(--ease), color .2s var(--ease); }
.teaser__list li:hover { transform: translateX(6px); color: #fff; }
.teaser__list li::before { transition: rotate .3s var(--ease-bounce), background-color .2s var(--ease); }
.teaser__list li:hover::before { rotate: 45deg; background: #fff; }

/* ---------- 下载页 / 插件页 / 更新日志 ---------- */
.dl-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.dl-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 13px 0 var(--ink); }
.dl-card:hover .dl-card__os svg { animation: wiggle .6s var(--ease); }
.dl-list li svg { transition: transform .28s var(--ease-bounce), opacity .2s var(--ease); }
.dl-list li:hover svg { transform: scale(1.25); opacity: 1; }

.type { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.type:hover { transform: translateY(-5px) rotate(.4deg); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.type__tag { transition: background-color .2s var(--ease), color .2s var(--ease), transform .28s var(--ease-bounce); }
.type:hover .type__tag { background: var(--blue); color: #fff; transform: scale(1.06); }

.log__item { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.log__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.log__item--latest:hover { box-shadow: 0 10px 0 var(--blue), var(--shadow-md); }
.log__item--latest .log__tag::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: ping 1.9s var(--ease) infinite;
}

tbody tr { transition: background-color .18s var(--ease); }
tbody tr:hover { background: rgba(43, 99, 246, .06); }
td code { transition: background-color .18s var(--ease), color .18s var(--ease); }
tbody tr:hover td code { background: var(--blue-soft); color: var(--blue-deep); }

.note { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-left-color .2s var(--ease); }
.note:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); border-left-color: var(--blue); }

.chip { transition: transform .28s var(--ease-bounce), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.chip:hover { transform: translateY(-3px) rotate(-2deg); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }

/* ---------- 导航：进度条 + 下划线 + logo 摇摆 ---------- */
.nav__links a { position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .45;
  transform: scaleX(0);
  transition: transform .28s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.brand:hover img { animation: wiggle .6s var(--ease); }
.progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--apricot));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  transition: transform .12s linear;
}

/* ---------- CTA：吉祥物蹦跳 ---------- */
.cta__box { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cta__box:hover { transform: translateY(-4px); box-shadow: 0 14px 0 var(--ink), var(--shadow-lg); }
.cta__box::before { animation: grid-drift-24 16s linear infinite; }
.cta__mascot { animation: hop 2.8s var(--ease) infinite; transform-origin: 50% 100%; }

/* ---------- 页脚 ---------- */
.footer ul a { display: inline-block; transition: transform .22s var(--ease), color .2s var(--ease); }
.footer ul a:hover { transform: translateX(5px); color: var(--blue); }

/* ---------- 回到顶部（吉祥物） ---------- */
.totop {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 54px; height: 54px;
  padding: 0;
  display: grid; place-items: center;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.6);
  transition: opacity .25s var(--ease), transform .35s var(--ease-bounce), visibility .25s, box-shadow .15s var(--ease);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { transform: translateY(-3px) rotate(-6deg); box-shadow: 0 8px 0 var(--ink); }
.totop:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.totop img { width: 38px; height: 38px; animation: bob 2.4s ease-in-out infinite; }

/* ---------- 点击时的像素小爆散 ---------- */
.px-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 999; }
.px-layer i {
  position: absolute;
  left: 0; top: 0;
  width: var(--s); height: var(--s);
  border-radius: 3px;
  background: var(--c);
  animation: px-fly var(--dur) cubic-bezier(.16, .72, .3, 1) forwards;
}

/* ---------- CTA：庆祝感（闪光、星星、逐字标题、按钮呼吸） ---------- */
.cta__box > *:not(.pix) { z-index: 1; }
.cta__box::after {
  content: "";
  position: absolute;
  top: -30%; left: -60%;
  width: 38%; height: 160%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .26), transparent);
  transform: skewX(-20deg);
  transition: left .9s var(--ease);
  pointer-events: none;
}
.cta__box:hover::after { left: 130%; }
.cta__box:hover .cta__mascot { animation-duration: 1.15s; }

.cta__ch { display: inline-block; }
.cta__box.is-in .cta__ch {
  animation: ch-pop .6s var(--ease-bounce) both;
  animation-delay: calc(.12s + var(--i, 0) * .05s);
}

.sparkle {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s, 16px); height: var(--s, 16px);
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  pointer-events: none;
  animation: twinkle var(--dur, 2.6s) ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  35% { opacity: 1; transform: scale(1) rotate(45deg); }
  55% { opacity: .55; transform: scale(.75) rotate(90deg); }
}

.cta__actions .btn--ink { animation: cta-pulse 2.4s ease-in-out infinite; }
.cta__actions .btn--ink:hover,
.cta__actions .btn--ink:active { animation: none; }
@keyframes cta-pulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 4px 0 #000; }
  50% { transform: translateY(-3px) scale(1.035); box-shadow: 0 7px 0 #000; }
}

/* ---------- 页脚：像素地形 + 跳动爱心 ---------- */
.footer { position: relative; }
.footer.has-terrain { border-top-color: transparent; }
.terrain {
  position: absolute;
  left: 0; right: 0; top: -27px;
  height: 29px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  pointer-events: none;
}
.terrain i {
  flex: none;
  width: 27px;
  height: calc(7px + var(--h, 0) * 7px);
  background: var(--paper-2);
  animation: terrain-bob 3.4s ease-in-out var(--d, 0s) infinite;
}
.terrain i.is-accent { background: var(--accent); }
@keyframes terrain-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.pixel-heart {
  display: inline-block;
  width: 21px; height: 18px;
  margin-left: 8px;
  vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23FF9466' d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: beat 1.3s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.28); }
  30% { transform: scale(1); }
  45% { transform: scale(1.18); }
  60% { transform: scale(1); }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__stage { max-width: 720px; margin-inline: auto; width: 100%; }
  .window { transform: none; }
  .sticker--mascot { left: 10px; bottom: -18px; }
  .sticker--chip { right: 10px; top: -14px; }
  .panel.is-active { grid-template-columns: 1fr; gap: 26px; }
  .teaser { grid-template-columns: 1fr; gap: 32px; }
  .card, .card--wide, .card--half { grid-column: span 6; }
  .dl-grid { grid-template-columns: 1fr; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .stats__grid li:nth-child(3) { border-right: 0; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 64px; }
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__drawer { display: block; }
  .card, .card--wide, .card--half { grid-column: span 12; }
  .arch { grid-template-columns: 1fr; }
  .arch__node::after { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__grid li { border-right: 0; }
  .cta__box { padding: 44px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .sticker { position: static; margin-top: 12px; animation: none; }
  .sticker--mascot, .sticker--chip { display: inline-flex; }
  .hero__stage { display: flex; flex-direction: column; }
  .dl-card { padding: 22px; }
  .log__item { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; translate: none; scale: none; }
  .marquee__track { animation: none !important; }
  .totop { transition: none; }
}

/* ---------- motion 层的响应式收尾 ---------- */
@media (max-width: 1080px) {
  .hero__stage .window,
  .hero__stage .window:hover { transform: none; }
  .hero .sticker--chip,
  .hero .sticker--mascot { translate: none; }
}

@media (max-width: 760px) {
  .marquee-wrap { padding: 14px 0 20px; }
  .marquee { transform: rotate(-1.6deg) scale(1.07); }
  .terrain i { width: 18px; }
  .totop { right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 15px; }
  .totop img { width: 32px; height: 32px; }
  .pix i:nth-child(n + 8) { display: none; }
  .card:hover, .dl-card:hover, .type:hover, .log__item:hover,
  .arch__node:hover, .note:hover, .faq details:hover, .chip:hover { transform: none; }
}

/* 触屏没有真正的 hover，避免点完卡片一直抬着 */
@media (hover: none) {
  .card:hover, .dl-card:hover, .type:hover, .log__item:hover, .arch__node:hover,
  .stats__grid li:hover, .note:hover, .faq details:hover, .chip:hover, .pill:hover,
  .cta__box:hover, .code:hover, .panel__media:hover, .ticks li:hover,
  .teaser__list li:hover, .footer ul a:hover { transform: none; }
  .card:hover .card__list li,
  .card:hover .card__media img { transform: none; }
  .hero__stage .window:hover { transform: none; }
}
