/* ==========================================================================
   设计变量体系：融合 Catcher 品牌蓝与客户端 GitHub Primer 明/暗双色系统
   ========================================================================== */
:root {
  --scroll-progress: 0;
  --font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "Consolas", "SFMono-Regular", monospace;

  --brand: #4c6ef5;
  --brand-strong: #3b5bdb;
  --brand-soft: rgba(76, 110, 245, 0.14);

  --platform-chaoxing: #d03050;
  --platform-yuketang: #1668dc;
  --platform-tronclass: #0a756b;
  --platform-pigai: #d46b08;
  --platform-fiforal: #722ed1;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container-max: 1160px;
  --nav-height: 68px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-2: #f1f5f9;
  --bg-nav: rgba(248, 250, 252, 0.86);
  --bg-placeholder: #f4f7fb;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-dashed: rgba(76, 110, 245, 0.34);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-green: #18a058;
  --accent-green-hover: #0f7b41;
  --accent-green-soft: rgba(24, 160, 88, 0.12);
  --accent-blue: #4263eb;
  --accent-blue-soft: rgba(66, 99, 235, 0.1);
  --accent-warn: #b45309;
  --accent-warn-soft: rgba(217, 119, 6, 0.12);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.12);
  --spotlight: rgba(76, 110, 245, 0.07);
  --grid-line: rgba(15, 23, 42, 0.045);
  --glow-top-opacity: 0.16;
  --glow-mid-opacity: 0.12;
  --glow-end-opacity: 0.14;
  --backdrop-scrim: rgba(15, 23, 42, 0.35);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-canvas: #0d1117;
  --bg-surface: #161b22;
  --bg-surface-2: #1c222b;
  --bg-nav: rgba(13, 17, 23, 0.84);
  --bg-placeholder: #0f141b;
  --border: #30363d;
  --border-strong: #444c56;
  --border-dashed: rgba(88, 166, 255, 0.32);

  --text-primary: #e6edf3;
  --text-secondary: #b1bac4;
  --text-muted: #8b949e;

  --accent-green: #3fb950;
  --accent-green-hover: #2ea043;
  --accent-green-btn: #238636;
  --accent-green-soft: rgba(46, 160, 67, 0.16);
  --accent-blue: #58a6ff;
  --accent-blue-soft: rgba(88, 166, 255, 0.14);
  --accent-warn: #e3b341;
  --accent-warn-soft: rgba(210, 153, 34, 0.16);

  --shadow-sm: 0 2px 10px rgba(1, 4, 9, 0.35);
  --shadow-md: 0 16px 40px rgba(1, 4, 9, 0.5);
  --shadow-lg: 0 32px 90px rgba(1, 4, 9, 0.72);
  --spotlight: rgba(88, 166, 255, 0.09);
  --grid-line: rgba(240, 246, 252, 0.04);
  --glow-top-opacity: 0.24;
  --glow-mid-opacity: 0.18;
  --glow-end-opacity: 0.22;
  --backdrop-scrim: rgba(1, 4, 9, 0.62);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.28s ease, color 0.28s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

/* ==========================================================================
   从上到下动态演变的背景环境光 + 精细网格纹理
   ========================================================================== */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 35%, transparent 100%);
}

.ambient-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(95px);
  will-change: transform, opacity;
  transition: opacity 0.4s ease;
}

/* 顶部：品牌靛蓝（汇聚） */
.orb-top {
  width: min(760px, 85vw);
  height: min(520px, 60vw);
  top: -160px;
  left: 50%;
  background: radial-gradient(circle, rgba(76, 110, 245, 0.85), rgba(88, 166, 255, 0.25) 60%, transparent 75%);
  opacity: calc(var(--glow-top-opacity) * (1 - var(--scroll-progress) * 0.65));
  transform: translate3d(calc(-50% + var(--scroll-progress) * -80px), calc(var(--scroll-progress) * 140px), 0);
}

/* 中段：青翠绿（流转与可控） */
.orb-mid {
  width: min(680px, 80vw);
  height: min(500px, 55vw);
  top: 32vh;
  right: -140px;
  background: radial-gradient(circle, rgba(24, 160, 88, 0.72), rgba(10, 117, 107, 0.25) 60%, transparent 78%);
  opacity: calc(var(--glow-mid-opacity) * (0.35 + (1 - (var(--scroll-progress) - 0.48) * (var(--scroll-progress) - 0.48) * 3.5) * 0.9));
  transform: translate3d(calc(var(--scroll-progress) * -120px), calc((var(--scroll-progress) - 0.35) * -180px), 0);
}

/* 尾部：深邃海蓝（安全与开源致谢） */
.orb-end {
  width: min(720px, 82vw);
  height: min(460px, 52vw);
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(76, 110, 245, 0.75), rgba(114, 46, 209, 0.22) 60%, transparent 76%);
  opacity: calc(var(--glow-end-opacity) * (0.2 + var(--scroll-progress) * 0.95));
  transform: translate3d(calc(var(--scroll-progress) * 140px), calc((1 - var(--scroll-progress)) * 110px), 0);
}

/* ==========================================================================
   顶部阅读进度光条 & 导航栏
   ========================================================================== */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress));
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent-blue) 45%, var(--accent-green) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--brand);
  text-shadow: 1.5px 1.5px 0 rgba(43, 58, 85, 0.35);
}

:root[data-theme="dark"] .brand-title {
  color: #6b8cff;
  text-shadow: 1.5px 1.5px 0 rgba(15, 23, 42, 0.9);
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--accent-blue);
  border: 1px solid rgba(76, 110, 245, 0.24);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 11px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link-arrow {
  display: none;
  color: var(--text-muted);
  font-size: 14px;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface-2);
}

.nav-link.is-active {
  color: var(--text-primary);
  background: var(--brand-soft);
}

.nav-drawer-actions {
  display: none;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: var(--backdrop-scrim);
  backdrop-filter: blur(4px);
  z-index: 85;
}

.nav-backdrop.is-open {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

.mobile-menu-btn .icon-close {
  display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-menu {
  display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-close {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

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

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 11px;
}

.btn-primary {
  background: var(--accent-green);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(35, 134, 54, 0.24);
}

:root[data-theme="dark"] .btn-primary {
  background: var(--accent-green-btn);
}

.btn-primary:hover {
  background: var(--accent-green-hover);
  box-shadow: 0 10px 26px rgba(35, 134, 54, 0.32);
}

.btn-brand {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(76, 110, 245, 0.26);
}

.btn-brand:hover {
  background: var(--brand-strong);
  box-shadow: 0 10px 26px rgba(76, 110, 245, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-2);
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   通用区块排版 & 从上到下滚动显现动画
   ========================================================================== */
section {
  position: relative;
  padding: 92px 0;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-blue);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-blue-soft);
  border: 1px solid rgba(76, 110, 245, 0.2);
  margin-bottom: 14px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   Hero 首屏 + 主演示视频空白占位区（滚动微透视归正）
   ========================================================================== */
.hero {
  padding: 72px 0 84px;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px var(--accent-green-soft);
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero-title-accent {
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent-blue) 52%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 30px;
  max-width: 700px;
  font-size: clamp(15.5px, 1.8vw, 18px);
  color: var(--text-secondary);
  line-height: 1.75;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.hero-stage {
  perspective: 1400px;
}

.app-window-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: center top;
  transform: perspective(1400px) rotateX(var(--hero-tilt, 6deg)) scale(var(--hero-scale, 0.965));
  transition: border-color 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}

.window-titlebar {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface-2);
  font-size: 12.5px;
  color: var(--text-muted);
}

.window-titlebar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.window-dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.window-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window-label {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.media-placeholder {
  background: var(--bg-placeholder);
  padding: 24px;
}

.media-placeholder-hero {
  aspect-ratio: 16 / 9;
  min-height: 360px;
  display: flex;
}

.media-placeholder-box {
  width: 100%;
  height: 100%;
  border: 1.5px dashed var(--border-dashed);
  border-radius: var(--radius-lg);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  gap: 12px;
  min-width: 0;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.media-placeholder-box:hover {
  border-color: var(--brand);
  background: var(--spotlight);
}

.placeholder-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--accent-blue);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

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

.placeholder-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  max-width: 100%;
}

.placeholder-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--text-primary);
}

.placeholder-desc {
  margin: 0;
  max-width: 560px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.placeholder-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ==========================================================================
   支持平台区
   ========================================================================== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  position: relative;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--platform-tone, var(--brand));
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--platform-tone, var(--brand));
  box-shadow: var(--shadow-md);
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.platform-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill.verified {
  color: var(--accent-green);
  background: var(--accent-green-soft);
}

.status-pill.experimental {
  color: var(--accent-warn);
  background: var(--accent-warn-soft);
}

.platform-login {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
}

.platform-login span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.platform-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   从上到下三步工作流（纵向导轨随滚动点亮 + 空白截图占位）
   ========================================================================== */
.workflow-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding-left: 44px;
}

.workflow-rail {
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.workflow-rail-fill {
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(var(--workflow-progress, 0));
  background: linear-gradient(180deg, var(--brand) 0%, var(--accent-green) 100%);
  transition: transform 0.12s linear;
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.workflow-step > * {
  min-width: 0;
}

.workflow-step.is-step-active {
  border-color: rgba(76, 110, 245, 0.5);
  box-shadow: var(--shadow-md);
}

.step-node {
  position: absolute;
  left: -44px;
  top: 34px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: border-color 0.28s ease, background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.workflow-step.is-step-active .step-node {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: 0 0 0 6px var(--brand-soft);
}

.step-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.step-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 720;
  line-height: 1.3;
}

.step-desc {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.step-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  margin-top: 8px;
  flex-shrink: 0;
}

.media-placeholder-step {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  min-height: 260px;
  display: flex;
}

.media-placeholder-step .media-placeholder-box {
  padding: 20px;
  gap: 8px;
}

.media-placeholder-step .placeholder-title {
  font-size: 14.5px;
}

.media-placeholder-step .placeholder-desc {
  font-size: 12.5px;
}

/* ==========================================================================
   核心能力 Bento 矩阵（支持鼠标悬停光效跟随）
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  position: relative;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--spotlight), transparent 65%);
  transition: opacity 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

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

.bento-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--accent-blue);
  flex-shrink: 0;
}

.bento-icon.is-green {
  background: var(--accent-green-soft);
  color: var(--accent-green);
}

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

.bento-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}

.bento-desc {
  margin: 0;
  font-size: 13.8px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   本地化 × 无三方：隐私与安全专区
   ========================================================================== */
.security-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: stretch;
}

.security-panel > * {
  min-width: 0;
}

.security-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
}

.pillar-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
}

.pillar-title span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-green-soft);
  color: var(--accent-green);
}

.pillar-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-canvas);
  min-width: 0;
}

.security-item > div {
  min-width: 0;
}

.security-check {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent-green-soft);
  color: var(--accent-green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.security-check svg {
  width: 14px;
  height: 14px;
}

.security-item strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 3px;
}

.security-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   下载安装 & 已知限制与 FAQ
   ========================================================================== */
.mobile-desktop-tip {
  display: none;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.download-card {
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.download-card.is-recommended {
  border-color: rgba(63, 185, 80, 0.55);
  box-shadow: var(--shadow-md);
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.download-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.download-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.arch-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.arch-tag.rec {
  background: var(--accent-green-soft);
  border-color: transparent;
  color: var(--accent-green);
}

.download-file {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-blue);
  word-break: break-all;
  margin-bottom: 10px;
}

.download-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.download-card .btn {
  width: 100%;
}

.faq-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  list-style: none;
  padding: 17px 22px;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.18s ease;
}

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

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent-blue);
}

.faq-body {
  padding: 0 22px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-body ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.faq-body li {
  margin-bottom: 6px;
}

/* ==========================================================================
   网页末尾 Contributors 致谢墙
   ========================================================================== */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.contributor-card {
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contributor-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.contributor-card.is-invite {
  border-style: dashed;
  border-color: var(--border-dashed);
  background: var(--bg-placeholder);
  /* 邀请卡独占一行，与四位贡献者卡片区分 */
  grid-column: 1 / -1;
}

@media (min-width: 901px) {
  .contributor-card.is-invite {
    flex-direction: row;
    align-items: center;
  }
}

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

.avatar-badge {
  position: relative;
  overflow: hidden;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 15px;
  color: #ffffff;
  flex-shrink: 0;
}

/* GitHub 头像覆盖在首字母之上，加载失败时移除 img 即回落到首字母 */
.avatar-badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.contributor-name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.contributor-handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.role-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--accent-blue);
}

.contributor-bio {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contributor-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-blue);
}

.contributor-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   页脚 & 免责声明
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 48px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  margin: 12px 0 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 360px;
}

.forever-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-green-soft);
  color: var(--accent-green);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.16s ease;
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-secondary);
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  transition: color 0.16s ease;
}

.beian-link:hover {
  color: var(--accent-blue);
}

.beian-icon {
  height: 16px;
  width: auto;
}

/* ==========================================================================
   平板与移动端响应式优化（<= 900px 与 <= 640px）
   ========================================================================== */
@media (max-width: 1080px) {
  .platforms-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contributors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--nav-height) + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-height) - 24px);
    overflow-y: auto;
    z-index: 95;
  }

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

  .nav-link {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
  }

  .nav-link-arrow {
    display: inline;
  }

  .nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .nav-drawer-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .workflow-step,
  .security-panel,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 58px;
  }

  .container {
    padding: 0 16px;
  }

  section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-desc {
    font-size: 14.5px;
  }

  /* 顶栏手机端紧凑适配：防止 360px 屏幕横向溢出 */
  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-sub,
  .nav-download-btn,
  .nav-actions .btn-github-text {
    display: none;
  }

  .nav-github-btn {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  /* 首屏手机端排版 */
  .hero {
    padding: 36px 0 48px;
  }

  .hero-badges {
    border-radius: 12px;
    padding: 7px 12px;
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(24px, 6.6vw, 31px);
    line-height: 1.24;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 14.5px;
    line-height: 1.68;
    margin-bottom: 22px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 46px;
    font-size: 14.5px;
  }

  .hero-meta {
    gap: 6px 14px;
    margin-bottom: 28px;
    font-size: 12px;
  }

  /* 手机端关闭 3D 倾角避免窄屏文字发虚与变窄 */
  .app-window-frame {
    transform: none;
    border-radius: var(--radius-lg);
  }

  .window-titlebar {
    height: 38px;
    padding: 0 12px;
  }

  .window-dots i {
    width: 8px;
    height: 8px;
  }

  /* 媒体占位在手机端改为自适应高度，不溢出裁剪 */
  .media-placeholder {
    padding: 12px;
  }

  .media-placeholder-hero,
  .media-placeholder-step {
    aspect-ratio: auto;
    min-height: 0;
  }

  .media-placeholder-box {
    padding: 18px 14px;
    gap: 9px;
  }

  .placeholder-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

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

  .placeholder-title {
    font-size: 14px;
  }

  .placeholder-desc {
    font-size: 12px;
  }

  .placeholder-path {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* 平台卡片手机端紧凑单列 */
  .platforms-grid,
  .bento-grid,
  .download-grid,
  .contributors-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platform-card {
    padding: 16px;
    gap: 10px;
  }

  .platform-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .platform-login span {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* 工作流导轨窄屏收敛，给正文释放宽度 */
  .workflow-wrap {
    padding-left: 24px;
    gap: 20px;
  }

  .workflow-rail {
    left: 9px;
  }

  .step-node {
    left: -24px;
    top: 20px;
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .workflow-step {
    padding: 18px 15px;
    gap: 18px;
    border-radius: var(--radius-lg);
  }

  .step-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .step-desc {
    font-size: 13.5px;
    margin-bottom: 12px;
  }

  .step-points li {
    font-size: 13px;
  }

  /* Bento 卡片图标+标题同行紧凑排版 */
  .bento-card {
    padding: 18px;
  }

  .bento-head {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
  }

  .bento-icon {
    width: 34px;
    height: 34px;
  }

  .bento-title {
    font-size: 15.5px;
  }

  /* 安全面板手机端收窄内边距 */
  .security-panel {
    padding: 18px 14px;
    gap: 16px;
    border-radius: var(--radius-lg);
  }

  .pillar-box,
  .security-item {
    padding: 14px;
  }

  /* 手机端访问桌面应用专属复制链接提示卡 */
  .mobile-desktop-tip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--accent-blue-soft);
    border: 1px solid rgba(76, 110, 245, 0.28);
  }

  .mobile-desktop-tip-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .mobile-desktop-tip-desc {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
  }

  .mobile-copy-btn {
    width: 100%;
    min-height: 40px;
  }

  .download-card {
    padding: 18px;
  }

  .download-card .btn {
    min-height: 44px;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
  }

  .faq-body {
    padding: 0 16px 15px;
    font-size: 13px;
  }

  /* 页脚双列 */
  .site-footer {
    padding: 36px 0 28px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    padding-bottom: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .app-window-frame {
    transform: none;
  }

  .ambient-orb,
  .scroll-progress-bar,
  .workflow-rail-fill {
    transition: none;
  }
}
