/* ==========================================================================
   Mys-Plugin · 静态宣传站（亮色主题）
   纯手写 CSS：白色卡片 + 柔和渐变光晕 + 细腻阴影，全站响应式
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 底色与表面 */
  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #eff3fa;
  --surface-4: #e7edf8;

  /* 描边 */
  --line: #e6eaf3;
  --line-strong: #d3dbeb;

  /* 文字 */
  --text: #0e1526;
  --text-2: #26314b;
  --muted: #566280;
  --muted-2: #5f6b86;

  /* 主题色（在浅色底上取更深一档，保证对比度） */
  --violet: #6d4df0;
  --sky: #1180e6;
  --mint: #069b7d;
  --gold: #96610a;
  --pink: #d8447f;

  --grad: linear-gradient(100deg, #9070f7 0%, #46a8ff 48%, #2bd9ae 100%);
  --grad-strong: linear-gradient(100deg, #573bf0 0%, #0d74e0 52%, #05987a 100%);
  --grad-soft: linear-gradient(135deg, rgba(109, 77, 240, 0.1), rgba(17, 128, 230, 0.07) 55%, rgba(6, 155, 125, 0.08));

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px -14px rgba(15, 23, 42, 0.24);
  --shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 22px 46px -28px rgba(19, 32, 64, 0.32);
  --shadow-lg: 0 3px 10px rgba(15, 23, 42, 0.05), 0 40px 74px -36px rgba(19, 32, 64, 0.38);
  --shadow-glow: 0 30px 66px -34px rgba(87, 59, 240, 0.42);

  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;

  --maxw: 1180px;
  --nav-h: 72px;

  --font: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI",
    "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas,
    "Liberation Mono", Menlo, monospace;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

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

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

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0;
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
}

::selection {
  background: rgba(109, 77, 240, 0.16);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 3. 全局背景光晕 ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(880px 520px at 84% -10%, rgba(144, 112, 247, 0.2), transparent 62%),
    radial-gradient(720px 460px at 4% 0%, rgba(70, 168, 255, 0.16), transparent 62%),
    radial-gradient(900px 640px at 52% 108%, rgba(43, 217, 174, 0.14), transparent 66%),
    linear-gradient(180deg, #f8faff 0%, #f4f7fd 45%, #f8fafe 100%);
}

.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 16%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 16%, #000 0%, transparent 72%);
}

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: min(var(--maxw), 100% - 40px);
  margin-inline: auto;
}

.section {
  padding: 92px 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(109, 77, 240, 0.2);
  background: rgba(109, 77, 240, 0.07);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.is-center .eyebrow::before {
  display: none;
}

h2.title {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  letter-spacing: -0.03em;
}

.lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.lead code {
  font-family: var(--mono);
}

/* 段落内的行内代码统一成浅色小胶囊 */
.card p code,
.lead code,
.hero-sub code,
.doc-hero p code,
.pay-hint code,
.step span code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: #3d4a68;
  font-size: 12.5px;
}

.grad-text {
  background: var(--grad-strong);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-py: 12px;
  --btn-px: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease,
    border-color 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #071021;
  background: var(--grad);
  background-size: 170% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 24px -12px rgba(70, 168, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-position 0.5s ease,
    border-color 0.22s ease, color 0.22s ease;
}

.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 16px 34px -14px rgba(70, 168, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: #b9c4dd;
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  --btn-py: 14px;
  --btn-px: 28px;
  font-size: 0.98rem;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 6. 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(180%);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1320px, 100% - 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  flex: none;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #071021;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 8px 18px -10px rgba(70, 168, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text b {
  font-size: 0.98rem;
}

.brand-text span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-3);
}

.nav-cta {
  margin-left: 8px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  place-items: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.24s ease, opacity 0.24s ease, background 0.24s ease;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.nav.is-open .nav-toggle span {
  background: transparent;
}

.nav.is-open .nav-toggle span::before {
  transform: rotate(45deg);
}

.nav.is-open .nav-toggle span::after {
  transform: rotate(-45deg) translateY(-1px);
}

/* ---------- 7. Hero ---------- */
.hero {
  padding: 78px 0 84px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12.8px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-xs);
}

.pill b {
  color: var(--text);
  font-weight: 700;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10c98f;
  box-shadow: 0 0 0 4px rgba(16, 201, 143, 0.16);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 201, 143, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(16, 201, 143, 0.03); }
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.15rem, 4.9vw, 3.65rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-sub {
  margin-top: 20px;
  max-width: 34em;
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.78;
}

.hero-sub strong {
  color: var(--text-2);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-stats div {
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #ffffff, #fafbff);
  box-shadow: var(--shadow-xs);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.hero-stats div:hover {
  transform: translateY(-2px);
  border-color: #ccd7ee;
  box-shadow: var(--shadow-sm);
}

.hero-stats b {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-strong);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span {
  display: block;
  font-size: 12.5px;
  color: var(--muted-2);
  font-weight: 600;
  margin-top: 2px;
}

/* 命令演示卡 */
.console {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.console::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
  opacity: 0.9;
}

.console-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.console-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-4);
}

.console-bar i:nth-child(1) { background: #ff8b8b; }
.console-bar i:nth-child(2) { background: #ffcd66; }
.console-bar i:nth-child(3) { background: #6fdc9b; }

.console-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.console-body {
  position: relative;
  padding: 20px 20px 22px;
  font-family: var(--mono);
  font-size: 13.4px;
  line-height: 1.85;
  display: grid;
  gap: 15px;
}

.console-row {
  display: grid;
  gap: 4px;
}

.console-cmd {
  color: var(--text);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.console-cmd em {
  font-style: normal;
  color: var(--violet);
  font-weight: 700;
}

.console-cmd code {
  color: var(--text-2);
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12.6px;
}

.console-out {
  color: var(--muted);
  font-size: 12.6px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.console-out .ok { color: var(--mint); font-weight: 700; }
.console-out .img { color: var(--sky); font-weight: 700; }
.console-out .wait { color: var(--gold); font-weight: 700; }

.console-tag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: var(--surface);
  font-family: var(--font);
  font-weight: 600;
}

.console-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.console-foot span {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- 8. 功能卡片 ---------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

.card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #cfd9ef;
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #071021;
  background: var(--grad);
  box-shadow: 0 10px 22px -12px rgba(70, 168, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}

.card:hover .card-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 26px -12px rgba(70, 168, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.card-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.06rem;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.card p {
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.74;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.card-tags code {
  font-size: 11.6px;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: #3d4a68;
}

/* ---------- 9. 命令演示 Tab ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-3);
  width: fit-content;
  max-width: 100%;
  margin-bottom: 26px;
}

.tab {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.tab[aria-selected="true"] {
  color: #071021;
  background: var(--grad);
  box-shadow: 0 8px 18px -10px rgba(70, 168, 255, 0.9);
}

.tab:hover:not([aria-selected="true"]) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
}

.panel[hidden] {
  display: none;
}

.cmd-list {
  display: grid;
  gap: 10px;
}

.cmd-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.cmd-item:hover {
  border-color: #ccd7ee;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.cmd-item code {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  word-break: break-word;
}

.cmd-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11.8px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.copy-btn:hover {
  color: var(--violet);
  border-color: rgba(109, 77, 240, 0.45);
  background: rgba(109, 77, 240, 0.06);
}

.copy-btn.is-done {
  color: #056b56;
  background: #e7faf3;
  border-color: #b5ebd9;
}

/* ---------- 10. 游戏支持 ---------- */
.games {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.game {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.game:hover {
  transform: translateY(-3px);
  border-color: #ccd7ee;
  box-shadow: var(--shadow-sm);
}

.game-glyph {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: #16233c;
  background: linear-gradient(140deg, #d8e3ff, #c6f5e8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.game:nth-child(2) .game-glyph { background: linear-gradient(140deg, #e2d9ff, #cfe0ff); }
.game:nth-child(3) .game-glyph { background: linear-gradient(140deg, #ffe8bd, #ffd7c4); }
.game:nth-child(4) .game-glyph { background: linear-gradient(140deg, #d9f6ff, #d3e6ff); }
.game:nth-child(5) .game-glyph { background: linear-gradient(140deg, #ffe0ea, #ffd2de); }
.game:nth-child(6) .game-glyph { background: linear-gradient(140deg, #eadcff, #dbe6ff); }
.game:nth-child(7) .game-glyph { background: linear-gradient(140deg, #dcfaea, #d4f3ef); }
.game:nth-child(8) .game-glyph { background: linear-gradient(140deg, #e8ecff, #dfe4ff); }

.game-meta {
  min-width: 0;
}

.game-meta b {
  display: block;
  font-size: 0.95rem;
}

.game-meta span {
  display: block;
  font-size: 12.4px;
  color: var(--muted-2);
  font-weight: 600;
}

/* ---------- 11. 价格 / 收款 ---------- */
.price-wrap {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 34px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #ffffff, #fbfcff) padding-box,
    linear-gradient(135deg, rgba(109, 77, 240, 0.55), rgba(70, 168, 255, 0.45) 50%, rgba(43, 217, 174, 0.5)) border-box;
  box-shadow: var(--shadow-glow), var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.price-card::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(144, 112, 247, 0.16), transparent 68%);
  pointer-events: none;
}

.price-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(150, 97, 10, 0.26);
  background: #fff7e6;
  color: #8a5805;
  font-size: 12.4px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.price-amount {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 22px 0 8px;
}

.price-amount .cur {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--muted);
  transform: translateY(-10px);
}

.price-amount .num {
  font-size: clamp(3.2rem, 8vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  background: var(--grad-strong);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-amount .unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 10px;
}

.price-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.price-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.65;
}

.price-list svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  stroke: var(--mint);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

/* 收款码卡 */
.pay-card {
  padding: 30px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #ffffff, #f9fbff);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pay-card h3 {
  font-size: 1.12rem;
}

.pay-card .pay-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 30em;
}

.pay-brands {
  display: flex;
  gap: 8px;
  margin: 16px 0 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.pay-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.4px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-xs);
}

.pay-brand i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.pay-brand.wechat i { background: #22c55e; }
.pay-brand.alipay i { background: #1677ff; }

.qr-frame {
  position: relative;
  margin: 20px 0 16px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(19, 32, 64, 0.4), 0 0 0 6px rgba(109, 77, 240, 0.05);
  cursor: zoom-in;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  width: min(330px, 100%);
}

.qr-frame:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 24px 50px -24px rgba(19, 32, 64, 0.45), 0 0 0 6px rgba(109, 77, 240, 0.1);
}

.qr-frame img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.qr-frame::after {
  content: "点击放大";
  position: absolute;
  inset: auto 12px 12px;
  padding: 7px 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(14, 21, 38, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.qr-frame:hover::after,
.qr-frame:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.pay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  font-size: 12.6px;
  color: var(--muted-2);
}

.pay-meta b {
  color: var(--text-2);
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  width: 100%;
  text-align: left;
}

.step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.step i {
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  font-style: normal;
  color: #071021;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.step b {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
}

.step span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-2);
  line-height: 1.62;
}

/* ---------- 12. FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
  overflow: hidden;
}

.faq details[open] {
  border-color: #ccd7ee;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.26s ease, border-color 0.26s ease;
}

.faq summary:hover {
  background: var(--surface-2);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
  border-color: var(--violet);
}

.faq .answer {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.faq .answer code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: #3d4a68;
  font-size: 12.5px;
}

.faq .answer b {
  color: var(--text-2);
}

/* ---------- 13. 结尾 CTA ---------- */
.cta-band {
  position: relative;
  padding: 54px 44px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(109, 77, 240, 0.16);
  background:
    radial-gradient(620px 300px at 88% 12%, rgba(70, 168, 255, 0.22), transparent 68%),
    radial-gradient(520px 280px at 8% 92%, rgba(43, 217, 174, 0.18), transparent 70%),
    linear-gradient(120deg, #f4f1ff, #eef6ff 52%, #eefcf7);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42em;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 14. 页脚 ---------- */
.footer {
  padding: 50px 0 34px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.footer p {
  color: var(--muted-2);
  font-size: 0.88rem;
  max-width: 30em;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--violet);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------- 15. 图片放大（Lightbox） ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 21, 38, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(520px, 100%);
  max-height: 86vh;
  width: auto;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(13, 20, 38, 0.6);
  transform: scale(0.96);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

/* ---------- 16. 滚动揭示（渐进增强：未启用 JS 时内容始终可见） ---------- */
[data-reveal] {
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.reveal-ready [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 文档页（docs.html） ---------- */
.doc-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 40px 0 72px;
}

.doc-side {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  max-height: calc(100vh - var(--nav-h) - 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box input:focus {
  border-color: rgba(109, 77, 240, 0.55);
  box-shadow: 0 0 0 4px rgba(109, 77, 240, 0.1);
  outline: none;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--muted-2);
  stroke-width: 2;
  fill: none;
}

.doc-toc {
  overflow-y: auto;
  display: grid;
  gap: 2px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.doc-toc::-webkit-scrollbar {
  width: 8px;
}

.doc-toc::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}

.doc-toc a {
  display: block;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.doc-toc a:hover {
  color: var(--text);
  background: var(--surface-3);
}

.doc-toc a.is-active {
  color: #4b32c9;
  font-weight: 700;
  background: rgba(109, 77, 240, 0.1);
  border-left-color: var(--violet);
}

.doc-main {
  min-width: 0;
}

.doc-hero {
  padding: 6px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.doc-hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  letter-spacing: -0.035em;
}

.doc-hero p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 46em;
  font-size: 0.97rem;
  line-height: 1.78;
}

.doc-hero .hero-actions {
  margin-top: 22px;
}

.doc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 0.86rem;
  color: var(--muted-2);
}

.doc-tools .count b {
  color: var(--text);
}

/* md 渲染后的排版 */
.md h2 {
  margin: 48px 0 16px;
  padding-top: 14px;
  font-size: clamp(1.32rem, 2.2vw, 1.62rem);
  letter-spacing: -0.025em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.md h2:first-child {
  margin-top: 0;
}

.md h3 {
  margin: 30px 0 12px;
  font-size: 1.08rem;
  color: var(--text);
}

.md h4 {
  margin: 24px 0 10px;
  font-size: 1rem;
}

.md p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.82;
}

.md ul {
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.md ul li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

.md ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-strong);
}

.md code {
  padding: 1.5px 6px;
  border-radius: 6px;
  background: var(--surface-3);
  border: 1px solid #e3e9f4;
  color: #33405c;
  font-size: 12.6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.md a {
  color: var(--sky);
  border-bottom: 1px solid rgba(17, 128, 230, 0.3);
  transition: border-color 0.2s ease;
}

.md a:hover {
  border-bottom-color: var(--sky);
}

.md strong {
  color: var(--text-2);
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  -webkit-overflow-scrolling: touch;
}

.md table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
  min-width: 520px;
}

.md thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.md tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #eff2f8;
  color: var(--muted);
  vertical-align: top;
  line-height: 1.74;
}

.md tbody tr:last-child td {
  border-bottom: 0;
}

.md tbody tr:hover td {
  background: #fafbff;
  color: var(--text-2);
}

.md tbody td:first-child {
  color: var(--text-2);
  font-weight: 600;
}

.md .md-hidden {
  display: none;
}

.doc-empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

/* 文档页顶部简版导航 */
.nav-slim .nav-links a {
  font-size: 0.88rem;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s ease,
    border-color 0.2s ease;
}

.to-top:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .price-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doc-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
  }

  .doc-side {
    position: static;
    max-height: none;
  }

  .doc-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 216px;
  }

  .doc-toc a {
    border-left: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.82rem;
  }

  .doc-toc a.is-active {
    border-color: rgba(109, 77, 240, 0.45);
    background: rgba(109, 77, 240, 0.1);
  }
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) - 6px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    display: none;
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 11px 14px;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-cta {
    margin-left: 0;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 38px 26px;
  }

  .cmd-item {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .cmd-item span {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .card {
    padding: 24px 22px;
  }

  .price-card {
    padding: 28px 22px;
  }

  .pay-card {
    padding: 24px 18px;
  }

  .doc-side {
    padding: 14px 12px 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-text span {
    display: none;
  }

  .console-body {
    font-size: 12.4px;
    padding: 18px 16px 20px;
  }

  .nav-cta .btn {
    --btn-px: 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .nav-cta {
    display: none;
  }
}

/* ---------- 19. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 20. 打印 ---------- */
@media print {
  .bg-fx,
  .nav,
  .to-top,
  .lightbox {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
  }

  .card,
  .price-card,
  .pay-card,
  .console,
  .table-scroll {
    border-color: #ccc;
    background: #fff;
    box-shadow: none;
  }
}
