/* ============================================================
   灵辑素材 Lingji Material — 宣传页
   主色 #176BFF · 纸感亮底 #F5F7FA · 深色段 #07111F
   ============================================================ */

:root {
  --blue: #176BFF;
  --blue-soft: rgba(23, 107, 255, 0.12);
  --paper: #F5F7FA;
  --ink: #07111F;
  --text-dark: #0B1526;
  --text-dark-muted: #5A6B85;
  --text-light: #EAF1FB;
  --text-light-muted: rgba(234, 241, 251, 0.62);
  --radius-card: 12px;
  --shadow-card: 0 30px 80px -24px rgba(4, 12, 30, 0.5), 0 10px 28px rgba(4, 12, 30, 0.18);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; }

/* ---------- 通用布局 ---------- */

.scene {
  position: relative;
  padding: clamp(90px, 14vh, 150px) 24px;
  overflow: hidden;
}

.scene-dark { background: var(--ink); color: var(--text-light); }
.scene-light { background: var(--paper); color: var(--text-dark); }
.scene-alt { background: #FFFFFF; }

.container { position: relative; max-width: 1180px; margin: 0 auto; z-index: 2; }
.center { text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.scene-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.bg-hero {
  background:
    linear-gradient(100deg, rgba(7, 17, 31, 0.97) 25%, rgba(7, 17, 31, 0.72) 52%, rgba(7, 17, 31, 0.35) 100%),
    url("assets/gen/hero-bg.png") right center / cover no-repeat,
    radial-gradient(1100px 700px at 78% 18%, #12315E 0%, var(--ink) 68%);
}

.bg-maze {
  background:
    linear-gradient(rgba(7, 17, 31, 0.9), rgba(7, 17, 31, 0.86)),
    url("assets/gen/maze-bg.png") center / cover no-repeat,
    radial-gradient(900px 600px at 50% 30%, #10294F 0%, var(--ink) 70%);
}

/* ---------- 排版 ---------- */

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }

.big { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.22; font-weight: 700; }

.huge {
  font-size: clamp(2.8rem, 7.5vw, 6.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.huge-dark { color: var(--text-dark); }

.sub { margin-top: 24px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--text-light-muted); max-width: 34em; }

.copy p { margin-top: 18px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text-dark-muted); }
.copy h2 { margin-bottom: 6px; }

.sub-dark { margin: 18px auto 0; max-width: 40em; color: var(--text-dark-muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.sub-light { margin: 18px auto 0; max-width: 40em; color: var(--text-light-muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }

.blue { color: var(--blue); }

.note { font-size: 0.95rem !important; color: var(--text-dark-muted) !important; opacity: 0.85; }

.fine { margin-top: 18px; font-size: 0.85rem; color: var(--text-light-muted); letter-spacing: 0.04em; }
.fine-dark { color: var(--text-dark-muted); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(23, 107, 255, 0.55);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -8px rgba(23, 107, 255, 0.65); }

.btn-ghost {
  border: 1px solid rgba(234, 241, 251, 0.35);
  color: var(--text-light);
}

.btn-ghost:hover { background: rgba(234, 241, 251, 0.08); }

.btn-lg { padding: 18px 44px; font-size: 1.15rem; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Hero ---------- */

#hero { min-height: 100vh; display: flex; align-items: center; padding-top: clamp(70px, 9vh, 110px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  width: 100%;
}

.hero-copy { position: relative; }

.hero-ip {
  position: absolute;
  top: -92px;
  right: 0;
  width: clamp(96px, 11vw, 150px);
  animation: floaty 4.5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* 假搜索框 */

.fake-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(234, 241, 251, 0.07);
  border: 1px solid rgba(234, 241, 251, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 13px 18px;
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 0.98rem;
  max-width: 480px;
}

.fake-search-icon { width: 18px; height: 18px; flex: none; opacity: 0.7; }

.fake-search-text { flex: 1; white-space: nowrap; overflow: hidden; }

.fake-search-kbd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.5;
  border: 1px solid rgba(234, 241, 251, 0.25);
  border-radius: 6px;
  padding: 1px 7px;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--blue);
  animation: blink 0.95s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.mini-cap {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 4px;
}

/* ---------- macOS 窗口卡 ---------- */

.mac-card {
  background: #0D1524;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mac-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #151E30;
}

.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }

.mac-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: rgba(234, 241, 251, 0.55);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.mac-body img, .mac-body video { display: block; width: 100%; height: auto; }

.mac-wide { max-width: 960px; margin: 44px auto 0; }

/* ---------- 置信度徽章 ---------- */

.shot-wrap { position: relative; }

.badge {
  position: absolute;
  z-index: 3;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 26px -6px rgba(23, 107, 255, 0.6);
  white-space: nowrap;
}

.badge b { font-variant-numeric: tabular-nums; }

.badge-1 { top: 14%; left: -16px; }
.badge-2 { top: 46%; right: -14px; }
.badge-3 { bottom: 12%; left: 10%; }

/* ---------- 痛点 ---------- */

.pain-list { list-style: none; margin-top: 44px; }

.pain-list li {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--text-light-muted);
  padding: 10px 0;
}

.pain-list li::before { content: "—— "; color: rgba(234, 241, 251, 0.28); }

.ip-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 52px;
  flex-wrap: wrap;
}

/* ---------- IP 形象与气泡 ---------- */

.ip { width: clamp(110px, 13vw, 170px); height: auto; display: inline-block; }
.ip-sm { width: clamp(84px, 9vw, 120px); }
.ip-side { margin-top: 26px; }

.bubble {
  position: relative;
  background: #fff;
  color: var(--text-dark);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  padding: 14px 22px;
  border-radius: 16px;
  box-shadow: 0 14px 34px -12px rgba(2, 8, 20, 0.55);
  max-width: 24em;
  text-align: left;
}

.ip-line .bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 3px;
}

.bubble-center { margin: 46px auto 0; text-align: center; }

/* ---------- 胶囊 ---------- */

.cap, .capsule {
  font-family: var(--font-mono);
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
}

.cap-inline {
  font-size: 0.82em;
  padding: 3px 10px;
  white-space: nowrap;
}

.capsules {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.capsule {
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  padding: 10px 22px;
  box-shadow: 0 12px 28px -10px rgba(23, 107, 255, 0.55);
}

/* ---------- 隐私 ---------- */

#privacy .huge { color: var(--text-light); }

.privacy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  margin-top: 56px;
  flex-wrap: wrap;
}

.promise-list { list-style: none; text-align: left; }

.promise-list li {
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  padding: 12px 0;
  color: var(--text-light);
  border-bottom: 1px solid rgba(234, 241, 251, 0.1);
}

.promise-list li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 12px; }

.decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.decor-privacy { right: -40px; bottom: -30px; width: clamp(200px, 26vw, 380px); }
.decor-mcp { left: -50px; top: -30px; width: clamp(180px, 22vw, 320px); opacity: 0.75; }

/* ---------- MCP / 终端 ---------- */

.head-block { margin-bottom: clamp(40px, 6vh, 64px); }

.mcp-grid { grid-template-columns: 1.15fr 1fr; }

.mcp-side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

.terminal {
  width: 100%;
  background: #0A1322;
  border: 1px solid rgba(120, 160, 255, 0.18);
  border-radius: 14px;
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  line-height: 2;
  box-shadow: var(--shadow-card);
  min-height: 208px;
}

.terminal-line { color: var(--text-light); white-space: pre-wrap; word-break: break-all; }

.prompt { color: var(--blue); font-weight: 700; }

.caret-dark { background: rgba(234, 241, 251, 0.8); }

.terminal-results { margin-top: 6px; }

.terminal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-light-muted);
}

.terminal-row .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.terminal-row .conf { color: var(--blue); font-weight: 700; flex: none; }

.clients {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
}

.clients span { margin: 0 10px; opacity: 0.4; }

/* ---------- CTA / 页脚 ---------- */

#cta .ip { width: clamp(120px, 14vw, 180px); margin-bottom: 10px; }
#cta .btn-lg { margin-top: 38px; }

.site-footer {
  background: var(--paper);
  border-top: 1px solid rgba(11, 21, 38, 0.08);
  text-align: center;
  padding: 44px 24px 54px;
  color: var(--text-dark-muted);
  font-size: 0.95rem;
}

.site-footer .fine { margin-top: 8px; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero-grid, .grid-2, .mcp-grid { grid-template-columns: 1fr; }

  #hero { min-height: 0; }

  .hero-ip { position: static; margin-top: 26px; animation: floaty 4.5s ease-in-out infinite; }

  .hero-media { margin-top: 8px; }

  .badge-1 { left: 6px; }
  .badge-2 { right: 6px; }

  .mac-title { display: none; }

  .decor-privacy, .decor-mcp { display: none; }

  .ip-line .bubble::before { display: none; }

  .hero-ip-par { position: static; margin-top: 26px; }
}

/* ---------- 视差层 ---------- */

/* 仅给大层加 will-change(4 处,克制) */
.bg-hero, .bg-maze, #hero-video-card, #library .mac-card { will-change: transform; }

/* hero-ip 包装层:接管定位,让 floaty 留在内层元素上 */
.hero-ip-par {
  position: absolute;
  top: -30px;
  right: 0;
  width: clamp(96px, 11vw, 150px);
  z-index: 3;
}

.hero-ip-par .hero-ip { position: static; width: 100%; margin: 0; }

/* ---------- 减少动态 ---------- */

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

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