/* =====================================================================
   BMSNEXT 静态官网(多域名)——移植自 bmsnext-frontend「一本书的生意账」落地页
   (src/pages/landing/Landing.css 原样搬运 + 纯静态补充段)
   体验/登录/注册等一切平台入口统一跳转 https://www.bmsnext.com.cn
   ===================================================================== */

/* 钉钉进步体(展示字体,unicode-range 分片按需加载)——与 bmsnext 前端一致 */
@import '../assets/fonts/jinbuti/font.css';

/* Nunito(品牌字样,与系统侧栏 logo 同款;SIL OFL,latin 子集) */
@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

html, body { margin: 0; padding: 0; }

/* =====================================================================
   落地页「一本书的生意账」
   视觉语言从书业生长:墨蓝(书布面)/纸白(书页)/章朱(印章,呼应系统单据印章特性)。
   宋体展示字承担印刷气质;其余克制——白底、细行线、无渐变无光晕。
   ===================================================================== */

.lp {
  --ink: #16233b;        /* 墨蓝:书布面,深色带/主按钮 */
  --ink-2: #243756;
  --paper: #faf7f0;      /* 纸白:书页元素(开单纸/章节号) */
  --seal: #c0392b;       /* 章朱:印章/关键处,全页唯一强调色 */
  --text: #2a2a28;
  --text-2: #6f6e69;
  --line: #e4e1d8;       /* 账本行线(暖灰) */
  --spine-0: #16233b;
  --spine-1: #243a5e;
  --spine-2: #3a5a86;
  --spine-3: #5d7da4;
  --spine-4: #8aa3c0;
  --serif: 'DingTalk JinBuTi', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif;
  --sans: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;

  min-height: 100vh;
  background: #fbfaf7;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ===== 顶栏 ===== */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.lp-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  cursor: pointer;
  color: var(--ink);
}
.lp-logo-mark { font-size: 20px; color: var(--seal); align-self: center; }
.lp-logo-name {
  /* 与系统侧栏 logo 同款品牌字体(Nunito 800,latin 内置)——BMSNEXT 字样全站统一 */
  font-family: 'Nunito', 'Yuanti SC', 'PingFang SC', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.lp-logo-sub {
  font-size: 12px;
  color: var(--text-2);
  padding-left: 9px;
  border-left: 1px solid var(--line);
}
.lp-nav-actions { display: flex; align-items: center; gap: 14px; }

/* ===== 按钮(全页仅两种:墨蓝实底/细线描边) ===== */
.lp-btn-ink, .lp-btn-ghost, .lp-btn-text {
  font-family: var(--sans);
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.lp-btn-ink {
  background: var(--ink);
  color: #f5f3ec;
  border: 1px solid var(--ink);
  padding: 8px 20px;
  font-size: 14px;
}
.lp-btn-ink:hover { background: var(--ink-2); }
.lp-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #b9b5a8;
  padding: 8px 18px;
  font-size: 14px;
}
.lp-btn-ghost:hover { border-color: var(--ink); }
.lp-btn-text {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 14px;
  padding: 8px 4px;
}
.lp-btn-text:hover { color: var(--ink); }
.lp-btn-text:disabled { opacity: 0.5; cursor: default; }
.lp-btn-lg { padding: 12px 28px; font-size: 15px; }
.lp-btn-ink:focus-visible, .lp-btn-ghost:focus-visible, .lp-btn-text:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

/* ===== Hero ===== */
.lp-hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 28px 72px;
  display: flex;
  align-items: center;
  gap: 64px;
}
.lp-hero-copy { flex: 1 1 0; min-width: 0; }
.lp-hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 22px;
}
.lp-hero-sub {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 34em;
  margin: 0 0 34px;
}
.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-hero-note { margin: 16px 0 0; font-size: 12.5px; color: #a09d92; }

/* --- 书脊装置:一排竖立的书 + 搁板 + 红章 --- */
.lp-shelf { position: relative; flex: 0 0 auto; padding: 0 26px 0 0; }
.lp-shelf-books {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 260px;
  padding: 0 12px;
}
.lp-spine {
  display: block;
  border-radius: 2px 2px 0 0;
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.14); /* 书脊厚度的暗边 */
  position: relative;
}
.lp-spine::after { /* 书脊上的「烫字」细线 */
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  top: 14px;
  height: 1px;
  background: rgba(250, 247, 240, 0.4);
}
.lp-spine.tone0 { background: var(--spine-0); }
.lp-spine.tone1 { background: var(--spine-1); }
.lp-spine.tone2 { background: var(--spine-2); }
.lp-spine.tone3 { background: var(--spine-3); }
.lp-spine.tone4 { background: var(--spine-4); }
.lp-spine.red { background: var(--seal); }
.lp-shelf-board {
  height: 7px;
  background: var(--ink);
  border-radius: 2px;
  margin-top: -1px;
  box-shadow: 0 10px 24px rgba(22, 35, 59, 0.18);
}

/* 椭圆红章(与系统单据印章同语言:双线椭圆+章文居中) */
.lp-stamp {
  position: absolute;
  right: -6px;
  top: 2px;
  width: 148px;
  height: 92px;
  border: 2.5px solid var(--seal);
  border-radius: 50%;
  transform: rotate(-11deg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lp-stamp-inner {
  border: 1px solid rgba(192, 57, 43, 0.55);
  border-radius: 50%;
  width: 132px;
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--seal);
}
.lp-stamp-inner b {
  font-family: 'Nunito', 'Yuanti SC', 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.lp-stamp-inner i { font-style: normal; font-size: 10px; letter-spacing: 0.1em; }

/* ===== 账本带(墨蓝横带,宋体大数字) ===== */
.lp-ledger {
  background: var(--ink);
  color: #efede5;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 44px 28px;
}
.lp-ledger-item {
  min-width: 200px;
  text-align: center;
  padding: 6px 40px;
  border-left: 1px solid rgba(250, 247, 240, 0.16);
}
.lp-ledger-item:first-child { border-left: none; }
.lp-ledger-value {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  display: block;
}
.lp-ledger-value small { font-size: 18px; font-weight: 400; margin-left: 4px; opacity: 0.75; }
.lp-ledger-label { display: block; margin-top: 10px; font-size: 13px; opacity: 0.72; letter-spacing: 0.06em; }
.lp-ledger-item:first-child .lp-ledger-value { color: #e8c8c2; } /* 首数微暖,点睛 */

/* ===== 目录(章节式,替代卡片网格) ===== */
.lp-toc {
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 28px 24px;
  display: flex;
  gap: 72px;
  align-items: flex-start;
}
.lp-toc-side { flex: 0 0 200px; position: sticky; top: 110px; }
.lp-toc-heading {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: 0.22em;
}
.lp-toc-note { font-size: 13px; line-height: 2; color: var(--text-2); margin: 0; }

.lp-toc-list { flex: 1 1 0; min-width: 0; }
.lp-chapter {
  display: flex;
  gap: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.lp-chapter:first-child { border-top: none; padding-top: 6px; }
.lp-chapter-no {
  flex: 0 0 52px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--seal);
  line-height: 1.2;
  text-align: center;
  padding-top: 2px;
}
.lp-chapter-body { min-width: 0; }
.lp-chapter-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.lp-chapter-lede { font-size: 14.5px; line-height: 1.9; color: var(--text); margin: 0 0 10px; max-width: 40em; }
.lp-chapter-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.lp-chapter-points li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 14px;
  position: relative;
}
.lp-chapter-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1.5px;
  background: var(--seal);
}

/* ===== 开单纸(三步,账本行线) ===== */
.lp-bill { padding: 88px 28px 96px; }
.lp-bill-paper {
  max-width: 880px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: 52px 56px 48px;
  box-shadow: 0 18px 40px rgba(22, 35, 59, 0.08);
}
.lp-bill-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.lp-bill-head p { font-size: 14.5px; color: var(--text-2); margin: 0 0 8px; }
.lp-bill-steps { list-style: none; margin: 26px 0 30px; padding: 0; }
.lp-bill-steps li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 2px;
  border-bottom: 1px dashed #d8d3c4;
}
.lp-bill-steps li:last-child { border-bottom: none; }
.lp-bill-steps b {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--seal);
  font-weight: 600;
}
.lp-bill-step-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.lp-bill-step-note { font-size: 13.5px; color: var(--text-2); }
.lp-bill-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== 页脚 ===== */
.lp-footer {
  border-top: 1px solid var(--line);
  padding: 30px 28px 34px;
  text-align: center;
  color: var(--text-2);
}
.lp-footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 10px; }
.lp-footer-links a { color: var(--ink); cursor: pointer; font-size: 13.5px; }
.lp-footer-links a:hover { color: var(--seal); }
.lp-footer p { margin: 0; font-size: 12.5px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .lp-hero { flex-direction: column; gap: 56px; padding-top: 72px; }
  .lp-shelf { align-self: center; padding-right: 0; }
  .lp-toc { flex-direction: column; gap: 36px; }
  .lp-toc-side { position: static; flex: none; }
  .lp-ledger-item { min-width: 150px; padding: 6px 18px; }
}
@media (max-width: 640px) {
  .lp-hero { padding: 56px 20px 48px; }
  /* 书脊装置:transform 不改布局占位——容器定宽,书堆等比缩+负边距居中,搁板随容器 */
  .lp-hero { overflow: hidden; } /* 装置装饰性溢出对称裁切,根除横向滚动 */
  .lp-shelf { width: min(340px, 86vw); margin: 0 auto; }
  .lp-shelf-books { transform: scale(0.5); transform-origin: bottom center; margin: 0 -245px -120px; }
  .lp-shelf-board { margin-top: 0; }
  .lp-stamp { right: 4px; top: 10px; transform: rotate(-11deg) scale(0.78); }
  .lp-hero-actions .lp-btn-lg { width: 100%; }
  .lp-ledger { padding: 32px 16px; }
  .lp-ledger-item { min-width: 40%; border-left: none; padding: 10px 0; }
  .lp-ledger-value { font-size: 40px; }
  .lp-bill-paper { padding: 36px 24px; }
  .lp-chapter { gap: 16px; }
  .lp-chapter-no { flex-basis: 40px; font-size: 20px; }
  .lp-nav-inner { padding: 12px 20px; }
  .lp-logo-sub { display: none; }
}

/* 动效偏好:整体不用入场动画;仅保留交互过渡(按钮/链接),系统级降级自动生效 */
@media (prefers-reduced-motion: reduce) {
  .lp-btn-ink, .lp-btn-ghost, .lp-btn-text { transition: none; }
}

/* ===== 纯静态版补充 ===== */

/* 按钮语义在静态版是 <a>:继承按钮样式并去掉链接下划线 */
a.lp-btn-ink, a.lp-btn-ghost, a.lp-btn-text {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
a.lp-btn-ink.lp-btn-lg, a.lp-btn-ghost.lp-btn-lg { line-height: 1.2; }
a.lp-logo { text-decoration: none; }

/* 合规页脚(对应 React 版 ComplianceFooter):ICP + 公安备案徽标 */
.lp-compliance {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 12px;
}
.lp-compliance a {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lp-compliance img { display: block; }
