/* =========================================================
   Pegeek 知识库 · 单页宣传样式（Modern Minimal v2026）
   - 风格：现代极简 SaaS · 圆角 + 柔和阴影 + 单一 indigo 强调
   - 字体：系统无衬线（无衬线 + 等宽英文）
   - 动效：fade / lift / tab / counter / progress
   - 移动端：彻底适配（含汉堡菜单 + 触摸目标 ≥ 44px）
   ========================================================= */

:root {
  /* ============ 中性色（zinc 调）============ */
  --bg:           #fafaf9;       /* 暖白主底 */
  --bg-soft:      #f4f4f3;       /* 弱区块 */
  --bg-deep:      #f0f0ee;       /* 深底（分隔）*/

  --card:         #ffffff;
  --card-hover:   #ffffff;

  --ink:          #0f172a;       /* 主墨（slate-900）*/
  --ink-2:        #475569;       /* 次（slate-600）*/
  --ink-3:        #94a3b8;       /* 三（slate-400）*/
  --ink-4:        #cbd5e1;       /* 四（slate-300）*/

  --line:         #e5e7eb;       /* 默认边框 */
  --line-2:       #f1f5f9;       /* 浅边框 */
  --line-3:       #e2e8f0;       /* 强浅边框 */

  /* ============ 强调色（indigo · 现代专业）============ */
  --accent:       #4f46e5;       /* 主 indigo-600 */
  --accent-2:     #4338ca;       /* 深 indigo-700 */
  --accent-3:     #6366f1;       /* 亮 indigo-500 */
  --accent-light: #818cf8;       /* 更亮 indigo-400 */
  --accent-soft:  #eef2ff;       /* 极浅 indigo-50 */
  --accent-softer:#f5f3ff;       /* 极浅紫 */
  --accent-glow:  rgba(79, 70, 229, 0.35);

  /* ============ 状态 ============ */
  --ok:           #10b981;       /* 绿 */
  --ok-soft:      #ecfdf5;
  --warn:         #f59e0b;       /* 琥珀 */
  --warn-soft:    #fffbeb;
  --danger:       #ef4444;

  /* ============ 阴影（柔和有层）============ */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.10), 0 8px 16px rgba(15, 23, 42, 0.06);

  /* ============ 圆角 ============ */
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 16px;
  --r-4: 20px;
  --r-5: 28px;

  /* ============ 字体栈（统一无衬线）============ */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Cascadia Code', Menlo, Consolas, 'Courier New', monospace;

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

/* =========================================================
   重置
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  padding-top: 68px;
  min-height: 100vh;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }

p { margin: 0; }

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

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

em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

strong { color: var(--ink); font-weight: 700; }

::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* =========================================================
   顶栏
   ========================================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  z-index: 100;
  background: rgba(250, 250, 249, 0.80);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.topbar.is-scrolled {
  background: rgba(250, 250, 249, 0.95);
  border-bottom-color: var(--line-3);
}

.topbar-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px; height: 32px;
  border-radius: var(--r-1);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--ease);
}

.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }

.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.logo-sub {
  font-size: 12px;
  color: var(--ink-3);
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--r-1);
  color: var(--ink-2);
  position: relative;
  transition: all 0.2s var(--ease);
}

.nav a:hover { color: var(--ink); background: var(--bg-soft); }

.nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-1);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.topbar-cta:hover {
  background: var(--accent-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

/* 汉堡菜单按钮（移动端显示）*/
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: var(--r-1);
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s var(--ease);
}

.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle:active { background: var(--accent-soft); }

.nav-toggle-icon {
  width: 22px; height: 16px;
  position: relative;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 7px; }
.nav-toggle-icon span:nth-child(3) { top: 14px; }

.nav-toggle.is-open .nav-toggle-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.nav-toggle.is-open .nav-toggle-icon span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* 顶部进度条 */
.progress-bar {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
  z-index: 1;
}

/* =========================================================
   移动端抽屉菜单
   ========================================================= */
.mobile-menu {
  position: fixed;
  inset: 68px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--r-2);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  transition: all 0.2s var(--ease);
  min-height: 56px;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-menu-nav a::after {
  content: '→';
  color: var(--ink-3);
  font-size: 18px;
  transition: transform 0.2s var(--ease);
}

.mobile-menu-nav a:hover::after,
.mobile-menu-nav a:active::after {
  color: var(--accent);
  transform: translateX(4px);
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-2);
  font-size: 16px;
  font-weight: 600;
  min-height: 56px;
}

.mobile-menu-cta:hover { background: var(--accent-2); color: #fff; }

/* 抽屉菜单 backdrop */
.mobile-menu-backdrop {
  position: fixed;
  inset: 68px 0 0;
  background: rgba(15, 23, 42, 0.40);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.mobile-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-sm { padding: 9px 16px; font-size: 14px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.20), 0 4px 12px rgba(79, 70, 229, 0.20);
}

.btn-primary:hover {
  background: var(--accent-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25), 0 12px 24px rgba(79, 70, 229, 0.30);
}

.btn-primary-light {
  background: var(--accent);
  color: #fff;
}

.btn-primary-light:hover {
  background: var(--accent-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* =========================================================
   Hero — 现代极简
   ========================================================= */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* Hero 极淡背景（避免纯色平面感，但绝不抢戏）*/
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, var(--accent-softer), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(79, 70, 229, 0.04), transparent 60%);
  z-index: -1;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
}

.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05); }
}

.hero-badge b { color: var(--ink); font-weight: 600; }

.hero-title {
  margin: 0 auto 24px;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 920px;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30%);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.hero-title.visible .word {
  opacity: 1;
  transform: translateY(0);
}
.hero-title.visible .word:nth-child(1) { transition-delay: 0.05s; }
.hero-title.visible .word:nth-child(2) { transition-delay: 0.15s; }
.hero-title.visible .word:nth-child(3) { transition-delay: 0.25s; }
.hero-title.visible .word:nth-child(4) { transition-delay: 0.35s; }
.hero-title.visible .word:nth-child(5) { transition-delay: 0.45s; }

.hero-lede {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

.hero-lede em {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 65%, var(--accent-soft) 65%);
  padding: 0 2px;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero 统计 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 64px auto 0;
  max-width: 880px;
}

.stat {
  padding: 24px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  text-align: center;
  transition: all 0.25s var(--ease);
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.stat-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* =========================================================
   章节通用
   ========================================================= */
.section {
  position: relative;
  padding: 96px 0;
}

.section-soft { background: var(--bg-soft); }
.section-deep { background: var(--bg-deep); }

/* 章节标题 */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 760px;
}

.sec-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.sec-head.center .sec-title-row { justify-content: center; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }

.sec-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sec-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.sec-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.sec-title em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

.sec-sub {
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 640px;
}

/* =========================================================
   知识沉淀 - 4 卡片
   ========================================================= */
.bullet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bullet-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.bullet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.bullet-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.bullet-card:hover::before { transform: scaleX(1); }

.bullet-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-2);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.bullet-icon svg {
  width: 24px; height: 24px;
}

.bullet-card:hover .bullet-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.bullet-body h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.bullet-body p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* =========================================================
   大图展示区
   ========================================================= */
.shot-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 24px;
  padding: 6px;
  background: var(--bg-soft);
  border-radius: var(--r-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shot-tabs::-webkit-scrollbar { display: none; }

.shot-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: var(--r-1);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.shot-tab:hover {
  color: var(--ink);
  background: var(--card);
}

.shot-tab.is-active {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.shot-tab .tab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 700;
}

.shot-tab.is-active .tab-num { color: var(--accent); }

.shot-stage {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.shot-browser {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.shot-browser-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-4);
}

.shot-browser-dot:nth-child(1) { background: #ff5f57; }
.shot-browser-dot:nth-child(2) { background: #ffbd2e; }
.shot-browser-dot:nth-child(3) { background: #28c941; }

.shot-browser-url {
  flex: 1;
  margin-left: 12px;
  height: 28px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  min-width: 0;
}

.shot-nav {
  display: flex;
  gap: 4px;
}

.shot-nav-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-1);
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}

.shot-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.shot-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
  will-change: opacity;
  pointer-events: none;
  background: var(--bg-soft);
}

.shot-img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.shot-frame:hover .shot-img.is-active {
  transform: scale(1.005);
}

/* 左右切换箭头（浮在图片两侧，居中；始终可见，hover 强化）*/
.shot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.shot-arrow-prev { left: 14px; }
.shot-arrow-next { right: 14px; }

.shot-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  opacity: 1;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.shot-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.shot-frame:hover .shot-arrow,
.shot-arrow:focus-visible {
  opacity: 1;
}

/* 加载 / 错误状态提示（图片正中底部）*/
.shot-status {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
  z-index: 4;
  white-space: nowrap;
}

.shot-status.is-visible {
  opacity: 1;
}

/* 放大按钮（右上角悬浮）*/
.shot-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  z-index: 5;
}

.shot-frame:hover .shot-zoom-btn,
.shot-zoom-btn:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.shot-zoom-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.shot-zoom-btn svg { flex-shrink: 0; }

/* =========================================================
   Lightbox · 截图放大查看
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.lightbox.is-open {
  display: flex;
  animation: lightbox-fade-in 0.25s var(--ease);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-figure {
  position: relative;
  max-width: 92vw;
  max-height: 84vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.50), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: lightbox-zoom-in 0.35s var(--ease);
}

.lightbox-caption {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
}

.lightbox-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.10em;
}

.lightbox-title {
  font-weight: 600;
}

.lightbox-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lightbox-hint kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 4px;
  color: #fff;
}

@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightbox-zoom-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .lightbox { padding: 24px 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox-img { max-height: 72vh; }
  .lightbox-figure { max-width: 96vw; }
  .lightbox-hint { display: none; }
  .shot-zoom-btn { opacity: 1; transform: translateY(0); padding: 6px 10px; font-size: 11px; }
  .shot-arrow { width: 36px; height: 36px; opacity: 0.95; }
  .shot-arrow-prev { left: 8px; }
  .shot-arrow-next { right: 8px; }
}

.shot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.shot-caption-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.shot-caption-desc {
  font-size: 13px;
  color: var(--ink-3);
}

.counter { display: inline-block; }

/* =========================================================
   能力模块入口 - 6 卡片
   ========================================================= */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--ink);
}

.module-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-softer), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.module-card:hover::after { opacity: 1; }

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.module-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-2);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.module-icon svg { width: 24px; height: 24px; }

.module-card:hover .module-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-6deg);
}

.module-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}

.module-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.module-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.module-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: gap 0.25s var(--ease);
}

.module-link::after {
  content: '→';
  font-family: var(--font-sans);
  transition: transform 0.25s var(--ease);
}

.module-card:hover .module-link { gap: 10px; }
.module-card:hover .module-link::after { transform: translateX(2px); }

/* =========================================================
   检索演示 - 真实截图
   ========================================================= */
.search-shot {
  max-width: 1080px;
  margin: 0 auto;
}

.search-shot-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-shot-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.06) 0%, transparent 30%);
  pointer-events: none;
  z-index: 1;
}

.search-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.search-shot-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  flex-wrap: wrap;
  text-align: center;
}

.search-shot-caption b {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
}

.search-shot-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .search-shot-frame { border-radius: var(--r-3); }
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  margin-bottom: 20px;
  transition: all 0.25s var(--ease);
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--card);
}

.search-bar-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-bar-icon svg { width: 16px; height: 16px; }

.search-bar-text {
  flex: 1;
  font-size: 15.5px;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-bar-text em {
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}

.search-bar kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  flex-shrink: 0;
}

.search-results {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-results li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--r-2);
  transition: all 0.25s var(--ease);
  cursor: default;
  flex-wrap: wrap;
}

.search-results li:hover {
  background: var(--card);
  border-color: var(--accent);
  transform: translateX(3px);
}

.r-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.r-tag-doc { background: var(--accent-soft); color: var(--accent); }
.r-tag-scan { background: var(--warn-soft); color: var(--warn); }
.r-tag-faq { background: var(--ok-soft); color: var(--ok); }

.r-title {
  flex: 1;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  min-width: 0;
}

.r-title em {
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}

.r-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.search-hint {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 16px 0 0;
  padding: 12px 16px;
  background: var(--accent-softer);
  border-radius: var(--r-2);
  border-left: 3px solid var(--accent);
}

.search-hint .hl {
  background: var(--accent);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin: 0 2px;
}

/* 技术 pill */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  transition: all 0.25s var(--ease);
  cursor: default;
}

.tech-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tech-pill span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tech-pill b { color: var(--ink); font-weight: 600; }

/* =========================================================
   12 层 RAG 时间线
   ========================================================= */
.rag-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rag-step {
  padding: 28px 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.rag-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}

.rag-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rag-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.rag-step-icon {
  width: 32px; height: 32px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rag-step-icon svg { width: 22px; height: 22px; }

.rag-step-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.rag-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.rag-step-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

.rag-step-list {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rag-step-list li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}

.rag-step-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* 5 大保障 */
.badge-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.badge {
  padding: 24px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  text-align: left;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.badge:hover::before { transform: scaleX(1); }

.badge-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-2);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.3s var(--ease);
}

.badge:hover .badge-icon {
  background: var(--accent);
  color: #fff;
}

.badge-icon svg { width: 20px; height: 20px; }

.badge-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.badge-title {
  display: block;
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.badge-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* =========================================================
   知识地图 - 4 卡片 / 3 角色
   ========================================================= */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.10em;
  margin-bottom: 14px;
}

.feature-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-1);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card-icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

/* =========================================================
   知识社区
   ========================================================= */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.q-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

.q-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.q-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.q-avatar-2 { background: var(--warn); }
.q-avatar-3 { background: var(--ok); }

.q-meta { flex: 1; min-width: 0; }
.q-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.q-time {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.q-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.4px;
}

.q-tag-pending { background: var(--warn-soft); color: var(--warn); }
.q-tag-answered { background: var(--ok-soft); color: var(--ok); }

.q-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.q-best {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--r-2);
  border-left: 3px solid var(--accent);
}

.best-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

.q-best code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}

.q-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.q-best-mark { color: var(--accent); font-weight: 700; }

/* 闭环 */
.loop-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.loop-step {
  padding: 28px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: all 0.3s var(--ease);
  position: relative;
}

.loop-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

.loop-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.10em;
  margin-bottom: 12px;
}

.loop-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.loop-step p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

/* =========================================================
   CTA 区
   ========================================================= */
.cta-section {
  position: relative;
  padding: 96px 0;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(129, 140, 248, 0.18), transparent 60%);
  z-index: -1;
}

.cta-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.cta-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.20em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.3);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.cta-title {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
}

.cta-title em {
  background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  font-weight: 700;
}

.cta-sub {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.cta-section .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.cta-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* 数据 */
.trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
}

.trust li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-3);
  transition: all 0.25s var(--ease);
}

.trust li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.trust b {
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 800;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.trust span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.4px;
}

/* 联系方式 */
.contact-direct {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 48px auto 0;
}

.contact-direct-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-3);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.contact-direct-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-3px);
  color: #fff;
}

.contact-direct-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.20);
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.25s var(--ease);
}

.contact-direct-item:hover .contact-direct-icon {
  background: var(--accent);
  color: #fff;
}

.contact-direct-icon svg { width: 22px; height: 22px; }

/* 微信二维码卡（暗色 CTA 中）*/
.contact-direct-qrcode {
  width: 96px;
  height: 96px;
  padding: 6px;
  background: #fff;
  border-radius: var(--r-2);
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.10);
  transition: all 0.3s var(--ease);
}

.contact-direct-item-qr:hover .contact-direct-qrcode {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.40), 0 0 0 1px rgba(255, 255, 255, 0.20);
}

.contact-direct-qrcode img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* 弹窗中的二维码 */
.contact-qrcode {
  width: 130px;
  height: 130px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  margin: 0 auto 14px;
  box-shadow: var(--shadow-sm);
}

.contact-qrcode img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.contact-direct-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.contact-direct-value {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  margin-bottom: 10px;
  line-height: 1.3;
  word-break: break-all;
}

.contact-direct-value-email { font-size: 15px; }

.contact-direct-action {
  font-size: 12.5px;
  color: var(--accent-light);
  font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 40px 0 28px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.footer-brand .logo-mark {
  width: 26px; height: 26px;
  font-size: 13px;
  border-radius: 6px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

.dot-sep { color: var(--ink-4); }

/* =========================================================
   Reveal 动效
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }

/* =========================================================
   回到顶部 + 弹窗
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
  z-index: 90;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-2);
  transform: translateY(-3px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade-in 0.2s var(--ease);
}

.modal-card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-4);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modal-pop-in 0.3s var(--ease);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.modal-close:hover {
  background: var(--ink);
  color: #fff;
  transform: rotate(90deg);
}

.modal-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.modal-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-item {
  padding: 20px 16px;
  background: var(--bg-soft);
  border-radius: var(--r-2);
  text-align: center;
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0;
  line-height: 1.3;
  word-break: break-all;
}

.contact-action {
  display: inline-block;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* =========================================================
   响应式 — 移动端彻底适配
   ========================================================= */

/* Tablet */
@media (max-width: 1100px) {
  .container { padding: 0 28px; }

  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .feature-row.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .badge-row { grid-template-columns: repeat(3, 1fr); }
  .rag-timeline { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .bullet-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-flow { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  body { padding-top: 60px; font-size: 15px; }
  html { scroll-padding-top: 60px; }

  .container { padding: 0 16px; }

  /* 顶栏：隐藏桌面导航，显示汉堡 */
  .topbar { height: 60px; }
  .topbar-inner { height: 60px; gap: 8px; }

  .nav { display: none; }
  .topbar-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .logo-sub { display: none; }
  .logo-text { font-size: 16px; }
  .logo-mark { width: 28px; height: 28px; font-size: 14px; }

  /* Hero */
  .hero { padding: 56px 0 48px; }
  .hero-badge { margin-bottom: 24px; font-size: 12px; padding: 6px 12px; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); }
  .hero-title br { display: none; }
  .hero-lede { font-size: 15.5px; }
  .hero-cta { margin-top: 28px; }
  .hero-cta .btn { width: 100%; max-width: 280px; }

  /* Hero stats: 2 列 */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 48px;
  }
  .stat { padding: 18px 14px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 11.5px; }

  /* 章节通用 */
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; gap: 10px; }
  .sec-title { font-size: clamp(26px, 7vw, 34px); }
  .sec-title br { display: none; }
  .sec-sub { font-size: 15px; }
  .sec-num { width: 26px; height: 26px; font-size: 11px; }

  /* 知识沉淀 - 1 列 */
  .bullet-grid { grid-template-columns: 1fr; gap: 12px; }
  .bullet-card { padding: 24px 20px; flex-direction: row; gap: 14px; align-items: flex-start; }
  .bullet-card .bullet-icon { width: 40px; height: 40px; flex-shrink: 0; }
  .bullet-card .bullet-icon svg { width: 20px; height: 20px; }

  /* 截图区 */
  .shot-tabs {
    margin-left: -16px;
    margin-right: -16px;
    padding: 6px 16px;
    border-radius: 0;
  }
  .shot-tab { padding: 8px 12px; font-size: 12.5px; }
  .shot-caption { padding: 12px 16px; gap: 8px; }
  .shot-caption-title { font-size: 13.5px; }
  .shot-caption-desc { font-size: 12px; }

  /* 能力网格 - 1 列 */
  .module-grid { grid-template-columns: 1fr; gap: 12px; }
  .module-card { padding: 24px 20px; }

  /* 检索 demo */
  .search-demo { padding: 20px; border-radius: var(--r-3); }
  .search-bar { padding: 12px 14px; gap: 10px; }
  .search-bar-text { font-size: 14.5px; }
  .search-bar kbd { display: none; }
  .search-results li {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .r-title { font-size: 13.5px; width: 100%; order: 2; }
  .r-tag { order: 1; }
  .r-meta { order: 3; margin-left: auto; font-size: 11px; }

  /* RAG 时间线 - 1 列 */
  .rag-timeline { grid-template-columns: 1fr; gap: 12px; }
  .rag-step { padding: 24px 20px; }

  /* 5 保障 - 1 列 */
  .badge-row { grid-template-columns: 1fr; gap: 10px; }
  .badge { padding: 20px; }
  .badge-icon { margin-bottom: 12px; }

  /* feature - 1 列 */
  .feature-row, .feature-row.cols-3 { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 24px 20px; }

  /* 社区 - 1 列 */
  .community-grid { grid-template-columns: 1fr; gap: 12px; }
  .q-card { padding: 20px; }
  .q-title { font-size: 14.5px; }

  /* 闭环 - 1 列 */
  .loop-flow { grid-template-columns: 1fr; gap: 12px; }
  .loop-step { padding: 24px 20px; }

  /* CTA */
  .cta-section { padding: 64px 0; }
  .cta-row { flex-direction: column; align-items: stretch; margin-bottom: 40px; }
  .cta-row .btn { width: 100%; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust li { padding: 24px 12px; gap: 6px; }
  .trust b { font-size: 44px; }

  /* 联系方式 - 1 列 */
  .contact-direct { grid-template-columns: 1fr; gap: 12px; }
  .contact-direct-item { padding: 24px 20px; flex-direction: row; gap: 16px; text-align: left; align-items: center; }
  .contact-direct-icon { margin-bottom: 0; flex-shrink: 0; }
  /* 微信二维码卡移动端：保持居中 */
  .contact-direct-item-qr { flex-direction: column; text-align: center; align-items: center; padding: 24px; }
  .contact-direct-qrcode { margin-bottom: 12px; }
  .contact-direct-item-qr .contact-direct-value { margin-bottom: 6px; }

  /* footer */
  .footer { padding: 32px 0 24px; }
  .footer-brand { font-size: 13px; }

  /* back-to-top */
  .back-to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }

  /* modal */
  .modal-card { padding: 24px 20px; border-radius: var(--r-3); }
  .contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-value { font-size: 15px; }

  /* tech pills */
  .tech-row { gap: 8px; }
  .tech-pill { padding: 7px 12px; font-size: 12px; }
}

/* 极小屏 */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 28px; }
  .hero-stats { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
}

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