/* ============================================================
   NPS 电子画册 — 翻页阅读器
   模型：每一「叶」(leaf) 有正反两面，绕书脊 rotateY 翻转
   桌面双页跨页 / 手机单页
   ============================================================ */
:root{
  --blue:#0b7fd8; --blue-d:#075fab; --blue-l:#1490e8;
  --blue-50:#eaf4fd; --orange:#f2a31c;
  --ink:#1a2430; --ink-2:#42546a; --ink-3:#7a8a9c;
  --line:#dfe7f0; --line-2:#eef3f9;
  --font:"PingFang SC","Microsoft YaHei","Hiragino Sans GB","Helvetica Neue",Arial,sans-serif;
  --bar:56px;
  /* 页面尺寸（比例同 A4） */
  --pw:210mm; --ph:297mm;
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  font-family:var(--font);color:var(--ink);background:#e8edf3;overflow:hidden;
  -webkit-text-size-adjust:100%;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%}
button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit}

/* ---------- 顶栏 ---------- */
.bar{
  position:fixed;top:0;left:0;right:0;height:var(--bar);z-index:50;
  display:flex;align-items:center;gap:10px;padding:0 14px;
  background:rgba(255,255,255,.95);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top);
  height:calc(var(--bar) + env(safe-area-inset-top));
}
.bar-logo{height:26px;width:auto;flex:0 0 auto;cursor:pointer}
.bar-title{
  font-size:14px;font-weight:700;color:var(--ink);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:38vw;
}
.bar-sub{font-size:11px;color:var(--ink-3);white-space:nowrap}
.bar-sp{flex:1 1 auto}
.ib{
  width:40px;height:40px;border-radius:9px;display:flex;align-items:center;
  justify-content:center;color:var(--ink-2);flex:0 0 auto;
}
.ib:hover{background:var(--blue-50);color:var(--blue-d)}
.ib svg{width:20px;height:20px;fill:currentColor}
.ib:disabled{opacity:.3;cursor:default}
.ib:disabled:hover{background:none;color:var(--ink-2)}
.pageno{
  font-size:13px;color:var(--ink-2);font-variant-numeric:tabular-nums;
  white-space:nowrap;flex:0 0 auto;
}
.pageno b{color:var(--ink);font-weight:700}

/* ---------- 舞台 ---------- */
.stage{
  position:fixed;inset:var(--bar) 0 0;display:flex;align-items:center;
  justify-content:center;padding:18px;overflow:hidden;
  padding-top:calc(var(--bar) + env(safe-area-inset-top));
}
.book{
  position:relative;display:flex;justify-content:center;
  flex:0 0 auto;            /* 绝不能被 flex 压扁，否则缩放基准就错了 */
  perspective:2800px;perspective-origin:50% 42%;
  filter:drop-shadow(0 18px 44px rgba(12,32,56,.22));
  touch-action:pan-y;
}
/* 单页模式：左右静态页隐藏，叶子是绝对定位的，book 本身没有尺寸 → 必须显式给 */
.book.single{width:var(--pw);height:var(--ph)}
.sheet{
  position:relative;background:#fff;overflow:hidden;
  width:var(--pw);height:var(--ph);flex:0 0 auto;
}
.sheet.left{border-radius:3px 0 0 3px;box-shadow:inset -14px 0 22px -18px rgba(0,0,0,.55)}
.sheet.right{border-radius:0 3px 3px 0;box-shadow:inset 14px 0 22px -18px rgba(0,0,0,.55)}
.sheet.blank{background:#f4f1ec;box-shadow:none}
.spine{
  position:absolute;top:0;bottom:0;left:50%;width:26px;transform:translateX(-50%);
  z-index:6;pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,.13) 42%,rgba(0,0,0,.18) 50%,rgba(0,0,0,.13) 58%,rgba(0,0,0,0));
}

/* 静态左右页 */
.static{position:relative;z-index:1}

/* 翻转的叶 */
.leaf{
  position:absolute;top:0;right:0;height:var(--ph);width:var(--pw);
  transform-origin:left center;transform-style:preserve-3d;
  z-index:5;will-change:transform;
}
.face{
  position:absolute;inset:0;background:#fff;overflow:hidden;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  border-radius:0 3px 3px 0;
}
.face.back{transform:rotateY(180deg);border-radius:3px 0 0 3px}
.leaf.flip{transition:transform .62s cubic-bezier(.42,.02,.32,1)}
.leaf.noanim{transition:none}

/* ---------- 页内版式 ---------- */
.pg{position:absolute;inset:0;display:flex;flex-direction:column;padding:16mm 15mm 13mm}
.pg-hd{
  display:flex;align-items:center;gap:8px;padding-bottom:3mm;
  border-bottom:1.5pt solid var(--blue);margin-bottom:5mm;flex:0 0 auto;
}
.pg-hd .n{
  font-size:15pt;font-weight:800;color:#fff;background:var(--blue);
  border-radius:1.8mm;padding:1.4mm 3.4mm;line-height:1;
}
.pg-hd b{font-size:12.5pt;color:var(--ink);letter-spacing:.4pt}
.pg-hd i{font-style:normal;font-size:7pt;color:var(--blue);letter-spacing:1.2pt;display:block;margin-top:.6mm}
.pg-bd{flex:1 1 auto;overflow:hidden}
.pg-ft{
  flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;
  border-top:.5pt solid var(--line);padding-top:2.5mm;margin-top:4mm;
  font-size:7pt;color:#9aa8b8;letter-spacing:.4pt;
}
.pg-ft b{color:var(--ink-2)}

/* 分组标题 */
.grp-h{
  display:inline-block;background:var(--blue-50);color:var(--blue-d);
  border-radius:1.4mm;padding:1.4mm 3.4mm;font-size:9.5pt;font-weight:700;
  margin:0 0 2.5mm;
}
table{width:100%;border-collapse:collapse;font-size:7.6pt;table-layout:fixed}
thead th{
  background:linear-gradient(100deg,var(--blue-d),var(--blue));color:#fff;
  padding:2mm 1.8mm;text-align:left;font-size:7.4pt;font-weight:600;letter-spacing:.3pt;
}
tbody td{padding:1.8mm;border-top:.5pt solid var(--line-2);vertical-align:top;line-height:1.55}
tbody tr:nth-child(even){background:#f8fbfe}
.c-name{font-weight:700}
.c-code{
  display:block;font-size:6.4pt;color:var(--blue-d);background:var(--blue-50);
  border-radius:.8mm;padding:.2mm 1.2mm;margin-top:.6mm;font-weight:600;width:fit-content;
}
.c-app li{list-style:none;position:relative;padding-left:2.6mm;margin-bottom:.4mm;color:#3d4d61}
.c-app li::before{content:"";position:absolute;left:0;top:1.7mm;width:1mm;height:1mm;border-radius:50%;background:var(--orange)}
.tag{display:inline-block;font-size:6.4pt;padding:.3mm 1.4mm;border-radius:.8mm;background:#e9f7ef;color:#177a4a;font-weight:600}
.tag.b{background:#eaf1fb;color:#1a4f9e}
.tag.plain{background:#f0f4f8;color:#7a8a9c}

/* 目录页 */
.toc-i{display:flex;align-items:center;gap:4mm;padding:3.2mm 0;border-bottom:.5pt dotted #d3deea}
.toc-i .no{font-size:14pt;font-weight:800;color:#c3dcf5;width:14mm;flex:0 0 auto;font-family:Georgia,serif}
.toc-i .tx{flex:1}
.toc-i .tx b{font-size:10.5pt;display:block}
.toc-i .tx i{font-style:normal;font-size:6.6pt;color:var(--blue);letter-spacing:1pt;font-family:Georgia,serif}
.toc-i .c{font-size:8pt;color:var(--ink-3);flex:0 0 auto}

/* 封面 / 封底 */
.full{
  position:absolute;inset:0;color:#fff;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;padding:0 22mm;
  background:
    radial-gradient(120mm 90mm at 82% 14%,rgba(20,144,232,.34),transparent 62%),
    radial-gradient(100mm 80mm at 8% 92%,rgba(242,163,28,.26),transparent 62%),
    linear-gradient(145deg,#042f5a 0%,#0a569b 42%,#0f7cc9 100%);
}
.logo-card{background:#fff;border-radius:4mm;padding:6mm 9mm;box-shadow:0 3mm 10mm rgba(0,0,0,.3);margin-bottom:11mm}
.logo-card img{width:58mm}
.badge{
  display:inline-block;border:.5pt solid rgba(255,255,255,.4);background:rgba(255,255,255,.14);
  border-radius:999px;padding:1.6mm 7mm;font-size:7.4pt;letter-spacing:2pt;
  font-family:Georgia,serif;
}
.full h1{font-size:30pt;letter-spacing:11pt;margin:6mm 0 4mm;text-indent:11pt;text-shadow:0 1mm 6mm rgba(0,0,0,.3)}
.full h2{font-size:10pt;letter-spacing:3.4pt;font-weight:500;color:rgba(255,255,255,.9);margin-bottom:9mm;text-indent:3.4pt}
.rule{width:20mm;height:1.1mm;background:var(--orange);border-radius:1mm;margin:0 auto 8mm}
.full p{font-size:8.6pt;line-height:1.95;color:rgba(255,255,255,.9)}
.tags{display:flex;flex-wrap:wrap;gap:2.4mm;justify-content:center;margin-top:9mm;max-width:130mm}
.tags span{background:rgba(255,255,255,.13);border:.5pt solid rgba(255,255,255,.28);border-radius:999px;padding:1.4mm 4mm;font-size:7pt}

.backc{align-items:flex-start;text-align:left;padding:0 26mm}
.backc h3{font-size:22pt;letter-spacing:5pt;margin:0 0 5mm;text-indent:5pt}
.ct{font-size:10pt;line-height:2.4;margin-bottom:9mm}
.ct .row{display:flex;gap:5mm}
.ct .lb{color:rgba(255,255,255,.62);font-size:8pt;letter-spacing:1pt;width:20mm;flex:0 0 auto}
.ct .vl{font-weight:600}

/* 公司简介页 */
.about p{font-size:9.4pt;line-height:1.95;color:#3d4d61;text-align:justify;margin:0 0 4mm}

/* ---------- 底部翻页条 ---------- */
.foot{
  position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;align-items:center;
  gap:12px;justify-content:center;padding:8px 14px;
  padding-bottom:calc(8px + env(safe-area-inset-bottom));
  background:linear-gradient(transparent,rgba(232,237,243,.92) 40%);
  pointer-events:none;
}
.foot>*{pointer-events:auto}
.fbtn{
  width:44px;height:44px;border-radius:50%;background:#fff;box-shadow:0 3px 12px rgba(12,32,56,.16);
  display:flex;align-items:center;justify-content:center;color:var(--blue-d);
}
.fbtn:hover{background:var(--blue);color:#fff}
.fbtn:disabled{opacity:.35;cursor:default}
.fbtn svg{width:20px;height:20px;fill:currentColor}
.slider{
  flex:1 1 auto;max-width:520px;display:flex;align-items:center;gap:9px;
  background:#fff;border-radius:999px;padding:5px 14px;box-shadow:0 3px 12px rgba(12,32,56,.13);
  height:44px;
}
.slider input{
  flex:1;-webkit-appearance:none;appearance:none;height:4px;border-radius:2px;
  background:var(--line);outline:none;margin:0;
}
.slider input::-webkit-slider-thumb{
  -webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--blue);
  box-shadow:0 1px 5px rgba(11,127,216,.5);cursor:pointer;
}
.slider input::-moz-range-thumb{
  width:18px;height:18px;border:0;border-radius:50%;background:var(--blue);cursor:pointer;
}
.slider .lb{font-size:11.5px;color:var(--ink-3);white-space:nowrap;font-variant-numeric:tabular-nums}

/* ---------- 缩略图抽屉 ---------- */
.thumbs{
  position:fixed;top:0;bottom:0;left:0;width:190px;z-index:60;
  background:#fff;border-right:1px solid var(--line);transform:translateX(-100%);
  transition:transform .28s cubic-bezier(.32,.72,0,1);overflow-y:auto;
  padding:calc(var(--bar) + env(safe-area-inset-top) + 10px) 10px 20px;
  box-shadow:6px 0 24px rgba(12,32,56,.1);
}
.thumbs.on{transform:none}
.th{display:block;width:100%;margin-bottom:9px;text-align:left}
.th .box{
  width:100%;aspect-ratio:210/297;background:#f4f6f9;border:1.5pt solid transparent;
  border-radius:2mm;overflow:hidden;position:relative;
}
.th .box::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  box-shadow:inset 0 0 0 .5pt rgba(0,0,0,.06);
}
.th.on .box{border-color:var(--blue)}
.th .cap{font-size:10.5px;color:var(--ink-3);margin-top:3px;text-align:center}
.th.on .cap{color:var(--blue);font-weight:700}
.thumbs::-webkit-scrollbar{width:5px}
.thumbs::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}

.mask{
  position:fixed;inset:0;background:rgba(12,32,56,.4);z-index:55;opacity:0;
  visibility:hidden;transition:.25s;
}
.mask.on{opacity:1;visibility:visible}

/* ---------- 全屏 ---------- */
.fs .stage{background:#0e1b2b;padding:10px}
.fs .bar,.fs .foot{opacity:0;pointer-events:none}
.fs .thumbs{top:0}

/* 提示 */
.hint{
  position:fixed;left:50%;transform:translateX(-50%);bottom:70px;z-index:70;
  background:rgba(20,34,52,.9);color:#fff;font-size:12.5px;padding:8px 16px;
  border-radius:999px;opacity:0;transition:opacity .3s;pointer-events:none;
  max-width:88vw;text-align:center;
}
.hint.on{opacity:1}

/* ---------- 手机 ---------- */
@media(max-width:900px){
  .thumbs{width:150px}
  .bar-title{max-width:34vw;font-size:13px}
  .bar-sub{display:none}
}
@media(max-width:760px){
  :root{--bar:52px}
  .stage{padding:8px}
  .bar{padding:0 10px;gap:6px}
  .ib{width:38px;height:38px}
  .book{filter:drop-shadow(0 8px 22px rgba(12,32,56,.28))}
  .spine{display:none}
  .foot{padding:6px 10px;gap:8px}
  .fbtn{width:46px;height:46px}
  .slider{height:46px;padding:5px 12px}
  .slider .lb{display:none}
  .pageno{font-size:12px;min-width:44px;text-align:center}
}
/* ---------- 手机提示条 ---------- */
.list-btn{text-decoration:none}
.mnote{
  display:none;position:fixed;left:0;right:0;top:calc(var(--bar) + env(safe-area-inset-top));
  z-index:49;background:#fff8e6;border-bottom:1px solid #f0d9a0;color:#7a5c14;
  font-size:12.5px;text-align:center;padding:8px 14px;line-height:1.5;
}
.mnote a{color:#0b7fd8;font-weight:700}
@media(max-width:760px){
  .mnote{display:block}
  .stage{padding-top:calc(var(--bar) + env(safe-area-inset-top) + 32px)}
  .bar-logo{display:none}          /* 手机上顶栏空间让给标题 */
  .bar-title{max-width:none}
}
