/* 首页 HERO 右侧视觉 · 实体书 v1.1（K 错落叠放定稿；v1.1：舞台去掉上方空白、书堆与左栏上下居中、2000 宽封顶 600、导航与正文同一 5vw 边距、390 书堆缩小居中避开左下角音乐按钮）：AI PLAYBOOK 全 5 册，L1–L4 平放成摞、书脊朝外，第 1 册 L0 立在最上面。
   纯 CSS 3D（preserve-3d + perspective），光源统一在左上前方；尺寸全部用 cqw（相对 .hbk-stage 宽度），2000 / 1366 / 390 等比缩放。
   取自 home-hero-variantsv1.2.css 的 K 方案，全部规则限定在 .hero-books 内；旧 .hero-board 规则保留在 home-herov1.0.css 中，无影响。 */

/* ---------- 左栏：与书堆上下居中对齐 ---------- */
.hero{overflow-x:clip}
.hero-text{justify-content:center;gap:clamp(40px,4.2vw,76px)}
.hero h1{font-size:clamp(2.4rem,4.7vw,5.6rem);letter-spacing:-.03em;line-height:1.04}
.hero .lead{font-size:clamp(1rem,1.12vw,1.24rem);max-width:30em}

/* ---------- v1.1 对齐：导航与正文同一左右边距；HERO 底部留白收紧 ---------- */
.nav{padding-left:5vw;padding-right:5vw}
.hero{padding-bottom:clamp(40px,4vw,64px)}
@media (max-width:620px){.hero{padding-bottom:32px;gap:18px}}

/* ---------- 舞台 ---------- */
.hero-books{position:relative;margin:0;width:100%;min-width:0;min-height:100%;display:grid;place-items:center;overflow:visible}
.hero-books a{text-decoration:none;color:inherit}
.hbk-stage{position:relative;container-type:inline-size;aspect-ratio:1/.95;width:min(100%,clamp(320px,35vw,600px))}
.hbk-scene{--px:0;--py:0;position:absolute;inset:0;perspective:240cqw;perspective-origin:50% 22cqw}

/* ---------- 每册颜色 ---------- */
.hero-books .v0{--c1:#2a3b63;--c2:#14213d;--c3:#0e182e;--tx:#f7f3ec;--ac:#e8691a}
.hero-books .v1{--c1:#f3ebdc;--c2:#e6dac4;--c3:#cdbd9f;--tx:#1f2a44;--ac:#c4570c}
.hero-books .v2{--c1:#cf6a24;--c2:#b4520f;--c3:#8d3f0b;--tx:#fbf3e7;--ac:#1f2a44}
.hero-books .v3{--c1:#3b6d55;--c2:#2b5542;--c3:#1d3d2f;--tx:#f3efe4;--ac:#f0b37e}
.hero-books .v4{--c1:#3a342d;--c2:#25211c;--c3:#171410;--tx:#efe7d8;--ac:#e8691a}

/* ---------- 立着的第 1 册（盒子：封面 / 书脊 / 书口 / 顶面） ---------- */
.hero-books .vol{--W:34cqw;--H:calc(var(--W)*1.4);--D:6.6cqw;position:absolute;width:var(--W);height:var(--H);transform-style:preserve-3d;
  display:block;color:inherit;text-decoration:none;outline:none;
  left:calc(var(--W)/-2);top:calc(var(--H)*-1 - 6.8cqw*3);transform:translate3d(.6cqw,0,-7cqw) rotateY(8deg)}
.hero-books .vol .bk{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.7,.2,1);
  animation:hbkFloat 8s ease-in-out infinite}
@keyframes hbkFloat{50%{translate:0 -1.1cqw 0}}
.hero-books .vol .bk>span{position:absolute;backface-visibility:hidden;-webkit-backface-visibility:hidden}

/* 封面：板纸 + 布纹 + 靠书脊的压槽 + 左上来光 */
.hero-books .bf{inset:0;transform:translateZ(calc(var(--D)/2));border-radius:.3cqw .8cqw .8cqw .3cqw;overflow:hidden;color:var(--tx);display:flex;flex-direction:column;
  padding:9% 9% 8% 12%;
  background:
    linear-gradient(90deg,rgba(0,0,0,.30),rgba(255,255,255,.07) 2.4%,rgba(0,0,0,.16) 4.2%,transparent 8%),
    linear-gradient(160deg,rgba(255,255,255,.10),transparent 38%,rgba(0,0,0,.14)),
    linear-gradient(155deg,var(--c1),var(--c2) 58%,var(--c3));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),inset -.3cqw 0 .6cqw rgba(0,0,0,.12)}
/* 书脊（朝左，迎光） */
.hero-books .bs{left:calc((var(--W) - var(--D))/2);top:0;width:var(--D);height:100%;transform:rotateY(-90deg) translateZ(calc(var(--W)/2));
  border-radius:.4cqw;color:var(--tx);display:flex;flex-direction:column;align-items:center;padding:7% 0 6%;gap:4.5%;
  background:
    linear-gradient(90deg,rgba(0,0,0,.30),rgba(255,255,255,.16) 30%,rgba(255,255,255,.05) 55%,rgba(0,0,0,.22)),
    linear-gradient(var(--c1),var(--c2));
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
/* 书口（右侧纸边，背光） */
.hero-books .be{left:calc((var(--W) - var(--D))/2);top:1.2%;width:calc(var(--D) - .5cqw);height:97.6%;transform:rotateY(90deg) translateZ(calc(var(--W)/2 - .45cqw));
  background:linear-gradient(90deg,rgba(0,0,0,.18),transparent 30%,rgba(0,0,0,.16)),repeating-linear-gradient(90deg,#efe6d4 0 1px,#d9ccb4 1px 2px)}
/* 顶面 */
.hero-books .bt{left:0;top:calc((var(--H) - var(--D))/2);width:100%;height:var(--D);transform:rotateX(90deg) translateZ(calc(var(--H)/2));
  background:linear-gradient(90deg,var(--c1),#efe5d2 6%,#f8f1e4 55%,#e8dcc6)}
/* 落在书堆上的接触投影：不跟着浮动，书浮起时变淡 */
.hero-books .bsh{position:absolute;left:-4%;top:calc(var(--H) - .2cqw);width:118%;height:calc(var(--D)*2.6);transform-origin:50% 0;
  transform:translateZ(calc(var(--D)/2 + .4cqw)) rotateX(-90deg) skewX(-34deg);
  background:radial-gradient(56% 50% at 46% 30%,rgba(28,24,18,.5),rgba(28,24,18,.14) 60%,transparent 82%);filter:blur(.8cqw);
  animation:hbkShadow 8s ease-in-out infinite;pointer-events:none}
@keyframes hbkShadow{50%{opacity:.72}}

/* 封面文字 */
.hero-books .pb-top{display:flex;justify-content:space-between;gap:1em;font-size:max(7px,1.15cqw);letter-spacing:.14em;opacity:.7;white-space:nowrap}
.hero-books .pb-title{display:flex;flex-direction:column;margin-top:11%;font-family:var(--varsity);line-height:.9;letter-spacing:-.01em}
.hero-books .pb-title b:first-child{font-size:10.4cqw;color:var(--ac)}
.hero-books .pb-title b:last-child{font-size:5.3cqw;color:transparent;-webkit-text-stroke:max(.9px,.17cqw) var(--tx)}
.hero-books .pb-zh{margin-top:5%;font-size:2.75cqw;font-weight:800;letter-spacing:.08em;white-space:nowrap}
.hero-books .pb-yards{margin-top:auto;margin-right:36%;margin-bottom:7%;display:flex;flex-direction:column;gap:.7cqw}
.hero-books .pb-yards i{display:flex;align-items:center;gap:1.2cqw;font-style:normal;font-size:max(7px,1.32cqw);letter-spacing:.06em;color:rgba(247,243,236,.74);white-space:nowrap}
.hero-books .pb-yards i::before{content:attr(data-l);font-family:var(--varsity);color:var(--ac);width:2.2em}
.hero-books .pb-yards i::after{content:"";flex:1;height:1px;background:rgba(247,243,236,.22)}
.hero-books .pb-by{font-size:max(7px,1.4cqw);letter-spacing:.1em;opacity:.8;white-space:nowrap}
.hero-books .pb-seal{position:absolute;bottom:14%;right:8%;width:11.5cqw;aspect-ratio:1;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  background:radial-gradient(circle at 35% 30%,#fffdf8,#f1e9da);color:var(--navy,#1f2a44);transform:rotate(9deg);box-shadow:0 .5cqw 1.4cqw rgba(0,0,0,.32),inset 0 0 0 .25cqw rgba(217,96,11,.18)}
.hero-books .pb-seal b{font-family:var(--varsity);font-size:3.9cqw;line-height:1;color:var(--orange,#d9600b)}
.hero-books .pb-seal small{font-size:max(6px,1cqw);font-weight:800;line-height:1.3;margin-top:.3cqw}

/* 书脊文字（竖排） */
.hero-books .sp-no{display:grid;place-items:center;width:58%;aspect-ratio:1;border-radius:50%;border:max(1px,.16cqw) solid currentColor;font-size:min(2.1cqw,calc(var(--D)*.32));font-weight:900;opacity:.85}
.hero-books .sp-n{writing-mode:vertical-rl;text-orientation:upright;font-size:calc(var(--D)*.4);font-weight:900;letter-spacing:.14em;line-height:1}
.hero-books .sp-l{font-family:var(--varsity);font-size:calc(var(--D)*.3);color:var(--ac);line-height:1}
.hero-books .sp-m{writing-mode:vertical-rl;font-family:var(--varsity);font-size:calc(var(--D)*.2);letter-spacing:.2em;opacity:.62;margin-top:auto;white-space:nowrap}
.hero-books .sp-by{writing-mode:vertical-rl;text-orientation:upright;font-size:calc(var(--D)*.2);letter-spacing:.1em;opacity:.7}

/* ---------- 书堆 ---------- */
.hbk-pile{position:absolute;left:50%;top:72cqw;width:0;height:0;transform-style:preserve-3d;
  transform:rotateX(calc(-21deg + var(--py)*2deg)) rotateY(calc(-20deg + var(--px)*4deg));transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
/* 平放的书：长 L（书高）× 厚 T × 深 P（书宽），书脊朝前 */
.hero-books .lb{--L:56cqw;--T:6.8cqw;--P:39cqw;position:absolute;left:calc(var(--L)/-2);top:calc(var(--T)*(-1*var(--k)));width:var(--L);height:var(--T);
  transform-style:preserve-3d;display:block;color:inherit;text-decoration:none;outline:none;translate:var(--dx) 0 0;rotate:y var(--ry);
  transition:translate .6s cubic-bezier(.2,.7,.2,1)}
.hero-books .lb>span{position:absolute;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.hero-books .lb.v4{--dx:-1.4cqw;--ry:2.5deg}
.hero-books .lb.v3{--dx:3.2cqw;--ry:-3deg}
.hero-books .lb.v2{--dx:-3.4cqw;--ry:4deg}
.hero-books .lb.v1{--dx:2.2cqw;--ry:-2deg}
.hero-books .ls{inset:0;transform:translateZ(calc(var(--P)/2));border-radius:.5cqw;color:var(--tx);display:flex;align-items:center;gap:2.2cqw;padding:0 3.4cqw;white-space:nowrap;
  background:
    linear-gradient(rgba(0,0,0,.28),rgba(255,255,255,.14) 28%,rgba(255,255,255,.04) 55%,rgba(0,0,0,.26)),
    linear-gradient(90deg,var(--c1),var(--c2));
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.hero-books .sh-l{font-family:var(--varsity);font-size:calc(var(--T)*.42);color:var(--ac);line-height:1}
.hero-books .sh-n{font-size:calc(var(--T)*.4);font-weight:900;letter-spacing:.14em;line-height:1}
.hero-books .sh-en{font-family:var(--varsity);font-size:calc(var(--T)*.2);letter-spacing:.3em;opacity:.66}
.hero-books .sh-gap{flex:1;height:1px;background:currentColor;opacity:.16}
.hero-books .sh-m{font-size:calc(var(--T)*.22);letter-spacing:.16em;opacity:.7}
.hero-books .sh-by{font-size:calc(var(--T)*.22);letter-spacing:.08em;opacity:.7;padding-left:1.6cqw;border-left:1px solid currentColor}
/* 顶面（封面朝上，迎光最亮） */
.hero-books .lt{left:0;top:calc((var(--T) - var(--P))/2);width:100%;height:var(--P);transform:rotateX(90deg) translateZ(calc(var(--T)/2));border-radius:.6cqw;
  background:
    linear-gradient(rgba(0,0,0,.16),transparent 6%,transparent),
    linear-gradient(90deg,transparent 4%,rgba(0,0,0,.07) 4% calc(4% + 1px),transparent calc(4% + 1px) 96%,rgba(0,0,0,.07) 96% calc(96% + 1px),transparent calc(96% + 1px)),
    linear-gradient(90deg,rgba(255,255,255,.12),transparent 50%,rgba(0,0,0,.08)),
    linear-gradient(var(--c1),var(--c1))}
/* 两端（书页 + 上下板纸 + 书脊包边） */
.hero-books .le,.hero-books .ll{left:calc((var(--L) - var(--P))/2);top:0;width:var(--P);height:100%;
  background:
    linear-gradient(90deg,var(--c2) 0 5%,transparent 5%),
    linear-gradient(var(--c3) 0 11%,transparent 11% 89%,var(--c3) 89%),
    linear-gradient(90deg,rgba(0,0,0,.10),rgba(0,0,0,.24)),
    repeating-linear-gradient(0deg,#ece2cf 0 1px,#d5c7ad 1px 2px)}
.hero-books .le{transform:rotateY(90deg) translateZ(calc(var(--L)/2 - .3cqw))}
.hero-books .ll{transform:rotateY(-90deg) translateZ(calc(var(--L)/2 - .3cqw));
  background:linear-gradient(90deg,transparent 95%,var(--c2) 95%),linear-gradient(var(--c3) 0 11%,transparent 11% 89%,var(--c3) 89%),repeating-linear-gradient(0deg,#f6efe1 0 1px,#e2d6c0 1px 2px)}
/* 整摞的地面投影 */
.hbk-floor{position:absolute;left:-36cqw;top:-21.2cqw;width:80cqw;height:56cqw;transform:rotateX(90deg);transform-style:flat;pointer-events:none;
  background:radial-gradient(40% 34% at 54% 50%,rgba(24,20,15,.46),transparent 100%),radial-gradient(50% 46% at 58% 54%,rgba(28,24,18,.26),rgba(28,24,18,.10) 62%,transparent 84%);filter:blur(1.2cqw)}

/* 悬停 / 键盘焦点：抬起 */
@media (hover:hover) and (pointer:fine){
  .hero-books .vol:hover .bk,.hero-books .vol:focus-visible .bk{transform:translateY(-2.4cqw) rotateY(4deg)}
  .hero-books .lb:hover,.hero-books .lb:focus-visible{translate:calc(var(--dx) + 2.4cqw) 0 0}
}
.hero-books .vol:focus-visible .bf,.hero-books .lb:focus-visible .ls{outline:max(2px,.4cqw) solid var(--orange,#d9600b);outline-offset:.4cqw}

/* ---------- 响应式 ---------- */
@media (max-width:980px){
  .hero-books{min-height:0;padding:0}
  .hbk-stage{width:min(92%,480px)}
}
@media (max-width:620px){
  .hero-books .pb-yards,.hero-books .pb-top span:first-child,.hero-books .pb-role{display:none}
  .hero-books .pb-by{margin-top:auto}
  .hero-books .pb-seal{bottom:auto;top:58%}
  .hbk-stage{width:min(82%,310px)}
}
@media (prefers-reduced-motion:reduce){
  .hero-books *{animation:none!important;transition:none!important}
}
