/* ============================================================
   Product Catalog Viewer  /  产品目录查看器样式
   艺术动画风格：奶油纸感 · 圆润字体 · 手绘装饰 · 3D 书页
   ============================================================ */

:root {
  /* 万圣节 × 毕加索主题：深森绿主导，南瓜橙撞色，赭金点缀，骨白旧纸 */
  --c-primary: #1f5130;   /* 深森绿 */
  --c-accent: #e8732c;    /* 南瓜橙 */
  --c-gold: #d09a1e;      /* 赭金（南瓜灯光） */
  --c-paper: #f3f0df;     /* 骨白旧纸 */
  --c-ink: #22271d;       /* 墨绿黑 */
}

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

html, body { height: 100%; }

body {
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #0b1710;
  overflow: hidden;
  color: #fff;
}

/* 背景氛围光斑：南瓜灯橙光 · 翡翠鬼火 · 一抹毒紫 · 深夜墨绿 */
.app-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(60vmax 60vmax at 12% -10%, rgba(232, 115, 44, .26), transparent 60%),
    radial-gradient(50vmax 50vmax at 100% 110%, rgba(74, 196, 112, .22), transparent 60%),
    radial-gradient(40vmax 40vmax at 90% 0%, rgba(138, 68, 178, .16), transparent 60%),
    linear-gradient(160deg, #14331f 0%, #0c1d12 55%, #060d08 100%);
}

/* ---------------- 舞台 ---------------- */
.stage-wrap {
  position: relative; z-index: 10;
  height: 100%; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 20px 86px;
}
#stage {
  position: relative;
  height: 100%;
  aspect-ratio: 1000 / 700;
  max-width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .5));
}
#stage.is-portrait { aspect-ratio: 700 / 1000; }

/* 书下投影托板 */
.stage-shadow {
  position: absolute; left: 6%; right: 6%; bottom: -18px; height: 34px;
  background: radial-gradient(50% 100% at 50% 0, rgba(0,0,0,.55), transparent 70%);
  filter: blur(6px); pointer-events: none;
}

/* ============================================================
   3D 书页结构
   ============================================================ */
/* 透视相机：俯视一本摊在桌面上的笔记本 */
.fb-scene {
  position: absolute; inset: 0;
  perspective: 2200px;
  perspective-origin: 50% 42%;
}
.fb-book {
  --fold: 0deg;                /* 合书态 0 / 展开态由 JS 置为弯折角 */
  position: absolute; inset: 0;
  touch-action: none;
  overflow: hidden;            /* 对应云展网 #bookContainer：裁掉 mask 旋转时伸出书页的部分 */
  transform-style: preserve-3d;
}
.fb-base {
  position: absolute; top: 0; height: 100%; width: 50%;
  overflow: hidden; background: var(--c-paper);
  transform-style: preserve-3d;
  will-change: transform;
}
.fb-base-l {
  left: 0; border-radius: 10px 2px 2px 10px;
  transform-origin: 100% 50%;                       /* 绕右缘（书沟）旋转 */
  transform: rotateY(var(--fold));
}
.fb-base-r {
  right: 0; border-radius: 2px 10px 10px 2px;
  transform-origin: 0% 50%;                         /* 绕左缘（书沟）旋转 */
  transform: rotateY(calc(-1 * var(--fold)));
}
.fb-base-page { position: absolute; inset: 0; }
.fb-base-page .pg { border-radius: inherit; }

/* ============================================================
   折痕卷曲翻页层
   ------------------------------------------------------------
   .fm   : e×e（页面对角线）大正方形 mask，overflow:hidden，
           右缘锚定书脊，绕右缘中点旋转
   .fs   : W×H 纸面（sheet），mask 旋转时纸面反向补偿
   .fmsh : 沿折痕的多层阴影长条
   ============================================================ */
.fb-flip { position: absolute; inset: 0; z-index: 30; pointer-events: none; }

.fm {
  position: absolute; right: 50%;
  transform-origin: 100% 50%;
  overflow: hidden;
  backface-visibility: visible;
  will-change: transform;
}
.fs {
  position: absolute;
  background: var(--c-paper);
  will-change: transform;
}
.fs-down { right: 0; }            /* down sheet 右缘=mask 右缘 */
.fs-up   { left: 100%; }          /* up sheet 左缘=mask 右缘 */
.fs.boxShadow { box-shadow: none; }

/* 防止拖动书页时误触发浏览器原生图片拖拽（会派发 pointercancel 中止翻页） */
.fb-book img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------------- 合书：书脊 / 页边效果 ---------------- */
.fb-cfx {
  position: absolute; inset: 0; z-index: 10;
  display: none; pointer-events: none;
}
/* 封面合上（单页·右）：书脊在封面左缘（舞台中线），自由边在右 */
.fb-cfx-front .cfx-edge {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 36px; transform: translateX(-4px);
  background: linear-gradient(90deg,
    transparent 0%, rgba(0,0,0,.10) 8%, rgba(0,0,0,.34) 20%,
    rgba(0,0,0,.12) 45%, transparent 100%);
  box-shadow: inset 3px 0 0 rgba(243,240,223,.95);
}
.fb-cfx-front .cfx-free {
  position: absolute; right: 0; top: 0; bottom: 0; width: 64px;
  background: linear-gradient(270deg, rgba(0,0,0,.18), transparent 70%);
}
/* 封底合上（单页·左）：书脊在封底右缘（舞台中线），自由边在左 */
.fb-cfx-back .cfx-edge {
  position: absolute; right: 50%; top: 0; bottom: 0;
  width: 36px; transform: translateX(4px);
  background: linear-gradient(270deg,
    transparent 0%, rgba(0,0,0,.10) 8%, rgba(0,0,0,.34) 20%,
    rgba(0,0,0,.12) 45%, transparent 100%);
  box-shadow: inset -3px 0 0 rgba(243,240,223,.95);
}
.fb-cfx-back .cfx-free {
  position: absolute; left: 0; top: 0; bottom: 0; width: 64px;
  background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 70%);
}

/* ============================================================
   物理书沟（仅双页展开态）
   两页绕装订轴向下弯折形成的 V 形凹槽：
   中轴最深，向两侧页面快速抬升，配合上方微弱环境闭塞。
   z 介于静态页与翻页层之间，不是贴图线圈。
   ============================================================ */
.fb-valley {
  position: absolute; inset: 0; z-index: 5;
  display: none; pointer-events: none;
  transform: translateZ(2px);
}
.fb-valley::before {                    /* 宽而柔的谷底阴影 */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 16%; transform: translateX(-50%);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(10, 20, 12, .10) 26%,
    rgba(6, 12, 7, .30) 44%,
    rgba(3, 7, 4, .52) 50%,
    rgba(6, 12, 7, .30) 56%,
    rgba(10, 20, 12, .10) 74%,
    transparent 100%);
}
.fb-valley::after {                     /* 中轴一道极细深缝 */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(2,4,2,.6), transparent);
}

/* ---------------- 折痕阴影长条（已按要求关闭） ---------------- */
.fmsh {
  position: absolute;
  overflow: hidden;
  visibility: hidden;
  display: none;                 /* 翻页折痕动态阴影全部不渲染 */
  background-repeat: repeat-y;
  pointer-events: none;
}
.fmsh-b {
  width: 60px; z-index: 20;
  transform-origin: 0 50%;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAABCAYAAACCGM0BAAAAOklEQVQImXWO0QoAIAgDr///YzPrxWCMeji2iTgHsIFqlpGi18/2L1USCMlh87D9X/bbr25Hfy/JdQBz/TsEbrOLMAAAAABJRU5ErkJggg==");
}
.fmsh-f {
  width: 260px; z-index: 20;
  background-size: 100% auto;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAAABCAYAAAA4stANAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGPSURBVDhPZcNXyAgAGADAs/fee++99957Z++RTbbMrKyMrIyMkBFCCCGEECJEiBARIiIivHwPf1wd/MFv/MJP/MB3fMNXfMFnfMJHfMB7vMNbvMFrvMJLvMBzPMNTPMFjPMJDPMB93MNd3MFt3MJN3MB1XMNVXMFlXMJFXMB5nMNZnMFpnMJJnMBxHMNRHMFhHMJBHMB+7MNe7MFu7MJO7MB2bMNWbMFmbMJGbMB6rMNarMFqrMJKrMByLMNSLMFiLMJCLMB8zMNczMFszMJMzMB0TMNUTMFkTMJETMB4jMNYjMFojMJIjMBwDMNQDMFgDMJADEB/9ENf9EFv9EJP9EB3dENXdEFndEJHdEB7tENbtEFrtIot0QLN0QxN0QSN0QgN0QD1UQ91UQe1Yy3URA1URzVURZVYGZVQERVQHuViWZRBaZSKJVECxVEsFkURFI6FUBAFYn7kQ96YB7ljLuSMOZA9ZkPWmAWZY6aYERli+pgupo1pYuqYKqaMKWLymCzBpAkmSTBxgon++Z+/0axntFi94wQAAAAASUVORK5CYII=");
}
.fmsh-e {
  width: 3px; z-index: 21;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAABCAYAAAD0In+KAAAAEUlEQVQImWMUFhbWl5CUcAAAA6cA84gDP9QAAAAASUVORK5CYII=");
}
.fmsh-h {
  width: 18px; z-index: 22;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAABCAYAAADTjP5iAAAASUlEQVQImQXBIRKAMAwEwGMgTS4MtLVIDG+nlhdhG08tu1Nr7RARppTcaBvJQnp2srqz0Lyq6W6qeRFZAVwATgDzN8YbEU/0fv8rLA6f2wxeewAAAABJRU5ErkJggg==");
}
.fmsh-t {
  width: 78px; z-index: 23;
  background-size: 100% auto;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAAABCAYAAACmAULBAAAAVUlEQVQYlW3Oyw6AIAxE0UtE0P//WAXBuinJpHFxMn0s2mRmGcjABuxAkazikIxOp30NsxoUkf3m+mNJAuAFDJju8exeN6+buyUvEfu/XZNUXe4NYHyaqCkBrhnpdAAAAABJRU5ErkJggg==");
}

/* ---------------- 静态目标页上的投影覆盖层（已按要求关闭） ---------------- */
.fb-bshadow {
  position: absolute;
  display: none;                 /* 翻页时投到下层页面的阴影不渲染 */
  width: 60px;
  left: 0; top: 0;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAABCAYAAACCGM0BAAAAOklEQVQImXWO0QoAIAgDr///YzPrxWCMeji2iTgHsIFqlpGi18/2L1USCMlh87D9X/bbr25Hfy/JdQBz/TsEbrOLMAAAAABJRU5ErkJggg==");
  background-repeat: repeat-y;
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
}

/* 抓页热区提示光带 */
.fb-hint {
  position: absolute; top: 8%; bottom: 8%; width: 46px; z-index: 40;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.fb-hint-r { right: 4px; background: linear-gradient(-90deg, rgba(255,255,255,.35), transparent); border-radius: 30px 8px 8px 30px; }
.fb-hint-l { left: 4px; background: linear-gradient(90deg, rgba(255,255,255,.35), transparent); border-radius: 8px 30px 30px 8px; }
.fb-hint::after {
  content: "⤓"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 22px; color: rgba(31,81,48,.65);
}
.fb-hint-l::after { content: "⤓"; transform: translate(-50%,-50%) scaleX(-1); }

/* ============================================================
   页面通用
   ============================================================ */
.pg {
  position: absolute; inset: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  --pw: 400px;
  overflow: hidden;
}
/* 纸张颗粒 */
.pg::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(76, 96, 48, .10) 1px, transparent 1.4px);
  background-size: 14px 14px; opacity: .35;
}
.pg > * { position: relative; z-index: 2; }
.dec { position: absolute; pointer-events: none; }

h1, h2 { font-family: "Fredoka", "Nunito", sans-serif; }

/* ---------------- 封面 ---------------- */
.pg-cover { background: var(--c-primary); color: #fff; }
.pg-cover::before { display: none; }
.cv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 6.5% 7%; }
.cv .dec-star { top: 7%; right: 9%; }
.cv .dec-spark { bottom: 21%; left: 10%; }
.cv-top { text-align: center; }
.cv-logo { font-family: "Fredoka"; font-weight: 700; font-size: calc(var(--pw) * .085); letter-spacing: .12em; color: #fff; }
.brand-logo { object-fit: contain; }
/* Logo 图片（AeternCraft 雪山松标）：直接贴合，无衬板无框 */
img.cv-logo,
img.hc-logo {
  display: block;
  height: calc(var(--pw) * .14);
  width: auto; max-width: 78%;
  margin: 0 auto;
  object-fit: contain;
}
.hc img.hc-logo { height: calc(var(--pw) * .16); }
.cv-sub { font-size: calc(var(--pw) * .025); letter-spacing: .32em; color: var(--c-gold); margin-top: 2px; font-weight: 700; }
.cv-title { margin: 4% 0 2%; }
.cv-title-row {
  display: block; text-align: center;
  font-family: "Fredoka"; font-weight: 700;
  font-size: calc(var(--pw) * .1); line-height: 1.05;
  background: linear-gradient(180deg, #fff 30%, #ffd28a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.cv-art { position: relative; width: 62%; flex: 1; min-height: 0; display: flex; justify-content: center; }
.cv-art img {
  height: 100%; width: 100%; object-fit: cover;
  border-radius: 46% 54% 52% 48% / 55% 48% 52% 45%;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.cv-art .dec-star { position: absolute; top: -6%; right: -8%; }
.cv-art .dec-spark { position: absolute; bottom: 4%; left: -10%; }
.cv-bottom { display: flex; align-items: center; gap: 12px; margin-top: 4%; }
.cv-tag { font-size: calc(var(--pw) * .03); font-weight: 800; letter-spacing: .06em; color: rgba(255,255,255,.85); }
.cv-year {
  font-family: "Fredoka"; font-weight: 700; font-size: calc(var(--pw) * .042);
  color: var(--c-primary); background: var(--c-gold);
  border-radius: 999px; padding: 2px 12px;
}

/* ---------------- 硬壳 ---------------- */
.pg-hard { background: linear-gradient(150deg, #2a6b3d, #10301c); color: #fff; }
.pg-hard::before { display: none; }
.hc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8%; text-align: center; }
.hc .dec-spark { top: 10%; left: 12%; }
.hc .dec-star { bottom: 12%; right: 12%; }
.hc-logo { font-family: "Fredoka"; font-weight: 700; font-size: calc(var(--pw)*.1); letter-spacing: .1em; }
.hc-line { width: 46%; height: 3px; border-radius: 3px; background: var(--c-gold); }
.hc-sub { font-size: calc(var(--pw)*.028); letter-spacing: .22em; color: rgba(255,255,255,.75); font-weight: 700; }
.hc .dec:last-child { bottom: 8%; left: 50%; transform: translateX(-50%); position: absolute; }
.hc-thanks { font-family: "Fredoka"; font-weight: 700; font-size: calc(var(--pw)*.14); line-height: 1; color: #fff; }
.hc-r .dec-star { top: 12%; right: 14%; }
.hc-r .dec-spark { bottom: 14%; left: 14%; }

/* ---------------- 章节分隔页 ---------------- */
.pg-chapter {
  background:
    radial-gradient(120% 90% at 12% 0%, #2f7a48 0%, transparent 55%),
    radial-gradient(130% 130% at 100% 100%, #0e2a18 0%, transparent 60%),
    var(--c-primary);
  color: var(--c-paper);
}
.pg-chapter::before { display: none; }
.ch { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10%; text-align: center; }
.ch .dec-spark { top: 10%; left: 12%; }
.ch .dec-star { top: 13%; right: 13%; }
.ch .dec:last-child { bottom: 7%; right: 8%; }
.ch-kicker { font-family: "Fredoka"; font-weight: 600; font-size: calc(var(--pw)*.033); letter-spacing: .32em; color: var(--c-gold); }
.ch-title { font-family: "Fredoka"; font-weight: 700; font-size: calc(var(--pw)*.092); line-height: 1.12; color: #fff; margin-top: 4%; }
.ch-line { width: 38%; height: 3px; border-radius: 3px; background: var(--c-gold); margin: 6% 0 4%; }
.ch-text { font-size: calc(var(--pw)*.0335); line-height: 1.7; font-weight: 600; color: rgba(243,240,223,.82); max-width: 86%; }

/* ---------------- 自由图文页 ---------------- */
.ar { position: absolute; inset: 0; padding: 9% 9% 7%; display: flex; flex-direction: column; overflow: hidden; }
.ar .dec-squig { top: 6%; right: 9%; }
.ar .dec-dots { bottom: 5%; right: 10%; position: absolute; }
.ar-head { font-size: calc(var(--pw)*.066); font-weight: 700; color: var(--c-primary); display: flex; align-items: center; gap: 8px; }
.ar-head .dec { position: static; }
.ar-sub { margin-top: 2.5%; font-family: "Fredoka"; font-weight: 600; font-size: calc(var(--pw)*.037); color: var(--c-accent); }
.ar-img { margin-top: 4%; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 16px rgba(24,48,28,.18); }
.ar-img img { width: 100%; max-height: calc(var(--pw)*.4); object-fit: cover; display: block; }
.ar-p { margin-top: 3.6%; font-size: calc(var(--pw)*.033); line-height: 1.6; font-weight: 600; text-align: justify; }
.ar-p:first-of-type::first-letter {
  font-family: "Fredoka"; font-weight: 700; float: left;
  font-size: 2.5em; line-height: .85; padding: .07em .12em 0 0; color: var(--c-accent);
}

/* ---------------- 扉页 ---------------- */
.wl { position: absolute; inset: 0; padding: 12% 10%; display: flex; flex-direction: column; }
.wl .dec-squig { top: 9%; right: 8%; position: absolute; }
.wl .dec-heart { bottom: 14%; right: 10%; position: absolute; }
.wl .dec-dots { bottom: 8%; left: 10%; position: absolute; }
.wl-title { font-size: calc(var(--pw)*.1); font-weight: 700; color: var(--c-primary); margin-top: 14%; }
.wl-text { margin-top: 6%; font-size: calc(var(--pw)*.04); line-height: 1.75; font-weight: 600; }
.wl-sign { margin-top: auto; font-family: "Fredoka"; font-weight: 600; color: var(--c-accent); font-size: calc(var(--pw)*.04); }

/* ---------------- 关于：图 ---------------- */
.ai { position: absolute; inset: 0; padding: 9%; display: flex; align-items: center; }
.ai-frame {
  position: relative; width: 86%; height: 78%;
  border-radius: 30px 60px 34px 56px / 50px 30px 56px 36px;
  overflow: hidden; box-shadow: 0 14px 30px rgba(31,81,48,.25);
  transform: rotate(-2deg);
}
.ai-frame img { width: 100%; height: 100%; object-fit: cover; }
.ai-vert {
  writing-mode: vertical-rl; font-family: "Fredoka"; font-weight: 700;
  font-size: calc(var(--pw)*.075); color: rgba(31,81,48,.10);
  letter-spacing: .15em; margin-left: -4%;
}
.ai .dec-spark { top: 8%; right: 10%; }
.ai .dec-star { bottom: 9%; right: 22%; }

/* ---------------- 关于：文 ---------------- */
.at { position: absolute; inset: 0; padding: 9% 9% 7%; display: flex; flex-direction: column; }
.at-head { font-size: calc(var(--pw)*.072); font-weight: 700; color: var(--c-primary); display: flex; align-items: center; gap: 8px; }
.at-head .dec { position: static; }
.at-sub { margin-top: 3%; font-family: "Fredoka"; font-weight: 600; font-size: calc(var(--pw)*.04); color: var(--c-accent); }
.at-p { margin-top: 4.5%; font-size: calc(var(--pw)*.0345); line-height: 1.62; font-weight: 600; text-align: justify; }
.at-drop {
  float: left; font-family: "Fredoka"; font-weight: 700;
  font-size: calc(var(--pw)*.15); line-height: .85;
  color: var(--c-gold); margin: 2px 8px 0 0;
}
.at .dec-squig { margin-top: auto; }

/* ---------------- 目录 ---------------- */
.ct { position: absolute; inset: 0; padding: 10% 9%; display: flex; flex-direction: column; }
.ct-head { font-size: calc(var(--pw)*.075); font-weight: 700; color: var(--c-primary); display: flex; gap: 8px; align-items: center; }
.ct-head .dec { position: static; }
.ct-list { margin-top: 8%; display: flex; flex-direction: column; gap: 5.5%; flex: 1; }
.ct-row { display: flex; align-items: baseline; gap: 10px; }
.ct-no { font-family: "Fredoka"; font-weight: 700; color: var(--c-accent); font-size: calc(var(--pw)*.04); }
.ct-name { font-family: "Fredoka"; font-weight: 600; font-size: calc(var(--pw)*.045); color: var(--c-ink); white-space: nowrap; }
.ct-dots { flex: 1; border-bottom: 2px dotted rgba(34,39,29,.35); transform: translateY(-3px); }
.ct-pg { font-family: "Fredoka"; font-weight: 700; color: var(--c-primary); font-size: calc(var(--pw)*.045); }
.ct .dec-star { bottom: 12%; right: 14%; }
.ct .dec-coin { bottom: -4%; left: -6%; }

/* ---------------- 企业优势 ---------------- */
.ft { position: absolute; inset: 0; padding: 9% 8%; display: flex; flex-direction: column; }
.ft-head { font-size: calc(var(--pw)*.07); font-weight: 700; color: var(--c-primary); display: flex; gap: 8px; align-items: center; }
.ft-head .dec { position: static; }
.ft-grid { margin-top: 6%; display: grid; grid-template-columns: 1fr 1fr; gap: 4%; flex: 1; }
.ft-card {
  background: #fff; border: 2px solid rgba(31,81,48,.08);
  border-radius: 18px; padding: 7% 8%; box-shadow: 0 6px 0 rgba(31,81,48,.07);
  display: flex; flex-direction: column;
}
.ft-ic .dec { position: static; }
.ft-tt { margin-top: 4px; font-family: "Fredoka"; font-weight: 600; font-size: calc(var(--pw)*.037); color: var(--c-primary); }
.ft-ds { margin-top: 4px; font-size: calc(var(--pw)*.0285); line-height: 1.45; color: rgba(34,39,29,.75); font-weight: 600; }

/* ---------------- 产品通用头部 ---------------- */
.pp-head { display: flex; flex-direction: column; gap: 2px; padding: 6.5% 7% 0; }
.pp-cat {
  align-self: flex-start; font-family: "Fredoka"; font-weight: 700;
  font-size: calc(var(--pw)*.046); color: #fff; background: var(--c-primary);
  border-radius: 999px; padding: 3px 14px;
}
.pp-tag { font-size: calc(var(--pw)*.028); color: rgba(34,39,29,.62); font-weight: 700; font-style: italic; }
.pp-name { font-family: "Fredoka"; font-weight: 600; color: var(--c-ink); font-size: calc(var(--pw)*.041); line-height: 1.2; }
.pp-sku { font-size: calc(var(--pw)*.025); color: var(--c-gold); font-weight: 800; letter-spacing: .04em; margin-top: 2px; }
.pp-desc { margin-top: 4px; font-size: calc(var(--pw)*.029); line-height: 1.5; font-weight: 600; color: rgba(34,39,29,.82); }
.pp-sizes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.pp-sizes span {
  font-size: calc(var(--pw)*.024); font-weight: 800; color: var(--c-primary);
  border: 1.5px solid rgba(31,81,48,.3); border-radius: 7px; padding: 1px 7px; background: #fff;
}

/* ---------------- 两款产品 ---------------- */
.pc2 { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pc2-grid { flex: 1; display: flex; flex-direction: column; gap: 3.5%; padding: 4% 7% 7%; min-height: 0; }
.pc2-card {
  flex: 1; min-height: 0; display: flex; gap: 5%;
  background: #fff; border: 2px solid rgba(31,81,48,.07);
  border-radius: 20px; padding: 4%; box-shadow: 0 5px 0 rgba(31,81,48,.06);
}
.pc2-img { width: 40%; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.pc2-img img { width: 100%; height: 100%; object-fit: cover; }
.pc2-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pc2-body .pp-sizes { margin-top: 5px; }

/* ---------------- 一款聚焦 ---------------- */
.ps { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ps-img { margin: 4% 7% 0; height: 40%; border-radius: 22px; overflow: hidden; position: relative; box-shadow: 0 10px 22px rgba(31,81,48,.2); }
.ps-img img { width: 100%; height: 100%; object-fit: cover; }
.ps-img .dec { position: absolute; top: -6px; right: -4px; }
.ps-body { flex: 1; padding: 4% 8% 6%; display: flex; flex-direction: column; min-height: 0; }
.ps-tagline { margin-bottom: 3px; }
.ps-feat { margin-top: 6px; display: grid; grid-template-columns: 1fr; gap: 3px; list-style: none; }
.ps-feat li { display: flex; align-items: center; gap: 6px; }
.ps-feat .dec { position: static; flex-shrink: 0; }
.ps-feat span { font-size: calc(var(--pw)*.027); font-weight: 700; color: var(--c-primary); }

/* ---------------- 定制选项 ---------------- */
.op { position: absolute; inset: 0; padding: 7% 8%; display: flex; flex-direction: column; }
.op-head { font-size: calc(var(--pw)*.066); font-weight: 700; color: var(--c-primary); display: flex; align-items: center; gap: 6px; }
.op-head .dec { position: static; }
.op-tag { font-size: calc(var(--pw)*.028); color: var(--c-accent); font-weight: 800; margin-top: 2px; }
.op-plate { margin-top: 4%; }
.op-title { font-family: "Fredoka"; font-weight: 600; font-size: calc(var(--pw)*.034); color: var(--c-ink); margin-bottom: 4px; }
.op-plate img { width: 100%; height: calc(var(--pw)*.34); object-fit: cover; border-radius: 14px; border: 2px solid rgba(31,81,48,.08); }
.op-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.op-chips span {
  font-size: calc(var(--pw)*.0225); font-weight: 800; color: var(--c-primary);
  background: #fff; border: 1.4px solid rgba(31,81,48,.25); border-radius: 999px; padding: 1px 9px;
}
.op-two { margin-top: 5%; display: flex; gap: 6%; flex: 1; min-height: 0; }
.op-block { flex: 1; min-width: 0; }
.op-line { font-size: calc(var(--pw)*.023); line-height: 1.35; margin-bottom: 4px; color: rgba(34,39,29,.78); }
.op-line b { display: block; color: var(--c-accent); font-size: calc(var(--pw)*.026); }

/* ---------------- 联系我们 ---------------- */
.cm { position: absolute; inset: 0; padding: 9% 9% 6%; display: flex; flex-direction: column; }
.cm .dec-star { top: 7%; right: 10%; }
.cm .dec-spark { bottom: 16%; right: 8%; }
.cm-head { font-size: calc(var(--pw)*.078); font-weight: 700; color: var(--c-primary); }
.cm-sub { font-size: calc(var(--pw)*.03); color: var(--c-accent); font-weight: 800; margin-top: 2px; }
.cm-list { margin-top: 6%; display: flex; flex-direction: column; gap: 3.2%; flex: 1; }
.cm-row { display: flex; gap: 10px; font-size: calc(var(--pw)*.0285); line-height: 1.35; }
.cm-row b { flex-shrink: 0; width: calc(var(--pw)*.19); color: var(--c-gold); font-weight: 800; letter-spacing: .04em; }
.cm-row span { font-weight: 700; word-break: break-word; }
.cm-qr { position: absolute; right: 8%; bottom: 9%; text-align: center; }
.cm-qrbox { width: calc(var(--pw)*.2); height: calc(var(--pw)*.2); border-radius: 12px; overflow: hidden; border: 3px solid var(--c-primary); }
.cm-qrtx { margin-top: 4px; font-size: calc(var(--pw)*.02); font-weight: 800; color: var(--c-primary); letter-spacing: .08em; }
.cm-logo { position: absolute; left: 9%; bottom: 9%; font-family: "Fredoka"; font-weight: 700; font-size: calc(var(--pw)*.07); color: rgba(31,81,48,.18); letter-spacing: .08em; }
img.cm-logo { width: 30%; height: auto; opacity: .14; }

/* ---------------- 底部控制条 ---------------- */
.control-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 30; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 12px; border-radius: 999px; backdrop-filter: blur(14px);
}
.ctrl-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.ctrl-btn:hover { background: var(--c-accent); transform: scale(1.08); }
.ctrl-btn:disabled { opacity: .35; cursor: default; transform: none; background: rgba(255,255,255,.14); }
.ctrl-page {
  min-width: 92px; text-align: center; font-weight: 800; font-size: 14px;
  color: rgba(255,255,255,.92); font-variant-numeric: tabular-nums;
}

/* ---------------- 加载 ---------------- */
.loading {
  position: fixed; inset: 0; z-index: 100; display: flex;
  align-items: center; justify-content: center; flex-direction: column; gap: 16px;
  background: #0b1710; transition: opacity .5s;
}
.loading.hide { opacity: 0; pointer-events: none; }
.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.15); border-top-color: var(--c-accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-tx { font-weight: 700; letter-spacing: .1em; font-size: 13px; color: rgba(255,255,255,.7); }

/* ============================================================
   手机 / 小屏适配
   ------------------------------------------------------------
   窄竖屏：viewer.js 启用 MobileBook 单页滑动模式，
   #stage 由 JS 按可用区域精确设置像素尺寸（is-portrait）。
   ============================================================ */

/* 手机竖屏单页阅读器 */
.m-book {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-paper);
  touch-action: none;                    /* 手势由 JS 处理，禁止浏览器默认滚屏/下拉 */
  -webkit-user-select: none;
  user-select: none;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
}
.m-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.m-track--anim { transition: transform .32s cubic-bezier(.22, .61, .36, 1); }
.m-page {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.m-page .pg { border-radius: 10px; }
.m-page img { -webkit-user-drag: none; }

/* 首次打开的滑动提示（JS 定时/交互后淡出） */
.m-hint {
  position: absolute;
  left: 50%; bottom: 11%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(11, 23, 16, .62);
  color: rgba(255, 255, 255, .92);
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity .5s;
  /* CSS 兜底：即使 JS 定时器不触发也会自动淡出（用户滑动后 JS 立即加 --hide） */
  animation: m-hint-fade 3.8s ease 0.2s forwards;
}
.m-hint--hide { opacity: 0; animation: none; }
@keyframes m-hint-fade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  68% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 820px) {
  /* 优先用动态视口高度，避免手机浏览器地址栏伸缩造成裁切 */
  .stage-wrap {
    height: 100dvh;
    padding: 12px 10px calc(74px + env(safe-area-inset-bottom, 0px));
  }
  .control-bar {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 7px 10px;
    gap: 6px;
  }
  .ctrl-btn { width: 38px; height: 38px; }
  .ctrl-page { min-width: 78px; font-size: 13px; }
  /* 全屏按钮在手机上意义不大，让出空间给翻页 */
  #btnFs { display: none; }

  /* CUSTOM OPTIONS 页：窄屏下标签易换行变高，紧凑排版避免底部裁切 */
  .m-page .op-plate img { height: calc(var(--pw) * .29); }
  .m-page .op-plate { margin-top: 3%; }
  .m-page .op-chips { gap: 4px; margin-top: 5px; }
  .m-page .op-chips span {
    font-size: calc(var(--pw) * .0195);
    padding: 1px 6px;
  }
  .m-page .op-two { margin-top: 3.5%; }
  .m-page .op-line { margin-bottom: 2px; line-height: 1.3; }
  .m-page .op-tag { margin-bottom: 2px; }
}

/* 超窄屏（iPhone SE 等）再收紧外边距 */
@media (max-width: 360px) {
  .stage-wrap { padding-left: 6px; padding-right: 6px; }
}
