/* ============================================================
   设计令牌 — 暗色终端工程美学
   与产品 MD3 主色（#6750A4）呼应：紫作为次级强调色
   ============================================================ */
:root {
  color-scheme: dark;

  /* 表面色 */
  --bg:           #0b0c10;
  --bg-2:         #0e1015;
  --surface:      #161922;
  --surface-2:    #1d2230;
  --surface-3:    #252b3a;
  --border:       #2a3142;
  --border-strong:#3a4255;
  --code-bg:      #08090d;

  /* 文字 */
  --text:         #e8eaed;
  --text-muted:   #8b909a;
  --text-dim:     #5a6072;

  /* 强调色 */
  --accent:       #c4f042;
  --accent-2:     #a8d437;
  --accent-soft:  rgba(196, 240, 66, 0.10);
  --accent-glow:  rgba(196, 240, 66, 0.35);
  --violet:       #c4b5ff;
  --violet-soft:  rgba(196, 181, 255, 0.10);
  --violet-glow:  rgba(196, 181, 255, 0.25);
  --warn:         #ff7849;
  --info:         #7dd3fc;

  /* 形状（呼应 MD3） */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* 字体 */
  --font-display: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-body:    "IBM Plex Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-cn:      "Noto Sans SC", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* 阴影 */
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.25);
  --shadow-2: 0 2px 6px rgba(0,0,0,.45), 0 4px 12px rgba(0,0,0,.3);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-glow-violet: 0 0 40px var(--violet-glow);

  /* 容器 */
  --container: 1240px;
}

/* ============================================================
   基础重置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* 全局背景纹理：网格刻度 + 噪点 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(58, 66, 85, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(58, 66, 85, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(196, 240, 66, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(196, 181, 255, 0.05), transparent 60%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============================================================
   通用容器与排版
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; position: relative; }
.section-head { margin-bottom: 56px; max-width: 760px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.violet { color: var(--violet); }
.eyebrow.violet::before { background: var(--violet); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}
.section-title .accent { color: var(--accent); }
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(42, 49, 66, 0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  position: relative;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand .name-cn { font-family: var(--font-cn); font-weight: 700; }
.brand .name-en { color: var(--text-muted); font-size: 13px; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 160ms ease;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  margin: 4px auto 0;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.version-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 200ms cubic-bezier(0.2, 0, 0, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0b0c10;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(29, 34, 48, 0.4);
}
.btn-ghost:hover {
  border-color: var(--violet);
  background: var(--violet-soft);
  color: var(--violet);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(196, 240, 66, 0.25);
  border-radius: var(--r-full);
  background: var(--accent-soft);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.2vw, 88px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}
.hero-title .line { display: block; }
.hero-title .accent {
  color: var(--accent);
  position: relative;
}
.hero-title .accent::after {
  content: '_';
  color: var(--accent);
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero-title-cn {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text);
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  line-height: 1.3;
}
.hero-title-cn .sep {
  color: var(--accent);
  margin: 0 6px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.7;
}
.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}
.hero-desc .warn { color: var(--warn); font-weight: 500; }
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.hero-meta span::before {
  content: '◇';
  color: var(--accent);
  margin-right: 8px;
}

/* Hero 视觉：悬浮球 + 搜索窗 */
.hero-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ball {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #8b5cf6 0%, #6750A4 35%, #4c1d95 75%, #2e1065 100%);
  box-shadow:
    0 0 0 1px rgba(196, 181, 255, 0.3),
    0 0 60px rgba(124, 58, 237, 0.4),
    inset 0 2px 8px rgba(255, 255, 255, 0.15),
    inset 0 -4px 12px rgba(0, 0, 0, 0.5);
  top: 38%;
  left: 18%;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}
.ball::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(196, 181, 255, 0.5), transparent 70%);
  animation: pulse-soft 3s ease-in-out infinite;
}
.ball::after {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* 搜索窗 mockup */
.search-mock {
  position: absolute;
  top: 22%;
  right: 4%;
  width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), 0 0 80px rgba(124, 58, 237, 0.1);
  z-index: 2;
  overflow: hidden;
  font-size: 13px;
}
.search-mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.search-mock-bar .prompt {
  color: var(--accent);
  font-family: var(--font-mono);
}
.search-mock-bar input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  flex: 1;
}
.search-mock-bar .caret {
  width: 2px;
  height: 16px;
  background: var(--accent);
  animation: blink 1.2s steps(2) infinite;
}
.search-mock-bar .gear {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}
.search-mock-list {
  padding: 6px;
}
.search-mock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  transition: background 160ms ease;
}
.search-mock-item.active {
  background: var(--accent-soft);
  border: 1px solid rgba(196, 240, 66, 0.2);
  padding: 9px 11px;
}
.search-mock-item .ico {
  width: 22px;
  height: 22px;
  border-radius: var(--r-xs);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
}
.ico.purple { background: var(--violet-soft); color: var(--violet); border: 1px solid rgba(196, 181, 255, 0.3); }
.ico.green  { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(196, 240, 66, 0.3); }
.ico.gray   { background: var(--surface-3); color: var(--text-muted); }
.search-mock-item .label { flex: 1; color: var(--text); font-weight: 500; }
.search-mock-item .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
  padding: 2px 8px;
  border: 1px solid rgba(255, 120, 73, 0.3);
  border-radius: var(--r-full);
  background: rgba(255, 120, 73, 0.08);
}
.search-mock-item .badge.ok {
  color: var(--text-dim);
  border-color: var(--border);
  background: transparent;
}

/* 装饰：刻度环 */
.deco-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px dashed var(--border);
  opacity: 0.6;
  z-index: 0;
}
.deco-ring::before {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(42, 49, 66, 0.5);
}
.deco-tick {
  position: absolute;
  top: 50%; left: 50%;
  width: 460px;
  height: 460px;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.4;
}

/* ============================================================
   KPI 行
   ============================================================ */
.kpi {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(196, 240, 66, 0.02), transparent);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.kpi-cell {
  padding: 8px 24px;
  border-right: 1px solid var(--border);
  position: relative;
}
.kpi-cell:last-child { border-right: 0; }
.kpi-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 24px;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.kpi-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.kpi-num .unit {
  font-size: 0.4em;
  color: var(--accent);
  margin-left: 6px;
  font-weight: 500;
}
.kpi-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.kpi-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   三大支柱
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 240ms cubic-bezier(0.2, 0, 0, 1);
}
.pillar:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 240ms ease;
}
.pillar:hover::before { opacity: 1; }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid rgba(196, 240, 66, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.pillar-icon.violet {
  background: var(--violet-soft);
  border-color: rgba(196, 181, 255, 0.2);
  color: var(--violet);
}
.pillar h3 {
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.pillar h3 .en {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}
.pillar p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
}
.pillar-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.pillar-flow .step {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}
.pillar-flow .arrow {
  color: var(--accent);
}

/* ============================================================
   四大入口
   ============================================================ */
.entries {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.entries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.entry {
  background: var(--surface);
  padding: 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: background 200ms ease;
}
.entry:hover { background: var(--surface-2); }
.entry-mark {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
}
.entry-body { flex: 1; }
.entry h3 {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}
.entry h3 .kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid rgba(196, 240, 66, 0.25);
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  margin-left: 8px;
  vertical-align: middle;
}
.entry p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   安全模型对比
   ============================================================ */
.compare {
  position: relative;
}
.compare-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-head, .compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.compare-head {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.compare-head > div {
  padding: 18px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.compare-head > div:first-child { color: var(--text-dim); }
.compare-head > div:nth-child(2) { color: var(--text-muted); border-left: 1px solid var(--border); }
.compare-head > div:nth-child(3) {
  color: var(--accent);
  border-left: 1px solid var(--border);
  background: var(--accent-soft);
}
.compare-row {
  border-bottom: 1px solid var(--border);
  transition: background 200ms ease;
}
.compare-row:last-child { border-bottom: 0; }
.compare-row:hover { background: var(--surface-2); }
.compare-row > div {
  padding: 18px 24px;
  font-size: 14px;
  line-height: 1.5;
}
.compare-row > div:first-child {
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-cn);
}
.compare-row > div:nth-child(2) {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  border-left: 1px solid var(--border);
}
.compare-row > div:nth-child(3) {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  border-left: 1px solid var(--border);
  background: rgba(196, 240, 66, 0.03);
}
.compare-row .tag-yes {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
}
.compare-row .tag-no {
  color: var(--warn);
  font-weight: 600;
}
.compare-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--violet-soft);
  border-left: 3px solid var(--violet);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-muted);
}
.compare-note strong { color: var(--violet); }

/* ============================================================
   插件生态
   ============================================================ */
.plugins {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.plugin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 240ms cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
}
.plugin-card:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2), 0 0 40px var(--violet-glow);
}
.plugin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100px;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, var(--violet-soft), transparent);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.plugin-card:hover::before { opacity: 1; }
.plugin-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
}
.plugin-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}
.plugin-mark.hello { background: linear-gradient(135deg, #6750A4, #c4b5ff); color: #fff; }
.plugin-mark.clip  { background: linear-gradient(135deg, #c4f042, #84cc16); color: #0b0c10; }
.plugin-mark.sync  { background: linear-gradient(135deg, #7dd3fc, #3b82f6); color: #0b0c10; }
.plugin-card h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}
.plugin-card .plugin-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}
.plugin-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  min-height: 60px;
}
.plugin-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.plugin-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.plugin-tag.warn { color: var(--warn); border-color: rgba(255, 120, 73, 0.3); }
.plugin-tag.ok { color: var(--accent); border-color: rgba(196, 240, 66, 0.3); }
.plugin-tag.info { color: var(--info); border-color: rgba(125, 211, 252, 0.3); }

.market-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.market-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet-glow), transparent 60%);
  pointer-events: none;
}
.market-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.market-card h3 .accent { color: var(--accent); }
.market-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 24px;
}
.market-card .market-meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.market-card .market-meta span::before {
  content: '◇';
  color: var(--violet);
  margin-right: 8px;
}
.market-visual {
  position: relative;
  height: 280px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.market-grid-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
}
.market-card-mock {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  font-size: 9px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.market-card-mock .dot {
  width: 20px;
  height: 20px;
  border-radius: var(--r-xs);
  background: var(--surface-3);
}
.market-card-mock:nth-child(1) .dot { background: linear-gradient(135deg, #6750A4, #c4b5ff); }
.market-card-mock:nth-child(2) .dot { background: linear-gradient(135deg, #c4f042, #84cc16); }
.market-card-mock:nth-child(3) .dot { background: linear-gradient(135deg, #7dd3fc, #3b82f6); }
.market-card-mock:nth-child(4) .dot { background: linear-gradient(135deg, #ff7849, #f59e0b); }
.market-card-mock:nth-child(5) .dot { background: var(--surface-3); }
.market-card-mock:nth-child(6) .dot { background: linear-gradient(135deg, #ec4899, #be185d); }

/* ============================================================
   快速上手
   ============================================================ */
.start {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.start-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-3);
}
.terminal-dot.r { background: #ff5f56; }
.terminal-dot.y { background: #ffbd2e; }
.terminal-dot.g { background: #27c93f; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.terminal-line { display: block; }
.terminal-line .prompt { color: var(--accent); margin-right: 8px; }
.terminal-line .comment { color: var(--text-dim); }
.terminal-line .output { color: var(--text-muted); }
.terminal-line .key { color: var(--violet); }
.terminal-line .str { color: var(--accent); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 200ms ease;
}
.step:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  border: 1px solid rgba(196, 240, 66, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.step-body { flex: 1; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.step-body strong { color: var(--text); font-weight: 600; }
.step-body .kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xs);
  color: var(--accent);
  margin: 0 2px;
}
.step-body .code {
  font-family: var(--font-mono);
  color: var(--violet);
  font-size: 13px;
}

/* ============================================================
   文档
   ============================================================ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.docs-category {
  margin-bottom: 40px;
}
.docs-category-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 240ms ease;
  position: relative;
  overflow: hidden;
}
.doc-card::after {
  content: '→';
  position: absolute;
  top: 28px; right: 28px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 18px;
  transition: all 240ms ease;
}
.doc-card:hover {
  border-color: var(--violet);
  background: var(--surface-2);
}
.doc-card:hover::after {
  color: var(--violet);
  transform: translateX(4px);
}
.doc-card .doc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--violet);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-card h3 {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.doc-card h3 .en {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.doc-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 320px;
}
.footer-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}
.footer-version .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 160ms ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding: 110px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 360px; }
  .search-mock { width: 90%; right: 5%; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-cell { border-bottom: 1px solid var(--border); padding-bottom: 24px; }
  .kpi-cell:nth-child(2) { border-right: 0; }
  .pillars { grid-template-columns: 1fr; }
  .entries-grid { grid-template-columns: 1fr; }
  .compare-head, .compare-row { grid-template-columns: 1fr; }
  .compare-head > div, .compare-row > div {
    border-left: 0 !important;
    border-bottom: 1px solid var(--border);
  }
  .compare-head > div:last-child, .compare-row > div:last-child { border-bottom: 0; }
  .plugins-grid { grid-template-columns: 1fr; }
  .market-card { grid-template-columns: 1fr; padding: 28px; }
  .market-visual { height: 220px; }
  .start-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .arch-flow { grid-template-columns: 1fr; }
  .endorse-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .docs-page-grid { grid-template-columns: 1fr; }
  .changelog-timeline { grid-template-columns: 1fr; gap: 12px; }
  .changelog-timeline .changelog-marker { display: none; }
  .plugins-page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 100px 0 48px; }
  .hero-title { font-size: 38px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .entry { flex-direction: column; gap: 16px; }
  .nav-cta .version-tag { display: none; }
}

/* 加载入场动效 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 600ms cubic-bezier(0.2, 0, 0, 1) forwards;
}
.fade-in.d1 { animation-delay: 80ms; }
.fade-in.d2 { animation-delay: 160ms; }
.fade-in.d3 { animation-delay: 240ms; }
.fade-in.d4 { animation-delay: 320ms; }
.fade-in.d5 { animation-delay: 400ms; }
.fade-in.d6 { animation-delay: 480ms; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   新增章节样式 — 架构图 / FAQ / 背书 / 下载 / 文档卡片网格 /
                    更新日志时间线 / 404 / 插件市场详情
   ============================================================ */

/* ---------- 架构图 ---------- */
.arch {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.arch-flow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.arch-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  transition: all 240ms ease;
}
.arch-stage:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}
.arch-stage::after {
  content: '→';
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 22px;
  z-index: 2;
}
.arch-stage:last-child::after { display: none; }
.arch-stage-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.arch-stage h3 {
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}
.arch-stage h3 .en {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 4px;
  text-transform: uppercase;
}
.arch-nodes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arch-node {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 200ms ease;
}
.arch-node:hover {
  border-color: var(--violet);
  color: var(--text);
  background: var(--surface-2);
}
.arch-node .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.arch-node.violet .dot { background: var(--violet); }
.arch-node .code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
}
.arch-diagram {
  margin-top: 32px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  overflow-x: auto;
}
.arch-diagram svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
.arch-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-muted);
}
.arch-note strong { color: var(--accent); }

/* ---------- FAQ 手风琴 ---------- */
.faq {
  border-top: 1px solid var(--border);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 200ms ease;
  overflow: hidden;
}
.faq-item:hover {
  border-color: var(--border-strong);
}
.faq-item.open {
  border-color: var(--accent);
  background: var(--surface-2);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.faq-q .marker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  margin-right: 12px;
  letter-spacing: 0.04em;
}
.faq-q .toggle {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-muted);
  transition: all 240ms ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q .toggle {
  background: var(--accent);
  color: #0b0c10;
  border-color: var(--accent);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.2, 0, 0, 1);
}
.faq-a-inner {
  padding: 0 22px 20px 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-a-inner code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding: 1px 6px;
  background: var(--accent-soft);
  border-radius: var(--r-xs);
}
.faq-a-inner .kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xs);
  color: var(--accent);
  margin: 0 2px;
}

/* ---------- 背书 / 设计原则 ---------- */
.endorse {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.endorse-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.endorse-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.endorse-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.endorse-card h3 {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.endorse-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}
.endorse-card .source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.endorse-disclaimer {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--violet-soft);
  border-left: 3px solid var(--violet);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-muted);
}
.endorse-disclaimer strong { color: var(--violet); }

/* ---------- 下载页 ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 240ms ease;
}
.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.download-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 40%);
}
.download-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #0b0c10;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}
.download-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.download-card h3 {
  font-family: var(--font-cn);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.download-card .filename {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
  word-break: break-all;
}
.download-card .size {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.download-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
}
.download-card.disabled {
  opacity: 0.55;
}
.download-card.disabled .btn-primary {
  background: var(--surface-3);
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.download-card .platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--info);
  padding: 3px 10px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: var(--r-full);
  margin-bottom: 16px;
}

.download-spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 32px;
}
.download-spec h3 {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.spec-row .value {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 13px;
}
.spec-row .value .accent { color: var(--accent); }

.checksum-box {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  word-break: break-all;
}
.checksum-box .label {
  color: var(--accent);
  margin-right: 8px;
}

/* ---------- 文档索引页 ---------- */
.docs-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.docs-page-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 240ms ease;
  position: relative;
  overflow: hidden;
}
.docs-page-card:hover {
  border-color: var(--violet);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.docs-page-card .doc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--violet);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.docs-page-card h3 {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.docs-page-card h3 .en {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.docs-page-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.docs-page-card .meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}
.docs-page-card .meta span::before {
  content: '◇';
  color: var(--accent);
  margin-right: 6px;
}

/* ---------- 更新日志时间线 ---------- */
.changelog-timeline {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  position: relative;
}
.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 220px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-16px);
}
.changelog-entry {
  display: contents;
}
.changelog-marker {
  text-align: right;
  padding-right: 32px;
  position: relative;
}
.changelog-marker::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.changelog-marker .ver {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.changelog-marker .date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.changelog-body {
  padding-bottom: 40px;
}
.changelog-body h3 {
  font-family: var(--font-cn);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.changelog-body h3 .kind {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid rgba(196, 240, 66, 0.3);
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  margin-right: 10px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  text-transform: uppercase;
}
.changelog-body h3 .kind.violet {
  color: var(--violet);
  border-color: rgba(196, 181, 255, 0.3);
  background: var(--violet-soft);
}
.changelog-body h3 .kind.warn {
  color: var(--warn);
  border-color: rgba(255, 120, 73, 0.3);
  background: rgba(255, 120, 73, 0.08);
}
.changelog-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 12px;
}
.changelog-body ul.bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.changelog-body ul.bullets li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.changelog-body ul.bullets li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
}
.changelog-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding: 1px 6px;
  background: var(--accent-soft);
  border-radius: var(--r-xs);
}
.changelog-older {
  margin-top: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.changelog-older summary {
  padding: 16px 22px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
  list-style: none;
}
.changelog-older summary::-webkit-details-marker { display: none; }
.changelog-older summary::before {
  content: '▸ ';
  color: var(--accent);
}
.changelog-older[open] summary::before {
  content: '▾ ';
}
.changelog-older .body {
  padding: 0 22px 24px;
}

/* ---------- 插件市场详情页 ---------- */
.plugins-page-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 40px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.plugins-page-intro::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet-glow), transparent 60%);
  pointer-events: none;
}
.plugins-page-intro h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 12px;
}
.plugins-page-intro h2 .accent { color: var(--accent); }
.plugins-page-intro p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
}
.plugins-page-intro .meta {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.plugins-page-intro .meta span::before {
  content: '◇';
  color: var(--violet);
  margin-right: 6px;
}
.plugins-page-visual {
  height: 200px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: center;
}
.plugins-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.plugin-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 240ms ease;
}
.plugin-detail:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.plugin-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.plugin-detail h3 {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.plugin-detail .plugin-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}
.plugin-detail p.desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}
.plugin-detail .section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.plugin-detail .fields {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.plugin-detail .fields .k { color: var(--violet); }
.plugin-detail .fields .v { color: var(--accent); }
.plugin-detail .fields .s { color: var(--text-dim); }
.plugin-detail .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.plugin-detail .tag-row .plugin-tag.trig {
  color: var(--info);
  border-color: rgba(125, 211, 252, 0.3);
}
.plugin-detail .cta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.plugin-placeholder {
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 240px;
}
.plugin-placeholder .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  text-transform: uppercase;
}
.plugin-placeholder h3 {
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-muted);
}
.plugin-placeholder p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- 404 页 ---------- */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  position: relative;
}
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 240px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-shadow: 0 0 60px var(--accent-glow);
  margin-bottom: 24px;
  position: relative;
}
.notfound .code::after {
  content: '_';
  color: var(--accent);
  animation: blink 1.2s steps(2) infinite;
  margin-left: 8px;
}
.notfound .title {
  font-family: var(--font-cn);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}
.notfound .desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin: 0 0 32px;
}
.notfound .cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.notfound-deco {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  height: 540px;
  border-radius: 50%;
  border: 1px dashed var(--border);
  opacity: 0.4;
  z-index: -1;
}
.notfound-deco::before {
  content: '';
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  border: 1px solid rgba(42, 49, 66, 0.4);
}

/* ---------- 子页面通用 hero ---------- */
.page-hero {
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(196, 240, 66, 0.25);
  border-radius: var(--r-full);
  background: var(--accent-soft);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.page-hero-title .accent { color: var(--accent); }
.page-hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin: 0;
}
.page-hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 大号按钮 ---------- */
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ============================================================
   场景卡片（首页「能做什么」）
   ============================================================ */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 240ms ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scenario-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.scenario-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.scenario-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.scenario-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid rgba(196, 240, 66, 0.25);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scenario-icon.violet {
  background: var(--violet-soft);
  border-color: rgba(196, 181, 255, 0.25);
  color: var(--violet);
}
.scenario-card h3 {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.scenario-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ---------- CTA 行（场景/步骤下方） ---------- */
.scenario-cta-row {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   如何使用步骤（首页）
   ============================================================ */
.usage-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: usage;
}
.usage-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all 240ms ease;
}
.usage-step:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.usage-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0c10;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.usage-step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--violet-soft);
  border: 1px solid rgba(196, 181, 255, 0.25);
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.usage-step-body h3 {
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.usage-step-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   开发者文档链接网格（4 列）
   ============================================================ */
.dev-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.dev-links-grid .doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 240ms ease;
  position: relative;
  overflow: hidden;
}
.dev-links-grid .doc-card:hover {
  border-color: var(--violet);
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* ============================================================
   下载页 · 大卡片
   ============================================================ */
.download-primary {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 35%);
  border: 1px solid var(--accent);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
}
.download-primary::before {
  content: '推荐';
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #0b0c10;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}
.download-primary-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.download-primary-mark {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  border: 1px solid rgba(196, 240, 66, 0.3);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.download-primary-head .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.download-primary-head h3 {
  font-family: var(--font-cn);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.download-primary-head .filename {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
  word-break: break-all;
}
.download-primary-head .size {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.download-primary-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 28px;
}
.download-primary-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.download-primary-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- 通用折叠区 ---------- */
.download-foldable {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--code-bg);
  overflow: hidden;
}
.download-foldable > summary,
.download-folded-card > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.download-foldable > summary::-webkit-details-marker,
.download-folded-card > summary::-webkit-details-marker { display: none; }
.download-foldable > summary {
  padding: 16px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.download-foldable > summary::before {
  content: '▸ ';
  color: var(--accent);
}
.download-foldable[open] > summary::before {
  content: '▾ ';
}
.download-foldable-body {
  padding: 0 22px 20px;
}

/* ---------- 折叠卡片网格（其他方式） ---------- */
.download-folded-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.download-folded-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all 240ms ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download-folded-card[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-1);
}
.download-folded-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.download-folded-card > summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.download-folded-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.download-folded-card h3 {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.download-folded-card h3 .en {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.download-folded-card .filename {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
}
.download-folded-toggle {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.download-folded-card[open] .download-folded-toggle::before {
  content: '收起';
}
.download-folded-card:not([open]) .download-folded-toggle::before {
  content: '展开';
}
.download-folded-card.disabled {
  opacity: 0.55;
}
.download-folded-card.disabled > summary {
  cursor: default;
}
.download-folded-card.disabled:hover {
  border-color: var(--border);
  transform: none;
}
.download-folded-body {
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  margin-top: 6px;
}
.download-folded-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 16px;
}

/* ============================================================
   响应式 · 新章节
   ============================================================ */
@media (max-width: 980px) {
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .usage-steps { grid-template-columns: repeat(2, 1fr); }
  .dev-links-grid { grid-template-columns: repeat(2, 1fr); }
  .download-folded-grid { grid-template-columns: repeat(2, 1fr); }
  .download-primary { padding: 28px 24px; }
  .download-primary-head { flex-direction: column; gap: 12px; }
}
@media (max-width: 600px) {
  .scenario-grid { grid-template-columns: 1fr; }
  .usage-steps { grid-template-columns: 1fr; }
  .dev-links-grid { grid-template-columns: 1fr; }
  .download-folded-grid { grid-template-columns: 1fr; }
  .download-primary-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   P0/P1 增强：键盘 focus 可见 + 移动端汉堡菜单 + 装饰遮挡防护
   ============================================================ */

/* 全局键盘 focus 状态：键盘导航时显示清晰焦点环，鼠标点击不显示 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
/* 鼠标点击不触发 focus-visible，但保留 :focus 兜底（旧浏览器） */
:focus:not(:focus-visible) { outline: none; }
/* 暗色页面用 violet 强调色更显眼 */
body[data-theme="dark"]:focus-visible,
.nav:focus-visible { outline-color: var(--violet); }

/* 移动端汉堡按钮：默认隐藏，980px 以下显示 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-right: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.nav-toggle:hover { background: var(--accent-soft); border-color: var(--accent); }
.nav-toggle svg { width: 18px; height: 18px; color: var(--text); }
.nav-toggle[aria-expanded="true"] svg { color: var(--accent); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

/* 移动端下拉菜单：默认折叠，点击 .open 后展开 */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 8px 24px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active::after { display: none; }
}

/* 装饰元素 z-index 防护：所有装饰 svg/.deco-* 必须低于内容层 */
.deco-cloud, .deco-star, .deco-ring, .deco-tick { z-index: 0; }
.ball, .search-mock, .hero-text, .section, .footer { position: relative; z-index: 2; }

/* prefers-reduced-motion 已有规则（line 1371-1378），下面补一条：*/
/* 让 bounce 类动画在降级时直接显示终态 */
@media (prefers-reduced-motion: reduce) {
  .bounce, .ball, .deco-cloud, .deco-star, .hero-eyebrow .dot, .hero-title .accent .heart {
    animation: none !important;
  }
}

/* ============================================================
   P3 增强样式：hero 悬浮球展开 demo / FAQ 全展开按钮 / 下载统计 / 插件卡 hover 详情
   ============================================================ */

/* hero 悬浮球：点击展开 demo */
.ball {
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ball:hover { transform: scale(1.04); }
.ball:focus-visible { outline-offset: 6px; }
.ball.expanded { transform: scale(0.92); }
.ball.expanded + .search-mock {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px var(--accent-glow), 0 8px 16px rgba(74, 58, 47, 0.12);
}
.search-mock {
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 320ms ease;
}

/* FAQ 全展开按钮 */
.faq-toggle-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-top: 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 200ms ease;
}
.faq-toggle-all:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.faq-toggle-all .icon { transition: transform 200ms ease; }
.faq-toggle-all.expanded .icon { transform: rotate(180deg); }

/* 下载统计标记 */
.download-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
}
.download-count::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 插件卡 hover：展开 fields 详情（默认折叠到 2 行） */
.plugin-detail .fields {
  max-height: 76px;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.plugin-detail:hover .fields,
.plugin-detail:focus-within .fields {
  max-height: 400px;
}
.plugin-detail {
  position: relative;
}
.plugin-detail::after {
  content: 'hover 查看更多字段';
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.plugin-detail:hover::after,
.plugin-detail:focus-within::after { opacity: 1; }

/* 场景卡 hover 动效：略微上浮 + 阴影加深 */
.scenario-card,
.scenario {
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 240ms ease;
}
.scenario-card:hover,
.scenario:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--accent-glow), 0 4px 8px rgba(74, 58, 47, 0.08);
}

/* 404 漂移球已有动画，无额外样式 */


