/*
 * 《从 1 学 AI · 工程经验全书》翻开视图。配合 scripts/book.js。
 * 全部样式收在 .wb 和 .wb-plain 底下，首页引入也不会碰到别的东西。
 * 设计画布：书板 1480 × 900，右页书口再伸出 40 的布签；正文字号以 .wb-box 的 18px 为 1em。
 */

.wb, .wb-fly, .wb-plain-page {
  --wb-ink: #2a231c;
  --wb-ink2: #54483b;
  --wb-ink3: #766857;
  --wb-paper: #f8f2e5;
  --wb-paper2: #f1e8d6;
  --wb-rule: rgba(96, 72, 44, .2);
  --wb-rule2: rgba(96, 72, 44, .11);
  --wb-ox: #7a2b22;
  --wb-ox2: #9a3e31;
  --wb-sage: #4b5d45;
  --wb-sage-bg: rgba(75, 93, 69, .09);
  --wb-bad: #8c3b2b;
  --wb-bad-bg: rgba(140, 59, 43, .06);
  --wb-gold: linear-gradient(100deg, #7d5f27 0%, #d9bb72 26%, #f6e7b0 42%, #b48d3c 60%, #e8cf8a 80%, #8a6a2c 100%);
  --wb-goldc: #c9a65e;
  --wb-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --wb-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wb-latin: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --wb-ease: cubic-bezier(.23, 1, .32, 1);
  --wb-turn: cubic-bezier(.45, .05, .2, 1);
  /* 书页不铺任何重复贴图，这一层留成透明；纸感靠底色和书沟边上的柔光 */
  /* 书页细纸纹：和首页同一张，平均透明度约 3.5% */
  --wb-noise: url("../assets/tex-paper-fine.png");
  --wb-fiber: linear-gradient(transparent, transparent);
  --wb-linen: url("../assets/tex-linen.png");
  --wb-linen2: repeating-linear-gradient(90deg, rgba(255, 224, 200, .04) 0 1px, transparent 1px 4px);
}

html.wb-lock, html.wb-lock body { overflow: hidden; }

/* ================= 外层：遮罩、顶栏 ================= */

.wb { position: fixed; inset: 0; z-index: 1000; color: var(--wb-ink); font-family: var(--wb-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wb[hidden] { display: none; }
.wb *, .wb *::before, .wb *::after, .wb-fly *, .wb-fly *::before, .wb-fly *::after { box-sizing: border-box; }
:where(.wb, .wb-fly) :where(p, h1, h2, h3, h4, h5, h6, ol, ul, dl, dd, figure, blockquote, pre) { margin: 0; padding: 0; }
:where(.wb, .wb-fly) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.wb :where(a) { color: inherit; }
.wb svg, .wb-fly svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wb svg .f, .wb-fly svg .f { fill: currentColor; stroke: none; }
.wb .tnum, .wb-plain .tnum { font-variant-numeric: tabular-nums; }
.wb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wb :focus-visible { outline: 2px solid #b8873a; outline-offset: 2px; border-radius: 3px; }

.wb-veil { position: absolute; inset: 0; cursor: zoom-out;
  background: radial-gradient(120vw 90vh at 50% 46%, rgba(36, 26, 18, .92), rgba(18, 12, 8, .96));
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.wb[data-wb-mode="page"] .wb-veil { cursor: default;
  background: radial-gradient(110vw 80vh at 50% 48%, rgba(60, 44, 30, .18), rgba(30, 21, 14, .58)); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* 独立页背景：拍虚的白橡木书架 */
.wb-room { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(70vw 60vh at 20% 0%, rgba(255, 250, 236, .9), rgba(255, 250, 236, 0) 70%), linear-gradient(180deg, #e9e1d3, #d9ccb8 70%, #cdbea6); }
.wb-room__in { position: absolute; inset: -4%; filter: blur(14px) saturate(.9); }
.wb-room__row { position: absolute; left: 4%; right: 4%; height: 23vh; }
.wb-room__row i { position: absolute; bottom: 0; border-radius: 2px 2px 0 0; background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(255, 255, 255, .1) 30%, rgba(0, 0, 0, .15)), var(--c); }
.wb-room__plank { position: absolute; left: 0; right: 0; height: 3.6vh; transform: translateY(-.2vh);
  background: linear-gradient(180deg, #e7d6b8, #cfb68e 40%, #b89a70 100%); box-shadow: 0 2.4vh 3vh rgba(70, 48, 26, .35); }

.wb-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 5; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(14px, 3vw, 40px); color: #efe4d0; pointer-events: none; }
.wb-bar::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(24, 16, 10, .5), rgba(24, 16, 10, 0)); }
.wb-bar__t { text-shadow: 0 1px 10px rgba(20, 12, 6, .55); }
.wb-bar > * { pointer-events: auto; }
.wb-bar__t { display: flex; align-items: center; gap: 14px; min-width: 0; font: 500 14px/1.2 var(--wb-serif); letter-spacing: .08em; white-space: nowrap; }
.wb-bar__b { display: inline-flex; align-items: center; gap: 8px; opacity: .78; }
.wb-bar__b svg { font-size: 16px; }
.wb-bar__c { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.wb-close { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 16px; border-radius: 999px; flex: none;
  border: 1px solid rgba(239, 228, 208, .34); background: rgba(30, 21, 14, .48); color: #f6eddc; font: 500 13.5px/1 var(--wb-sans); letter-spacing: .04em;
  transition: background-color .2s var(--wb-ease), transform .12s var(--wb-ease); }
.wb-close:hover { background: rgba(30, 21, 14, .45); }
.wb-close:active { transform: scale(.97); }
.wb-close kbd { font: 500 11px/1 var(--wb-latin); padding: 4px 6px; border-radius: 999px; border: 1px solid currentColor; background: none; color: inherit; opacity: .5; }
.wb-bar__r { display: flex; align-items: center; gap: 10px; flex: none; }
/* 独立页左上角回典藏室、右上角复制本书链接：和合上按钮同一套胶囊 */
.wb-home, .wb-share { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px; flex: none; text-decoration: none;
  border: 1px solid rgba(239, 228, 208, .34); background: rgba(30, 21, 14, .48); color: #f6eddc; font: 500 13.5px/1 var(--wb-sans); letter-spacing: .04em;
  transition: background-color .2s var(--wb-ease), transform .12s var(--wb-ease); }
.wb-home:hover, .wb-share:hover { background: rgba(30, 21, 14, .62); }
.wb-home:active, .wb-share:active { transform: scale(.97); }
.wb-home svg, .wb-share svg { width: 15px; height: 15px; flex: none; }
.wb-share svg:nth-of-type(2), .wb-share.is-done svg:nth-of-type(1) { display: none; }
.wb-share.is-done svg:nth-of-type(2) { display: block; }
.wb-home + .wb-bar__t { margin-right: auto; margin-left: 16px; }

/* ================= 书：画布与摆位 ================= */

.wb-stage { position: absolute; inset: 0; pointer-events: none; outline: none; }
.wb-box { position: absolute; left: 0; top: 0; width: 1480px; height: 900px; transform-origin: 0 0; font-size: 18px; pointer-events: auto; }
/* 书四周 32px、书口那边再多 112px 是安全垫：手偏一点点到书外，不会把整本书关掉 */
.wb-box::before { content: ""; position: absolute; inset: -32px -112px -32px -32px; }
.wb-tome { position: absolute; inset: 0; perspective: 3400px; }

/* 书下的投影：一层贴地的暗，一层柔光 */

/* 酒红亚麻布面硬壳：经纬两层纹理叠底色，外圈一道烫金压凹线 */
.wb-board { position: absolute; top: 0; height: 900px; width: 740px; z-index: 1;
  background:
    var(--wb-linen), var(--wb-linen2),
    radial-gradient(120% 90% at 30% 10%, rgba(255, 210, 180, .1), rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #6c241d, #5a1c16 60%, #4d1712); }
.wb-board--l { left: 0; border-radius: 12px 3px 3px 12px; box-shadow: 0 46px 80px -30px rgba(10, 5, 2, .78), 0 18px 34px -18px rgba(10, 5, 2, .5), 0 3px 0 rgba(30, 10, 6, .55), inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 2px 1px rgba(255, 200, 170, .14), inset 6px 0 14px -6px rgba(0, 0, 0, .5); }
.wb-board--r { left: 740px; border-radius: 3px 12px 12px 3px; box-shadow: 0 46px 80px -30px rgba(10, 5, 2, .78), 0 18px 34px -18px rgba(10, 5, 2, .5), 0 3px 0 rgba(30, 10, 6, .55), inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 2px 1px rgba(255, 200, 170, .14), inset -6px 0 14px -6px rgba(0, 0, 0, .5); }
.wb-board::before { content: ""; position: absolute; inset: 7px; border-radius: 8px 2px 2px 8px; pointer-events: none;
  border: 1px solid transparent; border-image: var(--wb-gold) 1; opacity: .55; box-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.wb-board--r::before { border-radius: 2px 8px 8px 2px; }
.wb-board::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34px; pointer-events: none; }
.wb-board--l::after { right: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .45)); }
.wb-board--r::after { left: 0; background: linear-gradient(270deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .45)); }

/* 两侧书口：多层叠纸，读到第几章，左右两摞的厚薄就跟着变 */
.wb-edges { position: absolute; top: 18px; width: 714px; height: 864px; z-index: 3; pointer-events: none; }
.wb-edges--l { left: 26px; }
.wb-edges--r { left: 740px; }
.wb-edges i { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--wb-ease); transition-delay: calc(var(--i) * 22ms);
  background: linear-gradient(180deg, #efe6d3, #e2d6bd); box-shadow: inset 0 -1px 0 rgba(120, 95, 60, .3); }
.wb-edges i:nth-child(even) { background: linear-gradient(180deg, #e6dcc6, #d4c5a6); }
.wb-edges--l i { clip-path: var(--wb-clip-l); transform: translate(calc(var(--i) * -1.15px - 1.2px), calc(var(--i) * .9px + 1px)); }
.wb-edges--r i { clip-path: var(--wb-clip-r); transform: translate(calc(var(--i) * 1.15px + 1.2px), calc(var(--i) * .9px + 1px)); }
.wb-edges i.is-on { opacity: 1; }

/* 堵头布：书脊上下各一截红白相间的小布条 */
.wb-band { position: absolute; left: 716px; width: 48px; height: 13px; z-index: 2; border-radius: 6px;
  background: repeating-linear-gradient(90deg, #8f2c22 0 3px, #efe2c8 3px 5px, #3a4a63 5px 7px, #efe2c8 7px 9px);
  box-shadow: inset 0 3px 3px rgba(255, 255, 255, .28), inset 0 -3px 4px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .4); }
.wb-band--t { top: 8px; }
.wb-band--b { bottom: 8px; }

/* 书口索引签：皮面包黄铜边的大拇指签，从上往下一阶一阶错开。
 * 几章都按 --ch-count 等分 780 高度，4 到 8 章都不戳穿书底；7 章以上自动只露短名。
 * 没选中的深色皮面配奶油字，悬停探出 6px；选中的换成象牙羊皮纸底、章色字，再往外弹 16px，投影压在邻签上。 */
.wb-tabs { --ch-gap: 8px; --ch-step: calc((780px + var(--ch-gap)) / var(--ch-count, 4)); --ch-h: calc(var(--ch-step) - var(--ch-gap));
  position: absolute; left: 1428px; top: 62px; width: 124px; height: 780px; z-index: 2; }
.wb-tab { position: absolute; left: 0; top: calc(var(--n) * var(--ch-step)); width: 104px; height: var(--ch-h); z-index: calc(10 - var(--n));
  padding: 12px 0 10px 50px; display: flex; flex-direction: column; align-items: center; gap: 9px; overflow: hidden;
  border-radius: 0 12px 12px 0; color: #fbf1dd; text-align: center;
  background: var(--wb-linen), linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0) 46%, rgba(255, 255, 255, .1) 72%, rgba(0, 0, 0, .22)), var(--c);
  box-shadow: inset 0 0 0 2px rgba(214, 178, 104, .92), inset 0 0 0 3px rgba(60, 36, 14, .55), inset -1px 2px 0 3px rgba(255, 236, 190, .22), 0 3px 0 rgba(30, 14, 6, .35), 4px 8px 14px -6px rgba(20, 10, 4, .6);
  transform: translateX(calc(var(--stair, 0) * 4px)); transition: transform .32s var(--wb-ease), filter .2s var(--wb-ease), box-shadow .2s var(--wb-ease); }
.wb-tab::before { content: ""; position: absolute; left: 47px; right: 7px; top: 7px; bottom: 7px; border: 1px dashed rgba(255, 238, 205, .45); border-left: 0; border-radius: 0 8px 8px 0; pointer-events: none; }
.wb-tab::after { content: ""; position: absolute; left: 42px; top: 2px; bottom: 2px; width: 2px; background: linear-gradient(180deg, #8f6a28, #f0d590 30%, #b48a3c 60%, #e8cc85); opacity: .85; pointer-events: none; }
.wb-tab__no { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font: 700 15px/1 var(--wb-serif); color: #3b2610; background: radial-gradient(circle at 34% 30%, #fff0c2, #d7b061 48%, #8f6a28 100%);
  box-shadow: inset 0 -2px 2px rgba(70, 44, 10, .45), 0 1px 2px rgba(0, 0, 0, .4); }
.wb-tab__t { position: relative; z-index: 1; writing-mode: vertical-rl; font: 700 clamp(12px, calc(var(--ch-h) / 9.6), 15.5px)/1 var(--wb-serif); letter-spacing: .14em; white-space: nowrap; text-shadow: 0 1px 1px rgba(0, 0, 0, .55); }
.wb-tab .wb-tab__s { display: none; }
.wb-tabs[data-dense] .wb-tab__t { display: none; }
.wb-tabs[data-dense] .wb-tab .wb-tab__s { display: block; position: relative; z-index: 1; writing-mode: vertical-rl; font: 700 13px/1 var(--wb-serif); letter-spacing: .1em; }
.wb-tab:hover { transform: translateX(calc(var(--stair, 0) * 4px + 6px)); filter: brightness(1.12); }
.wb-tab.is-on { z-index: 20; transform: translateX(calc(var(--stair, 0) * 4px + 16px)); color: var(--c); filter: none;
  background: var(--wb-noise), linear-gradient(90deg, #e2cfa6 0%, #fbf3e0 30%, #fffaf0 62%, #f1e3c4 100%);
  box-shadow: inset 0 0 0 2px #c9a24e, inset 0 0 0 3.5px rgba(122, 82, 26, .45), inset 0 0 0 6px rgba(255, 248, 228, .9), 0 4px 0 rgba(60, 36, 14, .3), 8px 14px 22px -8px rgba(20, 10, 4, .7); }
.wb-tab.is-on::before { border-color: rgba(122, 82, 26, .35); }
.wb-tab.is-on .wb-tab__t, .wb-tab.is-on .wb-tab__s { text-shadow: none; }
.wb-tab.is-on .wb-tab__no { color: #fff8e6; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .35), rgba(0, 0, 0, 0) 55%), var(--c); box-shadow: 0 0 0 2px #d9b867, 0 2px 3px rgba(0, 0, 0, .35); }
.wb-tab:active { transform: translateX(calc(var(--stair, 0) * 4px + 11px)) scale(.985); }
.wb-tab:focus-visible { outline-offset: -8px; }

/* 书沟：纸从书脊里拱出来，越往里越暗，拱起的地方有一条高光 */
.wb-gutter { position: absolute; left: 696px; top: 18px; width: 88px; height: 864px; z-index: 8; pointer-events: none;
  background: linear-gradient(90deg, rgba(60, 40, 20, 0) 0%, rgba(60, 40, 20, .05) 30%, rgba(40, 25, 12, .3) 47%, rgba(25, 15, 6, .5) 50%, rgba(40, 25, 12, .3) 53%, rgba(60, 40, 20, .05) 70%, rgba(60, 40, 20, 0) 100%); }
.wb-gutter::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(20, 10, 4, .45); }

/* 朱红丝绸书签带：从书沟里垂下来，尾巴剪成燕尾 */
.wb-ribbon { position: absolute; left: 732px; top: 690px; width: 17px; height: 248px; z-index: 40; pointer-events: none; transform: rotate(-2.2deg); transform-origin: 50% 0;
  background: linear-gradient(90deg, #8e1f16 0%, #c0392a 30%, #e05a45 46%, #b3311f 62%, #7e1a12 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0 100%);
  box-shadow: 1px 3px 4px rgba(40, 10, 5, .28); }
.wb-ribbon::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 1px, rgba(0, 0, 0, 0) 1px 3px); }

/* ================= 书页 ================= */

.wb-pg { position: absolute; top: 18px; width: 714px; height: 864px; overflow: hidden; z-index: 5; contain: layout style paint; background: #fbf8f1; }
/* 纸色：干净的象牙白，只在靠书脊那一侧和外缘加一点点自然的暗，字底下是平的 */
/* 纸面层次：外沿一点点暗，往中缝慢慢暗下去再在最里面收一道，顶上留一层柔光；字底下大面积是平的 */
.wb-pg--l { left: 26px; clip-path: var(--wb-clip-l);
  background:
    linear-gradient(90deg, rgba(120, 92, 56, .075) 0, rgba(120, 92, 56, 0) 3.5%, rgba(120, 92, 56, 0) 80%, rgba(120, 92, 56, .05) 92%, rgba(96, 70, 40, .13) 100%),
    radial-gradient(90% 40% at 46% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    var(--wb-noise), linear-gradient(180deg, #fcf9f3, #f8f3e9);
  background-size: auto, auto, 384px 384px, auto; }
.wb-pg--r { left: 740px; clip-path: var(--wb-clip-r);
  background:
    linear-gradient(90deg, rgba(96, 70, 40, .13) 0, rgba(120, 92, 56, .05) 8%, rgba(120, 92, 56, 0) 20%, rgba(120, 92, 56, 0) 96.5%, rgba(120, 92, 56, .075) 100%),
    radial-gradient(90% 40% at 54% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    var(--wb-noise), linear-gradient(180deg, #fcf9f3, #f8f3e9);
  background-size: auto, auto, 384px 384px, auto; }
.wb-pg::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wb-pg--l::before { background:
  radial-gradient(90% 60% at 18% 6%, rgba(255, 252, 240, .5), rgba(255, 252, 240, 0) 70%),
  linear-gradient(90deg, rgba(90, 66, 36, .07), rgba(0, 0, 0, 0) 6%, rgba(0, 0, 0, 0) 78%, rgba(255, 255, 255, .45) 88%, rgba(120, 90, 50, .05) 93%, rgba(60, 38, 16, .32) 100%); }
.wb-pg--r::before { background:
  radial-gradient(90% 60% at 30% 4%, rgba(255, 252, 240, .35), rgba(255, 252, 240, 0) 70%),
  linear-gradient(270deg, rgba(90, 66, 36, .07), rgba(0, 0, 0, 0) 6%, rgba(0, 0, 0, 0) 92.2%, rgba(255, 255, 255, .26) 95.4%, rgba(120, 90, 50, .06) 97.4%, rgba(60, 38, 16, .32) 100%); }
.wb-pg__in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 26px 84px 18px 72px; }
.wb-pg--r .wb-pg__in { padding: 26px 60px 18px 68px; }
.wb-pg__body { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }

/* 眉题 */
.wb-rh { flex: none; position: relative; z-index: 4; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--wb-rule); margin-bottom: 22px; font: 500 12.5px/1 var(--wb-serif); letter-spacing: .22em; color: var(--wb-ink3); }
.wb-rh::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--wb-rule2); }
.wb-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--wb-ink2); }
.wb-rh__c { flex: 1; color: var(--wb-ink2); }
.wb-back { display: none; }

/* 头像徽章：烫金圈里嵌一张圆头像，读不到图就露出底下的「风」字印 */
.wb-ava { position: relative; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #93382c, #5d1c16); box-shadow: 0 0 0 1.5px #c9a65e, 0 0 0 3px rgba(201, 166, 94, .25), 0 2px 4px rgba(60, 30, 10, .3); }
.wb-ava i { font: 700 15px/1 var(--wb-serif); font-style: normal; color: #f1dcc0; letter-spacing: 0; }
.wb-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wb--noava .wb-ava img { display: none; }

/* 页码 */
.wb-folio { flex: none; position: relative; z-index: 4; height: 26px; display: flex; align-items: flex-end; justify-content: center; gap: 12px; font: 500 13px/1 var(--wb-latin); letter-spacing: .2em; color: var(--wb-ink3); }
.wb-folio::before, .wb-folio::after { content: ""; width: 26px; height: 1px; margin-bottom: 5px; background: var(--wb-rule); }

/* 页内滚动：细细一道滚动条，上下边缘淡出，提示还有内容 */
.wb-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  margin-right: -18px; padding-right: 12px; scroll-padding: 24px 0; }
@supports not selector(::-webkit-scrollbar) {
  .wb-scroll { scrollbar-width: thin; scrollbar-color: rgba(120, 92, 58, .38) transparent; }
}
.wb-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.wb-scroll::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.wb-scroll::-webkit-scrollbar-thumb { background: rgba(120, 92, 58, .32); border-radius: 6px; }
.wb-scroll::-webkit-scrollbar-track { background: transparent; }
/* 上下边缘的淡出用两条贴边的纸色渐变，不用遮罩：遮罩会让整块正文按低分辨率合成，字发虚 */
.wb-scroll::before, .wb-scroll::after { content: ""; position: sticky; z-index: 3; display: block; pointer-events: none; opacity: 0; transition: opacity .25s var(--wb-ease); }
.wb-scroll::before { top: 0; height: 26px; margin-bottom: -26px; background: linear-gradient(180deg, #f6efe1, rgba(246, 239, 225, 0)); }
.wb-scroll::after { bottom: 0; height: 48px; margin-top: -48px; background: linear-gradient(0deg, #f2e9d8 46%, rgba(242, 233, 216, 0)); }
.wb-scroll--l::before { height: 16px; margin-bottom: -16px; background: linear-gradient(180deg, #f8f1e3, rgba(248, 241, 227, 0)); }
.wb-scroll--l::after, .wb-scroll--r::after { content: "向下滚动看完整内容 ↓"; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; font: 500 11.5px/1 var(--wb-sans); letter-spacing: .12em; color: var(--wb-ink3); }
.wb-scroll.can-up::before, .wb-scroll.can-down::after { opacity: 1; }
.wb-scroll--r.is-swapping::after { opacity: 0; transition-duration: .08s; }
.wb-scroll--l > :last-child { margin-bottom: 46px; }
.wb-scroll--r .wb-det { padding-bottom: 60px; }
.wb-scroll--r:focus-visible { outline: none; box-shadow: inset 0 2px 0 rgba(184, 135, 58, .55); }

/* ================= 左页：章首、小块 ================= */

.wb-open { flex: none; margin-bottom: 1.1em; }
.wb-kick { display: flex; align-items: baseline; gap: 14px; font: 700 .72em/1 var(--wb-serif); letter-spacing: .32em; color: var(--wb-ox); }
.wb-latin { font: italic 500 1.08em/1 var(--wb-latin); letter-spacing: .08em; color: var(--wb-ink3); font-style: normal; }
.wb-h1 { margin-top: .42em; font: 700 2.3em/1.15 var(--wb-serif); letter-spacing: .05em; color: var(--wb-ink); }
.wb-h1::after { content: ""; display: block; width: 3.2em; height: 2px; margin-top: .42em; background: var(--wb-gold); border-radius: 1px; }
.wb-lede { margin-top: .8em; max-width: 31em; font: 400 .92em/1.8 var(--wb-serif); color: var(--wb-ink2); }
.wb-open--c { margin-bottom: .75em; }
.wb-open--c .wb-h1 { margin-top: 0; font-size: 1.85em; white-space: nowrap; }
.wb-open--c .wb-h1::after { display: none; }
.wb-open__row { display: flex; align-items: center; gap: 1.1em; margin-top: .45em; }
.wb-open__row .wb-search { flex: 1; }
.wb-kick__n { margin-left: auto; font: 500 1em/1 var(--wb-serif); letter-spacing: .12em; color: var(--wb-ink3); }

.wb-sec { display: flex; align-items: baseline; gap: 12px; margin: 1em 0 .62em; font: 700 .8em/1 var(--wb-serif); letter-spacing: .26em; color: var(--wb-ink2); }
.wb-sec:first-child { margin-top: .2em; }
.wb-sec em { font: 400 .92em/1 var(--wb-serif); font-style: normal; letter-spacing: .06em; color: var(--wb-ink3); }
.wb-sec::after { content: ""; flex: 1; height: 1px; background: var(--wb-rule); transform: translateY(-.25em); }

.wb-it { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; text-align: left; border-radius: 3px; color: var(--wb-ink);
  transition: background-color .2s var(--wb-ease), box-shadow .2s var(--wb-ease), border-color .2s var(--wb-ease); }
.wb-it__n { font: 600 1.5em/1 var(--wb-latin); color: #b5a283; transition: color .2s var(--wb-ease); font-variant-numeric: lining-nums tabular-nums; }
.wb-it__t { display: block; font: 700 1em/1.35 var(--wb-serif); letter-spacing: .02em; }
.wb-it__s { display: block; margin-top: .3em; font: 400 .76em/1.55 var(--wb-sans); color: var(--wb-ink3); text-wrap: pretty; }
.wb-it.is-on .wb-it__n { color: var(--wb-ox); }
.wb-it.is-on::after { content: ""; position: absolute; right: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px 0 0 2px; background: var(--wb-ox); }
.wb-it.is-pin::after { display: none; }
.wb-it:active { transform: scale(.985); }

/* 四个台阶：一级比一级高一点，几阶都等分一行 */
.wb-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; align-items: end; }
.wb-it--rung { padding: .7em .8em .75em; border: 1px solid var(--wb-rule2); background: rgba(255, 255, 255, .22); }
.wb-it--rung:nth-child(4n+2) { padding-top: 1em; } .wb-it--rung:nth-child(4n+3) { padding-top: 1.3em; } .wb-it--rung:nth-child(4n+4) { padding-top: 1.6em; }
.wb-it--rung .wb-it__n { display: block; font: 700 .86em/1 var(--wb-serif); margin-bottom: .45em; letter-spacing: .2em; }
.wb-it--rung .wb-it__t { font-size: .96em; text-wrap: balance; }
.wb-evo__arr { position: absolute; right: -10px; top: 1.2em; width: 10px; height: 10px; z-index: 1; }
.wb-evo__arr::before { content: ""; position: absolute; left: 1px; top: 4px; width: 6px; height: 1px; background: #b09a78; }
.wb-evo__arr::after { content: ""; position: absolute; left: 3px; top: 1.5px; width: 5px; height: 5px; border-top: 1px solid #b09a78; border-right: 1px solid #b09a78; transform: rotate(45deg); }
.wb-it--rung.is-on::after { top: auto; bottom: -1px; left: 12px; right: 12px; width: auto; height: 3px; border-radius: 2px 2px 0 0; }

/* 七步：两列，单出来的最后一步占满一行 */
.wb-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wb-steps > .wb-it:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wb-it--step { min-height: 4.3em; padding: .75em 1em .75em 3.6em; border: 1px solid var(--wb-rule2); background: rgba(255, 255, 255, .22); }
.wb-it--step .wb-it__n { position: absolute; left: .62em; top: .62em; font-size: 1.62em; }
.wb-it--step .wb-it__t { font-size: 1.04em; }

.wb-it--rung:hover, .wb-it--step:hover, .wb-it--rung.is-on, .wb-it--step.is-on { background: rgba(255, 253, 247, .92); border-color: rgba(122, 43, 34, .3); box-shadow: 0 8px 18px -12px rgba(80, 50, 20, .45); }
[data-ch="method"] .wb-open { margin-bottom: .62em; }
[data-ch="method"] .wb-lede { margin-top: .45em; line-height: 1.62; }
[data-ch="method"] .wb-sec { margin: .65em 0 .45em; }
[data-ch="method"] .wb-it--rung { padding: .5em .72em .56em; }
[data-ch="method"] .wb-it--rung:nth-child(4n+2) { padding-top: .7em; }
[data-ch="method"] .wb-it--rung:nth-child(4n+3) { padding-top: .9em; }
[data-ch="method"] .wb-it--rung:nth-child(4n+4) { padding-top: 1.1em; }
[data-ch="method"] .wb-steps { gap: 7px; }
[data-ch="method"] .wb-it--step { min-height: 3.3em; padding: .5em .88em .5em 3.1em; }
[data-ch="method"] .wb-it--step .wb-it__n { left: .56em; top: .5em; font-size: 1.48em; }
[data-ch="method"] .wb-scroll--l > :last-child { margin-bottom: 12px; }

/* 第二章：紧凑两列 */
.wb-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.wb-it--row { flex-direction: row; align-items: center; gap: 12px; min-height: 2.12em; padding: .32em .7em .32em .25em; border-bottom: 1px solid var(--wb-rule2); border-radius: 0; }
.wb-it--row .wb-it__n { font-size: .95em; width: 1.6em; flex: none; }
.wb-it--row .wb-it__t { flex: 1; min-width: 0; font-size: .9em; line-height: 1.35; text-wrap: pretty; }
.wb-it__demo { flex: none; display: grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; border: 1px solid rgba(75, 93, 69, .45); color: var(--wb-sage); font-size: .74em;
  transition: background-color .15s var(--wb-ease), color .15s var(--wb-ease), transform .12s var(--wb-ease); }
.wb-it__demo:hover { background: var(--wb-sage); color: #f2f5ec; }
.wb-it__demo:active { transform: scale(.9); }
.wb-it__tag { flex: none; display: grid; place-items: center; color: #9a8466; font-size: .8em; }
.wb-it--row:hover, .wb-it--row.is-on { background: linear-gradient(90deg, rgba(255, 253, 247, .95), rgba(255, 253, 247, .6)); }
.wb-it--row.is-on::after { top: 7px; bottom: 7px; }

/* 第三章：搜索、筛选签、点线目录 */
.wb-find { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: .45em; margin-bottom: .75em; }
.wb-search { position: relative; display: flex; align-items: center; height: 2.3em; padding: 0 .4em 0 .75em; gap: .55em; border-radius: 999px;
  background: rgba(255, 253, 247, .75); border: 1px solid var(--wb-rule); color: var(--wb-ink3); box-shadow: inset 0 1px 2px rgba(80, 55, 30, .1); transition: border-color .2s var(--wb-ease), box-shadow .2s var(--wb-ease); }
.wb-search:focus-within { border-color: rgba(122, 43, 34, .45); box-shadow: inset 0 1px 2px rgba(80, 55, 30, .1), 0 0 0 3px rgba(184, 135, 58, .18); }
.wb-search svg { font-size: .95em; }
.wb-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 .86em/1 var(--wb-sans); color: var(--wb-ink); }
.wb-search input::placeholder { color: #a39579; }
.wb-search input::-webkit-search-cancel-button { display: none; }
.wb-search__x { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; color: var(--wb-ink3); font-size: .8em; }
.wb-search__x:hover { background: rgba(90, 68, 42, .1); }
.wb-search__x[hidden] { display: none; }
.wb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 2px 0; }
.wb-chips > * { flex: none; }
.wb-chips__h { margin-right: .3em; font: 700 .68em/1 var(--wb-serif); letter-spacing: .24em; color: var(--wb-ink3); }
.wb-chip { display: inline-flex; align-items: center; gap: .35em; height: 1.75em; padding: 0 .62em; border-radius: 999px; border: 1px solid var(--wb-rule); font: 500 .68em/1 var(--wb-sans); color: var(--wb-ink2);
  transition: background-color .18s var(--wb-ease), color .18s var(--wb-ease), border-color .18s var(--wb-ease); }
.wb-chip em { font-style: normal; color: var(--wb-ink3); font-size: .92em; }
.wb-chip:hover { border-color: rgba(122, 43, 34, .35); }
.wb-chip.is-on { background: #3a2c20; border-color: #3a2c20; color: #f6ecda; }
.wb-chip.is-on em { color: #d6c19a; }
.wb-chip:active { transform: scale(.96); }

.wb-scroll--toc { margin-top: .1em; }
.wb-toc { list-style: none; border-top: 1px solid var(--wb-rule); }
.wb-toc li[hidden] { display: none; }
.wb-it--toc { flex-direction: row; align-items: center; gap: .7em; padding: .15em .7em .15em .3em; border-radius: 0; border-bottom: 1px solid var(--wb-rule2); }
.wb-it--toc .wb-it__n { flex: none; min-width: 1.6em; font-size: .82em; }
.wb-it--toc .wb-it__t { flex: 0 1 auto; min-width: 0; max-width: 76%; font-size: .88em; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-lead { flex: 1; min-width: 1em; height: 0; border-bottom: 1.5px dotted rgba(110, 85, 52, .42); transform: translateY(.3em); }
.wb-it__c { flex: none; font: 400 .66em/1 var(--wb-sans); font-style: normal; color: var(--wb-ink3); letter-spacing: .04em; white-space: nowrap; }
.wb-it--toc:hover, .wb-it--toc.is-on { background: linear-gradient(90deg, rgba(255, 253, 247, .95), rgba(255, 253, 247, .55)); }
.wb-it--toc.is-on .wb-it__t { color: var(--wb-ox); }
.wb-it--toc.is-on::after { top: 5px; bottom: 5px; }
.wb-empty { padding: 2em 1em; text-align: center; font: 400 .86em/1.8 var(--wb-serif); color: var(--wb-ink3); }
.wb-empty[hidden] { display: none; }

/* 第五章：一键全装、七个技能、四份开工帖 */
.wb-it--pack { margin: .2em 0 .5em; padding: 1.05em 1.2em 1.1em; border-radius: 4px; color: #f3e8d2; display: grid; justify-items: start; gap: .5em;
  background: radial-gradient(120% 140% at 0% 0%, rgba(217, 187, 114, .2), rgba(0, 0, 0, 0) 55%), linear-gradient(160deg, #33291f, #231b14);
  box-shadow: inset 0 0 0 1px rgba(217, 187, 114, .4), 0 14px 26px -18px rgba(30, 20, 10, .9); transition: transform .2s var(--wb-ease), box-shadow .2s var(--wb-ease); }
.wb-it--pack:hover, .wb-it--pack.is-on { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(232, 207, 138, .8), 0 18px 30px -18px rgba(30, 20, 10, .95); }
.wb-it--pack.is-on::after { background: #e8cf8a; top: 14px; bottom: 14px; }
.wb-pack__k { display: inline-flex; align-items: center; gap: .45em; font: 700 .7em/1 var(--wb-serif); letter-spacing: .28em; color: #e0c27a; }
.wb-it--pack .wb-it__t { font-size: 1.22em; color: #fff6e2; }
.wb-it--pack .wb-it__t em { margin-left: .6em; font: 500 .62em/1 "Cascadia Mono", Consolas, Menlo, monospace; font-style: normal; color: #cbb88f; letter-spacing: .02em; }
.wb-it--pack .wb-it__s { margin: 0; color: #cbbd9f; font-size: .8em; }
.wb-pack__cmdrow { display: flex; align-items: center; gap: .55em; width: 100%; max-width: 100%; padding: .42em .5em .42em .75em; border-radius: 3px; background: rgba(0, 0, 0, .32); }
.wb-pack__cmd { flex: 1; min-width: 0; color: #f6e7c2; font: 500 .73em/1.5 "Cascadia Mono", Consolas, Menlo, monospace; white-space: normal; overflow-wrap: anywhere; }
.wb-pack__cp { flex: none; display: inline-flex; align-items: center; gap: .3em; height: 2em; padding: 0 .75em; border-radius: 999px; background: #f3e7cf; color: #2a231c; font: 600 .7em/1 var(--wb-sans); cursor: pointer;
  transition: background-color .18s var(--wb-ease), transform .12s var(--wb-ease); }
.wb-pack__cp:hover { background: #fff6e4; }
.wb-pack__cp:active { transform: scale(.96); }
.wb-pack__cp svg + svg { display: none; }
.wb-pack__cp.is-done { background: var(--wb-sage); color: #f2f5ec; }
.wb-pack__cp.is-done svg:first-child { display: none; }
.wb-pack__cp.is-done svg + svg { display: block; }
.wb-pack__st { padding: .3em .7em; border-radius: 999px; border: 1px dashed rgba(224, 194, 122, .55); color: #e0c27a; font: 500 .68em/1.3 var(--wb-sans); }
.wb-pack__st.is-live { border-style: solid; background: rgba(140, 170, 120, .2); color: #c8e0b6; border-color: rgba(168, 199, 154, .55); }
.wb-skgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wb-it--skill { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: .7em; row-gap: .25em; align-items: baseline; padding: .65em .8em .7em; border: 1px solid var(--wb-rule2); background: rgba(255, 255, 255, .26); border-radius: 3px; }
.wb-sk__no { grid-row: 1 / span 2; align-self: center; font: 600 1.1em/1 var(--wb-latin); color: #b5a283; transition: color .2s var(--wb-ease); }
.wb-sk__id { min-width: 0; font: 600 .72em/1.3 "Cascadia Mono", Consolas, Menlo, monospace; color: var(--wb-ox); white-space: nowrap; overflow-wrap: anywhere; }
.wb-it--skill .wb-it__t { grid-column: 2 / span 2; font-size: .86em; line-height: 1.4; text-wrap: balance; }
.wb-sk__step { grid-column: 3; grid-row: 1; justify-self: end; font: 500 .64em/1 var(--wb-sans); color: var(--wb-ink3); white-space: nowrap; }
.wb-it--skill:hover, .wb-it--skill.is-on { background: rgba(255, 253, 247, .92); border-color: rgba(122, 43, 34, .3); box-shadow: 0 8px 18px -12px rgba(80, 50, 20, .45); }
.wb-it--skill.is-on .wb-sk__no { color: var(--wb-ox); }
.wb-kits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wb-it--kit { padding: .7em .85em .75em; border-radius: 3px; display: grid; gap: .3em; background: var(--wb-noise), linear-gradient(160deg, #fffdf7, #f6efe0); border: 1px solid rgba(96, 72, 44, .16);
  box-shadow: 0 1px 1px rgba(80, 55, 30, .1); transition: transform .2s var(--wb-ease), box-shadow .2s var(--wb-ease); }
.wb-it--kit:hover, .wb-it--kit.is-on { transform: translateY(-2px); box-shadow: 0 1px 1px rgba(80, 55, 30, .12), 0 14px 22px -14px rgba(80, 55, 30, .55); }
.wb-it--kit.is-on { border-color: rgba(122, 43, 34, .35); }
.wb-it--kit.is-on::after { top: auto; bottom: -1px; left: 1em; right: 1em; width: auto; height: 3px; border-radius: 2px 2px 0 0; }
.wb-kit__tag { font: 700 .74em/1 var(--wb-serif); letter-spacing: .24em; color: var(--wb-ox); }
.wb-it--kit .wb-it__t { font-size: .92em; }
.wb-kit__place { display: flex; align-items: center; gap: .4em; font: 500 .66em/1.4 var(--wb-sans); color: var(--wb-ink3); }
.wb-note { margin-top: 1.1em; padding-left: .9em; border-left: 2px solid #cdb995; font: 400 .8em/1.8 var(--wb-serif); color: var(--wb-ink3); }

/* 点一下就钉住：条目上挂一枚小签，再点一下松开；钉住期间鼠标路过别的条不换右页 */
.wb-pinmark { position: absolute; right: 8px; top: 7px; z-index: 2; display: none; align-items: center; gap: 3px; height: 18px; padding: 0 7px 0 5px; border-radius: 999px;
  background: var(--wb-ox); color: #fbefe0; font: 600 10.5px/1 var(--wb-sans); letter-spacing: .06em; box-shadow: 0 2px 6px -2px rgba(60, 20, 10, .6); pointer-events: none; }
.wb-pinmark svg { font-size: 11px; }
.wb-it.is-pin .wb-pinmark { display: inline-flex; }
.wb-it--row .wb-pinmark { top: 50%; right: 12px; transform: translateY(-50%); }
.wb-it--toc .wb-pinmark { position: static; flex: none; }
.wb-it--toc.is-pin .wb-it__c { display: none; }
.wb-it--skill.is-pin .wb-sk__step, .wb-it--rung.is-pin .wb-it__n + .wb-it__t { }
.wb-it--skill.is-pin .wb-sk__step { visibility: hidden; }
.wb-it--step.is-pin { padding-right: 5.2em; }
.wb-it--kit.is-pin .wb-kit__tag { padding-right: 5em; }
.wb-it--row.is-pin .wb-it__t { padding-right: 4.4em; }
.wb-it--row.is-pin .wb-it__demo, .wb-it--row.is-pin .wb-it__tag { visibility: hidden; }
.wb-it.is-pin { box-shadow: inset 0 0 0 1.5px rgba(122, 43, 34, .4); }
.wb-it--pack.is-pin .wb-pinmark { background: #e0c27a; color: #2a1d10; }
.wb--single .wb-pinmark { display: none !important; }

/* ================= 右页：正文 ================= */

.wb-det { padding-top: 2px; }
.wb-det__o { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 700 .7em/1 var(--wb-serif); letter-spacing: .26em; color: var(--wb-ox); }
.wb-det__o > span:last-child { color: var(--wb-ink3); letter-spacing: .16em; font-weight: 500; }
.wb-det__o em { font: 600 1.15em/1 var(--wb-latin); font-style: normal; letter-spacing: .06em; }
.wb-det__stage { display: inline-flex; align-items: center; gap: .3em; padding: .45em .5em .45em .8em; border-radius: 999px; border: 1px solid var(--wb-rule); font: 500 .96em/1 var(--wb-sans); letter-spacing: .04em; color: var(--wb-ink2);
  transition: background-color .2s var(--wb-ease); }
.wb-det__stage:hover { background: rgba(255, 253, 247, .9); }
.wb-det__pre { margin-top: 1em; font: 500 .82em/1 var(--wb-serif); letter-spacing: .2em; color: var(--wb-ink3); }
.wb-det__t { margin-top: .5em; font: 700 1.72em/1.32 var(--wb-serif); letter-spacing: .03em; text-wrap: balance; }
.wb-det__sub { margin-top: .45em; font: 400 .86em/1.6 var(--wb-serif); color: var(--wb-ink3); }
.wb-det__lead { margin-top: .6em; font: 600 1.02em/1.75 var(--wb-serif); color: var(--wb-ink2); }
.wb-det__p { margin-top: .7em; font: 400 .98em/1.92 var(--wb-serif); color: #3b3127; text-align: justify; }
.wb-det__h { display: flex; align-items: center; gap: .5em; margin-top: 1.5em; font: 700 .78em/1 var(--wb-serif); letter-spacing: .24em; color: var(--wb-ink2); }
.wb-det__h em { font-style: normal; font-weight: 400; letter-spacing: .08em; color: var(--wb-ink3); }
.wb-det__h svg { font-size: 1.15em; color: var(--wb-sage); }

.wb-kv { margin-top: 1em; display: grid; gap: .55em; }
.wb-kv > div { display: grid; grid-template-columns: 5.2em 1fr; gap: .8em; padding-bottom: .55em; border-bottom: 1px dashed var(--wb-rule2); }
.wb-kv dt { font: 700 .78em/2.2 var(--wb-serif); letter-spacing: .18em; color: var(--wb-ink3); }
.wb-kv dd { font: 400 .92em/1.85 var(--wb-serif); color: #3b3127; }

.wb-ex { margin-top: .9em; padding: .75em 1em .8em; border-left: 2px solid #c6b08a; background: rgba(255, 253, 247, .5); font: 400 .9em/1.85 var(--wb-serif); color: var(--wb-ink2); }
.wb-ex b { display: block; margin-bottom: .15em; font: 700 .82em/1.6 var(--wb-serif); letter-spacing: .2em; color: var(--wb-ox); }

/* 红绿对比：踩坑时和现在这样做 */
.wb-vs { margin-top: 1.1em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wb-vs > div { padding: .75em .9em .85em; border-radius: 3px; font: 400 .84em/1.75 var(--wb-sans); }
.wb-vs__bad { background: repeating-linear-gradient(-45deg, rgba(140, 59, 43, .045) 0 5px, rgba(0, 0, 0, 0) 5px 10px), var(--wb-bad-bg); color: #6b4639; border: 1px solid rgba(140, 59, 43, .2); }
.wb-vs__good { background: var(--wb-sage-bg); color: #33432e; border: 1px solid rgba(75, 93, 69, .3); }
.wb-vs__h { display: flex; align-items: center; gap: .4em; margin-bottom: .3em; font: 700 .88em/1.4 var(--wb-serif); letter-spacing: .14em; }
.wb-vs__bad .wb-vs__h { color: var(--wb-bad); }
.wb-vs__good .wb-vs__h { color: var(--wb-sage); }

.wb-acts { margin-top: .7em; list-style: none; counter-reset: a; display: grid; gap: .25em; }
.wb-acts li { counter-increment: a; position: relative; padding-left: 2em; font: 400 .9em/1.8 var(--wb-sans); color: #4a3f33; }
.wb-acts li::before { content: counter(a); position: absolute; left: 0; top: .32em; width: 1.35em; height: 1.35em; border-radius: 50%; border: 1px solid #b19d7e; font: 600 .76em/1.3em var(--wb-latin); text-align: center; color: #8a7a62; }

/* 带横格线的提示词卡：每行字落在一条格线上 */
.wb-say { --lh: 1.95em; position: relative; margin-top: 1.25em; padding: .95em 1.15em 1em 1.35em; border-radius: 2px;
  background: #fffdf8; border: 1px solid rgba(96, 72, 44, .2);
  box-shadow: 0 10px 22px -16px rgba(60, 40, 20, .55), 4px 4px 0 -1px #f3eadb, 4px 4px 0 0 rgba(96, 72, 44, .14); }
.wb-say::before { content: ""; position: absolute; left: 0; top: .9em; bottom: .9em; width: 3px; background: var(--wb-ox); border-radius: 0 2px 2px 0; }
.wb-say__k { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 .74em/1 var(--wb-serif); letter-spacing: .22em; color: var(--wb-ox); }
.wb-say__t { margin-top: .5em; font: 400 .94em/var(--lh) var(--wb-serif); color: var(--wb-ink);
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) calc(var(--lh) - 1px), rgba(122, 150, 180, .3) calc(var(--lh) - 1px), rgba(122, 150, 180, .3) var(--lh));
  background-size: 100% var(--lh); background-position: 0 -.12em; }
.wb-say--big .wb-say__t { font-size: .98em; }
.wb-copy { display: inline-flex; align-items: center; gap: .45em; height: 2.25em; padding: 0 1em; border-radius: 999px; background: #2e231a; color: #f6ecda; flex: none;
  font: 500 .96em/1 var(--wb-sans); letter-spacing: .06em; transition: transform .12s var(--wb-ease), background-color .2s var(--wb-ease); }
.wb-copy:hover { background: #46362a; }
.wb-copy:active { transform: scale(.96); }
.wb-copy svg + svg { display: none; }
.wb-copy.is-done, .wb-btn.is-done { background: var(--wb-sage); color: #f2f5ec; }
.wb-copy.is-done svg:first-child, .wb-btn.is-done svg:first-of-type { display: none; }
.wb-copy.is-done svg + svg, .wb-btn.is-done svg + svg { display: block; }

/* 跳转纽扣：一颗缝在页边的黄铜扣 */
.wb-jumps { margin-top: 1.1em; display: grid; gap: .8em; }
.wb-knob { display: flex; align-items: center; gap: .9em; width: 100%; padding: .7em 1em .7em .75em; border-radius: 999px; text-align: left;
  border: 1px solid rgba(96, 72, 44, .22); background: linear-gradient(180deg, rgba(255, 253, 247, .9), rgba(246, 238, 224, .9));
  box-shadow: 0 6px 14px -12px rgba(60, 40, 20, .6); transition: transform .14s var(--wb-ease), box-shadow .2s var(--wb-ease), border-color .2s var(--wb-ease); }
.wb-knob:hover { border-color: rgba(122, 43, 34, .4); box-shadow: 0 10px 20px -12px rgba(60, 40, 20, .6); }
.wb-knob:active { transform: scale(.985); }
.wb-knob__b { position: relative; flex: none; width: 2.1em; height: 2.1em; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f8e6ae, #c9a24e 45%, #8a6a2c 100%); box-shadow: inset 0 -2px 3px rgba(60, 40, 10, .45), 0 2px 3px rgba(60, 40, 10, .35); }
.wb-knob__b::before, .wb-knob__b::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #5b4317; box-shadow: 8px 0 0 #5b4317, 0 8px 0 #5b4317, 8px 8px 0 #5b4317; left: calc(50% - 6px); top: calc(50% - 6px); }
.wb-knob__b::after { background: none; width: 12px; height: 12px; left: calc(50% - 6px); top: calc(50% - 6px); box-shadow: none; border-top: 1px solid rgba(91, 67, 23, .6); border-left: 1px solid rgba(91, 67, 23, .6); transform: rotate(45deg) translate(1px, 1px); border-radius: 0; }
.wb-knob__b i { position: absolute; inset: 3px; border-radius: 50%; border: 1px solid rgba(91, 67, 23, .35); }
.wb-knob__t { flex: 1; min-width: 0; display: grid; gap: .25em; }
.wb-knob__t small { font: 500 .7em/1 var(--wb-sans); letter-spacing: .12em; color: var(--wb-ink3); }
.wb-knob__t b { font: 700 .9em/1.4 var(--wb-serif); color: var(--wb-ink); }
.wb-knob__t em { margin-right: .5em; font: 600 1.02em/1 var(--wb-latin); font-style: normal; color: var(--wb-ox); }
.wb-knob > svg { color: var(--wb-ink3); transition: transform .2s var(--wb-ease); }
.wb-knob:hover > svg { transform: translateX(3px); }
.wb-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wb-also > span { margin-right: .4em; font: 700 .7em/1 var(--wb-serif); letter-spacing: .2em; color: var(--wb-ink3); }
.wb-chipgo { display: inline-flex; align-items: center; gap: .45em; min-height: 2.1em; padding: .3em .85em; border-radius: 999px; border: 1px solid var(--wb-rule); font: 500 .76em/1.3 var(--wb-sans); color: var(--wb-ink2);
  transition: background-color .2s var(--wb-ease), border-color .2s var(--wb-ease); }
.wb-chipgo em { font: 600 1em/1 var(--wb-latin); font-style: normal; color: var(--wb-ox); }
.wb-chipgo:hover { background: rgba(255, 253, 247, .9); border-color: rgba(122, 43, 34, .35); }
.wb-chipgo--kit { justify-self: start; font-size: .8em; }
.wb-tech { margin-top: 1.2em; padding-top: .8em; border-top: 1px dashed var(--wb-rule); font: 400 .78em/1.8 var(--wb-sans); color: var(--wb-ink3); }
.wb-tech b { margin-right: .7em; font: 700 1em/1 var(--wb-serif); letter-spacing: .18em; color: var(--wb-ink2); }

/* 多想两步：横向三步时间轴。标签是足宽胶囊、白字不折行；连线穿过每个圆点正中 */
.wb-chain { margin-top: 1.2em; list-style: none; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: c; }
.wb-chain::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, #c3ad89, rgba(140, 59, 43, .55)); }
.wb-chain li { position: relative; display: grid; align-content: start; gap: .6em; padding-top: 1.55em; }
.wb-chain li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #fffdf8; border: 2px solid #c3ad89; box-sizing: border-box; }
.wb-chain li:nth-child(2)::before { border-color: #b07a56; }
.wb-chain li:nth-child(3)::before { border-color: var(--wb-bad); background: #f6e4dc; }
.wb-chain span { justify-self: start; display: inline-flex; align-items: center; height: 1.9em; padding: 0 .85em; border-radius: 999px; white-space: nowrap; background: #fffdf8; border: 1px solid #c3ad89; font: 700 .72em/1 var(--wb-serif); letter-spacing: .12em; color: var(--wb-ink2); }
.wb-chain li:nth-child(3) span { border-color: rgba(140, 59, 43, .5); color: var(--wb-bad); background: #fbeee8; }
.wb-chain p { padding: .75em .85em .85em; border-radius: 4px; background: rgba(255, 253, 247, .7); border: 1px solid var(--wb-rule2); font: 400 .9em/1.8 var(--wb-serif); color: #3b3127; }
.wb-chain li:nth-child(3) p { border-color: rgba(140, 59, 43, .22); background: rgba(251, 238, 232, .6); }
.wb-fix { margin-top: 1.1em; padding: .8em 1em; border-radius: 3px; background: var(--wb-sage-bg); border: 1px solid rgba(75, 93, 69, .3); font: 400 .9em/1.8 var(--wb-serif); color: #33432e; }
.wb-fix b { display: block; font: 700 .82em/1.6 var(--wb-serif); letter-spacing: .2em; color: var(--wb-sage); }

/* 护栏与出处 */
.wb-guard { margin-top: .2em; padding: 0 0 .1em; }
.wb-guard p { margin-top: .6em; padding: .75em 1em; border-radius: 3px; border: 1px solid rgba(75, 93, 69, .28); background: var(--wb-sage-bg); font: 400 .9em/1.85 var(--wb-serif); color: #33432e; }
.wb-refs { margin-top: .7em; list-style: none; border-top: 1px solid var(--wb-rule2); }
.wb-refs a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 1em; align-items: center; padding: .6em .3em .6em .1em; border-bottom: 1px solid var(--wb-rule2); text-decoration: none;
  transition: background-color .2s var(--wb-ease); }
.wb-refs__t { font: 500 .86em/1.5 var(--wb-serif); color: var(--wb-ink); text-decoration: underline; text-decoration-color: rgba(122, 43, 34, .3); text-underline-offset: .22em; }
.wb-refs__h { grid-row: 2; font: 400 .7em/1.6 var(--wb-latin); letter-spacing: .04em; color: var(--wb-ink3); }
.wb-refs a svg { grid-row: 1 / span 2; grid-column: 2; color: var(--wb-ink3); transition: transform .2s var(--wb-ease), color .2s var(--wb-ease); }
.wb-refs a:hover { background: rgba(255, 253, 247, .8); }
.wb-refs a:hover .wb-refs__t { text-decoration-color: var(--wb-ox); }
.wb-refs a:hover svg { color: var(--wb-ox); transform: translate(2px, -2px); }
.wb-pn { margin-top: 1.6em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wb-pn button { display: flex; align-items: center; gap: .6em; padding: .7em .8em; border-radius: 3px; border: 1px solid var(--wb-rule2); color: var(--wb-ink2); transition: background-color .2s var(--wb-ease), border-color .2s var(--wb-ease); }
.wb-pn button:last-child { justify-content: flex-end; text-align: right; }
.wb-pn button:hover { background: rgba(255, 253, 247, .85); border-color: var(--wb-rule); }
.wb-pn span { display: grid; gap: .2em; min-width: 0; font: 600 .78em/1.4 var(--wb-serif); }
.wb-pn small { font: 400 .86em/1 var(--wb-sans); letter-spacing: .14em; color: var(--wb-ink3); }

/* 第四章：目录树和模板全文 */
.wb-kitacts { margin-top: 1em; display: flex; flex-wrap: wrap; gap: 10px; }
.wb-btn { display: inline-flex; align-items: center; gap: .5em; height: 2.35em; padding: 0 1.1em; border-radius: 999px; border: 1px solid rgba(96, 72, 44, .28); color: var(--wb-ink); text-decoration: none;
  font: 500 .82em/1 var(--wb-sans); letter-spacing: .05em; transition: transform .12s var(--wb-ease), background-color .2s var(--wb-ease); }
.wb-btn:hover { background: rgba(255, 253, 247, .9); }
.wb-btn:active { transform: scale(.97); }
.wb-btn svg + svg { display: none; }
.wb-btn--ink { background: #2e231a; color: #f6ecda; border-color: #2e231a; }
.wb-btn--ink:hover { background: #46362a; }
.wb-btn--sm { height: 2.15em; font-size: .76em; }
.wb-tree { margin-top: .7em; padding: .8em .9em; border-radius: 3px; background: #2b241d; color: #e9dfcb; font: 400 .8em/1 var(--wb-sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 20px -16px rgba(30, 20, 10, .7); }
.wb-tree__r { position: relative; display: flex; align-items: baseline; gap: .55em; padding: .42em 0 .42em calc(var(--d) * 1.5em); }
.wb-tree__r::before { content: ""; position: absolute; left: calc(var(--d) * 1.5em - .9em); top: 0; bottom: 50%; width: .6em; border-left: 1px solid rgba(233, 223, 203, .22); border-bottom: 1px solid rgba(233, 223, 203, .22); }
.wb-tree__r[style*="--d:0"]::before { display: none; }
.wb-tree__r svg { align-self: center; color: #d8b86e; }
.wb-tree__r b { font: 600 1em/1.4 "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace; color: #f6ecda; white-space: nowrap; }
.wb-tree__r span { color: #b9ad97; line-height: 1.5; }
.wb-md { margin-top: .6em; font: 400 .88em/1.85 var(--wb-serif); color: #3b3127; }
.wb-md h4, .wb-md h5, .wb-md h6 { margin: 1.2em 0 .4em; font: 700 1.04em/1.5 var(--wb-serif); color: var(--wb-ink); letter-spacing: .04em; }
.wb-md h5 { font-size: .98em; color: var(--wb-ox); }
.wb-md h6 { font-size: .94em; }
.wb-md p { margin: .45em 0; }
.wb-md ul, .wb-md ol { margin: .4em 0 .6em; padding-left: 1.5em; }
.wb-md li { margin: .2em 0; }
.wb-md li::marker { color: #a8916c; }
.wb-md blockquote { margin: .5em 0; padding: .5em .9em; border-left: 2px solid #c6b08a; background: rgba(255, 253, 247, .55); color: var(--wb-ink2); }
.wb-md hr { margin: 1.2em 0; border: 0; height: 1px; background: var(--wb-rule); }
.wb-md code { padding: .08em .35em; border-radius: 3px; background: rgba(96, 72, 44, .09); font: .92em/1 "Cascadia Mono", Consolas, Menlo, monospace; }
.wb-md pre { margin: .6em 0; padding: .7em .9em; overflow: auto; border-radius: 3px; background: rgba(96, 72, 44, .07); font: .82em/1.7 "Cascadia Mono", Consolas, Menlo, monospace; white-space: pre; }

/* ================= 第二章右页：生硬突变和顺手交代对比器 ================= */

.wb-lab { margin-top: 1.1em; padding: .9em 1em 1em; border-radius: 4px; background: #2a231c; color: #eadfcb; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 26px -18px rgba(30, 20, 10, .8); }
.wb-lab__k { font: 700 .7em/1 var(--wb-serif); letter-spacing: .26em; color: #d8b86e; }
.wb-lab__lanes { margin-top: .75em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wb-lab__h { display: flex; align-items: center; gap: .4em; min-height: 1.3em; margin-bottom: .45em; font: 700 .74em/1.3 var(--wb-serif); letter-spacing: .1em; }
.is-bad > .wb-lab__h { color: #e48f78; }
.is-good > .wb-lab__h { color: #a9c79a; }
.wb-lab__box { position: relative; height: 11.7em; border-radius: 3px; overflow: hidden; background: #f3ecdf; color: #3a2e23; font: 400 .72em/1.4 var(--wb-sans); }
.wb-lab__acts { margin-top: .8em; display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.wb-lab__acts .wb-btn--ink { background: #f3e7cf; color: #2a231c; border-color: #f3e7cf; }
.wb-lab__acts .wb-btn--ink:hover { background: #fff6e4; }
.wb-lab__hint { font: 400 .72em/1.5 var(--wb-sans); color: #b8ab95; }

/* 演示一：从哪来、到哪去 */
.lab-trg { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: #2e231a; color: #f6ecda; font-size: .95em; }
.lab-menu { position: absolute; width: 58%; padding: 9px 10px; border-radius: 6px; background: #fff; box-shadow: 0 10px 22px -10px rgba(40, 25, 10, .5); display: grid; gap: 6px; }
.lab-menu i { height: 6px; border-radius: 3px; background: #d9cdb8; }
.lab-menu i:nth-child(2) { width: 70%; } .lab-menu i:nth-child(3) { width: 45%; }
.is-bad .lab-menu { left: 21%; top: 22%; display: none; }
.is-bad .is-on .lab-menu { display: grid; }
.is-good .lab-menu { left: 10px; bottom: 42px; transform-origin: 0 100%; transform: scale(.4); opacity: 0; transition: transform .26s var(--wb-ease), opacity .18s var(--wb-ease); }
.is-good .is-on .lab-menu { transform: none; opacity: 1; }

/* 演示二：一套曲线 */
.lab-trk { position: absolute; left: 12px; right: 12px; height: 2px; background: #d9cdb8; border-radius: 1px; }
.lab-trk:nth-child(1) { top: 36%; } .lab-trk:nth-child(2) { top: 66%; }
.lab-dot { position: absolute; left: 0; right: 14px; top: -6px; height: 14px; }
.lab-dot::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #7a2b22; box-shadow: 0 2px 4px rgba(40, 25, 10, .3); }
.lab-dot--2::before { background: #4b5d45; }
.is-on .lab-dot { transform: translateX(100%); }
.is-bad .lab-dot { transition: transform .95s linear; }
.is-bad .lab-dot--2 { transition: transform .3s cubic-bezier(.7, 0, 1, .5); }
.is-good .lab-dot { transition: transform .42s var(--wb-ease); }

/* 演示三：快和慢 */
.lab-tabs { position: absolute; left: 10px; right: 10px; top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: .95em; color: #8a7b67; }
.lab-tabs span { padding: 5px 0 9px; }
.lab-tabs span.is-on { color: #2a231c; font-weight: 600; }
.lab-ind { position: absolute; left: 0; bottom: 0; width: 33.33%; height: 2px; background: #7a2b22; }
.is-good .lab-ind { transform: translateX(calc(var(--at, 0) * 100%)); transition: transform .18s var(--wb-ease); }
.lab-pane { position: absolute; left: 12px; right: 12px; top: 50px; bottom: 12px; display: grid; gap: 8px; align-content: start; }
.lab-pane b { font-weight: 600; font-size: 1.02em; color: #2a231c; }
.lab-pane i { height: 7px; border-radius: 4px; background: #ded3bf; }

/* 演示四：半路掉头 */
.lab-rail { position: absolute; left: 14px; right: 14px; top: calc(50% - 24px); height: 30px; border-radius: 999px; background: #e4dac8; }
.lab-puck { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #2e231a; box-shadow: 0 2px 4px rgba(40, 25, 10, .35); }
.lab-ends { position: absolute; left: 16px; right: 16px; top: calc(50% + 14px); display: flex; justify-content: space-between; color: #8a7b67; }

/* 演示五：动宽度和动缩放 */
.lab-bar { position: absolute; left: 12px; top: 24px; height: 44px; border-radius: 4px; background: #7a2b22; color: #fbefe0; overflow: hidden; display: flex; align-items: center; padding: 0 10px; }
.lab-bar b { font-weight: 500; line-height: 1.3; }
.is-bad .lab-bar { width: 32%; }
.is-good .lab-bar { width: calc(100% - 24px); background: none; padding: 0; color: #3a2e23; overflow: visible; }
.is-good .lab-bar::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: #4b5d45; transform-origin: 0 50%; transform: scaleX(.32); transition: transform .64s var(--wb-ease); }
.is-good .is-on .lab-bar::before { transform: scaleX(1); }
.is-good .lab-bar b { position: absolute; left: 0; top: 52px; white-space: nowrap; }
.lab-cnt { position: absolute; left: 12px; bottom: 10px; color: #8a7b67; }
.lab-cnt em { font-style: normal; font-weight: 600; color: #7a2b22; }
.is-good .lab-cnt em { color: #4b5d45; }

/* 演示六：减少动态效果 */
.lab-tag { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; background: #e4dac8; color: #5a4d3f; font-size: .9em; }
.lab-card { position: absolute; left: 22%; right: 22%; top: 42%; height: 40%; border-radius: 6px; background: #fff; box-shadow: 0 10px 20px -10px rgba(40, 25, 10, .5); display: grid; align-content: center; gap: 6px; padding: 0 12px; opacity: 0; }
.lab-card i { height: 6px; border-radius: 3px; background: #d9cdb8; }
.lab-card i + i { width: 60%; }
.is-good .lab-card { transition: opacity .26s var(--wb-ease); }
.is-good .is-on .lab-card { opacity: 1; }

/* 演示七：哪里都成立 */
.lab-frame { position: absolute; left: 10px; top: 10px; bottom: 34px; width: calc(100% - 20px); border-radius: 5px; background: #fff; border: 1px solid #ddd2bf; overflow: hidden; padding: 8px 10px; transition: background-color .3s var(--wb-ease), border-color .3s var(--wb-ease); }
.lab-mini b, .lab-mini span { transition: color .3s var(--wb-ease); }
.is-on .lab-frame { width: 52%; background: #1f1a15; border-color: #1f1a15; }
.lab-mini b { display: block; font-size: 1.05em; color: #2a231c; }
.lab-mini span { display: block; margin-top: 4px; color: #6a5d4d; line-height: 1.45; }
.is-bad .is-on .lab-mini span { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.is-bad .is-on .lab-mini b { color: #2c2620; }
.is-bad .is-on .lab-mini span { color: #2e2822; }
.is-good .is-on .lab-mini b { color: #f3ead9; }
.is-good .is-on .lab-mini span { color: #cbbfa9; }
.lab-state { position: absolute; left: 10px; bottom: 9px; color: #8a7b67; }

/* 减少动态效果时：右边的正例照规矩只交代结果；左边的反例由脚本单独演，保住对比 */
.wb-lab.is-reduce .is-good .wb-lab__box * { transition-duration: .01ms !important; }

/* ================= 翻页 ================= */

.wb-leaf { position: absolute; top: 18px; width: 714px; height: 864px; transform-style: preserve-3d; pointer-events: none; }
.wb-leaf--f { left: 740px; transform-origin: 0 50%; }
.wb-leaf--b { left: 26px; transform-origin: 100% 50%; }
.wb-leaf > .wb-pg { left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.wb-leaf__back { transform: rotateY(180deg); }
.wb-leaf__face::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; z-index: 7; pointer-events: none; }
.wb-leaf__face.wb-pg--r::after { left: 0; background: linear-gradient(90deg, rgba(25, 15, 6, .5), rgba(40, 25, 12, .3) 6%, rgba(60, 40, 20, .05) 40%, rgba(60, 40, 20, 0)); }
.wb-leaf__face.wb-pg--l::after { right: 0; background: linear-gradient(270deg, rgba(25, 15, 6, .5), rgba(40, 25, 12, .3) 6%, rgba(60, 40, 20, .05) 40%, rgba(60, 40, 20, 0)); }
.wb-leaf__sheen { position: absolute; inset: -10% -30%; z-index: 6; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 252, 240, .7) 48%, rgba(120, 90, 50, .18) 56%, rgba(255, 255, 255, 0) 70%); }
.wb-leaf__dim { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(90deg, rgba(40, 25, 10, .28), rgba(40, 25, 10, .06)); }
.wb-leaf--b .wb-leaf__dim { background: linear-gradient(270deg, rgba(40, 25, 10, .28), rgba(40, 25, 10, .06)); }
.wb-pg__in--blank { padding: 100px 70px 22px; justify-content: space-between; }
.wb-blank { display: grid; gap: 22px; opacity: .55; }
.wb-blank i { height: 7px; border-radius: 4px; background: rgba(120, 95, 60, .14); }
.wb-blank i:nth-child(3n) { width: 72%; } .wb-blank i:nth-child(5n) { width: 54%; }
.wb-shade { position: absolute; top: 18px; width: 714px; height: 864px; z-index: 7; pointer-events: none; opacity: 0; }
.wb-shade--r { left: 740px; clip-path: var(--wb-clip-r); background: linear-gradient(90deg, rgba(30, 18, 8, .42), rgba(30, 18, 8, .08) 45%, rgba(30, 18, 8, 0)); }
.wb-shade--l { left: 26px; clip-path: var(--wb-clip-l); background: linear-gradient(270deg, rgba(30, 18, 8, .42), rgba(30, 18, 8, .08) 45%, rgba(30, 18, 8, 0)); }
.wb-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 251, 238, .55) 50%, rgba(255, 255, 255, 0)); }

/* 翻开那一刻：封面盖着右半边，左半边先藏着，等封面翻过去再露出来 */
.wb.is-opening .wb-board--l, .wb.is-opening .wb-pg--l, .wb.is-opening .wb-edges--l, .wb.is-opening .wb-band { opacity: 0; }
.wb.is-opening .wb-gutter { clip-path: inset(0 0 0 50%); }
.wb.is-opening .wb-ribbon { z-index: 9; }
.wb-board--l, .wb-pg--l, .wb-edges--l, .wb-band { transition: opacity .28s var(--wb-ease); }
.wb.is-handoff .wb-board--l, .wb.is-handoff .wb-pg--l, .wb.is-handoff .wb-edges--l, .wb.is-handoff .wb-band, .wb.is-handoff .wb-edges i { transition: none !important; }

/* ================= 飞出来的那本书：封面和环衬 ================= */

.wb-fly { position: fixed; z-index: 1001; transform-style: preserve-3d; pointer-events: none; font-family: var(--wb-serif); }
.wb-fly > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px 12px 12px 3px; overflow: hidden; }
.wb-fly__front { box-shadow: 0 30px 60px -22px rgba(10, 5, 2, .7); }
.wb-fly__back { transform: rotateY(180deg); border-radius: 12px 3px 3px 12px; }
.wb-cover { position: absolute; inset: 0; color: #f0dcc0;
  background: var(--wb-linen), var(--wb-linen2), radial-gradient(110% 80% at 30% 15%, rgba(255, 210, 180, .14), rgba(0, 0, 0, 0) 60%), linear-gradient(170deg, #74271f, #5a1c16 55%, #4a1611); }
.wb-cover__hinge { position: absolute; left: 0; top: 0; bottom: 0; width: 2.4em; background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .05) 40%, rgba(0, 0, 0, .25) 80%, rgba(255, 210, 180, .1)); }
.wb-cover__frame { position: absolute; left: 4em; right: 2.4em; top: 2.4em; bottom: 2.4em; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4.4em 2em 2.6em;
  border: 2px solid transparent; border-image: var(--wb-gold) 1; box-shadow: inset 0 0 0 .45em rgba(0, 0, 0, 0), inset 0 0 0 calc(.45em + 1px) rgba(217, 187, 114, .45); }
.wb-cover__k { font: 600 .8em/1 var(--wb-latin); letter-spacing: .42em; color: #d8b86e; }
.wb-cover__t { margin-top: 2.2em; font: 700 3.3em/1.1 var(--wb-serif); letter-spacing: .08em; background: var(--wb-gold); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 1px 0 rgba(40, 18, 4, .32); }
.wb-cover__t small { display: block; margin-top: .55em; font-size: .42em; letter-spacing: .6em; font-weight: 600; }
.wb-cover__rule { display: block; width: 6em; height: 2px; margin: 2.2em 0; background: var(--wb-gold); }
.wb-ava--cover { width: 6.6em; height: 6.6em; box-shadow: 0 0 0 .2em #c9a65e, 0 0 0 .5em rgba(0, 0, 0, .25), 0 0 0 .62em rgba(217, 187, 114, .6), 0 .6em 1em rgba(0, 0, 0, .45); }
.wb-ava--cover i { font-size: 2.8em; }
.wb-cover__by { margin-top: auto; font: 600 1.05em/1 var(--wb-serif); letter-spacing: .5em; color: #e3c47e; }
.wb-cover__st { margin-top: .9em; font: 500 .7em/1 var(--wb-serif); letter-spacing: .3em; color: rgba(227, 196, 126, .7); }
.wb-endp { position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle, rgba(176, 138, 64, .55) 0 .14em, rgba(0, 0, 0, 0) .17em),
    repeating-linear-gradient(45deg, rgba(122, 43, 34, .13) 0 1px, rgba(0, 0, 0, 0) 1px 1.6em),
    repeating-linear-gradient(-45deg, rgba(122, 43, 34, .13) 0 1px, rgba(0, 0, 0, 0) 1px 1.6em),
    var(--wb-noise), linear-gradient(90deg, #e9dcc4, #f1e7d4 30%, #efe4cf);
  background-size: 2.26em 2.26em, auto, auto, auto, auto; background-position: 1.13em 1.13em, 0 0, 0 0, 0 0, 0 0; }
.wb-plate { display: grid; justify-items: center; gap: .6em; padding: 1.6em 2.2em; border: 1px solid rgba(122, 43, 34, .5); outline: .3em solid rgba(239, 229, 210, .9); background: #f8f1e2; font: 700 1em/1 var(--wb-serif); letter-spacing: .3em; color: var(--wb-ox); }
.wb-plate small { font: 500 .7em/1 var(--wb-serif); letter-spacing: .3em; color: #8a7b67; }
.wb-ava--plate { width: 3.6em; height: 3.6em; }
.wb-ava--plate i { font-size: 1.6em; }

/* ================= 窄屏：一次一页 ================= */

.wb--single .wb-bar { height: 52px; }
.wb--single .wb-bar__b { display: none; }
.wb--single .wb-box { left: max(8px, calc(50% - 390px)); right: max(8px, calc(50% - 390px)); width: auto; top: 98px; bottom: 10px; height: auto; transform: none; font-size: 16px; }
.wb--single .wb-tome { perspective: none; }
.wb--single .wb-board--l, .wb--single .wb-edges--l, .wb--single .wb-band, .wb--single .wb-gutter, .wb--single .wb-shade, .wb--single .wb-ribbon { display: none; }
.wb--single .wb-board--r { left: 0; width: 100%; height: 100%; border-radius: 4px 12px 12px 4px; }
.wb--single .wb-edges--r { left: 6px; right: 6px; top: 6px; bottom: 6px; width: auto; height: auto; }
.wb--single .wb-edges--r i { clip-path: none; transform: translate(calc(var(--i) * .7px + .8px), calc(var(--i) * .5px + .6px)); border-radius: 2px; }
.wb--single .wb-edges--r i:nth-child(n+5) { display: none; }
.wb--single .wb-pg { left: 6px; top: 6px; right: 8px; bottom: 8px; width: auto; height: auto; clip-path: none; border-radius: 2px; transition: transform .42s var(--wb-ease), opacity .3s var(--wb-ease), visibility 0s .42s; }
.wb--single .wb-pg--l::before { background: linear-gradient(90deg, rgba(60, 38, 16, .16), rgba(0, 0, 0, 0) 14px), radial-gradient(90% 60% at 18% 6%, rgba(255, 252, 240, .5), rgba(255, 252, 240, 0) 70%); }
.wb--single .wb-pg--r { transform: translateX(104%); visibility: hidden; z-index: 6; box-shadow: -10px 0 24px -14px rgba(30, 18, 8, .5); }
.wb--single .wb-pg--r::before { background: linear-gradient(90deg, rgba(60, 38, 16, .16), rgba(0, 0, 0, 0) 14px); }
.wb--single.is-detail .wb-pg--r { transform: none; visibility: visible; transition: transform .42s var(--wb-ease), visibility 0s; }
.wb--single.is-detail .wb-pg--l { transform: translateX(-6%); opacity: .4; }
.wb--single .wb-pg__in, .wb--single .wb-pg--r .wb-pg__in { padding: 14px 18px 10px 22px; }
.wb--single .wb-rh { height: 34px; margin-bottom: 16px; letter-spacing: .12em; font-size: 12px; }
.wb--single .wb-rh--r .wb-rh__r { display: none; }
.wb--single .wb-back { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 6px; margin-left: -6px; border-radius: 999px; border: 1px solid var(--wb-rule); font: 500 12.5px/1 var(--wb-sans); letter-spacing: .04em; color: var(--wb-ink2); }
.wb--single .wb-rh__c { text-align: right; }
.wb--single .wb-folio { height: 22px; font-size: 11px; }
.wb--single .wb-scroll { margin-right: -10px; padding-right: 10px; }
.wb--single .wb-h1 { font-size: 1.9em; }
.wb--single .wb-lede { font-size: .9em; }
.wb--single .wb-tabs { left: 10px; right: 10px; top: -40px; width: auto; height: 42px; display: grid; grid-template-columns: repeat(var(--ch-count, 4), minmax(0, 1fr)); gap: 4px; }
.wb--single .wb-tabs[data-many] { display: flex; overflow-x: auto; scrollbar-width: none; }
.wb--single .wb-tabs[data-many] .wb-tab { flex: 0 0 auto; min-width: 68px; }
.wb--single .wb-tab { position: relative; top: 0; left: auto; width: auto; height: 48px; padding: 0 4px 8px; flex-direction: row; justify-content: center; align-items: center; gap: 5px; border-radius: 10px 10px 0 0; transform: translateY(8px); }
.wb--single .wb-tab::before { left: 5px; right: 5px; top: 5px; bottom: 9px; border: 1px dashed rgba(255, 238, 205, .4); border-bottom: 0; border-radius: 7px 7px 0 0; }
.wb--single .wb-tab::after { display: none; }
.wb--single .wb-tab .wb-tab__t { display: none; }
.wb--single .wb-tab .wb-tab__s { display: inline; writing-mode: horizontal-tb; font: 700 13px/1 var(--wb-serif); letter-spacing: .04em; white-space: nowrap; }
.wb--single .wb-tab__no { width: 20px; height: 20px; font-size: 12px; }
.wb--single .wb-tab:hover { transform: translateY(5px); }
.wb--single .wb-tab.is-on { transform: translateY(0); }
.wb--single .wb-ladder { grid-template-columns: 1fr 1fr; align-items: stretch; }
.wb--single .wb-it--rung { padding-top: .7em !important; }
.wb--single .wb-it--toc .wb-it__t { max-width: none; white-space: normal; }
.wb--single .wb-it--toc .wb-lead { display: none; }
.wb--single .wb-it--toc .wb-it__c { margin-left: auto; }
.wb--single .wb-evo__arr { display: none; }
.wb--single .wb-steps, .wb--single .wb-rows, .wb--single .wb-vs, .wb--single .wb-lab__lanes { grid-template-columns: 1fr; }
.wb--single .wb-kits, .wb--single .wb-skgrid { grid-template-columns: 1fr; }
.wb--single .wb-it.is-on::after { display: none; }
.wb--single .wb-pn { grid-template-columns: 1fr; }
.wb--single .wb-kv > div { grid-template-columns: 4.4em 1fr; }

.wb--single .wb-close kbd { display: none; }
.wb--single .wb-close { padding-right: 16px; }
.wb--single .wb-share span { display: none; }
.wb--single .wb-share { padding: 0 11px; }
.wb--single .wb-home + .wb-bar__t { display: none; }
.wb--single .wb-open__row { flex-wrap: wrap; }
.wb--single .wb-open__row .wb-search { flex-basis: 100%; }
.wb--single .wb-close { background: rgba(30, 21, 14, .72); border-color: rgba(239, 228, 208, .42); }
@media (max-width: 520px) {
  .wb--single .wb-tab__no { display: none; }
}
@media (max-width: 420px) {
  .wb--single .wb-box { font-size: 15px; }
  .wb-close > span { display: none; }
  .wb-close::before { content: "合上"; }
  .wb-close { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wb *, .wb *::before, .wb *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ================= 独立页 wiki/index.html：关掉脚本也能读 ================= */

html[data-book-page] { background: #e2d8c7; }
.wb-plain-page { margin: 0; min-height: 100vh; color: var(--wb-ink); font-family: var(--wb-sans); -webkit-font-smoothing: antialiased;
  background: radial-gradient(70vw 60vh at 20% 0%, rgba(255, 250, 236, .9), rgba(255, 250, 236, 0) 70%), linear-gradient(180deg, #ebe4d8, #ddd2c1); }
/* 打开独立页时先只露一面书案底色，脚本一跑书就摊开；纯文字版只在关掉脚本或脚本没加载上时出现 */
.wb-boot { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80vw 70vh at 50% 46%, rgba(255, 248, 232, .55), rgba(255, 248, 232, 0) 70%), linear-gradient(180deg, #d9ccb7, #c7b597); }
html:not(.js) .wb-boot, html.wb-booted .wb-boot, html.wb-rescued .wb-boot { display: none; }
.wb--boot, .wb--boot * { transition: none !important; }
html.wb-booted #wb-plain-live { display: none; }
@keyframes wb-reveal { from { visibility: hidden; } to { visibility: visible; } }
.wb-skip { position: absolute; left: 12px; top: -60px; padding: 8px 14px; border-radius: 999px; background: #2e231a; color: #f6ecda; z-index: 2000; }
.wb-skip:focus { top: 12px; }
.wb-pnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 980px; margin: 0 auto; padding: 18px 24px; }
.wb-pnav a { color: var(--wb-ink2); text-decoration: none; font-size: 14px; }
.wb-pnav__brand { font: 700 18px/1 var(--wb-serif); letter-spacing: .12em; color: var(--wb-ink) !important; }
.wb-pnav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; align-items: center; }
.wb-pnav__cta { padding: 8px 14px; border-radius: 999px; background: #2e231a; color: #f6ecda !important; }
.wb-plain { max-width: 980px; margin: 0 auto; padding: 56px clamp(20px, 6vw, 84px) 72px; border-radius: 6px; font: 400 17px/1.9 var(--wb-serif);
  background: linear-gradient(180deg, #fcf9f3, #f8f3e9); box-shadow: 0 30px 60px -30px rgba(40, 25, 10, .5), 0 0 0 12px #5a1c16, 0 0 0 13px rgba(0, 0, 0, .3); }
.wb-plain h1 { margin: .3em 0 .2em; font: 700 40px/1.2 var(--wb-serif); letter-spacing: .05em; }
.wb-plain h2 { margin: 2.4em 0 .4em; padding-top: 1em; border-top: 1px solid var(--wb-rule); font: 700 30px/1.3 var(--wb-serif); }
.wb-plain h2 small, .wb-plain h3 small { display: block; font: 600 13px/1.6 var(--wb-serif); letter-spacing: .3em; color: var(--wb-ox); }
.wb-plain h3 { margin: 1.8em 0 .3em; font: 700 22px/1.4 var(--wb-serif); }
.wb-plain h4 { margin: 1.4em 0 .2em; font: 700 18px/1.5 var(--wb-serif); }
.wb-plain p { margin: .5em 0; }
.wb-plain b { margin-right: .6em; color: var(--wb-ink2); }
.wb-plain a { color: var(--wb-ox); }
.wb-plain blockquote { margin: .8em 0; padding: .6em 1em; border-left: 3px solid var(--wb-ox); background: #fffdf8; }
.wb-plain pre { white-space: pre-wrap; padding: 1em 1.2em; border-radius: 4px; background: #2b241d; color: #efe5d2; font: 14px/1.75 "Cascadia Mono", Consolas, Menlo, monospace; }
.wb-plain__mark { display: flex; align-items: center; gap: 12px; font: 600 14px/1 var(--wb-serif); letter-spacing: .24em; color: var(--wb-ink2); }
.wb-plain .wb-ava { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #6e2620; box-shadow: 0 0 0 2px #c9a65e; }
.wb-plain .wb-ava i { font: 700 20px/1 var(--wb-serif); font-style: normal; color: #f1dcc0; }
.wb-plain .wb-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wb-plain__lede { color: var(--wb-ink2); }
.wb-plain__toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 1.2em 0 0; padding: 0; list-style: none; }
.wb-plain__toc b { margin-right: .5em; color: var(--wb-ox); }
.wb-plain__say { margin: .9em 0; padding: .8em 1.1em; border: 1px solid var(--wb-rule); background: #fffdf8; }
.wb-plain__k { font: 700 13px/1.6 var(--wb-serif); letter-spacing: .2em; color: var(--wb-ox); }
.wb-plain__vs { padding-left: 1.2em; }
.wb-pfoot { max-width: 980px; margin: 0 auto; padding: 40px 24px 60px; font-size: 14px; color: var(--wb-ink2); display: grid; gap: 16px; }
.wb-pfoot b { font: 700 18px/1 var(--wb-serif); letter-spacing: .12em; color: var(--wb-ink); }
.wb-pfoot__cols { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.wb-pfoot h2 { margin: 0 0 6px; font: 700 13px/1.6 var(--wb-serif); letter-spacing: .2em; color: var(--wb-ink3); }
.wb-pfoot ul { margin: 0; padding: 0; list-style: none; line-height: 2; }
.wb-pfoot a { color: var(--wb-ink); }

/* ================= 右页新部件：技能去处、命令行、上架提示、钩子试一下 ================= */

.wb-det__mono { display: block; margin-top: .3em; font: 500 .44em/1.3 "Cascadia Mono", Consolas, Menlo, monospace; letter-spacing: .02em; color: var(--wb-ox); }
.wb-det__p--s { font-size: .9em; color: var(--wb-ink2); }
.wb-say__f { margin-top: .45em; font: 400 .74em/1.6 var(--wb-sans); color: var(--wb-ink3); }

/* 「装这个技能管住它」：一张缝在页边的小卡，点一下翻到第五章那一个技能 */
.wb-skillgo { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 1em; row-gap: .3em; align-items: center; width: 100%; padding: .75em 1em .8em 1.1em; border-radius: 4px; text-align: left;
  color: #f3e8d2; background: linear-gradient(160deg, #33291f, #231b14); box-shadow: inset 0 0 0 1px rgba(217, 187, 114, .45), 0 10px 18px -14px rgba(30, 20, 10, .9);
  transition: transform .14s var(--wb-ease), box-shadow .2s var(--wb-ease); }
.wb-skillgo:hover { box-shadow: inset 0 0 0 1.5px rgba(232, 207, 138, .85), 0 12px 22px -14px rgba(30, 20, 10, .95); }
.wb-skillgo:active { transform: scale(.985); }
.wb-skillgo__k { font: 700 .68em/1 var(--wb-serif); letter-spacing: .26em; color: #e0c27a; }
.wb-skillgo__n { grid-row: 2; display: flex; align-items: baseline; gap: .7em; min-width: 0; }
.wb-skillgo__n b { font: 600 .9em/1.3 "Cascadia Mono", Consolas, Menlo, monospace; color: #fff3d6; }
.wb-skillgo__n em { font: 500 .8em/1.3 var(--wb-serif); font-style: normal; color: #cbbd9f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-skillgo__go { grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; gap: .3em; font: 500 .74em/1 var(--wb-sans); color: #e8d6ae; }
.wb-skillgo__go svg { transition: transform .2s var(--wb-ease); }
.wb-skillgo:hover .wb-skillgo__go svg { transform: translateX(3px); }

/* 上架提示 */
.wb-soon { display: flex; gap: .6em; align-items: flex-start; margin-top: 1em; padding: .7em .9em; border-radius: 3px; border: 1px dashed rgba(140, 98, 36, .45); background: rgba(201, 166, 94, .1); font: 400 .82em/1.75 var(--wb-sans); color: #5a4630; }
.wb-soon svg { margin-top: .35em; color: #a27a2c; }
.wb-soon b { font-family: "Cascadia Mono", Consolas, Menlo, monospace; font-weight: 600; }

/* 一行命令 */
.wb-cmds { margin-top: .7em; display: grid; gap: 6px; }
.wb-cmd { display: flex; align-items: center; gap: .6em; min-width: 0; padding: .45em .45em .45em .8em; border-radius: 3px; background: #2b241d; color: #f2e6cf; }
.wb-cmd code { flex: 1; min-width: 0; font: 500 .76em/1.6 "Cascadia Mono", Consolas, Menlo, monospace; white-space: normal; overflow-wrap: anywhere; }
.wb-cmd code::-webkit-scrollbar { display: none; }
.wb-cmd__b { flex: none; display: inline-flex; align-items: center; gap: .35em; height: 2em; padding: 0 .8em; border-radius: 999px; background: #f3e7cf; color: #2a231c; font: 500 .72em/1 var(--wb-sans);
  transition: transform .12s var(--wb-ease), background-color .2s var(--wb-ease); }
.wb-cmd__b:hover { background: #fff6e4; }
.wb-cmd__b:active { transform: scale(.96); }
.wb-cmd__b svg + svg { display: none; }
.wb-cmd__b.is-done { background: var(--wb-sage); color: #f2f5ec; }
.wb-cmd__b.is-done svg:first-child { display: none; }
.wb-cmd__b.is-done svg + svg { display: block; }
.wb-cmd.is-soon { background: rgba(43, 36, 29, .08); color: var(--wb-ink3); box-shadow: inset 0 0 0 1px var(--wb-rule); }
.wb-cmd__soon { flex: none; padding: .3em .7em; border-radius: 999px; border: 1px dashed var(--wb-rule); font: 500 .68em/1.2 var(--wb-sans); color: var(--wb-ink3); white-space: nowrap; }

/* 整套里的七个技能 */
.wb-sklist { margin-top: .6em; display: grid; border-top: 1px solid var(--wb-rule2); }
.wb-sklist button { display: grid; grid-template-columns: 10.5em 1fr auto auto; gap: .8em; align-items: center; padding: .55em .3em; border-bottom: 1px solid var(--wb-rule2); text-align: left; transition: background-color .2s var(--wb-ease); }
.wb-sklist button:hover { background: rgba(255, 253, 247, .85); }
.wb-sklist b { font: 600 .74em/1.3 "Cascadia Mono", Consolas, Menlo, monospace; color: var(--wb-ox); }
.wb-sklist span { font: 600 .84em/1.4 var(--wb-serif); color: var(--wb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-sklist em { font: 500 .68em/1 var(--wb-sans); font-style: normal; color: var(--wb-ink3); white-space: nowrap; }
.wb-sklist svg { color: var(--wb-ink3); }

/* 第三章工作台：要点打勾 */
.wb-facts { margin-top: .9em; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .5em .8em; }
.wb-facts li { display: flex; align-items: center; gap: .5em; padding: .55em .7em; border-radius: 3px; background: var(--wb-sage-bg); border: 1px solid rgba(75, 93, 69, .25); font: 500 .82em/1.4 var(--wb-sans); color: #33432e; }
.wb-facts svg { color: var(--wb-sage); }
.wb-pre { margin-top: .6em; padding: .8em 1em; border-radius: 3px; overflow-x: auto; background: #2b241d; color: #efe5d2; font: .74em/1.65 "Cascadia Mono", Consolas, Menlo, monospace; white-space: pre; }
.wb-kv code, .wb-tech code { padding: .05em .35em; border-radius: 3px; background: rgba(96, 72, 44, .09); font: .9em/1 "Cascadia Mono", Consolas, Menlo, monospace; }
.wb-tech a { color: var(--wb-ox); }
.wb-tbl { margin: .6em 0; overflow-x: auto; }
.wb-md table { width: 100%; border-collapse: collapse; font-size: .9em; }
.wb-md th, .wb-md td { padding: .45em .6em; border-bottom: 1px solid var(--wb-rule2); text-align: left; vertical-align: top; }
.wb-md th { font-weight: 700; color: var(--wb-ink2); border-bottom-color: var(--wb-rule); }

/* 第三章钩子：观察档和硬拦档，当场试一下 */
.wb-hook { margin-top: 1.1em; padding: .9em 1em 1em; border-radius: 4px; background: #2a231c; color: #eadfcb; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 26px -18px rgba(30, 20, 10, .8); }
.wb-hook__seg { margin-top: .7em; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .3); }
.wb-hook__seg button { display: inline-flex; align-items: baseline; gap: .45em; padding: .45em 1em; border-radius: 999px; font: 600 .76em/1 var(--wb-sans); color: #cbbd9f; transition: background-color .18s var(--wb-ease), color .18s var(--wb-ease); }
.wb-hook__seg small { font-size: .84em; font-weight: 400; opacity: .75; }
.wb-hook__seg button[aria-pressed="true"] { background: #f3e7cf; color: #2a231c; }
.wb-hook__term { margin-top: .75em; padding: .75em .9em; border-radius: 3px; background: #17120d; font: .78em/1.7 "Cascadia Mono", Consolas, Menlo, monospace; min-height: 6.2em; }
.wb-hook__act { color: #f2e6cf; }
.wb-hook__act span { margin-right: .5em; color: #d8b86e; }
.wb-hook__out { margin-top: .5em; display: grid; gap: .15em; font-family: var(--wb-sans); }
.wb-hook__out b { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; }
.wb-hook__out .is-stop { color: #ef9a83; }
.wb-hook__out .is-note { color: #e0c27a; }
.wb-hook__out span { color: #d9ccb4; }
.wb-hook__idle { color: #8a7d68; }

/* ================= 右页插画：钢笔墨线加淡彩 ================= */

.wb-art { margin: 1.1em 0 .3em; }
.wb .wb-art svg, .wb-fly .wb-art svg { display: block; width: 100%; height: auto; fill: none; stroke: none; overflow: visible; }
.wb-art text { font-family: var(--wb-sans); }
.wb-art text.s { font-family: var(--wb-serif); }
.wb-art text.m { font-family: "Cascadia Mono", Consolas, Menlo, monospace; }
.wb-art figcaption { margin-top: .6em; padding-left: .8em; border-left: 2px solid #d3bf98; font: 400 .8em/1.75 var(--wb-serif); color: var(--wb-ink3); }
.wb-art--steps { margin: .9em 0 .1em; }
.wb-art--rules { margin: .9em 0 0; }
.wb-art__swipe { display: none; }
.wb--single .wb-art__pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 86%, rgba(0, 0, 0, .25)); mask-image: linear-gradient(90deg, #000 86%, rgba(0, 0, 0, .25)); }
.wb--single .wb-art__pan::-webkit-scrollbar { display: none; }
.wb--single .wb-art__pan svg { min-width: 480px; }
.wb--single .wb-art--steps .wb-art__pan svg, .wb--single .wb-art--rules .wb-art__pan svg { min-width: 420px; }
.wb--single .wb-art__swipe { display: block; margin-top: .35em; text-align: right; font: 500 .72em/1 var(--wb-sans); letter-spacing: .1em; color: var(--wb-ink3); }
.wb--single .wb-art__swipe::after { content: " ›"; }
.wb--single .wb-det__p { text-align: start; }

/* ================= 第三章：置顶的 Orca 推荐卡和右页专版 ================= */

.wb-it--orca { margin: .15em 0 .55em; padding: 1em 1.15em 1.05em; border-radius: 6px; display: grid; justify-items: start; gap: .45em; color: #f3e8d2;
  background: radial-gradient(110% 140% at 100% 0%, rgba(217, 187, 114, .22), rgba(0, 0, 0, 0) 55%), linear-gradient(160deg, #3a2d4d, #231a30);
  box-shadow: inset 0 0 0 1px rgba(217, 187, 114, .5), 0 16px 28px -18px rgba(20, 15, 30, .9); transition: transform .2s var(--wb-ease), box-shadow .2s var(--wb-ease); }
.wb-it--orca:hover, .wb-it--orca.is-on { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(232, 207, 138, .85), 0 20px 32px -18px rgba(20, 15, 30, .95); }
.wb-it--orca.is-on::after { background: #e8cf8a; top: 14px; bottom: 14px; }
.wb-it--orca.is-pin .wb-pinmark { background: #e0c27a; color: #2a1d10; }
.wb-orca__k { display: inline-flex; align-items: center; gap: .45em; font: 700 .7em/1 var(--wb-serif); letter-spacing: .28em; color: #e0c27a; }
.wb-it--orca .wb-it__t { display: flex; align-items: baseline; gap: .45em; font-size: 1.08em; color: #fff6e2; }
.wb-orca__w { font: 700 1.38em/1 var(--wb-latin); letter-spacing: .02em; color: #f6e7b0; }
.wb-det__t .wb-orca__w { font-size: 1.12em; color: #3a2d4d; }
.wb-it--orca .wb-it__s { margin: 0; color: #d6cab6; font-size: .8em; line-height: 1.6; }
.wb-orca__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: .15em; }
.wb-orca__chips i { padding: .45em .7em; border-radius: 999px; background: rgba(255, 246, 226, .1); border: 1px solid rgba(224, 194, 122, .4); font: 500 .66em/1 var(--wb-sans); font-style: normal; color: #f0e2c2; white-space: nowrap; }
.wb-feat__lead { margin-top: .6em; padding: .6em .85em; border-radius: 4px; background: rgba(78, 61, 102, .08); border: 1px solid rgba(78, 61, 102, .22); font: 500 .86em/1.75 var(--wb-sans); color: #3d3350; }
.wb-feat__list { margin-top: .6em; list-style: none; display: grid; gap: 6px; }
.wb-feat__list li { display: grid; grid-template-columns: 10.6em minmax(0, 1fr); gap: .9em; padding: .6em .8em; border-radius: 4px; background: rgba(255, 253, 247, .65); border: 1px solid var(--wb-rule2); }
.wb-feat__list b { font: 700 .84em/1.65 var(--wb-serif); color: var(--wb-ink); }
.wb-feat__list span { font: 400 .82em/1.7 var(--wb-sans); color: #4a3f33; }
.wb--single .wb-feat__list li { grid-template-columns: minmax(0, 1fr); gap: .2em; }

/* ================= 第五章：置顶的四个核心技能 ================= */

.wb-core { margin: .05em 0 .55em; padding: .62em .72em .65em; border-radius: 6px; background: linear-gradient(180deg, rgba(154, 51, 36, .07), rgba(154, 51, 36, .025)); border: 1px solid rgba(154, 51, 36, .28); }
.wb-core__k { display: flex; align-items: baseline; gap: .6em; margin-bottom: .42em; color: var(--wb-ox); }
.wb-core__k svg { align-self: center; }
.wb-core__k b { font: 700 .86em/1 var(--wb-serif); letter-spacing: .26em; }
.wb-core__k span { font: 500 .74em/1 var(--wb-serif); letter-spacing: .08em; color: var(--wb-ink3); }
.wb-it--core { padding: .48em .65em .52em; background: #fffdf8; border-color: rgba(154, 51, 36, .3); box-shadow: 0 1px 0 rgba(154, 51, 36, .12); }
.wb-it--core .wb-sk__no { color: var(--wb-ox); }
.wb-it--core .wb-it__t { font-size: .88em; }
.wb-core__cmd { margin-top: .45em; display: grid; gap: .3em; }
[data-ch="skills"] .wb-open--c { margin-bottom: .45em; }
[data-ch="skills"] .wb-skgrid--core { gap: 6px; }
[data-ch="skills"] .wb-it--pack { margin: .1em 0 .45em; padding: .72em .95em .78em; gap: .36em; }
.wb-core__cmd > span { font: 700 .66em/1 var(--wb-serif); letter-spacing: .2em; color: var(--wb-ink3); }
.wb-core .wb-cmd code { font-size: .68em; }

/* 第一章左页下半截：核心四技能放在第一眼的位置，两列小卡，点了翻到第五章那个技能 */
.wb-core--ch1 { margin-top: .9em; }
.wb-cc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wb-cc__it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55em; padding: .5em .6em .52em .65em; border-radius: 4px; text-align: left;
  background: #fffdf8; border: 1px solid rgba(154, 51, 36, .26); box-shadow: 0 1px 0 rgba(154, 51, 36, .1); color: var(--wb-ink);
  transition: transform .14s var(--wb-ease), box-shadow .18s var(--wb-ease), border-color .18s var(--wb-ease); }
.wb-cc__it:hover { border-color: rgba(154, 51, 36, .5); box-shadow: 0 6px 14px -8px rgba(110, 38, 26, .45); transform: translateY(-1px); }
.wb-cc__it:active { transform: scale(.98); }
.wb-cc__no { font: 600 1.05em/1 var(--wb-latin); color: var(--wb-ox); }
.wb-cc__b { display: grid; gap: .22em; min-width: 0; }
.wb-cc__b b { font: 700 .66em/1.2 "Cascadia Mono", Consolas, Menlo, monospace; color: var(--wb-ox); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-cc__b span { font: 700 .78em/1.3 var(--wb-serif); color: var(--wb-ink); }
.wb-cc__it > svg { width: .8em; height: .8em; color: var(--wb-ink3); flex: none; }
.wb--single .wb-cc { grid-template-columns: 1fr; }

/* 推荐徽标：朱红实底小章，左页那一条整行微微提亮，右页页眉也挂一枚 */
.wb-pick { display: inline-flex; align-items: center; gap: .3em; flex: none; margin-left: .2em; padding: .26em .6em .26em .5em; border-radius: 999px;
  background: var(--wb-ox); color: #fbefe0; font: 700 .66em/1 var(--wb-sans); font-style: normal; letter-spacing: .12em; box-shadow: 0 1px 0 rgba(255, 230, 200, .3) inset; }
.wb-pick svg { width: .95em; height: .95em; color: #f3d27f; }
.wb-it--pick { background: linear-gradient(90deg, rgba(154, 51, 36, .075), rgba(154, 51, 36, 0) 80%); }
.wb-it--pick .wb-it__t { color: var(--wb-ox); }
.wb-pick--big { margin-left: .9em; font-size: .92em; letter-spacing: .16em; }
.wb-pickline { margin-top: .55em; padding-left: .7em; border-left: 3px solid var(--wb-ox); font: 600 .82em/1.5 var(--wb-serif); color: var(--wb-ox); letter-spacing: .04em; }

/* 总协调必挂的四个钩子：浅朱红衬底，编号圆章，一条一行讲清拦什么 */
.wb-guards { margin: 1.05em 0 1.1em; padding: .85em 1em .95em; border-radius: 6px; background: linear-gradient(180deg, rgba(154, 51, 36, .06), rgba(154, 51, 36, .02)); border: 1px solid rgba(154, 51, 36, .26); }
.wb-guards .wb-det__h { margin-top: 0; display: flex; align-items: center; gap: .45em; color: var(--wb-ox); }
.wb-guards .wb-det__h svg { width: 1em; height: 1em; }
.wb-guards__lead { margin-top: .3em; font: 400 .78em/1.6 var(--wb-sans); color: var(--wb-ink3); }
.wb-guards__list { list-style: none; margin: .6em 0 0; padding: 0; display: grid; gap: .5em; }
.wb-guards__list li { display: grid; grid-template-columns: 1.7em minmax(0, 7.2em) minmax(0, 1fr); gap: .6em; align-items: baseline; padding: .5em .6em; border-radius: 4px; background: #fffdf8; border: 1px solid rgba(96, 72, 44, .12); }
.wb-guards__n { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; background: var(--wb-ox); color: #fbefe0; font: 700 .72em/1 var(--wb-latin); align-self: center; }
.wb-guards__list b { font: 700 .86em/1.4 var(--wb-serif); color: var(--wb-ink); }
.wb-guards__list li > span:last-child { font: 400 .8em/1.6 var(--wb-sans); color: var(--wb-ink2); }
.wb-guards__go { margin-top: .75em; display: grid; gap: .55em; justify-items: start; }
.wb--single .wb-guards__list li { grid-template-columns: 1.7em minmax(0, 1fr); }
.wb--single .wb-guards__list li > span:last-child { grid-column: 2; }
.wb-det__core { display: inline-flex; align-items: center; gap: .4em; padding: .42em .8em; border-radius: 999px; background: var(--wb-ox); color: #fbefe0; letter-spacing: .16em; }
.wb-det__core svg { color: #f3d27f; }
.wb-sklist button.is-core em { color: var(--wb-ox); font-weight: 700; }

/* ================= 飞出来的那本书：正面和书架同一个目录版式，背面就是左页 ================= */

.wb-cover__frame { align-items: flex-start; text-align: left; padding: 3.2em 2.4em 2.4em; }
.wb-cover__t { margin-top: 1em; font-size: 3.6em; }
.wb-cover__t small { letter-spacing: .5em; }
.wb-cover__rule { width: 100%; margin: 1.3em 0 1.2em; }
.wb-cover__toc { list-style: none; display: grid; gap: .45em; font: 500 1.2em/1.5 var(--wb-serif); color: rgba(236, 205, 150, .86); }
.wb-cover__toc b { display: inline-block; width: 2em; color: #e3c47e; }
.wb-cover__by { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; letter-spacing: .4em; }
.wb-cover__seal { width: 2.6em; height: 2.6em; border: .1em solid #c9a65e; border-radius: .2em; display: grid; place-items: center; font: 700 1.3em/1 var(--wb-serif); letter-spacing: 0; color: #d8b86e; }
.wb-fly__half { position: absolute; left: 0; top: 0; width: 740px; height: 900px; transform-origin: 0 0; font-size: 18px; color: var(--wb-ink); font-family: var(--wb-sans); -webkit-font-smoothing: antialiased; }
.wb-fly__half .wb-board--l { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 6px 0 14px -6px rgba(0, 0, 0, .5); }

/* 窄屏：多想两步改成竖排时间轴 */
.wb--single .wb-chain { grid-template-columns: minmax(0, 1fr); }
.wb--single .wb-chain::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
.wb--single .wb-chain li { padding: 0 0 0 1.8em; }
