/* ==========================================================
   慢慢抠图网 · 长尾落地页共享样式（浅色主题，与站点同主色）
   位置：public/landing/landing.css —— 随 build 拷入 dist/landing/
   说明：纯 CSS、零依赖。兼容 prefers-color-scheme: light 默认。
   ========================================================== */
:root {
  --brand: #0062ff;
  --brand-2: #38bdf8;
  --brand-ink: #0b3fa8;
  --grad: linear-gradient(135deg, #0062ff 0%, #2f7bff 45%, #38bdf8 100%);
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --dim: #64748b;
  --faint: #94a3b8;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -22px rgba(15, 23, 42, 0.22);
  --maxw: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 10% -8%, rgba(0, 98, 255, 0.10), transparent 60%),
    radial-gradient(760px 460px at 100% 0%, rgba(56, 189, 248, 0.12), transparent 55%);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
.lp-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.lp-nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.lp-brand:hover { text-decoration: none; }
.lp-brand img { height: 32px; width: auto; }
.lp-nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.lp-nav-links a {
  font-size: 13.5px; color: var(--dim); padding: 6px 11px; border-radius: 9px; white-space: nowrap;
}
.lp-nav-links a:hover { background: rgba(0, 98, 255, 0.07); color: var(--brand); text-decoration: none; }
.lp-nav-links a.is-active { color: var(--brand); background: rgba(0, 98, 255, 0.10); font-weight: 600; }

/* ---------------- 面包屑 ---------------- */
.lp-crumb { font-size: 12.5px; color: var(--faint); padding-top: 18px; }
.lp-crumb a { color: var(--dim); }
.lp-crumb span { margin: 0 6px; }

/* ---------------- Hero ---------------- */
.lp-hero { padding: 26px 0 8px; }
.lp-hero h1 {
  font-size: clamp(25px, 4.4vw, 40px);
  line-height: 1.28; letter-spacing: -0.02em; font-weight: 800;
}
.lp-hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-hero .lead {
  margin-top: 14px; font-size: clamp(15px, 2vw, 17px); color: var(--dim); max-width: 780px;
}
.lp-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.lp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.lp-btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(0, 98, 255, 0.75); }
.lp-btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.lp-note { font-size: 12.5px; color: var(--faint); margin-top: 12px; }

/* ---------------- 区块 ---------------- */
.lp-section { padding: 34px 0 0; }
.lp-section > .wrap > h2 {
  font-size: clamp(19px, 2.6vw, 25px); font-weight: 750; letter-spacing: -0.01em; margin-bottom: 6px;
}
.lp-section > .wrap > h2::after {
  content: ""; display: block; width: 46px; height: 3px; border-radius: 2px;
  background: var(--grad); margin-top: 10px;
}
.lp-section p { color: #334155; margin-top: 14px; }
.lp-section p + p { margin-top: 10px; }
.lp-section ul, .lp-section ol { margin: 14px 0 0 22px; color: #334155; }
.lp-section li { margin-top: 7px; }
.lp-section strong { color: var(--text); }

/* ---------------- 卡片网格 ---------------- */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 14px; margin-top: 18px; }
.lp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 17px 18px; box-shadow: 0 4px 16px -12px rgba(15, 23, 42, 0.3);
}
.lp-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.lp-card p { font-size: 13.5px; color: var(--dim); margin: 0; }
.lp-card .ic {
  width: 30px; height: 30px; border-radius: 9px; background: rgba(0, 98, 255, 0.10);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 15px; margin-bottom: 10px;
}

/* ---------------- 步骤 ---------------- */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 14px; margin-top: 18px; counter-reset: s; }
.lp-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 17px 18px; position: relative;
}
.lp-step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 15px; right: 16px;
  font-size: 26px; font-weight: 800; color: rgba(0, 98, 255, 0.13); line-height: 1;
}
.lp-step h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.lp-step p { font-size: 13.5px; color: var(--dim); margin: 0; }

/* ---------------- 示例对比 ---------------- */
.lp-demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.lp-demo figure {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.lp-demo .ph { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; }
.lp-demo .ph.checker {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e8eef6 25%, transparent 25%, transparent 75%, #e8eef6 75%),
    linear-gradient(45deg, #e8eef6 25%, transparent 25%, transparent 75%, #e8eef6 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}
.lp-demo img { width: 100%; height: 100%; object-fit: contain; }
.lp-demo figcaption {
  padding: 10px 14px; font-size: 13px; color: var(--dim); border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.lp-tag {
  font-size: 11.5px; padding: 2px 8px; border-radius: 999px; font-weight: 600;
  background: rgba(15, 23, 42, 0.06); color: var(--dim);
}
.lp-tag.on { background: rgba(0, 98, 255, 0.12); color: var(--brand); }

/* ---------------- 表格 ---------------- */
.lp-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px -12px rgba(15,23,42,.3); }
.lp-table th, .lp-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.lp-table th { background: var(--surface-soft); font-weight: 700; font-size: 13.5px; }
.lp-table td { color: #334155; }
.lp-table tr:last-child td { border-bottom: 0; }

/* ---------------- FAQ ---------------- */
.lp-faq { margin-top: 18px; display: grid; gap: 10px; }
.lp-faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 16px;
}
.lp-faq summary {
  cursor: pointer; list-style: none; padding: 14px 0; font-weight: 650; font-size: 14.5px;
  display: flex; align-items: center; gap: 10px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "＋"; margin-left: auto; color: var(--brand); font-weight: 700; }
.lp-faq details[open] summary::after { content: "－"; }
.lp-faq details p { font-size: 14px; color: var(--dim); padding: 0 0 14px; margin: 0; }

/* ---------------- 相关工具 / CTA ---------------- */
.lp-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lp-links a {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 15px; font-size: 13.5px; color: var(--dim);
}
.lp-links a:hover { border-color: rgba(0, 98, 255, 0.4); color: var(--brand); text-decoration: none; }

.lp-cta {
  margin-top: 34px; border-radius: var(--radius); padding: 26px 24px; color: #fff;
  background: var(--grad); box-shadow: 0 22px 48px -22px rgba(0, 98, 255, 0.7);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.lp-cta h2 { font-size: clamp(17px, 2.4vw, 22px); font-weight: 800; margin: 0; }
.lp-cta p { margin: 6px 0 0; font-size: 14px; opacity: 0.92; }
.lp-cta .lp-btn { background: #fff; color: var(--brand-ink); margin-left: auto; }
.lp-cta .lp-btn:hover { text-decoration: none; }

/* ---------------- 页脚 ---------------- */
.lp-footer {
  margin-top: 40px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.7);
  padding: 22px 0 30px; font-size: 12.5px; color: var(--faint); text-align: center;
}
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-bottom: 12px; }
.lp-footer nav a { color: var(--dim); }
.lp-footer .icp { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; }

@media (max-width: 640px) {
  .lp-nav-links { margin-left: 0; width: 100%; }
  .lp-cta .lp-btn { margin-left: 0; width: 100%; justify-content: center; }
  .lp-table { font-size: 13px; }
}
