/* ============ 落地首页（门面）landing.css v3 ============
   暖色极简大气风：米白底 #faf9f8 + 黑棕渐变标题 + 棕褐点缀 #6b4c3b；不引前端框架 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-size: 16px; }
html { scroll-behavior: smooth; }
body.landing {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #faf9f8;
  color: #1a1a1a;
  line-height: 1.6;
}
.ld-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: #6b4c3b; text-decoration: none; }

/* ---- Flash ---- */
.landing .flash { text-align: center; margin: 0; padding: 10px 16px; font-size: 16px; background: #fff7e6; color: #8a5a00; }

/* ---- Header ---- */
.ld-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,.05);
  gap: 16px; flex-wrap: wrap;
  /* 1118 顶栏不做吸顶：随窗口滚动，不长期占掉手机端可视区 */
}
.ld-brand { font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; color: #1a1a1a; }
.ld-nav { display: flex; gap: 28px; }
.ld-nav a { color: #1a1a1a; font-size: .95rem; font-weight: 500; letter-spacing: .01em; transition: color .2s; }
.ld-nav a:hover { color: #6b4c3b; }
.ld-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ld-user { font-size: .92rem; color: #3d3d3d; }

/* ---- 按钮 ---- */
.ld-btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #1a1a1a; color: #fff; border: 1px solid #1a1a1a;
  padding: 8px 20px; border-radius: 24px;
  font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  cursor: pointer; transition: background .2s, transform .12s;
}
.ld-btn-solid:hover { background: #3d2e26; border-color: #3d2e26; transform: translateY(-1px); }
.ld-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: #1a1a1a; border: 1px solid rgba(0,0,0,.12);
  padding: 8px 20px; border-radius: 24px;
  font-size: .92rem; font-weight: 500; cursor: pointer; transition: border-color .2s, color .2s;
}
.ld-btn-ghost:hover { border-color: #6b4c3b; color: #6b4c3b; }
.ld-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: #1a1a1a; border: 2px solid #1a1a1a;
  padding: 13px 44px; border-radius: 40px;
  font-size: 1.05rem; font-weight: 600; letter-spacing: .02em;
  cursor: pointer; transition: background .2s, color .2s, transform .15s;
}
.ld-btn-outline:hover { background: #1a1a1a; color: #fff; transform: scale(1.02); }
.ld-btn-lg { padding: 15px 52px; font-size: 1.1rem; border-radius: 40px; font-weight: 600; letter-spacing: .02em; }
.ld-btn-sm { padding: 6px 16px; font-size: .88rem; }
.ld-btn-disabled {
  background: #e2e0dd; color: #9a9691; border-color: #e2e0dd;
  cursor: not-allowed; box-shadow: none; transform: none;
}
.ld-btn-disabled:hover {
  background: #e2e0dd; color: #9a9691; border-color: #e2e0dd; transform: none;
}

/* ---- HERO ---- */
.ld-hero { padding: 96px 0 72px; text-align: center; }
.ld-hero h1 {
  /* 1020 主标题一行显示：去掉 max-width:820px 掐断 + nowrap 兜底；
     字号下限 2.4rem→1.25rem，320px 窄屏一行仍不溢出 */
  font-size: clamp(1.25rem, 4.6vw, 3.9rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.12;
  margin: 0 auto 28px; max-width: none; white-space: nowrap;
  background: linear-gradient(135deg, #1a1a1a 0%, #4a3a32 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ld-hero-points {
  list-style: none; margin: 0 auto 40px; padding: 0; max-width: 820px;
  text-align: left;
}
.ld-hero-points li {
  position: relative; padding-left: 26px;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: #3d3d3d; letter-spacing: .01em; line-height: 1.85;
  margin-bottom: 14px;
}
.ld-hero-points li::before {
  content: ""; position: absolute; left: 2px; top: .78em;
  width: 9px; height: 9px; border-radius: 50%; background: #6b4c3b;
}
.ld-hero-points strong { font-weight: 600; color: #1a1a1a; }
.ld-hero-cta { margin-top: 8px; display: flex; justify-content: center; }

/* ---- 通用 Section ---- */
.ld-section { padding: 64px 0 76px; border-top: 1px solid rgba(0,0,0,.04); }
.ld-section-white { background: #ffffff; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.ld-section-eyebrow {
  text-align: center; font-size: .85rem; letter-spacing: .28em;
  color: #6b4c3b; font-weight: 600; margin-bottom: 10px;
}
.ld-section-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 700;
  letter-spacing: -.02em; text-align: center; margin-bottom: 44px;
}

/* ---- 三层资产（理念） ---- */
.ld-value { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ld-value-card {
  background: #faf9f8; border: 1px solid rgba(0,0,0,.03);
  border-radius: 18px; padding: 32px 28px;
  transition: background .2s, transform .15s;
  /* 1020：图标与标题合成一行——卡内两列（图标 auto / 标题 1fr）垂直居中，描述跨两列另起一行 */
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 14px;
  align-items: center;
}
.ld-value-card:hover { background: #f5f2ef; transform: translateY(-2px); }
.ld-value-icon { font-size: 1.6rem; margin: 0; line-height: 1; }
.ld-value-name { font-size: 1.15rem; font-weight: 600; margin: 0; }
.ld-value-card p { grid-column: 1 / -1; font-size: .95rem; color: #4d4d4d; line-height: 1.8; }

/* ---- 完整创作流程 ---- */
.ld-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ld-flow-step {
  background: #ffffff; padding: 34px 30px; border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.03); border: 1px solid rgba(0,0,0,.04);
  text-align: center; transition: transform .2s, box-shadow .2s;
}
.ld-flow-step:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.06); }
.ld-flow-step .num { font-size: 2.4rem; font-weight: 700; color: #d4c5bc; letter-spacing: -.02em; line-height: 1; }
.ld-flow-step h3 { font-size: 1.25rem; font-weight: 600; margin: 14px 0 8px; }
.ld-flow-step p { color: #555; font-size: .95rem; line-height: 1.7; }

/* ---- 核心能力 ---- */
.ld-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ld-feature {
  background: #faf9f8; border: 1px solid rgba(0,0,0,.03);
  border-radius: 18px; padding: 30px 26px;
  transition: background .2s, transform .15s;
}
.ld-feature:hover { background: #f5f2ef; transform: translateY(-2px); }
.ld-feature .icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.ld-feature h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.ld-feature p { font-size: .94rem; color: #4d4d4d; line-height: 1.7; }

/* ---- 视频介绍（1026 新增：线上首页软件下载前，4:3 界面演示） ---- */
.ld-video-wrap {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
}
.ld-video-wrap video {
  display: block; width: 100%; height: auto;
  /* aspect-ratio 4:3：懒加载（preload=none）未取到元数据时按 4:3 占位，避免加载后高度跳动 */
  aspect-ratio: 4 / 3;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  background: #000; border: 1px solid rgba(0,0,0,.06);
  /* 1026 双击放大手势：禁用浏览器默认双击缩放干扰；transition 由 JS 按需切换 */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.ld-video-tip {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); background: #1a1a1a;
  border-radius: 18px; border: 1px solid rgba(0,0,0,.06);
  font-size: 16px; text-align: center; padding: 0 24px;
}
.ld-video-wrap video:focus { outline: 2px solid rgba(107,76,59,.4); outline-offset: 2px; }

/* ---- 下载 ---- */
.ld-download-actions { text-align: center; margin-bottom: 32px; }
.ld-download { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ld-release {
  background: #ffffff; border: 1px solid rgba(0,0,0,.04);
  border-radius: 18px; padding: 20px 26px; box-shadow: 0 4px 20px rgba(0,0,0,.03);
}
.ld-release-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ld-release-ver { font-weight: 700; font-size: 1.2rem; color: #6b4c3b; }
.ld-release-date { color: #777; font-size: .9rem; }
.ld-release-head .ld-btn-solid { margin-left: auto; }
.ld-release-log {
  white-space: pre-wrap; margin: 14px 0 0; padding: 12px 16px;
  background: #faf9f8; border-radius: 12px; font-size: .92rem; color: #4d4d4d;
}
.ld-release-none { color: #999; font-size: .92rem; margin: 10px 0 0; }
.ld-empty { text-align: center; color: #777; }
.ld-release-off { color: #b45309; font-size: .88rem; }

/* ---- 发布历史弹窗（1007：只 ✕ 关闭，不做点遮罩关闭） ---- */
/* 0904 同款坑：.ld-modal{display:flex} 会覆盖 hidden 属性导致弹窗默认显示（后台 .am-mask 已踩过，
   见 admin.css [hidden] 兜底）——这里补全局兜底，hidden 元素一律不显示 */
[hidden] { display: none !important; }
.ld-modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(26, 26, 26, .55);
}
.ld-modal {
  position: fixed; z-index: 91; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 32px));
  max-height: min(78vh, 640px);
  background: #ffffff; border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  display: flex; flex-direction: column; overflow: hidden;
}
.ld-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid rgba(0,0,0,.06);
  flex: 0 0 auto;
}
.ld-modal-title { font-size: 1.15rem; font-weight: 700; color: #1a1a1a; }
.ld-modal-close {
  background: transparent; border: 0; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: #777; padding: 4px 8px; border-radius: 8px;
}
.ld-modal-close:hover { color: #1a1a1a; background: rgba(0,0,0,.05); }
.ld-modal-body {
  overflow-y: auto; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
}

/* ---- CTA ---- */
.ld-cta { padding: 84px 0 92px; text-align: center; border-top: 1px solid rgba(0,0,0,.04); }
.ld-cta h2 {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.ld-cta-sub { font-size: 1.2rem; color: #4d4d4d; margin-bottom: 34px; }
.ld-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.ld-footer {
  padding: 28px 0; border-top: 1px solid rgba(0,0,0,.05);
  display: flex; justify-content: center; align-items: center;
  gap: 18px; flex-wrap: wrap; font-size: .9rem; color: #777;
}
.ld-footer a { color: #777; transition: color .2s; }
.ld-footer a:hover { color: #1a1a1a; }

/* ---- 兼容：旧内页 landing.html 用到的类 ---- */
.ld-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.ld-step { text-align: center; padding: 26px 18px; background: #ffffff; border: 1px solid rgba(0,0,0,.04); border-radius: 18px; box-shadow: 0 4px 20px rgba(0,0,0,.03); }
.ld-step-num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: #1a1a1a; color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.ld-step b { display: block; font-size: 1rem; margin-bottom: 6px; }
.ld-step p { margin: 0; font-size: .92rem; color: #4d4d4d; }

/* ---- 案例对比（同一个问题，两种回答） ---- */
.ld-compare-q {
  text-align: center; font-size: 1.05rem; font-weight: 600; color: #3d3d3d;
  margin: -24px auto 34px; max-width: 760px; line-height: 1.7;
}
.ld-compare-q::before { content: "❓ "; }
.ld-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch; max-width: 1160px; margin: 0 auto;
}
.ld-compare-card {
  background: #ffffff; border: 1px solid rgba(0,0,0,.04);
  border-radius: 20px; padding: 30px 30px 34px;
  box-shadow: 0 4px 20px rgba(0,0,0,.03);
  display: flex; flex-direction: column;
}
.ld-compare-card--mimic {
  border-color: rgba(107,76,59,.35);
  box-shadow: 0 8px 28px rgba(107,76,59,.08);
}
.ld-compare-head {
  font-size: 1.2rem; font-weight: 700; text-align: center;
  padding-bottom: 14px; margin-bottom: 18px; letter-spacing: .02em;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.ld-compare-card--generic .ld-compare-head { color: #1a1a1a; }
.ld-compare-card--mimic .ld-compare-head { color: #6b4c3b; }
.ld-compare-body { font-size: 1rem; line-height: 1.95; color: #2b2b2b; flex: 1; }
.ld-compare-body strong { color: #6b4c3b; font-weight: 600; }
.ld-compare-card--generic .ld-compare-body strong { color: #1a1a1a; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .ld-flow { grid-template-columns: repeat(2, 1fr); }
  .ld-compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ld-hero { padding: 64px 0 48px; }
  .ld-flow { grid-template-columns: 1fr; }
  .ld-section { padding: 56px 0 64px; }
  .ld-section-white { padding-left: 24px; padding-right: 24px; }
  .ld-cta { padding: 60px 0 68px; }
  .ld-nav { gap: 14px; flex-wrap: wrap; }
  /* 1118 移动端导航字号提到 16px（原 .88rem≈14px 太小，且违反全站最小 16px 规矩） */
  .ld-nav a { font-size: 1rem; }
  .ld-cta-btns .ld-btn-solid, .ld-cta-btns .ld-btn-outline { width: 100%; }
  .ld-footer { flex-direction: column; align-items: center; }
  /* 1002 移动端触控：导航链接/品牌/注册/下载按钮可点区域 ≥40px 高 */
  .ld-header { gap: 8px; }
  .ld-brand, .ld-nav a, .ld-btn-solid, .ld-btn-ghost, .ld-btn-outline, .ld-user { display: inline-flex; align-items: center; min-height: 40px; }
  /* 1002 320px 极限宽度：minmax(300px,1fr) 卡 + 白段负边距 → 溢出 4px；缩小最小卡宽 */
  .ld-value, .ld-features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .ld-compare { grid-template-columns: 1fr; }
}

/* ---- 回到顶部（悬浮右下角，滚动一段后显示） ---- */
.ld-backtop {
  position: fixed; right: 18px; bottom: 26px; z-index: 60;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ld-ink, #1a1a1a); color: #fff;
  border-radius: 50%; font-size: 20px; font-weight: 700;
  text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  cursor: pointer;
}
.ld-backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
