/* ─── 灵动万象主页 · oimi 风格布局 ──────────────────────────────────────────── */

/* ── 整体容器 ─────────────────────────────────────────────────────────────── */

.home-video-hero {
  position: relative;
  padding: 0;
}

.ld-home-wrap { width: 100%; }

/* ── 公共按钮 ─────────────────────────────────────────────────────────────── */

.ld-btn-primary,
.ld-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  cursor: pointer;
}

.ld-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 28px rgba(99,102,241,.35);
}

.ld-btn-primary:hover { opacity: .9; transform: translateY(-2px); }

.ld-btn-ghost {
  border: 1px solid rgba(244,239,230,.22);
  background: rgba(255,255,255,.06);
  color: #f4efe6;
  backdrop-filter: blur(8px);
}

.ld-btn-ghost:hover { background: rgba(255,255,255,.12); }
.ld-btn-lg { padding: 15px 36px; font-size: 16px; }

/* ── Hero（始终深色） ─────────────────────────────────────────────────────── */

.hero-video-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(139,92,246,.07), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(99,102,241,.05), transparent 40%);
}

[data-theme="dark"] .hero-video-bg {
  background:
    radial-gradient(circle at 20% 10%, rgba(99,102,241,.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(139,92,246,.12), transparent 40%);
}

.home-hero-shell {
  position: relative;
  z-index: 1;
}

.ld-hero {
  padding: 80px max(24px, calc((100vw - 760px) / 2)) 64px;
  text-align: center;
  color: var(--text);
  background: var(--page);
  position: relative;
  z-index: 1;
}

.ld-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--muted);
}

.ld-hero-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: var(--text);
}

[data-theme="dark"] .ld-hero-title {
  background: linear-gradient(135deg, #f4efe6 30%, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ld-hero-title-gradient {
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ld-hero-sub {
  margin: 0 auto 32px;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.ld-hero-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

/* 社会证明行 */
.ld-hero-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.ld-hero-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.ld-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,.6);
  animation: ld-dot-pulse 2s ease-in-out infinite;
}

@keyframes ld-dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.ld-hero-model-badge {
  padding: 3px 12px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ld-hero-model-badge--blue {
  background: #3b82f6;
}

/* 底部功能徽章条 */
.ld-hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
}

.ld-hero-strip span { color: var(--muted); }
.ld-hero-strip i    { font-style: normal; color: var(--line); }

/* 画布下方「查看工作流模板」引导链接 */
.ld-hero-templates-cta {
  display: block;
  text-align: center;
  margin: 20px auto 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.ld-hero-templates-cta:hover { color: var(--text); }

[data-theme="dark"] .ld-hero-templates-cta { color: rgba(244,239,230,.5); }
[data-theme="dark"] .ld-hero-templates-cta:hover { color: rgba(244,239,230,.9); }

/* 画布预览 mockup（深色，可点击，始终深色不跟主题） */

.ld-canvas-preview {
  display: block;
  width: min(860px, 100%);
  margin: 28px auto 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0d1117;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.ld-canvas-preview:hover {
  border-color: rgba(99,102,241,.5);
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(99,102,241,.3);
  transform: translateY(-2px);
}

/* 预览顶栏 */
.ld-cp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #111722;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
}

.ld-cp-bar-label { font-weight: 700; color: rgba(244,239,230,.8); }
.ld-cp-bar-flow  { color: #6366f1; font-size: 11px; font-weight: 600; }

/* 预览主体 */
.ld-cp-body {
  display: flex;
  height: 340px;
  background: #0d1117;
}

.ld-cp-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 0;
  width: 44px;
  background: #0f141d;
  border-right: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.ld-cp-sidebar span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(244,239,230,.45);
}

.ld-cp-canvas {
  position: relative;
  flex: 1;
  background:
    repeating-linear-gradient(0deg,  transparent, transparent 23px, rgba(99,102,241,.07) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(99,102,241,.07) 24px),
    #07080f;
  overflow: hidden;
}

.ld-cp-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 节点基础 */
.ld-cp-node {
  position: absolute;
  min-width: 140px;
  max-width: 168px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: #131a26;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  font-size: 11px;
  overflow: hidden;
}

.ld-cp-node-label {
  padding: 5px 10px;
  background: rgba(255,255,255,.05);
  font-weight: 800;
  color: rgba(244,239,230,.7);
  font-size: 10px;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.ld-cp-node-body {
  padding: 7px 10px;
  color: rgba(244,239,230,.55);
  line-height: 1.5;
  font-size: 10.5px;
}

.ld-cp-node-footer {
  padding: 4px 10px;
  background: rgba(99,102,241,.1);
  color: #a5b4fc;
  font-size: 9.5px;
  font-weight: 700;
  border-top: 1px solid rgba(99,102,241,.15);
}

.ld-cp-node-img-area {
  padding: 10px;
  font-size: 24px;
  text-align: center;
  background: rgba(255,255,255,.03);
}

/* 节点颜色 */
.ld-cp-node--img   { border-color: rgba(99,102,241,.4); }
.ld-cp-node--img   .ld-cp-node-label { background: rgba(99,102,241,.15); color: #a5b4fc; }
.ld-cp-node--agent { border-color: rgba(34,197,94,.35); }
.ld-cp-node--agent .ld-cp-node-label { background: rgba(34,197,94,.1);  color: #86efac; }
.ld-cp-node--gen   { border-color: rgba(139,92,246,.4); }
.ld-cp-node--gen   .ld-cp-node-label { background: rgba(139,92,246,.15); color: #c4b5fd; }
.ld-cp-node--video { border-color: rgba(234,179,8,.35); }
.ld-cp-node--video .ld-cp-node-label { background: rgba(234,179,8,.1);  color: #fde68a; }

.ld-cp-version {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 10px;
  color: rgba(244,239,230,.25);
}

/* 截图模式：当提供真实截图时替换 mockup */
.ld-cp-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ── 公共 section（跟随主题） ─────────────────────────────────────────────── */

.ld-section {
  padding: 72px max(24px, calc((100vw - 1200px) / 2));
  background: var(--page);
}

.ld-section--light {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ld-section-head { margin-bottom: 40px; text-align: center; }

.ld-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
}

.ld-section-head p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── 工作流模板卡片（跟随主题） ────────────────────────────────────────────── */

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

.ld-tpl-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}

.ld-tpl-card:hover        { transform: translateY(-4px); box-shadow: var(--shadow); }
.ld-tpl-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.ld-tpl-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--chip);
}

.ld-tpl-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-tpl-media video:not([src]) { display: none; }

.ld-tpl-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.ld-tpl-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.ld-tpl-model-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: #ede9fe;
  color: #6d28d9;
}

[data-theme="dark"] .ld-tpl-model-tag              { background: rgba(139,92,246,.2); color: #c4b5fd; }
.ld-tpl-model-tag:nth-child(2)                      { background: #fef3c7; color: #92400e; }
[data-theme="dark"] .ld-tpl-model-tag:nth-child(2)  { background: rgba(234,179,8,.15); color: #fde68a; }
.ld-tpl-model-tag:nth-child(3)                      { background: #d1fae5; color: #065f46; }
[data-theme="dark"] .ld-tpl-model-tag:nth-child(3)  { background: rgba(34,197,94,.15); color: #86efac; }

.ld-tpl-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.ld-tpl-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── 全部能力 feature grid（跟随主题） ─────────────────────────────────────── */

.ld-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ld-feat-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.ld-feat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* 视觉区（渐变背景 + 大 emoji）*/
.ld-feat-visual {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ld-feat-emoji {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
  transition: transform .2s;
}

.ld-feat-card:hover .ld-feat-emoji { transform: scale(1.12); }

.ld-feat-name { font-size: 15px; font-weight: 800; color: var(--text); padding: 14px 16px 0; }
.ld-feat-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); flex: 1; padding: 7px 16px 0; }
.ld-feat-cta  { font-size: 12px; font-weight: 700; color: #6366f1; padding: 10px 16px 14px; margin-top: auto; }

[data-theme="dark"] .ld-feat-cta { color: #a5b4fc; }

/* ── 模型展示区 ────────────────────────────────────────────────────────────── */

.ld-model-section { background: var(--page); }

.ld-model-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ld-model-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.ld-model-type {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.ld-model-type--video { background: rgba(99,102,241,.15); color: #818cf8; }
.ld-model-type--img   { background: rgba(34,197,94,.15);  color: #4ade80; }
.ld-model-type--text  { background: rgba(249,115,22,.15); color: #fb923c; }

[data-theme="dark"] .ld-model-type--video { background: rgba(99,102,241,.2);  color: #a5b4fc; }
[data-theme="dark"] .ld-model-type--img   { background: rgba(34,197,94,.18);  color: #86efac; }
[data-theme="dark"] .ld-model-type--text  { background: rgba(249,115,22,.18); color: #fdba74; }

.ld-model-name { color: var(--text); }

/* ── 社会证明 + 底部 CTA（跟随主题） ─────────────────────────────────────── */

.ld-social-strip {
  padding: 48px max(24px, calc((100vw - 1200px) / 2));
  text-align: center;
  background: var(--panel);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ld-social-avatars {
  display: flex;
  gap: -6px;
}

.ld-social-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-left: -8px;
}

.ld-social-av:first-child { margin-left: 0; }

.ld-social-strip p    { margin: 0; font-size: 15px; color: var(--muted); }
.ld-social-strip strong { color: var(--text); }

.ld-final-cta {
  padding: 80px max(24px, calc((100vw - 900px) / 2));
  text-align: center;
  background: var(--page);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* 取消深色背景装饰 */
.ld-final-cta::before { display: none; }

.ld-cta-avatars { display: flex; }

.ld-cta-av-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line);
  margin-left: -8px;
  flex-shrink: 0;
  background: var(--panel);
  object-fit: cover;
}

.ld-cta-av-img:first-child { margin-left: 0; }
.ld-btn-cta-icon { font-size: 18px; }

/* 社会证明 pill — 跟随主题 */
.ld-cta-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 36px;
}

.ld-final-cta h2 {
  color: var(--text);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 950;
  letter-spacing: -.025em;
  margin: 0 0 16px;
  line-height: 1.1;
}

.ld-final-cta > p {
  margin: 0 auto 40px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* 大 pill CTA 按钮 — 保持紫色但按钮本身 */
.ld-btn-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(99,102,241,.35);
  transition: transform .2s, box-shadow .2s;
}

.ld-btn-cta-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 42px rgba(99,102,241,.4);
}

/* 星级评价 — 跟随主题 */
.ld-cta-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 48px;
}

.ld-cta-stars-row { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
.ld-cta-stars-label { color: var(--muted); font-size: 13px; }

/* 底部3个特性块 — 跟随主题 */
.ld-cta-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.ld-cta-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.ld-cta-feat-icon { font-size: 28px; line-height: 1; }
.ld-cta-feat-label { font-size: 14px; font-weight: 700; color: var(--text); }

/* CTA 功能条 */
.ld-cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 40px;
  font-size: 13px;
}

.ld-cta-strip span { color: rgba(255,255,255,.75); }
.ld-cta-strip i    { font-style: normal; color: rgba(255,255,255,.3); }

/* 底部3个特性块 */
.ld-cta-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.ld-cta-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  color: #fff;
}

.ld-cta-feat-icon { font-size: 28px; line-height: 1; }
.ld-cta-feat-label { font-size: 14px; font-weight: 700; }

@media (max-width: 600px) {
  .ld-cta-features { grid-template-columns: 1fr; gap: 10px; }
  .ld-btn-cta-pill  { padding: 15px 32px; font-size: 15px; }
}

/* ── 响应式 ───────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .ld-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 860px) {
  .ld-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ld-feature-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-section       { padding: 48px 16px; }
  .ld-hero          { padding: 56px 16px 48px; }
  .ld-cp-body       { height: 260px; }
  .ld-model-grid    { gap: 8px; }
  .ld-hero-sub      { max-width: 100%; }
}

@media (max-width: 540px) {
  /* 模板卡片：始终保持2列，最小宽度自适应 */
  .ld-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ld-feature-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ld-hero-title    { font-size: 28px; }
  .ld-hero-sub      { font-size: 14px; max-width: 100%; }
  .ld-cp-body       { height: 200px; }
  .ld-cp-node       { min-width: 100px; max-width: 120px; font-size: 9.5px; }
  .ld-model-chip    { padding: 6px 12px; font-size: 12px; }
  .ld-tpl-title     { font-size: 13px; }
  .ld-tpl-desc      { font-size: 11px; }
  .ld-tpl-body      { padding: 10px 12px 14px; }
  .ld-hero-strip    { font-size: 11px; gap: 5px; }
  .ld-cta-social-pill { font-size: 11px; padding: 6px 14px; flex-wrap: wrap; justify-content: center; }
  .ld-final-cta     { padding: 56px 16px; }
  .ld-final-cta h2  { font-size: 28px; }
  .ld-final-cta > p { font-size: 14px; }
  .ld-section-head h2 { font-size: 20px; }
}
