/* ==========================================================================
   UPLUG · Unity 插件工坊
   灰白主题 · 动效齐全 · 纯原生实现，无外部依赖
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #fafafa;
  --bg-soft: #f4f4f6;
  --surface: #ffffff;
  --ink: #131316;
  --ink-2: #55555e;
  --ink-3: #9b9ba4;
  --line: #e8e8ec;
  --line-2: #d9d9df;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --err: #dc2626;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow-1: 0 1px 2px rgb(19 19 22 / .05);
  --shadow-2: 0 2px 6px rgb(19 19 22 / .05), 0 18px 44px -18px rgb(19 19 22 / .18);
  --shadow-3: 0 4px 12px rgb(19 19 22 / .08), 0 32px 72px -24px rgb(19 19 22 / .26);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
          "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
::selection { background: #131316; color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4da; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b9b9c2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 880px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ==========================================================================
   开场动画
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: grid; place-items: center; gap: 14px; }
.preloader-logo {
  width: 52px; height: 52px; color: var(--ink);
  animation: logoSpin 1.2s var(--ease-io) infinite;
}
.preloader-word {
  font-weight: 800; letter-spacing: .42em; font-size: 13px; color: var(--ink-3);
  animation: fadeIn .8s .15s both;
}
@keyframes logoSpin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   滚动进度
   ========================================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 130;
  height: 2px; width: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ==========================================================================
   导航
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: var(--nav-h);
  transition: transform .45s var(--ease), background .35s, border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgb(255 255 255 / .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-color: var(--line);
  box-shadow: var(--shadow-1);
}
.nav.hidden-nav { transform: translateY(-100%); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  transition: transform .5s var(--ease);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand:hover .brand-mark { transform: rotate(90deg) scale(1.04); }
.brand-name { font-size: 19px; letter-spacing: .04em; }
.brand-sub {
  font-size: 11px; color: var(--ink-3); font-weight: 500; letter-spacing: .1em;
  padding-left: 11px; border-left: 1px solid var(--line-2);
}

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .25s, background .25s;
  position: relative;
}
.nav-link:hover { color: var(--ink); background: rgb(19 19 22 / .05); }
.nav-link-admin { color: var(--ink-3); }
.nav-link-admin:hover { color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; padding: 8px; border-radius: 10px; }
.nav-burger .icon { width: 24px; height: 24px; }

/* 移动端全屏菜单 */
@media (max-width: 920px) {
  .br-desktop { display: none; }
  .brand-sub { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    margin: 0; padding: calc(var(--nav-h) + 24px) 28px 40px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgb(250 250 250 / .92);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    opacity: 0; pointer-events: none;
    transition: opacity .4s var(--ease);
  }
  .nav.menu-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-link {
    font-size: 24px; font-weight: 700; padding: 16px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    opacity: 0; transform: translateY(18px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .25s, background .25s;
  }
  .nav.menu-open .nav-link { opacity: 1; transform: none; }
  .nav.menu-open .nav-link:nth-child(1) { transition-delay: .05s; }
  .nav.menu-open .nav-link:nth-child(2) { transition-delay: .1s; }
  .nav.menu-open .nav-link:nth-child(3) { transition-delay: .15s; }
  .nav.menu-open .nav-link:nth-child(4) { transition-delay: .2s; }
  .nav.menu-open .nav-link:nth-child(5) { transition-delay: .25s; }
  .nav.menu-open .nav-cta { opacity: 1; transform: none; transition-delay: .3s; }
  .nav-cta {
    margin: 18px 8px 0; opacity: 0; transform: translateY(18px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
    justify-content: center;
  }
  .nav-burger { display: block; z-index: 5; }
}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .25s, border-color .25s, color .25s;
  user-select: none; white-space: nowrap;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 2px rgb(19 19 22 / .2), inset 0 1px 0 rgb(255 255 255 / .12);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgb(19 19 22 / .45); }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-1);
}
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-ghost:active { transform: translateY(0) scale(.98); }
.btn-xl { padding: 15px 30px; font-size: 16px; }
.btn-s { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.link-btn {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line-2);
  transition: text-decoration-color .2s;
}
.link-btn:hover { text-decoration-color: var(--ink); }

.btn .btn-spinner { display: none; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .btn-label { opacity: .55; }
.btn.is-loading .btn-spinner {
  display: inline-block;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-ghost.is-loading .btn-spinner {
  border-color: rgb(19 19 22 / .2); border-top-color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   首屏 Hero
   ========================================================================== */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgb(19 19 22 / .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(19 19 22 / .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(52px); opacity: .55; }
.orb-a { width: 480px; height: 480px; right: -120px; top: -140px;
         background: radial-gradient(circle, #e4e4ea, transparent 65%); }
.orb-b { width: 380px; height: 380px; left: -140px; top: 160px;
         background: radial-gradient(circle, #ececf2, transparent 65%); }
.orb-c { width: 300px; height: 300px; left: 42%; top: 46%;
         background: radial-gradient(circle, #f0f0f5, transparent 60%); }

.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 48px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  position: relative;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: 0;
  animation: pulseRing 2s var(--ease) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(.5); opacity: .9; }
  70%, 100% { transform: scale(1.4); opacity: 0; }
}

.hero-title { margin: 26px 0 20px; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.08; letter-spacing: -.035em; }
.hero-line { display: block; }
.grad {
  background: linear-gradient(175deg, #45454e 5%, var(--ink) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-actions-center { justify-content: center; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px;
  font-size: 13.5px; color: var(--ink-3); font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { color: var(--ink-2); }

/* Hero 右侧悬浮卡片 */
.hero-visual { position: relative; height: 460px; perspective: 1000px; }
.float-card {
  position: absolute; width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-3); overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
  transition: box-shadow .4s;
}
.float-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgb(255 255 255 / .5) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shineSweep 5.5s var(--ease) infinite;
}
@keyframes shineSweep { 0%, 55% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }
.float-a { top: 44px; left: 6%; rotate: -4deg; }
.float-b { bottom: 44px; right: 4%; rotate: 3.5deg; animation-delay: -3.2s; }
.float-cover { height: 140px; }
.float-body { padding: 14px 16px; display: grid; gap: 3px; position: relative; }
.float-body b { font-size: 15px; }
.float-body i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.float-done {
  position: absolute; right: 12px; bottom: 12px;
  width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(.0deg); }
  50% { transform: translateY(-13px) rotate(.4deg); }
}
.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  font-size: 13px; font-weight: 700;
}
.float-c { top: 12%; right: 8%; color: var(--ok); animation: floaty 6s ease-in-out infinite; animation-delay: -1.4s; }
.float-d { bottom: 16%; left: 0; animation: floaty 8s ease-in-out infinite; animation-delay: -4.4s; }
.float-ring {
  position: absolute; left: 50%; top: 50%;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1.5px dashed var(--line-2);
  transform: translate(-50%, -50%) rotate(8deg);
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .28em; color: var(--ink-3);
}
.hero-scroll i {
  width: 1px; height: 42px; background: linear-gradient(var(--ink-3), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll i::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%; background: var(--ink);
  animation: scrollHint 1.8s var(--ease-io) infinite;
}
@keyframes scrollHint { to { top: 110%; } }

/* ==========================================================================
   跑马灯
   ========================================================================== */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden; padding: 18px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-weight: 700; font-size: 15px; letter-spacing: .12em;
  color: var(--ink-3); text-transform: uppercase; white-space: nowrap;
}
.marquee-track i { color: var(--line-2); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   区块通用
   ========================================================================== */
.section { padding: 108px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--ink-3); text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow i { font-style: normal; color: var(--ink); border-bottom: 2px solid var(--ink); }
.section-title { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.03em; }
.section-sub { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; }

/* 滚动浮现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }
.no-observer [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   插件卡片
   ========================================================================== */
.featured-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
}
.plugin-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.plugin-grid-3 { grid-template-columns: repeat(3, 1fr); }

.p-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .35s;
  box-shadow: var(--shadow-1);
}
.p-card.is-filtering { display: none; }
.p-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-3); border-color: var(--line-2); }

.p-card-link { display: flex; flex-direction: column; height: 100%; }
.p-cover {
  position: relative; aspect-ratio: 16 / 9.6; overflow: hidden;
  background: var(--bg-soft);
}
.p-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.p-card:hover .p-cover img { transform: scale(1.055); }
.cover-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    linear-gradient(140deg, hsl(var(--h, 220) 14% 97%), hsl(var(--h, 220) 16% 88%));
  position: relative;
}
.cover-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgb(19 19 22 / .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(19 19 22 / .035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cover-ph span {
  font-size: clamp(52px, 6vw, 84px); font-weight: 800;
  color: hsl(var(--h, 220) 12% 78%);
  letter-spacing: -.04em;
  transition: transform .8s var(--ease), color .5s;
}
.p-card:hover .cover-ph span { transform: scale(1.08); color: hsl(var(--h, 220) 14% 68%); }
.cover-ph-lg { aspect-ratio: 16 / 10; height: auto; }

.p-flag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgb(19 19 22 / .82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; font-weight: 700;
}
.p-unlock-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok);
  border: 1px solid rgb(22 163 74 / .25);
  font-size: 12px; font-weight: 700;
  animation: popIn .5s var(--ease) both;
}

.p-body {
  position: relative;
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-2);
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--line);
}
.chip-ghost { background: transparent; }
.p-name { font-size: 21px; letter-spacing: -.02em; }
.p-tagline {
  color: var(--ink-2); font-size: 14.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.p-meta {
  display: flex; flex-wrap: wrap; gap: 7px 16px;
  padding-top: 14px; margin-top: auto;
  border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-3);
}
.p-meta span { display: inline-flex; align-items: center; gap: 6px; }
.p-go {
  position: absolute; right: 22px; bottom: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink);
  transition: background .35s, color .35s, transform .5s var(--ease);
}
.p-card:hover .p-go { background: var(--ink); color: #fff; transform: translateX(3px) rotate(-45deg); }

.p-card-lg .p-cover { aspect-ratio: 16 / 8.4; }
.p-card-lg .p-name { font-size: 25px; }
.p-card-lg .p-tagline { -webkit-line-clamp: 2; font-size: 15.5px; }

@keyframes popIn {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

/* 分类筛选 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-pill {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .35s var(--ease);
}
.filter-pill b { font-weight: 700; color: var(--ink-3); margin-left: 4px; transition: color .3s; }
.filter-pill:hover { border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); }
.filter-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-pill.is-active b { color: rgb(255 255 255 / .55); }

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 90px 20px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-l);
  color: var(--ink-2); background: var(--surface);
}
.empty-state .icon { width: 46px; height: 46px; margin: 0 auto 18px; color: var(--ink-3); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   兑换流程 & 数据带
   ========================================================================== */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative;
  margin-bottom: 84px;
}
.steps::before {
  content: ""; position: absolute; top: 84px; left: 8%; right: 8%;
  border-top: 1.5px dashed var(--line-2); z-index: 0;
}
.step {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 34px 30px 30px; text-align: center;
  box-shadow: var(--shadow-1);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.step-num {
  position: absolute; top: 22px; right: 26px;
  font-size: 44px; font-weight: 800; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.3px var(--line-2);
  transition: -webkit-text-stroke-color .4s, color .4s;
}
.step:hover .step-num { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
.step-icon {
  width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 19px; background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 22px -8px rgb(19 19 22 / .4);
  transition: transform .55s var(--ease);
}
.step-icon .icon { width: 26px; height: 26px; }
.step:hover .step-icon { transform: rotate(-8deg) scale(1.08); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.step code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--bg-soft); padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--line);
}

.stats-band {
  display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 44px clamp(20px, 4vw, 56px);
  box-shadow: var(--shadow-1);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat b {
  display: block; font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 800; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat b::after { content: attr(data-suffix); }
.stat span { font-size: 13.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .08em; }
.stat-divider { width: 1px; height: 54px; background: var(--line); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); overflow: hidden;
  transition: border-color .3s, box-shadow .4s;
}
.faq-item.open { border-color: var(--ink-3); box-shadow: var(--shadow-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 21px 24px; text-align: left;
  font-size: 16.5px; font-weight: 650;
}
.faq-x {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--bg-soft);
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.faq-item.open .faq-x { transform: rotate(135deg); background: var(--ink); color: #fff; }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease);
}
.faq-a-inner { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner p, .faq-a-inner { color: var(--ink-2); }
.faq-a-inner { padding: 0 24px; }
.faq-item.open .faq-a-inner { padding-bottom: 22px; }
.faq-a-inner { transition: padding .4s; }

/* ==========================================================================
   CTA / 页脚
   ========================================================================== */
.cta-band { padding: 40px 0 110px; }
.cta-inner {
  position: relative; text-align: center;
  background: var(--ink); color: #fff;
  border-radius: 30px; padding: 84px 32px;
  overflow: hidden;
}
.cta-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 50% 130%, rgb(255 255 255 / .16), transparent 60%),
    radial-gradient(ellipse 30% 40% at 20% 0%, rgb(255 255 255 / .07), transparent 60%);
  pointer-events: none;
}
.cta-inner h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; }
.cta-inner p { margin: 14px 0 32px; color: rgb(255 255 255 / .62); font-size: 17px; }
.cta-inner .btn-primary { background: #fff; color: var(--ink); }
.cta-inner .btn-primary:hover { box-shadow: 0 14px 34px -10px rgb(255 255 255 / .35); }

.footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 72px; overflow: hidden; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px;
  padding-bottom: 30px;
}
.footer-desc { margin-top: 16px; color: var(--ink-2); font-size: 14.5px; max-width: 30em; }
.footer-col h4 { font-size: 13px; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 16px; }
.footer-col a {
  display: block; padding: 5.5px 0; color: var(--ink-2); font-size: 14.5px;
  transition: color .25s, transform .3s var(--ease);
}
.footer-col a:hover { color: var(--ink); transform: translateX(4px); }
.footer-note { color: var(--ink-2); font-size: 13.5px; line-height: 1.8; }
.footer-word {
  font-size: clamp(90px, 17vw, 230px); font-weight: 800; letter-spacing: .02em;
  line-height: .78; text-align: center; user-select: none;
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
  margin: 8px 0 -14px;
}
.footer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 20px 0 26px;
  font-size: 13px; color: var(--ink-3);
}
.footer-icp a:hover { color: var(--ink); }

/* ==========================================================================
   CDK 表单 / 弹窗
   ========================================================================== */
.cdk-field { display: flex; gap: 10px; }
.cdk-field input {
  flex: 1; min-width: 0;
  padding: 13px 18px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface);
  font-family: var(--mono); font-size: 15px; letter-spacing: .06em;
  transition: border-color .3s, box-shadow .3s;
  text-transform: uppercase;
}
.cdk-field input:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 4px rgb(19 19 22 / .07);
}
.cdk-field-lg input { padding: 17px 24px; font-size: 17px; text-align: center; }
.redeem-form .btn { margin-top: 12px; }
.redeem-form .cdk-field .btn { margin-top: 0; }
.form-error {
  color: var(--err); font-size: 13.5px; font-weight: 600;
  margin-top: 12px; display: flex; align-items: center; gap: 7px;
}
.form-error.shake { animation: shake .5s var(--ease); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.form-hint { font-size: 13px; color: var(--ink-3); margin-top: 16px; line-height: 1.9; }

.modal-root {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: 22px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.modal-root.open { opacity: 1; pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgb(19 19 22 / .34);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.modal-card {
  position: relative; width: min(460px, 100%);
  background: var(--surface); border-radius: 26px;
  padding: 44px 38px 34px;
  box-shadow: var(--shadow-3);
  transform: translateY(26px) scale(.96);
  transition: transform .5s var(--ease);
}
.modal-root.open .modal-card { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink-2);
  transition: background .3s, transform .4s var(--ease);
}
.modal-close:hover { background: var(--line); transform: rotate(90deg); }
.modal-state { text-align: center; }
.modal-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 20px; background: var(--ink); color: #fff;
  display: grid; place-items: center;
  animation: iconFloat 4s ease-in-out infinite;
}
.modal-icon .icon { width: 26px; height: 26px; }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}
.modal-title { font-size: 23px; margin-bottom: 8px; }
.modal-sub { color: var(--ink-2); font-size: 14.5px; margin-bottom: 24px; }

/* 成功打勾动画 */
.success-check { width: 74px; margin: 0 auto 18px; }
.success-check-lg { width: 92px; }
.success-check svg { width: 100%; }
.success-check-circle {
  stroke: var(--ok); stroke-width: 2.5;
  stroke-dasharray: 145; stroke-dashoffset: 145;
  animation: drawStroke .7s var(--ease) forwards;
}
.success-check-mark {
  stroke: var(--ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: drawStroke .45s .5s var(--ease) forwards;
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
.success-title { font-size: 26px; margin-bottom: 6px; }
.success-actions { display: grid; gap: 12px; margin: 20px 0 4px; }
.success-actions-page { text-align: left; }
.success-link-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-soft);
}
.success-link-row a {
  flex: 1; font-family: var(--mono); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink); font-weight: 600;
}
.success-link-row .icon-btn { flex: none; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink-2);
  transition: all .3s var(--ease);
}
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn.copied { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ==========================================================================
   详情页
   ========================================================================== */
.detail-hero { position: relative; padding: calc(var(--nav-h) + 44px) 0 44px; overflow: hidden; }
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3); margin-bottom: 30px;
}
.crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 12px; height: 12px; }
.crumbs span { color: var(--ink); font-weight: 600; }

.detail-head { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 44px; align-items: center; }
.detail-cover {
  border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-3);
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
}
.detail-info .p-chips { margin-bottom: 18px; }
.detail-title { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.035em; margin-bottom: 14px; }
.detail-tagline { font-size: 18px; color: var(--ink-2); }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px;
  font-size: 13.5px; color: var(--ink-3);
}
.detail-meta span { display: inline-flex; align-items: center; gap: 7px; }

.detail-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 372px;
  gap: 48px; align-items: start;
  padding: 56px 28px 110px;
}
.detail-sec-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; margin-bottom: 22px; letter-spacing: -.01em;
}
.detail-sec-title .icon { color: var(--ink-2); }
.detail-main section { margin-bottom: 60px; }

/* 画廊 */
.gallery {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}
.gallery-item {
  flex: 0 0 min(430px, 84%);
  scroll-snap-align: start;
  border-radius: var(--r-m); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  cursor: zoom-in;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.gallery-item img { aspect-ratio: 16 / 9.6; object-fit: cover; width: 100%; }
.gallery-item figcaption {
  padding: 11px 15px; font-size: 12.5px; color: var(--ink-3);
  border-top: 1px solid var(--line); background: var(--surface);
}

/* 正文排版 */
.prose { color: var(--ink-2); font-size: 15.5px; line-height: 2; }
.prose p { margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose-log { border-left: 2.5px solid var(--line-2); padding-left: 22px; }

/* 侧边卡 */
.detail-aside { position: sticky; top: calc(var(--nav-h) + 28px); }
.buy-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 32px 28px;
  box-shadow: var(--shadow-2);
}
.buy-state { text-align: center; }
.buy-state h3 { font-size: 21px; margin: 16px 0 8px; }
.buy-state > p { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.buy-icon {
  width: 64px; height: 64px; margin: 0 auto;
  border-radius: 20px; background: var(--ink); color: #fff;
  display: grid; place-items: center;
}
.buy-icon .icon { width: 27px; height: 27px; }
.buy-icon.ok { background: var(--ok); animation: iconPop .6s var(--ease) both; }
.buy-icon.muted { background: var(--bg-soft); color: var(--ink-3); border: 1px solid var(--line); }
@keyframes iconPop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } to { transform: scale(1); } }
.buy-state form { margin-top: 4px; text-align: left; }
.buy-perks {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; gap: 9px; text-align: left;
}
.buy-perks li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink-2);
}
.buy-perks .icon { color: var(--ok); }
.buy-expiry {
  font-size: 13px !important; color: var(--ok) !important;
  font-weight: 700; margin-bottom: 16px !important;
  font-variant-numeric: tabular-nums;
}

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 170;
  display: grid; place-items: center; padding: 40px;
  background: rgb(19 19 22 / .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1100px, 92vw); max-height: 84vh;
  border-radius: 14px; box-shadow: var(--shadow-3);
  transform: scale(.94); transition: transform .4s var(--ease);
}
.lightbox.open img { transform: none; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgb(255 255 255 / .12); color: #fff;
  display: grid; place-items: center;
  transition: background .3s, transform .4s var(--ease);
}
.lightbox-close:hover { background: rgb(255 255 255 / .25); transform: rotate(90deg); }

/* ==========================================================================
   兑换页 / 错误页
   ========================================================================== */
.redeem-page { position: relative; padding: calc(var(--nav-h) + 70px) 0 110px; overflow: hidden; }
.redeem-wrap { display: grid; }
.redeem-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 30px; padding: 60px clamp(26px, 6vw, 72px) 48px;
  box-shadow: var(--shadow-2); text-align: center;
}
.redeem-hero-icon {
  width: 76px; height: 76px; margin: 0 auto 22px;
  border-radius: 24px; background: var(--ink); color: #fff;
  display: grid; place-items: center;
  animation: iconFloat 5s ease-in-out infinite;
}
.redeem-hero-icon .icon { width: 30px; height: 30px; }
.redeem-card h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; }
.redeem-lede { color: var(--ink-2); margin: 14px auto 34px; max-width: 32em; }
.redeem-form-page { text-align: left; }
.redeem-tips {
  margin-top: 30px; padding-top: 24px;
  border-top: 1px dashed var(--line-2);
  display: grid; gap: 8px; justify-items: center;
}
.redeem-tips p { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.redeem-tips .icon { color: var(--ok); }
.redeem-tips a { text-decoration: underline; text-underline-offset: 3px; }

.error-page { padding: calc(var(--nav-h) + 90px) 0 130px; }
.error-card {
  text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 30px; padding: 70px 32px 60px;
  box-shadow: var(--shadow-2);
}
.error-card h1 { font-size: clamp(26px, 3vw, 36px); margin: 22px 0 10px; }
.error-sub { color: var(--ink-2); margin-bottom: 30px; }
.error-sub a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.error-code {
  font-size: clamp(70px, 9vw, 110px); font-weight: 800; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px var(--line-2);
  line-height: 1;
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-root {
  position: fixed; bottom: 28px; left: 50%; z-index: 180;
  transform: translateX(-50%);
  display: grid; gap: 10px; justify-items: center;
  pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-3);
  animation: toastIn .5s var(--ease) both;
}
.toast.out { animation: toastOut .4s var(--ease) both; }
.toast .icon { color: var(--ok); }
.toast.err .icon { color: #ff8f8f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(.94); } }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .plugin-grid, .plugin-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-body { grid-template-columns: 1fr; }
  .detail-aside { position: static; max-width: 520px; }
  .detail-head { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 76px 0; }
  .hero { padding: calc(var(--nav-h) + 46px) 0 76px; }
  .featured-grid { grid-template-columns: 1fr; }
  .plugin-grid, .plugin-grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .stats-band { gap: 26px; }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cdk-field { flex-direction: column; }
  .cdk-field .btn { width: 100%; }
  .modal-card { padding: 38px 26px 28px; }
  .detail-body { padding-bottom: 80px; gap: 36px; }
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
