/* ============================================================
   landing.css - 首页「浅色粗野主义」主题（对齐参考站真实设计）
   米白底 + 白色大圆角卡（浅边框+轻阴影）+ 黑实心按钮 + 超大标题
   ============================================================ */

:root {
  --lb-bg: #f6f6f3;            /* 侧边栏/页面底（参考站 body 背景） */
  --lb-bg-main: #e8e6e0;       /* 主内容底（米白，参考站主背景） */
  --lb-ink: #0a0a0a;           /* 近黑文字 */
  --lb-muted: #7a7872;         /* 次要文字 */
  --lb-border: #e5e3dc;        /* 浅边框 */
  --lb-accent: #e0fb71;        /* 荧光绿（banner） */
  --lb-yellow: #ffe066;
  --lb-radius: 22px;           /* 卡片圆角（参考站精确值） */
  --lb-font: "Inter Tight", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --lb-sidebar-w: 240px;
  /* 精确间距 token（提取自参考站 design.json） */
  --lb-pad-sec: 40px 44px;     /* 区块内边距（上下40 左右44） */
  --lb-pad-hero: 120px 44px;   /* hero 内边距（上下120） */
  --lb-gap-sm: 8px;            /* 小间距 */
  --lb-gap-md: 10px;           /* 中间距 */
  --lb-gap-lg: 24px;           /* 大间距 */
}

* { box-sizing: border-box; }

.lb-body {
  margin: 0;
  background: var(--lb-bg-main);
  color: var(--lb-ink);
  font-family: var(--lb-font);
  font-size: 16px;
  line-height: 1.5;
  padding-left: var(--lb-sidebar-w);
  transition: padding-left .25s cubic-bezier(.4,0,.2,1);
}
.lb-body.sb-collapsed { padding-left: 64px; }

/* ---------- 固定侧边栏 ---------- */
.lb-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--lb-sidebar-w);
  background: var(--lb-bg);
  border-right: 1px solid var(--lb-border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width .25s cubic-bezier(.4,0,.2,1);
}
/* 折叠态：缩成窄条，hover 临时展开 */
.lb-sidebar.sb-collapsed { width: 64px; padding-left: 10px; padding-right: 10px; }
.lb-sidebar.sb-collapsed .lb-txt { display: none; }
.lb-sidebar.sb-collapsed.peek { width: var(--lb-sidebar-w); padding-left: 14px; padding-right: 14px; }
.lb-sidebar.sb-collapsed.peek .lb-txt { display: inline; }
/* 折叠态：菜单只留图标，文字淡出（hover 恢复） */
.lb-sidebar nav a { white-space: nowrap; }
.lb-sidebar nav a .lb-txt { opacity: 1; transition: opacity .18s ease; white-space: nowrap; }
.lb-sidebar.sb-collapsed nav a { justify-content: center; }
.lb-sidebar.sb-collapsed nav a .lb-txt { opacity: 0; }
.lb-sidebar.sb-collapsed nav a .lb-new { display: none; }
.lb-sidebar.sb-collapsed.peek nav a { justify-content: flex-start; }
.lb-sidebar.sb-collapsed.peek nav a .lb-txt { opacity: 1; }
.lb-sidebar.sb-collapsed.peek nav a .lb-new { display: inline-block; }
.lb-sidebar .lb-icon { flex-shrink: 0; }
/* 底部按钮小图标：折叠态只显示图标（表达账户/登录/创作/收起含义） */
.lb-sidebar.sb-collapsed .lb-sidebar-foot .lb-btn { justify-content: center; padding: 8px 0; }
.lb-sidebar.sb-collapsed .lb-sidebar-foot .lb-btn .lb-txt { display: none; }
.lb-sidebar.sb-collapsed .lb-sidebar-foot .lb-icon { display: inline-block; }
/* 折叠态：底部按钮的图标在 peek（hover）时隐藏、显示文字 */
.lb-sidebar.sb-collapsed.peek .lb-sidebar-foot .lb-btn { justify-content: center; }
.lb-sidebar.sb-collapsed.peek .lb-sidebar-foot .lb-btn .lb-txt { display: inline; }
.lb-sidebar.sb-collapsed.peek .lb-sidebar-foot .lb-icon { display: none; }/* 顶栏侧边栏开合按钮（汉堡） */
.sb-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--lb-border); background: #fff;
  border-radius: 8px; cursor: pointer; color: var(--lb-ink);
}
.sb-toggle:hover { background: var(--lb-bg); }

/* ---------- 登录弹窗（粗野主义，对齐 sign-in 页设计） ---------- */
.am-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,10,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.am-mask.hidden { display: none; }
.am-card {
  width: 400px; max-width: 100%; max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border: 2px solid var(--lb-ink);
  border-radius: 20px; box-shadow: 8px 8px 0 var(--lb-ink);
  padding: 30px 28px;
}
.am-logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.am-logo-dot { width: 12px; height: 12px; background: var(--lb-ink); border-radius: 3px; display: inline-block; }
.am-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.am-tab {
  flex: 1; padding: 10px; border: 2px solid var(--lb-ink); background: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.am-tab.active { background: var(--lb-ink); color: #fff; }
/* 登录子方式分段控件：整条黑边框容器，选中项黑底白字 */
.am-subtabs {
  display: flex; margin: -10px 0 16px; border: 2px solid var(--lb-ink);
  border-radius: 999px; overflow: hidden; background: #fff;
}
.am-subtab {
  flex: 1; padding: 8px 0; border: none; background: transparent;
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  color: var(--lb-muted); transition: background .15s, color .15s;
}
.am-subtab + .am-subtab { border-left: 2px solid var(--lb-ink); }
.am-subtab.active { background: var(--lb-ink); color: #fff; }
.am-field { margin-bottom: 14px; }
.am-field label { display: block; font-size: 12px; font-weight: 600; color: var(--lb-muted); margin-bottom: 6px; }
.am-field input {
  width: 100%; padding: 11px 13px; border: 2px solid var(--lb-ink);
  border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.am-field input::placeholder { color: #a8a5a0; }
.am-field input:hover { border-color: #333; }
.am-field input:focus { box-shadow: 3px 3px 0 var(--lb-ink); }
.am-field input:disabled { opacity: .5; cursor: not-allowed; }
.am-submit {
  width: 100%; padding: 12px; background: var(--lb-ink); color: #fff;
  border: none; border-radius: 999px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; margin-top: 4px;
}
.am-submit:active { transform: translate(1px, 1px); }
.am-submit:disabled { opacity: .6; cursor: default; }
.am-err { color: #ff4d4f; font-size: 13px; margin-top: 8px; min-height: 18px; }
.am-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--lb-muted); font-size: 12px; }
.am-divider::before, .am-divider::after { content: ""; flex: 1; height: 1px; background: var(--lb-border); }
.am-wechat {
  width: 100%; padding: 11px; background: #07c160; color: #fff;
  border: none; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.am-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--lb-muted); }
.am-foot a { color: var(--lb-ink); font-weight: 700; text-decoration: underline; cursor: pointer; }
/* 注册验证码：手机号 + 验证码同行布局 */
.am-code-row { display: flex; gap: 8px; }
.am-code-row input { flex: 1; min-width: 0; }
.am-code-btn {
  flex-shrink: 0; padding: 0 12px; background: #fff; color: var(--lb-ink);
  border: 2px solid var(--lb-ink); border-radius: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.am-code-btn:disabled { opacity: .6; cursor: default; }
.lb-sidebar.sb-collapsed .lb-sidebar-foot .lb-btn { padding: 8px; justify-content: center; }
.lb-sidebar .lb-logo {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.lb-sidebar nav a {
  color: var(--lb-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-sidebar nav a:hover { background: #fff; }
.lb-sidebar nav a .lb-new {
  font-size: 10px;
  background: var(--lb-red, #ff4d4f);
  color: #fff;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: auto;
}
.lb-sidebar .lb-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--lb-border);
}

/* ---------- 顶部 banner ---------- */
.lb-banner {
  background: var(--lb-accent);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #1a2e05;
  text-align: center;
}

/* ---------- Hero ---------- */
.lb-hero {
  position: relative;
  padding: var(--lb-pad-hero);
  overflow: hidden;
  border-bottom: 1px solid var(--lb-border);
}
/* 右上淡黄光晕 */
.lb-hero::before {
  content: "";
  position: absolute;
  top: -160px; right: -120px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(255,224,102,.55), rgba(255,224,102,0) 65%);
  pointer-events: none;
}
.lb-hero h1 {
  position: relative;
  font-size: clamp(56px, 8.5vw, 130px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -3px;
  margin: 0 0 26px;
}
/* 光标装饰块 */
.lb-hero h1 .lb-caret {
  display: inline-block;
  width: 0.5em; height: 0.14em;
  background: #ea580c;
  vertical-align: baseline;
  margin-left: 6px;
}
.lb-hero-sub { font-size: 15px; color: var(--lb-muted); max-width: 520px; margin: 0; line-height: 1.7; position: relative; }
/* 副标题居左、按钮居右下（对齐参考站布局） */
.lb-hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.lb-hero-cta { display: flex; gap: 12px; position: relative; }

/* ---------- 按钮：黑实心 / 白描边 ---------- */
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s, box-shadow .12s, background .15s, color .15s, border-color .15s;
  border: 1.5px solid transparent;
  user-select: none;
}
.lb-btn:active { transform: scale(.97); }
.lb-btn:focus-visible { outline: 2px solid var(--lb-ink); outline-offset: 2px; }
.lb-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.lb-btn:disabled:hover { box-shadow: none; }
.lb-btn-p { background: var(--lb-ink); color: #fff; }
.lb-btn-p:hover { background: #333; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.lb-btn-p:disabled:hover { background: var(--lb-ink); }
.lb-btn-s { background: #fff; color: var(--lb-ink); border-color: var(--lb-ink); }
.lb-btn-s:hover { background: var(--lb-ink); color: #fff; }
.lb-btn-s:disabled:hover { background: #fff; color: var(--lb-ink); }

/* ---------- 区块通用 ---------- */
.lb-sec { padding: var(--lb-pad-sec); border-bottom: 1px solid var(--lb-border); }
.lb-sec h2 {
  text-align: center;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 14px;
}
.lb-sec h2 span { font-weight: 400; color: var(--lb-muted); }
.lb-sec .lb-sec-sub { text-align: center; color: var(--lb-muted); font-size: 14px; margin-bottom: 44px; }

/* ---------- 功能大卡：左右交替 ---------- */
.lb-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lb-gap-lg);
  align-items: center;
  background: #fff;
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius);
  padding: 28px;
  margin: 0 auto 24px;
  max-width: 1160px; /* 限制功能卡宽度，媒体区保持约1.6:1与图片匹配，避免宽屏下两侧大块留白 */
  box-shadow: 0 10px 30px rgba(10,10,10,.06);
}
/* 偶数行反转（图左文右） */
.lb-feature-row.rev { direction: rtl; }
.lb-feature-row.rev > * { direction: ltr; }
.lb-f-media {
  border-radius: 16px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--lb-ink);
  position: relative;
  overflow: hidden;
}
/* 浅色调占位媒体（示意，后续可替换为真实生成图） */
.lb-m1 { background: linear-gradient(135deg, #fdf6e3, #f3e8d2); }
.lb-m2 { background: linear-gradient(135deg, #ffe9d6, #ffd9c0); }
.lb-m3 { background: linear-gradient(135deg, #e3f2ec, #d2ebe0); }
.lb-m4 { background: linear-gradient(135deg, #1a1a1a, #333); color: #fff; }
.lb-f-media .lb-m-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,.85);
  padding: 4px 10px;
  border-radius: 999px;
}
.lb-f-body { display: flex; flex-direction: column; align-items: flex-start; }
.lb-f-idx { font-size: 12px; font-weight: 700; color: var(--lb-muted); margin-bottom: 10px; letter-spacing: 1px; }
.lb-f-body h3 { font-size: 34px; font-weight: 700; margin: 0 0 14px; line-height: 1.15; letter-spacing: -1px; }
.lb-f-body p { font-size: 14px; color: var(--lb-muted); margin: 0 0 18px; line-height: 1.7; max-width: 460px; }
.lb-f-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lb-f-stat {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid var(--lb-border);
  border-radius: 999px;
  background: var(--lb-bg);
}
.lb-f-body .lb-btn { align-self: flex-start; }
/* 深色卡（产品精修） */
.lb-feature-row.dark { background: #141414; color: #fff; border-color: #141414; }
.lb-feature-row.dark .lb-f-idx { color: #9a988f; }
.lb-feature-row.dark p { color: #b5b3ac; }
.lb-feature-row.dark .lb-f-stat { background: #222; border-color: #333; color: #eee; }
.lb-feature-row.dark .lb-btn-s { background: transparent; color: #fff; border-color: #fff; }

/* ---------- 案例展示 ---------- */
.lb-showcase {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.lb-showcase-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: 18px;
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-weight: 700;
  color: var(--lb-ink);
  font-size: 14px;
  border: 1px solid var(--lb-border);
}

/* ---------- 步骤 / 亮点 / 为什么 ---------- */
.lb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lb-cell {
  border: 1px solid var(--lb-border);
  border-radius: 18px;
  background: #fff;
  padding: 22px;
}
.lb-cell .no { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.lb-cell h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.lb-cell p { font-size: 13px; color: var(--lb-muted); margin: 0; line-height: 1.65; }
.lb-cell.why .q { font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }

/* ---------- FAQ ---------- */
.lb-faq-item {
  border: 1px solid var(--lb-border);
  border-radius: 18px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.lb-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--lb-font);
  text-align: left;
}
.lb-faq-n { font-size: 11px; font-weight: 700; color: var(--lb-muted); flex-shrink: 0; }
.lb-faq-t { font-size: 17px; font-weight: 600; flex: 1; }
.lb-faq-x { font-size: 20px; font-weight: 700; flex-shrink: 0; }
.lb-faq-a { padding: 0 22px 20px 58px; font-size: 14px; color: var(--lb-muted); line-height: 1.75; display: none; }
.lb-faq-item.open .lb-faq-a { display: block; }

/* ---------- 平台跑马灯 ---------- */
.lb-marquee {
  border-top: 1px solid var(--lb-border);
  border-bottom: 1px solid var(--lb-border);
  overflow: hidden;
  padding: 14px 0;
  background: var(--lb-bg);
}
.lb-marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: lb-scroll 22s linear infinite;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--lb-ink);
}
@keyframes lb-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 底部 CTA ---------- */
.lb-cta { padding: 100px 60px; background: var(--lb-ink); color: #fff; text-align: center; }
.lb-cta h2 {
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 0 0 36px;
}
.lb-footer { text-align: center; padding: 26px; font-size: 12px; color: var(--lb-muted); }

/* ---------- 移动端顶部导航（侧边栏隐藏后的替代入口） ---------- */
.lb-mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lb-border);
  background: var(--lb-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .lb-body { padding-left: 0; }
  .lb-sidebar { display: none; }
  .lb-mobile-nav { display: flex; }
  .lb-hero { padding: 50px 24px; }
  .lb-hero h1 { font-size: 54px; letter-spacing: -1px; }
  .lb-sec { padding: 50px 24px; }
  .lb-sec h2 { font-size: 34px; }
  .lb-feature-row { grid-template-columns: 1fr; }
  .lb-feature-row.rev { direction: ltr; }
  .lb-f-media { min-height: 220px; }
}

/* ---------- 定价页动态卡片兜底样式（主样式在 pricing.html 内联） ---------- */
.pr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 1100px) { .pr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pr-grid { grid-template-columns: 1fr; } }
.pr-card { position: relative; background: #fff; border: 1px solid var(--lb-border); border-radius: 20px; padding: 24px 18px 18px; display: flex; flex-direction: column; }
.pr-card.featured { border: 2px solid var(--lb-ink); box-shadow: 6px 6px 0 var(--lb-ink); }
.pr-card.dark { background: var(--lb-ink); color: #fff; border-color: var(--lb-ink); }

/* ---------- 工具类（账户/案例等页面复用） ---------- */
.hidden { display: none !important; }
.muted { color: var(--lb-muted); }
.table-wrap { overflow-x: auto; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; background: var(--lb-bg); border: 1px solid var(--lb-border);
  color: var(--lb-muted);
}
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.result-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--lb-border); }
.result-item img { width: 100%; display: block; }
.result-item .actions {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  display: flex; gap: 6px; opacity: 0; transition: opacity .2s;
}
.result-item:hover .actions { opacity: 1; }
.result-item .actions span { font-size: 11px; color: #fff; }
