/* ============================================================
   Mvlvx 官网 · 共享设计系统
   设计令牌沿用客户端（client/frontend/src/style.css）：
   暗色为主，主色蓝 #4F8CFF → 紫 #7A5CFF 渐变，Primer 风格表面。
   ============================================================ */

/* ---------- 设计令牌：暗色（默认，与管理后台 admin/src/App.vue 的 --mc-* 对齐） ---------- */
:root {
  --bg-0: #06090F;                          /* 页脚更深底 */
  --bg-1: #0A0E14;                          /* 页面主底色 = 后台 --mc-bg-base */
  --surface-1: rgba(16, 22, 33, 0.72);      /* 玻璃卡片 = 后台 --mc-bg-card */
  --surface-2: rgba(20, 26, 38, 0.90);      /* 面板/下拉/表头 = 后台 --mc-bg-panel */
  --surface-3: #181e28;                     /* 不透明抬升面（节点/输入），保证文字对比 */

  --text-1: #E9ECF1;                         /* = 后台 --mc-text */
  --text-2: rgba(233, 236, 241, 0.82);
  --text-muted: rgba(233, 236, 241, 0.62);   /* ≈ 后台 --mc-text-secondary */
  --text-faint: rgba(233, 236, 241, 0.40);   /* = 后台 --mc-text-dim */
  --text-on-accent: #ffffff;

  --border: rgba(255, 255, 255, 0.08);       /* = 后台 --mc-border */
  --border-soft: rgba(255, 255, 255, 0.06);

  --primary: #4F8CFF;                         /* = 后台 --mc-primary */
  --primary-2: #6BA1FF;                       /* = 后台 primary hover */
  --secondary: #7A5CFF;                       /* = 后台 --mc-accent */
  --secondary-2: #9D86FF;
  --success: #27AE60;                         /* = 后台 --mc-success */
  --warning: #F39C12;                         /* = 后台 --mc-warning */
  --danger: #E74C3C;                          /* = 后台 --mc-danger */

  --grad: linear-gradient(135deg, var(--primary), var(--secondary));
  --grad-soft: linear-gradient(135deg, rgba(79,140,255,0.16), rgba(122,92,255,0.16));

  --radius-sm: 10px;                          /* = 后台 --mc-radius-sm */
  --radius: 14px;                             /* = 后台 --mc-radius */
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 8px 30px rgba(0,0,0,0.45);
  --shadow-glow: 0 12px 48px rgba(79,140,255,0.28);
  --blur: 12px;                               /* 玻璃拟态模糊半径 = 后台 .el-card backdrop */

  --maxw: 1160px;
  --nav-h: 64px;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 设计令牌：浅色（<html class="light">） ---------- */
:root.light {
  --bg-0: #eef1f5;
  --bg-1: #f5f7fa;
  --surface-1: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #f1f3f6;

  --text-1: #1f2328;
  --text-2: #344150;
  --text-muted: #59636e;
  --text-faint: #8a949e;
  --text-on-accent: #ffffff;

  --border: #d0d7de;
  --border-soft: rgba(0, 0, 0, 0.08);

  --primary: #2f6bff;
  --primary-2: #1f6feb;
  --secondary: #6639ba;
  --secondary-2: #8250df;
  --success: #1a7f37;

  --grad-soft: linear-gradient(135deg, rgba(47,107,255,0.10), rgba(102,57,186,0.10));
  --shadow: 0 8px 30px rgba(20,30,50,0.10);
  --shadow-glow: 0 12px 48px rgba(47,107,255,0.18);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; border: none; background: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; padding: 0; }

/* 滚动条：沿用管理后台的细蓝滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(79, 140, 255, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(79, 140, 255, 0.45); }
:root { scrollbar-width: thin; scrollbar-color: rgba(79,140,255,0.35) transparent; }

/* 背景：与管理后台登录/控制台完全一致 —— 深色底 + 蓝色细网格 + 蓝(右上)/紫(左下)柔光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: transparent;
  background-image:
    radial-gradient(620px 620px at 100% -90px, rgba(79,140,255,0.20), transparent 62%),
    radial-gradient(520px 520px at -60px 100%, rgba(122,92,255,0.16), transparent 62%),
    linear-gradient(rgba(79,140,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,140,255,0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
}
:root.light body::before {
  background-image:
    radial-gradient(620px 620px at 100% -90px, rgba(47,107,255,0.10), transparent 62%),
    radial-gradient(520px 520px at -60px 100%, rgba(102,57,186,0.08), transparent 62%),
    linear-gradient(rgba(47,107,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,107,255,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text-2); }

.gradient-text {
  background: linear-gradient(120deg, var(--primary-2), var(--secondary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid var(--border-soft);
}

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg-1) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container { display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--grad);
  box-shadow: var(--shadow-glow);
  font-size: 16px;
}
.brand .logo svg { width: 18px; height: 18px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-1); background: var(--surface-2); }
.nav-links a.active { color: var(--text-1); }

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

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 16px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { color: var(--text-1); border-color: var(--primary); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(79,140,255,0.4); }
.btn-ghost {
  background: var(--surface-1);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: var(--shadow); }
.card .card-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: 18px;
  background: var(--grad-soft);
  border: 1px solid var(--border-soft);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--text-muted); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 玻璃拟态：与管理后台 .el-card 一致 —— 半透明面 + 背景模糊，透出底层蓝紫光晕 */
.card, .trust-bar, .media-panel, .step, .price-card,
.faq-item, .canvas-mock, .btn-ghost, .icon-btn {
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin: 20px 0 20px; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }

/* 顶部信任条 */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 1px solid var(--border);
}
.trust-item { text-align: center; }
.trust-item .num { font-size: 1.6rem; font-weight: 800; }
.trust-item .lbl { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- 工作流画布示意（CSS 手绘） ---------- */
.canvas-mock {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
    linear-gradient(135deg, rgba(79,140,255,0.6), rgba(122,92,255,0.6)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.canvas-mock .canvas-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.canvas-mock .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.canvas-mock .dot.r { background: #ff5f57; } .canvas-mock .dot.y { background: #febc2e; } .canvas-mock .dot.g { background: #28c840; }
.canvas-mock .canvas-title { margin-left: 8px; font-size: 0.82rem; color: var(--text-muted); }
.canvas-mock .canvas-badge { margin-left: auto; font-size: 0.72rem; color: var(--primary-2); padding: 3px 10px; border-radius: var(--radius-pill); background: var(--grad-soft); }
.canvas-body {
  position: relative;
  padding: 26px 22px;
  min-height: 340px;
  background-image: radial-gradient(circle, var(--border-soft) 1px, transparent 1px);
  background-size: 22px 22px;
}
.wf-node {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 210px;
  margin: 0 auto 22px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  animation: nodeIn 0.6s var(--ease) both;
}
.wf-node .n-ico {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px; font-size: 17px;
  background: var(--grad-soft);
}
.wf-node .n-name { font-size: 0.9rem; font-weight: 600; }
.wf-node .n-sub { font-size: 0.75rem; color: var(--text-muted); }
.wf-node.accent { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 6px 20px rgba(79,140,255,0.18); }
.wf-connector { display: flex; justify-content: center; margin: -14px 0 8px; color: var(--primary-2); position: relative; z-index: 1; }
.wf-connector svg { width: 20px; height: 26px; }
@keyframes nodeIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }

/* 浮动 AI 气泡 */
.ai-bubble {
  position: absolute;
  right: 14px; bottom: 16px;
  max-width: 210px;
  padding: 12px 14px;
  border-radius: 12px 12px 4px 12px;
  background: var(--grad);
  color: var(--text-on-accent);
  font-size: 0.8rem;
  box-shadow: var(--shadow-glow);
  z-index: 4;
  animation: floaty 4s ease-in-out infinite;
}
.ai-bubble .ai-tag { display: block; font-size: 0.68rem; opacity: 0.85; margin-bottom: 3px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- 分栏图文（feature split） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-text .eyebrow { margin-bottom: 16px; }
.split-text h2 { margin-bottom: 16px; }
.split-text p { color: var(--text-muted); margin-bottom: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--text-2); font-size: 0.98rem; }
.check-list li::before {
  content: "✓"; flex: none;
  width: 22px; height: 22px; margin-top: 1px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.75rem; font-weight: 700;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 16%, transparent);
}

/* 通用媒体面板（用于放示意图/占位） */
.media-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-1);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.media-panel .mp-head { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.media-panel .mp-body { padding: 22px; }

/* 芯片/标签 */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.cat-label::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }

/* ---------- 步骤（三步上手） ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 1.4rem; font-weight: 800; margin-bottom: 14px;
  background: linear-gradient(120deg, var(--primary-2), var(--secondary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 26px 22px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.3s var(--ease), border-color 0.3s; }
.price-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.price-card .tier { font-size: 1rem; font-weight: 700; }
.price-card .price { margin: 14px 0 4px; font-size: 1.9rem; font-weight: 800; }
.price-card .price small { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.price-card .price-sub { font-size: 0.82rem; color: var(--text-faint); min-height: 20px; }
.price-card .tier-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 600; color: var(--text-on-accent); padding: 3px 12px; border-radius: var(--radius-pill); background: var(--grad); }
.price-card ul { margin: 18px 0 0; }
.price-card ul li { font-size: 0.86rem; color: var(--text-2); padding: 7px 0; border-top: 1px solid var(--border-soft); }

/* 对比表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
table.compare thead th { background: var(--surface-2); font-weight: 600; }
table.compare td.c { text-align: center; }
table.compare tr:last-child td { border-bottom: none; }
.yes { color: var(--success); font-weight: 700; }
.no { color: var(--text-faint); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-1); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary-2); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
    linear-gradient(135deg, rgba(79,140,255,0.7), rgba(122,92,255,0.7)) border-box;
  border: 1px solid transparent;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 120% at 50% -10%, rgba(79,140,255,0.22), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 56px 0 32px; background: var(--bg-0); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer .f-brand p { margin-top: 14px; font-size: 0.9rem; color: var(--text-muted); max-width: 300px; }
.footer h4 { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.92rem; color: var(--text-muted); transition: color 0.2s; }
.footer ul li a:hover { color: var(--primary-2); }
.footer .placeholder { color: var(--text-faint); font-style: italic; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.85rem; color: var(--text-faint); }

/* ---------- 页面小标题横幅 ---------- */
.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero h1 { margin: 18px 0 16px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--text-muted); font-size: 1.08rem; }

/* ---------- 滚动进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 / H5 移动端适配 ---------- */

/* 平板 / 中屏：双栏降为单栏，网格收窄 */
@media (max-width: 940px) {
  .section { padding: 80px 0; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
}

/* 手机：内边距随安全区自适应（刘海屏/曲面屏），点触区放大，导航折叠 */
@media (max-width: 720px) {
  .container {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .section { padding: 56px 0; }
  .section-sm { padding: 44px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 40px 0 44px; }
  .page-hero { padding: 48px 0 32px; }

  /* 移动导航：汉堡展开为下拉抽屉，带淡入动画 + 玻璃背板 + 更大点触行 */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    padding: 8px; gap: 2px; margin: 0;
    background: var(--surface-2);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: menuDrop 0.24s var(--ease) both;
  }
  .nav-links.open a { padding: 13px 14px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav-toggle { display: grid; }

  /* 单列堆叠 */
  .steps, .grid-3, .grid-2, .price-grid { grid-template-columns: 1fr; }

  /* 按钮：移动端占满整行、加大点触高度，避免并排挤压 */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .cta-band .hero-cta .btn { width: 100%; }
  .btn-lg { padding: 15px 22px; }

  /* 字号微调，避免长标题溢出 */
  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero .lead, .page-hero p { font-size: 1.02rem; }
}
@keyframes menuDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 小屏手机：全部单列，页脚居中，底部留出安全区 */
@media (max-width: 520px) {
  .grid-4, .grid-3, .grid-2, .price-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 16px; }
  .trust-item .num { font-size: 1.4rem; }
  .card { padding: 22px; }
  .cta-band { padding: 36px 20px; }
  .section-head p { font-size: 1rem; }
  .footer { padding: 44px 0 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; justify-content: center; }
}

/* 超小屏：顶栏让"免费下载"给汉堡按钮，避免拥挤 */
@media (max-width: 400px) {
  .nav-right .btn-primary { display: none; }
  .nav .container { gap: 12px; }
  .brand { font-size: 1.05rem; }
}

/* ============================================================
   设计增强层：在暗色玻璃体系上叠加更精致的细节与动效
   （所有动画都受文件顶部 prefers-reduced-motion 规则收敛）
   ============================================================ */

/* 缓慢漂移的柔光球：给深色背景注入呼吸感（叠在静态光晕之上） */
body::after {
  content: "";
  position: fixed;
  top: 26%; left: 54%;
  width: 46vmax; height: 46vmax;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(122,92,255,0.10), transparent 72%);
  animation: orbDrift 26s ease-in-out infinite alternate;
}
:root.light body::after { opacity: 0.55; }
@keyframes orbDrift {
  from { transform: translate(-10%, -8%) scale(1); }
  to   { transform: translate(10%, 12%) scale(1.2); }
}

/* 渐变文字加入缓慢流光 */
.gradient-text {
  background: linear-gradient(120deg, var(--primary-2), var(--secondary-2), var(--primary-2));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShine 9s linear infinite;
}
@keyframes textShine { to { background-position: 220% 0; } }

/* eyebrow 前置发光小圆点，标签更有产品感 */
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 10px 1px var(--primary-2);
}

/* section 标题下方渐变短线，强化层级 */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  display: block;
  width: 54px; height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: var(--grad);
}

/* 主按钮：流光扫过 + 外发光 */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 18%, rgba(255,255,255,0.35) 50%, transparent 82%);
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }

/* 幽灵按钮：hover 浮现渐变描边 */
.btn-ghost:hover {
  border-color: transparent;
  background:
    linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
    var(--grad) border-box;
}

/* 功能卡片：hover 浮现渐变描边光圈 + 图标发光上浮 */
.card { position: relative; }
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover::before { opacity: 0.75; }
.card-ico { transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.card:hover .card-ico { box-shadow: 0 0 24px rgba(79,140,255,0.35); transform: translateY(-2px); }

/* 统计数字用渐变，更醒目 */
.trust-item .num {
  background: linear-gradient(120deg, var(--primary-2), var(--secondary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 导航项：hover/active 渐变下划线 */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
/* 移动端下拉抽屉里不需要下划线动画 */
@media (max-width: 720px) { .nav-links.open a::after { display: none; } }

/* 品牌 logo 轻微呼吸光 */
.brand .logo { animation: logoGlow 4.5s ease-in-out infinite; }
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 6px 20px rgba(79,140,255,0.25); }
  50%      { box-shadow: 0 8px 30px rgba(122,92,255,0.45); }
}

/* Hero 示意图外发光，强化视觉焦点 */
.hero-media { position: relative; }
.hero-media::before {
  content: "";
  position: absolute; inset: -14% -10%;
  z-index: -1;
  background: radial-gradient(60% 60% at 60% 42%, rgba(79,140,255,0.20), transparent 70%);
  filter: blur(34px);
  pointer-events: none;
}

/* 工作流连线：流动虚线，示意"运行中" */
.wf-connector svg path { stroke-dasharray: 4 5; animation: dashFlow 0.9s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -9; } }

/* 键盘焦点更精致（无障碍） */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   使用指南：长文档、粘性目录、真实客户端截图
   ============================================================ */
.guide-hero { padding: 76px 0 48px; text-align: center; }
.guide-hero h1 { max-width: 920px; margin: 20px auto 18px; }
.guide-hero .lead { max-width: 760px; margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; }
.guide-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 24px auto 0;
}
.guide-meta span {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface-1); color: var(--text-muted); font-size: .84rem;
}
.guide-flow {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  margin-top: 40px; padding: 18px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface-1);
  box-shadow: var(--shadow);
}
.guide-flow a {
  position: relative; min-height: 92px; padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: var(--radius); background: var(--surface-3);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
}
.guide-flow a:hover { transform: translateY(-3px); border-color: var(--primary); }
.guide-flow a:not(:last-child)::after {
  content: "→"; position: absolute; right: -15px; top: 34%; z-index: 2;
  color: var(--primary-2); font-weight: 800;
}
.guide-flow b { font-size: .98rem; }
.guide-flow small { color: var(--text-muted); font-size: .76rem; }
.guide-flow .flow-no { color: var(--primary-2); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }

.guide-layout {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px;
  align-items: start; padding-top: 24px;
}
.guide-toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-1); backdrop-filter: blur(var(--blur));
}
.guide-toc strong { display: block; margin-bottom: 10px; font-size: .9rem; }
.guide-toc ol { list-style: none; padding: 0; counter-reset: guide-toc; }
.guide-toc li { counter-increment: guide-toc; }
.guide-toc a {
  display: block; padding: 7px 8px; border-radius: 8px;
  color: var(--text-muted); font-size: .84rem; line-height: 1.35;
  transition: color .2s, background .2s;
}
.guide-toc a::before { content: counter(guide-toc, decimal-leading-zero) "  "; color: var(--text-faint); }
.guide-toc a:hover { color: var(--text-1); background: var(--surface-3); }
.guide-toc a.active { color: var(--text-1); background: var(--grad-soft); }
.guide-toc .toc-extra { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.guide-toc .toc-extra a::before { content: ""; }

.guide-article { min-width: 0; }
.guide-section { scroll-margin-top: calc(var(--nav-h) + 24px); margin-bottom: 72px; }
.guide-section > h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.guide-section > h2 .guide-no {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 13px; background: var(--grad); color: #fff; font-size: .9rem;
  box-shadow: 0 8px 24px rgba(79,140,255,.24);
}
.guide-section > .section-intro { margin: 0 0 24px 56px; color: var(--text-muted); }
.guide-card {
  padding: 26px; margin-top: 18px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface-1);
}
.guide-card h3 { margin-bottom: 12px; }
.guide-card h4 { margin: 20px 0 8px; font-size: 1rem; }
.guide-card p + p { margin-top: 10px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.guide-mini {
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-3);
}
.guide-mini b { display: block; margin-bottom: 5px; }
.guide-mini p { font-size: .88rem; color: var(--text-muted); }
.guide-list { list-style: none; padding: 0; margin-top: 14px; }
.guide-list li { position: relative; padding: 7px 0 7px 27px; color: var(--text-2); }
.guide-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; width: 18px; height: 18px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(39,174,96,.16); color: #55d98b; font-size: .7rem; font-weight: 800;
}
.guide-ordered { margin: 14px 0 0; padding-left: 24px; color: var(--text-2); }
.guide-ordered li { padding: 5px 0; }
.guide-ordered li::marker { color: var(--primary-2); font-weight: 700; }
.guide-path {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 16px 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-3); color: var(--text-muted); font-size: .88rem;
}
.guide-path b { color: var(--text-1); }
.guide-path i { color: var(--primary-2); font-style: normal; }
.guide-note {
  margin-top: 18px; padding: 15px 18px; border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(79,140,255,.09); color: var(--text-2); font-size: .9rem;
}
.guide-note.warning { border-left-color: var(--warning); background: rgba(243,156,18,.09); }
.guide-note.success { border-left-color: var(--success); background: rgba(39,174,96,.09); }
.guide-note b { color: var(--text-1); }
.guide-figure { margin-top: 22px; }
.guide-figure img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #071426; box-shadow: var(--shadow);
}
.guide-figure figcaption {
  margin-top: 10px; text-align: center; color: var(--text-faint); font-size: .8rem;
}
.guide-term {
  display: grid; grid-template-columns: 130px 1fr; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border-soft);
}
.guide-term:last-child { border-bottom: 0; }
.guide-term dt { font-weight: 700; }
.guide-term dd { color: var(--text-muted); }
.guide-faq details { margin-bottom: 10px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.guide-divider { height: 1px; margin: 32px 0; background: var(--border); }

@media (max-width: 980px) {
  .nav .container { gap: 14px; }
  .nav-links { gap: 0; margin-left: 4px; }
  .nav-links a { padding-inline: 10px; }
  .guide-layout { grid-template-columns: 1fr; gap: 26px; }
  .guide-toc { position: static; }
  .guide-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 10px; }
  .guide-toc .toc-extra { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    padding: 8px; gap: 2px; margin: 0; background: var(--surface-2);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 13px 14px; }
  .nav-toggle { display: grid; }
  .guide-flow { grid-template-columns: 1fr 1fr; }
  .guide-flow a:last-child { grid-column: 1 / -1; }
  .guide-flow a::after { display: none; }
}
@media (max-width: 620px) {
  .guide-hero { padding: 48px 0 32px; }
  .guide-flow, .guide-grid, .guide-toc ol { grid-template-columns: 1fr; }
  .guide-flow a:last-child { grid-column: auto; }
  .guide-card { padding: 20px; }
  .guide-section { margin-bottom: 56px; }
  .guide-section > h2 { align-items: flex-start; font-size: 1.55rem; }
  .guide-section > .section-intro { margin-left: 0; }
  .guide-term { grid-template-columns: 1fr; gap: 3px; }
  .guide-actions { flex-direction: column; }
  .guide-actions .btn { width: 100%; }
}

/* ============================================================
   工作流组件手册：能力地图、可搜索目录与数据驱动详情
   ============================================================ */
.component-hero { padding: 78px 0 62px; overflow: hidden; }
.component-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.component-hero h1 { margin: 18px 0; }
.component-hero p { max-width: 660px; color: var(--text-muted); font-size: 1.08rem; }
.component-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.component-stats span {
  min-width: 106px; padding: 12px 15px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface-1);
}
.component-stats b { display: block; font-size: 1.35rem; line-height: 1.1; }
.component-stats small { color: var(--text-muted); font-size: .75rem; }
.component-anatomy {
  position: relative; min-height: 390px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 28px;
  background: radial-gradient(circle at 50% 45%, rgba(79,140,255,.2), transparent 45%), var(--surface-1);
  box-shadow: var(--shadow); isolation: isolate;
}
.component-anatomy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .34;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg,var(--border-soft) 1px,transparent 1px);
  background-size: 24px 24px; border-radius: inherit;
}
.anatomy-node {
  position: relative; width: 255px; border: 1px solid rgba(79,140,255,.62);
  border-radius: 15px; background: var(--surface-2); box-shadow: 0 20px 55px rgba(0,0,0,.28);
}
.anatomy-node header { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--border); }
.anatomy-node header i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(79,140,255,.16); font-style: normal; }
.anatomy-node header small { color: var(--text-faint); font-family: var(--mono); }
.anatomy-node > div { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; font-size: .82rem; }
.anatomy-node > div em { color: var(--text-faint); font-style: normal; }
.anatomy-pin, .anatomy-exec { position: absolute; width: 11px; height: 11px; border: 2px solid var(--surface-2); border-radius: 50%; }
.anatomy-pin.data-in { left: -6px; background: #7a5cff; }
.anatomy-pin.data-out { right: -6px; background: #36b37e; }
.anatomy-node .out { justify-content: flex-end; }
.anatomy-exec { top: 18px; background: #fff; }
.anatomy-exec.in { left: -6px; }
.anatomy-exec.out { right: -6px; }
.anatomy-label.top { position: absolute; top: 38px; color: var(--text-muted); font-size: .78rem; }
.anatomy-callouts { position: absolute; bottom: 30px; display: flex; gap: 10px; }
.anatomy-callouts span { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-muted); font-size: .73rem; }

.component-learn { border-top: 1px solid var(--border-soft); }
.component-learn-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.component-shot { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-1); }
.component-shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: #071426; }
.component-shot figcaption { padding: 10px 4px 2px; color: var(--text-faint); text-align: center; font-size: .8rem; }
.component-reading { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: read; }
.component-reading li { counter-increment: read; display: grid; grid-template-columns: 38px 94px 1fr; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-1); }
.component-reading li::before { content: counter(read, decimal-leading-zero); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--grad-soft); color: var(--primary-2); font-weight: 800; font-size: .75rem; }
.component-reading li span { color: var(--text-muted); font-size: .84rem; }

.component-category-section { background: var(--surface-1); border-block: 1px solid var(--border-soft); }
.component-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.component-category { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text-1); text-align: left; cursor: pointer; transition: transform .2s, border-color .2s; }
.component-category:hover { transform: translateY(-2px); border-color: var(--primary); }
.component-category-icon, .component-list-icon, .component-detail-icon { display: grid; place-items: center; background: color-mix(in srgb, var(--cat) 18%, transparent); color: var(--cat); }
.component-category-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; font-weight: 800; }
.component-category b, .component-category small { display: block; }
.component-category small { margin-top: 2px; color: var(--text-faint); font-size: .72rem; }
.component-category i { color: var(--text-faint); font-style: normal; font-size: .75rem; }
.cat-event { --cat:#e85d75; }.cat-device { --cat:#4f8cff; }.cat-sdk { --cat:#00a8a8; }.cat-recognition { --cat:#9b6dff; }
.cat-human { --cat:#ed8b3a; }.cat-control { --cat:#47a6d8; }.cat-ops { --cat:#d2a94a; }.cat-logic { --cat:#a66cff; }
.cat-data { --cat:#36b37e; }.cat-io { --cat:#26a6c9; }.cat-assert { --cat:#ef6b62; }
.cat-border-event { --cat:#e85d75; }.cat-border-device { --cat:#4f8cff; }.cat-border-sdk { --cat:#00a8a8; }.cat-border-recognition { --cat:#9b6dff; }
.cat-border-human { --cat:#ed8b3a; }.cat-border-control { --cat:#47a6d8; }.cat-border-ops { --cat:#d2a94a; }.cat-border-logic { --cat:#a66cff; }
.cat-border-data { --cat:#36b37e; }.cat-border-io { --cat:#26a6c9; }.cat-border-assert { --cat:#ef6b62; }

.component-catalog-section { scroll-margin-top: calc(var(--nav-h) + 16px); }
.component-toolbar { position: sticky; top: var(--nav-h); z-index: 8; display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface-1) 88%, transparent); backdrop-filter: blur(var(--blur)); }
.component-search { flex: 1; display: flex; gap: 10px; align-items: center; min-width: 220px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.component-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,140,255,.12); }
.component-search input { width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--text-1); font: inherit; }
.component-tier { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.component-tier button { padding: 8px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; }
.component-tier button.active { background: var(--grad-soft); color: var(--text-1); }
.component-tier span { margin-left: 3px; color: var(--text-faint); font-size: .72rem; }
.component-result-bar { display: flex; justify-content: space-between; gap: 20px; padding: 12px 3px; color: var(--text-faint); font-size: .78rem; }
.component-manual { display: grid; grid-template-columns: 290px minmax(0,1fr); min-height: 720px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: clip; background: var(--surface-1); }
.component-list { max-height: calc(100vh - 170px); overflow-y: auto; border-right: 1px solid var(--border); background: var(--surface-2); }
.component-list-group h3 { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; padding: 12px 14px 8px; background: var(--surface-2); color: var(--text-muted); font-size: .76rem; }
.component-list-group h3 span { color: var(--text-faint); }
.component-list-item { width: calc(100% - 12px); margin: 0 6px 3px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-1); text-align: left; cursor: pointer; }
.component-list-item:hover { background: var(--surface-3); }
.component-list-item.active { border-color: rgba(79,140,255,.48); background: var(--grad-soft); }
.component-list-icon { width: 34px; height: 34px; border-radius: 9px; }
.component-list-item b, .component-list-item small { display: block; }
.component-list-item small { margin-top: 2px; color: var(--text-faint); font-family: var(--mono); font-size: .68rem; }
.component-list-item em { padding: 3px 6px; border-radius: 5px; background: var(--surface-3); color: var(--text-faint); font-size: .62rem; font-style: normal; }
.component-detail { min-width: 0; max-height: calc(100vh - 170px); overflow-y: auto; scroll-margin-top: calc(var(--nav-h) + 16px); }
.component-detail-card { padding: 30px; border-top: 3px solid var(--cat); }
.component-detail-head { display: flex; gap: 16px; align-items: center; }
.component-detail-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; font-size: 1.35rem; }
.component-detail-head h2 { margin: 1px 0 2px; font-size: 1.8rem; }
.component-detail-head code, .component-table code, .component-failures code { color: var(--text-faint); font-family: var(--mono); font-size: .72rem; }
.component-kicker { color: var(--text-muted); font-size: .76rem; }
.component-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.component-badge { padding: 5px 9px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-muted); font-size: .72rem; }
.component-badge.warning { border-color: rgba(243,156,18,.4); color: var(--warning); }.component-badge.state { color: var(--primary-2); }.component-badge.pure { color: #b88cff; }
.component-help { margin: 20px 0; padding: 17px 18px; border-left: 3px solid var(--cat); border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--text-2); }
.component-category-intro { margin-top: -8px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 9px; color: var(--text-muted); font-size: .84rem; }
.component-category-intro b { margin-right: 5px; color: var(--text-1); }
.component-usage, .component-detail-block { margin-top: 26px; }
.component-usage h3, .component-detail-block h3 { margin-bottom: 10px; font-size: .98rem; }
.component-usage > p, .component-detail-block > p { color: var(--text-muted); }
.component-example { margin-top: 12px; padding: 13px 15px; border-radius: 10px; background: rgba(79,140,255,.09); color: var(--text-2); font-size: .86rem; }
.component-example b { margin-right: 8px; color: var(--primary-2); }
.component-exec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.component-exec > div { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.component-exec b, .component-exec > div > span { display: block; }
.component-exec > div > span { margin-top: 6px; color: var(--text-muted); font-size: .82rem; }
.component-exec .component-badge { display: inline-block; margin: 3px 4px 0 0; }
.component-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.component-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.component-table th { padding: 10px 12px; background: var(--surface-2); color: var(--text-muted); text-align: left; font-size: .72rem; }
.component-table td { padding: 12px; border-top: 1px solid var(--border); vertical-align: top; }
.component-table td:first-child { min-width: 130px; }.component-table td:nth-child(2) { width: 90px; }
.component-table td b, .component-table td code { display: block; }.component-table td code { margin-top: 3px; }
.component-table td p { color: var(--text-muted); line-height: 1.55; }
.pin-type { display: inline-block; padding: 3px 7px; border-radius: 6px; background: var(--grad-soft); color: var(--primary-2); font-size: .7rem; }
.pin-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }.pin-meta span { padding: 3px 6px; border-radius: 5px; background: var(--surface-2); color: var(--text-faint); font-size: .68rem; }.pin-meta .pin-required { background: rgba(232,93,117,.13); color: #ef7d91; }
.component-notes { padding-left: 20px; color: var(--text-muted); }.component-notes li { padding: 4px 0; }
.component-failures { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.component-failures li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); font-size: .8rem; }
.component-failures li span { color: var(--text-muted); }.component-empty, .component-detail-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 30px; color: var(--text-muted); text-align: center; }

@media (max-width: 1020px) {
  .component-hero-grid, .component-learn-grid { grid-template-columns: 1fr; }
  .component-anatomy { max-width: 620px; width: 100%; margin: 0 auto; }
  .component-category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .component-toolbar { position: static; flex-wrap: wrap; }.component-search { flex-basis: 100%; }
  .component-manual { grid-template-columns: 1fr; }.component-list { max-height: 470px; border-right: 0; border-bottom: 1px solid var(--border); }
  .component-detail { max-height: none; overflow: visible; }.component-result-bar span:last-child { display: none; }
}
@media (max-width: 680px) {
  .component-hero { padding: 48px 0 38px; }.component-category-grid { grid-template-columns: 1fr 1fr; }
  .component-reading li { grid-template-columns: 38px 1fr; }.component-reading li span { grid-column: 2; }
  .component-toolbar { padding: 10px; }.component-tier { width: 100%; }.component-tier button { flex: 1; }
  .component-detail-card { padding: 22px 16px; }.component-exec, .component-failures { grid-template-columns: 1fr; }
  .component-table { min-width: 620px; }
}
@media (max-width: 460px) {
  .component-stats { display: grid; grid-template-columns: 1fr 1fr; }.component-category-grid { grid-template-columns: 1fr; }
  .component-anatomy { min-height: 350px; }.anatomy-callouts { flex-direction: column; align-items: center; bottom: 16px; }
}
