/* ==========================================================================
   问小天(OmniTian) 官网落地页样式 —— landing.css
   ==========================================================================
   要点：
   1) 滚动条与系统 style.css 完全一致（8px / #f5f5f5 轨道 / #bcbcbc 滑块 / #a8a8a8 激活）
   2) 版心加宽：内容 1280px、通栏 1520px（此前 980px 在宽屏上明显挤在中间）
   3) 大量手写 SVG 插图 —— 知识图谱、文档流、机器人流程、环形编排、波形分隔等，
      动画全部走 CSS（描边流动 dash、节点呼吸、缓慢旋转、位移浮动）
   4) 字体 MiSans（用户提供），代码区例外保留等宽

   不并入 style.css：那是登录后的工作台样式（5493 行，绑定侧边栏/对话气泡/通知等
   一整套变量体系），官网单独成文件，改官网不会误伤系统内部页面。
   所有类名统一 lp- 前缀，即使不慎与 style.css 共存也互不污染。
   ========================================================================== */

@font-face {
  font-family: 'MiSans';
  /*src:url('./assets/MiSans-Semibold.ttf') format('truetype');*/
  src: url('./assets/MiSans-Semibold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  font-family: "MiSans", system-ui, -apple-system, sans-serif !important;
}

/* 例外：代码区必须等宽字体，否则对齐全乱（pre/code 选择器权重高于 *，同为 !important 时前者胜出） */
pre, code, .lp-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace !important;
}

/* ======================= 滚动条：与系统 style.css 保持一致 ======================= */
::-webkit-scrollbar { width: 8px; height: 12px; }
div::-webkit-scrollbar { width: 6px; height: 10px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { border-radius: 16px; background: #bcbcbc; }
::-webkit-scrollbar-thumb:window-inactive,
::-webkit-scrollbar-thumb:vertical:hover,
::-webkit-scrollbar-thumb:vertical:active { background: #a8a8a8; }
/* Firefox 等价写法（WebKit 伪元素在 FF 无效，用标准属性补齐同样观感） */
html { scrollbar-width: thin; scrollbar-color: #bcbcbc #f5f5f5; }

:root {
  --lp-blue: #0071e3;
  --lp-blue-hover: #0077ed;
  --lp-blue-dark: #2997ff;
  --lp-ink: #1d1d1f;
  --lp-gray: #6e6e73;
  --lp-gray-2: #86868b;
  --lp-soft: #f5f5f7;
  --lp-line: #d2d2d7;
  --lp-dark: #000;
  --lp-dark-card: #161617;
  --lp-w: 1280px;        /* 版心：内容区 */
  --lp-w-wide: 1520px;   /* 版心：通栏（导航/大图） */
  --lp-nav-h: 54px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lp-nav-h) + 16px); }

body.lp-body {
  margin: 0;
  background: #fff;
  color: var(--lp-ink);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; color: var(--lp-ink); letter-spacing: -.03em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
svg { display: block; }

.lp-wrap { width: 100%; max-width: var(--lp-w); margin: 0 auto; padding: 0 32px; }
.lp-wrap-wide { width: 100%; max-width: var(--lp-w-wide); margin: 0 auto; padding: 0 32px; }

/* ------------------------------ 按钮 ------------------------------ */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 980px;
  background: var(--lp-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.lp-btn:hover { background: var(--lp-blue-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 113, 227, .28); }
.lp-btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }

.lp-link { color: var(--lp-blue); font-size: 17px; font-weight: 400; }
.lp-link::after { content: ' ›'; }
.lp-link:hover { text-decoration: underline; }

/* ------------------------------ 顶部导航 ------------------------------ */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--lp-nav-h);
  background: rgba(255, 255, 255, .74);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.lp-nav-inner { max-width: var(--lp-w-wide); margin: 0 auto; height: 100%; padding: 0 32px; display: flex; align-items: center; gap: 12px; }
.lp-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.lp-brand-logo { height: 22px; width: 22px; object-fit: contain; }
.lp-brand-text { font-size: 15px; font-weight: 800; letter-spacing: -.015em; color: var(--lp-ink); }
.lp-nav-links { display: flex; align-items: center; margin-left: auto; }
.lp-nav-links a { padding: 0 14px; font-size: 13px; letter-spacing: 0; color: var(--lp-ink); opacity: .82; transition: opacity .18s ease; }
.lp-nav-links a:hover { opacity: 1; }
.lp-nav-actions { display: flex; align-items: center; gap: 4px; margin-left: 14px; flex-shrink: 0; }
.lp-nav-toggle { display: none; width: 34px; height: 34px; border: none; background: none; color: var(--lp-ink); font-size: 18px; cursor: pointer; padding: 0; }

/* ------------------------------ Hero ------------------------------ */
.lp-hero { position: relative; padding: 76px 0 96px; overflow: hidden; }
.lp-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lp-hero-bg svg { width: 100%; height: 100%; }
.lp-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lp-hero-kicker { font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--lp-blue); }
.lp-hero h1 { margin: 14px 0 0; font-size: clamp(40px, 4.6vw, 66px); font-weight: 800; letter-spacing: -.038em; line-height: 1.06; }
.lp-hero-sub { margin: 22px 0 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--lp-gray); letter-spacing: -.01em; }
.lp-hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.lp-hero-meta { margin-top: 20px; font-size: 13.5px; color: var(--lp-gray-2); letter-spacing: 0; }
.lp-hero-meta b { color: var(--lp-ink); font-weight: 800; }
.lp-hero-meta .lp-sep { display: inline-block; width: 1px; height: 10px; background: var(--lp-line); margin: 0 10px; vertical-align: -1px; }
.lp-hero-art { position: relative; }
.lp-hero-art > svg { width: 100%; height: auto; }

/* ------------------------------ SVG 通用动画 ------------------------------ */
.lp-svg { overflow: visible; }

/* 连线流动：虚线沿路径滚动 */
.lp-flow { stroke-dasharray: 5 9; animation: lpDash 5.5s linear infinite; }
.lp-flow-2 { animation-duration: 7s; }
.lp-flow-3 { animation-duration: 8.5s; }
@keyframes lpDash { to { stroke-dashoffset: -280; } }

/* 节点呼吸 */
.lp-breathe { animation: lpBreathe 4.2s ease-in-out infinite; }
@keyframes lpBreathe { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

/* 缓慢自转 */
.lp-spin { transform-box: fill-box; transform-origin: center; animation: lpSpin 44s linear infinite; }
.lp-spin-r { transform-box: fill-box; transform-origin: center; animation: lpSpinR 60s linear infinite; }
@keyframes lpSpin { to { transform: rotate(360deg); } }
@keyframes lpSpinR { to { transform: rotate(-360deg); } }

/* 上下浮动 */
.lp-float { animation: lpFloat 6s ease-in-out infinite; }
.lp-float-2 { animation-duration: 7.5s; animation-delay: -2s; }
.lp-float-3 { animation-duration: 9s; animation-delay: -4s; }
@keyframes lpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 整幅描边生长（进入视口后由 JS 加 .is-in 触发） */
.lp-draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.6s cubic-bezier(.22, 1, .36, 1); }
.is-in .lp-draw, .lp-draw.is-in { stroke-dashoffset: 0; }

/* 呼吸光晕 */
.lp-halo { animation: lpHalo 5s ease-in-out infinite; }
@keyframes lpHalo { 0%, 100% { opacity: .18; } 50% { opacity: .42; } }

/* 分隔波浪 / 曲线 */
.lp-divider { display: block; width: 100%; height: auto; line-height: 0; }

/* ------------------------------ 通用区块 ------------------------------ */
.lp-section { padding: 116px 0; position: relative; }
.lp-section-soft { background: var(--lp-soft); }
.lp-head { max-width: 860px; margin: 0 auto 60px; text-align: center; }
.lp-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-gray-2); }
.lp-head h2 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.lp-head p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--lp-gray); letter-spacing: -.01em; }

/* ------------------------------ Bento 能力网格 ------------------------------ */
.lp-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-bento-card {
  background: #fff; border-radius: 22px; padding: 32px 32px 28px;
  border: 1px solid rgba(0, 0, 0, .06);
  display: flex; flex-direction: column;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, border-color .28s ease;
}
.lp-bento-card:hover { transform: translateY(-5px); box-shadow: 0 24px 54px rgba(0, 0, 0, .1); border-color: rgba(0, 113, 227, .22); }
.lp-bento-card.span2 { grid-column: span 2; }
.lp-bento-art { height: 172px; margin-bottom: 24px; }
.lp-bento-art svg { width: 100%; height: 100%; }
.lp-bento-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.lp-bento-card p { margin-top: 10px; font-size: 15.5px; line-height: 1.65; color: var(--lp-gray); letter-spacing: -.01em; }
.lp-tile-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.lp-tagx { font-size: 12.5px; color: var(--lp-gray); background: rgba(0, 0, 0, .05); border-radius: 980px; padding: 5px 12px; letter-spacing: 0; }

/* ------------------------------ 深色区块（智能体矩阵） ------------------------------ */
.lp-dark { position: relative; background: var(--lp-dark); padding: 116px 0; overflow: hidden; }
.lp-dark-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .85; }
.lp-dark-bg svg { width: 100%; height: 100%; }
.lp-dark .lp-wrap { position: relative; z-index: 1; }
.lp-dark .lp-head h2 { color: #f5f5f7; }
.lp-dark .lp-head p { color: #a1a1a6; }
.lp-dark .lp-kicker { color: #6e6e73; }
.lp-agents { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lp-agent {
  background: var(--lp-dark-card); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px; padding: 26px 18px 24px; text-align: center;
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), border-color .26s ease, background .26s ease;
}
.lp-agent:hover { transform: translateY(-5px); border-color: rgba(41, 151, 255, .45); background: #1c1c1e; }
.lp-agent svg { width: 52px; height: 52px; margin: 0 auto 16px; }
.lp-agent-name { font-size: 17px; font-weight: 800; color: #f5f5f7; letter-spacing: -.015em; }
.lp-agent-desc { margin-top: 6px; font-size: 13px; color: #98989d; line-height: 1.55; letter-spacing: 0; }

/* ------------------------------ 场景 ------------------------------ */
.lp-scene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.lp-scene + .lp-scene { margin-top: 104px; }
.lp-scene.is-reverse .lp-scene-visual { order: -1; }
.lp-scene-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-blue); }
.lp-scene h3 { margin-top: 14px; font-size: clamp(26px, 3vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.14; }
.lp-scene p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--lp-gray); letter-spacing: -.01em; }
.lp-scene-list { margin-top: 26px; list-style: none; display: grid; gap: 14px; }
.lp-scene-list li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.62; color: var(--lp-ink); letter-spacing: -.01em; }
.lp-scene-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; }
.lp-scene-visual {
  background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 24px; padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .07);
}
.lp-scene-visual > svg { width: 100%; height: auto; }

/* ------------------------------ 标签墙 ------------------------------ */
.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--lp-ink); letter-spacing: -.01em;
  background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: 980px; padding: 9px 18px;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.lp-chip:hover { transform: translateY(-2px); border-color: rgba(0, 113, 227, .3); color: var(--lp-blue); }
.lp-chip svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ------------------------------ 开发者 ------------------------------ */
.lp-dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
.lp-dev-list { margin-top: 30px; display: grid; gap: 20px; }
.lp-dev-item { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; }
.lp-dev-item > svg { width: 24px; height: 24px; margin-top: 3px; }
.lp-dev-item b { font-size: 16px; font-weight: 800; color: var(--lp-ink); letter-spacing: -.015em; }
.lp-dev-item span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.62; color: var(--lp-gray); letter-spacing: -.01em; }
.lp-code { background: var(--lp-dark-card); border-radius: 22px; padding: 24px 26px 26px; box-shadow: 0 24px 54px rgba(0, 0, 0, .16); }
.lp-code-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; color: #a1a1a6; letter-spacing: 0; }
.lp-code-head svg { width: 16px; height: 16px; }
.lp-code-head .lp-copy { margin-left: auto; background: none; border: none; color: #a1a1a6; cursor: pointer; font-size: 14px; padding: 3px 8px; border-radius: 9px; }
.lp-code-head .lp-copy:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lp-code pre { margin: 0; overflow-x: auto; font-size: 13px; line-height: 1.85; color: #e8e8ed; letter-spacing: 0; white-space: pre; }
.lp-code .c-c { color: #6e6e73; }
.lp-code .c-f { color: #7dd3fc; }
.lp-code .c-s { color: #a5f3a0; }

/* ------------------------------ 安全与部署 ------------------------------ */
.lp-sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-sec-card { background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 20px; padding: 30px 28px; transition: transform .26s ease, box-shadow .26s ease; }
.lp-sec-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(0, 0, 0, .09); }
.lp-sec-card svg { width: 40px; height: 40px; margin-bottom: 18px; }
.lp-sec-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.lp-sec-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.62; color: var(--lp-gray); letter-spacing: -.01em; }

/* ------------------------------ 底部 CTA ------------------------------ */
.lp-cta { position: relative; background: var(--lp-dark); padding: 128px 0; text-align: center; overflow: hidden; }
.lp-cta-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lp-cta-bg svg { width: 100%; height: 100%; }
.lp-cta .lp-wrap { position: relative; z-index: 1; }
.lp-cta h2 { color: #f5f5f7; font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.lp-cta p { margin: 20px auto 0; max-width: 680px; font-size: 18px; line-height: 1.6; color: #a1a1a6; letter-spacing: -.01em; }
.lp-cta-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }

/* ------------------------------ 页脚（不放菜单链接） ------------------------------ */
.lp-footer { background: var(--lp-soft); padding: 52px 0 38px; }
.lp-footer-inner { max-width: var(--lp-w); margin: 0 auto; padding: 0 32px; }
.lp-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lp-footer-brand img { height: 24px; width: 24px; object-fit: contain; }
.lp-footer-brand b { font-size: 15px; font-weight: 800; color: var(--lp-ink); letter-spacing: -.015em; }
.lp-footer p { font-size: 12.5px; line-height: 1.7; color: var(--lp-gray); max-width: 860px; letter-spacing: 0; }
.lp-footer-bottom {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--lp-line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 12.5px; color: var(--lp-gray-2); letter-spacing: 0;
}

/* ------------------------------ 入场动画 ------------------------------ */
.lp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); }
.lp-reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1280px) {
  .lp-agents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .lp-hero-sub { max-width: none; }
  .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-bento-card.span2 { grid-column: span 2; }
  .lp-sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-scene, .lp-dev { grid-template-columns: 1fr; gap: 44px; }
  .lp-scene.is-reverse .lp-scene-visual { order: 0; }
  .lp-scene + .lp-scene { margin-top: 72px; }
}
@media (max-width: 860px) {
  .lp-nav-links {
    position: absolute; top: var(--lp-nav-h); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 18px; box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
    padding: 10px 0; display: none;
  }
  .lp-nav-links.is-open { display: flex; }
  .lp-nav-links a { padding: 11px 22px; font-size: 15px; }
  .lp-nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 720px) {
  .lp-wrap, .lp-wrap-wide, .lp-nav-inner, .lp-footer-inner { padding: 0 20px; }
  .lp-section, .lp-dark, .lp-cta { padding: 76px 0; }
  .lp-hero { padding: 48px 0 68px; }
  .lp-bento, .lp-agents, .lp-sec-grid { grid-template-columns: 1fr; }
  .lp-bento-card.span2 { grid-column: span 1; }
  .lp-bento-art { height: 150px; }
  .lp-head { margin-bottom: 44px; }
  .lp-head p, .lp-scene p, .lp-hero-sub, .lp-cta p { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-flow, .lp-breathe, .lp-spin, .lp-spin-r, .lp-float, .lp-halo { animation: none; }
}
