/* ============================================================
 * Recallish 落地页 / 法律页面专用样式
 * 独立于 style.css（应用样式假设了 100vh 无滚动布局）
 * ============================================================ */

:root {
  --bg: #f5f6fa;
  --panel: #ffffff;
  --border: #e4e7ee;
  --text: #23272f;
  --muted: #8a92a3;
  --primary: #4f6ef7;
  --primary-dark: #3b57d8;
  --green: #2fb380;
  --shadow: 0 2px 10px rgba(30, 40, 70, 0.07);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.ld-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.ld-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.ld-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.ld-brand:hover { text-decoration: none; }
.ld-brand .logo-icon { font-size: 23px; }
.ld-nav-right { display: flex; align-items: center; gap: 10px; }
.ld-lang-btn {
  border: none; background: none; cursor: pointer;
  font-size: 13px; color: var(--muted); padding: 7px 10px; border-radius: 8px;
}
.ld-lang-btn:hover { background: #f0f2f8; color: var(--text); }

/* ---------- 按钮 ---------- */
.btn-ld {
  display: inline-block; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: inherit;
  padding: 12px 26px; border-radius: 10px;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn-ld:hover { text-decoration: none; transform: translateY(-1px); }
.btn-ld.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 6px 18px rgba(79, 110, 247, 0.32);
}
.btn-ld.primary:hover { box-shadow: 0 8px 22px rgba(79, 110, 247, 0.42); }
.btn-ld.ghost {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ld.ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ld.small { padding: 8px 16px; font-size: 13.5px; }
.btn-ld.big { padding: 15px 34px; font-size: 16.5px; }

/* ---------- Hero ---------- */
.ld-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(720px 340px at 82% -10%, rgba(79, 110, 247, 0.13), transparent 65%),
    radial-gradient(560px 300px at 8% 12%, rgba(47, 179, 128, 0.10), transparent 60%);
}
.ld-hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 56px; align-items: center;
}
.ld-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: #eaeeff; border-radius: 20px; padding: 6px 15px;
  margin-bottom: 22px;
}
.ld-hero h1 {
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.18; letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.ld-hero h1 .hl { color: var(--primary); }
.ld-hero-sub {
  font-size: 17.5px; color: #5a6274; max-width: 520px;
  margin-bottom: 30px;
}
.ld-hero-ctas { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 14px; }
.ld-hero-hint { font-size: 13.5px; color: var(--muted); }

/* ---------- 试玩卡片 ---------- */
.ld-demo {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px;
  box-shadow: 0 18px 44px rgba(30, 40, 70, 0.13);
}
.ld-demo-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 13.5px; color: var(--muted);
}
.ld-demo-count { font-variant-numeric: tabular-nums; }
.ld-card {
  position: relative; height: 240px;
  cursor: pointer; user-select: none;
  perspective: 1000px;
  margin-bottom: 18px;
}
.ld-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
  transform-style: preserve-3d;
}
.ld-card-inner.flipped { transform: rotateY(180deg); }
.ld-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; border-radius: 14px; padding: 20px;
  backface-visibility: hidden;
}
.ld-face.front {
  background: linear-gradient(160deg, #f7f8ff, #eef1fd);
  border: 1px solid #dfe4f5;
}
.ld-face.back {
  background: linear-gradient(160deg, #eefaf4, #e3f6ec);
  border: 1px solid #cdeeda;
  transform: rotateY(180deg);
}
.ld-face .word { font-size: 34px; font-weight: 700; letter-spacing: .3px; }
.ld-face .word.long { font-size: 21px; font-weight: 600; line-height: 1.5; letter-spacing: 0; max-width: 100%; }
.ld-face .phon { font-size: 15px; color: var(--muted); font-family: Georgia, serif; }
.ld-face .phon.cat {
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: #3b57d8; background: #e3e8fb; border-radius: 999px; padding: 3px 12px;
}
.ld-face .mean { font-size: 19px; color: #23674f; text-align: center; }
.ld-face .mean.long { font-size: 15.5px; line-height: 1.6; max-width: 100%; }
.ld-face .tap {
  position: absolute; bottom: 14px; font-size: 12.5px; color: var(--muted);
}
.ld-demo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ld-demo-btns .btn-ld { flex: 1; min-width: 90px; }
.grade-mini {
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  padding: 10px 0; border-radius: 9px; font-size: 14px;
  transition: transform .1s, filter .1s;
}
.grade-mini:hover { transform: translateY(-1px); filter: brightness(0.96); }
.grade-mini.again { background: #fdeaea; color: #e5484d; }
.grade-mini.hard  { background: #fdf3e2; color: #d07c10; }
.grade-mini.good  { background: #e5f7f0; color: #1f8f63; }
.grade-mini.easy  { background: #e8f2fd; color: #2578c4; }
.ld-demo-show {
  width: 100%; padding: 11px; border-radius: 9px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 14.5px; font-weight: 600; font-family: inherit;
}
.ld-demo-done { text-align: center; }
.ld-demo-done p { font-size: 14.5px; color: #39415a; margin-bottom: 14px; }

/* ---------- 通用区块 ---------- */
.ld-section { padding: 68px 0; }
.ld-section.alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ld-sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.ld-sec-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.25; letter-spacing: -0.3px; margin-bottom: 14px;
}
.ld-sec-head p { font-size: 16px; color: #5a6274; }

/* 痛点三卡 */
.ld-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ld-card-box {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ld-card-box:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 40, 70, 0.10); }
.ld-card-box .icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 14px;
}
.ld-card-box h3 { font-size: 17px; margin-bottom: 8px; }
.ld-card-box p { font-size: 14.5px; color: #5a6274; }

/* 功能网格 */
.ld-grid-f { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ld-feat {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
}
.ld-feat .icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ld-feat h3 { font-size: 15.5px; margin-bottom: 6px; }
.ld-feat p { font-size: 13.8px; color: #5a6274; }

/* 遗忘曲线图 */
.ld-curve-wrap {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px 26px 18px;
  max-width: 760px; margin: 0 auto;
}
.ld-curve-svg { width: 100%; height: auto; display: block; }

/* 社区分享 */
.ld-comm-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.ld-comm-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.ld-comm-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: #39415a; }
.ld-comm-list .ck { color: var(--green); font-weight: 700; }
.ld-comm-visual {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow);
}
.ld-comm-visual .row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px dashed var(--border); }
.ld-comm-visual .row:last-child { border-bottom: none; }
.ld-comm-visual .dname { font-weight: 600; font-size: 14.5px; }
.ld-comm-visual .dcards { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* 最终 CTA */
.ld-final {
  text-align: center; padding: 84px 0 72px;
  background:
    radial-gradient(620px 300px at 50% 0%, rgba(79, 110, 247, 0.14), transparent 70%);
}
.ld-final h2 { font-size: clamp(27px, 3.6vw, 36px); margin-bottom: 14px; }
.ld-final p { color: #5a6274; font-size: 16.5px; max-width: 480px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.ld-footer {
  border-top: 1px solid var(--border); background: var(--panel);
  padding: 34px 0 38px;
}
.ld-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.ld-footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.ld-footer-links a { color: #5a6274; }
.ld-footer-links a:hover { color: var(--primary); }
.ld-footer-tag { font-size: 13px; color: var(--muted); margin-top: 14px; }
.ld-footer-tag .copr { white-space: nowrap; }

/* ---------- 法律页面 ---------- */
.legal-body { padding: 52px 0 80px; }
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.legal-back { display: inline-block; margin-bottom: 26px; font-size: 14px; color: var(--muted); }
.legal-wrap h1 { font-size: 30px; margin-bottom: 8px; }
.legal-updated { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.legal-intro { font-size: 15.5px; color: #5a6274; margin-bottom: 30px; }
.legal-sec { margin-bottom: 26px; }
.legal-sec h2 { font-size: 18px; margin-bottom: 10px; }
.legal-sec .legal-content p { font-size: 14.8px; color: #39415a; margin-bottom: 9px; }
.legal-sec .legal-content b { color: var(--text); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .ld-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ld-grid-3, .ld-grid-f { grid-template-columns: 1fr 1fr; }
  .ld-comm-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .ld-hero { padding: 48px 0 44px; }
  .ld-grid-3, .ld-grid-f { grid-template-columns: 1fr; }
  .ld-hero-ctas .btn-ld { flex: 1; text-align: center; }
  .ld-nav .btn-ld.small span.txt { display: none; }
  .ld-card { height: 210px; }
}
