/* ============================================================
 * 乐读派 LeSingle 官网 · 设计系统
 * 纸感暖底 + 绘本四色（日暖黄/嫩芽绿/晴空蓝/珊瑚橙）
 * ============================================================ */
:root {
  --paper: #FFFCF4;
  --paper-2: #FFF6E4;
  --card: #FFFFFF;
  --ink: #2E2A3B;
  --ink-soft: #5D5870;
  --ink-faint: #928CA3;
  --line: #EEE5D2;

  --sun: #F6B93B;      /* 日暖黄 */
  --sun-deep: #DE9B12;
  --leaf: #3E9B6E;     /* 嫩芽绿 */
  --leaf-deep: #2E7D57;
  --sky: #2AA8A0;      /* 晴空蓝 */
  --sky-deep: #1F827C;
  --coral: #F0764B;    /* 珊瑚橙 */
  --coral-deep: #D65A2F;
  --plum: #7C5CD6;

  --fd: "ZCOOL KuaiLe", "Yuanti SC", "YouYuan", "PingFang SC", "Microsoft YaHei", sans-serif;
  --fb: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --sh-soft: 0 8px 24px -12px rgba(78, 62, 20, .18);
  --sh-float: 0 18px 40px -18px rgba(78, 62, 20, .28);
  --sh-ink: 4px 4px 0 var(--ink);
  --r-card: 20px;
  --r-pill: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 15.5px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--sun); color: var(--ink); }

/* ---------- 纸感背景 + 环境元素 ---------- */
.bg-dots {
  background-image: radial-gradient(rgba(93, 74, 24, .06) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}
.amb { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.amb i { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; animation: drift 14s ease-in-out infinite alternate; }
.amb .a1 { width: 26px; height: 26px; background: var(--sun); top: 12%; left: 4%; opacity: .35; }
.amb .a2 { width: 14px; height: 14px; background: var(--leaf); top: 34%; right: 6%; animation-delay: -4s; }
.amb .a3 { width: 20px; height: 20px; border: 4px solid var(--sky); background: none; bottom: 22%; left: 7%; animation-delay: -8s; }
.amb .a4 { width: 10px; height: 10px; background: var(--coral); bottom: 12%; right: 10%; animation-delay: -2s; }
.amb .a5 {
  width: 200px; height: 200px; top: -70px; right: -70px; background: none;
  border: 18px solid var(--paper-2); animation: none; opacity: 1;
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(16px, 26px) rotate(18deg); }
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- 通用容器 / 排版 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.sec { padding: 88px 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--sky-deep); text-transform: uppercase;
}
.kicker::before {
  content: ""; width: 26px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--sun), var(--coral));
}
.sec-title {
  font-family: var(--fd); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; margin: 12px 0 10px;
}
.sec-sub { color: var(--ink-soft); max-width: 560px; }
.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-sub { margin: 0 auto; }

/* 马克笔高亮 */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 4px;
  height: .44em; background: var(--sun); opacity: .55; z-index: -1;
  border-radius: 4px; transform: rotate(-1.2deg);
}
.hl.green::after { background: #8FD9B4; }
.hl.blue::after { background: #9FE0DB; }
.hl.yellow::after { background: #FBE08A; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; border: 2px solid var(--ink);
  background: var(--card); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sun { background: var(--sun); }
.btn-ink { background: var(--ink); color: #FFF8E8; box-shadow: 3px 3px 0 rgba(46,42,59,.25); }
.btn-ink:hover { box-shadow: 5px 5px 0 rgba(46,42,59,.25); }
.btn-ghost { background: rgba(255,255,255,.7); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-deep); }
.btn-sm { padding: 8px 18px; font-size: 13.5px; box-shadow: 2px 2px 0 var(--ink); }

/* ---------- 顶部导航 ---------- */
.topbar {
  background: var(--ink); color: #EFE9DA; font-size: 12.5px;
  padding: 7px 0; letter-spacing: .04em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar b { color: var(--sun); font-weight: 700; }
.topbar .tb-r { display: flex; gap: 18px; }
.topbar a { opacity: .85; } .topbar a:hover { opacity: 1; color: var(--sun); }

header.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 252, 244, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
header.nav.scrolled { box-shadow: 0 10px 30px -18px rgba(78,62,20,.35); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 44px; width: auto; max-width: 200px; display: block; border-radius: 12px; flex: none; }
.ft-brand .logo-img { height: 48px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--ink); color: var(--sun);
  display: grid; place-items: center;
  font-family: var(--fd); font-size: 24px;
  transform: rotate(-4deg); border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--sun);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .logo-mark { transform: rotate(4deg) scale(1.06); }
.logo-txt .cn { font-family: var(--fd); font-size: 23px; line-height: 1.1; letter-spacing: .06em; }
.logo-txt .en { font-size: 10.5px; letter-spacing: .34em; color: var(--ink-faint); font-weight: 700; }
nav.menu { display: flex; gap: 4px; }
nav.menu a {
  padding: 10px 16px; font-weight: 600; font-size: 15.5px; color: var(--ink-soft);
  border-radius: var(--r-pill); position: relative; transition: color .2s, background .2s;
}
nav.menu a:hover { color: var(--ink); background: var(--paper-2); }
nav.menu a.on { color: var(--ink); }
nav.menu a.on::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 5px;
  background: var(--sun); border-radius: 4px; transform: rotate(-1deg);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 2px solid var(--ink); border-radius: 10px; width: 42px; height: 40px; font-size: 18px; }

/* 移动端菜单 */
.m-menu { display: none; flex-direction: column; padding: 10px 24px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.m-menu a { padding: 12px 6px; font-weight: 600; border-bottom: 1px dashed var(--line); }
.m-menu.open { display: flex; }

/* ---------- 页脚 ---------- */
footer { background: var(--ink); color: #CFC8B8; margin-top: 40px; border-top: 3px solid var(--sun); }

/* 上方：品牌 + 二维码 */
.ft-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding: 56px 0 40px; flex-wrap: wrap; }
.ft-brand { max-width: 440px; }
.ft-brand .logo-mark { box-shadow: 2px 2px 0 var(--leaf); }
.ft-brand p { margin-top: 16px; font-size: 14px; line-height: 1.9; max-width: 360px; color: #CFC8B8; }
.ft-certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ft-certs span {
  font-size: 11.5px; padding: 4px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(246,185,59,.5); color: var(--sun); letter-spacing: .06em;
}
.ft-qr { flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ft-qr img { width: 116px; height: 116px; border-radius: 12px; border: 3px solid #FFF8E8; background: #fff; box-shadow: 3px 3px 0 rgba(0,0,0,.28); display: block; }
.ft-qr span { font-size: 12px; color: #CFC8B8; letter-spacing: .04em; max-width: 150px; line-height: 1.6; }

/* 下方：三栏合并的横向导航条 */
.ft-nav { display: flex; gap: 64px; flex-wrap: wrap; padding: 32px 0; border-top: 1px solid rgba(255,248,232,.12); }
.ft-nav-col { min-width: 150px; }
.ft-nav-col h5 { color: #FFF8E8; font-size: 15px; margin-bottom: 16px; letter-spacing: .1em; }
.ft-nav-col ul { list-style: none; }
.ft-nav-col li { margin-bottom: 11px; font-size: 14px; }
.ft-nav-col a { opacity: .78; transition: .2s; }
.ft-nav-col a:hover { opacity: 1; color: var(--sun); padding-left: 4px; }
.ft-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.ft-contact i { font-style: normal; color: var(--sun); }

.ft-bar {
  border-top: 1px solid rgba(255,248,232,.12); padding: 18px 0; font-size: 12.5px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: .66;
}
.ft-bar a { color: inherit; transition: .2s; }
.ft-bar a:hover { color: var(--sun); opacity: 1; }
.ft-beian { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.ft-police { display: inline-flex; align-items: center; gap: 4px; }
.ft-police-ic { width: 14px; height: 14px; vertical-align: middle; }

/* 友情链接区 */
.ft-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid rgba(255,248,232,.12); font-size: 13px; }
.ft-links-t { color: var(--sun); font-weight: 700; letter-spacing: .12em; flex-shrink: 0; }
.ft-links-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ft-links-list a { opacity: .72; transition: .2s; }
.ft-links-list a:hover { opacity: 1; color: var(--sun); }
.ft-links-list i { color: rgba(255,248,232,.3); font-style: normal; }

/* 平台登录弹窗 */
.pf-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.pf-modal.open { display: block; }
.pf-mask { position: absolute; inset: 0; background: rgba(28,24,38,.58); backdrop-filter: blur(2px); }
.pf-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(640px, 92vw); max-height: 84vh; overflow: auto; background: #FFFDF7; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.35); border: 1px solid rgba(46,42,59,.08); }
.pf-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid rgba(46,42,59,.1); }
.pf-head span { font-size: 17px; font-weight: 800; color: var(--ink); }
.pf-close { width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(46,42,59,.06); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.pf-close:hover { background: rgba(240,118,75,.18); }
.pf-body { padding: 20px 22px 24px; }
.pf-empty { color: #998E7A; text-align: center; padding: 30px 0; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 13px; background: #fff; border: 1px solid rgba(46,42,59,.12); text-decoration: none; transition: .18s; }
.pf-card:hover { border-color: var(--leaf); box-shadow: 0 8px 22px rgba(42,168,160,.18); transform: translateY(-2px); }
.pf-ico { font-size: 20px; }
.pf-cover { display: block; width: 100%; height: 84px; border-radius: 9px; overflow: hidden; background: #f3efe6; }
.pf-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.pf-url { font-size: 11.5px; color: #998E7A; word-break: break-all; }
.pf-pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 22px 18px; border-top: 1px solid rgba(46,42,59,.08); }
.pf-pg-btn { min-width: 32px; height: 32px; border: 1px solid rgba(46,42,59,.15); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .15s; }
.pf-pg-btn:hover { border-color: var(--leaf); color: var(--leaf); }
.pf-pg-btn.active { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.pf-pg-btn.disabled { opacity: .4; pointer-events: none; }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } }

/* ---------- 卡片基类 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--sh-soft);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-float); }

.chip {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px;
  border-radius: var(--r-pill); letter-spacing: .05em;
}

/* ---------- 产品插画占位（内嵌 SVG）---------- */
.prod-art {
  aspect-ratio: 4 / 3; border-radius: 14px 14px 0 0; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.prod-art svg { width: 62%; height: 62%; filter: drop-shadow(0 10px 14px rgba(46,42,59,.16)); }
.art-bg-1 { background: linear-gradient(145deg, #FFE9B8, #FFF6E0); }
.art-bg-2 { background: linear-gradient(145deg, #D8F0E2, #EFFBF3); }
.art-bg-3 { background: linear-gradient(145deg, #D3EEEC, #EBFAF8); }
.art-bg-4 { background: linear-gradient(145deg, #FDDCCB, #FDEFE6); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- 数字计数 ---------- */
.stats-band {
  background: var(--ink); color: #FFF8E8; border-radius: 26px;
  padding: 40px 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  box-shadow: var(--sh-float); position: relative; overflow: hidden;
}
.stats-band::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  border: 26px solid rgba(246,185,59,.14); top: -110px; right: -60px;
}
.stat .num { font-family: var(--fd); font-size: clamp(34px, 4vw, 50px); color: var(--sun); line-height: 1; }
.stat .num small { font-size: .45em; color: #CFC8B8; margin-left: 4px; font-family: var(--fb); }
.stat .lab { margin-top: 10px; font-size: 13.5px; color: #CFC8B8; letter-spacing: .08em; }

/* ---------- 空态 ---------- */
.empty {
  text-align: center; padding: 70px 20px; color: var(--ink-faint);
  border: 2px dashed var(--line); border-radius: var(--r-card); background: rgba(255,255,255,.6);
}
.empty .em { font-size: 40px; display: block; margin-bottom: 10px; }

/* ---------- 分页 ---------- */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-top: 44px;
}
.pg-btn {
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 12px; font-weight: 800; font-size: 14px;
  box-shadow: 2px 2px 0 var(--ink); transition: .18s; font-family: inherit;
}
.pg-btn:hover:not(:disabled) { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.pg-btn.on { background: var(--sun); box-shadow: 2px 2px 0 var(--sun-deep); }
.pg-btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.pg-dots { color: var(--ink-faint); padding: 0 2px; font-weight: 800; }
.pg-info { font-size: 12.5px; color: var(--ink-faint); margin-left: 10px; font-weight: 600; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--line); background: #FFFDF7; font-family: inherit; font-size: 14.5px;
  color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(246,185,59,.2);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 80px);
  background: var(--ink); color: #FFF8E8; padding: 12px 26px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; z-index: 200; opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  box-shadow: var(--sh-float); pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast.ok { background: var(--leaf); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  nav.menu, .nav-cta .btn { display: none; }
  .menu-btn { display: block; }
  .ft-top { flex-direction: column; }
  .ft-brand { max-width: none; }
  .ft-nav { gap: 40px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 30px; }
  .topbar .tb-r { display: none; }
  .sec { padding: 64px 0; }
  .m-menu a { padding: 14px 6px; font-size: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .ft-nav { flex-direction: column; gap: 26px; }
  .ft-nav-col { min-width: 0; }
  .ft-qr { align-self: flex-start; }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 24px 20px; gap: 16px; }
  .stat .num { font-size: 30px; }
  .sec { padding: 48px 0; }
  .sec-title { font-size: clamp(24px, 6.5vw, 32px); }
  .btn { padding: 13px 22px; font-size: 14.5px; }
  .btn-sm { padding: 10px 18px; }
  .nav .wrap { height: 62px; }
  .logo-mark { width: 40px; height: 40px; font-size: 20px; }
  .logo-txt .cn { font-size: 20px; }
  .m-menu a { padding: 15px 6px; font-size: 16.5px; }
  .topbar { font-size: 11.5px; }
  .topbar .wrap { justify-content: center; }
  .card:hover { transform: none; }
  .field input, .field textarea, .field select { font-size: 16px; padding: 14px; }
  .empty { padding: 50px 16px; }
}
/* 超小屏（<380px）*/
@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  .stats-band { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px !important; }
}

/* ============================================================
   富文本正文（CMS 真实内容）图片与排版自适应
   ============================================================ */
.a-body img, .pd-desc img { max-width: 100% !important; height: auto !important; border-radius: 12px; display: block; margin: 14px auto; }
.a-body section, .pd-desc section { max-width: 100% !important; }
.a-body p img, .pd-desc p img { margin: 14px auto; }
.a-body iframe, .pd-desc iframe { max-width: 100%; }
